Showing preview only (471K chars total). Download the full file or copy to clipboard to get everything.
Repository: VictorCazanave/react-svg-map
Branch: master
Commit: a3a3b0e9e5d0
Files: 38
Total size: 453.6 KB
Directory structure:
gitextract_79rtgsnn/
├── .babelrc
├── .eslintignore
├── .eslintrc
├── .gitignore
├── .travis.yml
├── CHANGELOG.md
├── CONTRIBUTING.md
├── LICENSE
├── README.md
├── __tests__/
│ ├── __mocks__/
│ │ └── styleMock.js
│ ├── __snapshots__/
│ │ ├── checkbox-svg-map.test.js.snap
│ │ ├── radio-svg-map.test.js.snap
│ │ └── svg-map.test.js.snap
│ ├── checkbox-svg-map.test.js
│ ├── fake-map.js
│ ├── radio-svg-map.test.js
│ └── svg-map.test.js
├── docs/
│ ├── index.html
│ └── index.js
├── examples/
│ └── src/
│ ├── components/
│ │ ├── checkbox-map.jsx
│ │ ├── examples-app.jsx
│ │ ├── examples-app.scss
│ │ ├── link-map.jsx
│ │ ├── radio-map.jsx
│ │ └── tooltip-heat-map.jsx
│ ├── index.html
│ ├── index.jsx
│ └── utils.js
├── jest-setup.js
├── jest.config.js
├── package.json
├── src/
│ ├── checkbox-svg-map.jsx
│ ├── index.js
│ ├── radio-svg-map.jsx
│ ├── svg-map.jsx
│ └── svg-map.scss
├── webpack.config.js
└── webpack.examples.config.js
================================================
FILE CONTENTS
================================================
================================================
FILE: .babelrc
================================================
{
"presets": ["env", "react"],
"plugins": ["transform-object-rest-spread"]
}
================================================
FILE: .eslintignore
================================================
README.md
jest.config.js
================================================
FILE: .eslintrc
================================================
{
"env": {
"browser": true,
"es6": true,
"jest/globals": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"settings": {
"react": {
"version": "detect"
}
},
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"plugins": [
"react",
"jest"
],
"rules": {
"indent": [
"error",
"tab",
{
"SwitchCase": 1
}
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single",
{
"allowTemplateLiterals": true
}
],
"semi": [
"error",
"always"
],
"react/no-find-dom-node": "off"
}
}
================================================
FILE: .gitignore
================================================
.DS_Store
.vscode
node_modules
lib
dist
coverage
================================================
FILE: .travis.yml
================================================
language: node_js
node_js:
- "10"
script:
- npm test
- npm run build
after_success:
- bash <(curl -s https://codecov.io/bash)
================================================
FILE: CHANGELOG.md
================================================
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## [2.2.0]
### Added
- Add `locationAriaLabel` prop to customize ARIA label of each location [#49](https://github.com/VictorCazanave/react-svg-map/pull/49)
### Fixed
- Add missing default values of `locationTabIndex` and locationRole` props
- Use MIT license instead of GPLv3
## [2.1.2]
### Fixed
- Add missing CSS file in production
## [2.1.1]
### Fixed
- Handle invalid ids in `selectedLocationIds`
## [2.1.0]
### Added
- Add `selectedLocationId` and `selectedLocationIds` props to handle initial selected locations
- Add `childrenBefore` and `childrenAfter` props to handle "slots"
## [2.0.2]
### Added
- Add files property in package.json to reduce size of package
-
### Changed
- Update dependencies to fix security issues
## [2.0.1]
### Fixed
- Fix tabindex of CheckboxSVGMap
## [2.0.0]
### Removed
- Externalize maps ([svg-maps](https://github.com/VictorCazanave/svg-maps/))
- Remove deprecated tabIndex and type properties
### Changed
- Update documentation
- Update tests using fake maps
## [1.3.1]
### Changed
- Use GitHub pages to host demo
## [1.3.0]
### Added
- Allow function locationClassName prop of SVGMap, CheckboxSVGMap and RadioSVGMap components
### Changed
- Update examples
- Externalize Jest config
- Update Jest config
## [1.2.0]
### Added
- Create CheckboxSVGMap and RadioSVGMap components
- Add unit tests
### Changed
- Update examples
- Deprecate tabIndex and type properties
- Improve snapshot tests
- Update dev dependencies
## [1.1.0]
### Added
- Create Utah map
### Removed
- Remove deprecated NSP badge
## [1.0.7] - 2018-08-25
### Added
- Add lint script
- Create CONTRIBUTING
- Create CHANGELOG
## [1.0.6] - 2018-07-11
### Added
- Add dev dependencies badge in README
### Changed
- Update prop-types dependency to v15.6.2
- Update dev dependencies
### Fixed
- Fix typo in README
## [1.0.5] - 2018-05-05
### Added
- Add onLocationMouseMove documentation
### Changed
- Update dev dependencies
### Fixed
- Fix indentation in README
- Fix gif URL in README
## [1.0.4] - 2018-04-22
### Added
- Add example gif in README
## [1.0.3] - 2018-04-22
### Added
- Add USA documentation
### Fixed
- Fix installation documentation
## [1.0.2] - 2018-04-22
### Added
- Create USA map
- Create onMouseMove event handler
- Create tooltip example
## [1.0.1] - 2018-04-03
### Added
- Add code coverage badge with [codecov](codecov.io)
================================================
FILE: CONTRIBUTING.md
================================================
# Contributing
If you want to contribute to this project, here's a quick guide:
1. Fork the repository
1. Develop your code changes
1. Ensure eslint is happy: `npm run lint`
1. Ensure the tests pass: `npm test`
1. Commit your changes
1. Push to your fork
1. Submit a pull request
## Creating a new map
### Map file
* Name the file `[country].js` in Kebab case. For example: `new-zealand.js`
* Use `Map of [Country]` as `label`
* Adjust the `viewBox` to have no empty space on each side (top, bottom, left, right)
* Use English `name`s by default in `[country].js`
* Create a specific `[country].[lang].js` file to use another language. For example: `taiwan.zh.js`, `france.fr.js`...
* Use semantic `id`s (shortnames or full names in Kebab case). For example: `ny` for New York, `taipei-city` for Taipei City...
* Add the map in `/src/maps/`
* Import and export the map in `/src/index.js`
### Tests
* Add a test in `/__tests__/svg-map.test.js` for this map: `displays map of [Country]` (in alphabetical order)
* Update the snapshots with `npm run build-tests`
* Run ESLint with `npm run lint`
* Run the tests with `npm test`
### Documentation
* Add the country with the list of locations alphabetically sorted in the [existing maps section](https://github.com/VictorCazanave/react-svg-map#existing-maps)
## Reporting a bug
[Open an issue](https://github.com/VictorCazanave/react-svg-map/issues/new).
================================================
FILE: LICENSE
================================================
MIT License
Copyright (c) 2018-present, Victor Cazanave
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
================================================
FILE: README.md
================================================
# react-svg-map
[](https://www.npmjs.com/package/react-svg-map)
[](https://travis-ci.org/VictorCazanave/react-svg-map)
[](https://codecov.io/gh/VictorCazanave/react-svg-map)
[](https://david-dm.org/VictorCazanave/react-svg-map)
[](https://david-dm.org/VictorCazanave/react-svg-map?type=peer)
_A set of React.js components to display an interactive SVG map._

## Demo
[Take a look at the live demo!](https://victorcazanave.github.io/react-svg-map/)
## Installation
### npm
`npm install --save react-svg-map`
### yarn
`yarn add react-svg-map`
## Usage
### :warning: Breaking change from v1
**This package does not include maps anymore!**
You have to install the map you need from [svg-maps](https://github.com/VictorCazanave/svg-maps) or you can use your own map. See [maps section](#maps) for more details.
If you are still using the 1.x.x version, look at the [v1 documentation](https://github.com/VictorCazanave/react-svg-map/tree/v1.3.2#react-svg-map).
### :earth_africa: Simple SVG Map
This is the base component to display an SVG map.
- Import `SVGMap` component from `react-svg-map`
- Import the map you want
- Optionally, import `react-svg-map/lib/index.css` if you want to apply the default styles
```javascript
import React from "react";
import ReactDOM from "react-dom";
import Taiwan from "@svg-maps/taiwan";
import { SVGMap } from "react-svg-map";
import "react-svg-map/lib/index.css";
class App extends React.Component {
constructor(props) {
super(props);
}
render() {
return <SVGMap map={Taiwan} />;
}
}
ReactDOM.render(<App />, document.getElementById("app"));
```
#### API
| Prop | Type | Default | Description |
| ------------------- | ---------------- | --------------------- | ---------------------------------------------------------------------------------------------------------------- |
| map | Object | **required** | Describe SVG map to display. See [maps section](#maps) for more details. |
| className | String | `'svg-map'` | CSS class of `<svg>`. |
| role | String | `'none'` | ARIA role of `<svg>`. |
| locationClassName | String\|Function | `'svg-map__location'` | CSS class of each `<path>`. The function parameters are the location object and the location index. |
| locationTabIndex | String\|Function | `'0'` | Tabindex each `<path>`. The function parameters are the location object and the location index. |
| locationRole | String | `'none'` | ARIA role of each `<path>`. |
| locationAriaLabel | Function | `location.name` | ARIA label of each `<path>`. The function parameters are the location object and the location index. |
| onLocationMouseOver | Function | | Invoked when the user puts the mouse over a location. |
| onLocationMouseOut | Function | | Invoked when the user puts the mouse out of a location. |
| onLocationMouseMove | Function | | Invoked when the user moves the mouse on a location. |
| onLocationClick | Function | | Invoked when the user clicks on a location. |
| onLocationKeyDown | Function | | Invoked when the user hits a keyboard key on a location. |
| onLocationFocus | Function | | Invoked when the user focuses a location. |
| onLocationBlur | Function | | Invoked when the user unfocuses a location. |
| isLocationSelected | Function | | Executed to determine if a location is selected. This property is used to set the `aria-checked` HTML attribute. |
| childrenBefore | Node | | "Slot" before all the locations (`<path>`). |
| childrenAfter | Node | | "Slot" after all the locations (`<path>`). |
### :ballot_box_with_check: Checkbox SVG Map
This is an implementation of `SVGMap` that behaves like a group of checkboxes.
It is based on this [WAI-ARIA example](https://www.w3.org/TR/wai-aria-practices/examples/checkbox/checkbox-1/checkbox-1.html) to support keyboard navigation and be accessible.
- Import `CheckboxSVGMap` component from `react-svg-map`
- Import the map you want
- Optionally, import `react-svg-map/lib/index.css` if you want to apply the default styles
```javascript
import React from "react";
import ReactDOM from "react-dom";
import Taiwan from "@svg-maps/taiwan";
import { CheckboxSVGMap } from "react-svg-map";
import "react-svg-map/lib/index.css";
class App extends React.Component {
constructor(props) {
super(props);
}
render() {
return <CheckboxSVGMap map={Taiwan} />;
}
}
ReactDOM.render(<App />, document.getElementById("app"));
```
#### API
| Prop | Type | Default | Description |
| ------------------- | ---------------- | --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| map | Object | **required** | Describe SVG map to display. See [maps section](#maps) for more details. |
| className | String | `'svg-map'` | CSS class of `<svg>`. |
| locationClassName | String\|Function | `'svg-map__location'` | CSS class of each `<path>`. The function parameters are the location object and the location index. |
| locationAriaLabel | Function | `location.name` | ARIA label of each `<path>`. The function parameters are the location object and the location index. |
| selectedLocationIds | String[] | | List of `id`s of the **initial** selected locations. It is used only when the component is mounted and is not synchronized when updated. |
| onChange | Function | | Invoked when the user selects/deselects a location. The list of selected locations is passed as parameter. |
| onLocationMouseOver | Function | | Invoked when the user puts the mouse over a location. |
| onLocationMouseOut | Function | | Invoked when the user puts the mouse out of a location. |
| onLocationMouseMove | Function | | Invoked when the user moves the mouse on a location. |
| onLocationFocus | Function | | Invoked when the user focuses a location. |
| onLocationBlur | Function | | Invoked when the user unfocuses a location. |
| childrenBefore | Node | | "Slot" before all the locations (`<path>`). |
| childrenAfter | Node | | "Slot" after all the locations (`<path>`). |
### :radio_button: Radio SVG Map
This is an implementation of `SVGMap` that behaves like a group of radio buttons.
It is based on this [WAI-ARIA example](https://www.w3.org/TR/wai-aria-practices/examples/radio/radio-1/radio-1.html) to support keyboard navigation and be accessible.
- Import `RadioSVGMap` component from `react-svg-map`
- Import the map you want
- Optionally, import `react-svg-map/lib/index.css` if you want to apply the default styles
```javascript
import React from "react";
import ReactDOM from "react-dom";
import Taiwan from "@svg-maps/taiwan";
import { RadioSVGMap } from "react-svg-map";
import "react-svg-map/lib/index.css";
class App extends React.Component {
constructor(props) {
super(props);
}
render() {
return <RadioSVGMap map={Taiwan} />;
}
}
ReactDOM.render(<App />, document.getElementById("app"));
```
#### API
| Prop | Type | Default | Description |
| ------------------- | ---------------- | --------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| map | Object | **required** | Describe SVG map to display. See [maps section](#maps) for more details. |
| className | String | `'svg-map'` | CSS class of `<svg>`. |
| locationClassName | String\|Function | `'svg-map__location'` | CSS class of each `<path>`. The function parameters are the location object and the location index. |
| locationAriaLabel | Function | `location.name` | ARIA label of each `<path>`. The function parameters are the location object and the location index. |
| selectedLocationId | String | | `id` of the **initial** selected location. It is used only when the component is mounted and is not synchronized when updated. |
| onChange | Function | | Invoked when the user selects a location. The selected location is passed as parameter. |
| onLocationMouseOver | Function | | Invoked when the user puts the mouse over a location. |
| onLocationMouseOut | Function | | Invoked when the user puts the mouse out of a location. |
| onLocationMouseMove | Function | | Invoked when the user moves the mouse on a location. |
| onLocationFocus | Function | | Invoked when the user focuses a location. |
| onLocationBlur | Function | | Invoked when the user unfocuses a location. |
| childrenBefore | Node | | "Slot" before all the locations (`<path>`). |
| childrenAfter | Node | | "Slot" after all the locations (`<path>`). |
## Maps
### Existing maps
Since v2.0.0 this package does not provide maps anymore. All the existing maps have been moved to the independant [svg-maps](https://github.com/VictorCazanave/svg-maps) project because they may be useful for other components/projects.
### Custom maps
You can modify existing maps or create your own.
#### Modify a map
1. Import the map to modify
1. Create a new object from this map
1. Pass this new object as `map` prop of `<SVGMap />` component
```javascript
import React from "react";
import Taiwan from "@svg-maps/taiwan";
import { SVGMap } from "react-svg-map";
class App extends React.Component {
constructor(props) {
super(props);
// Create new map object
this.customTaiwan = {
...Taiwan,
label: "Custom map label",
locations: Taiwan.locations.map(location => {
// Modify each location
})
};
}
render() {
return <SVGMap map={this.customTaiwan} />;
}
}
```
It is recommended to not modify the SVG properties (viewBox, path), because it may break the map's display.
#### Create a map
If you create a new map (other country, city...), feel free to [contribute to svg-maps project](https://github.com/VictorCazanave/svg-maps/blob/master/CONTRIBUTING.md)!
================================================
FILE: __tests__/__mocks__/styleMock.js
================================================
export default {};
================================================
FILE: __tests__/__snapshots__/checkbox-svg-map.test.js.snap
================================================
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`CheckboxSVGMap component Rendering displays map with custom props 1`] = `
<svg
aria-label="label"
className="className"
role="group"
viewBox="viewBox"
xmlns="http://www.w3.org/2000/svg"
>
<text>
childrenBefore
</text>
<path
aria-checked={false}
aria-label="name0"
className="locationClassName"
d="path0"
id="id0"
name="name0"
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
onMouseMove={[Function]}
onMouseOut={[Function]}
onMouseOver={[Function]}
role="checkbox"
tabIndex="0"
/>
<path
aria-checked={false}
aria-label="name1"
className="locationClassName"
d="path1"
id="id1"
name="name1"
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
onMouseMove={[Function]}
onMouseOut={[Function]}
onMouseOver={[Function]}
role="checkbox"
tabIndex="0"
/>
<path
aria-checked={false}
aria-label="name2"
className="locationClassName"
d="path2"
id="id2"
name="name2"
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
onMouseMove={[Function]}
onMouseOut={[Function]}
onMouseOver={[Function]}
role="checkbox"
tabIndex="0"
/>
<text>
childrenAfter
</text>
</svg>
`;
exports[`CheckboxSVGMap component Rendering displays map with default props 1`] = `
<svg
aria-label="label"
className="svg-map"
role="group"
viewBox="viewBox"
xmlns="http://www.w3.org/2000/svg"
>
<path
aria-checked={false}
aria-label="name0"
className="svg-map__location"
d="path0"
id="id0"
name="name0"
onBlur={undefined}
onClick={[Function]}
onFocus={undefined}
onKeyDown={[Function]}
onMouseMove={undefined}
onMouseOut={undefined}
onMouseOver={undefined}
role="checkbox"
tabIndex="0"
/>
<path
aria-checked={false}
aria-label="name1"
className="svg-map__location"
d="path1"
id="id1"
name="name1"
onBlur={undefined}
onClick={[Function]}
onFocus={undefined}
onKeyDown={[Function]}
onMouseMove={undefined}
onMouseOut={undefined}
onMouseOver={undefined}
role="checkbox"
tabIndex="0"
/>
<path
aria-checked={false}
aria-label="name2"
className="svg-map__location"
d="path2"
id="id2"
name="name2"
onBlur={undefined}
onClick={[Function]}
onFocus={undefined}
onKeyDown={[Function]}
onMouseMove={undefined}
onMouseOut={undefined}
onMouseOver={undefined}
role="checkbox"
tabIndex="0"
/>
</svg>
`;
================================================
FILE: __tests__/__snapshots__/radio-svg-map.test.js.snap
================================================
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`RadioSVGMap component Rendering displays map with custom props 1`] = `
<svg
aria-label="label"
className="className"
role="radiogroup"
viewBox="viewBox"
xmlns="http://www.w3.org/2000/svg"
>
<text>
childrenBefore
</text>
<path
aria-checked={null}
aria-label="name0"
className="locationClassName"
d="path0"
id="id0"
name="name0"
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
onMouseMove={[Function]}
onMouseOut={[Function]}
onMouseOver={[Function]}
role="radio"
tabIndex="0"
/>
<path
aria-checked={null}
aria-label="name1"
className="locationClassName"
d="path1"
id="id1"
name="name1"
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
onMouseMove={[Function]}
onMouseOut={[Function]}
onMouseOver={[Function]}
role="radio"
tabIndex="-1"
/>
<path
aria-checked={null}
aria-label="name2"
className="locationClassName"
d="path2"
id="id2"
name="name2"
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
onMouseMove={[Function]}
onMouseOut={[Function]}
onMouseOver={[Function]}
role="radio"
tabIndex="-1"
/>
<text>
childrenAfter
</text>
</svg>
`;
exports[`RadioSVGMap component Rendering displays map with default props 1`] = `
<svg
aria-label="label"
className="svg-map"
role="radiogroup"
viewBox="viewBox"
xmlns="http://www.w3.org/2000/svg"
>
<path
aria-checked={null}
aria-label="name0"
className="svg-map__location"
d="path0"
id="id0"
name="name0"
onBlur={undefined}
onClick={[Function]}
onFocus={undefined}
onKeyDown={[Function]}
onMouseMove={undefined}
onMouseOut={undefined}
onMouseOver={undefined}
role="radio"
tabIndex="0"
/>
<path
aria-checked={null}
aria-label="name1"
className="svg-map__location"
d="path1"
id="id1"
name="name1"
onBlur={undefined}
onClick={[Function]}
onFocus={undefined}
onKeyDown={[Function]}
onMouseMove={undefined}
onMouseOut={undefined}
onMouseOver={undefined}
role="radio"
tabIndex="-1"
/>
<path
aria-checked={null}
aria-label="name2"
className="svg-map__location"
d="path2"
id="id2"
name="name2"
onBlur={undefined}
onClick={[Function]}
onFocus={undefined}
onKeyDown={[Function]}
onMouseMove={undefined}
onMouseOut={undefined}
onMouseOver={undefined}
role="radio"
tabIndex="-1"
/>
</svg>
`;
================================================
FILE: __tests__/__snapshots__/svg-map.test.js.snap
================================================
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`SVGMap component Properties displays map with custom function location props 1`] = `
<svg
aria-label="label"
className="svg-map"
role="none"
viewBox="viewBox"
xmlns="http://www.w3.org/2000/svg"
>
<path
aria-checked={undefined}
aria-label="name0-0"
className="locationClassName-0"
d="path0"
id="id0"
name="name0"
onBlur={undefined}
onClick={undefined}
onFocus={undefined}
onKeyDown={undefined}
onMouseMove={undefined}
onMouseOut={undefined}
onMouseOver={undefined}
role="none"
tabIndex="locationTabIndex-0"
/>
<path
aria-checked={undefined}
aria-label="name1-1"
className="locationClassName-1"
d="path1"
id="id1"
name="name1"
onBlur={undefined}
onClick={undefined}
onFocus={undefined}
onKeyDown={undefined}
onMouseMove={undefined}
onMouseOut={undefined}
onMouseOver={undefined}
role="none"
tabIndex="locationTabIndex-1"
/>
<path
aria-checked={undefined}
aria-label="name2-2"
className="locationClassName-2"
d="path2"
id="id2"
name="name2"
onBlur={undefined}
onClick={undefined}
onFocus={undefined}
onKeyDown={undefined}
onMouseMove={undefined}
onMouseOut={undefined}
onMouseOver={undefined}
role="none"
tabIndex="locationTabIndex-2"
/>
</svg>
`;
exports[`SVGMap component Properties displays map with custom props 1`] = `
<svg
aria-label="label"
className="className"
role="role"
viewBox="viewBox"
xmlns="http://www.w3.org/2000/svg"
>
<text>
childrenBefore
</text>
<path
aria-checked="isLocationSelected"
aria-label="name0"
className="locationClassName"
d="path0"
id="id0"
name="name0"
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
onMouseMove={[Function]}
onMouseOut={[Function]}
onMouseOver={[Function]}
role="locationRole"
tabIndex="locationTabIndex"
/>
<path
aria-checked="isLocationSelected"
aria-label="name1"
className="locationClassName"
d="path1"
id="id1"
name="name1"
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
onMouseMove={[Function]}
onMouseOut={[Function]}
onMouseOver={[Function]}
role="locationRole"
tabIndex="locationTabIndex"
/>
<path
aria-checked="isLocationSelected"
aria-label="name2"
className="locationClassName"
d="path2"
id="id2"
name="name2"
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onKeyDown={[Function]}
onMouseMove={[Function]}
onMouseOut={[Function]}
onMouseOver={[Function]}
role="locationRole"
tabIndex="locationTabIndex"
/>
<text>
childrenAfter
</text>
</svg>
`;
exports[`SVGMap component Properties displays map with default props 1`] = `
<svg
aria-label="label"
className="svg-map"
role="none"
viewBox="viewBox"
xmlns="http://www.w3.org/2000/svg"
>
<path
aria-checked={undefined}
aria-label="name0"
className="svg-map__location"
d="path0"
id="id0"
name="name0"
onBlur={undefined}
onClick={undefined}
onFocus={undefined}
onKeyDown={undefined}
onMouseMove={undefined}
onMouseOut={undefined}
onMouseOver={undefined}
role="none"
tabIndex="0"
/>
<path
aria-checked={undefined}
aria-label="name1"
className="svg-map__location"
d="path1"
id="id1"
name="name1"
onBlur={undefined}
onClick={undefined}
onFocus={undefined}
onKeyDown={undefined}
onMouseMove={undefined}
onMouseOut={undefined}
onMouseOver={undefined}
role="none"
tabIndex="0"
/>
<path
aria-checked={undefined}
aria-label="name2"
className="svg-map__location"
d="path2"
id="id2"
name="name2"
onBlur={undefined}
onClick={undefined}
onFocus={undefined}
onKeyDown={undefined}
onMouseMove={undefined}
onMouseOut={undefined}
onMouseOver={undefined}
role="none"
tabIndex="0"
/>
</svg>
`;
================================================
FILE: __tests__/checkbox-svg-map.test.js
================================================
import React from 'react';
import renderer from 'react-test-renderer';
import { mount } from 'enzyme';
import FakeMap from './fake-map';
import { CheckboxSVGMap } from '../src';
// TODO: Try to make it more readable
// TODO: Create utility functions to avoid code duplication
describe('CheckboxSVGMap component', () => {
let wrapper;
describe('Navigation', () => {
const locationSelector = '#id0';
let location;
beforeEach(() => {
wrapper = mount(<CheckboxSVGMap map={FakeMap} />);
location = wrapper.find(locationSelector);
});
afterEach(() => {
wrapper.unmount();
});
describe('Mouse', () => {
test('selects location when clicking on not yet selected location', () => {
expect(location.props()['aria-checked']).toBeFalsy();
location.simulate('click');
wrapper.update();
location = wrapper.find(locationSelector);
expect(location.props()['aria-checked']).toBeTruthy();
});
test('deselects location when clicking on already selected location', () => {
location.simulate('click');
wrapper.update();
location = wrapper.find(locationSelector);
expect(location.props()['aria-checked']).toBeTruthy();
location.simulate('click');
wrapper.update();
location = wrapper.find(locationSelector);
expect(location.props()['aria-checked']).toBeFalsy();
});
});
describe('Keyboard', () => {
test('selects focused location when hitting spacebar', () => {
expect(location.props()['aria-checked']).toBeFalsy();
location.simulate('focus');
location.simulate('keydown', { keyCode: 32 });
wrapper.update();
location = wrapper.find(locationSelector);
expect(location.props()['aria-checked']).toBeTruthy();
});
test('does not select focused location when hitting other key', () => {
expect(location.props()['aria-checked']).toBeFalsy();
location.simulate('focus');
location.simulate('keydown', { keyCode: 31 });
wrapper.update();
location = wrapper.find(locationSelector);
expect(location.props()['aria-checked']).toBeFalsy();
});
test('deselects focused already selected location when hitting spacebar', () => {
location.simulate('focus');
location.simulate('keydown', { keyCode: 32 });
wrapper.update();
location = wrapper.find(locationSelector);
expect(location.props()['aria-checked']).toBeTruthy();
location.simulate('focus');
location.simulate('keydown', { keyCode: 32 });
wrapper.update();
location = wrapper.find(locationSelector);
expect(location.props()['aria-checked']).toBeFalsy();
});
});
});
describe('Communication', () => {
// Create element to attach component to it and avoid warnings when attached to document.body
// https://stackoverflow.com/a/49025532/9826498
const container = document.createElement('div');
document.body.appendChild(container);
const handleOnChange = jest.fn();
let selectedLocation;
let otherSelectedLocation;
let unselectedLocation;
beforeEach(() => {
wrapper = mount(
<CheckboxSVGMap
map={FakeMap}
selectedLocationIds={['id0', 'id1', 'invalid-id']}
onChange={handleOnChange}
/>,
{ attachTo: container }
);
selectedLocation = wrapper.find('#id0');
otherSelectedLocation = wrapper.find('#id1');
unselectedLocation = wrapper.find('#id2');
});
afterEach(() => {
wrapper.unmount();
handleOnChange.mockClear();
});
test('selects initial locations when valid ids are provided', () => {
expect(selectedLocation.props()['aria-checked']).toBeTruthy();
expect(otherSelectedLocation.props()['aria-checked']).toBeTruthy();
expect(unselectedLocation.props()['aria-checked']).toBeFalsy();
});
test('calls onChange handler when selecting location', () => {
unselectedLocation.simulate('click');
expect(handleOnChange).toHaveBeenCalledWith([
selectedLocation.getDOMNode(),
otherSelectedLocation.getDOMNode(),
unselectedLocation.getDOMNode()
]);
});
test('calls onChange handler when deselecting location', () => {
otherSelectedLocation.simulate('click');
expect(handleOnChange).toHaveBeenCalledWith([selectedLocation.getDOMNode()]);
});
});
describe('Rendering', () => {
test('displays map with default props', () => {
const component = renderer.create(<CheckboxSVGMap map={FakeMap} />);
const tree = component.toJSON();
expect(tree).toMatchSnapshot();
});
test('displays map with custom props', () => {
const eventHandler = () => 'eventHandler';
const component = renderer.create(
<CheckboxSVGMap map={FakeMap}
className="className"
locationClassName="locationClassName"
onLocationMouseOver={eventHandler}
onLocationMouseOut={eventHandler}
onLocationMouseMove={eventHandler}
onLocationFocus={eventHandler}
onLocationBlur={eventHandler}
onChange={eventHandler}
childrenBefore={<text>childrenBefore</text>}
childrenAfter={<text>childrenAfter</text>}
/>
);
const tree = component.toJSON();
expect(tree).toMatchSnapshot();
});
});
});
================================================
FILE: __tests__/fake-map.js
================================================
export default {
label: 'label',
viewBox: 'viewBox',
locations: [
{
name: 'name0',
id: 'id0',
path: 'path0'
},
{
name: 'name1',
id: 'id1',
path: 'path1'
},
{
name: 'name2',
id: 'id2',
path: 'path2'
}
]
};
================================================
FILE: __tests__/radio-svg-map.test.js
================================================
import React from 'react';
import ReactDOM from 'react-dom';
import renderer from 'react-test-renderer';
import { mount } from 'enzyme';
import FakeMap from './fake-map';
import { RadioSVGMap } from '../src';
// TODO: Try to make it more readable
// TODO: Create utility functions to avoid code duplication
describe('RadioSVGMap component', () => {
const locationSelector = '#id1';
const previousLocationSelector = '#id0';
const nextLocationSelector = '#id2';
let wrapper;
let location;
let previousLocation;
let nextLocation;
describe('Navigation', () => {
beforeEach(() => {
wrapper = mount(<RadioSVGMap map={FakeMap} />);
location = wrapper.find(locationSelector);
previousLocation = wrapper.find(previousLocationSelector);
nextLocation = wrapper.find(nextLocationSelector);
});
afterEach(() => {
wrapper.unmount();
});
describe('Mouse', () => {
test('selects location when clicking on not yet selected location', () => {
expect(location.props()['aria-checked']).toBeFalsy();
location.simulate('click');
wrapper.update();
location = wrapper.find(locationSelector);
expect(location.props()['aria-checked']).toBeTruthy();
});
test('does not deselect location when clicking on already selected location', () => {
location.simulate('click');
wrapper.update();
location = wrapper.find(locationSelector);
expect(location.props()['aria-checked']).toBeTruthy();
location.simulate('click');
wrapper.update();
location = wrapper.find(locationSelector);
expect(location.props()['aria-checked']).toBeTruthy();
});
test('selects new location and deselects former selected when clicking on new location', () => {
location.simulate('click');
wrapper.update();
location = wrapper.find(locationSelector);
expect(location.props()['aria-checked']).toBeTruthy();
expect(previousLocation.props()['aria-checked']).toBeFalsy();
previousLocation.simulate('click');
wrapper.update();
location = wrapper.find(locationSelector);
previousLocation = wrapper.find(previousLocationSelector);
expect(location.props()['aria-checked']).toBeFalsy();
expect(previousLocation.props()['aria-checked']).toBeTruthy();
});
test('makes location focusable when selected', () => {
expect(location.props()['tabIndex']).toEqual('-1');
location.simulate('click');
wrapper.update();
location = wrapper.find(locationSelector);
expect(location.props()['tabIndex']).toEqual('0');
});
});
describe('Keyboard', () => {
test('selects focused not yet selected location when hitting spacebar', () => {
expect(location.props()['aria-checked']).toBeFalsy();
location.simulate('focus');
location.simulate('keydown', { keyCode: 32 });
wrapper.update();
location = wrapper.find(locationSelector);
expect(location.props()['aria-checked']).toBeTruthy();
});
test('does not deselect focused already selected location when hitting spacebar', () => {
location.simulate('focus');
location.simulate('keydown', { keyCode: 32 });
wrapper.update();
location = wrapper.find(locationSelector);
expect(location.props()['aria-checked']).toBeTruthy();
location.simulate('focus');
location.simulate('keydown', { keyCode: 32 });
wrapper.update();
location = wrapper.find(locationSelector);
expect(location.props()['aria-checked']).toBeTruthy();
});
test('selects next/first location when hitting down/right arrow', () => {
expect(location.props()['aria-checked']).toBeFalsy();
expect(nextLocation.props()['aria-checked']).toBeFalsy();
location.simulate('focus');
location.simulate('keydown', { keyCode: 39 });
wrapper.update();
location = wrapper.find(locationSelector);
nextLocation = wrapper.find(nextLocationSelector);
expect(location.props()['aria-checked']).toBeFalsy();
expect(nextLocation.props()['aria-checked']).toBeTruthy();
});
test('selects previous/last location when hitting up/left arrow', () => {
expect(location.props()['aria-checked']).toBeFalsy();
expect(previousLocation.props()['aria-checked']).toBeFalsy();
location.simulate('focus');
location.simulate('keydown', { keyCode: 37 });
wrapper.update();
location = wrapper.find(locationSelector);
previousLocation = wrapper.find(previousLocationSelector);
expect(location.props()['aria-checked']).toBeFalsy();
expect(previousLocation.props()['aria-checked']).toBeTruthy();
});
});
});
describe('Communication', () => {
// Create element to attach component to it and avoid warnings when attached to document.body
// https://stackoverflow.com/a/49025532/9826498
const container = document.createElement('div');
document.body.appendChild(container);
const handleOnChange = jest.fn();
beforeEach(() => {
wrapper = mount(
<RadioSVGMap
map={FakeMap}
selectedLocationId="id1"
onChange={handleOnChange}
/>,
{ attachTo: container }
);
location = wrapper.find(locationSelector);
nextLocation = wrapper.find(nextLocationSelector);
});
afterEach(() => {
wrapper.unmount();
handleOnChange.mockClear();
});
test('selects initial location when id is provided', () => {
expect(location.props()['aria-checked']).toBeTruthy();
});
test('calls onChange handler when selecting location', () => {
nextLocation.simulate('click');
expect(handleOnChange).toHaveBeenCalledWith(nextLocation.getDOMNode());
});
test('does not call onChange handler when clicking on already selected location', () => {
location.simulate('click');
expect(handleOnChange).toHaveBeenCalledTimes(0);
});
});
describe('Rendering', () => {
beforeAll(() => {
// Mock ReactDOM to avoid error
ReactDOM.findDOMNode = jest.fn(
() => ({
getElementsByTagName: jest.fn(() => ([]))
})
);
});
test('displays map with default props', () => {
const component = renderer.create(<RadioSVGMap map={FakeMap} />);
const tree = component.toJSON();
expect(tree).toMatchSnapshot();
});
test('displays map with custom props', () => {
const eventHandler = () => 'eventHandler';
const component = renderer.create(
<RadioSVGMap map={FakeMap}
className="className"
locationClassName="locationClassName"
onLocationMouseOver={eventHandler}
onLocationMouseOut={eventHandler}
onLocationMouseMove={eventHandler}
onLocationFocus={eventHandler}
onLocationBlur={eventHandler}
onChange={eventHandler}
childrenBefore={<text>childrenBefore</text>}
childrenAfter={<text>childrenAfter</text>}
/>
);
const tree = component.toJSON();
expect(tree).toMatchSnapshot();
});
});
});
================================================
FILE: __tests__/svg-map.test.js
================================================
import React from 'react';
import renderer from 'react-test-renderer';
import FakeMap from './fake-map';
import { SVGMap } from '../src/';
describe('SVGMap component', () => {
describe('Properties', () => {
test('displays map with default props', () => {
const component = renderer.create(<SVGMap map={FakeMap} />);
const tree = component.toJSON();
expect(tree).toMatchSnapshot();
});
test('displays map with custom props', () => {
const eventHandler = () => 'eventHandler';
const isLocationSelected = () => 'isLocationSelected';
const component = renderer.create(
<SVGMap map={FakeMap}
className="className"
role="role"
locationClassName="locationClassName"
locationTabIndex="locationTabIndex"
locationRole="locationRole"
onLocationMouseOver={eventHandler}
onLocationMouseOut={eventHandler}
onLocationMouseMove={eventHandler}
onLocationClick={eventHandler}
onLocationKeyDown={eventHandler}
onLocationFocus={eventHandler}
onLocationBlur={eventHandler}
isLocationSelected={isLocationSelected}
childrenBefore={<text>childrenBefore</text>}
childrenAfter={<text>childrenAfter</text>}
/>
);
const tree = component.toJSON();
expect(tree).toMatchSnapshot();
});
test('displays map with custom function location props', () => {
const locationClassName = (location, index) => `locationClassName-${index}`;
const locationTabIndex = (location, index) => `locationTabIndex-${index}`;
const locationAriaLabel = (location, index) => `${location.name}-${index}`;
const component = renderer.create(
<SVGMap map={FakeMap}
locationClassName={locationClassName}
locationTabIndex={locationTabIndex}
locationAriaLabel={locationAriaLabel}
/>
);
const tree = component.toJSON();
expect(tree).toMatchSnapshot();
});
});
});
================================================
FILE: docs/index.html
================================================
<!DOCTYPE html> <html lang=en> <head> <meta charset=utf-8> <title>Examples of react-svg-map</title> </head> <body> <noscript> You need to enable JavaScript to run this app. </noscript> <div id=root></div> <script type="text/javascript" src="index.js"></script></body> </html>
================================================
FILE: docs/index.js
================================================
!function(l){var e={};function t(n){if(e[n])return e[n].exports;var L=e[n]={i:n,l:!1,exports:{}};return l[n].call(L.exports,L,L.exports,t),L.l=!0,L.exports}t.m=l,t.c=e,t.d=function(l,e,n){t.o(l,e)||Object.defineProperty(l,e,{enumerable:!0,get:n})},t.r=function(l){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})},t.t=function(l,e){if(1&e&&(l=t(l)),8&e)return l;if(4&e&&"object"==typeof l&&l&&l.__esModule)return l;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:l}),2&e&&"string"!=typeof l)for(var L in l)t.d(n,L,function(e){return l[e]}.bind(null,L));return n},t.n=function(l){var e=l&&l.__esModule?function(){return l.default}:function(){return l};return t.d(e,"a",e),e},t.o=function(l,e){return Object.prototype.hasOwnProperty.call(l,e)},t.p="",t(t.s=9)}([function(l,e,t){"use strict";l.exports=t(10)},function(l,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RadioSVGMap=e.CheckboxSVGMap=e.SVGMap=void 0;var n=r(t(3)),L=r(t(20)),o=r(t(21));function r(l){return l&&l.__esModule?l:{default:l}}e.SVGMap=n.default,e.CheckboxSVGMap=L.default,e.RadioSVGMap=o.default},function(l,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLocationId=function(l){return l.target.id},e.getLocationName=function(l){return l.target.attributes.name.value},e.getLocationSelected=function(l){return"true"===l.target.attributes["aria-checked"].value}},function(l,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(t(0)),L=o(t(4));function o(l){return l&&l.__esModule?l:{default:l}}function r(l){return n.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:l.map.viewBox,className:l.className,role:l.role,"aria-label":l.map.label},l.map.locations.map(function(e,t){return n.default.createElement("path",{id:e.id,name:e.name,d:e.path,className:"function"==typeof l.locationClassName?l.locationClassName(e,t):l.locationClassName,tabIndex:"function"==typeof l.locationTabIndex?l.locationTabIndex(e,t):l.locationTabIndex,role:l.locationRole,"aria-label":e.name,"aria-checked":l.isLocationSelected&&l.isLocationSelected(e,t),onMouseOver:l.onLocationMouseOver,onMouseOut:l.onLocationMouseOut,onMouseMove:l.onLocationMouseMove,onClick:l.onLocationClick,onKeyDown:l.onLocationKeyDown,onFocus:l.onLocationFocus,onBlur:l.onLocationBlur,key:e.id})}))}r.propTypes={map:L.default.shape({viewBox:L.default.string.isRequired,locations:L.default.arrayOf(L.default.shape({path:L.default.string.isRequired,id:L.default.string.isRequired,name:L.default.string})).isRequired,label:L.default.string}).isRequired,className:L.default.string,role:L.default.string,locationClassName:L.default.oneOfType([L.default.string,L.default.func]),locationTabIndex:L.default.oneOfType([L.default.string,L.default.func]),locationRole:L.default.string,onLocationMouseOver:L.default.func,onLocationMouseOut:L.default.func,onLocationMouseMove:L.default.func,onLocationClick:L.default.func,onLocationKeyDown:L.default.func,onLocationFocus:L.default.func,onLocationBlur:L.default.func,isLocationSelected:L.default.func},r.defaultProps={className:"svg-map",role:"none",locationClassName:"svg-map__location"},e.default=r},function(l,e,t){l.exports=t(18)()},function(l,e,t){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var n=Object.getOwnPropertySymbols,L=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;l.exports=function(){try{if(!Object.assign)return!1;var l=new String("abc");if(l[5]="de","5"===Object.getOwnPropertyNames(l)[0])return!1;for(var e={},t=0;t<10;t++)e["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(l){return e[l]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(l){n[l]=l}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(l){return!1}}()?Object.assign:function(l,e){for(var t,r,a=function(l){if(null==l)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(l)}(l),i=1;i<arguments.length;i++){for(var u in t=Object(arguments[i]))L.call(t,u)&&(a[u]=t[u]);if(n){r=n(t);for(var c=0;c<r.length;c++)o.call(t,r[c])&&(a[r[c]]=t[r[c]])}}return a}},function(l,e,t){"use strict";!function l(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(l){console.error(l)}}(),l.exports=t(11)},function(l,e){l.exports=function(l){var e=[];return e.toString=function(){return this.map(function(e){var t=function(l,e){var t=l[1]||"",n=l[3];if(!n)return t;if(e&&"function"==typeof btoa){var L=(r=n,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),o=n.sources.map(function(l){return"/*# sourceURL="+n.sourceRoot+l+" */"});return[t].concat(o).concat([L]).join("\n")}var r;return[t].join("\n")}(e,l);return e[2]?"@media "+e[2]+"{"+t+"}":t}).join("")},e.i=function(l,t){"string"==typeof l&&(l=[[null,l,""]]);for(var n={},L=0;L<this.length;L++){var o=this[L][0];"number"==typeof o&&(n[o]=!0)}for(L=0;L<l.length;L++){var r=l[L];"number"==typeof r[0]&&n[r[0]]||(t&&!r[2]?r[2]=t:t&&(r[2]="("+r[2]+") and ("+t+")"),e.push(r))}},e}},function(l,e,t){var n,L,o={},r=(n=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===L&&(L=n.apply(this,arguments)),L}),a=function(l){var e={};return function(l){if("function"==typeof l)return l();if(void 0===e[l]){var t=function(l){return document.querySelector(l)}.call(this,l);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(l){t=null}e[l]=t}return e[l]}}(),i=null,u=0,c=[],s=t(30);function f(l,e){for(var t=0;t<l.length;t++){var n=l[t],L=o[n.id];if(L){L.refs++;for(var r=0;r<L.parts.length;r++)L.parts[r](n.parts[r]);for(;r<n.parts.length;r++)L.parts.push(v(n.parts[r],e))}else{var a=[];for(r=0;r<n.parts.length;r++)a.push(v(n.parts[r],e));o[n.id]={id:n.id,refs:1,parts:a}}}}function d(l,e){for(var t=[],n={},L=0;L<l.length;L++){var o=l[L],r=e.base?o[0]+e.base:o[0],a={css:o[1],media:o[2],sourceMap:o[3]};n[r]?n[r].parts.push(a):t.push(n[r]={id:r,parts:[a]})}return t}function p(l,e){var t=a(l.insertInto);if(!t)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var n=c[c.length-1];if("top"===l.insertAt)n?n.nextSibling?t.insertBefore(e,n.nextSibling):t.appendChild(e):t.insertBefore(e,t.firstChild),c.push(e);else if("bottom"===l.insertAt)t.appendChild(e);else{if("object"!=typeof l.insertAt||!l.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var L=a(l.insertInto+" "+l.insertAt.before);t.insertBefore(e,L)}}function m(l){if(null===l.parentNode)return!1;l.parentNode.removeChild(l);var e=c.indexOf(l);e>=0&&c.splice(e,1)}function h(l){var e=document.createElement("style");return l.attrs.type="text/css",y(e,l.attrs),p(l,e),e}function y(l,e){Object.keys(e).forEach(function(t){l.setAttribute(t,e[t])})}function v(l,e){var t,n,L,o;if(e.transform&&l.css){if(!(o=e.transform(l.css)))return function(){};l.css=o}if(e.singleton){var r=u++;t=i||(i=h(e)),n=_.bind(null,t,r,!1),L=_.bind(null,t,r,!0)}else l.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(t=function(l){var e=document.createElement("link");return l.attrs.type="text/css",l.attrs.rel="stylesheet",y(e,l.attrs),p(l,e),e}(e),n=function(l,e,t){var n=t.css,L=t.sourceMap,o=void 0===e.convertToAbsoluteUrls&&L;(e.convertToAbsoluteUrls||o)&&(n=s(n));L&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(L))))+" */");var r=new Blob([n],{type:"text/css"}),a=l.href;l.href=URL.createObjectURL(r),a&&URL.revokeObjectURL(a)}.bind(null,t,e),L=function(){m(t),t.href&&URL.revokeObjectURL(t.href)}):(t=h(e),n=function(l,e){var t=e.css,n=e.media;n&&l.setAttribute("media",n);if(l.styleSheet)l.styleSheet.cssText=t;else{for(;l.firstChild;)l.removeChild(l.firstChild);l.appendChild(document.createTextNode(t))}}.bind(null,t),L=function(){m(t)});return n(l),function(e){if(e){if(e.css===l.css&&e.media===l.media&&e.sourceMap===l.sourceMap)return;n(l=e)}else L()}}l.exports=function(l,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=r()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var t=d(l,e);return f(t,e),function(l){for(var n=[],L=0;L<t.length;L++){var r=t[L];(a=o[r.id]).refs--,n.push(a)}l&&f(d(l,e),e);for(L=0;L<n.length;L++){var a;if(0===(a=n[L]).refs){for(var i=0;i<a.parts.length;i++)a.parts[i]();delete o[a.id]}}}};var g,b=(g=[],function(l,e){return g[l]=e,g.filter(Boolean).join("\n")});function _(l,e,t,n){var L=t?"":n.css;if(l.styleSheet)l.styleSheet.cssText=b(e,L);else{var o=document.createTextNode(L),r=l.childNodes;r[e]&&l.removeChild(r[e]),r.length?l.insertBefore(o,r[e]):l.appendChild(o)}}},function(l,e,t){"use strict";var n=r(t(0)),L=r(t(6)),o=r(t(15));function r(l){return l&&l.__esModule?l:{default:l}}L.default.render(n.default.createElement(o.default,null),document.getElementById("root"))},function(l,e,t){"use strict";
/** @license React v16.7.0
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var n=t(5),L="function"==typeof Symbol&&Symbol.for,o=L?Symbol.for("react.element"):60103,r=L?Symbol.for("react.portal"):60106,a=L?Symbol.for("react.fragment"):60107,i=L?Symbol.for("react.strict_mode"):60108,u=L?Symbol.for("react.profiler"):60114,c=L?Symbol.for("react.provider"):60109,s=L?Symbol.for("react.context"):60110,f=L?Symbol.for("react.concurrent_mode"):60111,d=L?Symbol.for("react.forward_ref"):60112,p=L?Symbol.for("react.suspense"):60113,m=L?Symbol.for("react.memo"):60115,h=L?Symbol.for("react.lazy"):60116,y="function"==typeof Symbol&&Symbol.iterator;function v(l){for(var e=arguments.length-1,t="https://reactjs.org/docs/error-decoder.html?invariant="+l,n=0;n<e;n++)t+="&args[]="+encodeURIComponent(arguments[n+1]);!function(l,e,t,n,L,o,r,a){if(!l){if(l=void 0,void 0===e)l=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=[t,n,L,o,r,a],u=0;(l=Error(e.replace(/%s/g,function(){return i[u++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}(!1,"Minified React error #"+l+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",t)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function _(l,e,t){this.props=l,this.context=e,this.refs=b,this.updater=t||g}function k(){}function w(l,e,t){this.props=l,this.context=e,this.refs=b,this.updater=t||g}_.prototype.isReactComponent={},_.prototype.setState=function(l,e){"object"!=typeof l&&"function"!=typeof l&&null!=l&&v("85"),this.updater.enqueueSetState(this,l,e,"setState")},_.prototype.forceUpdate=function(l){this.updater.enqueueForceUpdate(this,l,"forceUpdate")},k.prototype=_.prototype;var x=w.prototype=new k;x.constructor=w,n(x,_.prototype),x.isPureReactComponent=!0;var M={current:null,currentDispatcher:null},C=Object.prototype.hasOwnProperty,T={key:!0,ref:!0,__self:!0,__source:!0};function E(l,e,t){var n=void 0,L={},r=null,a=null;if(null!=e)for(n in void 0!==e.ref&&(a=e.ref),void 0!==e.key&&(r=""+e.key),e)C.call(e,n)&&!T.hasOwnProperty(n)&&(L[n]=e[n]);var i=arguments.length-2;if(1===i)L.children=t;else if(1<i){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+2];L.children=u}if(l&&l.defaultProps)for(n in i=l.defaultProps)void 0===L[n]&&(L[n]=i[n]);return{$$typeof:o,type:l,key:r,ref:a,props:L,_owner:M.current}}function S(l){return"object"==typeof l&&null!==l&&l.$$typeof===o}var z=/\/+/g,O=[];function P(l,e,t,n){if(O.length){var L=O.pop();return L.result=l,L.keyPrefix=e,L.func=t,L.context=n,L.count=0,L}return{result:l,keyPrefix:e,func:t,context:n,count:0}}function N(l){l.result=null,l.keyPrefix=null,l.func=null,l.context=null,l.count=0,10>O.length&&O.push(l)}function I(l,e,t){return null==l?0:function l(e,t,n,L){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var i=!1;if(null===e)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case o:case r:i=!0}}if(i)return n(L,e,""===t?"."+j(e,0):t),1;if(i=0,t=""===t?".":t+":",Array.isArray(e))for(var u=0;u<e.length;u++){var c=t+j(a=e[u],u);i+=l(a,c,n,L)}else if(c=null===e||"object"!=typeof e?null:"function"==typeof(c=y&&e[y]||e["@@iterator"])?c:null,"function"==typeof c)for(e=c.call(e),u=0;!(a=e.next()).done;)i+=l(a=a.value,c=t+j(a,u++),n,L);else"object"===a&&v("31","[object Object]"==(n=""+e)?"object with keys {"+Object.keys(e).join(", ")+"}":n,"");return i}(l,"",e,t)}function j(l,e){return"object"==typeof l&&null!==l&&null!=l.key?function(l){var e={"=":"=0",":":"=2"};return"$"+(""+l).replace(/[=:]/g,function(l){return e[l]})}(l.key):e.toString(36)}function F(l,e){l.func.call(l.context,e,l.count++)}function R(l,e,t){var n=l.result,L=l.keyPrefix;l=l.func.call(l.context,e,l.count++),Array.isArray(l)?D(l,n,t,function(l){return l}):null!=l&&(S(l)&&(l=function(l,e){return{$$typeof:o,type:l.type,key:e,ref:l.ref,props:l.props,_owner:l._owner}}(l,L+(!l.key||e&&e.key===l.key?"":(""+l.key).replace(z,"$&/")+"/")+t)),n.push(l))}function D(l,e,t,n,L){var o="";null!=t&&(o=(""+t).replace(z,"$&/")+"/"),I(l,R,e=P(e,o,n,L)),N(e)}var U={Children:{map:function(l,e,t){if(null==l)return l;var n=[];return D(l,n,null,e,t),n},forEach:function(l,e,t){if(null==l)return l;I(l,F,e=P(null,null,e,t)),N(e)},count:function(l){return I(l,function(){return null},null)},toArray:function(l){var e=[];return D(l,e,null,function(l){return l}),e},only:function(l){return S(l)||v("143"),l}},createRef:function(){return{current:null}},Component:_,PureComponent:w,createContext:function(l,e){return void 0===e&&(e=null),(l={$$typeof:s,_calculateChangedBits:e,_currentValue:l,_currentValue2:l,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:l},l.Consumer=l},forwardRef:function(l){return{$$typeof:d,render:l}},lazy:function(l){return{$$typeof:h,_ctor:l,_status:-1,_result:null}},memo:function(l,e){return{$$typeof:m,type:l,compare:void 0===e?null:e}},Fragment:a,StrictMode:i,Suspense:p,createElement:E,cloneElement:function(l,e,t){null==l&&v("267",l);var L=void 0,r=n({},l.props),a=l.key,i=l.ref,u=l._owner;if(null!=e){void 0!==e.ref&&(i=e.ref,u=M.current),void 0!==e.key&&(a=""+e.key);var c=void 0;for(L in l.type&&l.type.defaultProps&&(c=l.type.defaultProps),e)C.call(e,L)&&!T.hasOwnProperty(L)&&(r[L]=void 0===e[L]&&void 0!==c?c[L]:e[L])}if(1===(L=arguments.length-2))r.children=t;else if(1<L){c=Array(L);for(var s=0;s<L;s++)c[s]=arguments[s+2];r.children=c}return{$$typeof:o,type:l.type,key:a,ref:i,props:r,_owner:u}},createFactory:function(l){var e=E.bind(null,l);return e.type=l,e},isValidElement:S,version:"16.7.0",unstable_ConcurrentMode:f,unstable_Profiler:u,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:M,assign:n}},A={default:U},B=A&&U||A;l.exports=B.default||B},function(l,e,t){"use strict";
/** @license React v16.7.0
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var n=t(0),L=t(5),o=t(12);function r(l){for(var e=arguments.length-1,t="https://reactjs.org/docs/error-decoder.html?invariant="+l,n=0;n<e;n++)t+="&args[]="+encodeURIComponent(arguments[n+1]);!function(l,e,t,n,L,o,r,a){if(!l){if(l=void 0,void 0===e)l=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=[t,n,L,o,r,a],u=0;(l=Error(e.replace(/%s/g,function(){return i[u++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}(!1,"Minified React error #"+l+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",t)}n||r("227");var a=!1,i=null,u=!1,c=null,s={onError:function(l){a=!0,i=l}};function f(l,e,t,n,L,o,r,u,c){a=!1,i=null,function(l,e,t,n,L,o,r,a,i){var u=Array.prototype.slice.call(arguments,3);try{e.apply(t,u)}catch(l){this.onError(l)}}.apply(s,arguments)}var d=null,p={};function m(){if(d)for(var l in p){var e=p[l],t=d.indexOf(l);if(-1<t||r("96",l),!y[t])for(var n in e.extractEvents||r("97",l),y[t]=e,t=e.eventTypes){var L=void 0,o=t[n],a=e,i=n;v.hasOwnProperty(i)&&r("99",i),v[i]=o;var u=o.phasedRegistrationNames;if(u){for(L in u)u.hasOwnProperty(L)&&h(u[L],a,i);L=!0}else o.registrationName?(h(o.registrationName,a,i),L=!0):L=!1;L||r("98",n,l)}}}function h(l,e,t){g[l]&&r("100",l),g[l]=e,b[l]=e.eventTypes[t].dependencies}var y=[],v={},g={},b={},_=null,k=null,w=null;function x(l,e,t){var n=l.type||"unknown-event";l.currentTarget=w(t),function(l,e,t,n,L,o,s,d,p){if(f.apply(this,arguments),a){if(a){var m=i;a=!1,i=null}else r("198"),m=void 0;u||(u=!0,c=m)}}(n,e,void 0,l),l.currentTarget=null}function M(l,e){return null==e&&r("30"),null==l?e:Array.isArray(l)?Array.isArray(e)?(l.push.apply(l,e),l):(l.push(e),l):Array.isArray(e)?[l].concat(e):[l,e]}function C(l,e,t){Array.isArray(l)?l.forEach(e,t):l&&e.call(t,l)}var T=null;function E(l){if(l){var e=l._dispatchListeners,t=l._dispatchInstances;if(Array.isArray(e))for(var n=0;n<e.length&&!l.isPropagationStopped();n++)x(l,e[n],t[n]);else e&&x(l,e,t);l._dispatchListeners=null,l._dispatchInstances=null,l.isPersistent()||l.constructor.release(l)}}var S={injectEventPluginOrder:function(l){d&&r("101"),d=Array.prototype.slice.call(l),m()},injectEventPluginsByName:function(l){var e,t=!1;for(e in l)if(l.hasOwnProperty(e)){var n=l[e];p.hasOwnProperty(e)&&p[e]===n||(p[e]&&r("102",e),p[e]=n,t=!0)}t&&m()}};function z(l,e){var t=l.stateNode;if(!t)return null;var n=_(t);if(!n)return null;t=n[e];l:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(n=!n.disabled)||(n=!("button"===(l=l.type)||"input"===l||"select"===l||"textarea"===l)),l=!n;break l;default:l=!1}return l?null:(t&&"function"!=typeof t&&r("231",e,typeof t),t)}function O(l){if(null!==l&&(T=M(T,l)),l=T,T=null,l&&(C(l,E),T&&r("95"),u))throw l=c,u=!1,c=null,l}var P=Math.random().toString(36).slice(2),N="__reactInternalInstance$"+P,I="__reactEventHandlers$"+P;function j(l){if(l[N])return l[N];for(;!l[N];){if(!l.parentNode)return null;l=l.parentNode}return 5===(l=l[N]).tag||6===l.tag?l:null}function F(l){return!(l=l[N])||5!==l.tag&&6!==l.tag?null:l}function R(l){if(5===l.tag||6===l.tag)return l.stateNode;r("33")}function D(l){return l[I]||null}function U(l){do{l=l.return}while(l&&5!==l.tag);return l||null}function A(l,e,t){(e=z(l,t.dispatchConfig.phasedRegistrationNames[e]))&&(t._dispatchListeners=M(t._dispatchListeners,e),t._dispatchInstances=M(t._dispatchInstances,l))}function B(l){if(l&&l.dispatchConfig.phasedRegistrationNames){for(var e=l._targetInst,t=[];e;)t.push(e),e=U(e);for(e=t.length;0<e--;)A(t[e],"captured",l);for(e=0;e<t.length;e++)A(t[e],"bubbled",l)}}function V(l,e,t){l&&t&&t.dispatchConfig.registrationName&&(e=z(l,t.dispatchConfig.registrationName))&&(t._dispatchListeners=M(t._dispatchListeners,e),t._dispatchInstances=M(t._dispatchInstances,l))}function W(l){l&&l.dispatchConfig.registrationName&&V(l._targetInst,null,l)}function H(l){C(l,B)}var $=!("undefined"==typeof window||!window.document||!window.document.createElement);function K(l,e){var t={};return t[l.toLowerCase()]=e.toLowerCase(),t["Webkit"+l]="webkit"+e,t["Moz"+l]="moz"+e,t}var q={animationend:K("Animation","AnimationEnd"),animationiteration:K("Animation","AnimationIteration"),animationstart:K("Animation","AnimationStart"),transitionend:K("Transition","TransitionEnd")},Q={},G={};function Y(l){if(Q[l])return Q[l];if(!q[l])return l;var e,t=q[l];for(e in t)if(t.hasOwnProperty(e)&&e in G)return Q[l]=t[e];return l}$&&(G=document.createElement("div").style,"AnimationEvent"in window||(delete q.animationend.animation,delete q.animationiteration.animation,delete q.animationstart.animation),"TransitionEvent"in window||delete q.transitionend.transition);var X=Y("animationend"),J=Y("animationiteration"),Z=Y("animationstart"),ll=Y("transitionend"),el="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),tl=null,nl=null,Ll=null;function ol(){if(Ll)return Ll;var l,e,t=nl,n=t.length,L="value"in tl?tl.value:tl.textContent,o=L.length;for(l=0;l<n&&t[l]===L[l];l++);var r=n-l;for(e=1;e<=r&&t[n-e]===L[o-e];e++);return Ll=L.slice(l,1<e?1-e:void 0)}function rl(){return!0}function al(){return!1}function il(l,e,t,n){for(var L in this.dispatchConfig=l,this._targetInst=e,this.nativeEvent=t,l=this.constructor.Interface)l.hasOwnProperty(L)&&((e=l[L])?this[L]=e(t):"target"===L?this.target=n:this[L]=t[L]);return this.isDefaultPrevented=(null!=t.defaultPrevented?t.defaultPrevented:!1===t.returnValue)?rl:al,this.isPropagationStopped=al,this}function ul(l,e,t,n){if(this.eventPool.length){var L=this.eventPool.pop();return this.call(L,l,e,t,n),L}return new this(l,e,t,n)}function cl(l){l instanceof this||r("279"),l.destructor(),10>this.eventPool.length&&this.eventPool.push(l)}function sl(l){l.eventPool=[],l.getPooled=ul,l.release=cl}L(il.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():"unknown"!=typeof l.returnValue&&(l.returnValue=!1),this.isDefaultPrevented=rl)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():"unknown"!=typeof l.cancelBubble&&(l.cancelBubble=!0),this.isPropagationStopped=rl)},persist:function(){this.isPersistent=rl},isPersistent:al,destructor:function(){var l,e=this.constructor.Interface;for(l in e)this[l]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=al,this._dispatchInstances=this._dispatchListeners=null}}),il.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},il.extend=function(l){function e(){}function t(){return n.apply(this,arguments)}var n=this;e.prototype=n.prototype;var o=new e;return L(o,t.prototype),t.prototype=o,t.prototype.constructor=t,t.Interface=L({},n.Interface,l),t.extend=n.extend,sl(t),t},sl(il);var fl=il.extend({data:null}),dl=il.extend({data:null}),pl=[9,13,27,32],ml=$&&"CompositionEvent"in window,hl=null;$&&"documentMode"in document&&(hl=document.documentMode);var yl=$&&"TextEvent"in window&&!hl,vl=$&&(!ml||hl&&8<hl&&11>=hl),gl=String.fromCharCode(32),bl={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},_l=!1;function kl(l,e){switch(l){case"keyup":return-1!==pl.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function wl(l){return"object"==typeof(l=l.detail)&&"data"in l?l.data:null}var xl=!1;var Ml={eventTypes:bl,extractEvents:function(l,e,t,n){var L=void 0,o=void 0;if(ml)l:{switch(l){case"compositionstart":L=bl.compositionStart;break l;case"compositionend":L=bl.compositionEnd;break l;case"compositionupdate":L=bl.compositionUpdate;break l}L=void 0}else xl?kl(l,t)&&(L=bl.compositionEnd):"keydown"===l&&229===t.keyCode&&(L=bl.compositionStart);return L?(vl&&"ko"!==t.locale&&(xl||L!==bl.compositionStart?L===bl.compositionEnd&&xl&&(o=ol()):(nl="value"in(tl=n)?tl.value:tl.textContent,xl=!0)),L=fl.getPooled(L,e,t,n),o?L.data=o:null!==(o=wl(t))&&(L.data=o),H(L),o=L):o=null,(l=yl?function(l,e){switch(l){case"compositionend":return wl(e);case"keypress":return 32!==e.which?null:(_l=!0,gl);case"textInput":return(l=e.data)===gl&&_l?null:l;default:return null}}(l,t):function(l,e){if(xl)return"compositionend"===l||!ml&&kl(l,e)?(l=ol(),Ll=nl=tl=null,xl=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return vl&&"ko"!==e.locale?null:e.data;default:return null}}(l,t))?((e=dl.getPooled(bl.beforeInput,e,t,n)).data=l,H(e)):e=null,null===o?e:null===e?o:[o,e]}},Cl=null,Tl=null,El=null;function Sl(l){if(l=k(l)){"function"!=typeof Cl&&r("280");var e=_(l.stateNode);Cl(l.stateNode,l.type,e)}}function zl(l){Tl?El?El.push(l):El=[l]:Tl=l}function Ol(){if(Tl){var l=Tl,e=El;if(El=Tl=null,Sl(l),e)for(l=0;l<e.length;l++)Sl(e[l])}}function Pl(l,e){return l(e)}function Nl(l,e,t){return l(e,t)}function Il(){}var jl=!1;function Fl(l,e){if(jl)return l(e);jl=!0;try{return Pl(l,e)}finally{jl=!1,(null!==Tl||null!==El)&&(Il(),Ol())}}var Rl={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Dl(l){var e=l&&l.nodeName&&l.nodeName.toLowerCase();return"input"===e?!!Rl[l.type]:"textarea"===e}function Ul(l){return(l=l.target||l.srcElement||window).correspondingUseElement&&(l=l.correspondingUseElement),3===l.nodeType?l.parentNode:l}function Al(l){if(!$)return!1;var e=(l="on"+l)in document;return e||((e=document.createElement("div")).setAttribute(l,"return;"),e="function"==typeof e[l]),e}function Bl(l){var e=l.type;return(l=l.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===e||"radio"===e)}function Vl(l){l._valueTracker||(l._valueTracker=function(l){var e=Bl(l)?"checked":"value",t=Object.getOwnPropertyDescriptor(l.constructor.prototype,e),n=""+l[e];if(!l.hasOwnProperty(e)&&void 0!==t&&"function"==typeof t.get&&"function"==typeof t.set){var L=t.get,o=t.set;return Object.defineProperty(l,e,{configurable:!0,get:function(){return L.call(this)},set:function(l){n=""+l,o.call(this,l)}}),Object.defineProperty(l,e,{enumerable:t.enumerable}),{getValue:function(){return n},setValue:function(l){n=""+l},stopTracking:function(){l._valueTracker=null,delete l[e]}}}}(l))}function Wl(l){if(!l)return!1;var e=l._valueTracker;if(!e)return!0;var t=e.getValue(),n="";return l&&(n=Bl(l)?l.checked?"true":"false":l.value),(l=n)!==t&&(e.setValue(l),!0)}var Hl=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,$l=/^(.*)[\\\/]/,Kl="function"==typeof Symbol&&Symbol.for,ql=Kl?Symbol.for("react.element"):60103,Ql=Kl?Symbol.for("react.portal"):60106,Gl=Kl?Symbol.for("react.fragment"):60107,Yl=Kl?Symbol.for("react.strict_mode"):60108,Xl=Kl?Symbol.for("react.profiler"):60114,Jl=Kl?Symbol.for("react.provider"):60109,Zl=Kl?Symbol.for("react.context"):60110,le=Kl?Symbol.for("react.concurrent_mode"):60111,ee=Kl?Symbol.for("react.forward_ref"):60112,te=Kl?Symbol.for("react.suspense"):60113,ne=Kl?Symbol.for("react.memo"):60115,Le=Kl?Symbol.for("react.lazy"):60116,oe="function"==typeof Symbol&&Symbol.iterator;function re(l){return null===l||"object"!=typeof l?null:"function"==typeof(l=oe&&l[oe]||l["@@iterator"])?l:null}function ae(l){if(null==l)return null;if("function"==typeof l)return l.displayName||l.name||null;if("string"==typeof l)return l;switch(l){case le:return"ConcurrentMode";case Gl:return"Fragment";case Ql:return"Portal";case Xl:return"Profiler";case Yl:return"StrictMode";case te:return"Suspense"}if("object"==typeof l)switch(l.$$typeof){case Zl:return"Context.Consumer";case Jl:return"Context.Provider";case ee:var e=l.render;return e=e.displayName||e.name||"",l.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case ne:return ae(l.type);case Le:if(l=1===l._status?l._result:null)return ae(l)}return null}function ie(l){var e="";do{l:switch(l.tag){case 3:case 4:case 6:case 7:case 10:case 9:var t="";break l;default:var n=l._debugOwner,L=l._debugSource,o=ae(l.type);t=null,n&&(t=ae(n.type)),n=o,o="",L?o=" (at "+L.fileName.replace($l,"")+":"+L.lineNumber+")":t&&(o=" (created by "+t+")"),t="\n in "+(n||"Unknown")+o}e+=t,l=l.return}while(l);return e}var ue=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ce=Object.prototype.hasOwnProperty,se={},fe={};function de(l,e,t,n,L){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=n,this.attributeNamespace=L,this.mustUseProperty=t,this.propertyName=l,this.type=e}var pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(l){pe[l]=new de(l,0,!1,l,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(l){var e=l[0];pe[e]=new de(e,1,!1,l[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){pe[l]=new de(l,2,!1,l.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){pe[l]=new de(l,2,!1,l,null)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(l){pe[l]=new de(l,3,!1,l.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(l){pe[l]=new de(l,3,!0,l,null)}),["capture","download"].forEach(function(l){pe[l]=new de(l,4,!1,l,null)}),["cols","rows","size","span"].forEach(function(l){pe[l]=new de(l,6,!1,l,null)}),["rowSpan","start"].forEach(function(l){pe[l]=new de(l,5,!1,l.toLowerCase(),null)});var me=/[\-:]([a-z])/g;function he(l){return l[1].toUpperCase()}function ye(l,e,t,n){var L=pe.hasOwnProperty(e)?pe[e]:null;(null!==L?0===L.type:!n&&(2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])))||(function(l,e,t,n){if(null==e||function(l,e,t,n){if(null!==t&&0===t.type)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==t?!t.acceptsBooleans:"data-"!==(l=l.toLowerCase().slice(0,5))&&"aria-"!==l);default:return!1}}(l,e,t,n))return!0;if(n)return!1;if(null!==t)switch(t.type){case 3:return!e;case 4:return!1===e;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}(e,t,L,n)&&(t=null),n||null===L?function(l){return!!ce.call(fe,l)||!ce.call(se,l)&&(ue.test(l)?fe[l]=!0:(se[l]=!0,!1))}(e)&&(null===t?l.removeAttribute(e):l.setAttribute(e,""+t)):L.mustUseProperty?l[L.propertyName]=null===t?3!==L.type&&"":t:(e=L.attributeName,n=L.attributeNamespace,null===t?l.removeAttribute(e):(t=3===(L=L.type)||4===L&&!0===t?"":""+t,n?l.setAttributeNS(n,e,t):l.setAttribute(e,t))))}function ve(l){switch(typeof l){case"boolean":case"number":case"object":case"string":case"undefined":return l;default:return""}}function ge(l,e){var t=e.checked;return L({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=t?t:l._wrapperState.initialChecked})}function be(l,e){var t=null==e.defaultValue?"":e.defaultValue,n=null!=e.checked?e.checked:e.defaultChecked;t=ve(null!=e.value?e.value:t),l._wrapperState={initialChecked:n,initialValue:t,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function _e(l,e){null!=(e=e.checked)&&ye(l,"checked",e,!1)}function ke(l,e){_e(l,e);var t=ve(e.value),n=e.type;if(null!=t)"number"===n?(0===t&&""===l.value||l.value!=t)&&(l.value=""+t):l.value!==""+t&&(l.value=""+t);else if("submit"===n||"reset"===n)return void l.removeAttribute("value");e.hasOwnProperty("value")?xe(l,e.type,t):e.hasOwnProperty("defaultValue")&&xe(l,e.type,ve(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(l.defaultChecked=!!e.defaultChecked)}function we(l,e,t){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!("submit"!==n&&"reset"!==n||void 0!==e.value&&null!==e.value))return;e=""+l._wrapperState.initialValue,t||e===l.value||(l.value=e),l.defaultValue=e}""!==(t=l.name)&&(l.name=""),l.defaultChecked=!l.defaultChecked,l.defaultChecked=!!l._wrapperState.initialChecked,""!==t&&(l.name=t)}function xe(l,e,t){"number"===e&&l.ownerDocument.activeElement===l||(null==t?l.defaultValue=""+l._wrapperState.initialValue:l.defaultValue!==""+t&&(l.defaultValue=""+t))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(l){var e=l.replace(me,he);pe[e]=new de(e,1,!1,l,null)}),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(l){var e=l.replace(me,he);pe[e]=new de(e,1,!1,l,"http://www.w3.org/1999/xlink")}),["xml:base","xml:lang","xml:space"].forEach(function(l){var e=l.replace(me,he);pe[e]=new de(e,1,!1,l,"http://www.w3.org/XML/1998/namespace")}),pe.tabIndex=new de("tabIndex",1,!1,"tabindex",null);var Me={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function Ce(l,e,t){return(l=il.getPooled(Me.change,l,e,t)).type="change",zl(t),H(l),l}var Te=null,Ee=null;function Se(l){O(l)}function ze(l){if(Wl(R(l)))return l}function Oe(l,e){if("change"===l)return e}var Pe=!1;function Ne(){Te&&(Te.detachEvent("onpropertychange",Ie),Ee=Te=null)}function Ie(l){"value"===l.propertyName&&ze(Ee)&&Fl(Se,l=Ce(Ee,l,Ul(l)))}function je(l,e,t){"focus"===l?(Ne(),Ee=t,(Te=e).attachEvent("onpropertychange",Ie)):"blur"===l&&Ne()}function Fe(l){if("selectionchange"===l||"keyup"===l||"keydown"===l)return ze(Ee)}function Re(l,e){if("click"===l)return ze(e)}function De(l,e){if("input"===l||"change"===l)return ze(e)}$&&(Pe=Al("input")&&(!document.documentMode||9<document.documentMode));var Ue={eventTypes:Me,_isInputEventSupported:Pe,extractEvents:function(l,e,t,n){var L=e?R(e):window,o=void 0,r=void 0,a=L.nodeName&&L.nodeName.toLowerCase();if("select"===a||"input"===a&&"file"===L.type?o=Oe:Dl(L)?Pe?o=De:(o=Fe,r=je):(a=L.nodeName)&&"input"===a.toLowerCase()&&("checkbox"===L.type||"radio"===L.type)&&(o=Re),o&&(o=o(l,e)))return Ce(o,t,n);r&&r(l,L,e),"blur"===l&&(l=L._wrapperState)&&l.controlled&&"number"===L.type&&xe(L,"number",L.value)}},Ae=il.extend({view:null,detail:null}),Be={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ve(l){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(l):!!(l=Be[l])&&!!e[l]}function We(){return Ve}var He=0,$e=0,Ke=!1,qe=!1,Qe=Ae.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:We,button:null,buttons:null,relatedTarget:function(l){return l.relatedTarget||(l.fromElement===l.srcElement?l.toElement:l.fromElement)},movementX:function(l){if("movementX"in l)return l.movementX;var e=He;return He=l.screenX,Ke?"mousemove"===l.type?l.screenX-e:0:(Ke=!0,0)},movementY:function(l){if("movementY"in l)return l.movementY;var e=$e;return $e=l.screenY,qe?"mousemove"===l.type?l.screenY-e:0:(qe=!0,0)}}),Ge=Qe.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Ye={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Xe={eventTypes:Ye,extractEvents:function(l,e,t,n){var L="mouseover"===l||"pointerover"===l,o="mouseout"===l||"pointerout"===l;if(L&&(t.relatedTarget||t.fromElement)||!o&&!L)return null;if(L=n.window===n?n:(L=n.ownerDocument)?L.defaultView||L.parentWindow:window,o?(o=e,e=(e=t.relatedTarget||t.toElement)?j(e):null):o=null,o===e)return null;var r=void 0,a=void 0,i=void 0,u=void 0;"mouseout"===l||"mouseover"===l?(r=Qe,a=Ye.mouseLeave,i=Ye.mouseEnter,u="mouse"):"pointerout"!==l&&"pointerover"!==l||(r=Ge,a=Ye.pointerLeave,i=Ye.pointerEnter,u="pointer");var c=null==o?L:R(o);if(L=null==e?L:R(e),(l=r.getPooled(a,o,t,n)).type=u+"leave",l.target=c,l.relatedTarget=L,(t=r.getPooled(i,e,t,n)).type=u+"enter",t.target=L,t.relatedTarget=c,n=e,o&&n)l:{for(L=n,u=0,r=e=o;r;r=U(r))u++;for(r=0,i=L;i;i=U(i))r++;for(;0<u-r;)e=U(e),u--;for(;0<r-u;)L=U(L),r--;for(;u--;){if(e===L||e===L.alternate)break l;e=U(e),L=U(L)}e=null}else e=null;for(L=e,e=[];o&&o!==L&&(null===(u=o.alternate)||u!==L);)e.push(o),o=U(o);for(o=[];n&&n!==L&&(null===(u=n.alternate)||u!==L);)o.push(n),n=U(n);for(n=0;n<e.length;n++)V(e[n],"bubbled",l);for(n=o.length;0<n--;)V(o[n],"captured",t);return[l,t]}},Je=Object.prototype.hasOwnProperty;function Ze(l,e){return l===e?0!==l||0!==e||1/l==1/e:l!=l&&e!=e}function lt(l,e){if(Ze(l,e))return!0;if("object"!=typeof l||null===l||"object"!=typeof e||null===e)return!1;var t=Object.keys(l),n=Object.keys(e);if(t.length!==n.length)return!1;for(n=0;n<t.length;n++)if(!Je.call(e,t[n])||!Ze(l[t[n]],e[t[n]]))return!1;return!0}function et(l){var e=l;if(l.alternate)for(;e.return;)e=e.return;else{if(0!=(2&e.effectTag))return 1;for(;e.return;)if(0!=(2&(e=e.return).effectTag))return 1}return 3===e.tag?2:3}function tt(l){2!==et(l)&&r("188")}function nt(l){if(!(l=function(l){var e=l.alternate;if(!e)return 3===(e=et(l))&&r("188"),1===e?null:l;for(var t=l,n=e;;){var L=t.return,o=L?L.alternate:null;if(!L||!o)break;if(L.child===o.child){for(var a=L.child;a;){if(a===t)return tt(L),l;if(a===n)return tt(L),e;a=a.sibling}r("188")}if(t.return!==n.return)t=L,n=o;else{a=!1;for(var i=L.child;i;){if(i===t){a=!0,t=L,n=o;break}if(i===n){a=!0,n=L,t=o;break}i=i.sibling}if(!a){for(i=o.child;i;){if(i===t){a=!0,t=o,n=L;break}if(i===n){a=!0,n=o,t=L;break}i=i.sibling}a||r("189")}}t.alternate!==n&&r("190")}return 3!==t.tag&&r("188"),t.stateNode.current===t?l:e}(l)))return null;for(var e=l;;){if(5===e.tag||6===e.tag)return e;if(e.child)e.child.return=e,e=e.child;else{if(e===l)break;for(;!e.sibling;){if(!e.return||e.return===l)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}var Lt=il.extend({animationName:null,elapsedTime:null,pseudoElement:null}),ot=il.extend({clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),rt=Ae.extend({relatedTarget:null});function at(l){var e=l.keyCode;return"charCode"in l?0===(l=l.charCode)&&13===e&&(l=13):l=e,10===l&&(l=13),32<=l||13===l?l:0}var it={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ut={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ct=Ae.extend({key:function(l){if(l.key){var e=it[l.key]||l.key;if("Unidentified"!==e)return e}return"keypress"===l.type?13===(l=at(l))?"Enter":String.fromCharCode(l):"keydown"===l.type||"keyup"===l.type?ut[l.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:We,charCode:function(l){return"keypress"===l.type?at(l):0},keyCode:function(l){return"keydown"===l.type||"keyup"===l.type?l.keyCode:0},which:function(l){return"keypress"===l.type?at(l):"keydown"===l.type||"keyup"===l.type?l.keyCode:0}}),st=Qe.extend({dataTransfer:null}),ft=Ae.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:We}),dt=il.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),pt=Qe.extend({deltaX:function(l){return"deltaX"in l?l.deltaX:"wheelDeltaX"in l?-l.wheelDeltaX:0},deltaY:function(l){return"deltaY"in l?l.deltaY:"wheelDeltaY"in l?-l.wheelDeltaY:"wheelDelta"in l?-l.wheelDelta:0},deltaZ:null,deltaMode:null}),mt=[["abort","abort"],[X,"animationEnd"],[J,"animationIteration"],[Z,"animationStart"],["canplay","canPlay"],["canplaythrough","canPlayThrough"],["drag","drag"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["gotpointercapture","gotPointerCapture"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["loadstart","loadStart"],["lostpointercapture","lostPointerCapture"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["playing","playing"],["pointermove","pointerMove"],["pointerout","pointerOut"],["pointerover","pointerOver"],["progress","progress"],["scroll","scroll"],["seeking","seeking"],["stalled","stalled"],["suspend","suspend"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchmove","touchMove"],[ll,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],ht={},yt={};function vt(l,e){var t=l[0],n="on"+((l=l[1])[0].toUpperCase()+l.slice(1));e={phasedRegistrationNames:{bubbled:n,captured:n+"Capture"},dependencies:[t],isInteractive:e},ht[l]=e,yt[t]=e}[["blur","blur"],["cancel","cancel"],["click","click"],["close","close"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["auxclick","auxClick"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragstart","dragStart"],["drop","drop"],["focus","focus"],["input","input"],["invalid","invalid"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["mousedown","mouseDown"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["pointercancel","pointerCancel"],["pointerdown","pointerDown"],["pointerup","pointerUp"],["ratechange","rateChange"],["reset","reset"],["seeked","seeked"],["submit","submit"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchstart","touchStart"],["volumechange","volumeChange"]].forEach(function(l){vt(l,!0)}),mt.forEach(function(l){vt(l,!1)});var gt={eventTypes:ht,isInteractiveTopLevelEventType:function(l){return void 0!==(l=yt[l])&&!0===l.isInteractive},extractEvents:function(l,e,t,n){var L=yt[l];if(!L)return null;switch(l){case"keypress":if(0===at(t))return null;case"keydown":case"keyup":l=ct;break;case"blur":case"focus":l=rt;break;case"click":if(2===t.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=Qe;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=st;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=ft;break;case X:case J:case Z:l=Lt;break;case ll:l=dt;break;case"scroll":l=Ae;break;case"wheel":l=pt;break;case"copy":case"cut":case"paste":l=ot;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Ge;break;default:l=il}return H(e=l.getPooled(L,e,t,n)),e}},bt=gt.isInteractiveTopLevelEventType,_t=[];function kt(l){var e=l.targetInst,t=e;do{if(!t){l.ancestors.push(t);break}var n;for(n=t;n.return;)n=n.return;if(!(n=3!==n.tag?null:n.stateNode.containerInfo))break;l.ancestors.push(t),t=j(n)}while(t);for(t=0;t<l.ancestors.length;t++){e=l.ancestors[t];var L=Ul(l.nativeEvent);n=l.topLevelType;for(var o=l.nativeEvent,r=null,a=0;a<y.length;a++){var i=y[a];i&&(i=i.extractEvents(n,e,o,L))&&(r=M(r,i))}O(r)}}var wt=!0;function xt(l,e){if(!e)return null;var t=(bt(l)?Ct:Tt).bind(null,l);e.addEventListener(l,t,!1)}function Mt(l,e){if(!e)return null;var t=(bt(l)?Ct:Tt).bind(null,l);e.addEventListener(l,t,!0)}function Ct(l,e){Nl(Tt,l,e)}function Tt(l,e){if(wt){var t=Ul(e);if(null===(t=j(t))||"number"!=typeof t.tag||2===et(t)||(t=null),_t.length){var n=_t.pop();n.topLevelType=l,n.nativeEvent=e,n.targetInst=t,l=n}else l={topLevelType:l,nativeEvent:e,targetInst:t,ancestors:[]};try{Fl(kt,l)}finally{l.topLevelType=null,l.nativeEvent=null,l.targetInst=null,l.ancestors.length=0,10>_t.length&&_t.push(l)}}}var Et={},St=0,zt="_reactListenersID"+(""+Math.random()).slice(2);function Ot(l){return Object.prototype.hasOwnProperty.call(l,zt)||(l[zt]=St++,Et[l[zt]]={}),Et[l[zt]]}function Pt(l){if(void 0===(l=l||("undefined"!=typeof document?document:void 0)))return null;try{return l.activeElement||l.body}catch(e){return l.body}}function Nt(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function It(l,e){var t,n=Nt(l);for(l=0;n;){if(3===n.nodeType){if(t=l+n.textContent.length,l<=e&&t>=e)return{node:n,offset:e-l};l=t}l:{for(;n;){if(n.nextSibling){n=n.nextSibling;break l}n=n.parentNode}n=void 0}n=Nt(n)}}function jt(){for(var l=window,e=Pt();e instanceof l.HTMLIFrameElement;){try{l=e.contentDocument.defaultView}catch(l){break}e=Pt(l.document)}return e}function Ft(l){var e=l&&l.nodeName&&l.nodeName.toLowerCase();return e&&("input"===e&&("text"===l.type||"search"===l.type||"tel"===l.type||"url"===l.type||"password"===l.type)||"textarea"===e||"true"===l.contentEditable)}var Rt=$&&"documentMode"in document&&11>=document.documentMode,Dt={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Ut=null,At=null,Bt=null,Vt=!1;function Wt(l,e){var t=e.window===e?e.document:9===e.nodeType?e:e.ownerDocument;return Vt||null==Ut||Ut!==Pt(t)?null:("selectionStart"in(t=Ut)&&Ft(t)?t={start:t.selectionStart,end:t.selectionEnd}:t={anchorNode:(t=(t.ownerDocument&&t.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset},Bt&<(Bt,t)?null:(Bt=t,(l=il.getPooled(Dt.select,At,l,e)).type="select",l.target=Ut,H(l),l))}var Ht={eventTypes:Dt,extractEvents:function(l,e,t,n){var L,o=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;if(!(L=!o)){l:{o=Ot(o),L=b.onSelect;for(var r=0;r<L.length;r++){var a=L[r];if(!o.hasOwnProperty(a)||!o[a]){o=!1;break l}}o=!0}L=!o}if(L)return null;switch(o=e?R(e):window,l){case"focus":(Dl(o)||"true"===o.contentEditable)&&(Ut=o,At=e,Bt=null);break;case"blur":Bt=At=Ut=null;break;case"mousedown":Vt=!0;break;case"contextmenu":case"mouseup":case"dragend":return Vt=!1,Wt(t,n);case"selectionchange":if(Rt)break;case"keydown":case"keyup":return Wt(t,n)}return null}};function $t(l,e){return l=L({children:void 0},e),(e=function(l){var e="";return n.Children.forEach(l,function(l){null!=l&&(e+=l)}),e}(e.children))&&(l.children=e),l}function Kt(l,e,t,n){if(l=l.options,e){e={};for(var L=0;L<t.length;L++)e["$"+t[L]]=!0;for(t=0;t<l.length;t++)L=e.hasOwnProperty("$"+l[t].value),l[t].selected!==L&&(l[t].selected=L),L&&n&&(l[t].defaultSelected=!0)}else{for(t=""+ve(t),e=null,L=0;L<l.length;L++){if(l[L].value===t)return l[L].selected=!0,void(n&&(l[L].defaultSelected=!0));null!==e||l[L].disabled||(e=l[L])}null!==e&&(e.selected=!0)}}function qt(l,e){return null!=e.dangerouslySetInnerHTML&&r("91"),L({},e,{value:void 0,defaultValue:void 0,children:""+l._wrapperState.initialValue})}function Qt(l,e){var t=e.value;null==t&&(t=e.defaultValue,null!=(e=e.children)&&(null!=t&&r("92"),Array.isArray(e)&&(1>=e.length||r("93"),e=e[0]),t=e),null==t&&(t="")),l._wrapperState={initialValue:ve(t)}}function Gt(l,e){var t=ve(e.value),n=ve(e.defaultValue);null!=t&&((t=""+t)!==l.value&&(l.value=t),null==e.defaultValue&&l.defaultValue!==t&&(l.defaultValue=t)),null!=n&&(l.defaultValue=""+n)}function Yt(l){var e=l.textContent;e===l._wrapperState.initialValue&&(l.value=e)}S.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),_=D,k=F,w=R,S.injectEventPluginsByName({SimpleEventPlugin:gt,EnterLeaveEventPlugin:Xe,ChangeEventPlugin:Ue,SelectEventPlugin:Ht,BeforeInputEventPlugin:Ml});var Xt={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Jt(l){switch(l){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Zt(l,e){return null==l||"http://www.w3.org/1999/xhtml"===l?Jt(e):"http://www.w3.org/2000/svg"===l&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":l}var ln,en=void 0,tn=(ln=function(l,e){if(l.namespaceURI!==Xt.svg||"innerHTML"in l)l.innerHTML=e;else{for((en=en||document.createElement("div")).innerHTML="<svg>"+e+"</svg>",e=en.firstChild;l.firstChild;)l.removeChild(l.firstChild);for(;e.firstChild;)l.appendChild(e.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(l,e,t,n){MSApp.execUnsafeLocalFunction(function(){return ln(l,e)})}:ln);function nn(l,e){if(e){var t=l.firstChild;if(t&&t===l.lastChild&&3===t.nodeType)return void(t.nodeValue=e)}l.textContent=e}var Ln={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},on=["Webkit","ms","Moz","O"];function rn(l,e,t){return null==e||"boolean"==typeof e||""===e?"":t||"number"!=typeof e||0===e||Ln.hasOwnProperty(l)&&Ln[l]?(""+e).trim():e+"px"}function an(l,e){for(var t in l=l.style,e)if(e.hasOwnProperty(t)){var n=0===t.indexOf("--"),L=rn(t,e[t],n);"float"===t&&(t="cssFloat"),n?l.setProperty(t,L):l[t]=L}}Object.keys(Ln).forEach(function(l){on.forEach(function(e){e=e+l.charAt(0).toUpperCase()+l.substring(1),Ln[e]=Ln[l]})});var un=L({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function cn(l,e){e&&(un[l]&&(null!=e.children||null!=e.dangerouslySetInnerHTML)&&r("137",l,""),null!=e.dangerouslySetInnerHTML&&(null!=e.children&&r("60"),"object"==typeof e.dangerouslySetInnerHTML&&"__html"in e.dangerouslySetInnerHTML||r("61")),null!=e.style&&"object"!=typeof e.style&&r("62",""))}function sn(l,e){if(-1===l.indexOf("-"))return"string"==typeof e.is;switch(l){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function fn(l,e){var t=Ot(l=9===l.nodeType||11===l.nodeType?l:l.ownerDocument);e=b[e];for(var n=0;n<e.length;n++){var L=e[n];if(!t.hasOwnProperty(L)||!t[L]){switch(L){case"scroll":Mt("scroll",l);break;case"focus":case"blur":Mt("focus",l),Mt("blur",l),t.blur=!0,t.focus=!0;break;case"cancel":case"close":Al(L)&&Mt(L,l);break;case"invalid":case"submit":case"reset":break;default:-1===el.indexOf(L)&&xt(L,l)}t[L]=!0}}}function dn(){}var pn=null,mn=null;function hn(l,e){switch(l){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function yn(l,e){return"textarea"===l||"option"===l||"noscript"===l||"string"==typeof e.children||"number"==typeof e.children||"object"==typeof e.dangerouslySetInnerHTML&&null!==e.dangerouslySetInnerHTML&&null!=e.dangerouslySetInnerHTML.__html}var vn="function"==typeof setTimeout?setTimeout:void 0,gn="function"==typeof clearTimeout?clearTimeout:void 0;function bn(l){for(l=l.nextSibling;l&&1!==l.nodeType&&3!==l.nodeType;)l=l.nextSibling;return l}function _n(l){for(l=l.firstChild;l&&1!==l.nodeType&&3!==l.nodeType;)l=l.nextSibling;return l}new Set;var kn=[],wn=-1;function xn(l){0>wn||(l.current=kn[wn],kn[wn]=null,wn--)}function Mn(l,e){kn[++wn]=l.current,l.current=e}var Cn={},Tn={current:Cn},En={current:!1},Sn=Cn;function zn(l,e){var t=l.type.contextTypes;if(!t)return Cn;var n=l.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var L,o={};for(L in t)o[L]=e[L];return n&&((l=l.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,l.__reactInternalMemoizedMaskedChildContext=o),o}function On(l){return null!=(l=l.childContextTypes)}function Pn(l){xn(En),xn(Tn)}function Nn(l){xn(En),xn(Tn)}function In(l,e,t){Tn.current!==Cn&&r("168"),Mn(Tn,e),Mn(En,t)}function jn(l,e,t){var n=l.stateNode;if(l=e.childContextTypes,"function"!=typeof n.getChildContext)return t;for(var o in n=n.getChildContext())o in l||r("108",ae(e)||"Unknown",o);return L({},t,n)}function Fn(l){var e=l.stateNode;return e=e&&e.__reactInternalMemoizedMergedChildContext||Cn,Sn=Tn.current,Mn(Tn,e),Mn(En,En.current),!0}function Rn(l,e,t){var n=l.stateNode;n||r("169"),t?(e=jn(l,e,Sn),n.__reactInternalMemoizedMergedChildContext=e,xn(En),xn(Tn),Mn(Tn,e)):xn(En),Mn(En,t)}var Dn=null,Un=null;function An(l){return function(e){try{return l(e)}catch(l){}}}function Bn(l,e,t,n){this.tag=l,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.firstContextDependency=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Vn(l,e,t,n){return new Bn(l,e,t,n)}function Wn(l){return!(!(l=l.prototype)||!l.isReactComponent)}function Hn(l,e){var t=l.alternate;return null===t?((t=Vn(l.tag,e,l.key,l.mode)).elementType=l.elementType,t.type=l.type,t.stateNode=l.stateNode,t.alternate=l,l.alternate=t):(t.pendingProps=e,t.effectTag=0,t.nextEffect=null,t.firstEffect=null,t.lastEffect=null),t.childExpirationTime=l.childExpirationTime,t.expirationTime=l.expirationTime,t.child=l.child,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.firstContextDependency=l.firstContextDependency,t.sibling=l.sibling,t.index=l.index,t.ref=l.ref,t}function $n(l,e,t,n,L,o){var a=2;if(n=l,"function"==typeof l)Wn(l)&&(a=1);else if("string"==typeof l)a=5;else l:switch(l){case Gl:return Kn(t.children,L,o,e);case le:return qn(t,3|L,o,e);case Yl:return qn(t,2|L,o,e);case Xl:return(l=Vn(12,t,e,4|L)).elementType=Xl,l.type=Xl,l.expirationTime=o,l;case te:return(l=Vn(13,t,e,L)).elementType=te,l.type=te,l.expirationTime=o,l;default:if("object"==typeof l&&null!==l)switch(l.$$typeof){case Jl:a=10;break l;case Zl:a=9;break l;case ee:a=11;break l;case ne:a=14;break l;case Le:a=16,n=null;break l}r("130",null==l?l:typeof l,"")}return(e=Vn(a,t,e,L)).elementType=l,e.type=n,e.expirationTime=o,e}function Kn(l,e,t,n){return(l=Vn(7,l,n,e)).expirationTime=t,l}function qn(l,e,t,n){return l=Vn(8,l,n,e),e=0==(1&e)?Yl:le,l.elementType=e,l.type=e,l.expirationTime=t,l}function Qn(l,e,t){return(l=Vn(6,l,null,e)).expirationTime=t,l}function Gn(l,e,t){return(e=Vn(4,null!==l.children?l.children:[],l.key,e)).expirationTime=t,e.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},e}function Yn(l,e){l.didError=!1;var t=l.earliestPendingTime;0===t?l.earliestPendingTime=l.latestPendingTime=e:t<e?l.earliestPendingTime=e:l.latestPendingTime>e&&(l.latestPendingTime=e),Zn(e,l)}function Xn(l,e){l.didError=!1,l.latestPingedTime>=e&&(l.latestPingedTime=0);var t=l.earliestPendingTime,n=l.latestPendingTime;t===e?l.earliestPendingTime=n===e?l.latestPendingTime=0:n:n===e&&(l.latestPendingTime=t),t=l.earliestSuspendedTime,n=l.latestSuspendedTime,0===t?l.earliestSuspendedTime=l.latestSuspendedTime=e:t<e?l.earliestSuspendedTime=e:n>e&&(l.latestSuspendedTime=e),Zn(e,l)}function Jn(l,e){var t=l.earliestPendingTime;return t>e&&(e=t),(l=l.earliestSuspendedTime)>e&&(e=l),e}function Zn(l,e){var t=e.earliestSuspendedTime,n=e.latestSuspendedTime,L=e.earliestPendingTime,o=e.latestPingedTime;0===(L=0!==L?L:o)&&(0===l||n<l)&&(L=n),0!==(l=L)&&t>l&&(l=t),e.nextExpirationTimeToWorkOn=L,e.expirationTime=l}var lL=!1;function eL(l){return{baseState:l,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function tL(l){return{baseState:l.baseState,firstUpdate:l.firstUpdate,lastUpdate:l.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function nL(l){return{expirationTime:l,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function LL(l,e){null===l.lastUpdate?l.firstUpdate=l.lastUpdate=e:(l.lastUpdate.next=e,l.lastUpdate=e)}function oL(l,e){var t=l.alternate;if(null===t){var n=l.updateQueue,L=null;null===n&&(n=l.updateQueue=eL(l.memoizedState))}else n=l.updateQueue,L=t.updateQueue,null===n?null===L?(n=l.updateQueue=eL(l.memoizedState),L=t.updateQueue=eL(t.memoizedState)):n=l.updateQueue=tL(L):null===L&&(L=t.updateQueue=tL(n));null===L||n===L?LL(n,e):null===n.lastUpdate||null===L.lastUpdate?(LL(n,e),LL(L,e)):(LL(n,e),L.lastUpdate=e)}function rL(l,e){var t=l.updateQueue;null===(t=null===t?l.updateQueue=eL(l.memoizedState):aL(l,t)).lastCapturedUpdate?t.firstCapturedUpdate=t.lastCapturedUpdate=e:(t.lastCapturedUpdate.next=e,t.lastCapturedUpdate=e)}function aL(l,e){var t=l.alternate;return null!==t&&e===t.updateQueue&&(e=l.updateQueue=tL(e)),e}function iL(l,e,t,n,o,r){switch(t.tag){case 1:return"function"==typeof(l=t.payload)?l.call(r,n,o):l;case 3:l.effectTag=-2049&l.effectTag|64;case 0:if(null==(o="function"==typeof(l=t.payload)?l.call(r,n,o):l))break;return L({},n,o);case 2:lL=!0}return n}function uL(l,e,t,n,L){lL=!1;for(var o=(e=aL(l,e)).baseState,r=null,a=0,i=e.firstUpdate,u=o;null!==i;){var c=i.expirationTime;c<L?(null===r&&(r=i,o=u),a<c&&(a=c)):(u=iL(l,0,i,u,t,n),null!==i.callback&&(l.effectTag|=32,i.nextEffect=null,null===e.lastEffect?e.firstEffect=e.lastEffect=i:(e.lastEffect.nextEffect=i,e.lastEffect=i))),i=i.next}for(c=null,i=e.firstCapturedUpdate;null!==i;){var s=i.expirationTime;s<L?(null===c&&(c=i,null===r&&(o=u)),a<s&&(a=s)):(u=iL(l,0,i,u,t,n),null!==i.callback&&(l.effectTag|=32,i.nextEffect=null,null===e.lastCapturedEffect?e.firstCapturedEffect=e.lastCapturedEffect=i:(e.lastCapturedEffect.nextEffect=i,e.lastCapturedEffect=i))),i=i.next}null===r&&(e.lastUpdate=null),null===c?e.lastCapturedUpdate=null:l.effectTag|=32,null===r&&null===c&&(o=u),e.baseState=o,e.firstUpdate=r,e.firstCapturedUpdate=c,l.expirationTime=a,l.memoizedState=u}function cL(l,e,t){null!==e.firstCapturedUpdate&&(null!==e.lastUpdate&&(e.lastUpdate.next=e.firstCapturedUpdate,e.lastUpdate=e.lastCapturedUpdate),e.firstCapturedUpdate=e.lastCapturedUpdate=null),sL(e.firstEffect,t),e.firstEffect=e.lastEffect=null,sL(e.firstCapturedEffect,t),e.firstCapturedEffect=e.lastCapturedEffect=null}function sL(l,e){for(;null!==l;){var t=l.callback;if(null!==t){l.callback=null;var n=e;"function"!=typeof t&&r("191",t),t.call(n)}l=l.nextEffect}}function fL(l,e){return{value:l,source:e,stack:ie(e)}}var dL={current:null},pL=null,mL=null,hL=null;function yL(l,e){var t=l.type._context;Mn(dL,t._currentValue),t._currentValue=e}function vL(l){var e=dL.current;xn(dL),l.type._context._currentValue=e}function gL(l){pL=l,hL=mL=null,l.firstContextDependency=null}function bL(l,e){return hL!==l&&!1!==e&&0!==e&&("number"==typeof e&&1073741823!==e||(hL=l,e=1073741823),e={context:l,observedBits:e,next:null},null===mL?(null===pL&&r("293"),pL.firstContextDependency=mL=e):mL=mL.next=e),l._currentValue}var _L={},kL={current:_L},wL={current:_L},xL={current:_L};function ML(l){return l===_L&&r("174"),l}function CL(l,e){Mn(xL,e),Mn(wL,l),Mn(kL,_L);var t=e.nodeType;switch(t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Zt(null,"");break;default:e=Zt(e=(t=8===t?e.parentNode:e).namespaceURI||null,t=t.tagName)}xn(kL),Mn(kL,e)}function TL(l){xn(kL),xn(wL),xn(xL)}function EL(l){ML(xL.current);var e=ML(kL.current),t=Zt(e,l.type);e!==t&&(Mn(wL,l),Mn(kL,t))}function SL(l){wL.current===l&&(xn(kL),xn(wL))}function zL(l,e){if(l&&l.defaultProps)for(var t in e=L({},e),l=l.defaultProps)void 0===e[t]&&(e[t]=l[t]);return e}var OL=Hl.ReactCurrentOwner,PL=(new n.Component).refs;function NL(l,e,t,n){t=null==(t=t(n,e=l.memoizedState))?e:L({},e,t),l.memoizedState=t,null!==(n=l.updateQueue)&&0===l.expirationTime&&(n.baseState=t)}var IL={isMounted:function(l){return!!(l=l._reactInternalFiber)&&2===et(l)},enqueueSetState:function(l,e,t){l=l._reactInternalFiber;var n=Cr(),L=nL(n=Jo(n,l));L.payload=e,null!=t&&(L.callback=t),qo(),oL(l,L),er(l,n)},enqueueReplaceState:function(l,e,t){l=l._reactInternalFiber;var n=Cr(),L=nL(n=Jo(n,l));L.tag=1,L.payload=e,null!=t&&(L.callback=t),qo(),oL(l,L),er(l,n)},enqueueForceUpdate:function(l,e){l=l._reactInternalFiber;var t=Cr(),n=nL(t=Jo(t,l));n.tag=2,null!=e&&(n.callback=e),qo(),oL(l,n),er(l,t)}};function jL(l,e,t,n,L,o,r){return"function"==typeof(l=l.stateNode).shouldComponentUpdate?l.shouldComponentUpdate(n,o,r):!e.prototype||!e.prototype.isPureReactComponent||(!lt(t,n)||!lt(L,o))}function FL(l,e,t){var n=!1,L=Cn,o=e.contextType;return"object"==typeof o&&null!==o?o=OL.currentDispatcher.readContext(o):(L=On(e)?Sn:Tn.current,o=(n=null!=(n=e.contextTypes))?zn(l,L):Cn),e=new e(t,o),l.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,e.updater=IL,l.stateNode=e,e._reactInternalFiber=l,n&&((l=l.stateNode).__reactInternalMemoizedUnmaskedChildContext=L,l.__reactInternalMemoizedMaskedChildContext=o),e}function RL(l,e,t,n){l=e.state,"function"==typeof e.componentWillReceiveProps&&e.componentWillReceiveProps(t,n),"function"==typeof e.UNSAFE_componentWillReceiveProps&&e.UNSAFE_componentWillReceiveProps(t,n),e.state!==l&&IL.enqueueReplaceState(e,e.state,null)}function DL(l,e,t,n){var L=l.stateNode;L.props=t,L.state=l.memoizedState,L.refs=PL;var o=e.contextType;"object"==typeof o&&null!==o?L.context=OL.currentDispatcher.readContext(o):(o=On(e)?Sn:Tn.current,L.context=zn(l,o)),null!==(o=l.updateQueue)&&(uL(l,o,t,L,n),L.state=l.memoizedState),"function"==typeof(o=e.getDerivedStateFromProps)&&(NL(l,e,o,t),L.state=l.memoizedState),"function"==typeof e.getDerivedStateFromProps||"function"==typeof L.getSnapshotBeforeUpdate||"function"!=typeof L.UNSAFE_componentWillMount&&"function"!=typeof L.componentWillMount||(e=L.state,"function"==typeof L.componentWillMount&&L.componentWillMount(),"function"==typeof L.UNSAFE_componentWillMount&&L.UNSAFE_componentWillMount(),e!==L.state&&IL.enqueueReplaceState(L,L.state,null),null!==(o=l.updateQueue)&&(uL(l,o,t,L,n),L.state=l.memoizedState)),"function"==typeof L.componentDidMount&&(l.effectTag|=4)}var UL=Array.isArray;function AL(l,e,t){if(null!==(l=t.ref)&&"function"!=typeof l&&"object"!=typeof l){if(t._owner){t=t._owner;var n=void 0;t&&(1!==t.tag&&r("289"),n=t.stateNode),n||r("147",l);var L=""+l;return null!==e&&null!==e.ref&&"function"==typeof e.ref&&e.ref._stringRef===L?e.ref:((e=function(l){var e=n.refs;e===PL&&(e=n.refs={}),null===l?delete e[L]:e[L]=l})._stringRef=L,e)}"string"!=typeof l&&r("284"),t._owner||r("290",l)}return l}function BL(l,e){"textarea"!==l.type&&r("31","[object Object]"===Object.prototype.toString.call(e)?"object with keys {"+Object.keys(e).join(", ")+"}":e,"")}function VL(l){function e(e,t){if(l){var n=e.lastEffect;null!==n?(n.nextEffect=t,e.lastEffect=t):e.firstEffect=e.lastEffect=t,t.nextEffect=null,t.effectTag=8}}function t(t,n){if(!l)return null;for(;null!==n;)e(t,n),n=n.sibling;return null}function n(l,e){for(l=new Map;null!==e;)null!==e.key?l.set(e.key,e):l.set(e.index,e),e=e.sibling;return l}function L(l,e,t){return(l=Hn(l,e)).index=0,l.sibling=null,l}function o(e,t,n){return e.index=n,l?null!==(n=e.alternate)?(n=n.index)<t?(e.effectTag=2,t):n:(e.effectTag=2,t):t}function a(e){return l&&null===e.alternate&&(e.effectTag=2),e}function i(l,e,t,n){return null===e||6!==e.tag?((e=Qn(t,l.mode,n)).return=l,e):((e=L(e,t)).return=l,e)}function u(l,e,t,n){return null!==e&&e.elementType===t.type?((n=L(e,t.props)).ref=AL(l,e,t),n.return=l,n):((n=$n(t.type,t.key,t.props,null,l.mode,n)).ref=AL(l,e,t),n.return=l,n)}function c(l,e,t,n){return null===e||4!==e.tag||e.stateNode.containerInfo!==t.containerInfo||e.stateNode.implementation!==t.implementation?((e=Gn(t,l.mode,n)).return=l,e):((e=L(e,t.children||[])).return=l,e)}function s(l,e,t,n,o){return null===e||7!==e.tag?((e=Kn(t,l.mode,n,o)).return=l,e):((e=L(e,t)).return=l,e)}function f(l,e,t){if("string"==typeof e||"number"==typeof e)return(e=Qn(""+e,l.mode,t)).return=l,e;if("object"==typeof e&&null!==e){switch(e.$$typeof){case ql:return(t=$n(e.type,e.key,e.props,null,l.mode,t)).ref=AL(l,null,e),t.return=l,t;case Ql:return(e=Gn(e,l.mode,t)).return=l,e}if(UL(e)||re(e))return(e=Kn(e,l.mode,t,null)).return=l,e;BL(l,e)}return null}function d(l,e,t,n){var L=null!==e?e.key:null;if("string"==typeof t||"number"==typeof t)return null!==L?null:i(l,e,""+t,n);if("object"==typeof t&&null!==t){switch(t.$$typeof){case ql:return t.key===L?t.type===Gl?s(l,e,t.props.children,n,L):u(l,e,t,n):null;case Ql:return t.key===L?c(l,e,t,n):null}if(UL(t)||re(t))return null!==L?null:s(l,e,t,n,null);BL(l,t)}return null}function p(l,e,t,n,L){if("string"==typeof n||"number"==typeof n)return i(e,l=l.get(t)||null,""+n,L);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ql:return l=l.get(null===n.key?t:n.key)||null,n.type===Gl?s(e,l,n.props.children,L,n.key):u(e,l,n,L);case Ql:return c(e,l=l.get(null===n.key?t:n.key)||null,n,L)}if(UL(n)||re(n))return s(e,l=l.get(t)||null,n,L,null);BL(e,n)}return null}function m(L,r,a,i){for(var u=null,c=null,s=r,m=r=0,h=null;null!==s&&m<a.length;m++){s.index>m?(h=s,s=null):h=s.sibling;var y=d(L,s,a[m],i);if(null===y){null===s&&(s=h);break}l&&s&&null===y.alternate&&e(L,s),r=o(y,r,m),null===c?u=y:c.sibling=y,c=y,s=h}if(m===a.length)return t(L,s),u;if(null===s){for(;m<a.length;m++)(s=f(L,a[m],i))&&(r=o(s,r,m),null===c?u=s:c.sibling=s,c=s);return u}for(s=n(L,s);m<a.length;m++)(h=p(s,L,m,a[m],i))&&(l&&null!==h.alternate&&s.delete(null===h.key?m:h.key),r=o(h,r,m),null===c?u=h:c.sibling=h,c=h);return l&&s.forEach(function(l){return e(L,l)}),u}function h(L,a,i,u){var c=re(i);"function"!=typeof c&&r("150"),null==(i=c.call(i))&&r("151");for(var s=c=null,m=a,h=a=0,y=null,v=i.next();null!==m&&!v.done;h++,v=i.next()){m.index>h?(y=m,m=null):y=m.sibling;var g=d(L,m,v.value,u);if(null===g){m||(m=y);break}l&&m&&null===g.alternate&&e(L,m),a=o(g,a,h),null===s?c=g:s.sibling=g,s=g,m=y}if(v.done)return t(L,m),c;if(null===m){for(;!v.done;h++,v=i.next())null!==(v=f(L,v.value,u))&&(a=o(v,a,h),null===s?c=v:s.sibling=v,s=v);return c}for(m=n(L,m);!v.done;h++,v=i.next())null!==(v=p(m,L,h,v.value,u))&&(l&&null!==v.alternate&&m.delete(null===v.key?h:v.key),a=o(v,a,h),null===s?c=v:s.sibling=v,s=v);return l&&m.forEach(function(l){return e(L,l)}),c}return function(l,n,o,i){var u="object"==typeof o&&null!==o&&o.type===Gl&&null===o.key;u&&(o=o.props.children);var c="object"==typeof o&&null!==o;if(c)switch(o.$$typeof){case ql:l:{for(c=o.key,u=n;null!==u;){if(u.key===c){if(7===u.tag?o.type===Gl:u.elementType===o.type){t(l,u.sibling),(n=L(u,o.type===Gl?o.props.children:o.props)).ref=AL(l,u,o),n.return=l,l=n;break l}t(l,u);break}e(l,u),u=u.sibling}o.type===Gl?((n=Kn(o.props.children,l.mode,i,o.key)).return=l,l=n):((i=$n(o.type,o.key,o.props,null,l.mode,i)).ref=AL(l,n,o),i.return=l,l=i)}return a(l);case Ql:l:{for(u=o.key;null!==n;){if(n.key===u){if(4===n.tag&&n.stateNode.containerInfo===o.containerInfo&&n.stateNode.implementation===o.implementation){t(l,n.sibling),(n=L(n,o.children||[])).return=l,l=n;break l}t(l,n);break}e(l,n),n=n.sibling}(n=Gn(o,l.mode,i)).return=l,l=n}return a(l)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==n&&6===n.tag?(t(l,n.sibling),(n=L(n,o)).return=l,l=n):(t(l,n),(n=Qn(o,l.mode,i)).return=l,l=n),a(l);if(UL(o))return m(l,n,o,i);if(re(o))return h(l,n,o,i);if(c&&BL(l,o),void 0===o&&!u)switch(l.tag){case 1:case 0:r("152",(i=l.type).displayName||i.name||"Component")}return t(l,n)}}var WL=VL(!0),HL=VL(!1),$L=null,KL=null,qL=!1;function QL(l,e){var t=Vn(5,null,null,0);t.elementType="DELETED",t.type="DELETED",t.stateNode=e,t.return=l,t.effectTag=8,null!==l.lastEffect?(l.lastEffect.nextEffect=t,l.lastEffect=t):l.firstEffect=l.lastEffect=t}function GL(l,e){switch(l.tag){case 5:var t=l.type;return null!==(e=1!==e.nodeType||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e)&&(l.stateNode=e,!0);case 6:return null!==(e=""===l.pendingProps||3!==e.nodeType?null:e)&&(l.stateNode=e,!0);default:return!1}}function YL(l){if(qL){var e=KL;if(e){var t=e;if(!GL(l,e)){if(!(e=bn(t))||!GL(l,e))return l.effectTag|=2,qL=!1,void($L=l);QL($L,t)}$L=l,KL=_n(e)}else l.effectTag|=2,qL=!1,$L=l}}function XL(l){for(l=l.return;null!==l&&5!==l.tag&&3!==l.tag;)l=l.return;$L=l}function JL(l){if(l!==$L)return!1;if(!qL)return XL(l),qL=!0,!1;var e=l.type;if(5!==l.tag||"head"!==e&&"body"!==e&&!yn(e,l.memoizedProps))for(e=KL;e;)QL(l,e),e=bn(e);return XL(l),KL=$L?bn(l.stateNode):null,!0}function ZL(){KL=$L=null,qL=!1}var lo=Hl.ReactCurrentOwner;function eo(l,e,t,n){e.child=null===l?HL(e,null,t,n):WL(e,l.child,t,n)}function to(l,e,t,n,L){t=t.render;var o=e.ref;return gL(e),n=t(n,o),e.effectTag|=1,eo(l,e,n,L),e.child}function no(l,e,t,n,L,o){if(null===l){var r=t.type;return"function"!=typeof r||Wn(r)||void 0!==r.defaultProps||null!==t.compare||void 0!==t.defaultProps?((l=$n(t.type,null,n,null,e.mode,o)).ref=e.ref,l.return=e,e.child=l):(e.tag=15,e.type=r,Lo(l,e,r,n,L,o))}return r=l.child,L<o&&(L=r.memoizedProps,(t=null!==(t=t.compare)?t:lt)(L,n)&&l.ref===e.ref)?so(l,e,o):(e.effectTag|=1,(l=Hn(r,n)).ref=e.ref,l.return=e,e.child=l)}function Lo(l,e,t,n,L,o){return null!==l&&L<o&<(l.memoizedProps,n)&&l.ref===e.ref?so(l,e,o):ro(l,e,t,n,o)}function oo(l,e){var t=e.ref;(null===l&&null!==t||null!==l&&l.ref!==t)&&(e.effectTag|=128)}function ro(l,e,t,n,L){var o=On(t)?Sn:Tn.current;return o=zn(e,o),gL(e),t=t(n,o),e.effectTag|=1,eo(l,e,t,L),e.child}function ao(l,e,t,n,L){if(On(t)){var o=!0;Fn(e)}else o=!1;if(gL(e),null===e.stateNode)null!==l&&(l.alternate=null,e.alternate=null,e.effectTag|=2),FL(e,t,n),DL(e,t,n,L),n=!0;else if(null===l){var r=e.stateNode,a=e.memoizedProps;r.props=a;var i=r.context,u=t.contextType;"object"==typeof u&&null!==u?u=OL.currentDispatcher.readContext(u):u=zn(e,u=On(t)?Sn:Tn.current);var c=t.getDerivedStateFromProps,s="function"==typeof c||"function"==typeof r.getSnapshotBeforeUpdate;s||"function"!=typeof r.UNSAFE_componentWillReceiveProps&&"function"!=typeof r.componentWillReceiveProps||(a!==n||i!==u)&&RL(e,r,n,u),lL=!1;var f=e.memoizedState;i=r.state=f;var d=e.updateQueue;null!==d&&(uL(e,d,n,r,L),i=e.memoizedState),a!==n||f!==i||En.current||lL?("function"==typeof c&&(NL(e,t,c,n),i=e.memoizedState),(a=lL||jL(e,t,a,n,f,i,u))?(s||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||("function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount()),"function"==typeof r.componentDidMount&&(e.effectTag|=4)):("function"==typeof r.componentDidMount&&(e.effectTag|=4),e.memoizedProps=n,e.memoizedState=i),r.props=n,r.state=i,r.context=u,n=a):("function"==typeof r.componentDidMount&&(e.effectTag|=4),n=!1)}else r=e.stateNode,a=e.memoizedProps,r.props=e.type===e.elementType?a:zL(e.type,a),i=r.context,"object"==typeof(u=t.contextType)&&null!==u?u=OL.currentDispatcher.readContext(u):u=zn(e,u=On(t)?Sn:Tn.current),(s="function"==typeof(c=t.getDerivedStateFromProps)||"function"==typeof r.getSnapshotBeforeUpdate)||"function"!=typeof r.UNSAFE_componentWillReceiveProps&&"function"!=typeof r.componentWillReceiveProps||(a!==n||i!==u)&&RL(e,r,n,u),lL=!1,i=e.memoizedState,f=r.state=i,null!==(d=e.updateQueue)&&(uL(e,d,n,r,L),f=e.memoizedState),a!==n||i!==f||En.current||lL?("function"==typeof c&&(NL(e,t,c,n),f=e.memoizedState),(c=lL||jL(e,t,a,n,i,f,u))?(s||"function"!=typeof r.UNSAFE_componentWillUpdate&&"function"!=typeof r.componentWillUpdate||("function"==typeof r.componentWillUpdate&&r.componentWillUpdate(n,f,u),"function"==typeof r.UNSAFE_componentWillUpdate&&r.UNSAFE_componentWillUpdate(n,f,u)),"function"==typeof r.componentDidUpdate&&(e.effectTag|=4),"function"==typeof r.getSnapshotBeforeUpdate&&(e.effectTag|=256)):("function"!=typeof r.componentDidUpdate||a===l.memoizedProps&&i===l.memoizedState||(e.effectTag|=4),"function"!=typeof r.getSnapshotBeforeUpdate||a===l.memoizedProps&&i===l.memoizedState||(e.effectTag|=256),e.memoizedProps=n,e.memoizedState=f),r.props=n,r.state=f,r.context=u,n=c):("function"!=typeof r.componentDidUpdate||a===l.memoizedProps&&i===l.memoizedState||(e.effectTag|=4),"function"!=typeof r.getSnapshotBeforeUpdate||a===l.memoizedProps&&i===l.memoizedState||(e.effectTag|=256),n=!1);return io(l,e,t,n,o,L)}function io(l,e,t,n,L,o){oo(l,e);var r=0!=(64&e.effectTag);if(!n&&!r)return L&&Rn(e,t,!1),so(l,e,o);n=e.stateNode,lo.current=e;var a=r&&"function"!=typeof t.getDerivedStateFromError?null:n.render();return e.effectTag|=1,null!==l&&r?(e.child=WL(e,l.child,null,o),e.child=WL(e,null,a,o)):eo(l,e,a,o),e.memoizedState=n.state,L&&Rn(e,t,!0),e.child}function uo(l){var e=l.stateNode;e.pendingContext?In(0,e.pendingContext,e.pendingContext!==e.context):e.context&&In(0,e.context,!1),CL(l,e.containerInfo)}function co(l,e,t){var n=e.mode,L=e.pendingProps,o=e.memoizedState;if(0==(64&e.effectTag)){o=null;var r=!1}else o={timedOutAt:null!==o?o.timedOutAt:0},r=!0,e.effectTag&=-65;if(null===l)if(r){var a=L.fallback;l=Kn(null,n,0,null),0==(1&e.mode)&&(l.child=null!==e.memoizedState?e.child.child:e.child),n=Kn(a,n,t,null),l.sibling=n,(t=l).return=n.return=e}else t=n=HL(e,null,L.children,t);else null!==l.memoizedState?(a=(n=l.child).sibling,r?(t=L.fallback,L=Hn(n,n.pendingProps),0==(1&e.mode)&&((r=null!==e.memoizedState?e.child.child:e.child)!==n.child&&(L.child=r)),n=L.sibling=Hn(a,t,a.expirationTime),t=L,L.childExpirationTime=0,t.return=n.return=e):t=n=WL(e,n.child,L.children,t)):(a=l.child,r?(r=L.fallback,(L=Kn(null,n,0,null)).child=a,0==(1&e.mode)&&(L.child=null!==e.memoizedState?e.child.child:e.child),(n=L.sibling=Kn(r,n,t,null)).effectTag|=2,t=L,L.childExpirationTime=0,t.return=n.return=e):n=t=WL(e,a,L.children,t)),e.stateNode=l.stateNode;return e.memoizedState=o,e.child=t,n}function so(l,e,t){if(null!==l&&(e.firstContextDependency=l.firstContextDependency),e.childExpirationTime<t)return null;if(null!==l&&e.child!==l.child&&r("153"),null!==e.child){for(t=Hn(l=e.child,l.pendingProps,l.expirationTime),e.child=t,t.return=e;null!==l.sibling;)l=l.sibling,(t=t.sibling=Hn(l,l.pendingProps,l.expirationTime)).return=e;t.sibling=null}return e.child}function fo(l,e,t){var n=e.expirationTime;if(null!==l&&l.memoizedProps===e.pendingProps&&!En.current&&n<t){switch(e.tag){case 3:uo(e),ZL();break;case 5:EL(e);break;case 1:On(e.type)&&Fn(e);break;case 4:CL(e,e.stateNode.containerInfo);break;case 10:yL(e,e.memoizedProps.value);break;case 13:if(null!==e.memoizedState)return 0!==(n=e.child.childExpirationTime)&&n>=t?co(l,e,t):null!==(e=so(l,e,t))?e.sibling:null}return so(l,e,t)}switch(e.expirationTime=0,e.tag){case 2:n=e.elementType,null!==l&&(l.alternate=null,e.alternate=null,e.effectTag|=2),l=e.pendingProps;var L=zn(e,Tn.current);if(gL(e),L=n(l,L),e.effectTag|=1,"object"==typeof L&&null!==L&&"function"==typeof L.render&&void 0===L.$$typeof){if(e.tag=1,On(n)){var o=!0;Fn(e)}else o=!1;e.memoizedState=null!==L.state&&void 0!==L.state?L.state:null;var a=n.getDerivedStateFromProps;"function"==typeof a&&NL(e,n,a,l),L.updater=IL,e.stateNode=L,L._reactInternalFiber=e,DL(e,n,l,t),e=io(null,e,n,!0,o,t)}else e.tag=0,eo(null,e,L,t),e=e.child;return e;case 16:switch(L=e.elementType,null!==l&&(l.alternate=null,e.alternate=null,e.effectTag|=2),o=e.pendingProps,l=function(l){var e=l._result;switch(l._status){case 1:return e;case 2:case 0:throw e;default:throw l._status=0,(e=(e=l._ctor)()).then(function(e){0===l._status&&(e=e.default,l._status=1,l._result=e)},function(e){0===l._status&&(l._status=2,l._result=e)}),l._result=e,e}}(L),e.type=l,L=e.tag=function(l){if("function"==typeof l)return Wn(l)?1:0;if(null!=l){if((l=l.$$typeof)===ee)return 11;if(l===ne)return 14}return 2}(l),o=zL(l,o),a=void 0,L){case 0:a=ro(null,e,l,o,t);break;case 1:a=ao(null,e,l,o,t);break;case 11:a=to(null,e,l,o,t);break;case 14:a=no(null,e,l,zL(l.type,o),n,t);break;default:r("306",l,"")}return a;case 0:return n=e.type,L=e.pendingProps,ro(l,e,n,L=e.elementType===n?L:zL(n,L),t);case 1:return n=e.type,L=e.pendingProps,ao(l,e,n,L=e.elementType===n?L:zL(n,L),t);case 3:return uo(e),null===(n=e.updateQueue)&&r("282"),L=null!==(L=e.memoizedState)?L.element:null,uL(e,n,e.pendingProps,null,t),(n=e.memoizedState.element)===L?(ZL(),e=so(l,e,t)):(L=e.stateNode,(L=(null===l||null===l.child)&&L.hydrate)&&(KL=_n(e.stateNode.containerInfo),$L=e,L=qL=!0),L?(e.effectTag|=2,e.child=HL(e,null,n,t)):(eo(l,e,n,t),ZL()),e=e.child),e;case 5:return EL(e),null===l&&YL(e),n=e.type,L=e.pendingProps,o=null!==l?l.memoizedProps:null,a=L.children,yn(n,L)?a=null:null!==o&&yn(n,o)&&(e.effectTag|=16),oo(l,e),1!==t&&1&e.mode&&L.hidden?(e.expirationTime=1,e=null):(eo(l,e,a,t),e=e.child),e;case 6:return null===l&&YL(e),null;case 13:return co(l,e,t);case 4:return CL(e,e.stateNode.containerInfo),n=e.pendingProps,null===l?e.child=WL(e,null,n,t):eo(l,e,n,t),e.child;case 11:return n=e.type,L=e.pendingProps,to(l,e,n,L=e.elementType===n?L:zL(n,L),t);case 7:return eo(l,e,e.pendingProps,t),e.child;case 8:case 12:return eo(l,e,e.pendingProps.children,t),e.child;case 10:l:{if(n=e.type._context,L=e.pendingProps,a=e.memoizedProps,yL(e,o=L.value),null!==a){var i=a.value;if(0===(o=i===o&&(0!==i||1/i==1/o)||i!=i&&o!=o?0:0|("function"==typeof n._calculateChangedBits?n._calculateChangedBits(i,o):1073741823))){if(a.children===L.children&&!En.current){e=so(l,e,t);break l}}else for(null!==(a=e.child)&&(a.return=e);null!==a;){if(null!==(i=a.firstContextDependency))do{if(i.context===n&&0!=(i.observedBits&o)){if(1===a.tag){var u=nL(t);u.tag=2,oL(a,u)}a.expirationTime<t&&(a.expirationTime=t),null!==(u=a.alternate)&&u.expirationTime<t&&(u.expirationTime=t);for(var c=a.return;null!==c;){if(u=c.alternate,c.childExpirationTime<t)c.childExpirationTime=t,null!==u&&u.childExpirationTime<t&&(u.childExpirationTime=t);else{if(!(null!==u&&u.childExpirationTime<t))break;u.childExpirationTime=t}c=c.return}}u=a.child,i=i.next}while(null!==i);else u=10===a.tag&&a.type===e.type?null:a.child;if(null!==u)u.return=a;else for(u=a;null!==u;){if(u===e){u=null;break}if(null!==(a=u.sibling)){a.return=u.return,u=a;break}u=u.return}a=u}}eo(l,e,L.children,t),e=e.child}return e;case 9:return L=e.type,n=(o=e.pendingProps).children,gL(e),n=n(L=bL(L,o.unstable_observedBits)),e.effectTag|=1,eo(l,e,n,t),e.child;case 14:return o=zL(L=e.type,e.pendingProps),no(l,e,L,o=zL(L.type,o),n,t);case 15:return Lo(l,e,e.type,e.pendingProps,n,t);case 17:return n=e.type,L=e.pendingProps,L=e.elementType===n?L:zL(n,L),null!==l&&(l.alternate=null,e.alternate=null,e.effectTag|=2),e.tag=1,On(n)?(l=!0,Fn(e)):l=!1,gL(e),FL(e,n,L),DL(e,n,L,t),io(null,e,n,!0,l,t);default:r("156")}}function po(l){l.effectTag|=4}var mo=void 0,ho=void 0,yo=void 0,vo=void 0;mo=function(l,e){for(var t=e.child;null!==t;){if(5===t.tag||6===t.tag)l.appendChild(t.stateNode);else if(4!==t.tag&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return}t.sibling.return=t.return,t=t.sibling}},ho=function(){},yo=function(l,e,t,n,o){var r=l.memoizedProps;if(r!==n){var a=e.stateNode;switch(ML(kL.current),l=null,t){case"input":r=ge(a,r),n=ge(a,n),l=[];break;case"option":r=$t(a,r),n=$t(a,n),l=[];break;case"select":r=L({},r,{value:void 0}),n=L({},n,{value:void 0}),l=[];break;case"textarea":r=qt(a,r),n=qt(a,n),l=[];break;default:"function"!=typeof r.onClick&&"function"==typeof n.onClick&&(a.onclick=dn)}cn(t,n),a=t=void 0;var i=null;for(t in r)if(!n.hasOwnProperty(t)&&r.hasOwnProperty(t)&&null!=r[t])if("style"===t){var u=r[t];for(a in u)u.hasOwnProperty(a)&&(i||(i={}),i[a]="")}else"dangerouslySetInnerHTML"!==t&&"children"!==t&&"suppressContentEditableWarning"!==t&&"suppressHydrationWarning"!==t&&"autoFocus"!==t&&(g.hasOwnProperty(t)?l||(l=[]):(l=l||[]).push(t,null));for(t in n){var c=n[t];if(u=null!=r?r[t]:void 0,n.hasOwnProperty(t)&&c!==u&&(null!=c||null!=u))if("style"===t)if(u){for(a in u)!u.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(i||(i={}),i[a]="");for(a in c)c.hasOwnProperty(a)&&u[a]!==c[a]&&(i||(i={}),i[a]=c[a])}else i||(l||(l=[]),l.push(t,i)),i=c;else"dangerouslySetInnerHTML"===t?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(l=l||[]).push(t,""+c)):"children"===t?u===c||"string"!=typeof c&&"number"!=typeof c||(l=l||[]).push(t,""+c):"suppressContentEditableWarning"!==t&&"suppressHydrationWarning"!==t&&(g.hasOwnProperty(t)?(null!=c&&fn(o,t),l||u===c||(l=[])):(l=l||[]).push(t,c))}i&&(l=l||[]).push("style",i),o=l,(e.updateQueue=o)&&po(e)}},vo=function(l,e,t,n){t!==n&&po(e)};var go="function"==typeof WeakSet?WeakSet:Set;function bo(l,e){var t=e.source,n=e.stack;null===n&&null!==t&&(n=ie(t)),null!==t&&ae(t.type),e=e.value,null!==l&&1===l.tag&&ae(l.type);try{console.error(e)}catch(l){setTimeout(function(){throw l})}}function _o(l){var e=l.ref;if(null!==e)if("function"==typeof e)try{e(null)}catch(e){Xo(l,e)}else e.current=null}function ko(l){switch("function"==typeof Un&&Un(l),l.tag){case 0:case 11:case 14:case 15:var e=l.updateQueue;if(null!==e&&null!==(e=e.lastEffect)){var t=e=e.next;do{var n=t.destroy;if(null!==n){var L=l;try{n()}catch(l){Xo(L,l)}}t=t.next}while(t!==e)}break;case 1:if(_o(l),"function"==typeof(e=l.stateNode).componentWillUnmount)try{e.props=l.memoizedProps,e.state=l.memoizedState,e.componentWillUnmount()}catch(e){Xo(l,e)}break;case 5:_o(l);break;case 4:Mo(l)}}function wo(l){return 5===l.tag||3===l.tag||4===l.tag}function xo(l){l:{for(var e=l.return;null!==e;){if(wo(e)){var t=e;break l}e=e.return}r("160"),t=void 0}var n=e=void 0;switch(t.tag){case 5:e=t.stateNode,n=!1;break;case 3:case 4:e=t.stateNode.containerInfo,n=!0;break;default:r("161")}16&t.effectTag&&(nn(e,""),t.effectTag&=-17);l:e:for(t=l;;){for(;null===t.sibling;){if(null===t.return||wo(t.return)){t=null;break l}t=t.return}for(t.sibling.return=t.return,t=t.sibling;5!==t.tag&&6!==t.tag;){if(2&t.effectTag)continue e;if(null===t.child||4===t.tag)continue e;t.child.return=t,t=t.child}if(!(2&t.effectTag)){t=t.stateNode;break l}}for(var L=l;;){if(5===L.tag||6===L.tag)if(t)if(n){var o=e,a=L.stateNode,i=t;8===o.nodeType?o.parentNode.insertBefore(a,i):o.insertBefore(a,i)}else e.insertBefore(L.stateNode,t);else n?(a=e,i=L.stateNode,8===a.nodeType?(o=a.parentNode).insertBefore(i,a):(o=a).appendChild(i),null!=(a=a._reactRootContainer)||null!==o.onclick||(o.onclick=dn)):e.appendChild(L.stateNode);else if(4!==L.tag&&null!==L.child){L.child.return=L,L=L.child;continue}if(L===l)break;for(;null===L.sibling;){if(null===L.return||L.return===l)return;L=L.return}L.sibling.return=L.return,L=L.sibling}}function Mo(l){for(var e=l,t=!1,n=void 0,L=void 0;;){if(!t){t=e.return;l:for(;;){switch(null===t&&r("160"),t.tag){case 5:n=t.stateNode,L=!1;break l;case 3:case 4:n=t.stateNode.containerInfo,L=!0;break l}t=t.return}t=!0}if(5===e.tag||6===e.tag){l:for(var o=e,a=o;;)if(ko(a),null!==a.child&&4!==a.tag)a.child.return=a,a=a.child;else{if(a===o)break;for(;null===a.sibling;){if(null===a.return||a.return===o)break l;a=a.return}a.sibling.return=a.return,a=a.sibling}L?(o=n,a=e.stateNode,8===o.nodeType?o.parentNode.removeChild(a):o.removeChild(a)):n.removeChild(e.stateNode)}else if(4===e.tag?(n=e.stateNode.containerInfo,L=!0):ko(e),null!==e.child){e.child.return=e,e=e.child;continue}if(e===l)break;for(;null===e.sibling;){if(null===e.return||e.return===l)return;4===(e=e.return).tag&&(t=!1)}e.sibling.return=e.return,e=e.sibling}}function Co(l,e){switch(e.tag){case 0:case 11:case 14:case 15:case 1:break;case 5:var t=e.stateNode;if(null!=t){var n=e.memoizedProps;l=null!==l?l.memoizedProps:n;var L=e.type,o=e.updateQueue;e.updateQueue=null,null!==o&&function(l,e,t,n,L){l[I]=L,"input"===t&&"radio"===L.type&&null!=L.name&&_e(l,L),sn(t,n),n=sn(t,L);for(var o=0;o<e.length;o+=2){var r=e[o],a=e[o+1];"style"===r?an(l,a):"dangerouslySetInnerHTML"===r?tn(l,a):"children"===r?nn(l,a):ye(l,r,a,n)}switch(t){case"input":ke(l,L);break;case"textarea":Gt(l,L);break;case"select":e=l._wrapperState.wasMultiple,l._wrapperState.wasMultiple=!!L.multiple,null!=(t=L.value)?Kt(l,!!L.multiple,t,!1):e!==!!L.multiple&&(null!=L.defaultValue?Kt(l,!!L.multiple,L.defaultValue,!0):Kt(l,!!L.multiple,L.multiple?[]:"",!1))}}(t,o,L,l,n)}break;case 6:null===e.stateNode&&r("162"),e.stateNode.nodeValue=e.memoizedProps;break;case 3:case 12:break;case 13:if(t=e.memoizedState,n=void 0,l=e,null===t?n=!1:(n=!0,l=e.child,0===t.timedOutAt&&(t.timedOutAt=Cr())),null!==l&&function(l,e){for(var t=l;;){if(5===t.tag){var n=t.stateNode;if(e)n.style.display="none";else{n=t.stateNode;var L=t.memoizedProps.style;L=null!=L&&L.hasOwnProperty("display")?L.display:null,n.style.display=rn("display",L)}}else if(6===t.tag)t.stateNode.nodeValue=e?"":t.memoizedProps;else{if(13===t.tag&&null!==t.memoizedState){(n=t.child.sibling).return=t,t=n;continue}if(null!==t.child){t.child.return=t,t=t.child;continue}}if(t===l)break;for(;null===t.sibling;){if(null===t.return||t.return===l)return;t=t.return}t.sibling.return=t.return,t=t.sibling}}(l,n),null!==(t=e.updateQueue)){e.updateQueue=null;var a=e.stateNode;null===a&&(a=e.stateNode=new go),t.forEach(function(l){var t=function(l,e){var t=l.stateNode;null!==t&&t.delete(e),e=Jo(e=Cr(),l),null!==(l=lr(l,e))&&(Yn(l,e),0!==(e=l.expirationTime)&&Tr(l,e))}.bind(null,e,l);a.has(l)||(a.add(l),l.then(t,t))})}break;case 17:break;default:r("163")}}var To="function"==typeof WeakMap?WeakMap:Map;function Eo(l,e,t){(t=nL(t)).tag=3,t.payload={element:null};var n=e.value;return t.callback=function(){Fr(n),bo(l,e)},t}function So(l,e,t){(t=nL(t)).tag=3;var n=l.type.getDerivedStateFromError;if("function"==typeof n){var L=e.value;t.payload=function(){return n(L)}}var o=l.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(t.callback=function(){"function"!=typeof n&&(null===$o?$o=new Set([this]):$o.add(this));var t=e.value,L=e.stack;bo(l,e),this.componentDidCatch(t,{componentStack:null!==L?L:""})}),t}function zo(l){switch(l.tag){case 1:On(l.type)&&Pn();var e=l.effectTag;return 2048&e?(l.effectTag=-2049&e|64,l):null;case 3:return TL(),Nn(),0!=(64&(e=l.effectTag))&&r("285"),l.effectTag=-2049&e|64,l;case 5:return SL(l),null;case 13:return 2048&(e=l.effectTag)?(l.effectTag=-2049&e|64,l):null;case 4:return TL(),null;case 10:return vL(l),null;default:return null}}var Oo={readContext:bL},Po=Hl.ReactCurrentOwner,No=1073741822,Io=0,jo=!1,Fo=null,Ro=null,Do=0,Uo=-1,Ao=!1,Bo=null,Vo=!1,Wo=null,Ho=null,$o=null;function Ko(){if(null!==Fo)for(var l=Fo.return;null!==l;){var e=l;switch(e.tag){case 1:var t=e.type.childContextTypes;null!=t&&Pn();break;case 3:TL(),Nn();break;case 5:SL(e);break;case 4:TL();break;case 10:vL(e)}l=l.return}Ro=null,Do=0,Uo=-1,Ao=!1,Fo=null}function qo(){null!==Ho&&(o.unstable_cancelCallback(Wo),Ho())}function Qo(l){for(;;){var e=l.alternate,t=l.return,n=l.sibling;if(0==(1024&l.effectTag)){Fo=l;l:{var o=e,a=Do,i=(e=l).pendingProps;switch(e.tag){case 2:case 16:break;case 15:case 0:break;case 1:On(e.type)&&Pn();break;case 3:TL(),Nn(),(i=e.stateNode).pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),null!==o&&null!==o.child||(JL(e),e.effectTag&=-3),ho(e);break;case 5:SL(e);var u=ML(xL.current);if(a=e.type,null!==o&&null!=e.stateNode)yo(o,e,a,i,u),o.ref!==e.ref&&(e.effectTag|=128);else if(i){var c=ML(kL.current);if(JL(e)){o=(i=e).stateNode;var s=i.type,f=i.memoizedProps,d=u;switch(o[N]=i,o[I]=f,a=void 0,u=s){case"iframe":case"object":xt("load",o);break;case"video":case"audio":for(s=0;s<el.length;s++)xt(el[s],o);break;case"source":xt("error",o);break;case"img":case"image":case"link":xt("error",o),xt("load",o);break;case"form":xt("reset",o),xt("submit",o);break;case"details":xt("toggle",o);break;case"input":be(o,f),xt("invalid",o),fn(d,"onChange");break;case"select":o._wrapperState={wasMultiple:!!f.multiple},xt("invalid",o),fn(d,"onChange");break;case"textarea":Qt(o,f),xt("invalid",o),fn(d,"onChange")}for(a in cn(u,f),s=null,f)f.hasOwnProperty(a)&&(c=f[a],"children"===a?"string"==typeof c?o.textContent!==c&&(s=["children",c]):"number"==typeof c&&o.textContent!==""+c&&(s=["children",""+c]):g.hasOwnProperty(a)&&null!=c&&fn(d,a));switch(u){case"input":Vl(o),we(o,f,!0);break;case"textarea":Vl(o),Yt(o);break;case"select":case"option":break;default:"function"==typeof f.onClick&&(o.onclick=dn)}a=s,i.updateQueue=a,(i=null!==a)&&po(e)}else{f=e,o=a,d=i,s=9===u.nodeType?u:u.ownerDocument,c===Xt.html&&(c=Jt(o)),c===Xt.html?"script"===o?((o=s.createElement("div")).innerHTML="<script><\/script>",s=o.removeChild(o.firstChild)):"string"==typeof d.is?s=s.createElement(o,{is:d.is}):(s=s.createElement(o),"select"===o&&d.multiple&&(s.multiple=!0)):s=s.createElementNS(c,o),(o=s)[N]=f,o[I]=i,mo(o,e,!1,!1),d=o;var p=u,m=sn(s=a,f=i);switch(s){case"iframe":case"object":xt("load",d),u=f;break;case"video":case"audio":for(u=0;u<el.length;u++)xt(el[u],d);u=f;break;case"source":xt("error",d),u=f;break;case"img":case"image":case"link":xt("error",d),xt("load",d),u=f;break;case"form":xt("reset",d),xt("submit",d),u=f;break;case"details":xt("toggle",d),u=f;break;case"input":be(d,f),u=ge(d,f),xt("invalid",d),fn(p,"onChange");break;case"option":u=$t(d,f);break;case"select":d._wrapperState={wasMultiple:!!f.multiple},u=L({},f,{value:void 0}),xt("invalid",d),fn(p,"onChange");break;case"textarea":Qt(d,f),u=qt(d,f),xt("invalid",d),fn(p,"onChange");break;default:u=f}cn(s,u),c=void 0;var h=s,y=d,v=u;for(c in v)if(v.hasOwnProperty(c)){var b=v[c];"style"===c?an(y,b):"dangerouslySetInnerHTML"===c?null!=(b=b?b.__html:void 0)&&tn(y,b):"children"===c?"string"==typeof b?("textarea"!==h||""!==b)&&nn(y,b):"number"==typeof b&&nn(y,""+b):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(g.hasOwnProperty(c)?null!=b&&fn(p,c):null!=b&&ye(y,c,b,m))}switch(s){case"input":Vl(d),we(d,f,!1);break;case"textarea":Vl(d),Yt(d);break;case"option":null!=f.value&&d.setAttribute("value",""+ve(f.value));break;case"select":(u=d).multiple=!!f.multiple,null!=(d=f.value)?Kt(u,!!f.multiple,d,!1):null!=f.defaultValue&&Kt(u,!!f.multiple,f.defaultValue,!0);break;default:"function"==typeof u.onClick&&(d.onclick=dn)}(i=hn(a,i))&&po(e),e.stateNode=o}null!==e.ref&&(e.effectTag|=128)}else null===e.stateNode&&r("166");break;case 6:o&&null!=e.stateNode?vo(o,e,o.memoizedProps,i):("string"!=typeof i&&(null===e.stateNode&&r("166")),o=ML(xL.current),ML(kL.current),JL(e)?(a=(i=e).stateNode,o=i.memoizedProps,a[N]=i,(i=a.nodeValue!==o)&&po(e)):(a=e,(i=(9===o.nodeType?o:o.ownerDocument).createTextNode(i))[N]=e,a.stateNode=i));break;case 11:break;case 13:if(i=e.memoizedState,0!=(64&e.effectTag)){e.expirationTime=a,Fo=e;break l}i=null!==i,a=null!==o&&null!==o.memoizedState,null!==o&&!i&&a&&(null!==(o=o.child.sibling)&&(null!==(u=e.firstEffect)?(e.firstEffect=o,o.nextEffect=u):(e.firstEffect=e.lastEffect=o,o.nextEffect=null),o.effectTag=8)),(i!==a||0==(1&e.effectTag)&&i)&&(e.effectTag|=4);break;case 7:case 8:case 12:break;case 4:TL(),ho(e);break;case 10:vL(e);break;case 9:case 14:break;case 17:On(e.type)&&Pn();break;default:r("156")}Fo=null}if(e=l,1===Do||1!==e.childExpirationTime){for(i=0,a=e.child;null!==a;)(o=a.expirationTime)>i&&(i=o),(u=a.childExpirationTime)>i&&(i=u),a=a.sibling;e.childExpirationTime=i}if(null!==Fo)return Fo;null!==t&&0==(1024&t.effectTag)&&(null===t.firstEffect&&(t.firstEffect=l.firstEffect),null!==l.lastEffect&&(null!==t.lastEffect&&(t.lastEffect.nextEffect=l.firstEffect),t.lastEffect=l.lastEffect),1<l.effectTag&&(null!==t.lastEffect?t.lastEffect.nextEffect=l:t.firstEffect=l,t.lastEffect=l))}else{if(null!==(l=zo(l)))return l.effectTag&=1023,l;null!==t&&(t.firstEffect=t.lastEffect=null,t.effectTag|=1024)}if(null!==n)return n;if(null===t)break;l=t}return null}function Go(l){var e=fo(l.alternate,l,Do);return l.memoizedProps=l.pendingProps,null===e&&(e=Qo(l)),Po.current=null,e}function Yo(l,e){jo&&r("243"),qo(),jo=!0,Po.currentDispatcher=Oo;var t=l.nextExpirationTimeToWorkOn;t===Do&&l===Ro&&null!==Fo||(Ko(),Do=t,Fo=Hn((Ro=l).current,null),l.pendingCommitExpirationTime=0);for(var n=!1;;){try{if(e)for(;null!==Fo&&!zr();)Fo=Go(Fo);else for(;null!==Fo;)Fo=Go(Fo)}catch(e){if(hL=mL=pL=null,null===Fo)n=!0,Fr(e);else{null===Fo&&r("271");var L=Fo,o=L.return;if(null!==o){l:{var a=l,i=o,u=L,c=e;if(o=Do,u.effectTag|=1024,u.firstEffect=u.lastEffect=null,null!==c&&"object"==typeof c&&"function"==typeof c.then){var s=c;c=i;var f=-1,d=-1;do{if(13===c.tag){var p=c.alternate;if(null!==p&&null!==(p=p.memoizedState)){d=10*(1073741822-p.timedOutAt);break}"number"==typeof(p=c.pendingProps.maxDuration)&&(0>=p?f=0:(-1===f||p<f)&&(f=p))}c=c.return}while(null!==c);c=i;do{if((p=13===c.tag)&&(p=void 0!==c.memoizedProps.fallback&&null===c.memoizedState),p){if(null===(i=c.updateQueue)?c.updateQueue=new Set([s]):i.add(s),0==(1&c.mode)){c.effectTag|=64,u.effectTag&=-1957,1===u.tag&&(null===u.alternate?u.tag=17:((o=nL(1073741823)).tag=2,oL(u,o))),u.expirationTime=1073741823;break l}null===(u=a.pingCache)?(u=a.pingCache=new To,i=new Set,u.set(s,i)):void 0===(i=u.get(s))&&(i=new Set,u.set(s,i)),i.has(o)||(i.add(o),u=Zo.bind(null,a,s,o),s.then(u,u)),-1===f?a=1073741823:(-1===d&&(d=10*(1073741822-Jn(a,o))-5e3),a=d+f),0<=a&&Uo<a&&(Uo=a),c.effectTag|=2048,c.expirationTime=o;break l}c=c.return}while(null!==c);c=Error((ae(u.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ie(u))}Ao=!0,c=fL(c,u),a=i;do{switch(a.tag){case 3:a.effectTag|=2048,a.expirationTime=o,rL(a,o=Eo(a,c,o));break l;case 1:if(s=c,f=a.type,d=a.stateNode,0==(64&a.effectTag)&&("function"==typeof f.getDerivedStateFromError||null!==d&&"function"==typeof d.componentDidCatch&&(null===$o||!$o.has(d)))){a.effectTag|=2048,a.expirationTime=o,rL(a,o=So(a,s,o));break l}}a=a.return}while(null!==a)}Fo=Qo(L);continue}n=!0,Fr(e)}}break}if(jo=!1,hL=mL=pL=Po.currentDispatcher=null,n)Ro=null,l.finishedWork=null;else if(null!==Fo)l.finishedWork=null;else{if(null===(n=l.current.alternate)&&r("281"),Ro=null,Ao){if(L=l.latestPendingTime,o=l.latestSuspendedTime,a=l.latestPingedTime,0!==L&&L<t||0!==o&&o<t||0!==a&&a<t)return Xn(l,t),void Mr(l,n,t,l.expirationTime,-1);if(!l.didError&&e)return l.didError=!0,t=l.nextExpirationTimeToWorkOn=t,e=l.expirationTime=1073741823,void Mr(l,n,t,e,-1)}e&&-1!==Uo?(Xn(l,t),(e=10*(1073741822-Jn(l,t)))<Uo&&(Uo=e),e=10*(1073741822-Cr()),e=Uo-e,Mr(l,n,t,l.expirationTime,0>e?0:e)):(l.pendingCommitExpirationTime=t,l.finishedWork=n)}}function Xo(l,e){for(var t=l.return;null!==t;){switch(t.tag){case 1:var n=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===$o||!$o.has(n)))return oL(t,l=So(t,l=fL(e,l),1073741823)),void er(t,1073741823);break;case 3:return oL(t,l=Eo(t,l=fL(e,l),1073741823)),void er(t,1073741823)}t=t.return}3===l.tag&&(oL(l,t=Eo(l,t=fL(e,l),1073741823)),er(l,1073741823))}function Jo(l,e){return 0!==Io?l=Io:jo?l=Vo?1073741823:Do:1&e.mode?(l=mr?1073741822-10*(1+((1073741822-l+15)/10|0)):1073741822-25*(1+((1073741822-l+500)/25|0)),null!==Ro&&l===Do&&--l):l=1073741823,mr&&(0===cr||l<cr)&&(cr=l),l}function Zo(l,e,t){var n=l.pingCache;null!==n&&n.delete(e),null!==Ro&&Do===t?Ro=null:(e=l.earliestSuspendedTime,n=l.latestSuspendedTime,0!==e&&t<=e&&t>=n&&(l.didError=!1,(0===(e=l.latestPingedTime)||e>t)&&(l.latestPingedTime=t),Zn(t,l),0!==(t=l.expirationTime)&&Tr(l,t)))}function lr(l,e){l.expirationTime<e&&(l.expirationTime=e);var t=l.alternate;null!==t&&t.expirationTime<e&&(t.expirationTime=e);var n=l.return,L=null;if(null===n&&3===l.tag)L=l.stateNode;else for(;null!==n;){if(t=n.alternate,n.childExpirationTime<e&&(n.childExpirationTime=e),null!==t&&t.childExpirationTime<e&&(t.childExpirationTime=e),null===n.return&&3===n.tag){L=n.stateNode;break}n=n.return}return L}function er(l,e){null!==(l=lr(l,e))&&(!jo&&0!==Do&&e>Do&&Ko(),Yn(l,e),jo&&!Vo&&Ro===l||Tr(l,l.expirationTime),_r>br&&(_r=0,r("185")))}function tr(l,e,t,n,L){var o=Io;Io=1073741823;try{return l(e,t,n,L)}finally{Io=o}}var nr=null,Lr=null,or=0,rr=void 0,ar=!1,ir=null,ur=0,cr=0,sr=!1,fr=null,dr=!1,pr=!1,mr=!1,hr=null,yr=o.unstable_now(),vr=1073741822-(yr/10|0),gr=vr,br=50,_r=0,kr=null;function wr(){vr=1073741822-((o.unstable_now()-yr)/10|0)}function xr(l,e){if(0!==or){if(e<or)return;null!==rr&&o.unstable_cancelCallback(rr)}or=e,l=o.unstable_now()-yr,rr=o.unstable_scheduleCallback(Or,{timeout:10*(1073741822-e)-l})}function Mr(l,e,t,n,L){l.expirationTime=n,0!==L||zr()?0<L&&(l.timeoutHandle=vn(function(l,e,t){l.pendingCommitExpirationTime=t,l.finishedWork=e,wr(),gr=vr,Nr(l,t)}.bind(null,l,e,t),L)):(l.pendingCommitExpirationTime=t,l.finishedWork=e)}function Cr(){return ar?gr:(Er(),0!==ur&&1!==ur||(wr(),gr=vr),gr)}function Tr(l,e){null===l.nextScheduledRoot?(l.expirationTime=e,null===Lr?(nr=Lr=l,l.nextScheduledRoot=l):(Lr=Lr.nextScheduledRoot=l).nextScheduledRoot=nr):e>l.expirationTime&&(l.expirationTime=e),ar||(dr?pr&&(ir=l,ur=1073741823,Ir(l,1073741823,!1)):1073741823===e?Pr(1073741823,!1):xr(l,e))}function Er(){var l=0,e=null;if(null!==Lr)for(var t=Lr,n=nr;null!==n;){var L=n.expirationTime;if(0===L){if((null===t||null===Lr)&&r("244"),n===n.nextScheduledRoot){nr=Lr=n.nextScheduledRoot=null;break}if(n===nr)nr=L=n.nextScheduledRoot,Lr.nextScheduledRoot=L,n.nextScheduledRoot=null;else{if(n===Lr){(Lr=t).nextScheduledRoot=nr,n.nextScheduledRoot=null;break}t.nextScheduledRoot=n.nextScheduledRoot,n.nextScheduledRoot=null}n=t.nextScheduledRoot}else{if(L>l&&(l=L,e=n),n===Lr)break;if(1073741823===l)break;t=n,n=n.nextScheduledRoot}}ir=e,ur=l}var Sr=!1;function zr(){return!!Sr||!!o.unstable_shouldYield()&&(Sr=!0)}function Or(){try{if(!zr()&&null!==nr){wr();var l=nr;do{var e=l.expirationTime;0!==e&&vr<=e&&(l.nextExpirationTimeToWorkOn=vr),l=l.nextScheduledRoot}while(l!==nr)}Pr(0,!0)}finally{Sr=!1}}function Pr(l,e){if(Er(),e)for(wr(),gr=vr;null!==ir&&0!==ur&&l<=ur&&!(Sr&&vr>ur);)Ir(ir,ur,vr>ur),Er(),wr(),gr=vr;else for(;null!==ir&&0!==ur&&l<=ur;)Ir(ir,ur,!1),Er();if(e&&(or=0,rr=null),0!==ur&&xr(ir,ur),_r=0,kr=null,null!==hr)for(l=hr,hr=null,e=0;e<l.length;e++){var t=l[e];try{t._onComplete()}catch(l){sr||(sr=!0,fr=l)}}if(sr)throw l=fr,fr=null,sr=!1,l}function Nr(l,e){ar&&r("253"),ir=l,ur=e,Ir(l,e,!1),Pr(1073741823,!1)}function Ir(l,e,t){if(ar&&r("245"),ar=!0,t){var n=l.finishedWork;null!==n?jr(l,n,e):(l.finishedWork=null,-1!==(n=l.timeoutHandle)&&(l.timeoutHandle=-1,gn(n)),Yo(l,t),null!==(n=l.finishedWork)&&(zr()?l.finishedWork=n:jr(l,n,e)))}else null!==(n=l.finishedWork)?jr(l,n,e):(l.finishedWork=null,-1!==(n=l.timeoutHandle)&&(l.timeoutHandle=-1,gn(n)),Yo(l,t),null!==(n=l.finishedWork)&&jr(l,n,e));ar=!1}function jr(l,e,t){var n=l.firstBatch;if(null!==n&&n._expirationTime>=t&&(null===hr?hr=[n]:hr.push(n),n._defer))return l.finishedWork=e,void(l.expirationTime=0);l.finishedWork=null,l===kr?_r++:(kr=l,_r=0),Vo=jo=!0,l.current===e&&r("177"),0===(t=l.pendingCommitExpirationTime)&&r("261"),l.pendingCommitExpirationTime=0,n=e.expirationTime;var L=e.childExpirationTime;if(n=L>n?L:n,l.didError=!1,0===n?(l.earliestPendingTime=0,l.latestPendingTime=0,l.earliestSuspendedTime=0,l.latestSuspendedTime=0,l.latestPingedTime=0):(n<l.latestPingedTime&&(l.latestPingedTime=0),0!==(L=l.latestPendingTime)&&(L>n?l.earliestPendingTime=l.latestPendingTime=0:l.earliestPendingTime>n&&(l.earliestPendingTime=l.latestPendingTime)),0===(L=l.earliestSuspendedTime)?Yn(l,n):n<l.latestSuspendedTime?(l.earliestSuspendedTime=0,l.latestSuspendedTime=0,l.latestPingedTime=0,Yn(l,n)):n>L&&Yn(l,n)),Zn(0,l),Po.current=null,1<e.effectTag?null!==e.lastEffect?(e.lastEffect.nextEffect=e,n=e.firstEffect):n=e:n=e.firstEffect,pn=wt,Ft(L=jt())){if("selectionStart"in L)var o={start:L.selectionStart,end:L.selectionEnd};else l:{var a=(o=(o=L.ownerDocument)&&o.defaultView||window).getSelection&&o.getSelection();if(a&&0!==a.rangeCount){o=a.anchorNode;var i=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{o.nodeType,u.nodeType}catch(l){o=null;break l}var c=0,s=-1,f=-1,d=0,p=0,m=L,h=null;e:for(;;){for(var y;m!==o||0!==i&&3!==m.nodeType||(s=c+i),m!==u||0!==a&&3!==m.nodeType||(f=c+a),3===m.nodeType&&(c+=m.nodeValue.length),null!==(y=m.firstChild);)h=m,m=y;for(;;){if(m===L)break e;if(h===o&&++d===i&&(s=c),h===u&&++p===a&&(f=c),null!==(y=m.nextSibling))break;h=(m=h).parentNode}m=y}o=-1===s||-1===f?null:{start:s,end:f}}else o=null}o=o||{start:0,end:0}}else o=null;for(mn={focusedElem:L,selectionRange:o},wt=!1,Bo=n;null!==Bo;){L=!1,o=void 0;try{for(;null!==Bo;){if(256&Bo.effectTag)l:{var v=Bo.alternate;switch((i=Bo).tag){case 0:case 11:case 15:break l;case 1:if(256&i.effectTag&&null!==v){var g=v.memoizedProps,b=v.memoizedState,_=i.stateNode,k=_.getSnapshotBeforeUpdate(i.elementType===i.type?g:zL(i.type,g),b);_.__reactInternalSnapshotBeforeUpdate=k}break l;case 3:case 5:case 6:case 4:case 17:break l;default:r("163")}}Bo=Bo.nextEffect}}catch(l){L=!0,o=l}L&&(null===Bo&&r("178"),Xo(Bo,o),null!==Bo&&(Bo=Bo.nextEffect))}for(Bo=n;null!==Bo;){v=!1,g=void 0;try{for(;null!==Bo;){var w=Bo.effectTag;if(16&w&&nn(Bo.stateNode,""),128&w){var x=Bo.alternate;if(null!==x){var M=x.ref;null!==M&&("function"==typeof M?M(null):M.current=null)}}switch(14&w){case 2:xo(Bo),Bo.effectTag&=-3;break;case 6:xo(Bo),Bo.effectTag&=-3,Co(Bo.alternate,Bo);break;case 4:Co(Bo.alternate,Bo);break;case 8:Mo(b=Bo),b.return=null,b.child=null,b.memoizedState=null,b.updateQueue=null;var C=b.alternate;null!==C&&(C.return=null,C.child=null,C.memoizedState=null,C.updateQueue=null)}Bo=Bo.nextEffect}}catch(l){v=!0,g=l}v&&(null===Bo&&r("178"),Xo(Bo,g),null!==Bo&&(Bo=Bo.nextEffect))}if(M=mn,x=jt(),w=M.focusedElem,v=M.selectionRange,x!==w&&w&&w.ownerDocument&&function l(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?l(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}(w.ownerDocument.documentElement,w)){null!==v&&Ft(w)&&(x=v.start,void 0===(M=v.end)&&(M=x),"selectionStart"in w?(w.selectionStart=x,w.selectionEnd=Math.min(M,w.value.length)):(M=(x=w.ownerDocument||document)&&x.defaultView||window).getSelection&&(M=M.getSelection(),g=w.textContent.length,C=Math.min(v.start,g),v=void 0===v.end?C:Math.min(v.end,g),!M.extend&&C>v&&(g=v,v=C,C=g),g=It(w,C),b=It(w,v),g&&b&&(1!==M.rangeCount||M.anchorNode!==g.node||M.anchorOffset!==g.offset||M.focusNode!==b.node||M.focusOffset!==b.offset)&&((x=x.createRange()).setStart(g.node,g.offset),M.removeAllRanges(),C>v?(M.addRange(x),M.extend(b.node,b.offset)):(x.setEnd(b.node,b.offset),M.addRange(x))))),x=[];for(M=w;M=M.parentNode;)1===M.nodeType&&x.push({element:M,left:M.scrollLeft,top:M.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w<x.length;w++)(M=x[w]).element.scrollLeft=M.left,M.element.scrollTop=M.top}for(mn=null,wt=!!pn,pn=null,l.current=e,Bo=n;null!==Bo;){n=!1,w=void 0;try{for(x=t;null!==Bo;){var T=Bo.effectTag;if(36&T){var E=Bo.alternate;switch(C=x,(M=Bo).tag){case 0:case 11:case 15:break;case 1:var S=M.stateNode;if(4&M.effectTag)if(null===E)S.componentDidMount();else{var z=M.elementType===M.type?E.memoizedProps:zL(M.type,E.memoizedProps);S.componentDidUpdate(z,E.memoizedState,S.__reactInternalSnapshotBeforeUpdate)}var O=M.updateQueue;null!==O&&cL(0,O,S);break;case 3:var P=M.updateQueue;if(null!==P){if(v=null,null!==M.child)switch(M.child.tag){case 5:v=M.child.stateNode;break;case 1:v=M.child.stateNode}cL(0,P,v)}break;case 5:var N=M.stateNode;null===E&&4&M.effectTag&&hn(M.type,M.memoizedProps)&&N.focus();break;case 6:case 4:case 12:case 13:case 17:break;default:r("163")}}if(128&T){var I=Bo.ref;if(null!==I){var j=Bo.stateNode;switch(Bo.tag){case 5:var F=j;break;default:F=j}"function"==typeof I?I(F):I.current=F}}Bo=Bo.nextEffect}}catch(l){n=!0,w=l}n&&(null===Bo&&r("178"),Xo(Bo,w),null!==Bo&&(Bo=Bo.nextEffect))}jo=Vo=!1,"function"==typeof Dn&&Dn(e.stateNode),T=e.expirationTime,0===(e=(e=e.childExpirationTime)>T?e:T)&&($o=null),l.expirationTime=e,l.finishedWork=null}function Fr(l){null===ir&&r("246"),ir.expirationTime=0,sr||(sr=!0,fr=l)}function Rr(l,e){var t=dr;dr=!0;try{return l(e)}finally{(dr=t)||ar||Pr(1073741823,!1)}}function Dr(l,e){if(dr&&!pr){pr=!0;try{return l(e)}finally{pr=!1}}return l(e)}function Ur(l,e,t){if(mr)return l(e,t);dr||ar||0===cr||(Pr(cr,!1),cr=0);var n=mr,L=dr;dr=mr=!0;try{return l(e,t)}finally{mr=n,(dr=L)||ar||Pr(1073741823,!1)}}function Ar(l,e,t,n,L){var o=e.current;l:if(t){e:{2===et(t=t._reactInternalFiber)&&1===t.tag||r("170");var a=t;do{switch(a.tag){case 3:a=a.stateNode.context;break e;case 1:if(On(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break e}}a=a.return}while(null!==a);r("171"),a=void 0}if(1===t.tag){var i=t.type;if(On(i)){t=jn(t,i,a);break l}}t=a}else t=Cn;return null===e.context?e.context=t:e.pendingContext=t,e=L,(L=nL(n)).payload={element:l},null!==(e=void 0===e?null:e)&&(L.callback=e),qo(),oL(o,L),er(o,n),n}function Br(l,e,t,n){var L=e.current;return Ar(l,e,t,L=Jo(Cr(),L),n)}function Vr(l){if(!(l=l.current).child)return null;switch(l.child.tag){case 5:default:return l.child.stateNode}}function Wr(l){var e=1073741822-25*(1+((1073741822-Cr()+500)/25|0));e>=No&&(e=No-1),this._expirationTime=No=e,this._root=l,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function Hr(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function $r(l,e,t){l={current:e=Vn(3,null,null,e?3:0),containerInfo:l,pendingChildren:null,pingCache:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,timeoutHandle:-1,context:null,pendingContext:null,hydrate:t,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null},this._internalRoot=e.stateNode=l}function Kr(l){return!(!l||1!==l.nodeType&&9!==l.nodeType&&11!==l.nodeType&&(8!==l.nodeType||" react-mount-point-unstable "!==l.nodeValue))}function qr(l,e,t,n,L){Kr(t)||r("200");var o=t._reactRootContainer;if(o){if("function"==typeof L){var a=L;L=function(){var l=Vr(o._internalRoot);a.call(l)}}null!=l?o.legacy_renderSubtreeIntoContainer(l,e,L):o.render(e,L)}else{if(o=t._reactRootContainer=function(l,e){if(e||(e=!(!(e=l?9===l.nodeType?l.documentElement:l.firstChild:null)||1!==e.nodeType||!e.hasAttribute("data-reactroot"))),!e)for(var t;t=l.lastChild;)l.removeChild(t);return new $r(l,!1,e)}(t,n),"function"==typeof L){var i=L;L=function(){var l=Vr(o._internalRoot);i.call(l)}}Dr(function(){null!=l?o.legacy_renderSubtreeIntoContainer(l,e,L):o.render(e,L)})}return Vr(o._internalRoot)}function Qr(l,e){var t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return Kr(e)||r("200"),function(l,e,t){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Ql,key:null==n?null:""+n,children:l,containerInfo:e,implementation:t}}(l,e,null,t)}Cl=function(l,e,t){switch(e){case"input":if(ke(l,t),e=t.name,"radio"===t.type&&null!=e){for(t=l;t.parentNode;)t=t.parentNode;for(t=t.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<t.length;e++){var n=t[e];if(n!==l&&n.form===l.form){var L=D(n);L||r("90"),Wl(n),ke(n,L)}}}break;case"textarea":Gt(l,t);break;case"select":null!=(e=t.value)&&Kt(l,!!t.multiple,e,!1)}},Wr.prototype.render=function(l){this._defer||r("250"),this._hasChildren=!0,this._children=l;var e=this._root._internalRoot,t=this._expirationTime,n=new Hr;return Ar(l,e,null,t,n._onCommit),n},Wr.prototype.then=function(l){if(this._didComplete)l();else{var e=this._callbacks;null===e&&(e=this._callbacks=[]),e.push(l)}},Wr.prototype.commit=function(){var l=this._root._internalRoot,e=l.firstBatch;if(this._defer&&null!==e||r("251"),this._hasChildren){var t=this._expirationTime;if(e!==this){this._hasChildren&&(t=this._expirationTime=e._expirationTime,this.render(this._children));for(var n=null,L=e;L!==this;)n=L,L=L._next;null===n&&r("251"),n._next=L._next,this._next=e,l.firstBatch=this}this._defer=!1,Nr(l,t),e=this._next,this._next=null,null!==(e=l.firstBatch=e)&&e._hasChildren&&e.render(e._children)}else this._next=null,this._defer=!1},Wr.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var l=this._callbacks;if(null!==l)for(var e=0;e<l.length;e++)(0,l[e])()}},Hr.prototype.then=function(l){if(this._didCommit)l();else{var e=this._callbacks;null===e&&(e=this._callbacks=[]),e.push(l)}},Hr.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var l=this._callbacks;if(null!==l)for(var e=0;e<l.length;e++){var t=l[e];"function"!=typeof t&&r("191",t),t()}}},$r.prototype.render=function(l,e){var t=this._internalRoot,n=new Hr;return null!==(e=void 0===e?null:e)&&n.then(e),Br(l,t,null,n._onCommit),n},$r.prototype.unmount=function(l){var e=this._internalRoot,t=new Hr;return null!==(l=void 0===l?null:l)&&t.then(l),Br(null,e,null,t._onCommit),t},$r.prototype.legacy_renderSubtreeIntoContainer=function(l,e,t){var n=this._internalRoot,L=new Hr;return null!==(t=void 0===t?null:t)&&L.then(t),Br(e,n,l,L._onCommit),L},$r.prototype.createBatch=function(){var l=new Wr(this),e=l._expirationTime,t=this._internalRoot,n=t.firstBatch;if(null===n)t.firstBatch=l,l._next=null;else{for(t=null;null!==n&&n._expirationTime>=e;)t=n,n=n._next;l._next=n,null!==t&&(t._next=l)}return l},Pl=Rr,Nl=Ur,Il=function(){ar||0===cr||(Pr(cr,!1),cr=0)};var Gr={createPortal:Qr,findDOMNode:function(l){if(null==l)return null;if(1===l.nodeType)return l;var e=l._reactInternalFiber;return void 0===e&&("function"==typeof l.render?r("188"):r("268",Object.keys(l))),l=null===(l=nt(e))?null:l.stateNode},hydrate:function(l,e,t){return qr(null,l,e,!0,t)},render:function(l,e,t){return qr(null,l,e,!1,t)},unstable_renderSubtreeIntoContainer:function(l,e,t,n){return(null==l||void 0===l._reactInternalFiber)&&r("38"),qr(l,e,t,!1,n)},unmountComponentAtNode:function(l){return Kr(l)||r("40"),!!l._reactRootContainer&&(Dr(function(){qr(null,null,l,!1,function(){l._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return Qr.apply(void 0,arguments)},unstable_batchedUpdates:Rr,unstable_interactiveUpdates:Ur,flushSync:function(l,e){ar&&r("187");var t=dr;dr=!0;try{return tr(l,e)}finally{dr=t,Pr(1073741823,!1)}},unstable_createRoot:function(l,e){return Kr(l)||r("299","unstable_createRoot"),new $r(l,!0,null!=e&&!0===e.hydrate)},unstable_flushControlled:function(l){var e=dr;dr=!0;try{tr(l)}finally{(dr=e)||ar||Pr(1073741823,!1)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[F,R,D,S.injectEventPluginsByName,v,H,function(l){C(l,W)},zl,Ol,Tt,O]}};!function(l){var e=l.findFiberByHostInstance;(function(l){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var e=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(e.isDisabled||!e.supportsFiber)return!0;try{var t=e.inject(l);Dn=An(function(l){return e.onCommitFiberRoot(t,l)}),Un=An(function(l){return e.onCommitFiberUnmount(t,l)})}catch(l){}})(L({},l,{overrideProps:null,findHostInstanceByFiber:function(l){return null===(l=nt(l))?null:l.stateNode},findFiberByHostInstance:function(l){return e?e(l):null}}))}({findFiberByHostInstance:j,bundleType:0,version:"16.7.0",rendererPackageName:"react-dom"});var Yr={default:Gr},Xr=Yr&&Gr||Yr;l.exports=Xr.default||Xr},function(l,e,t){"use strict";l.exports=t(13)},function(l,e,t){"use strict";(function(l){
/** @license React v0.12.0
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
Object.defineProperty(e,"__esModule",{value:!0});var t=null,n=!1,L=3,o=-1,r=-1,a=!1,i=!1;function u(){if(!a){var l=t.expirationTime;i?w():i=!0,k(f,l)}}function c(){var l=t,e=t.next;if(t===e)t=null;else{var n=t.previous;t=n.next=e,e.previous=n}l.next=l.previous=null,n=l.callback,e=l.expirationTime,l=l.priorityLevel;var o=L,a=r;L=l,r=e;try{var i=n()}finally{L=o,r=a}if("function"==typeof i)if(i={callback:i,priorityLevel:l,expirationTime:e,next:null,previous:null},null===t)t=i.next=i.previous=i;else{n=null,l=t;do{if(l.expirationTime>=e){n=l;break}l=l.next}while(l!==t);null===n?n=t:n===t&&(t=i,u()),(e=n.previous).next=n.previous=i,i.next=n,i.previous=e}}function s(){if(-1===o&&null!==t&&1===t.priorityLevel){a=!0;try{do{c()}while(null!==t&&1===t.priorityLevel)}finally{a=!1,null!==t?u():i=!1}}}function f(l){a=!0;var L=n;n=l;try{if(l)for(;null!==t;){var o=e.unstable_now();if(!(t.expirationTime<=o))break;do{c()}while(null!==t&&t.expirationTime<=o)}else if(null!==t)do{c()}while(null!==t&&!x())}finally{a=!1,n=L,null!==t?u():i=!1,s()}}var d,p,m=Date,h="function"==typeof setTimeout?setTimeout:void 0,y="function"==typeof clearTimeout?clearTimeout:void 0,v="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,g="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function b(l){d=v(function(e){y(p),l(e)}),p=h(function(){g(d),l(e.unstable_now())},100)}if("object"==typeof performance&&"function"==typeof performance.now){var _=performance;e.unstable_now=function(){return _.now()}}else e.unstable_now=function(){return m.now()};var k,w,x,M=null;if("undefined"!=typeof window?M=window:void 0!==l&&(M=l),M&&M._schedMock){var C=M._schedMock;k=C[0],w=C[1],x=C[2],e.unstable_now=C[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var T=null,E=function(l){if(null!==T)try{T(l)}finally{T=null}};k=function(l){null!==T?setTimeout(k,0,l):(T=l,setTimeout(E,0,!1))},w=function(){T=null},x=function(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof v&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var S=null,z=!1,O=-1,P=!1,N=!1,I=0,j=33,F=33;x=function(){return I<=e.unstable_now()};var R=new MessageChannel,D=R.port2;R.port1.onmessage=function(){z=!1;var l=S,t=O;S=null,O=-1;var n=e.unstable_now(),L=!1;if(0>=I-n){if(!(-1!==t&&t<=n))return P||(P=!0,b(U)),S=l,void(O=t);L=!0}if(null!==l){N=!0;try{l(L)}finally{N=!1}}};var U=function(l){if(null!==S){b(U);var e=l-I+F;e<F&&j<F?(8>e&&(e=8),F=e<j?j:e):j=e,I=l+F,z||(z=!0,D.postMessage(void 0))}else P=!1};k=function(l,e){S=l,O=e,N||0>e?D.postMessage(void 0):P||(P=!0,b(U))},w=function(){S=null,z=!1,O=-1}}e.unstable_ImmediatePriority=1,e.unstable_UserBlockingPriority=2,e.unstable_NormalPriority=3,e.unstable_IdlePriority=5,e.unstable_LowPriority=4,e.unstable_runWithPriority=function(l,t){switch(l){case 1:case 2:case 3:case 4:case 5:break;default:l=3}var n=L,r=o;L=l,o=e.unstable_now();try{return t()}finally{L=n,o=r,s()}},e.unstable_scheduleCallback=function(l,n){var r=-1!==o?o:e.unstable_now();if("object"==typeof n&&null!==n&&"number"==typeof n.timeout)n=r+n.timeout;else switch(L){case 1:n=r+-1;break;case 2:n=r+250;break;case 5:n=r+1073741823;break;case 4:n=r+1e4;break;default:n=r+5e3}if(l={callback:l,priorityLevel:L,expirationTime:n,next:null,previous:null},null===t)t=l.next=l.previous=l,u();else{r=null;var a=t;do{if(a.expirationTime>n){r=a;break}a=a.next}while(a!==t);null===r?r=t:r===t&&(t=l,u()),(n=r.previous).next=r.previous=l,l.next=r,l.previous=n}return l},e.unstable_cancelCallback=function(l){var e=l.next;if(null!==e){if(e===l)t=null;else{l===t&&(t=e);var n=l.previous;n.next=e,e.previous=n}l.next=l.previous=null}},e.unstable_wrapCallback=function(l){var t=L;return function(){var n=L,r=o;L=t,o=e.unstable_now();try{return l.apply(this,arguments)}finally{L=n,o=r,s()}}},e.unstable_getCurrentPriorityLevel=function(){return L},e.unstable_shouldYield=function(){return!n&&(null!==t&&t.expirationTime<r||x())},e.unstable_continueExecution=function(){null!==t&&u()},e.unstable_pauseExecution=function(){},e.unstable_getFirstCallbackNode=function(){return t}}).call(this,t(14))},function(l,e){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(l){"object"==typeof window&&(t=window)}l.exports=t},function(l,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function l(l,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,n.key,n)}}return function(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}}(),L=u(t(0)),o=u(t(16)),r=u(t(22)),a=u(t(24)),i=u(t(26));function u(l){return l&&l.__esModule?l:{default:l}}t(28),t(31);var c=function(l){function e(l){return function(l,e){if(!(l instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(l,e){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?l:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,l))}return function(l,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);l.prototype=Object.create(e&&e.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(l,e):l.__proto__=e)}(e,L.default.Component),n(e,[{key:"render",value:function(){return L.default.createElement("section",{className:"examples"},L.default.createElement("h1",{className:"examples__title"},"Examples of ",L.default.createElement("a",{href:"https://www.npmjs.com/package/react-svg-map"},"react-svg-map")),L.default.createElement(r.default,null),L.default.createElement(o.default,null),L.default.createElement(a.default,null),L.default.createElement(i.default,null))}}]),e}();e.default=c},function(l,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(l){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(l[n]=t[n])}return l},L=function(){function l(l,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,n.key,n)}}return function(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}}(),o=u(t(0)),r=u(t(17)),a=t(1),i=t(2);function u(l){return l&&l.__esModule?l:{default:l}}var c=function(l){function e(l){!function(l,e){if(!(l instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(l,e){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?l:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,l));return t.state={pointedLocation:null,focusedLocation:null,selectedLocations:[]},t.handleLocationMouseOver=t.handleLocationMouseOver.bind(t),t.handleLocationMouseOut=t.handleLocationMouseOut.bind(t),t.handleLocationFocus=t.handleLocationFocus.bind(t),t.handleLocationBlur=t.handleLocationBlur.bind(t),t.handleOnChange=t.handleOnChange.bind(t),t}return function(l,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);l.prototype=Object.create(e&&e.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(l,e):l.__proto__=e)}(e,o.default.Component),L(e,[{key:"handleLocationMouseOver",value:function(l){var e=(0,i.getLocationName)(l);this.setState({pointedLocation:e})}},{key:"handleLocationMouseOut",value:function(){this.setState({pointedLocation:null})}},{key:"handleLocationFocus",value:function(l){var e=(0,i.getLocationName)(l);this.setState({focusedLocation:e})}},{key:"handleLocationBlur",value:function(){this.setState({focusedLocation:null})}},{key:"handleOnChange",value:function(l){this.setState(function(e){return n({},e,{selectedLocations:l.map(function(l){return l.attributes.name.value})})})}},{key:"render",value:function(){return o.default.createElement("article",{className:"examples__block"},o.default.createElement("h2",{className:"examples__block__title"},"Taiwan SVG map as checkboxes"),o.default.createElement("div",{className:"examples__block__info"},o.default.createElement("div",{className:"examples__block__info__item"},"Pointed location: ",this.state.pointedLocation),o.default.createElement("div",{className:"examples__block__info__item"},"Focused location: ",this.state.focusedLocation),o.default.createElement("div",{className:"examples__block__info__item"},"Selected locations:",o.default.createElement("ul",null,[].concat(function(l){if(Array.isArray(l)){for(var e=0,t=Array(l.length);e<l.length;e++)t[e]=l[e];return t}return Array.from(l)}(this.state.selectedLocations)).map(function(l){return o.default.createElement("li",{key:l},l)})))),o.default.createElement("div",{className:"examples__block__map"},o.default.createElement(a.CheckboxSVGMap,{map:r.default,onLocationMouseOver:this.handleLocationMouseOver,onLocationMouseOut:this.handleLocationMouseOut,onLocationFocus:this.handleLocationFocus,onLocationBlur:this.handleLocationBlur,onChange:this.handleOnChange})))}}]),e}();e.default=c},function(l,e,t){"use strict";t.r(e),e.default={label:"Map of Taiwan main island",viewBox:"312 322 688 973",locations:[{name:"Changhua County",id:"changhua-county",path:"M647.2 689.6l0.1 3.6-4.3 1.6-1.2 2.9 0.5 4-2 4.6-1.6 5.4-0.1 5.7-1.2 6.6-0.9 13.4 2.1 6.3 3.6 3.3 3.9 1.4 5.6 2.9-1 3.5-3.8 1.5-2.5 2.3-2.4 1.6-1 0.7-12-2.4-5.8 0.1-12.2-6-19.7-2.3-11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:"Yunlin County",id:"yunlin-county",path:"M642 760.2l1.9 7.2-2 4.7-1 7.2 1 7.7-1.9 5.2-0.9 5.7 4 4.7 5.8 2.5 6.8-2 8.2-0.9 2.6 3.5-0.5 0-0.3 5 0 3.4-4 1.3-11.7 2.4-6.3 0.6-2.4-3.9-4.7-3.4-8.3 2.4-3.7 0.5-12.6-4.6-5-5.9-5.3-4.6-6.9 0.4-12.6 2.3-7.2 2-16.3 9.4-3.8 3.8-4.4 2.4-7 5.7-5.3 0.8-2.1 3-1.7 4.9-3.9 3.2-6.1-0.1-8.3-4.7-11.6 1.4 4.6-5.2-0.2-16.4 0.7-12.3 2.8-9.8 4.3-7.7 1.3-10 2.3-8.8 1.3-3 6.1-8.1 1.1-2.8 0.7-1.5 5.6-4.3 0.8-1.6 7.6 4.4 22-2.6 7.6 0.4 6.6 1.8 11.6 4.4 19.7 2.3 12.2 6 5.8-0.1 12 2.4 1-0.7z"}]}},function(l,e,t){"use strict";var n=t(19);function L(){}l.exports=function(){function l(l,e,t,L,o,r){if(r!==n){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return l}l.isRequired=l;var t={array:l,bool:l,func:l,number:l,object:l,string:l,symbol:l,any:l,arrayOf:e,element:l,instanceOf:e,node:l,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return t.checkPropTypes=L,t.PropTypes=t,t}},function(l,e,t){"use strict";l.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(l,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function l(l,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,n.key,n)}}return function(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}}(),L=a(t(0)),o=a(t(4)),r=a(t(3));function a(l){return l&&l.__esModule?l:{default:l}}var i=function(l){function e(l){!function(l,e){if(!(l instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(l,e){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?l:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,l));return t.state={selectedLocations:[]},t.isLocationSelected=t.isLocationSelected.bind(t),t.handleLocationClick=t.handleLocationClick.bind(t),t.handleLocationKeyDown=t.handleLocationKeyDown.bind(t),t}return function(l,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);l.prototype=Object.create(e&&e.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(l,e):l.__proto__=e)}(e,L.default.Component),n(e,[{key:"isLocationSelected",value:function(l){return this.state.selectedLocations.findIndex(function(e){return e.id===l.id})>-1}},{key:"toggleLocation",value:function(l){var e=this,t=l.target;this.setState(function(l){var n=[].concat(function(l){if(Array.isArray(l)){for(var e=0,t=Array(l.length);e<l.length;e++)t[e]=l[e];return t}return Array.from(l)}(l.selectedLocations));return"true"===t.attributes["aria-checked"].value?n.splice(n.indexOf(t),1):n.push(t),e.props.onChange&&e.props.onChange(n),{selectedLocations:n}})}},{key:"handleLocationClick",value:function(l){l.preventDefault(),this.toggleLocation(l)}},{key:"handleLocationKeyDown",value:function(l){32===l.keyCode&&(l.preventDefault(),this.toggleLocation(l))}},{key:"render",value:function(){return L.default.createElement(r.default,{map:this.props.map,role:"group",locationRole:"checkbox",locationTabIndex:"0",className:this.props.className,locationClassName:this.props.locationClassName,isLocationSelected:this.isLocationSelected,onLocationClick:this.handleLocationClick,onLocationKeyDown:this.handleLocationKeyDown,onLocationMouseOver:this.props.onLocationMouseOver,onLocationMouseOut:this.props.onLocationMouseOut,onLocationMouseMove:this.props.onLocationMouseMove,onLocationFocus:this.props.onLocationFocus,onLocationBlur:this.props.onLocationBlur})}}]),e}();i.propTypes={onChange:o.default.func,map:o.default.shape({viewBox:o.default.string.isRequired,locations:o.default.arrayOf(o.default.shape({path:o.default.string.isRequired,name:o.default.string,id:o.default.string})).isRequired,label:o.default.string}).isRequired,className:o.default.string,locationClassName:o.default.oneOfType([o.default.string,o.default.func]),onLocationMouseOver:o.default.func,onLocationMouseOut:o.default.func,onLocationMouseMove:o.default.func,onLocationFocus:o.default.func,onLocationBlur:o.default.func},e.default=i},function(l,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function l(l,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,n.key,n)}}return function(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}}(),L=i(t(0)),o=i(t(6)),r=i(t(4)),a=i(t(3));function i(l){return l&&l.__esModule?l:{default:l}}var u=function(l){function e(l){!function(l,e){if(!(l instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(l,e){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?l:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,l));return t.state={selectedLocation:null},t.getLocationTabIndex=t.getLocationTabIndex.bind(t),t.isLocationSelected=t.isLocationSelected.bind(t),t.handleLocationClick=t.handleLocationClick.bind(t),t.handleLocationKeyDown=t.handleLocationKeyDown.bind(t),t}return function(l,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);l.prototype=Object.create(e&&e.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(l,e):l.__proto__=e)}(e,L.default.Component),n(e,[{key:"componentDidMount",value:function(){this.locations=o.default.findDOMNode(this).querySelectorAll("path")}},{key:"getLocationTabIndex",value:function(l,e){return this.state.selectedLocation?this.isLocationSelected(l)?"0":"-1":0===e?"0":"-1"}},{key:"isLocationSelected",value:function(l){return this.state.selectedLocation&&this.state.selectedLocation.id===l.id}},{key:"selectLocation",value:function(l){l.focus(),this.setState({selectedLocation:l}),this.props.onChange&&this.props.onChange(l)}},{key:"handleLocationClick",value:function(l){this.selectLocation(l.target)}},{key:"handleLocationKeyDown",value:function(l){var e=l.target;32===l.keyCode?(l.preventDefault(),this.state.selectedLocation!==e&&this.selectLocation(e)):39===l.keyCode||40===l.keyCode?(l.preventDefault(),this.selectLocation(e.nextSibling||this.locations[0])):37!==l.keyCode&&38!==l.keyCode||(l.preventDefault(),this.selectLocation(e.previousSibling||this.locations[this.locations.length-1]))}},{key:"render",value:function(){return L.default.createElement(a.default,{map:this.props.map,role:"radiogroup",locationTabIndex:this.getLocationTabIndex,locationRole:"radio",className:this.props.className,locationClassName:this.props.locationClassName,isLocationSelected:this.isLocationSelected,onLocationClick:this.handleLocationClick,onLocationKeyDown:this.handleLocationKeyDown,onLocationMouseOver:this.props.onLocationMouseOver,onLocationMouseOut:this.props.onLocationMouseOut,onLocationMouseMove:this.props.onLocationMouseMove,onLocationFocus:this.props.onLocationFocus,onLocationBlur:this.props.onLocationBlur,onChange:this.props.onChange,ref:this.setLocationNodes})}}]),e}();u.propTypes={onChange:r.default.func,map:r.default.shape({viewBox:r.default.string.isRequired,locations:r.default.arrayOf(r.default.shape({path:r.default.string.isRequired,name:r.default.string,id:r.default.string})).isRequired,label:r.default.string}).isRequired,className:r.default.string,locationClassName:r.default.oneOfType([r.default.string,r.default.func]),onLocationMouseOver:r.default.func,onLocationMouseOut:r.default.func,onLocationMouseMove:r.default.func,onLocationFocus:r.default.func,onLocationBlur:r.default.func},e.default=u},function(l,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(l){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(l[n]=t[n])}return l},L=function(){function l(l,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(l,n.key,n)}}return function(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}}(),o=u(t(0)),r=u(t(23)),a=t(1),i=t(2);function u(l){return l&&l.__esModule?l:{default:l}}var c=function(l){function e(l){!function(l,e){if(!(l instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(l,e){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?l:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,l));return t.state={pointedLocation:null,focusedLocation:null,selectedLocation:null},t.handleLocationMouseOver=t.handleLocationMouseOver.bind(t),t.handleLocationMouseOut=t.handleLocationMouseOut.bind(t),t.handleLocationFocus=t.handleLocationFocus.bind(t),t.handleLocationBlur=t.handleLocationBlur.bind(t),t.handleOnChange=t.handleOnChange.bind(t),t}return function(l,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);l.prototype=Object.create(e&&e.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(l,e):l.__proto__=e)}(e,o.default.Component),L(e,[{key:"handleLocationMouseOver",value:function(l){var e=(0,i.getLocationName)(l);this.setState({pointedLocation:e})}},{key:"handleLocationMouseOut",value:function(){this.setState({pointedLocation:null})}},{key:"handleLocationFocus",value:function(l){var e=(0,i.getLocationName)(l);this.setState({focusedLocation:e})}},{key:"handleLocationBlur",value:function(){this.setState({focusedLocation:null})}},{key:"handleOnChange",value:function(l){this.setState(function(e){return n({},e,{selectedLocation:l.attributes.name.value})})}},{key:"render",value:function(){return o.default.createElement("article",{className:"examples__block"},o.default.createElement("h2",{className:"examples__block__title"},"Australia SVG map as radio buttons"),o.default.createElement("div",{className:"examples__block__info"},o.default.createElement("div",{className:"examples__block__info__item"},"Pointed location: ",this.state.pointedLocation),o.default.createElement("div",{className:"examples__block__info__item"},"Focused location: ",this.state.focusedLocation),o.default.createElement("div",{className:"examples__block__info__item"},"Selected location: ",this.state.selectedLocation)),o.default.createElement("div",{className:"examples__block__map examples__block__map--australia"},o.default.createElement(a.RadioSVGMap,{map:r.default,onLocationMouseOver:this.handleLocationMouseOver,onLocationMouseOut:this.handleLocationMouseOut,onLocationFocus:this.handleLocationFocus,onLocationBlur:this.handleLocationBlur,onChange:this.handleOnChange})))}}]),e}();e.default=c},function(l,e,t){"use strict";t.r(e),e.default={label:"Map of Australia",viewBox:"6.5 4.8 273 252.8",locations:[{name:"Australian Capital Territory",id:"act",path:"M 245.95389,185.84376 C 246.41125,185.82547 246.88157,185.90065 247.31277,186.09855 C 247.68261,186.26829 247.80326,186.51013 247.77989,186.77799 C 247.75652,187.04585 247.56857,187.345 247.35524,187.66976 C 246.92856,188.31926 246.34574,189.03605 246.37854,189.66562 C 246.30185,190.01096 245.94449,190.75975 245.44431,190.85464 C 245.19422,190.90208 244.88988,190.78812 244.59501,190.38752 C 244.30013,189.98692 244.00218,189.28493 243.70324,188.17934 C 243.52074,187.5044 243.73358,186.9315 244.17036,186.5232 C 244.60713,186.1149 245.26786,185.87121 245.95389,185.84376 z "},{name:"New South Wales",id:"nsw",path:"M 271.2875,129.6 L 270.4125,130.225 L 269.75625,130.85 L 268.6625,130.94375 L 267.75625,131.0375 L 267.6625,131.7875 L 267.94375,132.85 L 268.6625,132.7875 L 268.00625,133.56875 L 267.88125,134.13125 L 266.85,134.6 L 266.06875,134.31875 L 265.6625,133.63125 L 265.00625,134.4125 L 264.35,135.225 L 264.0375,135.7875 L 263.35,136.225 L 262.88125,135.1625 L 262.81875,134.44375 L 262.38125,133.75625 L 261.975,133.25625 L 261.31875,132.4125 L 260.19375,132.1625 L 258.56875,132.13125 L 257.975,131.81875 L 257.225,131.5375 L 256.50625,131.6 L 256.2875,131.06875 L 255.38125,131.1625 L 253.94375,131.6625 L 252.6625,131.44375 L 251.35,131.0375 L 250.7875,131.06875 L 250.00625,132.25625 L 248.9125,132.1625 L 248.81875,133.2875 L 248.1,133.35 L 248.1625,133.88125 L 247.2875,134.35 L 194.1625,134.2875 L 194.1625,179.35 L 194.1625,179.38125 L 194.225,179.6 L 195.35,179.4125 L 197.19375,180.2875 L 198.225,179.56875 L 199.975,179.85 L 202.1,180.1 L 203.81875,181.5375 L 204.31875,183.56875 L 205.4125,184.5375 L 205.44375,183.56875 L 206.50625,183.0375 L 207.475,183.25625 L 209.19375,183.38125 L 210.19375,183.7875 L 210.81875,186.5375 L 212.25625,188.6 L 213.38125,188.63125 L 215.00625,189.31875 L 216.975,191.1 L 217.35,192.38125 L 218.63125,193.31875 L 220.25625,194.00625 L 2
gitextract_79rtgsnn/ ├── .babelrc ├── .eslintignore ├── .eslintrc ├── .gitignore ├── .travis.yml ├── CHANGELOG.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── __tests__/ │ ├── __mocks__/ │ │ └── styleMock.js │ ├── __snapshots__/ │ │ ├── checkbox-svg-map.test.js.snap │ │ ├── radio-svg-map.test.js.snap │ │ └── svg-map.test.js.snap │ ├── checkbox-svg-map.test.js │ ├── fake-map.js │ ├── radio-svg-map.test.js │ └── svg-map.test.js ├── docs/ │ ├── index.html │ └── index.js ├── examples/ │ └── src/ │ ├── components/ │ │ ├── checkbox-map.jsx │ │ ├── examples-app.jsx │ │ ├── examples-app.scss │ │ ├── link-map.jsx │ │ ├── radio-map.jsx │ │ └── tooltip-heat-map.jsx │ ├── index.html │ ├── index.jsx │ └── utils.js ├── jest-setup.js ├── jest.config.js ├── package.json ├── src/ │ ├── checkbox-svg-map.jsx │ ├── index.js │ ├── radio-svg-map.jsx │ ├── svg-map.jsx │ └── svg-map.scss ├── webpack.config.js └── webpack.examples.config.js
SYMBOL INDEX (338 symbols across 10 files)
FILE: docs/index.js
function t (line 1) | function t(n){if(e[n])return e[n].exports;var L=e[n]={i:n,l:!1,exports:{...
function r (line 1) | function r(l){return l&&l.__esModule?l:{default:l}}
function o (line 1) | function o(l){return l&&l.__esModule?l:{default:l}}
function r (line 1) | function r(l){return n.default.createElement("svg",{xmlns:"http://www.w3...
function f (line 6) | function f(l,e){for(var t=0;t<l.length;t++){var n=l[t],L=o[n.id];if(L){L...
function d (line 6) | function d(l,e){for(var t=[],n={},L=0;L<l.length;L++){var o=l[L],r=e.bas...
function p (line 6) | function p(l,e){var t=a(l.insertInto);if(!t)throw new Error("Couldn't fi...
function m (line 6) | function m(l){if(null===l.parentNode)return!1;l.parentNode.removeChild(l...
function h (line 6) | function h(l){var e=document.createElement("style");return l.attrs.type=...
function y (line 6) | function y(l,e){Object.keys(e).forEach(function(t){l.setAttribute(t,e[t]...
function v (line 6) | function v(l,e){var t,n,L,o;if(e.transform&&l.css){if(!(o=e.transform(l....
function _ (line 6) | function _(l,e,t,n){var L=t?"":n.css;if(l.styleSheet)l.styleSheet.cssTex...
function r (line 6) | function r(l){return l&&l.__esModule?l:{default:l}}
function v (line 14) | function v(l){for(var e=arguments.length-1,t="https://reactjs.org/docs/e...
function _ (line 14) | function _(l,e,t){this.props=l,this.context=e,this.refs=b,this.updater=t...
function k (line 14) | function k(){}
function w (line 14) | function w(l,e,t){this.props=l,this.context=e,this.refs=b,this.updater=t...
function E (line 14) | function E(l,e,t){var n=void 0,L={},r=null,a=null;if(null!=e)for(n in vo...
function S (line 14) | function S(l){return"object"==typeof l&&null!==l&&l.$$typeof===o}
function P (line 14) | function P(l,e,t,n){if(O.length){var L=O.pop();return L.result=l,L.keyPr...
function N (line 14) | function N(l){l.result=null,l.keyPrefix=null,l.func=null,l.context=null,...
function I (line 14) | function I(l,e,t){return null==l?0:function l(e,t,n,L){var a=typeof e;"u...
function j (line 14) | function j(l,e){return"object"==typeof l&&null!==l&&null!=l.key?function...
function F (line 14) | function F(l,e){l.func.call(l.context,e,l.count++)}
function R (line 14) | function R(l,e,t){var n=l.result,L=l.keyPrefix;l=l.func.call(l.context,e...
function D (line 14) | function D(l,e,t,n,L){var o="";null!=t&&(o=(""+t).replace(z,"$&/")+"/"),...
function r (line 22) | function r(l){for(var e=arguments.length-1,t="https://reactjs.org/docs/e...
function f (line 22) | function f(l,e,t,n,L,o,r,u,c){a=!1,i=null,function(l,e,t,n,L,o,r,a,i){va...
function m (line 22) | function m(){if(d)for(var l in p){var e=p[l],t=d.indexOf(l);if(-1<t||r("...
function h (line 22) | function h(l,e,t){g[l]&&r("100",l),g[l]=e,b[l]=e.eventTypes[t].dependenc...
function x (line 22) | function x(l,e,t){var n=l.type||"unknown-event";l.currentTarget=w(t),fun...
function M (line 22) | function M(l,e){return null==e&&r("30"),null==l?e:Array.isArray(l)?Array...
function C (line 22) | function C(l,e,t){Array.isArray(l)?l.forEach(e,t):l&&e.call(t,l)}
function E (line 22) | function E(l){if(l){var e=l._dispatchListeners,t=l._dispatchInstances;if...
function z (line 22) | function z(l,e){var t=l.stateNode;if(!t)return null;var n=_(t);if(!n)ret...
function O (line 22) | function O(l){if(null!==l&&(T=M(T,l)),l=T,T=null,l&&(C(l,E),T&&r("95"),u...
function j (line 22) | function j(l){if(l[N])return l[N];for(;!l[N];){if(!l.parentNode)return n...
function F (line 22) | function F(l){return!(l=l[N])||5!==l.tag&&6!==l.tag?null:l}
function R (line 22) | function R(l){if(5===l.tag||6===l.tag)return l.stateNode;r("33")}
function D (line 22) | function D(l){return l[I]||null}
function U (line 22) | function U(l){do{l=l.return}while(l&&5!==l.tag);return l||null}
function A (line 22) | function A(l,e,t){(e=z(l,t.dispatchConfig.phasedRegistrationNames[e]))&&...
function B (line 22) | function B(l){if(l&&l.dispatchConfig.phasedRegistrationNames){for(var e=...
function V (line 22) | function V(l,e,t){l&&t&&t.dispatchConfig.registrationName&&(e=z(l,t.disp...
function W (line 22) | function W(l){l&&l.dispatchConfig.registrationName&&V(l._targetInst,null...
function H (line 22) | function H(l){C(l,B)}
function K (line 22) | function K(l,e){var t={};return t[l.toLowerCase()]=e.toLowerCase(),t["We...
function Y (line 22) | function Y(l){if(Q[l])return Q[l];if(!q[l])return l;var e,t=q[l];for(e i...
function ol (line 22) | function ol(){if(Ll)return Ll;var l,e,t=nl,n=t.length,L="value"in tl?tl....
function rl (line 22) | function rl(){return!0}
function al (line 22) | function al(){return!1}
function il (line 22) | function il(l,e,t,n){for(var L in this.dispatchConfig=l,this._targetInst...
function ul (line 22) | function ul(l,e,t,n){if(this.eventPool.length){var L=this.eventPool.pop(...
function cl (line 22) | function cl(l){l instanceof this||r("279"),l.destructor(),10>this.eventP...
function sl (line 22) | function sl(l){l.eventPool=[],l.getPooled=ul,l.release=cl}
function e (line 22) | function e(){}
function t (line 22) | function t(){return n.apply(this,arguments)}
function kl (line 22) | function kl(l,e){switch(l){case"keyup":return-1!==pl.indexOf(e.keyCode);...
function wl (line 22) | function wl(l){return"object"==typeof(l=l.detail)&&"data"in l?l.data:null}
function Sl (line 22) | function Sl(l){if(l=k(l)){"function"!=typeof Cl&&r("280");var e=_(l.stat...
function zl (line 22) | function zl(l){Tl?El?El.push(l):El=[l]:Tl=l}
function Ol (line 22) | function Ol(){if(Tl){var l=Tl,e=El;if(El=Tl=null,Sl(l),e)for(l=0;l<e.len...
function Pl (line 22) | function Pl(l,e){return l(e)}
function Nl (line 22) | function Nl(l,e,t){return l(e,t)}
function Il (line 22) | function Il(){}
function Fl (line 22) | function Fl(l,e){if(jl)return l(e);jl=!0;try{return Pl(l,e)}finally{jl=!...
function Dl (line 22) | function Dl(l){var e=l&&l.nodeName&&l.nodeName.toLowerCase();return"inpu...
function Ul (line 22) | function Ul(l){return(l=l.target||l.srcElement||window).correspondingUse...
function Al (line 22) | function Al(l){if(!$)return!1;var e=(l="on"+l)in document;return e||((e=...
function Bl (line 22) | function Bl(l){var e=l.type;return(l=l.nodeName)&&"input"===l.toLowerCas...
function Vl (line 22) | function Vl(l){l._valueTracker||(l._valueTracker=function(l){var e=Bl(l)...
function Wl (line 22) | function Wl(l){if(!l)return!1;var e=l._valueTracker;if(!e)return!0;var t...
function re (line 22) | function re(l){return null===l||"object"!=typeof l?null:"function"==type...
function ae (line 22) | function ae(l){if(null==l)return null;if("function"==typeof l)return l.d...
function ie (line 22) | function ie(l){var e="";do{l:switch(l.tag){case 3:case 4:case 6:case 7:c...
function de (line 22) | function de(l,e,t,n,L){this.acceptsBooleans=2===e||3===e||4===e,this.att...
function he (line 22) | function he(l){return l[1].toUpperCase()}
function ye (line 22) | function ye(l,e,t,n){var L=pe.hasOwnProperty(e)?pe[e]:null;(null!==L?0==...
function ve (line 22) | function ve(l){switch(typeof l){case"boolean":case"number":case"object":...
function ge (line 22) | function ge(l,e){var t=e.checked;return L({},e,{defaultChecked:void 0,de...
function be (line 22) | function be(l,e){var t=null==e.defaultValue?"":e.defaultValue,n=null!=e....
function _e (line 22) | function _e(l,e){null!=(e=e.checked)&&ye(l,"checked",e,!1)}
function ke (line 22) | function ke(l,e){_e(l,e);var t=ve(e.value),n=e.type;if(null!=t)"number"=...
function we (line 22) | function we(l,e,t){if(e.hasOwnProperty("value")||e.hasOwnProperty("defau...
function xe (line 22) | function xe(l,e,t){"number"===e&&l.ownerDocument.activeElement===l||(nul...
function Ce (line 22) | function Ce(l,e,t){return(l=il.getPooled(Me.change,l,e,t)).type="change"...
function Se (line 22) | function Se(l){O(l)}
function ze (line 22) | function ze(l){if(Wl(R(l)))return l}
function Oe (line 22) | function Oe(l,e){if("change"===l)return e}
function Ne (line 22) | function Ne(){Te&&(Te.detachEvent("onpropertychange",Ie),Ee=Te=null)}
function Ie (line 22) | function Ie(l){"value"===l.propertyName&&ze(Ee)&&Fl(Se,l=Ce(Ee,l,Ul(l)))}
function je (line 22) | function je(l,e,t){"focus"===l?(Ne(),Ee=t,(Te=e).attachEvent("onproperty...
function Fe (line 22) | function Fe(l){if("selectionchange"===l||"keyup"===l||"keydown"===l)retu...
function Re (line 22) | function Re(l,e){if("click"===l)return ze(e)}
function De (line 22) | function De(l,e){if("input"===l||"change"===l)return ze(e)}
function Ve (line 22) | function Ve(l){var e=this.nativeEvent;return e.getModifierState?e.getMod...
function We (line 22) | function We(){return Ve}
function Ze (line 22) | function Ze(l,e){return l===e?0!==l||0!==e||1/l==1/e:l!=l&&e!=e}
function lt (line 22) | function lt(l,e){if(Ze(l,e))return!0;if("object"!=typeof l||null===l||"o...
function et (line 22) | function et(l){var e=l;if(l.alternate)for(;e.return;)e=e.return;else{if(...
function tt (line 22) | function tt(l){2!==et(l)&&r("188")}
function nt (line 22) | function nt(l){if(!(l=function(l){var e=l.alternate;if(!e)return 3===(e=...
function at (line 22) | function at(l){var e=l.keyCode;return"charCode"in l?0===(l=l.charCode)&&...
function vt (line 22) | function vt(l,e){var t=l[0],n="on"+((l=l[1])[0].toUpperCase()+l.slice(1)...
function kt (line 22) | function kt(l){var e=l.targetInst,t=e;do{if(!t){l.ancestors.push(t);brea...
function xt (line 22) | function xt(l,e){if(!e)return null;var t=(bt(l)?Ct:Tt).bind(null,l);e.ad...
function Mt (line 22) | function Mt(l,e){if(!e)return null;var t=(bt(l)?Ct:Tt).bind(null,l);e.ad...
function Ct (line 22) | function Ct(l,e){Nl(Tt,l,e)}
function Tt (line 22) | function Tt(l,e){if(wt){var t=Ul(e);if(null===(t=j(t))||"number"!=typeof...
function Ot (line 22) | function Ot(l){return Object.prototype.hasOwnProperty.call(l,zt)||(l[zt]...
function Pt (line 22) | function Pt(l){if(void 0===(l=l||("undefined"!=typeof document?document:...
function Nt (line 22) | function Nt(l){for(;l&&l.firstChild;)l=l.firstChild;return l}
function It (line 22) | function It(l,e){var t,n=Nt(l);for(l=0;n;){if(3===n.nodeType){if(t=l+n.t...
function jt (line 22) | function jt(){for(var l=window,e=Pt();e instanceof l.HTMLIFrameElement;)...
function Ft (line 22) | function Ft(l){var e=l&&l.nodeName&&l.nodeName.toLowerCase();return e&&(...
function Wt (line 22) | function Wt(l,e){var t=e.window===e?e.document:9===e.nodeType?e:e.ownerD...
function $t (line 22) | function $t(l,e){return l=L({children:void 0},e),(e=function(l){var e=""...
function Kt (line 22) | function Kt(l,e,t,n){if(l=l.options,e){e={};for(var L=0;L<t.length;L++)e...
function qt (line 22) | function qt(l,e){return null!=e.dangerouslySetInnerHTML&&r("91"),L({},e,...
function Qt (line 22) | function Qt(l,e){var t=e.value;null==t&&(t=e.defaultValue,null!=(e=e.chi...
function Gt (line 22) | function Gt(l,e){var t=ve(e.value),n=ve(e.defaultValue);null!=t&&((t=""+...
function Yt (line 22) | function Yt(l){var e=l.textContent;e===l._wrapperState.initialValue&&(l....
function Jt (line 22) | function Jt(l){switch(l){case"svg":return"http://www.w3.org/2000/svg";ca...
function Zt (line 22) | function Zt(l,e){return null==l||"http://www.w3.org/1999/xhtml"===l?Jt(e...
function nn (line 22) | function nn(l,e){if(e){var t=l.firstChild;if(t&&t===l.lastChild&&3===t.n...
function rn (line 22) | function rn(l,e,t){return null==e||"boolean"==typeof e||""===e?"":t||"nu...
function an (line 22) | function an(l,e){for(var t in l=l.style,e)if(e.hasOwnProperty(t)){var n=...
function cn (line 22) | function cn(l,e){e&&(un[l]&&(null!=e.children||null!=e.dangerouslySetInn...
function sn (line 22) | function sn(l,e){if(-1===l.indexOf("-"))return"string"==typeof e.is;swit...
function fn (line 22) | function fn(l,e){var t=Ot(l=9===l.nodeType||11===l.nodeType?l:l.ownerDoc...
function dn (line 22) | function dn(){}
function hn (line 22) | function hn(l,e){switch(l){case"button":case"input":case"select":case"te...
function yn (line 22) | function yn(l,e){return"textarea"===l||"option"===l||"noscript"===l||"st...
function bn (line 22) | function bn(l){for(l=l.nextSibling;l&&1!==l.nodeType&&3!==l.nodeType;)l=...
function _n (line 22) | function _n(l){for(l=l.firstChild;l&&1!==l.nodeType&&3!==l.nodeType;)l=l...
function xn (line 22) | function xn(l){0>wn||(l.current=kn[wn],kn[wn]=null,wn--)}
function Mn (line 22) | function Mn(l,e){kn[++wn]=l.current,l.current=e}
function zn (line 22) | function zn(l,e){var t=l.type.contextTypes;if(!t)return Cn;var n=l.state...
function On (line 22) | function On(l){return null!=(l=l.childContextTypes)}
function Pn (line 22) | function Pn(l){xn(En),xn(Tn)}
function Nn (line 22) | function Nn(l){xn(En),xn(Tn)}
function In (line 22) | function In(l,e,t){Tn.current!==Cn&&r("168"),Mn(Tn,e),Mn(En,t)}
function jn (line 22) | function jn(l,e,t){var n=l.stateNode;if(l=e.childContextTypes,"function"...
function Fn (line 22) | function Fn(l){var e=l.stateNode;return e=e&&e.__reactInternalMemoizedMe...
function Rn (line 22) | function Rn(l,e,t){var n=l.stateNode;n||r("169"),t?(e=jn(l,e,Sn),n.__rea...
function An (line 22) | function An(l){return function(e){try{return l(e)}catch(l){}}}
function Bn (line 22) | function Bn(l,e,t,n){this.tag=l,this.key=t,this.sibling=this.child=this....
function Vn (line 22) | function Vn(l,e,t,n){return new Bn(l,e,t,n)}
function Wn (line 22) | function Wn(l){return!(!(l=l.prototype)||!l.isReactComponent)}
function Hn (line 22) | function Hn(l,e){var t=l.alternate;return null===t?((t=Vn(l.tag,e,l.key,...
function $n (line 22) | function $n(l,e,t,n,L,o){var a=2;if(n=l,"function"==typeof l)Wn(l)&&(a=1...
function Kn (line 22) | function Kn(l,e,t,n){return(l=Vn(7,l,n,e)).expirationTime=t,l}
function qn (line 22) | function qn(l,e,t,n){return l=Vn(8,l,n,e),e=0==(1&e)?Yl:le,l.elementType...
function Qn (line 22) | function Qn(l,e,t){return(l=Vn(6,l,null,e)).expirationTime=t,l}
function Gn (line 22) | function Gn(l,e,t){return(e=Vn(4,null!==l.children?l.children:[],l.key,e...
function Yn (line 22) | function Yn(l,e){l.didError=!1;var t=l.earliestPendingTime;0===t?l.earli...
function Xn (line 22) | function Xn(l,e){l.didError=!1,l.latestPingedTime>=e&&(l.latestPingedTim...
function Jn (line 22) | function Jn(l,e){var t=l.earliestPendingTime;return t>e&&(e=t),(l=l.earl...
function Zn (line 22) | function Zn(l,e){var t=e.earliestSuspendedTime,n=e.latestSuspendedTime,L...
function eL (line 22) | function eL(l){return{baseState:l,firstUpdate:null,lastUpdate:null,first...
function tL (line 22) | function tL(l){return{baseState:l.baseState,firstUpdate:l.firstUpdate,la...
function nL (line 22) | function nL(l){return{expirationTime:l,tag:0,payload:null,callback:null,...
function LL (line 22) | function LL(l,e){null===l.lastUpdate?l.firstUpdate=l.lastUpdate=e:(l.las...
function oL (line 22) | function oL(l,e){var t=l.alternate;if(null===t){var n=l.updateQueue,L=nu...
function rL (line 22) | function rL(l,e){var t=l.updateQueue;null===(t=null===t?l.updateQueue=eL...
function aL (line 22) | function aL(l,e){var t=l.alternate;return null!==t&&e===t.updateQueue&&(...
function iL (line 22) | function iL(l,e,t,n,o,r){switch(t.tag){case 1:return"function"==typeof(l...
function uL (line 22) | function uL(l,e,t,n,L){lL=!1;for(var o=(e=aL(l,e)).baseState,r=null,a=0,...
function cL (line 22) | function cL(l,e,t){null!==e.firstCapturedUpdate&&(null!==e.lastUpdate&&(...
function sL (line 22) | function sL(l,e){for(;null!==l;){var t=l.callback;if(null!==t){l.callbac...
function fL (line 22) | function fL(l,e){return{value:l,source:e,stack:ie(e)}}
function yL (line 22) | function yL(l,e){var t=l.type._context;Mn(dL,t._currentValue),t._current...
function vL (line 22) | function vL(l){var e=dL.current;xn(dL),l.type._context._currentValue=e}
function gL (line 22) | function gL(l){pL=l,hL=mL=null,l.firstContextDependency=null}
function bL (line 22) | function bL(l,e){return hL!==l&&!1!==e&&0!==e&&("number"==typeof e&&1073...
function ML (line 22) | function ML(l){return l===_L&&r("174"),l}
function CL (line 22) | function CL(l,e){Mn(xL,e),Mn(wL,l),Mn(kL,_L);var t=e.nodeType;switch(t){...
function TL (line 22) | function TL(l){xn(kL),xn(wL),xn(xL)}
function EL (line 22) | function EL(l){ML(xL.current);var e=ML(kL.current),t=Zt(e,l.type);e!==t&...
function SL (line 22) | function SL(l){wL.current===l&&(xn(kL),xn(wL))}
function zL (line 22) | function zL(l,e){if(l&&l.defaultProps)for(var t in e=L({},e),l=l.default...
function NL (line 22) | function NL(l,e,t,n){t=null==(t=t(n,e=l.memoizedState))?e:L({},e,t),l.me...
function jL (line 22) | function jL(l,e,t,n,L,o,r){return"function"==typeof(l=l.stateNode).shoul...
function FL (line 22) | function FL(l,e,t){var n=!1,L=Cn,o=e.contextType;return"object"==typeof ...
function RL (line 22) | function RL(l,e,t,n){l=e.state,"function"==typeof e.componentWillReceive...
function DL (line 22) | function DL(l,e,t,n){var L=l.stateNode;L.props=t,L.state=l.memoizedState...
function AL (line 22) | function AL(l,e,t){if(null!==(l=t.ref)&&"function"!=typeof l&&"object"!=...
function BL (line 22) | function BL(l,e){"textarea"!==l.type&&r("31","[object Object]"===Object....
function VL (line 22) | function VL(l){function e(e,t){if(l){var n=e.lastEffect;null!==n?(n.next...
function QL (line 22) | function QL(l,e){var t=Vn(5,null,null,0);t.elementType="DELETED",t.type=...
function GL (line 22) | function GL(l,e){switch(l.tag){case 5:var t=l.type;return null!==(e=1!==...
function YL (line 22) | function YL(l){if(qL){var e=KL;if(e){var t=e;if(!GL(l,e)){if(!(e=bn(t))|...
function XL (line 22) | function XL(l){for(l=l.return;null!==l&&5!==l.tag&&3!==l.tag;)l=l.return...
function JL (line 22) | function JL(l){if(l!==$L)return!1;if(!qL)return XL(l),qL=!0,!1;var e=l.t...
function ZL (line 22) | function ZL(){KL=$L=null,qL=!1}
function eo (line 22) | function eo(l,e,t,n){e.child=null===l?HL(e,null,t,n):WL(e,l.child,t,n)}
function to (line 22) | function to(l,e,t,n,L){t=t.render;var o=e.ref;return gL(e),n=t(n,o),e.ef...
function no (line 22) | function no(l,e,t,n,L,o){if(null===l){var r=t.type;return"function"!=typ...
function Lo (line 22) | function Lo(l,e,t,n,L,o){return null!==l&&L<o&<(l.memoizedProps,n)&&l....
function oo (line 22) | function oo(l,e){var t=e.ref;(null===l&&null!==t||null!==l&&l.ref!==t)&&...
function ro (line 22) | function ro(l,e,t,n,L){var o=On(t)?Sn:Tn.current;return o=zn(e,o),gL(e),...
function ao (line 22) | function ao(l,e,t,n,L){if(On(t)){var o=!0;Fn(e)}else o=!1;if(gL(e),null=...
function io (line 22) | function io(l,e,t,n,L,o){oo(l,e);var r=0!=(64&e.effectTag);if(!n&&!r)ret...
function uo (line 22) | function uo(l){var e=l.stateNode;e.pendingContext?In(0,e.pendingContext,...
function co (line 22) | function co(l,e,t){var n=e.mode,L=e.pendingProps,o=e.memoizedState;if(0=...
function so (line 22) | function so(l,e,t){if(null!==l&&(e.firstContextDependency=l.firstContext...
function fo (line 22) | function fo(l,e,t){var n=e.expirationTime;if(null!==l&&l.memoizedProps==...
function po (line 22) | function po(l){l.effectTag|=4}
function bo (line 22) | function bo(l,e){var t=e.source,n=e.stack;null===n&&null!==t&&(n=ie(t)),...
function _o (line 22) | function _o(l){var e=l.ref;if(null!==e)if("function"==typeof e)try{e(nul...
function ko (line 22) | function ko(l){switch("function"==typeof Un&&Un(l),l.tag){case 0:case 11...
function wo (line 22) | function wo(l){return 5===l.tag||3===l.tag||4===l.tag}
function xo (line 22) | function xo(l){l:{for(var e=l.return;null!==e;){if(wo(e)){var t=e;break ...
function Mo (line 22) | function Mo(l){for(var e=l,t=!1,n=void 0,L=void 0;;){if(!t){t=e.return;l...
function Co (line 22) | function Co(l,e){switch(e.tag){case 0:case 11:case 14:case 15:case 1:bre...
function Eo (line 22) | function Eo(l,e,t){(t=nL(t)).tag=3,t.payload={element:null};var n=e.valu...
function So (line 22) | function So(l,e,t){(t=nL(t)).tag=3;var n=l.type.getDerivedStateFromError...
function zo (line 22) | function zo(l){switch(l.tag){case 1:On(l.type)&&Pn();var e=l.effectTag;r...
function Ko (line 22) | function Ko(){if(null!==Fo)for(var l=Fo.return;null!==l;){var e=l;switch...
function qo (line 22) | function qo(){null!==Ho&&(o.unstable_cancelCallback(Wo),Ho())}
function Qo (line 22) | function Qo(l){for(;;){var e=l.alternate,t=l.return,n=l.sibling;if(0==(1...
function Go (line 22) | function Go(l){var e=fo(l.alternate,l,Do);return l.memoizedProps=l.pendi...
function Yo (line 22) | function Yo(l,e){jo&&r("243"),qo(),jo=!0,Po.currentDispatcher=Oo;var t=l...
function Xo (line 22) | function Xo(l,e){for(var t=l.return;null!==t;){switch(t.tag){case 1:var ...
function Jo (line 22) | function Jo(l,e){return 0!==Io?l=Io:jo?l=Vo?1073741823:Do:1&e.mode?(l=mr...
function Zo (line 22) | function Zo(l,e,t){var n=l.pingCache;null!==n&&n.delete(e),null!==Ro&&Do...
function lr (line 22) | function lr(l,e){l.expirationTime<e&&(l.expirationTime=e);var t=l.altern...
function er (line 22) | function er(l,e){null!==(l=lr(l,e))&&(!jo&&0!==Do&&e>Do&&Ko(),Yn(l,e),jo...
function tr (line 22) | function tr(l,e,t,n,L){var o=Io;Io=1073741823;try{return l(e,t,n,L)}fina...
function wr (line 22) | function wr(){vr=1073741822-((o.unstable_now()-yr)/10|0)}
function xr (line 22) | function xr(l,e){if(0!==or){if(e<or)return;null!==rr&&o.unstable_cancelC...
function Mr (line 22) | function Mr(l,e,t,n,L){l.expirationTime=n,0!==L||zr()?0<L&&(l.timeoutHan...
function Cr (line 22) | function Cr(){return ar?gr:(Er(),0!==ur&&1!==ur||(wr(),gr=vr),gr)}
function Tr (line 22) | function Tr(l,e){null===l.nextScheduledRoot?(l.expirationTime=e,null===L...
function Er (line 22) | function Er(){var l=0,e=null;if(null!==Lr)for(var t=Lr,n=nr;null!==n;){v...
function zr (line 22) | function zr(){return!!Sr||!!o.unstable_shouldYield()&&(Sr=!0)}
function Or (line 22) | function Or(){try{if(!zr()&&null!==nr){wr();var l=nr;do{var e=l.expirati...
function Pr (line 22) | function Pr(l,e){if(Er(),e)for(wr(),gr=vr;null!==ir&&0!==ur&&l<=ur&&!(Sr...
function Nr (line 22) | function Nr(l,e){ar&&r("253"),ir=l,ur=e,Ir(l,e,!1),Pr(1073741823,!1)}
function Ir (line 22) | function Ir(l,e,t){if(ar&&r("245"),ar=!0,t){var n=l.finishedWork;null!==...
function jr (line 22) | function jr(l,e,t){var n=l.firstBatch;if(null!==n&&n._expirationTime>=t&...
function Fr (line 22) | function Fr(l){null===ir&&r("246"),ir.expirationTime=0,sr||(sr=!0,fr=l)}
function Rr (line 22) | function Rr(l,e){var t=dr;dr=!0;try{return l(e)}finally{(dr=t)||ar||Pr(1...
function Dr (line 22) | function Dr(l,e){if(dr&&!pr){pr=!0;try{return l(e)}finally{pr=!1}}return...
function Ur (line 22) | function Ur(l,e,t){if(mr)return l(e,t);dr||ar||0===cr||(Pr(cr,!1),cr=0);...
function Ar (line 22) | function Ar(l,e,t,n,L){var o=e.current;l:if(t){e:{2===et(t=t._reactInter...
function Br (line 22) | function Br(l,e,t,n){var L=e.current;return Ar(l,e,t,L=Jo(Cr(),L),n)}
function Vr (line 22) | function Vr(l){if(!(l=l.current).child)return null;switch(l.child.tag){c...
function Wr (line 22) | function Wr(l){var e=1073741822-25*(1+((1073741822-Cr()+500)/25|0));e>=N...
function Hr (line 22) | function Hr(){this._callbacks=null,this._didCommit=!1,this._onCommit=thi...
function $r (line 22) | function $r(l,e,t){l={current:e=Vn(3,null,null,e?3:0),containerInfo:l,pe...
function Kr (line 22) | function Kr(l){return!(!l||1!==l.nodeType&&9!==l.nodeType&&11!==l.nodeTy...
function qr (line 22) | function qr(l,e,t,n,L){Kr(t)||r("200");var o=t._reactRootContainer;if(o)...
function Qr (line 22) | function Qr(l,e){var t=2<arguments.length&&void 0!==arguments[2]?argumen...
function u (line 31) | function u(){if(!a){var l=t.expirationTime;i?w():i=!0,k(f,l)}}
function c (line 31) | function c(){var l=t,e=t.next;if(t===e)t=null;else{var n=t.previous;t=n....
function s (line 31) | function s(){if(-1===o&&null!==t&&1===t.priorityLevel){a=!0;try{do{c()}w...
function f (line 31) | function f(l){a=!0;var L=n;n=l;try{if(l)for(;null!==t;){var o=e.unstable...
function b (line 31) | function b(l){d=v(function(e){y(p),l(e)}),p=h(function(){g(d),l(e.unstab...
function l (line 31) | function l(l,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.en...
function u (line 31) | function u(l){return l&&l.__esModule?l:{default:l}}
function e (line 31) | function e(l){return function(l,e){if(!(l instanceof e))throw new TypeEr...
function l (line 31) | function l(l,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.en...
function u (line 31) | function u(l){return l&&l.__esModule?l:{default:l}}
function e (line 31) | function e(l){!function(l,e){if(!(l instanceof e))throw new TypeError("C...
function L (line 31) | function L(){}
function l (line 31) | function l(l,e,t,L,o,r){if(r!==n){var a=new Error("Calling PropTypes val...
function e (line 31) | function e(){return l}
function l (line 31) | function l(l,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.en...
function a (line 31) | function a(l){return l&&l.__esModule?l:{default:l}}
function e (line 31) | function e(l){!function(l,e){if(!(l instanceof e))throw new TypeError("C...
function l (line 31) | function l(l,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.en...
function i (line 31) | function i(l){return l&&l.__esModule?l:{default:l}}
function e (line 31) | function e(l){!function(l,e){if(!(l instanceof e))throw new TypeError("C...
function l (line 31) | function l(l,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.en...
function u (line 31) | function u(l){return l&&l.__esModule?l:{default:l}}
function e (line 31) | function e(l){!function(l,e){if(!(l instanceof e))throw new TypeError("C...
function l (line 31) | function l(l,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.en...
function i (line 31) | function i(l){return l&&l.__esModule?l:{default:l}}
function e (line 31) | function e(l){!function(l,e){if(!(l instanceof e))throw new TypeError("C...
function l (line 31) | function l(l,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.en...
function i (line 31) | function i(l){return l&&l.__esModule?l:{default:l}}
function e (line 31) | function e(l){!function(l,e){if(!(l instanceof e))throw new TypeError("C...
FILE: examples/src/components/checkbox-map.jsx
class CheckboxMap (line 6) | class CheckboxMap extends React.Component {
method constructor (line 7) | constructor(props) {
method handleLocationMouseOver (line 23) | handleLocationMouseOver(event) {
method handleLocationMouseOut (line 28) | handleLocationMouseOut() {
method handleLocationFocus (line 32) | handleLocationFocus(event) {
method handleLocationBlur (line 37) | handleLocationBlur() {
method handleOnChange (line 41) | handleOnChange(selectedNodes) {
method render (line 50) | render() {
FILE: examples/src/components/examples-app.jsx
class ExamplesApp (line 9) | class ExamplesApp extends React.Component {
method constructor (line 10) | constructor(props) {
method render (line 14) | render() {
FILE: examples/src/components/link-map.jsx
class LinkMap (line 6) | class LinkMap extends React.Component {
method constructor (line 7) | constructor(props) {
method handleLocationMouseOver (line 40) | handleLocationMouseOver(event) {
method handleLocationMouseOut (line 45) | handleLocationMouseOut() {
method handleLocationClick (line 49) | handleLocationClick(event) {
method handleLocationFocus (line 56) | handleLocationFocus(event) {
method handleLocationBlur (line 61) | handleLocationBlur() {
method render (line 65) | render() {
FILE: examples/src/components/radio-map.jsx
class RadioMap (line 6) | class RadioMap extends React.Component {
method constructor (line 7) | constructor(props) {
method handleLocationMouseOver (line 23) | handleLocationMouseOver(event) {
method handleLocationMouseOut (line 28) | handleLocationMouseOut() {
method handleLocationFocus (line 32) | handleLocationFocus(event) {
method handleLocationBlur (line 37) | handleLocationBlur() {
method handleOnChange (line 41) | handleOnChange(selectedNode) {
method render (line 50) | render() {
FILE: examples/src/components/tooltip-heat-map.jsx
class TooltipHeatMap (line 6) | class TooltipHeatMap extends React.Component {
method constructor (line 7) | constructor(props) {
method handleLocationMouseOver (line 22) | handleLocationMouseOver(event) {
method handleLocationMouseOut (line 27) | handleLocationMouseOut() {
method handleLocationMouseMove (line 31) | handleLocationMouseMove(event) {
method getLocationClassName (line 40) | getLocationClassName(location, index) {
method render (line 45) | render() {
FILE: examples/src/utils.js
function getLocationId (line 6) | function getLocationId(event) {
function getLocationName (line 15) | function getLocationName(event) {
function getLocationSelected (line 24) | function getLocationSelected(event) {
FILE: src/checkbox-svg-map.jsx
class CheckboxSVGMap (line 6) | class CheckboxSVGMap extends React.Component {
method constructor (line 7) | constructor(props) {
method componentDidMount (line 20) | componentDidMount() {
method isLocationSelected (line 40) | isLocationSelected(location) {
method toggleLocation (line 49) | toggleLocation(event) {
method handleLocationClick (line 79) | handleLocationClick(event) {
method handleLocationKeyDown (line 89) | handleLocationKeyDown(event) {
method render (line 97) | render() {
FILE: src/radio-svg-map.jsx
class RadioSVGMap (line 6) | class RadioSVGMap extends React.Component {
method constructor (line 7) | constructor(props) {
method componentDidMount (line 20) | componentDidMount() {
method getLocationTabIndex (line 42) | getLocationTabIndex(location, index) {
method isLocationSelected (line 62) | isLocationSelected(location) {
method selectLocation (line 71) | selectLocation(location) {
method handleLocationClick (line 89) | handleLocationClick(event) {
method handleLocationKeyDown (line 103) | handleLocationKeyDown(event) {
method render (line 131) | render() {
FILE: src/svg-map.jsx
function SVGMap (line 4) | function SVGMap(props) {
Condensed preview — 38 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (477K chars).
[
{
"path": ".babelrc",
"chars": 78,
"preview": "{\n\t\"presets\": [\"env\", \"react\"],\n\t\"plugins\": [\"transform-object-rest-spread\"]\n}"
},
{
"path": ".eslintignore",
"chars": 25,
"preview": "README.md\njest.config.js\n"
},
{
"path": ".eslintrc",
"chars": 671,
"preview": "{\n\t\"env\": {\n\t\t\"browser\": true,\n\t\t\"es6\": true,\n\t\t\"jest/globals\": true\n\t},\n\t\"extends\": [\n\t\t\"eslint:recommended\",\n\t\t\"plugin"
},
{
"path": ".gitignore",
"chars": 49,
"preview": ".DS_Store\n.vscode\nnode_modules\nlib\ndist\ncoverage\n"
},
{
"path": ".travis.yml",
"chars": 134,
"preview": "language: node_js\nnode_js:\n - \"10\"\nscript:\n - npm test\n - npm run build\nafter_success:\n - bash <(curl -s https://cod"
},
{
"path": "CHANGELOG.md",
"chars": 2626,
"preview": "# Changelog\nAll notable changes to this project will be documented in this file.\n\nThe format is based on [Keep a Changel"
},
{
"path": "CONTRIBUTING.md",
"chars": 1404,
"preview": "# Contributing\n\nIf you want to contribute to this project, here's a quick guide:\n1. Fork the repository\n1. Develop your "
},
{
"path": "LICENSE",
"chars": 1081,
"preview": "MIT License\n\nCopyright (c) 2018-present, Victor Cazanave\n\nPermission is hereby granted, free of charge, to any person ob"
},
{
"path": "README.md",
"chars": 14626,
"preview": "# react-svg-map\n\n[](https://www.npmjs.com/package/react-svg-ma"
},
{
"path": "__tests__/__mocks__/styleMock.js",
"chars": 19,
"preview": "export default {};\n"
},
{
"path": "__tests__/__snapshots__/checkbox-svg-map.test.js.snap",
"chars": 2716,
"preview": "// Jest Snapshot v1, https://goo.gl/fbAQLP\n\nexports[`CheckboxSVGMap component Rendering displays map with custom props 1"
},
{
"path": "__tests__/__snapshots__/radio-svg-map.test.js.snap",
"chars": 2700,
"preview": "// Jest Snapshot v1, https://goo.gl/fbAQLP\n\nexports[`RadioSVGMap component Rendering displays map with custom props 1`] "
},
{
"path": "__tests__/__snapshots__/svg-map.test.js.snap",
"chars": 4147,
"preview": "// Jest Snapshot v1, https://goo.gl/fbAQLP\n\nexports[`SVGMap component Properties displays map with custom function locat"
},
{
"path": "__tests__/checkbox-svg-map.test.js",
"chars": 5088,
"preview": "import React from 'react';\nimport renderer from 'react-test-renderer';\nimport { mount } from 'enzyme';\nimport FakeMap fr"
},
{
"path": "__tests__/fake-map.js",
"chars": 248,
"preview": "export default {\n\tlabel: 'label',\n\tviewBox: 'viewBox',\n\tlocations: [\n\t\t{\n\t\t\tname: 'name0',\n\t\t\tid: 'id0',\n\t\t\tpath: 'path0"
},
{
"path": "__tests__/radio-svg-map.test.js",
"chars": 6776,
"preview": "import React from 'react';\nimport ReactDOM from 'react-dom';\nimport renderer from 'react-test-renderer';\nimport { mount "
},
{
"path": "__tests__/svg-map.test.js",
"chars": 1874,
"preview": "import React from 'react';\nimport renderer from 'react-test-renderer';\nimport FakeMap from './fake-map';\nimport { SVGMap"
},
{
"path": "docs/index.html",
"chars": 276,
"preview": "<!DOCTYPE html> <html lang=en> <head> <meta charset=utf-8> <title>Examples of react-svg-map</title> </head> <body> <nosc"
},
{
"path": "docs/index.js",
"chars": 390197,
"preview": "!function(l){var e={};function t(n){if(e[n])return e[n].exports;var L=e[n]={i:n,l:!1,exports:{}};return l[n].call(L.expo"
},
{
"path": "examples/src/components/checkbox-map.jsx",
"chars": 2360,
"preview": "import React from 'react';\nimport Taiwan from '@svg-maps/taiwan.main';\nimport { CheckboxSVGMap } from '../../../src/';\ni"
},
{
"path": "examples/src/components/examples-app.jsx",
"chars": 663,
"preview": "import React from 'react';\nimport CheckboxMap from './checkbox-map';\nimport RadioMap from './radio-map';\nimport LinkMap "
},
{
"path": "examples/src/components/examples-app.scss",
"chars": 1253,
"preview": "/* Using box model */\n* {\n box-sizing: border-box;\n}\n\n/* Maps examples */\n.examples {\n\twidth: 1000px;\n\tmargin: 0 auto;\n"
},
{
"path": "examples/src/components/link-map.jsx",
"chars": 3203,
"preview": "import React from 'react';\nimport France from '@svg-maps/france.regions';\nimport { SVGMap } from '../../../src/';\nimport"
},
{
"path": "examples/src/components/radio-map.jsx",
"chars": 2262,
"preview": "import React from 'react';\nimport Australia from '@svg-maps/australia';\nimport { RadioSVGMap } from '../../../src/';\nimp"
},
{
"path": "examples/src/components/tooltip-heat-map.jsx",
"chars": 1781,
"preview": "import React from 'react';\nimport USA from '@svg-maps/usa';\nimport { SVGMap } from '../../../src';\nimport { getLocationN"
},
{
"path": "examples/src/index.html",
"chars": 252,
"preview": "<!DOCTYPE html>\n<html lang=\"en\">\n\n\t<head>\n\t\t<meta charset=\"utf-8\">\n\t\t<title>Examples of react-svg-map</title>\n\t</head>\n\n"
},
{
"path": "examples/src/index.jsx",
"chars": 182,
"preview": "import React from 'react';\nimport ReactDOM from 'react-dom';\nimport ExamplesApp from './components/examples-app';\n\nReact"
},
{
"path": "examples/src/utils.js",
"chars": 723,
"preview": "/**\n * Return the id of the location targeted by the event\n * @param {Event} event Occured event\n * @return {String} "
},
{
"path": "jest-setup.js",
"chars": 123,
"preview": "import { configure } from 'enzyme';\nimport Adapter from 'enzyme-adapter-react-16';\n\nconfigure({ adapter: new Adapter() }"
},
{
"path": "jest.config.js",
"chars": 546,
"preview": "module.exports = {\n\t// Fix \"localStorage is not available for opaque origins\" error\n\t// https://github.com/jsdom/jsdom/i"
},
{
"path": "package.json",
"chars": 2161,
"preview": "{\n\t\"name\": \"react-svg-map\",\n\t\"version\": \"2.2.0\",\n\t\"description\": \"A set of React.js components to display an interactive"
},
{
"path": "src/checkbox-svg-map.jsx",
"chars": 4165,
"preview": "import React from 'react';\nimport ReactDOM from 'react-dom';\nimport PropTypes from 'prop-types';\nimport SVGMap from './s"
},
{
"path": "src/index.js",
"chars": 202,
"preview": "import SVGMap from './svg-map';\nimport CheckboxSVGMap from './checkbox-svg-map';\nimport RadioSVGMap from './radio-svg-ma"
},
{
"path": "src/radio-svg-map.jsx",
"chars": 5170,
"preview": "import React from 'react';\nimport ReactDOM from 'react-dom';\nimport PropTypes from 'prop-types';\nimport SVGMap from './s"
},
{
"path": "src/svg-map.jsx",
"chars": 2514,
"preview": "import React from 'react';\nimport PropTypes from 'prop-types';\n\nfunction SVGMap(props) {\n\treturn (\n\t\t<svg\n\t\t\txmlns=\"http"
},
{
"path": "src/svg-map.scss",
"chars": 288,
"preview": ".svg-map {\n\twidth: 100%;\n\theight: auto;\n\tstroke: #666;\n\tstroke-width: 1;\n\tstroke-linecap: round;\n\tstroke-linejoin: round"
},
{
"path": "webpack.config.js",
"chars": 764,
"preview": "/*eslint-env node*/\nconst path = require('path');\nconst MiniCssExtractPlugin = require('mini-css-extract-plugin');\n\nmodu"
},
{
"path": "webpack.examples.config.js",
"chars": 1155,
"preview": "/*eslint-env node*/\nconst path = require('path');\nconst HtmlWebPackPlugin = require('html-webpack-plugin');\n\nmodule.expo"
}
]
About this extraction
This page contains the full source code of the VictorCazanave/react-svg-map GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 38 files (453.6 KB), approximately 233.5k tokens, and a symbol index with 338 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.