WP Recipe Maker - Version 8.1.0

Version Description

  • Feature: Ability to manually set post author
  • Feature: Bulk edit post author on manage page
  • Feature: Set author image when using "Same author for every recipe" setting
  • Feature: Specify different print template to use in print button shortcode
  • Feature: Toggle notes on print page
  • Improvement: Setting to choose pin method for button
  • Improvement: Edit recipe button in block editor sidebar for easy access
  • Improvement: Placeholder for modified date
  • Improvement: Allow placeholders in link, text and jump to comments blocks
  • Improvement: Prevent recipes from getting cached in REST API
  • Improvement: Recognize metadata for YouTube shorts embed links
  • Fix: Make sure SEO metadata checker updates after receiving a rating
  • Fix: Spacing of Grow.me button on mobile in Chic template
  • Fix: Toggle buttons border issue for RTL languages
  • Fix: Allow dash in taxonomy archive slug
  • Fix: Rich text "HTML & Code" field for multi-line HTML
  • Fix: Prevent PHP notice on print page
  • Fix: Prevent deprecation notice in WordPress 5.9
Download this release

Release Info

Developer BrechtVds
Plugin Icon 128x128 WP Recipe Maker
Version 8.1.0
Comparing to
See all releases

Code changes from version 8.0.0 to 8.1.0

assets/css/shortcodes/_container.scss CHANGED
@@ -19,6 +19,17 @@
19
  & > * {
20
  margin-left: 8px !important;
21
  margin-right: 8px !important;
 
 
 
 
 
 
 
 
 
 
 
22
  }
23
  }
24
  }
@@ -31,6 +42,15 @@
31
  &.wprm-container-columns-gutter {
32
  & > * {
33
  margin-bottom: 16px !important;
 
 
 
 
 
 
 
 
 
34
  }
35
  }
36
  }
19
  & > * {
20
  margin-left: 8px !important;
21
  margin-right: 8px !important;
22
+
23
+ // Fix for grow.me button shortcode.
24
+ &.wprm-recipe-grow-container {
25
+ margin-left: 0 !important;
26
+ margin-right: 0 !important;
27
+
28
+ a {
29
+ margin-left: 8px !important;
30
+ margin-right: 8px !important;
31
+ }
32
+ }
33
  }
34
  }
35
  }
42
  &.wprm-container-columns-gutter {
43
  & > * {
44
  margin-bottom: 16px !important;
45
+
46
+ // Fix for grow.me button shortcode.
47
+ &.wprm-recipe-grow-container {
48
+ margin-bottom: 0 !important;
49
+
50
+ a {
51
+ margin-bottom: 16px !important;
52
+ }
53
+ }
54
  }
55
  }
56
  }
assets/css/shortcodes/_instructions.scss CHANGED
@@ -19,5 +19,20 @@
19
  .wprm-recipe-instruction-ingredients-inline {
20
  .wprm-recipe-instruction-ingredient {
21
  display: inline-block;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  }
23
  }
19
  .wprm-recipe-instruction-ingredients-inline {
20
  .wprm-recipe-instruction-ingredient {
21
  display: inline-block;
22
+ padding-right: 5px;
23
+
24
+ &:last-child{ padding-right: 0; }
25
+ }
26
+ }
27
+
28
+ .rtl {
29
+ .wprm-recipe-instruction-ingredients-inline {
30
+ .wprm-recipe-instruction-ingredient {
31
+ display: inline-block;
32
+ padding-right: 0;
33
+ padding-left: 5px;
34
+
35
+ &:first-child{ padding-left: 5px; }
36
+ }
37
  }
38
  }
assets/icons/admin/reload.svg ADDED
@@ -0,0 +1 @@
 
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><g class="nc-icon-wrapper" stroke-width="1" fill="none" stroke="#111111" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"><path d="M1.5,7.5 c0-3.866,3.134-7,7-7c2.636,0,4.828,1.641,6,4"></path> <polyline points="14.5,0.5 14.5,4.5 10.5,4.5 "></polyline> <path d="M15.5,8.5 c0,3.866-3.134,7-7,7c-2.636,0-4.828-1.641-6-4" stroke="#111111"></path> <polyline points="2.5,15.5 2.5,11.5 6.5,11.5 " stroke="#111111"></polyline></g></svg>
assets/js/admin-dashboard/blocks/Recipes/index.js CHANGED
@@ -46,7 +46,7 @@ export default class Recipes extends Component {
46
  0 === this.state.recipes.length
47
  ?
48
  <div className="wprm-admin-dashboard-recipes-all">
49
- { __wprm( 'No recipes found. Welcome to WP Recipe Maker!') }
50
  </div>
51
  :
52
  <Fragment>
@@ -72,7 +72,7 @@ export default class Recipes extends Component {
72
  </Fragment>
73
  }
74
  <div className="wprm-admin-dashboard-recipes-all">
75
- <a href={ wprm_admin.manage_url }>{ __wprm( 'Manage all recipes...') }</a>
76
  </div>
77
  </div>
78
  </Block>
46
  0 === this.state.recipes.length
47
  ?
48
  <div className="wprm-admin-dashboard-recipes-all">
49
+ { __wprm( 'No recipes found. Welcome to WP Recipe Maker!' ) }
50
  </div>
51
  :
52
  <Fragment>
72
  </Fragment>
73
  }
74
  <div className="wprm-admin-dashboard-recipes-all">
75
+ <a href={ wprm_admin.manage_url }>{ __wprm( 'Manage all recipes...' ) }</a>
76
  </div>
77
  </div>
78
  </Block>
assets/js/admin-modal/bulk-edit/ActionsCollection.js ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import React, { Fragment } from 'react';
2
+
3
+ import { __wprm } from 'Shared/Translations';
4
+
5
+ const ActionsCollection = (props) => {
6
+ const selectedAction = props.action ? props.action.type : false;
7
+ const actionOptions = [
8
+ { value: 'reload', label: __wprm( 'Reload Recipes' ), default: false },
9
+ { value: 'delete', label: __wprm( 'Delete Saved Collections' ), default: false },
10
+ ];
11
+
12
+ return (
13
+ <Fragment>
14
+ <div className="wprm-admin-modal-bulk-edit-label">{ __wprm( 'Select an action to perform:' ) }</div>
15
+ <div className="wprm-admin-modal-bulk-edit-actions">
16
+ {
17
+ actionOptions.map((option) => (
18
+ <div className="wprm-admin-modal-bulk-edit-action" key={option.value}>
19
+ <input
20
+ type="radio"
21
+ value={option.value}
22
+ name={`wprm-admin-radio-bulk-edit-action`}
23
+ id={`wprm-admin-radio-bulk-edit-action-${option.value}`}
24
+ checked={selectedAction === option.value}
25
+ onChange={() => {
26
+ const newAction = {
27
+ type: option.value,
28
+ options: option.default,
29
+ }
30
+
31
+ props.onActionChange(newAction);
32
+ }}
33
+ /><label htmlFor={`wprm-admin-radio-bulk-edit-action-${option.value}`}>{ option.label }</label>
34
+ </div>
35
+ ))
36
+ }
37
+ </div>
38
+ </Fragment>
39
+ );
40
+ }
41
+ export default ActionsCollection;
assets/js/admin-modal/bulk-edit/ActionsRecipe.js CHANGED
@@ -47,6 +47,13 @@ const ActionsRecipe = (props) => {
47
  }
48
  }
49
 
 
 
 
 
 
 
 
50
  // Default options.
51
  actionOptions.push(
52
  { value: 'change-type', label: __wprm( 'Change Recipe Type' ), default: 'food' },
@@ -144,6 +151,33 @@ const ActionsRecipe = (props) => {
144
  }}
145
  />
146
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
147
  {
148
  'change-type' === selectedAction
149
  &&
47
  }
48
  }
49
 
50
+ // Only for "public" recipe type or when manually setting post author.
51
+ if ( 'public' === wprm_admin.settings.post_type_structure || 'manual' === wprm_admin.settings.recipe_use_author ) {
52
+ actionOptions.push(
53
+ { value: 'change-post-author', label: __wprm( 'Change Post Author' ), default: 'parent' }
54
+ );
55
+ }
56
+
57
  // Default options.
58
  actionOptions.push(
59
  { value: 'change-type', label: __wprm( 'Change Recipe Type' ), default: 'food' },
151
  }}
152
  />
153
  }
154
+ {
155
+ 'change-post-author' === selectedAction
156
+ &&
157
+ <FieldDropdown
158
+ options={
159
+ wprm_admin_manage.authors.map( ( author ) => {
160
+ return {
161
+ value: author.data.ID,
162
+ label: `${author.data.ID}${ author.data.display_name ? ` - ${ author.data.display_name }` : '' }`,
163
+ }
164
+ })
165
+ }
166
+ value={ props.action.options }
167
+ onChange={ (author) => {
168
+ const newAction = {
169
+ ...props.action,
170
+ options: author,
171
+ }
172
+ props.onActionChange(newAction);
173
+ }}
174
+ width={ 300 }
175
+ custom={{
176
+ menuPlacement: 'top',
177
+ maxMenuHeight: 150,
178
+ }}
179
+ />
180
+ }
181
  {
182
  'change-type' === selectedAction
183
  &&
assets/js/admin-modal/bulk-edit/index.js CHANGED
@@ -10,6 +10,7 @@ import Header from '../general/Header';
10
  import Footer from '../general/Footer';
11
 
12
  import ActionsAnalytics from './ActionsAnalytics';
 
13
  import ActionsEquipment from './ActionsEquipment';
14
  import ActionsIngredient from './ActionsIngredient';
15
  import ActionsIngredientUnit from './ActionsIngredientUnit';
@@ -56,6 +57,10 @@ let actions = {
56
  label: __wprm( 'Custom Nutrition Ingredients' ),
57
  elem: ActionsTaxonomy,
58
  },
 
 
 
 
59
  };
60
 
61
  Object.keys(wprm_admin_modal.categories).map((id) => {
10
  import Footer from '../general/Footer';
11
 
12
  import ActionsAnalytics from './ActionsAnalytics';
13
+ import ActionsCollection from './ActionsCollection';
14
  import ActionsEquipment from './ActionsEquipment';
15
  import ActionsIngredient from './ActionsIngredient';
16
  import ActionsIngredientUnit from './ActionsIngredientUnit';
57
  label: __wprm( 'Custom Nutrition Ingredients' ),
58
  elem: ActionsTaxonomy,
59
  },
60
+ 'collection': {
61
+ label: __wprm( 'Saved Collections' ),
62
+ elem: ActionsCollection,
63
+ },
64
  };
65
 
66
  Object.keys(wprm_admin_modal.categories).map((id) => {
assets/js/admin-modal/recipe/edit/RecipePostType.js CHANGED
@@ -6,6 +6,8 @@ import FieldDropdown from '../../fields/FieldDropdown';
6
  import FieldText from '../../fields/FieldText';
7
 
8
  const RecipePostType = (props) => {
 
 
9
  let languageOptions = [
10
  { value: false, label: __wprm( 'No language set' ) }
11
  ];
@@ -15,26 +17,34 @@ const RecipePostType = (props) => {
15
 
16
  return (
17
  <Fragment>
18
- <FieldContainer id="slug" label={ __wprm( 'Slug' ) }>
19
- <FieldText
20
- name="recipe-slug"
21
- placeholder={ __wprm( 'recipe-slug' ) }
22
- value={ props.slug }
23
- onChange={ (slug) => {
24
- props.onRecipeChange( { slug } );
25
- }}
26
- />
27
- </FieldContainer>
28
- <FieldContainer id="post_status" label={ __wprm( 'Status' ) }>
29
- <FieldDropdown
30
- options={ wprm_admin_modal.options.post_status }
31
- value={ props.post_status }
32
- onChange={ (post_status) => {
33
- props.onRecipeChange( { post_status } );
34
- }}
35
- width={ 300 }
36
- />
37
- </FieldContainer>
 
 
 
 
 
 
 
 
38
  <FieldContainer id="post_author" label={ __wprm( 'Post Author' ) }>
39
  <FieldDropdown
40
  options={ wprm_admin_modal.options.post_author }
@@ -46,7 +56,8 @@ const RecipePostType = (props) => {
46
  />
47
  </FieldContainer>
48
  {
49
- 1 < languageOptions.length
 
50
  &&
51
  <FieldContainer id="language" label={ __wprm( 'Language' ) }>
52
  <FieldDropdown
6
  import FieldText from '../../fields/FieldText';
7
 
8
  const RecipePostType = (props) => {
9
+ const showAll = 'public' === wprm_admin.settings.post_type_structure;
10
+
11
  let languageOptions = [
12
  { value: false, label: __wprm( 'No language set' ) }
13
  ];
17
 
18
  return (
19
  <Fragment>
20
+ {
21
+ showAll
22
+ &&
23
+ <FieldContainer id="slug" label={ __wprm( 'Slug' ) }>
24
+ <FieldText
25
+ name="recipe-slug"
26
+ placeholder={ __wprm( 'recipe-slug' ) }
27
+ value={ props.slug }
28
+ onChange={ (slug) => {
29
+ props.onRecipeChange( { slug } );
30
+ }}
31
+ />
32
+ </FieldContainer>
33
+ }
34
+ {
35
+ showAll
36
+ &&
37
+ <FieldContainer id="post_status" label={ __wprm( 'Status' ) }>
38
+ <FieldDropdown
39
+ options={ wprm_admin_modal.options.post_status }
40
+ value={ props.post_status }
41
+ onChange={ (post_status) => {
42
+ props.onRecipeChange( { post_status } );
43
+ }}
44
+ width={ 300 }
45
+ />
46
+ </FieldContainer>
47
+ }
48
  <FieldContainer id="post_author" label={ __wprm( 'Post Author' ) }>
49
  <FieldDropdown
50
  options={ wprm_admin_modal.options.post_author }
56
  />
57
  </FieldContainer>
58
  {
59
+ showAll
60
+ && 1 < languageOptions.length
61
  &&
62
  <FieldContainer id="language" label={ __wprm( 'Language' ) }>
63
  <FieldDropdown
assets/js/admin-modal/recipe/edit/index.js CHANGED
@@ -62,7 +62,7 @@ const EditRecipe = (props) => {
62
  }
63
  ];
64
 
65
- if ( 'public' === wprm_admin.settings.post_type_structure ) {
66
  structure.push({
67
  id: 'postType', name: __wprm( 'Post Type' ),
68
  elem: (
62
  }
63
  ];
64
 
65
+ if ( 'public' === wprm_admin.settings.post_type_structure || 'manual' === wprm_admin.settings.recipe_use_author ) {
66
  structure.push({
67
  id: 'postType', name: __wprm( 'Post Type' ),
68
  elem: (
assets/js/admin-modal/taxonomy/index.js CHANGED
@@ -40,12 +40,17 @@ export default class Menu extends Component {
40
  this.saveChanges = this.saveChanges.bind(this);
41
  }
42
 
43
- sanitizeSlug(text) {
44
  text = text.trim();
45
  text = text.toLowerCase();
46
 
47
- const from = "àáäâèéëêìíïîòóöôùúüûñçěščřžýúůďťň·/-,:;";
48
- const to = "aaaaeeeeiiiioooouuuuncescrzyuudtn______";
 
 
 
 
 
49
 
50
  for ( let i=0, l=from.length ; i<l ; i++ )
51
  {
@@ -53,7 +58,7 @@ export default class Menu extends Component {
53
  }
54
 
55
  text = text.replace('.', '-')
56
- .replace(/[^a-z0-9\s_]/g, '')
57
  .replace(/\s+/g, '_')
58
  .replace(/_+/g, '_');
59
 
@@ -121,7 +126,7 @@ export default class Menu extends Component {
121
  value={ `wprm_${this.state.taxonomy.key}` }
122
  onChange={ (key) => {
123
  let sanitizedKey = key.substr(5);
124
- sanitizedKey = this.sanitizeSlug( sanitizedKey );
125
 
126
  this.setState({
127
  taxonomy: {
40
  this.saveChanges = this.saveChanges.bind(this);
41
  }
42
 
43
+ sanitizeSlug(text, isKey = false) {
44
  text = text.trim();
45
  text = text.toLowerCase();
46
 
47
+ let from = "àáäâèéëêìíïîòóöôùúüûñçěščřžýúůďťň·/,:;";
48
+ let to = "aaaaeeeeiiiioooouuuuncescrzyuudtn_____";
49
+
50
+ if ( isKey ) {
51
+ from += '-';
52
+ to += '_';
53
+ }
54
 
55
  for ( let i=0, l=from.length ; i<l ; i++ )
56
  {
58
  }
59
 
60
  text = text.replace('.', '-')
61
+ .replace(/[^a-z0-9\s_\-]/g, '')
62
  .replace(/\s+/g, '_')
63
  .replace(/_+/g, '_');
64
 
126
  value={ `wprm_${this.state.taxonomy.key}` }
127
  onChange={ (key) => {
128
  let sanitizedKey = key.substr(5);
129
+ sanitizedKey = this.sanitizeSlug( sanitizedKey, true );
130
 
131
  this.setState({
132
  taxonomy: {
assets/js/blocks/recipe/index.js CHANGED
@@ -4,6 +4,7 @@ const {
4
  Button,
5
  ServerSideRender,
6
  PanelBody,
 
7
  Toolbar,
8
  TextControl,
9
  SelectControl,
@@ -116,6 +117,18 @@ registerBlockType( 'wp-recipe-maker/recipe', {
116
  updated: Date.now(),
117
  }) }
118
  />
 
 
 
 
 
 
 
 
 
 
 
 
119
  </PanelBody>
120
  </InspectorControls>
121
  <ServerSideRender
4
  Button,
5
  ServerSideRender,
6
  PanelBody,
7
+ PanelRow,
8
  Toolbar,
9
  TextControl,
10
  SelectControl,
117
  updated: Date.now(),
118
  }) }
119
  />
120
+ <PanelRow>
121
+ <Button
122
+ isDefault
123
+ onClick={ () => {
124
+ WPRM_Modal.open( 'recipe', {
125
+ recipeId: attributes.id,
126
+ saveCallback: modalCallback,
127
+ } );
128
+ }}>
129
+ { __( 'Edit Recipe' ) }
130
+ </Button>
131
+ </PanelRow>
132
  </PanelBody>
133
  </InspectorControls>
134
  <ServerSideRender
assets/js/print/index.js CHANGED
@@ -74,10 +74,16 @@ window.WPRMPrint = {
74
  elems = document.querySelectorAll( '.wprm-recipe-image' );
75
  } else if ( 'wprm-print-toggle-recipe-instruction-media' === toggle.id ) {
76
  elems = document.querySelectorAll( '.wprm-recipe-instruction-media' );
 
 
 
 
77
  } else if ( 'wprm-print-toggle-collection-images' === toggle.id ) {
78
  elems = document.querySelectorAll( '.wprmprc-collection-item-image' );
79
  } else if ( 'wprm-print-toggle-collection-servings' === toggle.id ) {
80
  elems = document.querySelectorAll( '.wprmprc-collection-item-servings' );
 
 
81
  } else if ( 'wprm-print-toggle-shopping-list-collection' === toggle.id ) {
82
  elems = document.querySelectorAll( '.wprmprc-shopping-list-collection' );
83
  } else if ( 'wprm-print-toggle-shopping-list' === toggle.id ) {
74
  elems = document.querySelectorAll( '.wprm-recipe-image' );
75
  } else if ( 'wprm-print-toggle-recipe-instruction-media' === toggle.id ) {
76
  elems = document.querySelectorAll( '.wprm-recipe-instruction-media' );
77
+ } else if ( 'wprm-print-toggle-recipe-notes' === toggle.id ) {
78
+ elems = document.querySelectorAll( '.wprm-recipe-notes-container' );
79
+ } else if ( 'wprm-print-toggle-recipe-nutrition' === toggle.id ) {
80
+ elems = document.querySelectorAll( '.wprm-recipe-nutrition-header, .wprm-nutrition-label-container' );
81
  } else if ( 'wprm-print-toggle-collection-images' === toggle.id ) {
82
  elems = document.querySelectorAll( '.wprmprc-collection-item-image' );
83
  } else if ( 'wprm-print-toggle-collection-servings' === toggle.id ) {
84
  elems = document.querySelectorAll( '.wprmprc-collection-item-servings' );
85
+ } else if ( 'wprm-print-toggle-collection-nutrition' === toggle.id ) {
86
+ elems = document.querySelectorAll( '.wprmprc-collection-column-nutrition' );
87
  } else if ( 'wprm-print-toggle-shopping-list-collection' === toggle.id ) {
88
  elems = document.querySelectorAll( '.wprmprc-shopping-list-collection' );
89
  } else if ( 'wprm-print-toggle-shopping-list' === toggle.id ) {
assets/js/public/print.js CHANGED
@@ -25,15 +25,18 @@ window.WPRecipeMaker.print = {
25
  if ( recipeId ) {
26
  e.preventDefault();
27
  recipeId = parseInt( recipeId );
 
 
 
28
 
29
  // Analytics.
30
  let location = 'other';
31
 
32
- const template = el.closest( '.wprm-recipe' );
33
- if ( template ) {
34
- if ( template.classList.contains( 'wprm-recipe-snippet' ) ) {
35
  location = 'snippet';
36
- } else if ( template.classList.contains( 'wprm-recipe-roundup-item' ) ) {
37
  location = 'roundup';
38
  } else {
39
  location = 'recipe';
@@ -45,10 +48,10 @@ window.WPRecipeMaker.print = {
45
  });
46
 
47
  // Actually print.
48
- WPRecipeMaker.print.recipeAsIs( recipeId );
49
  }
50
  },
51
- recipeAsIs: ( id ) => {
52
  let servings = false,
53
  system = 1,
54
  advancedServings = false;
@@ -72,10 +75,15 @@ window.WPRecipeMaker.print = {
72
  advancedServings = WPRecipeMaker.advancedServings.getRecipe( id );
73
  }
74
 
75
- WPRecipeMaker.print.recipe( id, servings, system, advancedServings );
76
  },
77
- recipe: ( id, servings = false, system = 1, advancedServings = false ) => {
78
- const url = WPRecipeMaker.print.getUrl( id );
 
 
 
 
 
79
  const target = wprm_public.settings.print_new_tab ? '_blank' : '_self';
80
  const printWindow = window.open( url, target );
81
 
25
  if ( recipeId ) {
26
  e.preventDefault();
27
  recipeId = parseInt( recipeId );
28
+
29
+ // Optional template to print.
30
+ const template = el.dataset.hasOwnProperty( 'template' ) ? el.dataset.template : '';
31
 
32
  // Analytics.
33
  let location = 'other';
34
 
35
+ const parent = el.closest( '.wprm-recipe' );
36
+ if ( parent ) {
37
+ if ( parent.classList.contains( 'wprm-recipe-snippet' ) ) {
38
  location = 'snippet';
39
+ } else if ( parent.classList.contains( 'wprm-recipe-roundup-item' ) ) {
40
  location = 'roundup';
41
  } else {
42
  location = 'recipe';
48
  });
49
 
50
  // Actually print.
51
+ WPRecipeMaker.print.recipeAsIs( recipeId, template );
52
  }
53
  },
54
+ recipeAsIs: ( id, template = '' ) => {
55
  let servings = false,
56
  system = 1,
57
  advancedServings = false;
75
  advancedServings = WPRecipeMaker.advancedServings.getRecipe( id );
76
  }
77
 
78
+ WPRecipeMaker.print.recipe( id, servings, system, advancedServings, template );
79
  },
80
+ recipe: ( id, servings = false, system = 1, advancedServings = false, template = '' ) => {
81
+ let urlArgs = id;
82
+ if ( template ) {
83
+ urlArgs += `/${template}`;
84
+ }
85
+
86
+ const url = WPRecipeMaker.print.getUrl( urlArgs );
87
  const target = wprm_public.settings.print_new_tab ? '_blank' : '_self';
88
  const printWindow = window.open( url, target );
89
 
assets/js/shared/Api/Recipe.js CHANGED
@@ -4,7 +4,7 @@ import ApiWrapper from '../ApiWrapper';
4
 
5
  export default {
6
  get(id) {
7
- return ApiWrapper.call( `${recipeEndpoint}/${id}` );
8
  },
9
  save(recipe) {
10
  const data = {
4
 
5
  export default {
6
  get(id) {
7
+ return ApiWrapper.call( `${recipeEndpoint}/${id}?t=${ Date.now() }` );
8
  },
9
  save(recipe) {
10
  const data = {
assets/js/shared/ApiWrapper.js CHANGED
@@ -43,63 +43,68 @@ export default {
43
  if ( response.ok ) {
44
  return response.json();
45
  } else {
46
- // Log errors in console and try to get as much debug information as possible.
47
- console.log(endpoint, args);
48
- console.log(response);
49
-
50
- let message = '';
51
-
52
- // Specific text per status.
53
- const status = parseInt( response.status );
54
- let hint = false;
55
-
56
- if ( 300 <= status && status <= 399 ) {
57
- hint = 'A redirection is breaking the API endpoint. Are any redirections set up in the .htaccess file or using a plugin?';
58
- } else if ( 401 === status || 403 === status ) {
59
- hint = 'Something is blocking access. Are you or your webhost using a firewall like Cloudflare WAF or Sucuri? Try whitelisting your own IP address or this specific action.';
60
- } else if ( 404 === status ) {
61
- hint = 'The rest API endpoint could not be found. Are your permalinks set up correctly?';
62
- } else if ( 500 <= status && status <= 599 ) {
63
- hint = 'The server is throwing an error. It could be hitting a memory or execution limit. Check with your webhost what the exact error is in the logs.';
64
- }
65
-
66
- if ( hint ) {
67
- message += `${hint}\r\n\r\n`;
68
- }
69
-
70
- message += 'Press OK to contact support@bootstrapped.ventures for support (opens an email popup).';
71
-
72
- // Response details.
73
- const responseDetails = `${response.url} ${response.redirected ? '(redirected)' : ''}- ${response.status} - ${response.statusText}`;
74
- message += `\r\n\r\n${responseDetails}`;
75
-
76
- try {
77
- response.text().then(text => {
78
- console.log(text);
79
-
80
- if ( -1 !== text.indexOf( 'rest_cookie_invalid_nonce' ) ) {
81
- // Got logged out.
82
- alert( 'You got logged out or your session expired. Please try logging out of WordPress and back in again.' );
83
- return false;
84
- } else {
85
- message += `\r\n\r\n${text}`;
86
- }
87
- })
88
- } catch(e) {
89
- console.log(e);
90
- message += `\r\n\r\n${e}`;
91
- }
92
-
93
- if ( confirm( message ) ) {
94
- const email = 'support@bootstrapped.ventures';
95
- const subject = 'WP Recipe Maker Error Message';
96
- const body = `I received the error message below at ${ window.location.href }\r\n\r\n${ message }`;
97
-
98
- window.open( `mailto:${ encodeURIComponent( email ) }?subject=${ encodeURIComponent( subject ) }&body=${ encodeURIComponent( body ) }` );
99
- }
100
-
101
  return false;
102
  }
103
  });
104
  },
105
  };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  if ( response.ok ) {
44
  return response.json();
45
  } else {
46
+ showErrorMessage( endpoint, args, response );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  return false;
48
  }
49
  });
50
  },
51
  };
52
+
53
+ async function showErrorMessage( endpoint, args, response ) {
54
+ // Log errors in console and try to get as much debug information as possible.
55
+ console.log(endpoint, args);
56
+ console.log(response);
57
+
58
+ let message = '';
59
+
60
+ // Specific text per status.
61
+ const status = parseInt( response.status );
62
+ let hint = false;
63
+
64
+ if ( 300 <= status && status <= 399 ) {
65
+ hint = 'A redirection is breaking the API endpoint. Are any redirections set up in the .htaccess file or using a plugin?';
66
+ } else if ( 401 === status || 403 === status ) {
67
+ hint = 'Something is blocking access. Are you or your webhost using a firewall like Cloudflare WAF or Sucuri? Try whitelisting your own IP address or this specific action.';
68
+ } else if ( 404 === status ) {
69
+ hint = 'The rest API endpoint could not be found. Are your permalinks set up correctly?';
70
+ } else if ( 500 <= status && status <= 599 ) {
71
+ hint = 'The server is throwing an error. It could be hitting a memory or execution limit. Check with your webhost what the exact error is in the logs.';
72
+ }
73
+
74
+ if ( hint ) {
75
+ message += `${hint}\r\n\r\n`;
76
+ }
77
+
78
+ message += 'Press OK to contact support@bootstrapped.ventures for support (opens an email popup).';
79
+
80
+ // Response details.
81
+ const responseDetails = `${response.url} ${response.redirected ? '(redirected)' : ''}- ${response.status} - ${response.statusText}`;
82
+ message += `\r\n\r\n${responseDetails}`;
83
+
84
+ let showAlert = true;
85
+
86
+ try {
87
+ await response.text().then(text => {
88
+ console.log(text);
89
+
90
+ if ( -1 !== text.indexOf( 'rest_cookie_invalid_nonce' ) ) {
91
+ // Got logged out.
92
+ alert( 'You got logged out or your session expired. Please try logging out of WordPress and back in again.' );
93
+ showAlert = false;
94
+ } else {
95
+ message += `\r\n\r\n${text}`;
96
+ }
97
+ })
98
+ } catch(e) {
99
+ console.log(e);
100
+ message += `\r\n\r\n${e}`;
101
+ }
102
+
103
+ if ( showAlert && confirm( message ) ) {
104
+ const email = 'support@bootstrapped.ventures';
105
+ const subject = 'WP Recipe Maker Error Message';
106
+ const body = `I received the error message below at ${ window.location.href }\r\n\r\n${ message }`;
107
+
108
+ window.open( `mailto:${ encodeURIComponent( email ) }?subject=${ encodeURIComponent( subject ) }&body=${ encodeURIComponent( body ) }` );
109
+ }
110
+ }
assets/js/shared/Icon.js CHANGED
@@ -27,6 +27,7 @@ import IconPhoto from '../../icons/admin/photo.svg';
27
  import IconPlus from '../../icons/admin/plus.svg';
28
  import IconPrint from '../../icons/admin/print.svg';
29
  import IconQuestion from '../../icons/admin/question.svg';
 
30
  import IconRestore from '../../icons/admin/restore.svg';
31
  import IconStarEmpty from '../../icons/admin/star-empty.svg';
32
  import IconStarFull from '../../icons/admin/star-full.svg';
@@ -61,6 +62,7 @@ const icons = {
61
  plus: IconPlus,
62
  print: IconPrint,
63
  question: IconQuestion,
 
64
  restore: IconRestore,
65
  'star-empty': IconStarEmpty,
66
  'star-full': IconStarFull,
27
  import IconPlus from '../../icons/admin/plus.svg';
28
  import IconPrint from '../../icons/admin/print.svg';
29
  import IconQuestion from '../../icons/admin/question.svg';
30
+ import IconReload from '../../icons/admin/reload.svg';
31
  import IconRestore from '../../icons/admin/restore.svg';
32
  import IconStarEmpty from '../../icons/admin/star-empty.svg';
33
  import IconStarFull from '../../icons/admin/star-full.svg';
62
  plus: IconPlus,
63
  print: IconPrint,
64
  question: IconQuestion,
65
+ reload: IconReload,
66
  restore: IconRestore,
67
  'star-empty': IconStarEmpty,
68
  'star-full': IconStarFull,
dist/admin-dashboard.js CHANGED
@@ -1,9 +1,9 @@
1
- var WPRecipeMaker;(WPRecipeMaker=void 0===WPRecipeMaker?{}:WPRecipeMaker)["wp-recipe-maker/dist/admin-dashboard"]=(self.webpackChunkWPRecipeMaker_name_=self.webpackChunkWPRecipeMaker_name_||[]).push([[752],{81162:function(e,t,r){"use strict";r.r(t);var n={};r.r(n),r.d(n,{scaleBand:function(){return Ka},scaleDiverging:function(){return Pp},scaleDivergingLog:function(){return Np},scaleDivergingPow:function(){return Lp},scaleDivergingSqrt:function(){return Rp},scaleDivergingSymlog:function(){return Cp},scaleIdentity:function(){return ms},scaleImplicit:function(){return Qa},scaleLinear:function(){return hs},scaleLog:function(){return Ss},scaleOrdinal:function(){return $a},scalePoint:function(){return tc},scalePow:function(){return Ps},scaleQuantile:function(){return qs},scaleQuantize:function(){return Zs},scaleRadial:function(){return Rs},scaleSequential:function(){return Mp},scaleSequentialLog:function(){return Op},scaleSequentialPow:function(){return jp},scaleSequentialQuantile:function(){return Dp},scaleSequentialSqrt:function(){return Tp},scaleSequentialSymlog:function(){return kp},scaleSqrt:function(){return Ns},scaleSymlog:function(){return js},scaleThreshold:function(){return Fs},scaleTime:function(){return xp},scaleUtc:function(){return Ep},tickFormat:function(){return ps}});var i=r(73961),o=r(89526);function a(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const f={breakpointCols:void 0,className:void 0,columnClassName:void 0,children:void 0,columnAttrs:void 0,column:void 0};class p extends o.Component{constructor(e){let t;super(e),this.reCalculateColumnCount=this.reCalculateColumnCount.bind(this),this.reCalculateColumnCountDebounce=this.reCalculateColumnCountDebounce.bind(this),t=this.props.breakpointCols&&this.props.breakpointCols.default?this.props.breakpointCols.default:parseInt(this.props.breakpointCols)||2,this.state={columnCount:t}}componentDidMount(){this.reCalculateColumnCount(),window&&window.addEventListener("resize",this.reCalculateColumnCountDebounce)}componentDidUpdate(){this.reCalculateColumnCount()}componentWillUnmount(){window&&window.removeEventListener("resize",this.reCalculateColumnCountDebounce)}reCalculateColumnCountDebounce(){window&&window.requestAnimationFrame?(window.cancelAnimationFrame&&window.cancelAnimationFrame(this._lastRecalculateAnimationFrame),this._lastRecalculateAnimationFrame=window.requestAnimationFrame((()=>{this.reCalculateColumnCount()}))):this.reCalculateColumnCount()}reCalculateColumnCount(){const e=window&&window.innerWidth||1/0;let t=this.props.breakpointCols;"object"!=typeof t&&(t={default:parseInt(t)||2});let r=1/0,n=t.default||2;for(let i in t){const o=parseInt(i);o>0&&e<=o&&o<r&&(r=o,n=t[i])}n=Math.max(1,parseInt(n)||1),this.state.columnCount!==n&&this.setState({columnCount:n})}itemsInColumns(){const e=this.state.columnCount,t=new Array(e),r=o.Children.toArray(this.props.children);for(let n=0;n<r.length;n++){const i=n%e;t[i]||(t[i]=[]),t[i].push(r[n])}return t}renderColumns(){const{column:e,columnAttrs:t={},columnClassName:r}=this.props,n=this.itemsInColumns(),i=100/n.length+"%";let a=r;a&&"string"!=typeof a&&(this.logDeprecated('The property "columnClassName" requires a string'),void 0===a&&(a="my-masonry-grid_column"));const u=s(s(s({},e),t),{},{style:s(s({},t.style),{},{width:i}),className:a});return n.map(((e,t)=>o.createElement("div",c({},u,{key:t}),e)))}logDeprecated(e){console.error("[Masonry]",e)}render(){const e=this.props,{children:t,breakpointCols:r,columnClassName:n,columnAttrs:i,column:u,className:s}=e,l=a(e,["children","breakpointCols","columnClassName","columnAttrs","column","className"]);let f=s;return"string"!=typeof s&&(this.logDeprecated('The property "className" requires a string'),void 0===s&&(f="my-masonry-grid")),o.createElement("div",c({},l,{className:f}),this.renderColumns())}}p.defaultProps=f;var d=p,h={default:2,1150:1},m=e=>o.createElement(d,{breakpointCols:h,className:"wprm-admin-dashboard-blocks-grid",columnClassName:"wprm-admin-dashboard-blocks-grid-column"},e.blocks.map((e=>{var t=e.block;return o.createElement(t,{key:e.id})}))),v=r(99237),y=r(52082),g=e=>o.createElement("div",{className:"wprm-admin-dashboard-block-container"},o.createElement("div",{className:"wprm-admin-dashboard-block-header"},o.createElement("div",{className:"wprm-admin-dashboard-block-header-title"},e.title),e.hasOwnProperty("button")&&o.createElement("div",{className:"wprm-admin-dashboard-block-header-button"},o.createElement("button",{className:"button button-primary",onClick:()=>{e.buttonAction()}},e.button))),o.createElement("div",{className:"wprm-admin-dashboard-block"},e.children)),b=(r(21682),"undefined"!=typeof window?function(){if(!e)var e={};var t={FONT:"font",VIEW:"view",TRANSFORM:"transform",EASING_FUNCTION:"easing-function",TRANSITION:"transition"},r={};r[t.FONT]={},r[t.VIEW]={},r[t.TRANSFORM]={},r[t.EASING_FUNCTION]={},r[t.TRANSITION]={};var n=function(e,t){if(!r[e])return null;for(var n in t)if(t.hasOwnProperty(n)){if(r[e][n])return null;r[e][n]=t[n]}},i=function(e,t,n){if(!r[e])throw"Can't add extension with type of \""+e+'", "'+e+'" is not a valid extension type. The following types are valid: '+qt(r);if(!/^[-a-z]+$/.test(t))throw"Can't add extension with name \""+t+'", "'+t+'" is contains invalid characters. Only lowercase alphabetical characters and dashes are allowed.';if(r[e][t])throw"Can't add extension with name \""+t+'", "'+t+'" is already added.';r[e][t]=n},o=function(e,t){if(!r[e])throw"Can't get extension with type of \""+e+'", "'+e+'" is not a valid extension type. The following types are available: '+qt(r);if(!r[e][t])throw"Can't get extension with name \""+t+'", "'+t+'" is not available. The following extensions are available: '+qt(r[e]);return r[e][t]},a=2628e6,c={Week:6048e5,Day:864e5,Hour:36e5,Minute:6e4,Second:1e3,Millisecond:1,Month:a,Year:31536e6},u=["Januari","Februari","March","April","May","June","July","August","September","October","November","December"];for(var s in c)if(c.hasOwnProperty(s)){var l=c[s];1===l?(c.mi=l,c.ms=l):l===a?c.M=l:c[s.charAt(0).toLowerCase()]=l,c[s.toLowerCase()]=l,c[s.toLowerCase()+"s"]=l}var f={Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6,Sunday:0},p={M:1,y:12},d=function(e){return e instanceof Date},h=function(e,t){var r=t-e.getDay();return e.setDate(e.getDate()+r),e},m=function(e,t){var r=E(e.getMonth()+1,e.getFullYear());return t="last"===t?r:Math.max(1,Math.min(r,t)),e.setDate(t),e},v=function(e,t){return e.setMonth(u.map((function(e){return e.toLowerCase()})).indexOf(t)),e},y=function(e){var t=6e4*(new Date).getTimezoneOffset();if("Z"===e)return t;var r=e.match(/\+|-|[\d]{2}|[\d]{2}/g);return("-"===r.shift()?-1:1)*(36e5*parseInt(r[0],10)+6e4*parseInt(r[1],10))+t},g=function(e){return new Date(Date.now()+e)},b=function(e,t){return new Date(e.getTime()+t)},w=function(e,t){return e.toDateString()===t.toDateString()},x=function(e,t){return e.getTime()===t.getTime()},E=function(e,t){return new Date(t,e,0).getDate()},I=function(e){return e.match(/(Z)|([+\-][0-9]{2}:?[0-9]*$)/g)?new Date(e):(e+=-1!==e.indexOf("T")?"Z":"",S(new Date(e)))},S=function(e){return new Date(e.getTime()+6e4*e.getTimezoneOffset())},M=function(e,t){return t.map((function(t){var r=c[t],n=Math.max(0,Math.floor(e/r));return e%=r,n}))},O=function(e,t,r){var n=t-e,i=!1;if(n<0){n=e-t;var o=[t,e];e=o[0],t=o[1],i=!0}r||(r=["d","h","m"]);var a=r.indexOf("m");a>=0&&("y"===r[a-1]||"d"===r[a+1])&&(r[a].key="M");var u=void 0,s=void 0,l=void 0,f=r.includes("y"),d=r.includes("M");(d||f)&&(u=new Date(e.valueOf()+n),s=A(u,e),l=d?Math.floor(s):12*Math.floor(s/12),n=u.valueOf()-D(T(e),l).valueOf());var h=r.map((function(e){if("y"===e||"M"===e){var t=Math.max(0,Math.floor(s/p[e]));return s-=t*p[e],t}var r=c[e],i=Math.max(0,Math.floor(n/r));return n%=r,i}));return i?h.map((function(e){return e>0?-e:e})):h},k=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if("number"==typeof t[0]&&"string"==typeof t[1]){if(!c[t[1]])throw'"'+t[1]+'" is not a valid amount.';return t[0]*c[t[1]]}return d(t[0])?O.apply(void 0,t):"number"==typeof t[0]&&Array.isArray(t[1])?M.apply(void 0,t):null},j=function(){return new Date},T=function(e){return new Date(e.valueOf())},D=function(e,t){return e.setMonth(e.getMonth()+t),e},A=function(e,t){var r=12*(t.getFullYear()-e.getFullYear())+(t.getMonth()-e.getMonth()),n=D(T(e),r);return-(r+(t-n<0?(t-n)/(n-D(T(e),r-1)):(t-n)/(D(T(e),r+1)-n)))},_=function(e){return{destroy:function(){e.destroyed=!0,e.frame&&cancelAnimationFrame(e.frame),e.styleObserver&&e.styleObserver.disconnect(),e.didResizeWindow&&window.removeEventListener("resize",e.didResizeWindow),e.root&&e.root.parentNode&&e.root.parentNode.removeChild(e.root)}}},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.createElement("span"),r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return e.root=t,e.aligned=null,e.destroyed=!1,t&&r&&(e.root.classList.add("tick-"+r),e.root.setAttribute("data-view",r)),t&&t.dataset.layout&&(e.align=(t.dataset.layout.match(/left|right|center/)||[])[0]||"left"),{appendTo:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"last";!e.root||e.root&&e.root.parentNode||("last"!==r?("first"===r&&(0===t.childNodes.length?t.appendChild(e.root):0===t.children.length&&t.childNodes.length?t.insertBefore(e.root,t.childNodes[t.childNodes.length-1]):t.insertBefore(e.root,t.children[0])),"string"!=typeof r&&t.insertBefore(e.root,r)):t.childNodes.length&&t.childNodes[t.childNodes.length-1].nodeType===Node.TEXT_NODE?t.insertBefore(e.root,t.childNodes[t.childNodes.length-1]):t.appendChild(e.root))}}},N=function(e,t){return e.definition=t,{setDefinition:function(t){e.definition=t}}},C=function(e,t,r,n){return{draw:function(){if(!e.dirty){if(r)r(e)&&L(e);return!1}return t(e,n),L(e),e.dirty=!1,!0}}},L=function(e){if(!e.fit){if(!e.root||!(e.root.getAttribute("data-layout")||"").match(/fit/))return void(e.fit=!1);var t=window.getComputedStyle(e.root,null);e.fit=!0,e.fitInfo={currentFontSize:parseInt(t.getPropertyValue("font-size"),10)}}e.fitInfo.availableWidth=e.root.parentNode.clientWidth,e.fitInfo.currentWidth=e.root.scrollWidth;var r=Math.min(Math.max(4,e.fitInfo.availableWidth/e.fitInfo.currentWidth*e.fitInfo.currentFontSize),1024);Math.abs(r-e.fitInfo.currentFontSize)<=1||(e.fitInfo.currentFontSize=r,e.root.style.fontSize=e.fitInfo.currentFontSize+"px")},R=function(e){return e.dirty=!0,e.value=null,e.valueUpdateCount=0,e.isInitialValue=function(){return e.valueUpdateCount<=1},{reset:function(){e.dirty=!0,e.value=null,e.valueUpdateCount=0},update:function(t){zt(e.value,t)||(e.value=t,e.valueUpdateCount++,e.dirty=!0)}}},B=function(e){e.didResizeWindow=function(){e.dirty=!0},window.addEventListener("resize",e.didResizeWindow)},U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z=(function(){function e(e){this.value=e}function t(t){var r,n;function i(r,n){try{var a=t[r](n),c=a.value;c instanceof e?Promise.resolve(c.value).then((function(e){i("next",e)}),(function(e){i("throw",e)})):o(a.done?"return":"normal",a.value)}catch(u){o("throw",u)}}function o(e,t){switch(e){case"return":r.resolve({value:t,done:!0});break;case"throw":r.reject(t);break;default:r.resolve({value:t,done:!1})}(r=r.next)?i(r.key,r.arg):n=null}this._invoke=function(e,t){return new Promise((function(o,a){var c={key:e,arg:t,resolve:o,reject:a,next:null};n?n=n.next=c:(r=n=c,i(e,t))}))},"function"!=typeof t.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),H=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),G=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},W=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)},q=function(e,t){var r=(e.definition||[]).concat();"right"===e.align&&r.reverse();var n=Array.isArray(e.value)?e.value.concat():"object"===U(e.value)?Pt(e.value):e.value;r.forEach((function(r){if(!r.presenter){if(e.update=t(r),!r.presenter)return;r.presenter.appendTo(e.root)}})),r.filter((function(e){return void 0!==e.presenter})).forEach((function(t){Array.isArray(n)&&e.valueMapping?e.update(t,"indexes"===e.valueMapping?"right"===e.align?n.pop():n.shift():n):t.key&&void 0!==n[t.key]?e.update(t,n[t.key]):e.update(t,n)})),e.views=r,Z(e)},Z=function(e){var t=!1;return e.views.filter((function(e){return void 0!==e.presenter})).forEach((function(e){e.presenter.draw()&&(t=!0)})),t},F=function(e,t,r){var n=Nt(Array.isArray(e.value)?e.value:(e.value+"").split(""));if("right"===e.align&&n.reverse(),e.definitions.length>n.length)for(;e.definitions.length>n.length;){e.definitions.pop().presenter.destroy()}n.forEach((function(r,n){var i=e.definitions[n];i||(i=e.definitions[n]=ct(e.definition),e.update=t(i),i.presenter.appendTo(e.root,"right"===e.align?"first":"last"))})),n.forEach((function(t,r){return e.update(e.definitions[r],t)})),e.views=n,V(e)},V=function(e){var t=!1;return e.views.forEach((function(r,n){e.definitions[n].presenter.draw()&&(t=!0)})),t},J="undefined"==typeof document?null:function(){for(var e=["webkit","Moz","ms","O"],t=0,r=e.length,n=document.createElement("div").style;t<r;t++)if(e[t]+"Transform"in n)return e[t];return null}(),Y=function(e,t){var r=document.createElement(e);return t&&(r.className=t),r},X=function(e,t,r){var n=new MutationObserver((function(n){t.forEach((function(i){n.filter((function(e){return t.includes(e.attributeName)})).length&&r(e.getAttribute(i))}))}));return n.observe(e,{attributes:!0}),n},Q=function(e){return e instanceof HTMLElement},$=function(e,t){e.style.transformOrigin=t},K=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";e.transforms||(e.transforms=[]);var i=e.transforms.find((function(e){return e.name===t}));i?i.value=r:e.transforms.push({name:t,value:r,unit:n}),ee(e,e.transforms)},ee=function(e,t){e.style.transform=t.map((function(e){return e.name+"("+e.value+e.unit+")"})).join(" ")},te=function(e){var t=e.getBoundingClientRect();return!(t.bottom<0)&&!(t.top>window.scrollY+window.innerHeight)},re=function(e){return e.trim()},ne={},ie=function(e,t){var r=t.toString();return ne[r]||(ne[r]={}),ne[r][e]||(ne[r][e]=t(e)),ne[r][e]},oe=new RegExp("^[0-9]+$"),ae=new RegExp("^(true|false)$"),ce=new RegExp("^[0-9.]+$"),ue=new RegExp("color"),se=new RegExp("shadow"),le=new RegExp("^(follow-gradient|horizontal-gradient|vertical-gradient)"),fe=new RegExp("^[.0-9]+(?:ms|s){1}$"),pe=new RegExp("^transition-?(?:in|out)?$"),de=new RegExp("^url\\("),he=function(e){return e?parseFloat(e)*(/ms$/.test(e)?1:1e3):0},me=function(e){return e.match(/[a-z]+(?:\(.*?\))?\s?(?:origin\(.*?\))?\s?(?:[a-z]+\(.*?\))?[ .a-z-0-9]*/g).map(ve)},ve=function(e){var t=e.match(/([a-z]+(?:\(.*?\))?)\s?(?:origin\((.*?)\))?\s?([a-z]+(?:\(.*?\))?)?\s?(?:([.0-9ms]+)?\s?(?:(ease-[a-z-]+))?\s?([.0-9ms]+)?)?/),r=vt(t[1]),n=void 0,i=void 0,o=void 0,a=void 0,c=void 0;return t.slice(2).filter((function(e){return void 0!==e})).forEach((function(e){fe.test(e)?void 0===i?i=he(e):a=he(e):/ /.test(e)?n=e:/^ease-[a-z-]+$/.test(e)?o=e:/^[a-z]+/.test(e)&&(c=vt(e))})),c&&(i=void 0,o=void 0),{name:r.name,parameters:r.parameters,duration:i,ease:o,delay:a,origin:n,resolver:c}},ye=function(e){var t=e.match(/follow-gradient|horizontal-gradient|vertical-gradient/)[0];return{type:t,colors:e.substr(t.length).match(/(?:transparent|rgb\(.*?\)|hsl\(.*?\)|hsla\(.*?\)|rgba\(.*?\)|[a-z]+|#[abcdefABCDEF\d]+)\s?(?:[\d]{1,3}%?)?/g).map(be)}},ge=/\s([\d]{1,3})%?$/,be=function(e){var t=e.match(ge);return{offset:t?parseFloat(t[1])/100:null,value:Se(e.replace(ge,""))}},we=[],xe=function(e,t){return we[e]?we[e].find((function(e){return e.node.parentNode===t})):null},Ee=function(e,t){we[e]||(we[e]=[]),we[e].push(t)},Ie="undefined"==typeof document?function(e){return 0}:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(0==e)return 0;if(r){var n=xe(r,t)||{};return n.node||(n.node=document.createElement("span"),n.node.style.cssText="position:absolute;padding:0;visibility:hidden;",t.appendChild(n.node)),n.node.style.marginTop=e,n.style||(n.style=window.getComputedStyle(n.node)),Ee(r,n),parseInt(n.style.marginTop,10)}var i=document.createElement("span");return i.style.cssText="position:absolute;padding:0;visibility:hidden;margin-top:"+e,t.appendChild(i),requestAnimationFrame((function(){i.parentNode.removeChild(i)})),parseInt(window.getComputedStyle(i).marginTop,10)},Se="undefined"==typeof document?function(e){return e}:function(e){if("transparent"===e)return"rgba(0,0,0,0)";var t=document.createElement("span");return t.style.cssText="position:absolute;visibility:hidden;color:"+e,document.body.appendChild(t),requestAnimationFrame((function(){t.parentNode.removeChild(t)})),window.getComputedStyle(t).getPropertyValue("color")},Me=function(e){return"string"!=typeof e?e:e.match(/([-.\d]+(?:%|ms|s|deg|cm|em|ch|ex|q|in|mm|pc|pt|px|vh|vw|vmin|vmax)?)|[%#A-Za-z0-9,.()]+/g)},Oe=function(e){var t=e.split(":").map(re),r=function(e){return e.trim().split("-").map((function(e,t){return t>0?function(e){return e.charAt(0).toUpperCase()+e.slice(1)}(e):e})).join("")}(t[0]),n=function(e,t){return ae.test(e)?function(e){return"string"==typeof e?"true"===e:e}(e):oe.test(e)?parseInt(e,10):ce.test(e)?parseFloat(e):de.test(e)?1===(r=e.match(/url\((.*?)\)/g).map((function(e){return e.substring(4,e.length-1)}))).length?r[0]:r:ue.test(t)?le.test(e)?ie(e,ye):ie(e,Se):se.test(t)?ie(e,Me):pe.test(t)?"none"===e?e:ie(e,me):e;var r}(t[1],t[0]);return r&&null!=n?{property:r,value:n}:null},ke=function(e){return e},je=function(e){return e<.5?2*e*e:(4-2*e)*e-1},Te={"ease-linear":ke,"ease-in-sine":function(e){return-1*Math.cos(e*(Math.PI/2))+1},"ease-out-sine":function(e){return Math.sin(e*(Math.PI/2))},"ease-in-out-sine":function(e){return-.5*(Math.cos(Math.PI*e)-1)},"ease-in-cubic":function(e){return e*e*e},"ease-out-cubic":function(e){var t=e-1;return t*t*t+1},"ease-in-out-cubic":function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},"ease-in-circ":function(e){var t=e/1;return-1*(Math.sqrt(1-t*e)-1)},"ease-out-circ":function(e){var t=e-1;return Math.sqrt(1-t*t)},"ease-in-out-circ":function(e){var t=2*e,r=t-2;return t<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-r*r)+1)},"ease-in-quad":function(e){return e*e},"ease-out-quad":function(e){return e*(2-e)},"ease-in-out-quad":je,"ease-in-quart":function(e){return e*e*e*e},"ease-out-quart":function(e){return 1- --e*e*e*e},"ease-in-out-quart":function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},"ease-in-expo":function(e){return 0===e?0:Math.pow(2,10*(e-1))},"ease-out-expo":function(e){return 1===e?1:1-Math.pow(2,-10*e)},"ease-in-out-expo":function(e){if(0===e||1===e)return e;var t=2*e,r=t-1;return t<1?.5*Math.pow(2,10*r):.5*(2-Math.pow(2,-10*r))},"ease-in-back":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1.70158,r=e/1;return r*r*((t+1)*r-t)},"ease-out-back":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1.70158,r=e/1-1;return r*r*((t+1)*r+t)+1},"ease-in-out-back":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1.70158,r=2*e,n=r-2,i=1.525*t;return r<1?.5*r*r*((i+1)*r-i):.5*(n*n*((i+1)*n+i)+2)},"ease-out-elastic":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.7,r=1-t,n=2*e;if(0===e||1===e)return e;var i=r/(2*Math.PI)*Math.asin(1);return Math.pow(2,-10*n)*Math.sin((n-i)*(2*Math.PI)/r)+1},"ease-out-bounce":function(e){var t=e/1;if(t<1/2.75)return 7.5625*t*t;if(t<2/2.75){var r=t-1.5/2.75;return 7.5625*r*r+.75}if(t<2.5/2.75){var n=t-2.25/2.75;return 7.5625*n*n+.9375}var i=t-2.625/2.75;return 7.5625*i*i+.984375}};n(t.EASING_FUNCTION,Te);var De=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:500,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ke,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return Ae((function(t){e(n(t))}),t,r,i)},Ae=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:500,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(!e)return null;var i=null,o=void 0,a=null,c=function c(u){if(null===i&&(i=u),(o=u-i-n)<r)return e(o>=0?o/r:0),a=requestAnimationFrame(c),null;e(1),t&&t()};return c(Bt()),function(){cancelAnimationFrame(a)}},_e=function(){var e=1e3/24,t=null,r={velocity:0,origin:0,position:0,destination:1},n=function(){cancelAnimationFrame(t)};return{getPosition:function(){return r.position},cancel:n,translate:function(i,o,a,c){n(),null===a?r.destination=o:(r.position=o,r.destination=a,r.velocity=0),r.origin=r.position;var u=null;!function o(a){t=requestAnimationFrame(o),u||(u=a);var s=a-u;s<=e||(u=a-s%e,c(r,n),i(r.position))}(Bt())}}},Pe=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=_e(),o={update:null,cancel:i.cancel,getPosition:i.getPosition};return"arrive"===e?o.update=Ne.apply(void 0,[i.translate].concat(r)):"spring"===e?o.update=Le.apply(void 0,[i.translate].concat(r)):"step"===e&&(o.update=Ce.apply(void 0,[i.translate].concat(r))),o},Ne=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.01;return function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e(n,i,o,(function(e,n){var i=e.destination-e.position,o=e.origin+.5*(e.destination-e.origin);e.velocity+=2*(-(o-e.origin)+i)*r,e.position+=e.velocity<0?Math.max(e.velocity,-t):Math.min(e.velocity,t),(e.origin<e.destination&&e.position>=e.destination||e.origin>=e.destination&&e.position<=e.destination)&&(n(),e.velocity=0,e.position=e.destination)}))}},Ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.01;return function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e(r,n,i,(function(e,r){e.velocity=t,e.position+=e.velocity,(e.origin<e.destination&&e.position>=e.destination||e.origin>=e.destination&&e.position<=e.destination)&&(r(),e.velocity=0,e.position=e.destination)}))}},Le=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.75,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;return function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e(i,o,a,(function(e,i){var o=-(e.position-e.destination)*t;e.velocity+=o/n,e.position+=e.velocity,e.velocity*=r,Re(e.position,e.destination,e.velocity)&&(i(),e.position=e.destination,e.velocity=0)}))}},Re=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.001;return Math.abs(e-t)<n&&Math.abs(r)<n},Be=function(e){var t=e.map((function(e){return ze(Ue(e.name,e.parameters,e.ease),e.origin,e.duration,e.delay)}));return function(e,r,n){if(!Q(e))return!1;var i=t.length;t.forEach((function(t){t(e,r,(function(){!--i&&n&&n(e)}))}))}},Ue=function(e,r,n){var i=n?o(t.EASING_FUNCTION,n):n,a=o(t.TRANSITION,e);return function(e,t,n){a.apply(void 0,[e,n,t,i].concat(W(r)))}},ze=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"50% 50% 0",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:500,n=arguments[3];return function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=arguments[2];$(i,t),Ae((function(t){e(i,o,t)}),a,r,n)}},He=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.lastAppliedStyles=null,Ge(e,t,e.root.dataset.style),e.styleObserver=X(e.root,["data-style"],(function(r){Ge(e,t,r)})),{setStyle:function(r){Ge(e,t,r)}}},Ge=function(e,r,n){if(e.lastAppliedStyles!==n){e.lastAppliedStyles=n,e.style=n?jt(r,function(e){return e.split(";").filter((function(e){return e.trim().length})).map(Oe).filter((function(e){return null!==e})).reduce((function(e,t){return e[t.property]=t.value,e}),{})}(n)):r;var i=[],a=[];e.style.transitionIn&&e.style.transitionIn.length?(i=e.style.transitionIn,a=e.style.transitionOut):e.style.transition&&"none"!==e.style.transition&&e.style.transition.forEach((function(e){var r=function(e){return o(t.TRANSITION,e.name).apply(void 0,W(e.parameters||[]))}(e);i=i.concat(r.intro),a=a.concat(r.outro)})),i&&a&&(e.transitionIn=Be(i),e.transitionOut=Be(a),e.skipToTransitionInEnd=Be(i.map(We)),e.skipToTransitionOutEnd=Be(a.map(We))),e.dirty=!0}},We=function(e){var t=Pt(e);return t.duration=0,t.delay=0,t},qe=function(e){return e[J+"BackingStorePixelRatio"]||e.backingStorePixelRatio||1},Ze=function(){return window.devicePixelRatio||1},Fe=function(e){e.getContext("2d").clearRect(0,0,e.width,e.height)},Ve={text:function(){return function(e){var t={};return Object.assign({},P(t,e,"text"),R(t),C(t,(function(e){e.root.setAttribute("data-value",e.value),function(e,t){var r=e.childNodes[0];r?t!==r.nodeValue&&(r.nodeValue=t):(r=document.createTextNode(t),e.appendChild(r))}(e.root,e.value)})),_(t))}}};n(t.VIEW,Ve);var Je=function(e,t,r){return function(e,t,r){var n={valueMapping:null};if(e&&e.dataset.valueMapping){var i=e.dataset.valueMapping;n.valueMapping=-1!==["none","indexes"].indexOf(i)?i:null}return Object.assign({},P(n,e),B(n),R(n),N(n,t),C(n,q,Z,r),_(n))}(e,t,r)},Ye=function(e,t,r){return function(e,t,r){var n={definitions:[]};return Object.assign({},P(n,e),R(n),N(n,t),C(n,F,V,r),_(n))}(e,t,r)},Xe=function(e,r,n){var i=o(t.VIEW,e);return i?i({Extension:{Type:t,getExtension:o},Utils:{toPixels:Ie,toColor:Se},Canvas:{clear:Fe,getDevicePixelRatio:Ze,getBackingStoreRatio:qe},DOM:{visible:te,create:Y,transform:K},Animation:{animate:De},Data:{request:Ut},Date:{performance:Bt},View:{rooter:P,drawer:C,updater:R,styler:He,grouper:N,resizer:B,destroyer:_}})(r,n):null},Qe=function(e,t){return"-"===e[t]&&">"===e[t+1]},$e=function(e){return"'"===e||'"'===e},Ke=function(e){return","===e},et=function(e){return"("===e},tt=function(e){return")"===e},rt=function(e){return 0!==e.trim().length},nt=function(e,t){return e.push(t.trim())},it=function(e,t){return rt(t)?(nt(e,t),""):t},ot=function(e,t){return e.length&&t.push(e.length>1?e.concat():e[0]),[]},at=function e(t,r,n){for(var i="",o=[],a=null,c=!1;t<r.length;){var u=r[t];if(et(u)){c=!1;var s=[i.trim()];u=r[t=e(t+1,r,s)],o.push(s),i=""}else{if(tt(u))return c&&i.trim().length&&(o.push([i.trim()]),i="",c=!1),rt(i)&&nt(o,i),o=ot(o,n),t+1;null!==a&&u!==a?i+=u:u===a?(o.push(i),i="",a=null):$e(u)?(i="",a=u):Qe(r,t)?(c=!0,i.trim().length&&(o.push([i.trim()]),i=""),t+=2):Ke(u)?(c&&i.trim().length&&(o.push([i.trim()]),i="",c=!1),o=ot(o,n),i=it(n,i)):i+=u,t++}}return(c&&i.trim().length||!c&&i.trim().length&&!o.length)&&(o.push([i.trim()]),i=""),ot(o,n),it(n,i),t},ct=function e(t){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]="root"!==n?"children"!==n?"repeat"!==n?t[n]:null===t[n]?null:e(t[n]):null===t[n]?null:t[n].map(e):t[n].cloneNode());return r.presenter=null,r},ut={root:null,key:null,view:null,overlay:null,presenter:null,transform:null,layout:null,style:null,repeat:null,children:null,className:null},st=function e(t){return Array.from(t).map((function(t){var r=jt(ut,{root:t});for(var n in t.dataset)t.dataset.hasOwnProperty(n)&&void 0!==r[n]&&(r[n]=t.dataset[n]);return r.repeat?(r.repeat=e(t.children).pop(),Array.from(t.children).forEach((function(e){e.parentNode.removeChild(e)}))):t.children.length&&(r.children=e(t.children)),r}))},lt=function e(t){return t.map((function(t){return"string"==typeof(t=jt(ut,t)).root?t.root=document.createElement(t.root):t.root=document.createElement("span"),t.transform&&(t.root.dataset.transform=t.transform),t.className&&(t.root.className=t.className),t.overlay&&(t.root.dataset.overlay=t.overlay),t.view?(t.root.dataset.view=t.view,t.style&&(t.root.dataset.style=t.style),t.repeat=null):(t.layout&&(t.root.dataset.layout=t.layout),t.repeat?(t.root.dataset.repeat=!0,t.repeat=e(t.children).pop()):t.children&&(t.children=e(t.children),t.children.forEach((function(e){t.root.appendChild(e.root)})))),t}))},ft=function(e){var t=!1,r=function(r,i){r.transform(i,(function(e){r.presenter.update(e)}),e),t||(t=!0,n())},n=function t(){e.baseDefinition.presenter.draw(),requestAnimationFrame(t)};return function t(n){return n.presenter=function(e,t){var r=void 0;return e.repeat?r=Ye(e.root,e.repeat,t):"string"==typeof e.view?r=Xe(e.view,e.root,e.style):function(e){return e.children&&e.children.length}(e)&&(r=Je(e.root,e.children,t)),r}(n,t),n.transform=ht(n.transform,e),r}(e.baseDefinition)},pt=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return function(t,n){!function t(i,o){r.length<=i?n(o):r[i](o,dt(t,[i+1]),e)}(0,t)}},dt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments[2];return function(){var n=Array.from(t);return Array.prototype.push.apply(n,arguments),e.apply(r,n)}},ht=function(e,t){if(!e)return function(e,t){return t(e)};if("function"==typeof e)return e;var r=function(e){var t=[];return at(0,e,t),t}("transform("+(/^[a-z]+$/.test(e)?e+"()":e)+")");return mt(r,t)},mt=function e(r,n){var i=r.map((function(r){var i=r.shift(),a=o(t.TRANSFORM,i)||function(e,t,r){t(e)},c=r.map((function(t){return Array.isArray(t)?"string"==typeof t[0]?e([t],n):e(t,n):Ot(t)}));return a.apply(void 0,W(c))}));return pt.apply(void 0,[n].concat(W(i)))},vt=function(e){var t=e.match(/[a-z]+/)[0];return{name:t,parameters:yt(e.substring(t.length))}},yt=function(e){return(e.match(/('.+?')|(".+?")|(\[.+?])|([.:\-\d\sa-zA-Z]+%?)/g)||[]).map(_t).filter((function(e){return e.length})).map(Ot)},gt=function(e){return e.substring(1,e.length-1)},bt=/^([\d]{4}-[\d]{1,2}-[\d]{1,2})/,wt=/^(true|false)$/,xt=/^[\a-zA-Z]+$/,Et=/^0[\d]+/,It=/^('|")/,St=/^-?(?:\d+)?(?:\.|0\.)?[\d]+$/,Mt=/^(\[)/,Ot=function(e){return wt.test(e)?"true"===e:Mt.test(e)?yt(gt(e)):bt.test(e)?I(e):It.test(e)?gt(e):xt.test(e)||Et.test(e)?e:St.test(e)?parseFloat(e):e},kt=function(e){var t=(e+"").match(/(-?[.\d]+)(%|ms|s|deg|cm|em|ch|ex|q|in|mm|pc|pt|px|vh|vw|vmin|vmax)?/);return{value:parseFloat(t[1]),units:t[2]}},jt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=void 0,n={};for(r in e)e.hasOwnProperty(r)&&(n[r]=void 0===t[r]?e[r]:t[r]);return n},Tt=function(e){var t=window,r=e.split(".");return r.forEach((function(e,n){t[r[n]]&&(t=t[r[n]])})),t!==window?t:null},Dt=function(e){return/^(?:[\w]+\s?:\s?[\w.]+,\s?)+(?:[\w]+\s?:\s?[\w.]+)$/g.test(e)?e.match(/(?:(\w+)\s?:\s?([\w.]+))/g).reduce((function(e,t){var r=t.split(":");return e[r[0]]=Ot(r[1]),e}),{}):Ot(e)},At=function(e){return parseInt(e,10)},_t=function(e){return e.trim()},Pt=function(e){return"object"===(void 0===e?"undefined":U(e))&&null!==e?JSON.parse(JSON.stringify(e)):e},Nt=function(e){return e.slice()},Ct=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e+Math.random()*(t-e)},Lt=function(e){for(var t=[],r=0;r<e;r++)t.push(r);return t},Rt=function(e){for(var t=e.length;t;t--){var r=Math.floor(Math.random()*t),n=[e[r],e[t-1]];e[t-1]=n[0],e[r]=n[1]}},Bt=function(){return window.performance.now()},Ut=function(e,t,r,n){var i=new XMLHttpRequest;n&&n(i),i.open("GET",e,!0),i.onload=function(){t(i.response)},r&&(i.onerror=function(){r(i,i.status)}),i.send()},zt=function(e,t){return Ht(e)?Gt(e,t):Array.isArray(e)?Wt(e,t):e===t},Ht=function(e){return e===Object(e)},Gt=function(e,t){for(var r in e)if(!t.hasOwnProperty(r)||e[r]!==t[r])return!1;return!0},Wt=function(e,t){return e.length==t.length&&e.every((function(e,r){return e===t[r]}))},qt=function(e){return Object.keys(e).map((function(e){return'"'+e+'"'})).join(", ")},Zt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.createElement("div");z(this,e),this._options=jt(e.options(),t),this._element=r,this._value=null,this._observer=null,this._viewDefinition=null,this._constants=null,this._presets=null,this._updater=null,this._didInit=null,this._didDestroy=null,this._willDestroy=null,this._didUpdate=null,this._init()}return H(e,[{key:"isRootElement",value:function(e){return this._element===e}},{key:"setConstant",value:function(e,t){this._constants[e]=t}},{key:"getConstants",value:function(){return this._constants}},{key:"getConstant",value:function(e){return this._constants[e]}},{key:"setPreset",value:function(e,t){this._presets[e]=t}},{key:"getPreset",value:function(e){return this._presets[e]}},{key:"destroy",value:function(){this._willDestroy(this),this._observer.disconnect(),this.baseDefinition.presenter.destroy(),this._didDestroy(this)}},{key:"redraw",value:function(){this.baseDefinition&&this.baseDefinition.presenter&&(this.baseDefinition.presenter.reset(),this.baseDefinition.presenter.draw(),this._updater(this.baseDefinition,this._value))}},{key:"_init",value:function(){var e=this;this._viewDefinition=this._options.view,this._willDestroy=this._options.willDestroy,this._didDestroy=this._options.didDestroy,this._didInit=this._options.didInit,this._didUpdate=this._options.didUpdate,this._value=this._options.value,this._presets=this._options.presets,this._constants=this._options.constants,this._element.classList.contains("tick")||this._element.classList.add("tick"),this._observer=X(this._element,["data-value"],(function(t){e.value=t})),this._viewDefinition.root!==this._element&&(Array.from(this._viewDefinition.root.children).forEach((function(t){e._element.appendChild(t)})),this._viewDefinition.root=this._element),this._viewDefinition.view||this._viewDefinition.children||(this._viewDefinition.view="text"),this._updater=ft(this),null!==this.value&&this._update(this.value),this._element.dataset.state="initialised",this._didInit(this,this.value)}},{key:"_update",value:function(e){this._updater(this.baseDefinition,e),this._didUpdate(this,e)}},{key:"baseDefinition",get:function(){return this._viewDefinition}},{key:"root",get:function(){return this._element}},{key:"value",get:function(){return this._value},set:function(e){this._value="string"==typeof e?Dt(e):e,this._update(e)}}],[{key:"options",value:function(){return{constants:Jt(),presets:Yt(),value:null,view:null,didInit:function(e){},didUpdate:function(e,t){},willDestroy:function(e){},didDestroy:function(e){}}}}]),e}(),Ft=function(e,t,r,n){return{label:1===e?t:r,progress:e/n,value:e}},Vt=[],Jt=function(){return Xt},Yt=function(){return Qt},Xt={YEAR_PLURAL:"Years",YEAR_SINGULAR:"Year",MONTH_PLURAL:"Months",MONTH_SINGULAR:"Month",WEEK_PLURAL:"Weeks",WEEK_SINGULAR:"Week",DAY_PLURAL:"Days",DAY_SINGULAR:"Day",HOUR_PLURAL:"Hours",HOUR_SINGULAR:"Hour",MINUTE_PLURAL:"Minutes",MINUTE_SINGULAR:"Minute",SECOND_PLURAL:"Seconds",SECOND_SINGULAR:"Second",MILLISECOND_PLURAL:"Milliseconds",MILLISECOND_SINGULAR:"Millisecond"},Qt={y:function(e,t){return Ft(e,t.YEAR_SINGULAR,t.YEAR_PLURAL,10)},M:function(e,t){return Ft(e,t.MONTH_SINGULAR,t.MONTH_PLURAL,12)},w:function(e,t){return Ft(e,t.WEEK_SINGULAR,t.WEEK_PLURAL,52)},d:function(e,t){return Ft(e,t.DAY_SINGULAR,t.DAY_PLURAL,365)},h:function(e,t){return Ft(e,t.HOUR_SINGULAR,t.HOUR_PLURAL,24)},m:function(e,t){return Ft(e,t.MINUTE_SINGULAR,t.MINUTE_PLURAL,60)},s:function(e,t){return Ft(e,t.SECOND_SINGULAR,t.SECOND_PLURAL,60)},mi:function(e,t){return Ft(e,t.MILLISECOND_SINGULAR,t.MILLISECOND_PLURAL,1e3)}},$t={value:Dt,didInit:Tt,didUpdate:Tt,didDestroy:Tt,willDestroy:Tt},Kt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=e.dataset,i={meta:{}};for(var o in n)if(n.hasOwnProperty(o)){var a=t[o],c=n[o];a&&(c=null===(c=a(c))?Pt(r[o]):c,i[o]=c)}return i},er=function(e){var t=Vt.filter((function(t){return t.isRootElement(e)}));return t?t[0]:null},tr=function(){return G({},Zt.options(),{constants:G({},Xt),presets:G({},Qt)})},rr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(e&&!Q(e)&&(t=e,e=void 0),!e||!er(e)){t&&t.view&&(t.view=lt([t.view])[0]),!t&&e&&(t=Kt(e,$t,tr())),e&&(t||(t={}),t.view||(t.view=st([e])[0]));var r=new Zt(t,e);return Vt.push(r),r}},nr=function(e){return function(){setTimeout(e,0)}},ir=function(){return Date.now()},or=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=jt({autostart:!0},r),i=null,o=null,a=null,c=0,u=null,s=!1,l=null,f=function(){return s},p=function(){return null!==o},d=function(){return document.hidden},h=function r(){var n=ir(),a=i-n,u=t+a;i=n+u,e(n-o-c+a),l=setTimeout(r,u)},m=function(){f()?b():p()||(o=ir(),setTimeout((function(){e(0)}),0),M(),d()?E():(i=ir()+t,l=setTimeout((function(){h()}),t)))},v=function(){clearTimeout(l),l=null,o=null,i=null,a=null,c=0,u=null,s=!1,S()},y=function(){v(),m()},g=function(){p()&&!d()&&(s=!0,S(),w())},b=function(){f()&&p()&&!d()&&(s=!1,M(),x())},w=function(){clearTimeout(l),a=ir(),u=i-a},x=function(){c+=ir()-a,a=null,i=ir()+u,l=setTimeout((function(){h()}),u)},E=function(){w()},I=function(){p()&&x()},S=function(){document.removeEventListener("visibilitychange",O)},M=function(){document.addEventListener("visibilitychange",O)},O=function(){d()?E():I()};return n.autostart&&m(),{start:m,stop:nr(v),reset:nr(y),pause:nr(g),resume:b}},ar=function(e){/^[\d]+/.test(e)||(e="1 "+e);var t=e.split(" ");return parseFloat(t[0])*c[t[1].toLowerCase()]},cr=function(e,t){return function(e,t){return e.setHours(t[0]||0,t[1]||0,t[2]||0,t[3]||0),e}(e,t.split(":").map(At))},ur=function(e,t){var r=t.match(/((?:[\d]+\s)?(?:hours|hour|minutes|minute|seconds|second))|((?:from|till)\s[\d]+(?::[\d]+)?(?::[\d]+)?)|(wait\s[\d]+\s[a-z]+)/g).reduce((function(e,t){return/from/.test(t)?e.from=cr(e.from,t.split(" ")[1]):/till/.test(t)?e.till=cr(e.till,t.split(" ")[1]):/wait/.test(t)?e.idle=ar(t.substr(5)):/hours|hour|minutes|minute|seconds|second/.test(t)&&(e.interval=ar(t)),e}),{idle:null,interval:null,date:null,dist:null,wait:!1,from:cr(T(e),"0"),till:cr(T(e),"23:59:59:999")});if(e<r.from||e>=r.till)return r;if(r.interval>r.till-r.from)return r;var n=e-r.from,i=r.interval-n%r.interval;return null!==r.idle&&i>=r.interval-r.idle?(r.wait=!0,r):(r.dist=i,r.date=new Date(e.getTime()+r.dist),r)},sr=function(e,t){return/januari|februari|march|april|may|june|july|august|september|october|november|december/.test(t)?function(e,t){var r=t.match(/januari|februari|march|april|may|june|july|august|september|october|november|december|[\d]+th|\dst|\dnd|first|last|at\s[\d]+(?::[\d]+)?(?::[\d]+)?/g);if(r.length>1){var n="";r.forEach((function(e){n=t.split(e)[1]||""}));var i=n.trim().match(/wait\s[\d]+\s[a-z]+/);i&&r.push(i[0])}var o=r.reduce((function(t,r){return/([\d]+th|\dst|\dnd|first|last)/.test(r)&&(t.day=/^[\d]/.test(r)?parseInt(r,10):"first"===r?1:r),/^at/.test(r)?t.time=cr(T(e),r.substr(3)):/wait/.test(r)?t.idle=ar(r.substr(5)):/^[\a-zA-Z]+$/.test(r)&&(t.month=r),t}),{idle:null,day:null,month:null,time:null,date:null,dist:null,wait:!1});if(o.time){o.time.setDate(1),o.time=v(o.time,o.month),o.time=m(o.time,o.day);var a=o.time-e,c=0;if(a<0&&(c=a,o.time.setFullYear(o.time.getFullYear()+1),a=o.time-e),null!==o.idle&&c+o.idle>0)return o.wait=!0,o;o.dist=a}else{o.time=T(e),o.time.setDate(1),o.time=v(o.time,o.month),o.time=m(o.time,o.day);var u=ur(o.time,t);if(u.wait)return o;o.time=T(w(e,o.time)&&u.date?u.date:u.from);var s=o.time-e;s<0&&(o.time=T(u.from),o.time.setFullYear(o.time.getFullYear()+1),s=o.time-e),o.dist=s}return o.date=T(o.time),o}(e,t):/month/.test(t)?function(e,t){var r=t.match(/[\d]+th|\dst|\dnd|first|last|at\s[\d]+(?::[\d]+)?(?::[\d]+)?/g);if(r.length>1){var n="";r.forEach((function(e){n=t.split(e)[1]||""}));var i=n.trim().match(/wait\s[\d]+\s[a-z]+/);i&&r.push(i[0])}var o=r.reduce((function(t,r){return/([\d]+th|\dst|\dnd|first|last)/.test(r)&&(t.day=/^[\d]/.test(r)?parseInt(r,10):"first"===r?1:r),/^at/.test(r)?t.time=cr(T(e),r.substr(3)):/wait/.test(r)&&(t.idle=ar(r.substr(5))),t}),{idle:null,day:null,time:null,date:null,dist:null,wait:!1});if(o.time){o.time=m(o.time,o.day);var a=o.time-e,c=0;if(a<0&&(c=a,o.time.setDate(1),o.time.setMonth(o.time.getMonth()+1),m(o.time,o.day),a=o.time-e),null!==o.idle&&c+o.idle>0)return o.wait=!0,o;o.dist=a}else{o.time=m(T(e),o.day);var u=ur(o.time,t);if(u.wait)return o;o.time=T(w(e,o.time)&&u.date?u.date:u.from);var s=o.time-e;s<0&&(o.time=T(u.from),o.time.setDate(1),o.time.setMonth(o.time.getMonth()+1),m(o.time,o.day),s=o.time-e),o.dist=s}return o.date=T(o.time),o}(e,t):/(?:mon|tues|wednes|thurs|fri|satur|sun)day/.test(t)?function(e,t){var r=t.match(/(?:mon|tues|wednes|thurs|fri|satur|sun)day|at\s[\d]+(?::[\d]+)?(?::[\d]+)?/g);if(r.length>1){var n="";r.forEach((function(e){n=t.split(e)[1]||""}));var i=n.trim().match(/wait\s[\d]+\s[a-z]+/);i&&r.push(i[0])}var o=r.reduce((function(t,r){return/(?:mon|tues|wednes|thurs|fri|satur|sun)day/.test(r)&&(t.day=f[function(e){return e.charAt(0).toUpperCase()+e.slice(1)}(r)]),/^at/.test(r)?t.time=cr(T(e),r.substr(3)):/wait/.test(r)&&(t.idle=ar(r.substr(5))),t}),{idle:null,day:null,time:null,date:null,dist:null,wait:!1});if(o.time){o.time=h(o.time,o.day);var a=o.time-e;if(a<0&&(o.time.setDate(o.time.getDate()+7),a=o.time-e),null!==o.idle&&a>=c.Week-o.idle)return o.wait=!0,o;o.dist=a}else{o.time=h(T(e),o.day);var u=ur(o.time,t);if(u.wait)return o;o.time=T(w(e,o.time)&&u.date?u.date:u.from);var s=o.time-e;s<0&&o.time.setDate(o.time.getDate()+7),o.dist=s}return o.date=T(o.time),o}(e,t):/day at/.test(t)||/^at /.test(t)?function(e,t){var r=t.match(/([\d]+(?::[\d]+)?(?::[\d]+)?)|(wait\s[\d]+\s[a-z]+)/g).reduce((function(t,r){return/^[\d]/.test(r)?t.time=cr(T(e),r):/wait/.test(r)&&(t.idle=ar(r.substr(5))),t}),{idle:null,time:null,date:null,wait:!1,dist:null}),n=r.time-e;return n<0&&(r.time.setDate(r.time.getDate()+1),n=r.time-e),null!==r.idle&&n>=c.Day-r.idle?(r.wait=!0,r):(r.dist=n,r.date=T(r.time),r)}(e,t):/hours|hour|minutes|minute|seconds|second/.test(t)?ur(e,t):null},lr=function(e,t){for(var r=t.split(",").map(_t).map((function(t){return sr(e,t)})),n=null,i=0;i<r.length;i++){var o=r[i];if(null===n&&o.wait)return null;(null===n||null===n.dist&&null!==o.dist||null!==o.dist&&o.dist<n.dist)&&(n=o)}return n.date},fr=function(e,t){!0!==e?"string"!=typeof e?setTimeout((function(){t(0)}),0):setTimeout((function(){t(I(e).getTime()-j().getTime())}),0):function(e){var t=new XMLHttpRequest,r=Date.now();t.open("HEAD",window.location+"?noCache="+r),t.setRequestHeader("Content-Type","text/html"),t.setRequestHeader("Cache-Control","no-cache"),t.onload=function(){var n=.5*(r-Date.now()),i=new Date(t.getResponseHeader("Date"));e(new Date(i.getTime()+n))},t.send()}((function(e){t(e.getTime()-j().getTime())}))},pr={format:["d","h","m","s"],cascade:!0,server:null,interval:1e3},dr=function(e){return G({complete:!1,offset:null,value:null,timer:null,onload:function(){},onupdate:function(e){}},e)},hr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("number"!=typeof e)throw'Can\'t start counter, the "milliseconds" parameter is required';var r=(t=jt({units:"seconds",target:0,amount:1e3,interval:1e3},t)).target,n=e,i=dr({target:r,onended:function(){}});return setTimeout((function(){i.timer=or((function(o){if((n=e-o/t.interval*t.amount)<=r)return i.value=t.target,i.onupdate(i.value/c[t.units]),i.timer.stop(),void i.onended();i.value=n,i.onupdate(i.value/c[t.units])}),t.interval,{autostart:!1}),i.complete=!0,i.onload(),i.timer.start()}),0),i},mr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===e)throw'Can\'t start counter, the "due" parameter is required';t=jt(pr,t);var r=d(e)?e:I(e),n=dr({due:T(r),onended:function(){}});return fr(t.server,(function(e){n.offset=e;n.timer=or((function(){var i=g(e);if(r-i<=0)return n.value=new Array(t.format.length).fill(0),n.onupdate(n.value),n.timer.stop(),void n.onended();n.value=O(i,r,t.format,t.cascade),n.onupdate(n.value)}),t.interval,{autostart:!1}),n.complete=!0,n.onload(),n.timer.start()})),n},vr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return function(r,n){return n((parseFloat(r)-e)/(t-e))}},yr=function(e,t,r,n){t[e]=r[e],n(Nt(t))},gr={ascii:function(){return function(e,t){return t((e+"").charCodeAt(0))}},char:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e?new RegExp("[^"+e+"]","g"):null;return function(e,n){var i=String.fromCharCode(e);r&&(i=i.replace(r,t)),n(i)}},tween:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ease-linear",n=arguments[2];e=he(e);var i=o(t.EASING_FUNCTION,r),a=null,c=null;return function(t,r){if(t=parseFloat(t),a&&a(),null===c||t===c)return c=t,void r(t);var o=c,u=t-o;a=De((function(e){r(o+e*u)}),(function(){a=null}),e,i,n),c=t}},value:function(e){return function(t,r){return r(e)}},input:function(){return function(e,t){return t(e)}},rotate:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e,r){var n=Array.isArray(e)?e:[e],i=[],o=t.length;n.forEach((function(e,a){t[a%o](e,(function(e){i[a]=e,a===n.length-1&&r(i)}))}))}},map:function(e){return function(t,r){var n=[],i=t;i.forEach((function(t,o){e(t,(function(e){n[o]=e,o===i.length-1&&r(n.concat())}))}))}},transform:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e,r){var n=[],i=e;t.forEach((function(e,o){e(i,(function(e){n[o]=e,o===t.length-1&&r(1===n.length?n[0]:n)}))}))}},upper:function(){return function(e,t){return t((e+"").toUpperCase())}},lower:function(){return function(e,t){return t((e+"").toLowerCase())}},abs:function(){return function(e,t){return t(Math.abs(e))}},add:function(e){return function(t,r){return r(t+e)}},subtract:function(e){return function(t,r){return r(t-e)}},modulus:function(e){return function(t,r){return r(t%e)}},pad:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"left";return function(r,n){return n(e.length>(""+r).length?"left"===t?(""+e+r).slice(-e.length):(""+r+e).substring(0,e.length):r)}},number:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;return function(n,i){i((n<0?"-":"")+parseFloat(Math.abs(n)).toFixed(r).replace(/./g,(function(r,n,i){return"."===r?e:n&&(i.length-n)%3==0?t+r:r})))}},replace:function(e,t){return function(r,n){return n((r+"").replace(new RegExp("."===e?"\\"+e:e,"g"),t))}},round:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(t,r){return r(e?t.toFixed(e):Math.round(t))}},ceil:function(){return function(e,t){return t(Math.ceil(e))}},floor:function(){return function(e,t){return t(Math.floor(e))}},fraction:vr,percentage:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,r=vr(e,t);return function(e,t){r(e,(function(e){t(100*e)}))}},multiply:function(e){return function(t,r){return r(t*e)}},divide:function(e){return function(t,r){return r(t/e)}},split:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return function(t,r){return r((t+"").split(e))}},format:function(e){return function(t,r){return r(e.replace(/\$0/gi,t))}},plural:function(e,t){return function(r,n){return n(1===r?e:t)}},limit:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return function(r,n){return n(Math.min(Math.max(r,e),t))}},reverse:function(){return function(e,t){return t(Array.isArray(e)?e.reverse():(e+"").split("").reverse().join(""))}},arrive:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=null,o=null,a=null;return function(c,u){return c=parseFloat(c),null===i?(i=c,void u(c)):(r&&null!==o&&i===c&&(a.cancel(),a=null),n&&null!==o&&c-a.getPosition()>1?(a.cancel(),a=null,o=null,i=c,void u(c)):(a?a.update(u,c):(a=Pe("arrive",e,t)).update(u,i,c),void(o=c)))}},spring:function(e,t,r){var n=null,i=null;return function(o,a){if(o=parseFloat(o),null===n)return n=o,void a(o);i?i.update(a,o):(i=Pe("spring",e,t,r)).update(a,n,o)}},delay:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rtl",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:50,n=null;return function(i,o){if(!n)return n=Nt(i),void o(Nt(n));n="rtl"===e?n.slice(n.length-i.length,n.length):n.slice(0,i.length);var a=Lt(i.length);"random"===e&&Rt(a),"rtl"===e&&a.reverse();!function e(){yr(a.shift(),n,i,o),a.length&&setTimeout(e,Ct(t,r))}()}},step:function(e){var t=null,r=null,n=null;return function(i,o){if(i=parseFloat(i),null===t)return t=i,void o(i);null!==r&&t===i&&(n.cancel(),n=null),n?n.update(o,i):(n=Pe("step",e)).update(o,t,i),r=i}},keys:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e,r){var n={};e.forEach((function(e,r){n[t[r]]=e})),r(n)}},duration:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e,r){return r(M(e,t))}},substring:function(e,t){return function(r,n){return n((r+"").substring(e,t))}},preset:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e,r,n){return r(e.map((function(e,r){return n.getPreset(t[r])(e,n.getConstants(),n)})))}}};n(t.TRANSFORM,gr);var br={x:"translateX",y:"translateY",z:"translateZ"},wr={x:"rotateX",y:"rotateY",z:"rotateZ"},xr={both:"scale",x:"scaleX",y:"scaleY"},Er=function(e,t,r){return e+(t-e)*r},Ir={fade:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:je,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1;if(r<0){var a=[o,i];i=a[0],o=a[1]}e.style.opacity=Er(i,o,n(t))},move:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:je,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"0",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"100%",a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"y";if(r<0){var c=[o,i];i=c[0],o=c[1]}var u=ie(i,kt),s=ie(o,kt);K(e,br[a],Er(u.value,s.value,n(t)),u.units||s.units)},rotate:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:je,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"0",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"90deg",a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"x";if(r<0){var c=[o,i];i=c[0],o=c[1]}var u=ie(i,kt),s=ie(o,kt);K(e,wr[a],Er(u.value,s.value,n(t)),u.units||s.units)},scale:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:je,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"both";if(r<0){var c=[o,i];i=c[0],o=c[1]}K(e,xr[a],Er(i,o,n(t)))},crossfade:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments[1],r=arguments[2];return{intro:[{name:"fade",parameters:[0,1],duration:1e3*e,delay:he(t)}],outro:[{name:"fade",parameters:[1,0],duration:1e3*e,delay:he(r)}]}},swap:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments[3],i=arguments[4];return{intro:[{name:"move",parameters:[""+100*-t,"0%",e],duration:1e3*r,delay:he(n)}],outro:[{name:"move",parameters:["0%",""+100*t,e],duration:1e3*r,delay:he(i)}]}},revolve:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments[3],i=arguments[4];return{intro:[{name:"rotate",parameters:[90*-t+"deg","0deg",e],duration:1e3*r,delay:he(n)}],outro:[{name:"rotate",parameters:["0deg",90*t+"deg",e],duration:1e3*r,delay:he(i)}]}},zoom:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments[2],n=arguments[3];return{intro:[{name:"scale",parameters:[e,1],duration:1e3*t,delay:he(r)}],outro:[{name:"scale",parameters:[1,e],duration:1e3*t,delay:he(n)}]}}};n(t.TRANSITION,Ir);var Sr={supported:function(){var e=window;if(void 0===e)return!1;var t=e.CSS&&e.CSS.supports,r=!!e.MSInputMethodContext&&!!document.documentMode,n=t&&CSS.supports("transform","translateX(0)");return r||t&&n&&!!["MutationObserver","requestAnimationFrame"].filter((function(t){return t in e})).length}(),options:{setConstant:function(e,t){Xt[e]=t},setPreset:function(e,t){Qt[e]=t}},helper:{interval:or,date:function(e){return e?I(e):j()},duration:k},data:{request:Ut,poll:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6e4;return or((function(){Ut(e,t)}),r)}},DOM:{create:rr,destroy:function(e){var t=function(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r].isRootElement(t))return r;return-1}(Vt,e);return!(t<0)&&(Vt[t].destroy(),Vt.splice(t,1),!0)},parse:function(e){var t,r=void 0,n=void 0,i=[];for(n=(t=e.querySelectorAll(".tick:not([data-state])")).length;n--;)r=t[n],i.push(rr(r));return i},find:er},count:{down:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if("number"==typeof t[0]&&"string"==typeof t[1]){var n=t[0],i=t[1].toLowerCase();return t.shift(),t[0]=k(n,i),t[1]=t[1]||{},t[1].units=i,hr.apply(void 0,t)}return"string"==typeof t[0]||d(t[0])?mr.apply(void 0,t):null},up:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===e)throw'Can\'t start counter, the "since" parameter is required';t=jt(pr,t);var r=d(e)?e:I(e),n=dr({since:T(r)});return fr(t.server,(function(e){n.offset=e;n.timer=or((function(){var i=g(e);n.value=O(r,i,t.format,t.cascade),n.onupdate(n.value)}),t.interval,{autostart:!1}),n.complete=!0,n.onload(),n.timer.start()})),n},schedule:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof e)throw'Can\'t start scheduler, "schedule" is a required parameter';var r=(t=jt(G({},pr,{timezone:null}),t)).timezone?y(t.timezone):null,n=dr({waiting:null,nextScheduledDate:null,previouslyScheduledDate:null,onrepeat:function(e,t){},onresume:function(e){},onwait:function(e){}}),i=void 0,o=null;return fr(t.server,(function(a){n.offset=a;n.timer=or((function(){var c=g(a);if(null!==r&&(c=b(c,r)),o=lr(c,e),n.waiting=null===o,n.waiting)return void 0===i&&(i=null),n.value=new Array(t.format.length).fill(0),n.nextScheduledDate&&(n.previouslyScheduledDate=T(n.nextScheduledDate)),n.nextScheduledDate=null===o?null:T(o),void n.onwait(n.previouslyScheduledDate?T(n.previouslyScheduledDate):null);n.nextScheduledDate=T(o),null===i&&n.onresume(T(o)),(null===i||void 0!==i&&!x(i,o))&&(n.onrepeat(T(o),i?T(i):null),i&&(n.previouslyScheduledDate=T(i))),i=T(o),n.value=O(c,o,t.format,t.cascade),n.onupdate(n.value)}),t.interval,{autostart:!1}),n.complete=!0,n.onload(),n.timer.start()})),n}},plugin:{add:function(e,t,r){if("function"==typeof e){var n=e;return i(n.identifier.type,n.identifier.name,n)}return i(e,t,r)}}},Mr=function(e){if(!t.hasOwnProperty(e))return"continue";Sr.plugin[function(e){return e.replace(/-./g,(function(e){return e.charAt(1).toUpperCase()}))}("add-"+t[e])]=function(r,n){i(t[e],r,n)}};for(var Or in t)Mr(Or);return e.exports=Sr,e.exports}():null),w="undefined"!=typeof window?function(){if(!e)var e={};!function(){function e(e){this.value=e}function t(t){var r,n;function i(r,n){try{var a=t[r](n),c=a.value;c instanceof e?Promise.resolve(c.value).then((function(e){i("next",e)}),(function(e){i("throw",e)})):o(a.done?"return":"normal",a.value)}catch(u){o("throw",u)}}function o(e,t){switch(e){case"return":r.resolve({value:t,done:!0});break;case"throw":r.reject(t);break;default:r.resolve({value:t,done:!1})}(r=r.next)?i(r.key,r.arg):n=null}this._invoke=function(e,t){return new Promise((function(o,a){var c={key:e,arg:t,resolve:o,reject:a,next:null};n?n=n.next=c:(r=n=c,i(e,t))}))},"function"!=typeof t.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}();var t=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();return e.exports=function(e){var r=e.DOM,n=(e.Animation.animate,e.Extension),i=e.Date.performance,o=e.View,a=o.rooter,c=o.destroyer,u=o.drawer,s=o.updater,l=o.styler,f=n.getExtension(n.Type.EASING_FUNCTION,"ease-out-cubic"),p=n.getExtension(n.Type.EASING_FUNCTION,"ease-out-sine"),d=function(e){if(e.isInitialValue()){e.root.textContent="",e.spacer=r.create("span","tick-flip-spacer"),e.root.appendChild(e.spacer);var t=r.create("span","tick-flip-shadow-top tick-flip-shadow tick-flip-front"),o=r.create("span","tick-flip-shadow-bottom tick-flip-shadow tick-flip-back");e.root.appendChild(t),e.root.appendChild(o),e.shadowCard=r.create("span","tick-flip-card-shadow"),e.root.appendChild(e.shadowCard)}if(e.spacer.textContent=e.value,e.isInitialValue()||r.visible(e.root)){var a=e.cards[e.cards.length-1];if(a&&(a.waiting=!1,a.offset=i(),a.back=e.value),e.isInitialValue()){var c=new h;c.back=e.value,c.offset=null,c.progress=1,e.root.insertBefore(c.root,e.root.firstChild),e.cards.push(c)}var u=new h;if(u.offset=null,u.progress=0,u.visual_progress=0,u.waiting=!0,u.front=e.value,u.rotate(0),e.root.insertBefore(u.root,e.root.firstChild),e.cards.push(u),!e.animating){e.animating=!0;var s=n.getExtension(n.Type.EASING_FUNCTION,e.style.flipEasing);!function t(){var n=e.cards.filter((function(e){return!e.done&&!e.waiting}));if(0!==n.length){n.forEach((function(t){null!==t.offset&&(t.progress=(i()-t.offset)/e.style.flipDuration),t.progress>=1&&(t.progress=1,t.done=!0),t.visual_progress=s(t.progress)}));n.reverse().forEach((function(e,t){var r=n[t-1];r&&e.visual_progress<=r.visual_progress&&(e.visual_progress=r.visual_progress+.01)})),n.reverse(),e.cards.forEach((function(t,r){var n=1-2*Math.abs(t.visual_progress-.5),i=1-(t.visual_progress-.5)/.5;t.shadowFront=n,t.highlightBack=i;var o=e.cards[r+1];o&&t.visual_progress>.5&&t.visual_progress>0&&(t.shadowBack=f(o.visual_progress))})),n.forEach((function(e,t){var r=e.visual_progress;r>.5&&!e.done?e.root.style.zIndex=10+t:e.root.style.removeProperty("z-index"),e.rotate(-180*r)}));var o=0,a=1;n.forEach((function(e){var t=Math.abs(e.visual_progress-.5);t<a&&(a=t,o=e.visual_progress)}));var c=p(o<.5?o/.5:(1-o)/.5);e.shadowCard.style.opacity=c,r.transform(e.shadowCard,"scaleY",c),e.cards.filter((function(e){return e.done})).slice(0,-1).forEach((function(t){e.cards=e.cards.filter((function(e){return e!==t})),t.root.parentNode&&e.root.removeChild(t.root)})),requestAnimationFrame(t)}else e.animating=!1}()}}else e.cards.forEach((function(t){t.back=e.value,t.front=e.value}))},h=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._root=r.create("span","tick-flip-card");var t=r.create("span","tick-flip-panel-front tick-flip-front tick-flip-panel"),n=r.create("span","tick-flip-panel-front-text"),i=r.create("span","tick-flip-panel-text-wrapper");n.appendChild(i);var o=r.create("span","tick-flip-panel-front-shadow");t.appendChild(n),t.appendChild(o);var a=r.create("span","tick-flip-panel-back tick-flip-back tick-flip-panel"),c=r.create("span","tick-flip-panel-back-text"),u=r.create("span","tick-flip-panel-text-wrapper");c.appendChild(u);var s=r.create("span","tick-flip-panel-back-highlight"),l=r.create("span","tick-flip-panel-back-shadow");a.appendChild(c),a.appendChild(s),a.appendChild(l),this._root.appendChild(t),this._root.appendChild(a),this._front=t,this._back=a,this._shadowFront=o,this._shadowBack=l,this._highlightBack=s,this._textBack=u,this._textFront=i,this._frontValue=null,this._backValue=null}return t(e,[{key:"rotate",value:function(e){this._front.style.transform="rotateX("+e+"deg)",this._back.style.transform="rotateX("+(-180+e)+"deg)"}},{key:"root",get:function(){return this._root}},{key:"front",set:function(e){this._frontValue=e,this._textFront.textContent=e},get:function(){return this._frontValue}},{key:"back",set:function(e){this._backValue=e,this._textBack.textContent=e},get:function(){return this._backValue}},{key:"highlightBack",set:function(e){this._highlightBack.style.opacity=e}},{key:"shadowBack",set:function(e){this._shadowBack.style.opacity=e}},{key:"shadowFront",set:function(e){this._shadowFront.style.opacity=e}}]),e}();return function(e){var t={cards:[],lastCard:null,initialCard:null,shadowAbove:null,shadowBelow:null,shadowCard:null,currentValue:null,lastValue:null,front:null,back:null};return Object.assign({},a(t,e,"flip"),s(t),l(t,{flipDuration:800,flipEasing:"ease-out-bounce"}),u(t,d),c(t))}},e.exports.identifier={name:"flip",type:"view"},e.exports}():null;b.plugin.add(w);var x=b;class E extends o.Component{constructor(e){super(e),this._tickRef=o.createRef()}componentDidMount(){this._tickInstance=x.DOM.create(this._tickRef.current,{value:this.props.value})}componentDidUpdate(){this._tickInstance&&(this._tickInstance.value=this.props.value)}componentWillUnmount(){this._tickInstance&&x.DOM.destroy(this._tickRef.current)}render(){return o.createElement("div",{ref:this._tickRef,className:"tick"},o.createElement("div",{"data-repeat":"true","aria-hidden":"true"},o.createElement("span",{"data-view":"flip"},"Tick")))}}class I extends o.Component{constructor(e){super(e);var t=0;t+=e.countdown.seconds,t+=60*e.countdown.minutes,t+=60*e.countdown.hours*60,t+=24*e.countdown.days*60*60;var r=setInterval(this.updateCountdown.bind(this),1e3);this.state={start:Date.now(),interval:r,total:t,timeLeft:t}}updateCountdown(){var e=Date.now(),t=Math.round((e-this.state.start)/1e3);this.setState({timeLeft:this.state.total-t})}render(){var{timeLeft:e}=this.state,t=e<=0,r=0,n=0,i=0,a=0;return t||(r=Math.floor(e/86400),n=Math.floor(e%86400/3600),i=Math.floor(e%3600/60),a=Math.floor(e%60)),o.createElement(o.Fragment,null,t?o.createElement("p",{style:{color:"darkred"}},(0,y.S)("You just missed the deadline!")):o.createElement("div",{className:"wprm-admin-dashboard-marketing-countdown"},o.createElement("div",{className:"wprm-admin-dashboard-marketing-countdown-unit"},o.createElement(E,{value:r})," ",1===r?(0,y.S)("day"):(0,y.S)("days")),o.createElement("div",{className:"wprm-admin-dashboard-marketing-countdown-unit"},o.createElement(E,{value:String(n).padStart(2,"0")})," ",1===n?(0,y.S)("hour"):(0,y.S)("hours")),o.createElement("div",{className:"wprm-admin-dashboard-marketing-countdown-unit"},o.createElement(E,{value:String(i).padStart(2,"0")})," ",1===i?(0,y.S)("minute"):(0,y.S)("minutes")),o.createElement("div",{className:"wprm-admin-dashboard-marketing-countdown-unit"},o.createElement(E,{value:String(a).padStart(2,"0")})," ",1===a?(0,y.S)("second"):(0,y.S)("seconds")),o.createElement("div",{className:"wprm-admin-dashboard-marketing-countdown-label"},(0,y.S)("left to grab the discount!"))))}}class S extends o.Component{render(){var{campaign:e}=this.props;return e.hasOwnProperty("dismissed")&&e.dismissed?null:o.createElement("div",{className:"wprm-admin-dashboard-marketing"},o.createElement(g,{title:e.page_title},o.createElement("p",{dangerouslySetInnerHTML:{__html:e.page_text}}),o.createElement(I,{countdown:e.countdown}),o.createElement("div",{class:"wprm-admin-dashboard-marketing-actions"},o.createElement("a",{className:"button button-primary",href:e.url,target:"_blank"},(0,y.S)("Learn more about the sale")," 🎉"),o.createElement("a",{href:"#",class:"wprm-admin-dashboard-marketing-actions-remove",onClick:()=>{v.Z.general.dismissNotice("dashboard_".concat(e.id)),e.dismissed=!0,this.forceUpdate()}},(0,y.S)("Remove Notice")))))}}var M=e=>o.createElement("div",{className:"wprm-admin-dashboard-block-footer-container"},e.hasOwnProperty("title")&&o.createElement("div",{className:"wprm-admin-dashboard-block-footer-title"},e.title),o.createElement("div",{className:"wprm-admin-dashboard-block-footer"},e.children)),O=r(67127),k=e=>o.createElement("label",{className:"wprm-admin-dashboard-toggle-container"},o.createElement(O.Z,{className:"wprm-admin-dashboard-toggle",checked:e.value,onChange:t=>e.onChange(t.target.checked)}),o.createElement("span",{className:"wprm-admin-dashboard-toggle-label"},e.children)),j=e=>o.createElement(o.Fragment,null,o.createElement("p",null,(0,y.S)("Track different visitor actions related to recipes.")," ",(0,y.S)("Find out what recipes visitors are interacting with, what affiliate links are getting clicked on, and more...")),o.createElement(k,{value:!1,onChange:()=>{e.onEnable()}},(0,y.S)("Enable Analytics"))),T=r(34133),D=r(71629),A=r.n(D),_=r(64403),P=r.n(_),N=r(81668),C=r(63774),L=r.n(C),R=r(86901),B=r.n(R),U=r(81027),z=r.n(U),H=r(10442),G=r.n(H),W=r(9338),q=r.n(W),Z=function(e){return 0===e?0:e>0?1:-1},F=function(e){return q()(e)&&e.indexOf("%")===e.length-1},V=function(e){return G()(e)&&!z()(e)},J=function(e){return V(e)||q()(e)},Y=0,X=function(e){var t=++Y;return"".concat(e||"").concat(t)},Q=function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!V(e)&&!q()(e))return n;if(F(e)){var o=e.indexOf("%");r=t*parseFloat(e.slice(0,o))/100}else r=+e;return z()(r)&&(r=n),i&&r>t&&(r=t),r},$=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},K=function(e,t){return V(e)&&V(t)?function(r){return e+r*(t-e)}:function(){return t}};function ee(e,t,r){return e&&e.length?e.find((function(e){return e&&("function"==typeof t?t(e):L()(e,t))===r})):null}var te=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i]};function re(e){return(re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ne(){return(ne=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ie(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function oe(e,t){return(oe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ae(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ue(e);if(t){var i=ue(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ce(this,r)}}function ce(e,t){return!t||"object"!==re(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ue(e){return(ue=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var se=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&oe(e,t)}(a,e);var t,r,n,i=ae(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).handleResize=void 0,t.mounted=void 0,t.containerRef=void 0,t.updateDimensionsImmediate=function(){if(t.mounted){var e=t.getContainerSize();if(e){var r=t.state,n=r.containerWidth,i=r.containerHeight,o=e.containerWidth,a=e.containerHeight;o===n&&a===i||t.setState({containerWidth:o,containerHeight:a})}}},t.state={containerWidth:-1,containerHeight:-1},t.handleResize=e.debounce>0?A()(t.updateDimensionsImmediate,e.debounce):t.updateDimensionsImmediate,t.containerRef=o.createRef(),t}return t=a,(r=[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.getContainerSize();e&&this.setState(e)}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"getContainerSize",value:function(){return this.containerRef.current?{containerWidth:this.containerRef.current.clientWidth,containerHeight:this.containerRef.current.clientHeight}:null}},{key:"renderChart",value:function(){var e=this.state,t=e.containerWidth,r=e.containerHeight;if(t<0||r<0)return null;var n=this.props,i=n.aspect,a=n.width,c=n.height,u=n.minWidth,s=n.minHeight,l=n.maxHeight,f=n.children;te(F(a)||F(c),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",a,c),te(!i||i>0,"The aspect(%s) must be greater than zero.",i);var p=F(a)?t:a,d=F(c)?r:c;return i&&i>0&&(p?d=p/i:d&&(p=d*i),l&&d>l&&(d=l)),te(p>0||d>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",p,d,a,c,u,s,i),o.cloneElement(f,{width:p,height:d})}},{key:"render",value:function(){var e=this.props,t=e.minWidth,r=e.minHeight,n=e.width,i=e.height,a=e.maxHeight,c=e.id,u=e.className,s={width:n,height:i,minWidth:t,minHeight:r,maxHeight:a};return o.createElement(N.ZP,{handleWidth:!0,handleHeight:!0,onResize:this.handleResize,targetRef:this.containerRef},o.createElement("div",ne({},null!=c?{id:"".concat(c)}:{},{className:P()("recharts-responsive-container",u),style:s,ref:this.containerRef}),this.renderChart()))}}])&&ie(t.prototype,r),n&&ie(t,n),a}(o.Component);se.defaultProps={width:"100%",height:"100%",debounce:0};var le=r(13485),fe=r.n(le),pe=r(77106),de=r.n(pe),he=r(46423),me=r.n(he),ve=r(73804),ye=r.n(ve),ge=r(5251),be=r.n(ge),we=r(6934),xe=r.n(we),Ee=r(14847),Ie=r.n(Ee),Se=r(47563),Me=r.n(Se),Oe=r(11006),ke=r.n(Oe);function je(e){return(je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Te=["viewBox","children"],De=["className","color","height","id","lang","max","media","method","min","name","style","target","type","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Ae=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],_e=function(e,t,r){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var n=e;if((0,o.isValidElement)(e)&&(n=e.props),!ke()(n))return null;var i={};return Object.keys(n).forEach((function(e){(De.includes(e)||r&&Te.includes(e)||t&&Ae.includes(e))&&(i[e]=n[e])})),i},Pe=function(e,t){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if((0,o.isValidElement)(e)&&(r=e.props),!ke()(r))return null;var n={};return Object.keys(r).forEach((function(e){Ae.includes(e)&&(n[e]=t||function(t){return r[e](r,t)})})),n},Ne=function(e,t,r){if(!ke()(e)||"object"!==je(e))return null;var n=null;return Object.keys(e).forEach((function(i){var o=e[i];Ae.includes(i)&&"function"==typeof o&&(n||(n={}),n[i]=function(e,t,r){return function(n){return e(t,r,n),null}}(o,t,r))})),n};function Ce(){return(Ce=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Le(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Re(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,c=e.style,u=Le(e,["children","width","height","viewBox","className","style"]),s=i||{width:r,height:n,x:0,y:0},l=P()("recharts-surface",a);return o.createElement("svg",Ce({},_e(u,!0,!0),{className:l,width:r,height:n,style:c,viewBox:"".concat(s.x," ").concat(s.y," ").concat(s.width," ").concat(s.height),version:"1.1"}),t)}function Be(){return(Be=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Ue(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function ze(e){var t=e.children,r=e.className,n=Ue(e,["children","className"]),i=P()("recharts-layer",r);return o.createElement("g",Be({className:i},_e(n,!0)),t)}var He=r(36766),Ge=r.n(He),We=r(2652),qe=r.n(We),Ze=r(44287),Fe=r(61666),Ve=r.n(Fe);function Je(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1,n=function n(i){r<0&&(r=i),i-r>t?(e(i),r=-1):Ve()(n)};Ve()(n)}function Ye(e){return(Ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xe(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Qe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qe(e,t)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $e(){var e=function(){return null},t=!1,r=function r(n){if(!t){if(Array.isArray(n)){if(!n.length)return;var i=Xe(n),o=i[0],a=i.slice(1);return"number"==typeof o?void Je(r.bind(null,a),o):(r(o),void Je(r.bind(null,a)))}"object"===Ye(n)&&e(n),"function"==typeof n&&n()}};return{stop:function(){t=!0},start:function(e){t=!1,r(e)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}}function Ke(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function et(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(r),!0).forEach((function(t){tt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ke(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function tt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var rt=["Webkit","Moz","O","ms"],nt=["-webkit-","-moz-","-o-","-ms-"],it=["transform","transformOrigin","transition"],ot=function(e){return e},at=function(e,t){return Object.keys(t).reduce((function(r,n){return et(et({},r),{},tt({},n,e(n,t[n])))}),{})},ct=function(e){return Object.keys(e).reduce((function(e,t){return et(et({},e),function(e,t){if(-1===it.indexOf(e))return tt({},e,t);var r="transition"===e,n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),i=t;return rt.reduce((function(e,o,a){return r&&(i=t.replace(/(transform|transform-origin)/gim,"".concat(nt[a],"$1"))),et(et({},e),{},tt({},o+n,i))}),{})}(t,e[t]))}),e)},ut=function(e,t,r){return e.map((function(e){return"".concat((n=e,n.replace(/([A-Z])/g,(function(e){return"-".concat(e.toLowerCase())})))," ").concat(t,"ms ").concat(r);var n})).join(",")};function st(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(u){i=!0,o=u}finally{try{n||null==c.return||c.return()}finally{if(i)throw o}}return r}(e,t)||ft(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lt(e){return function(e){if(Array.isArray(e))return pt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||ft(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ft(e,t){if(e){if("string"==typeof e)return pt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?pt(e,t):void 0}}function pt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var dt=1e-4,ht=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},mt=function(e,t){return e.map((function(e,r){return e*Math.pow(t,r)})).reduce((function(e,t){return e+t}))},vt=function(e,t){return function(r){var n=ht(e,t);return mt(n,r)}},yt=function(e,t){return function(r){var n=ht(e,t),i=[].concat(lt(n.map((function(e,t){return e*t})).slice(1)),[0]);return mt(i,r)}},gt=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],i=t[1],o=t[2],a=t[3];if(1===t.length)switch(t[0]){case"linear":n=0,i=0,o=1,a=1;break;case"ease":n=.25,i=.1,o=.25,a=1;break;case"ease-in":n=.42,i=0,o=1,a=1;break;case"ease-out":n=.42,i=0,o=.58,a=1;break;case"ease-in-out":n=0,i=0,o=.58,a=1;break;default:var c=t[0].split("(");if("cubic-bezier"===c[0]&&4===c[1].split(")")[0].split(",").length){var u=c[1].split(")")[0].split(",").map((function(e){return parseFloat(e)})),s=st(u,4);n=s[0],i=s[1],o=s[2],a=s[3]}}[n,o,i,a].every((function(e){return"number"==typeof e&&e>=0&&e<=1}));var l=vt(n,o),f=vt(i,a),p=yt(n,o),d=function(e){return e>1?1:e<0?0:e},h=function(e){for(var t=e>1?1:e,r=t,n=0;n<8;++n){var i=l(r)-t,o=p(r);if(Math.abs(i-t)<dt||o<dt)return f(r);r=d(r-i/o)}return f(r)};return h.isStepper=!1,h},bt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,r=void 0===t?100:t,n=e.damping,i=void 0===n?8:n,o=e.dt,a=void 0===o?17:o,c=function(e,t,n){var o=n+(-(e-t)*r-n*i)*a/1e3,c=n*a/1e3+e;return Math.abs(c-t)<dt&&Math.abs(o)<dt?[t,0]:[c,o]};return c.isStepper=!0,c.dt=a,c};function wt(e){return function(e){if(Array.isArray(e))return Ot(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Mt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Et(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(r),!0).forEach((function(t){It(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function It(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function St(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(u){i=!0,o=u}finally{try{n||null==c.return||c.return()}finally{if(i)throw o}}return r}(e,t)||Mt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mt(e,t){if(e){if("string"==typeof e)return Ot(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ot(e,t):void 0}}function Ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var kt=function(e,t,r){return e+(t-e)*r},jt=function(e){return e.from!==e.to},Tt=function e(t,r,n){var i=at((function(e,r){if(jt(r)){var n=St(t(r.from,r.to,r.velocity),2),i=n[0],o=n[1];return Et(Et({},r),{},{from:i,velocity:o})}return r}),r);return n<1?at((function(e,t){return jt(t)?Et(Et({},t),{},{velocity:kt(t.velocity,i[e].velocity,n),from:kt(t.from,i[e].from,n)}):t}),r):e(t,i,n-1)},Dt=function(e,t,r,n,i){var o,a,c,u,s=(o=e,a=t,[Object.keys(o),Object.keys(a)].reduce((function(e,t){return e.filter((function(e){return t.includes(e)}))}))),l=s.reduce((function(r,n){return Et(Et({},r),{},It({},n,[e[n],t[n]]))}),{}),f=s.reduce((function(r,n){return Et(Et({},r),{},It({},n,{from:e[n],velocity:0,to:t[n]}))}),{}),p=-1,d=function(){return null};return d=r.isStepper?function(n){c||(c=n);var o=(n-c)/r.dt;f=Tt(r,f,o),i(Et(Et(Et({},e),t),at((function(e,t){return t.from}),f))),c=n,Object.values(f).filter(jt).length&&(p=Ve()(d))}:function(o){u||(u=o);var a=(o-u)/n,c=at((function(e,t){return kt.apply(void 0,wt(t).concat([r(a)]))}),l);if(i(Et(Et(Et({},e),t),c)),a<1)p=Ve()(d);else{var s=at((function(e,t){return kt.apply(void 0,wt(t).concat([r(1)]))}),l);i(Et(Et(Et({},e),t),s))}},function(){return Ve()(d),function(){(0,Fe.cancel)(p)}}};function At(e){return(At="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _t(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Pt(e){return function(e){if(Array.isArray(e))return Nt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Nt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ct(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Lt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ct(Object(r),!0).forEach((function(t){Rt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ct(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Rt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ut(e,t){return(Ut=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function zt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Wt(e);if(t){var i=Wt(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Ht(this,r)}}function Ht(e,t){return!t||"object"!==At(t)&&"function"!=typeof t?Gt(e):t}function Gt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wt(e){return(Wt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var qt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ut(e,t)}(a,e);var t,r,n,i=zt(a);function a(e,t){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var n=(r=i.call(this,e,t)).props,o=n.isActive,c=n.attributeName,u=n.from,s=n.to,l=n.steps,f=n.children;if(r.handleStyleChange=r.handleStyleChange.bind(Gt(r)),r.changeStyle=r.changeStyle.bind(Gt(r)),!o)return r.state={style:{}},"function"==typeof f&&(r.state={style:s}),Ht(r);if(l&&l.length)r.state={style:l[0].style};else if(u){if("function"==typeof f)return r.state={style:u},Ht(r);r.state={style:c?Rt({},c,u):u}}else r.state={style:{}};return r}return t=a,(r=[{key:"componentDidMount",value:function(){var e=this.props,t=e.isActive,r=e.canBegin;this.mounted=!0,t&&r&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.isActive,n=t.canBegin,i=t.attributeName,o=t.shouldReAnimate;if(n)if(r){if(!((0,Ze.deepEqual)(e.to,this.props.to)&&e.canBegin&&e.isActive)){var a=!e.canBegin||!e.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var c=a||o?this.props.from:e.to;if(this.state&&this.state.style){var u={style:i?Rt({},i,c):c};(i&&this.state.style[i]!==c||!i&&this.state.style!==c)&&this.setState(u)}this.runAnimation(Lt(Lt({},this.props),{},{from:c,begin:0}))}}else{var s={style:i?Rt({},i,this.props.to):this.props.to};this.state&&this.state.style&&(i&&this.state.style[i]!==this.props.to||!i&&this.state.style!==this.props.to)&&this.setState(s)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1,this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation()}},{key:"runJSAnimation",value:function(e){var t=this,r=e.from,n=e.to,i=e.duration,o=e.easing,a=e.begin,c=e.onAnimationEnd,u=e.onAnimationStart,s=Dt(r,n,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0];if("string"==typeof n)switch(n){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return gt(n);case"spring":return bt();default:if("cubic-bezier"===n.split("(")[0])return gt(n)}return"function"==typeof n?n:null}(o),i,this.changeStyle);this.manager.start([u,a,function(){t.stopJSAnimation=s()},i,c])}},{key:"runStepAnimation",value:function(e){var t=this,r=e.steps,n=e.begin,i=e.onAnimationStart,o=r[0],a=o.style,c=o.duration,u=void 0===c?0:c;return this.manager.start([i].concat(Pt(r.reduce((function(e,n,i){if(0===i)return e;var o=n.duration,a=n.easing,c=void 0===a?"ease":a,u=n.style,s=n.properties,l=n.onAnimationEnd,f=i>0?r[i-1]:n,p=s||Object.keys(u);if("function"==typeof c||"spring"===c)return[].concat(Pt(e),[t.runJSAnimation.bind(t,{from:f.style,to:u,duration:o,easing:c}),o]);var d=ut(p,o,c),h=Lt(Lt(Lt({},f.style),u),{},{transition:d});return[].concat(Pt(e),[h,o,l]).filter(ot)}),[a,Math.max(u,n)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=$e());var t=e.begin,r=e.duration,n=e.attributeName,i=e.to,o=e.easing,a=e.onAnimationStart,c=e.onAnimationEnd,u=e.steps,s=e.children,l=this.manager;if(this.unSubscribe=l.subscribe(this.handleStyleChange),"function"!=typeof o&&"function"!=typeof s&&"spring"!==o)if(u.length>1)this.runStepAnimation(e);else{var f=n?Rt({},n,i):i,p=ut(Object.keys(f),r,o);l.start([a,t,Lt(Lt({},f),{},{transition:p}),r,c])}else this.runJSAnimation(e)}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"render",value:function(){var e=this.props,t=e.children,r=(e.begin,e.duration,e.attributeName,e.easing,e.isActive),n=(e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart,_t(e,["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"])),i=o.Children.count(t),a=ct(this.state.style);if("function"==typeof t)return t(a);if(!r||0===i)return t;var c=function(e){var t=e.props,r=t.style,i=void 0===r?{}:r,c=t.className;return(0,o.cloneElement)(e,Lt(Lt({},n),{},{style:Lt(Lt({},i),a),className:c}))};return 1===i?c(o.Children.only(t)):o.createElement("div",null,o.Children.map(t,(function(e){return c(e)})))}}])&&Bt(t.prototype,r),n&&Bt(t,n),a}(o.PureComponent);qt.displayName="Animate",qt.propTypes={from:qe().oneOfType([qe().object,qe().string]),to:qe().oneOfType([qe().object,qe().string]),attributeName:qe().string,duration:qe().number,begin:qe().number,easing:qe().oneOfType([qe().string,qe().func]),steps:qe().arrayOf(qe().shape({duration:qe().number.isRequired,style:qe().object.isRequired,easing:qe().oneOfType([qe().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),qe().func]),properties:qe().arrayOf("string"),onAnimationEnd:qe().func})),children:qe().oneOfType([qe().node,qe().func]),isActive:qe().bool,canBegin:qe().bool,onAnimationEnd:qe().func,shouldReAnimate:qe().bool,onAnimationStart:qe().func,onAnimationReStart:qe().func},qt.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};var Zt=qt,Ft=r(33092);function Vt(e){return(Vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Jt(){return(Jt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Yt(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Xt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Qt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xt(Object(r),!0).forEach((function(t){$t(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function er(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function tr(e,t){return(tr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function rr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ir(e);if(t){var i=ir(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return nr(this,r)}}function nr(e,t){return!t||"object"!==Vt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ir(e){return(ir=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}void 0===Number.isFinite&&(Number.isFinite=function(e){return"number"==typeof e&&isFinite(e)});var or=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.steps,r=e.duration;return t&&t.length?t.reduce((function(e,t){return e+(Number.isFinite(t.duration)&&t.duration>0?t.duration:0)}),0):Number.isFinite(r)?r:0},ar=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&tr(e,t)}(a,e);var t,r,n,i=rr(a);function a(){var e;Kt(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return(e=i.call.apply(i,[this].concat(r))).state={isActive:!1},e.handleEnter=function(t,r){var n=e.props,i=n.appearOptions,o=n.enterOptions;e.handleStyleActive(r?i:o)},e.handleExit=function(){e.handleStyleActive(e.props.leaveOptions)},e}return t=a,(r=[{key:"handleStyleActive",value:function(e){if(e){var t=e.onAnimationEnd?function(){e.onAnimationEnd()}:null;this.setState(Qt(Qt({},e),{},{onAnimationEnd:t,isActive:!0}))}}},{key:"parseTimeout",value:function(){var e=this.props,t=e.appearOptions,r=e.enterOptions,n=e.leaveOptions;return or(t)+or(r)+or(n)}},{key:"render",value:function(){var e=this,t=this.props,r=t.children,n=(t.appearOptions,t.enterOptions,t.leaveOptions,Yt(t,["children","appearOptions","enterOptions","leaveOptions"]));return o.createElement(Ft.Transition,Jt({},n,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),(function(){return o.createElement(Zt,e.state,o.Children.only(r))}))}}])&&er(t.prototype,r),n&&er(t,n),a}(o.Component);ar.propTypes={appearOptions:qe().object,enterOptions:qe().object,leaveOptions:qe().object,children:qe().element};var cr=ar;function ur(e){var t=e.component,r=e.children,n=e.appear,i=e.enter,a=e.leave;return o.createElement(Ft.TransitionGroup,{component:t},o.Children.map(r,(function(e,t){return o.createElement(cr,{appearOptions:n,enterOptions:i,leaveOptions:a,key:"child-".concat(t)},e)})))}ur.propTypes={appear:qe().object,enter:qe().object,leave:qe().object,children:qe().oneOfType([qe().array,qe().element]),component:qe().any},ur.defaultProps={component:"span"};var sr=Zt;function lr(e){return(lr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(u){i=!0,o=u}finally{try{n||null==c.return||c.return()}finally{if(i)throw o}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return pr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function dr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function hr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dr(Object(r),!0).forEach((function(t){mr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function mr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function gr(e,t){return(gr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function br(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=xr(e);if(t){var i=xr(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return wr(this,r)}}function wr(e,t){return!t||"object"!==lr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function xr(e){return(xr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Er(e){return B()(e)&&J(e[0])&&J(e[1])?e.join(" ~ "):e}var Ir=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&gr(e,t)}(a,e);var t,r,n,i=br(a);function a(){return vr(this,a),i.apply(this,arguments)}return t=a,(r=[{key:"renderContent",value:function(){var e=this.props,t=e.payload,r=e.separator,n=e.formatter,i=e.itemStyle,a=e.itemSorter;if(t&&t.length){var c=(a?be()(t,a):t).map((function(e,a){if("none"===e.type)return null;var c=hr({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},i),u=e.formatter||n||Er,s=e.name,l=e.value;if(u){var f=u(l,s,e,a,t);if(Array.isArray(f)){var p=fr(f,2);l=p[0],s=p[1]}else l=f}return o.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(a),style:c},J(s)?o.createElement("span",{className:"recharts-tooltip-item-name"},s):null,J(s)?o.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,o.createElement("span",{className:"recharts-tooltip-item-value"},l),o.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))}));return o.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},c)}return null}},{key:"render",value:function(){var e=this.props,t=e.wrapperClassName,r=e.contentStyle,n=e.labelClassName,i=e.labelStyle,a=e.label,c=e.labelFormatter,u=e.payload,s=hr({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},r),l=hr({margin:0},i),f=!Ie()(a),p=f?a:"",d=P()("recharts-default-tooltip",t),h=P()("recharts-tooltip-label",n);return f&&c&&(p=c(a,u)),o.createElement("div",{className:d,style:s},o.createElement("p",{className:h,style:l},o.isValidElement(p)?p:"".concat(p)),this.renderContent())}}])&&yr(t.prototype,r),n&&yr(t,n),a}(o.PureComponent);Ir.displayName="DefaultTooltipContent",Ir.defaultProps={separator:" : ",contentStyle:{},itemStyle:{},labelStyle:{}};var Sr={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(e){return Sr[e]},set:function(e,t){if("string"==typeof e)Sr[e]=t;else{var r=Object.keys(e);r&&r.length&&r.forEach((function(t){Sr[t]=e[t]}))}}};function Mr(e){return(Mr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Or(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function kr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Or(Object(r),!0).forEach((function(t){jr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Or(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function jr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ar(e,t){return(Ar=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _r(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Nr(e);if(t){var i=Nr(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Pr(this,r)}}function Pr(e,t){return!t||"object"!==Mr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Nr(e){return(Nr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Cr="recharts-tooltip-wrapper";function Lr(e){return e.dataKey}var Rr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ar(e,t)}(a,e);var t,r,n,i=_r(a);function a(){var e;Tr(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return(e=i.call.apply(i,[this].concat(r))).state={boxWidth:-1,boxHeight:-1},e.wrapperNode=void 0,e.getTranslate=function(t){var r=t.key,n=t.tooltipDimension,i=t.viewBoxDimension,o=e.props,a=o.allowEscapeViewBox,c=o.coordinate,u=o.offset,s=o.position,l=o.viewBox;if(s&&V(s[r]))return s[r];var f=c[r]-n-u,p=c[r]+u;return a[r]?p:c[r]+n+u>l[r]+i?Math.max(f,l[r]):Math.max(p,l[r])},e}return t=a,(r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,r=e.boxHeight;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-t)>1||Math.abs(n.height-r)>1)&&this.setState({boxWidth:n.width,boxHeight:n.height})}else-1===t&&-1===r||this.setState({boxWidth:-1,boxHeight:-1})}},{key:"render",value:function(){var e,t,r,n=this,i=this.props,a=i.payload,c=i.isAnimationActive,u=i.animationDuration,s=i.animationEasing,l=i.filterNull,f=function(e,t){return!0===e?Ge()(t,Lr):me()(e)?Ge()(t,e):t}(i.payloadUniqBy,l&&a&&a.length?a.filter((function(e){return!Ie()(e.value)})):a),p=f&&f.length,d=this.props,h=d.content,m=d.viewBox,v=d.coordinate,y=d.position,g=d.active,b=kr({pointerEvents:"none",visibility:g&&p?"visible":"hidden",position:"absolute",top:0,left:0},d.wrapperStyle);if(y&&V(y.x)&&V(y.y))t=y.x,r=y.y;else{var w=this.state,x=w.boxWidth,E=w.boxHeight;x>0&&E>0&&v?(t=this.getTranslate({key:"x",tooltipDimension:x,viewBoxDimension:m.width}),r=this.getTranslate({key:"y",tooltipDimension:E,viewBoxDimension:m.height})):b.visibility="hidden"}b=kr(kr({},ct({transform:this.props.useTranslate3d?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")})),b),c&&g&&(b=kr(kr({},ct({transition:"transform ".concat(u,"ms ").concat(s)})),b));var I=P()(Cr,(jr(e={},"".concat(Cr,"-right"),V(t)&&v&&V(v.x)&&t>=v.x),jr(e,"".concat(Cr,"-left"),V(t)&&v&&V(v.x)&&t<v.x),jr(e,"".concat(Cr,"-bottom"),V(r)&&v&&V(v.y)&&r>=v.y),jr(e,"".concat(Cr,"-top"),V(r)&&v&&V(v.y)&&r<v.y),e));return o.createElement("div",{className:I,style:b,ref:function(e){n.wrapperNode=e}},function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):me()(e)?o.createElement(e,t):o.createElement(Ir,t)}(h,kr(kr({},this.props),{},{payload:f})))}}])&&Dr(t.prototype,r),n&&Dr(t,n),a}(o.PureComponent);Rr.displayName="Tooltip",Rr.defaultProps={active:!1,allowEscapeViewBox:{x:!1,y:!1},offset:10,viewBox:{x1:0,x2:0,y1:0,y2:0},coordinate:{x:0,y:0},cursorStyle:{},separator:" : ",wrapperStyle:{},contentStyle:{},itemStyle:{},labelStyle:{},cursor:!0,trigger:"hover",isAnimationActive:!Sr.isSsr,animationEasing:"ease",animationDuration:400,filterNull:!0,useTranslate3d:!1};var Br=r(21528),Ur=r.n(Br),zr=(Math.abs,Math.atan2,Math.cos,Math.max,Math.min,Math.sin,Math.sqrt,Math.PI),Hr=2*zr;var Gr={draw:function(e,t){var r=Math.sqrt(t/zr);e.moveTo(r,0),e.arc(0,0,r,0,Hr)}},Wr={draw:function(e,t){var r=Math.sqrt(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},qr=Math.sqrt(1/3),Zr=2*qr,Fr={draw:function(e,t){var r=Math.sqrt(t/Zr),n=r*qr;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Vr={draw:function(e,t){var r=Math.sqrt(t),n=-r/2;e.rect(n,n,r,r)}},Jr=Math.sin(zr/10)/Math.sin(7*zr/10),Yr=Math.sin(Hr/10)*Jr,Xr=-Math.cos(Hr/10)*Jr,Qr={draw:function(e,t){var r=Math.sqrt(.8908130915292852*t),n=Yr*r,i=Xr*r;e.moveTo(0,-r),e.lineTo(n,i);for(var o=1;o<5;++o){var a=Hr*o/5,c=Math.cos(a),u=Math.sin(a);e.lineTo(u*r,-c*r),e.lineTo(c*n-u*i,u*n+c*i)}e.closePath()}},$r=Math.sqrt(3),Kr={draw:function(e,t){var r=-Math.sqrt(t/(3*$r));e.moveTo(0,2*r),e.lineTo(-$r*r,-r),e.lineTo($r*r,-r),e.closePath()}},en=-.5,tn=Math.sqrt(3)/2,rn=1/Math.sqrt(12),nn=3*(rn/2+1),on={draw:function(e,t){var r=Math.sqrt(t/nn),n=r/2,i=r*rn,o=n,a=r*rn+r,c=-o,u=a;e.moveTo(n,i),e.lineTo(o,a),e.lineTo(c,u),e.lineTo(en*n-tn*i,tn*n+en*i),e.lineTo(en*o-tn*a,tn*o+en*a),e.lineTo(en*c-tn*u,tn*c+en*u),e.lineTo(en*n+tn*i,en*i-tn*n),e.lineTo(en*o+tn*a,en*a-tn*o),e.lineTo(en*c+tn*u,en*u-tn*c),e.closePath()}};const an=Math.PI,cn=2*an,un=1e-6,sn=cn-un;function ln(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function fn(){return new ln}ln.prototype=fn.prototype={constructor:ln,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,r,n){this._+="Q"+ +e+","+ +t+","+(this._x1=+r)+","+(this._y1=+n)},bezierCurveTo:function(e,t,r,n,i,o){this._+="C"+ +e+","+ +t+","+ +r+","+ +n+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,r,n,i){e=+e,t=+t,r=+r,n=+n,i=+i;var o=this._x1,a=this._y1,c=r-e,u=n-t,s=o-e,l=a-t,f=s*s+l*l;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(f>un)if(Math.abs(l*c-u*s)>un&&i){var p=r-o,d=n-a,h=c*c+u*u,m=p*p+d*d,v=Math.sqrt(h),y=Math.sqrt(f),g=i*Math.tan((an-Math.acos((h+f-m)/(2*v*y)))/2),b=g/y,w=g/v;Math.abs(b-1)>un&&(this._+="L"+(e+b*s)+","+(t+b*l)),this._+="A"+i+","+i+",0,0,"+ +(l*p>s*d)+","+(this._x1=e+w*c)+","+(this._y1=t+w*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,r,n,i,o){e=+e,t=+t,o=!!o;var a=(r=+r)*Math.cos(n),c=r*Math.sin(n),u=e+a,s=t+c,l=1^o,f=o?n-i:i-n;if(r<0)throw new Error("negative radius: "+r);null===this._x1?this._+="M"+u+","+s:(Math.abs(this._x1-u)>un||Math.abs(this._y1-s)>un)&&(this._+="L"+u+","+s),r&&(f<0&&(f=f%cn+cn),f>sn?this._+="A"+r+","+r+",0,1,"+l+","+(e-a)+","+(t-c)+"A"+r+","+r+",0,1,"+l+","+(this._x1=u)+","+(this._y1=s):f>un&&(this._+="A"+r+","+r+",0,"+ +(f>=an)+","+l+","+(this._x1=e+r*Math.cos(i))+","+(this._y1=t+r*Math.sin(i))))},rect:function(e,t,r,n){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +r+"v"+ +n+"h"+-r+"Z"},toString:function(){return this._}};var pn=fn;function dn(e){return function(){return e}}function hn(e){return(hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mn(){return(mn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function vn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function gn(e,t){return(gn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function bn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=xn(e);if(t){var i=xn(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return wn(this,r)}}function wn(e,t){return!t||"object"!==hn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function xn(e){return(xn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var En={symbolCircle:Gr,symbolCross:Wr,symbolDiamond:Fr,symbolSquare:Vr,symbolStar:Qr,symbolTriangle:Kr,symbolWye:on},In=Math.PI/180,Sn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&gn(e,t)}(a,e);var t,r,n,i=bn(a);function a(){return vn(this,a),i.apply(this,arguments)}return t=a,(r=[{key:"getPath",value:function(){var e=this.props,t=e.size,r=e.sizeType,n=e.type,i=function(e){var t="symbol".concat(Ur()(e));return En[t]||Gr}(n);return function(e,t){var r=null;function n(){var n;if(r||(r=n=pn()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),n)return r=null,n+""||null}return e="function"==typeof e?e:dn(e||Gr),t="function"==typeof t?t:dn(void 0===t?64:+t),n.type=function(t){return arguments.length?(e="function"==typeof t?t:dn(t),n):e},n.size=function(e){return arguments.length?(t="function"==typeof e?e:dn(+e),n):t},n.context=function(e){return arguments.length?(r=null==e?null:e,n):r},n}().type(i).size(function(e,t,r){if("area"===t)return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var n=18*In;return 1.25*e*e*(Math.tan(n)-Math.tan(2*n)*Math.pow(Math.tan(n),2));case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}}(t,r,n))()}},{key:"render",value:function(){var e=this.props,t=e.className,r=e.cx,n=e.cy,i=e.size;return r===+r&&n===+n&&i===+i?o.createElement("path",mn({},_e(this.props,!0),{className:P()("recharts-symbols",t),transform:"translate(".concat(r,", ").concat(n,")"),d:this.getPath()})):null}}])&&yn(t.prototype,r),n&&yn(t,n),a}(o.PureComponent);function Mn(e){return(Mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function On(){return(On=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function kn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function jn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function An(e,t){return(An=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _n(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Nn(e);if(t){var i=Nn(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Pn(this,r)}}function Pn(e,t){return!t||"object"!==Mn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Nn(e){return(Nn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Sn.defaultProps={type:"circle",size:64,sizeType:"area"},Sn.registerSymbol=function(e,t){En["symbol".concat(Ur()(e))]=t};var Cn=32,Ln=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&An(e,t)}(a,e);var t,r,n,i=_n(a);function a(){return Tn(this,a),i.apply(this,arguments)}return t=a,(r=[{key:"renderIcon",value:function(e){var t=this.props.inactiveColor,r=16,n=Cn/6,i=Cn/3,a=e.inactive?t:e.color;if("plainline"===e.type)return o.createElement("line",{strokeWidth:4,fill:"none",stroke:a,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:r,x2:Cn,y2:r,className:"recharts-legend-icon"});if("line"===e.type)return o.createElement("path",{strokeWidth:4,fill:"none",stroke:a,d:"M0,".concat(r,"h").concat(i,"\n A").concat(n,",").concat(n,",0,1,1,").concat(2*i,",").concat(r,"\n H").concat(Cn,"M").concat(2*i,",").concat(r,"\n A").concat(n,",").concat(n,",0,1,1,").concat(i,",").concat(r),className:"recharts-legend-icon"});if("rect"===e.type)return o.createElement("path",{stroke:"none",fill:a,d:"M0,".concat(4,"h").concat(Cn,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(o.isValidElement(e.legendIcon)){var c=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kn(Object(r),!0).forEach((function(t){jn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e);return delete c.legendIcon,o.cloneElement(e.legendIcon,c)}return o.createElement(Sn,{fill:a,cx:r,cy:r,size:Cn,sizeType:"diameter",type:e.type})}},{key:"renderItems",value:function(){var e=this,t=this.props,r=t.payload,n=t.iconSize,i=t.layout,a=t.formatter,c=t.inactiveColor,u={x:0,y:0,width:Cn,height:Cn},s={display:"horizontal"===i?"inline-block":"block",marginRight:10},l={display:"inline-block",verticalAlign:"middle",marginRight:4};return r.map((function(t,r){var i,f=t.formatter||a,p=P()((jn(i={"recharts-legend-item":!0},"legend-item-".concat(r),!0),jn(i,"inactive",t.inactive),i));if("none"===t.type)return null;var d=t.inactive?c:t.color;return o.createElement("li",On({className:p,style:s,key:"legend-item-".concat(r)},Ne(e.props,t,r)),o.createElement(Re,{width:n,height:n,viewBox:u,style:l},e.renderIcon(t)),o.createElement("span",{className:"recharts-legend-item-text",style:{color:d}},f?f(t.value,t,r):t.value))}))}},{key:"render",value:function(){var e=this.props,t=e.payload,r=e.layout,n=e.align;if(!t||!t.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===r?n:"left"};return o.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}])&&Dn(t.prototype,r),n&&Dn(t,n),a}(o.PureComponent);function Rn(e){return(Rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Bn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Un(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Bn(Object(r),!0).forEach((function(t){zn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function zn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Wn(e,t){return(Wn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function qn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Fn(e);if(t){var i=Fn(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Zn(this,r)}}function Zn(e,t){return!t||"object"!==Rn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Fn(e){return(Fn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Vn(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Jn(e){return e.value}function Yn(e,t){return!0===e?Ge()(t,Jn):me()(e)?Ge()(t,e):t}Ln.displayName="Legend",Ln.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"};var Xn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Wn(e,t)}(a,e);var t,r,n,i=qn(a);function a(){var e;Hn(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return(e=i.call.apply(i,[this].concat(r))).wrapperNode=void 0,e.state={boxWidth:-1,boxHeight:-1},e}return t=a,n=[{key:"getWithHeight",value:function(e,t){var r=e.props.layout;return"vertical"===r&&V(e.props.height)?{height:e.props.height}:"horizontal"===r?{width:e.props.width||t}:null}}],(r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){return this.wrapperNode&&this.wrapperNode.getBoundingClientRect?this.wrapperNode.getBoundingClientRect():null}},{key:"getBBoxSnapshot",value:function(){var e=this.state,t=e.boxWidth,r=e.boxHeight;return t>=0&&r>=0?{width:t,height:r}:null}},{key:"getDefaultPosition",value:function(e){var t,r,n=this.props,i=n.layout,o=n.align,a=n.verticalAlign,c=n.margin,u=n.chartWidth,s=n.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===o&&"vertical"===i?{left:((u||0)-(this.getBBoxSnapshot()||{width:0}).width)/2}:"right"===o?{right:c&&c.right||0}:{left:c&&c.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(r="middle"===a?{top:((s||0)-(this.getBBoxSnapshot()||{height:0}).height)/2}:"bottom"===a?{bottom:c&&c.bottom||0}:{top:c&&c.top||0}),Un(Un({},t),r)}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,r=e.boxHeight,n=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var i=this.wrapperNode.getBoundingClientRect();(Math.abs(i.width-t)>1||Math.abs(i.height-r)>1)&&this.setState({boxWidth:i.width,boxHeight:i.height},(function(){n&&n(i)}))}else-1===t&&-1===r||this.setState({boxWidth:-1,boxHeight:-1},(function(){n&&n(null)}))}},{key:"render",value:function(){var e=this,t=this.props,r=t.content,n=t.width,i=t.height,a=t.wrapperStyle,c=t.payloadUniqBy,u=t.payload,s=Un(Un({position:"absolute",width:n||"auto",height:i||"auto"},this.getDefaultPosition(a)),a);return o.createElement("div",{className:"recharts-legend-wrapper",style:s,ref:function(t){e.wrapperNode=t}},function(e,t){if(o.isValidElement(e))return o.cloneElement(e,t);if(me()(e))return o.createElement(e,t);t.ref;var r=Vn(t,["ref"]);return o.createElement(Ln,r)}(r,Un(Un({},this.props),{},{payload:Yn(c,u)})))}}])&&Gn(t.prototype,r),n&&Gn(t,n),a}(o.PureComponent);function Qn(){}function $n(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Kn(e){this._context=e}function ei(e){this._context=e}function ti(e){this._context=e}function ri(e){this._context=e}function ni(e){this._context=e}function ii(e){return new ni(e)}function oi(e){return e<0?-1:1}function ai(e,t,r){var n=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(n||i<0&&-0),a=(r-e._y1)/(i||n<0&&-0),c=(o*i+a*n)/(n+i);return(oi(o)+oi(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(c))||0}function ci(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function ui(e,t,r){var n=e._x0,i=e._y0,o=e._x1,a=e._y1,c=(o-n)/3;e._context.bezierCurveTo(n+c,i+c*t,o-c,a-c*r,o,a)}function si(e){this._context=e}function li(e){this._context=new fi(e)}function fi(e){this._context=e}function pi(e){this._context=e}function di(e){var t,r,n=e.length-1,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function hi(e,t){this._context=e,this._t=t}Xn.displayName="Legend",Xn.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"},Kn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:$n(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:$n(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},ei.prototype={areaStart:Qn,areaEnd:Qn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:$n(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},ti.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:$n(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},ri.prototype={areaStart:Qn,areaEnd:Qn,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},ni.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},si.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ui(this,this._t0,ci(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,ui(this,ci(this,r=ai(this,e,t)),r);break;default:ui(this,this._t0,r=ai(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}},(li.prototype=Object.create(si.prototype)).point=function(e,t){si.prototype.point.call(this,t,e)},fi.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,o){this._context.bezierCurveTo(t,e,n,r,o,i)}},pi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===r)this._context.lineTo(e[1],t[1]);else for(var n=di(e),i=di(t),o=0,a=1;a<r;++o,++a)this._context.bezierCurveTo(n[0][o],i[0][o],n[1][o],i[1][o],e[a],t[a]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},hi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}}this._x=e,this._y=t}};Array.prototype.slice;function mi(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function vi(e){return e[0]}function yi(e){return e[1]}function gi(e,t){var r=dn(!0),n=null,i=ii,o=null;function a(a){var c,u,s,l=(a=mi(a)).length,f=!1;for(null==n&&(o=i(s=pn())),c=0;c<=l;++c)!(c<l&&r(u=a[c],c,a))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+e(u,c,a),+t(u,c,a));if(s)return o=null,s+""||null}return e="function"==typeof e?e:void 0===e?vi:dn(e),t="function"==typeof t?t:void 0===t?yi:dn(t),a.x=function(t){return arguments.length?(e="function"==typeof t?t:dn(+t),a):e},a.y=function(e){return arguments.length?(t="function"==typeof e?e:dn(+e),a):t},a.defined=function(e){return arguments.length?(r="function"==typeof e?e:dn(!!e),a):r},a.curve=function(e){return arguments.length?(i=e,null!=n&&(o=i(n)),a):i},a.context=function(e){return arguments.length?(null==e?n=o=null:o=i(n=e),a):n},a}function bi(e,t,r){var n=null,i=dn(!0),o=null,a=ii,c=null;function u(u){var s,l,f,p,d,h=(u=mi(u)).length,m=!1,v=new Array(h),y=new Array(h);for(null==o&&(c=a(d=pn())),s=0;s<=h;++s){if(!(s<h&&i(p=u[s],s,u))===m)if(m=!m)l=s,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),f=s-1;f>=l;--f)c.point(v[f],y[f]);c.lineEnd(),c.areaEnd()}m&&(v[s]=+e(p,s,u),y[s]=+t(p,s,u),c.point(n?+n(p,s,u):v[s],r?+r(p,s,u):y[s]))}if(d)return c=null,d+""||null}function s(){return gi().defined(i).curve(a).context(o)}return e="function"==typeof e?e:void 0===e?vi:dn(+e),t="function"==typeof t?t:dn(void 0===t?0:+t),r="function"==typeof r?r:void 0===r?yi:dn(+r),u.x=function(t){return arguments.length?(e="function"==typeof t?t:dn(+t),n=null,u):e},u.x0=function(t){return arguments.length?(e="function"==typeof t?t:dn(+t),u):e},u.x1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:dn(+e),u):n},u.y=function(e){return arguments.length?(t="function"==typeof e?e:dn(+e),r=null,u):t},u.y0=function(e){return arguments.length?(t="function"==typeof e?e:dn(+e),u):t},u.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:dn(+e),u):r},u.lineX0=u.lineY0=function(){return s().x(e).y(t)},u.lineY1=function(){return s().x(e).y(r)},u.lineX1=function(){return s().x(n).y(t)},u.defined=function(e){return arguments.length?(i="function"==typeof e?e:dn(!!e),u):i},u.curve=function(e){return arguments.length?(a=e,null!=o&&(c=a(o)),u):a},u.context=function(e){return arguments.length?(null==e?o=c=null:c=a(o=e),u):o},u}function wi(e){return(wi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xi(){return(xi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Ei(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ii(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ei(Object(r),!0).forEach((function(t){Si(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ei(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Si(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ki(e,t){return(ki=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ji(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Di(e);if(t){var i=Di(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Ti(this,r)}}function Ti(e,t){return!t||"object"!==wi(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Di(e){return(Di=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ai={curveBasisClosed:function(e){return new ei(e)},curveBasisOpen:function(e){return new ti(e)},curveBasis:function(e){return new Kn(e)},curveLinearClosed:function(e){return new ri(e)},curveLinear:ii,curveMonotoneX:function(e){return new si(e)},curveMonotoneY:function(e){return new li(e)},curveNatural:function(e){return new pi(e)},curveStep:function(e){return new hi(e,.5)},curveStepAfter:function(e){return new hi(e,1)},curveStepBefore:function(e){return new hi(e,0)}},_i=function(e){return e.x===+e.x&&e.y===+e.y},Pi=function(e){return e.x},Ni=function(e){return e.y},Ci=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ki(e,t)}(a,e);var t,r,n,i=ji(a);function a(){return Mi(this,a),i.apply(this,arguments)}return t=a,(r=[{key:"getPath",value:function(){var e,t=this.props,r=t.type,n=t.points,i=t.baseLine,o=t.layout,a=t.connectNulls,c=function(e,t){if(me()(e))return e;var r="curve".concat(Ur()(e));return"curveMonotone"===r&&t?Ai["".concat(r).concat("vertical"===t?"Y":"X")]:Ai[r]||ii}(r,o),u=a?n.filter((function(e){return _i(e)})):n;if(B()(i)){var s=a?i.filter((function(e){return _i(e)})):i,l=u.map((function(e,t){return Ii(Ii({},e),{},{base:s[t]})}));return(e="vertical"===o?bi().y(Ni).x1(Pi).x0((function(e){return e.base.x})):bi().x(Pi).y1(Ni).y0((function(e){return e.base.y}))).defined(_i).curve(c),e(l)}return(e="vertical"===o&&V(i)?bi().y(Ni).x1(Pi).x0(i):V(i)?bi().x(Pi).y1(Ni).y0(i):gi().x(Pi).y(Ni)).defined(_i).curve(c),e(u)}},{key:"render",value:function(){var e=this.props,t=e.className,r=e.points,n=e.path,i=e.pathRef;if(!(r&&r.length||n))return null;var a=r&&r.length?this.getPath():n;return o.createElement("path",xi({},_e(this.props),Pe(this.props),{className:P()("recharts-curve",t),d:a,ref:i}))}}])&&Oi(t.prototype,r),n&&Oi(t,n),a}(o.PureComponent);function Li(e){return(Li="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ri(){return(Ri=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Bi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ui(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function zi(e,t){return(zi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Hi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Wi(e);if(t){var i=Wi(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Gi(this,r)}}function Gi(e,t){return!t||"object"!==Li(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Wi(e){return(Wi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Ci.defaultProps={type:"linear",points:[],connectNulls:!1};var qi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&zi(e,t)}(a,e);var t,r,n,i=Hi(a);function a(){return Bi(this,a),i.apply(this,arguments)}return t=a,n=[{key:"getPath",value:function(e,t,r,n,i,o){return"M".concat(e,",").concat(i,"v").concat(n,"M").concat(o,",").concat(t,"h").concat(r)}}],(r=[{key:"render",value:function(){var e=this.props,t=e.x,r=e.y,n=e.width,i=e.height,c=e.top,u=e.left,s=e.className;return V(t)&&V(r)&&V(n)&&V(i)&&V(c)&&V(u)?o.createElement("path",Ri({},_e(this.props,!0),{className:P()("recharts-cross",s),d:a.getPath(t,r,n,i,c,u)})):null}}])&&Ui(t.prototype,r),n&&Ui(t,n),a}(o.PureComponent);function Zi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Fi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zi(Object(r),!0).forEach((function(t){Vi(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Vi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}qi.defaultProps={x:0,y:0,top:0,left:0,width:0,height:0};var Ji=Math.PI/180,Yi=function(e){return 180*e/Math.PI},Xi=function(e,t,r,n){return{x:e+Math.cos(-Ji*n)*r,y:t+Math.sin(-Ji*n)*r}},Qi=function(e,t){var r=e.x,n=e.y,i=t.cx,o=t.cy,a=function(e,t){var r=e.x,n=e.y,i=t.x,o=t.y;return Math.sqrt(Math.pow(r-i,2)+Math.pow(n-o,2))}({x:r,y:n},{x:i,y:o});if(a<=0)return{radius:a};var c=(r-i)/a,u=Math.acos(c);return n>o&&(u=2*Math.PI-u),{radius:a,angle:Yi(u),angleInRadian:u}},$i=function(e,t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),o=Math.floor(n/360);return e+360*Math.min(i,o)},Ki=function(e,t){var r=e.x,n=e.y,i=Qi({x:r,y:n},t),o=i.radius,a=i.angle,c=t.innerRadius,u=t.outerRadius;if(o<c||o>u)return!1;if(0===o)return!0;var s,l=function(e){var t=e.startAngle,r=e.endAngle,n=Math.floor(t/360),i=Math.floor(r/360),o=Math.min(n,i);return{startAngle:t-360*o,endAngle:r-360*o}}(t),f=l.startAngle,p=l.endAngle,d=a;if(f<=p){for(;d>p;)d-=360;for(;d<f;)d+=360;s=d>=f&&d<=p}else{for(;d>f;)d-=360;for(;d<p;)d+=360;s=d>=p&&d<=f}return s?Fi(Fi({},t),{},{radius:o,angle:$i(d,t)}):null};function eo(e){return(eo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function to(){return(to=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ro(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function no(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function io(e,t){return(io=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function oo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=co(e);if(t){var i=co(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ao(this,r)}}function ao(e,t){return!t||"object"!==eo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function co(e){return(co=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var uo=function(e){var t=e.cx,r=e.cy,n=e.radius,i=e.angle,o=e.sign,a=e.isExternal,c=e.cornerRadius,u=e.cornerIsExternal,s=c*(a?1:-1)+n,l=Math.asin(c/s)/Ji,f=u?i:i+o*l,p=u?i-o*l:i;return{center:Xi(t,r,s,f),circleTangency:Xi(t,r,n,f),lineTangency:Xi(t,r,s*Math.cos(l*Ji),p),theta:l}},so=function(e){var t=e.cx,r=e.cy,n=e.innerRadius,i=e.outerRadius,o=e.startAngle,a=function(e,t){return Z(t-e)*Math.min(Math.abs(t-e),359.999)}(o,e.endAngle),c=o+a,u=Xi(t,r,i,o),s=Xi(t,r,i,c),l="M ".concat(u.x,",").concat(u.y,"\n A ").concat(i,",").concat(i,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o>c),",\n ").concat(s.x,",").concat(s.y,"\n ");if(n>0){var f=Xi(t,r,n,o),p=Xi(t,r,n,c);l+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(n,",").concat(n,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o<=c),",\n ").concat(f.x,",").concat(f.y," Z")}else l+="L ".concat(t,",").concat(r," Z");return l},lo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&io(e,t)}(a,e);var t,r,n,i=oo(a);function a(){return ro(this,a),i.apply(this,arguments)}return t=a,(r=[{key:"render",value:function(){var e=this.props,t=e.cx,r=e.cy,n=e.innerRadius,i=e.outerRadius,a=e.cornerRadius,c=e.forceCornerRadius,u=e.cornerIsExternal,s=e.startAngle,l=e.endAngle,f=e.className;if(i<n||s===l)return null;var p,d=P()("recharts-sector",f),h=i-n,m=Q(a,h,0,!0);return p=m>0&&Math.abs(s-l)<360?function(e){var t=e.cx,r=e.cy,n=e.innerRadius,i=e.outerRadius,o=e.cornerRadius,a=e.forceCornerRadius,c=e.cornerIsExternal,u=e.startAngle,s=e.endAngle,l=Z(s-u),f=uo({cx:t,cy:r,radius:i,angle:u,sign:l,cornerRadius:o,cornerIsExternal:c}),p=f.circleTangency,d=f.lineTangency,h=f.theta,m=uo({cx:t,cy:r,radius:i,angle:s,sign:-l,cornerRadius:o,cornerIsExternal:c}),v=m.circleTangency,y=m.lineTangency,g=m.theta,b=c?Math.abs(u-s):Math.abs(u-s)-h-g;if(b<0)return a?"M ".concat(d.x,",").concat(d.y,"\n a").concat(o,",").concat(o,",0,0,1,").concat(2*o,",0\n a").concat(o,",").concat(o,",0,0,1,").concat(2*-o,",0\n "):so({cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:u,endAngle:s});var w="M ".concat(d.x,",").concat(d.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(p.x,",").concat(p.y,"\n A").concat(i,",").concat(i,",0,").concat(+(b>180),",").concat(+(l<0),",").concat(v.x,",").concat(v.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(y.x,",").concat(y.y,"\n ");if(n>0){var x=uo({cx:t,cy:r,radius:n,angle:u,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),E=x.circleTangency,I=x.lineTangency,S=x.theta,M=uo({cx:t,cy:r,radius:n,angle:s,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),O=M.circleTangency,k=M.lineTangency,j=M.theta,T=c?Math.abs(u-s):Math.abs(u-s)-S-j;if(T<0&&0===o)return"".concat(w,"L").concat(t,",").concat(r,"Z");w+="L".concat(k.x,",").concat(k.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(O.x,",").concat(O.y,"\n A").concat(n,",").concat(n,",0,").concat(+(T>180),",").concat(+(l>0),",").concat(E.x,",").concat(E.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(I.x,",").concat(I.y,"Z")}else w+="L".concat(t,",").concat(r,"Z");return w}({cx:t,cy:r,innerRadius:n,outerRadius:i,cornerRadius:Math.min(m,h/2),forceCornerRadius:c,cornerIsExternal:u,startAngle:s,endAngle:l}):so({cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:s,endAngle:l}),o.createElement("path",to({},_e(this.props,!0),{className:d,d:p}))}}])&&no(t.prototype,r),n&&no(t,n),a}(o.PureComponent);function fo(e){return(fo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function po(){return(po=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ho(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function vo(e,t){return(vo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function yo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=bo(e);if(t){var i=bo(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return go(this,r)}}function go(e,t){return!t||"object"!==fo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function bo(e){return(bo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}lo.defaultProps={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1};var wo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vo(e,t)}(a,e);var t,r,n,i=yo(a);function a(){return ho(this,a),i.apply(this,arguments)}return t=a,(r=[{key:"render",value:function(){var e=this.props,t=e.cx,r=e.cy,n=e.r,i=e.className,a=P()("recharts-dot",i);return t===+t&&r===+r&&n===+n?o.createElement("circle",po({},_e(this.props),Pe(this.props),{className:a,cx:t,cy:r,r:n})):null}}])&&mo(t.prototype,r),n&&mo(t,n),a}(o.PureComponent);function xo(e){return(xo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Eo(){return(Eo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Io(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function So(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Mo(e,t){return(Mo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Oo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=jo(e);if(t){var i=jo(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ko(this,r)}}function ko(e,t){return!t||"object"!==xo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function jo(e){return(jo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var To=function(e,t,r,n,i){var o,a=Math.min(Math.abs(r)/2,Math.abs(n)/2),c=n>=0?1:-1,u=r>=0?1:-1,s=n>=0&&r>=0||n<0&&r<0?1:0;if(a>0&&i instanceof Array){for(var l=[0,0,0,0],f=0;f<4;f++)l[f]=i[f]>a?a:i[f];o="M".concat(e,",").concat(t+c*l[0]),l[0]>0&&(o+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(s,",").concat(e+u*l[0],",").concat(t)),o+="L ".concat(e+r-u*l[1],",").concat(t),l[1]>0&&(o+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(s,",\n ").concat(e+r,",").concat(t+c*l[1])),o+="L ".concat(e+r,",").concat(t+n-c*l[2]),l[2]>0&&(o+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(s,",\n ").concat(e+r-u*l[2],",").concat(t+n)),o+="L ".concat(e+u*l[3],",").concat(t+n),l[3]>0&&(o+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(s,",\n ").concat(e,",").concat(t+n-c*l[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var p=Math.min(a,i);o="M ".concat(e,",").concat(t+c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(e+u*p,",").concat(t,"\n L ").concat(e+r-u*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(e+r,",").concat(t+c*p,"\n L ").concat(e+r,",").concat(t+n-c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(e+r-u*p,",").concat(t+n,"\n L ").concat(e+u*p,",").concat(t+n,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(e,",").concat(t+n-c*p," Z")}else o="M ".concat(e,",").concat(t," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return o},Do=function(e,t){if(!e||!t)return!1;var r=e.x,n=e.y,i=t.x,o=t.y,a=t.width,c=t.height;if(Math.abs(a)>0&&Math.abs(c)>0){var u=Math.min(i,i+a),s=Math.max(i,i+a),l=Math.min(o,o+c),f=Math.max(o,o+c);return r>=u&&r<=s&&n>=l&&n<=f}return!1},Ao=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Mo(e,t)}(a,e);var t,r,n,i=Oo(a);function a(){var e;Io(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return(e=i.call.apply(i,[this].concat(r))).state={totalLength:-1},e.node=void 0,e}return t=a,(r=[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var e=this.node.getTotalLength();e&&this.setState({totalLength:e})}catch(t){}}},{key:"render",value:function(){var e=this,t=this.props,r=t.x,n=t.y,i=t.width,a=t.height,c=t.radius,u=t.className,s=this.state.totalLength,l=this.props,f=l.animationEasing,p=l.animationDuration,d=l.animationBegin,h=l.isAnimationActive,m=l.isUpdateAnimationActive;if(r!==+r||n!==+n||i!==+i||a!==+a||0===i||0===a)return null;var v=P()("recharts-rectangle",u);return m?o.createElement(sr,{canBegin:s>0,from:{width:i,height:a,x:r,y:n},to:{width:i,height:a,x:r,y:n},duration:p,animationEasing:f,isActive:m},(function(t){var r=t.width,n=t.height,i=t.x,a=t.y;return o.createElement(sr,{canBegin:s>0,from:"0px ".concat(-1===s?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,isActive:h,easing:f},o.createElement("path",Eo({},_e(e.props,!0),{className:v,d:To(i,a,r,n,c),ref:function(t){e.node=t}})))})):o.createElement("path",Eo({},_e(this.props,!0),{className:v,d:To(r,n,i,a,c)}))}}])&&So(t.prototype,r),n&&So(t,n),a}(o.PureComponent);Ao.defaultProps={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"};var _o=r(70418),Po=r.n(_o),No=r(32822);function Co(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function Lo(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var Ro={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Bo=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},Uo=function e(t,r){var n=[],i=[];return i=B()(r)?r.map((function(e){return Bo(e)})):[Bo(r)],o.Children.forEach(t,(function(t){(0,No.isFragment)(t)&&(n=n.concat(e(t.props.children,r)));var o=L()(t,"type.displayName")||L()(t,"type.name");-1!==i.indexOf(o)&&n.push(t)})),n},zo=function(e,t){var r=Uo(e,t);return r&&r[0]},Ho=function(e){if(!e||!e.props)return!1;var t=e.props,r=t.width,n=t.height;return!(!V(r)||r<=0||!V(n)||n<=0)},Go=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],Wo=function(e){return e&&e.type&&q()(e.type)&&Go.indexOf(e.type)>=0},qo=function e(t,r){if(t===r)return!0;if(o.Children.count(t)!==o.Children.count(r))return!1;var n=o.Children.count(t);if(0===n)return!0;if(1===n)return Zo(B()(t)?t[0]:t,B()(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],c=r[i];if(B()(a)||B()(c)){if(!e(a,c))return!1}else if(!Zo(a,c))return!1}return!0},Zo=function(e,t){if(Ie()(e)&&Ie()(t))return!0;if(!Ie()(e)&&!Ie()(t)){var r=e.props||{},n=r.children,i=Lo(r,["children"]),o=t.props||{},a=o.children,c=Lo(o,["children"]);return n&&a?Co(i,c)&&qo(n,a):!n&&!a&&Co(i,c)}return!1},Fo=function(e,t){var r=[],n={};return o.Children.forEach(e,(function(e,i){if(Wo(e))r.push(e);else if(e){var o=Bo(e.type),a=t[o]||{},c=a.handler,u=a.once;if(c&&(!u||!n[o])){var s=c(e,o,i);r.push(s),n[o]=!0}}})),Po()(r).filter((function(e){return!Ie()(e)}))};function Vo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Jo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vo(Object(r),!0).forEach((function(t){Yo(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Yo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xo(e){return function(e){if(Array.isArray(e))return Qo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Qo(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qo(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qo(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var $o={widthCache:{},cacheCount:0},Ko={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},ea=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],ta="recharts_measurement_span";var ra=function(e){return Object.keys(e).reduce((function(t,r){return"".concat(t).concat((n=r,n.split("").reduce((function(e,t){return t===t.toUpperCase()?[].concat(Xo(e),["-",t.toLowerCase()]):[].concat(Xo(e),[t])}),[]).join("")),":").concat(function(e,t){return ea.indexOf(e)>=0&&t===+t?"".concat(t,"px"):t}(r,e[r]),";");var n}),"")},na=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||Sr.isSsr)return{width:0,height:0};var r="".concat(e),n=ra(t),i="".concat(r,"-").concat(n);if($o.widthCache[i])return $o.widthCache[i];try{var o=document.getElementById(ta);o||((o=document.createElement("span")).setAttribute("id",ta),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=Jo(Jo({},Ko),t);Object.keys(a).map((function(e){return o.style[e]=a[e],e})),o.textContent=r;var c=o.getBoundingClientRect(),u={width:c.width,height:c.height};return $o.widthCache[i]=u,++$o.cacheCount>2e3&&($o.cacheCount=0,$o.widthCache={}),u}catch(s){return{width:0,height:0}}},ia=r(55502),oa=r.n(ia);function aa(e){return(aa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ca(){return(ca=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ua(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function sa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function la(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function fa(e,t){return(fa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ha(e);if(t){var i=ha(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return da(this,r)}}function da(e,t){return!t||"object"!==aa(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ha(e){return(ha=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ma(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(u){i=!0,o=u}finally{try{n||null==c.return||c.return()}finally{if(i)throw o}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return va(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return va(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function va(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ya(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ga(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ya(Object(r),!0).forEach((function(t){ba(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ya(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ba(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var wa=/[ \f\n\r\t\v\u2028\u2029]+/,xa=function(e){try{var t=[];return Ie()(e.children)||(t=e.breakAll?e.children.toString().split(""):e.children.toString().split(wa)),{wordsWithComputedWidth:t.map((function(t){return{word:t,width:na(t,e.style).width}})),spaceWidth:e.breakAll?0:na(" ",e.style).width}}catch(r){return null}},Ea=function(e){return[{words:Ie()(e)?[]:e.toString().split(wa)}]},Ia=function(e,t){if((e.width||e.scaleToFit)&&!Sr.isSsr&&t){var r=xa(e);return r?function(e,t,r,n,i){var o=V(e.maxLines),a=e.children,c=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var o=t.word,a=t.width,c=e[e.length-1];if(c&&(null==n||i||c.width+a+r<n))c.words.push(o),c.width+=a+r;else{var u={words:[o],width:a};e.push(u)}return e}),[])},u=c(t);if(!o)return u;for(var s,l=function(t){var r=a.slice(0,t),i=xa(ga(ga({},e),{},{children:r+"…"})).wordsWithComputedWidth,o=c(i);return[o.length>e.maxLines||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(o).width>n,o]},f=0,p=a.length-1,d=0;f<=p&&d<=a.length-1;){var h=Math.floor((f+p)/2),m=ma(l(h-1),2),v=m[0],y=m[1],g=ma(l(h),1)[0];if(v||g||(f=h+1),v&&g&&(p=h-1),!v&&g){s=y;break}d++}return s||u}(e,r.wordsWithComputedWidth,r.spaceWidth,e.width,e.scaleToFit):Ea(e.children)}return Ea(e.children)},Sa=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fa(e,t)}(a,e);var t,r,n,i=pa(a);function a(){var e;sa(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return(e=i.call.apply(i,[this].concat(r))).state={},e}return t=a,n=[{key:"getDerivedStateFromProps",value:function(e,t){if(e.width!==t.prevWidth||e.scaleToFit!==t.prevScaleToFit||e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll){var r=e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll;return{prevWidth:e.width,prevScaleToFit:e.scaleToFit,prevChildren:e.children,prevStyle:e.style,wordsByLines:Ia(e,r)}}return null}}],(r=[{key:"render",value:function(){var e=this.props,t=e.dx,r=e.dy,n=e.textAnchor,i=e.verticalAnchor,a=e.scaleToFit,c=e.angle,u=e.lineHeight,s=e.capHeight,l=e.className,f=e.breakAll,p=ua(e,["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className","breakAll"]),d=this.state.wordsByLines;if(!J(p.x)||!J(p.y))return null;var h,m=p.x+(V(t)?t:0),v=p.y+(V(r)?r:0);switch(i){case"start":h=oa()("calc(".concat(s,")"));break;case"middle":h=oa()("calc(".concat((d.length-1)/2," * -").concat(u," + (").concat(s," / 2))"));break;default:h=oa()("calc(".concat(d.length-1," * -").concat(u,")"))}var y=[];if(a){var g=d[0].width,b=this.props.width;y.push("scale(".concat((V(b)?b/g:1)/g,")"))}return c&&y.push("rotate(".concat(c,", ").concat(m,", ").concat(v,")")),y.length&&(p.transform=y.join(" ")),o.createElement("text",ca({},_e(p,!0),{x:m,y:v,className:P()("recharts-text",l),textAnchor:n}),d.map((function(e,t){return o.createElement("tspan",{x:m,dy:0===t?h:u,key:t},e.words.join(f?"":" "))})))}}])&&la(t.prototype,r),n&&la(t,n),a}(o.Component);function Ma(e){return function(e){if(Array.isArray(e))return Oa(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Oa(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Oa(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oa(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ka(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ja(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ka(Object(r),!0).forEach((function(t){Ta(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ka(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ta(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Da(){return(Da=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}Sa.defaultProps={x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end"};var Aa=function(e,t,r){var n,i,a=e.position,c=e.viewBox,u=e.offset,s=e.className,l=c,f=l.cx,p=l.cy,d=l.innerRadius,h=l.outerRadius,m=l.startAngle,v=l.endAngle,y=l.clockWise,g=(d+h)/2,b=function(e,t){return Z(t-e)*Math.min(Math.abs(t-e),360)}(m,v),w=b>=0?1:-1;"insideStart"===a?(n=m+w*u,i=y):"insideEnd"===a?(n=v-w*u,i=!y):"end"===a&&(n=v+w*u,i=y),i=b<=0?i:!i;var x=Xi(f,p,g,n),E=Xi(f,p,g,n+359*(i?1:-1)),I="M".concat(x.x,",").concat(x.y,"\n A").concat(g,",").concat(g,",0,1,").concat(i?0:1,",\n ").concat(E.x,",").concat(E.y),S=Ie()(e.id)?X("recharts-radial-line-"):e.id;return o.createElement("text",Da({},r,{dominantBaseline:"central",className:P()("recharts-radial-bar-label",s)}),o.createElement("defs",null,o.createElement("path",{id:S,d:I})),o.createElement("textPath",{xlinkHref:"#".concat(S)},t))};function _a(e){var t,r=e.viewBox,n=e.position,i=e.value,a=e.children,c=e.content,u=e.className,s=void 0===u?"":u,l=e.textBreakAll;if(!r||Ie()(i)&&Ie()(a)&&!(0,o.isValidElement)(c)&&!me()(c))return null;if((0,o.isValidElement)(c))return(0,o.cloneElement)(c,e);if(me()(c)){if(t=(0,o.createElement)(c,e),(0,o.isValidElement)(t))return t}else t=function(e){var t=e.value,r=e.formatter,n=Ie()(e.children)?t:e.children;return me()(r)?r(n):n}(e);var f=function(e){return V(e.cx)}(r),p=_e(e,!0);if(f&&("insideStart"===n||"insideEnd"===n||"end"===n))return Aa(e,t,p);var d=f?function(e){var t=e.viewBox,r=e.offset,n=e.position,i=t,o=i.cx,a=i.cy,c=i.innerRadius,u=i.outerRadius,s=(i.startAngle+i.endAngle)/2;if("outside"===n){var l=Xi(o,a,u+r,s),f=l.x;return{x:f,y:l.y,textAnchor:f>=o?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"end"};var p=Xi(o,a,(c+u)/2,s);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}}(e):function(e){var t=e.viewBox,r=e.parentViewBox,n=e.offset,i=e.position,o=t,a=o.x,c=o.y,u=o.width,s=o.height,l=s>=0?1:-1,f=l*n,p=l>0?"end":"start",d=l>0?"start":"end",h=u>=0?1:-1,m=h*n,v=h>0?"end":"start",y=h>0?"start":"end";if("top"===i)return ja(ja({},{x:a+u/2,y:c-l*n,textAnchor:"middle",verticalAnchor:p}),r?{height:Math.max(c-r.y,0),width:u}:{});if("bottom"===i)return ja(ja({},{x:a+u/2,y:c+s+f,textAnchor:"middle",verticalAnchor:d}),r?{height:Math.max(r.y+r.height-(c+s),0),width:u}:{});if("left"===i){var g={x:a-m,y:c+s/2,textAnchor:v,verticalAnchor:"middle"};return ja(ja({},g),r?{width:Math.max(g.x-r.x,0),height:s}:{})}if("right"===i){var b={x:a+u+m,y:c+s/2,textAnchor:y,verticalAnchor:"middle"};return ja(ja({},b),r?{width:Math.max(r.x+r.width-b.x,0),height:s}:{})}var w=r?{width:u,height:s}:{};return"insideLeft"===i?ja({x:a+m,y:c+s/2,textAnchor:y,verticalAnchor:"middle"},w):"insideRight"===i?ja({x:a+u-m,y:c+s/2,textAnchor:v,verticalAnchor:"middle"},w):"insideTop"===i?ja({x:a+u/2,y:c+f,textAnchor:"middle",verticalAnchor:d},w):"insideBottom"===i?ja({x:a+u/2,y:c+s-f,textAnchor:"middle",verticalAnchor:p},w):"insideTopLeft"===i?ja({x:a+m,y:c+f,textAnchor:y,verticalAnchor:d},w):"insideTopRight"===i?ja({x:a+u-m,y:c+f,textAnchor:v,verticalAnchor:d},w):"insideBottomLeft"===i?ja({x:a+m,y:c+s-f,textAnchor:y,verticalAnchor:p},w):"insideBottomRight"===i?ja({x:a+u-m,y:c+s-f,textAnchor:v,verticalAnchor:p},w):ke()(i)&&(V(i.x)||F(i.x))&&(V(i.y)||F(i.y))?ja({x:a+Q(i.x,u),y:c+Q(i.y,s),textAnchor:"end",verticalAnchor:"end"},w):ja({x:a+u/2,y:c+s/2,textAnchor:"middle",verticalAnchor:"middle"},w)}(e);return o.createElement(Sa,Da({className:P()("recharts-label",s)},p,d,{breakAll:l}),t)}_a.displayName="Label",_a.defaultProps={offset:5};var Pa=function(e){var t=e.cx,r=e.cy,n=e.angle,i=e.startAngle,o=e.endAngle,a=e.r,c=e.radius,u=e.innerRadius,s=e.outerRadius,l=e.x,f=e.y,p=e.top,d=e.left,h=e.width,m=e.height,v=e.clockWise,y=e.labelViewBox;if(y)return y;if(V(h)&&V(m)){if(V(l)&&V(f))return{x:l,y:f,width:h,height:m};if(V(p)&&V(d))return{x:p,y:d,width:h,height:m}}return V(l)&&V(f)?{x:l,y:f,width:0,height:0}:V(t)&&V(r)?{cx:t,cy:r,startAngle:i||n||0,endAngle:o||n||0,innerRadius:u||0,outerRadius:s||c||a||0,clockWise:v}:e.viewBox?e.viewBox:{}},Na=function(e,t){return e?!0===e?o.createElement(_a,{key:"label-implicit",viewBox:t}):J(e)?o.createElement(_a,{key:"label-implicit",viewBox:t,value:e}):(0,o.isValidElement)(e)?e.type===_a?(0,o.cloneElement)(e,{key:"label-implicit",viewBox:t}):o.createElement(_a,{key:"label-implicit",content:e,viewBox:t}):me()(e)?o.createElement(_a,{key:"label-implicit",content:e,viewBox:t}):ke()(e)?o.createElement(_a,Da({viewBox:t},e,{key:"label-implicit"})):null:null};function Ca(e){return(Ca="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function La(){return(La=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Ra(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ba(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ra(Object(r),!0).forEach((function(t){Ua(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ra(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ua(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function za(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Ha(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ga(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Wa(e,t){return(Wa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function qa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Fa(e);if(t){var i=Fa(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Za(this,r)}}function Za(e,t){return!t||"object"!==Ca(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Fa(e){return(Fa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}_a.parseViewBox=Pa,_a.renderCallByParent=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=Pa(e),a=Uo(n,_a.displayName).map((function(e,r){return(0,o.cloneElement)(e,{viewBox:t||i,key:"label-".concat(r)})}));if(!r)return a;var c=Na(e.label,t||i);return[c].concat(Ma(a))};var Va=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Wa(e,t)}(a,e);var t,r,n,i=qa(a);function a(){return Ha(this,a),i.apply(this,arguments)}return t=a,n=[{key:"getTicks",value:function(e){var t=e.tick,r=e.ticks,n=e.viewBox,i=e.minTickGap,o=e.orientation,c=e.interval,u=e.tickFormatter,s=e.unit;return r&&r.length&&t?V(c)||Sr.isSsr?a.getNumberIntervalTicks(r,"number"==typeof c&&V(c)?c:0):"preserveStartEnd"===c?a.getTicksStart({ticks:r,tickFormatter:u,viewBox:n,orientation:o,minTickGap:i,unit:s},!0):"preserveStart"===c?a.getTicksStart({ticks:r,tickFormatter:u,viewBox:n,orientation:o,minTickGap:i,unit:s}):a.getTicksEnd({ticks:r,tickFormatter:u,viewBox:n,orientation:o,minTickGap:i,unit:s}):[]}},{key:"getNumberIntervalTicks",value:function(e,t){return e.filter((function(e,r){return r%(t+1)==0}))}},{key:"getTicksStart",value:function(e,t){var r,n,i=e.ticks,o=e.tickFormatter,a=e.viewBox,c=e.orientation,u=e.minTickGap,s=e.unit,l=a.x,f=a.y,p=a.width,d=a.height,h="top"===c||"bottom"===c?"width":"height",m=(i||[]).slice(),v=s&&"width"===h?na(s)[h]:0,y=m.length,g=y>=2?Z(m[1].coordinate-m[0].coordinate):1;if(1===g?(r="width"===h?l:f,n="width"===h?l+p:f+d):(r="width"===h?l+p:f+d,n="width"===h?l:f),t){var b=i[y-1],w=me()(o)?o(b.value,y-1):b.value,x=na(w)[h]+v,E=g*(b.coordinate+g*x/2-n);m[y-1]=b=Ba(Ba({},b),{},{tickCoord:E>0?b.coordinate-E*g:b.coordinate}),g*(b.tickCoord-g*x/2-r)>=0&&g*(b.tickCoord+g*x/2-n)<=0&&(n=b.tickCoord-g*(x/2+u),m[y-1]=Ba(Ba({},b),{},{isShow:!0}))}for(var I=t?y-1:y,S=0;S<I;S++){var M=m[S],O=me()(o)?o(M.value,S):M.value,k=na(O)[h]+v;if(0===S){var j=g*(M.coordinate-g*k/2-r);m[S]=M=Ba(Ba({},M),{},{tickCoord:j<0?M.coordinate-j*g:M.coordinate})}else m[S]=M=Ba(Ba({},M),{},{tickCoord:M.coordinate});g*(M.tickCoord-g*k/2-r)>=0&&g*(M.tickCoord+g*k/2-n)<=0&&(r=M.tickCoord+g*(k/2+u),m[S]=Ba(Ba({},M),{},{isShow:!0}))}return m.filter((function(e){return e.isShow}))}},{key:"getTicksEnd",value:function(e){var t,r,n=e.ticks,i=e.tickFormatter,o=e.viewBox,a=e.orientation,c=e.minTickGap,u=e.unit,s=o.x,l=o.y,f=o.width,p=o.height,d="top"===a||"bottom"===a?"width":"height",h=u&&"width"===d?na(u)[d]:0,m=(n||[]).slice(),v=m.length,y=v>=2?Z(m[1].coordinate-m[0].coordinate):1;1===y?(t="width"===d?s:l,r="width"===d?s+f:l+p):(t="width"===d?s+f:l+p,r="width"===d?s:l);for(var g=v-1;g>=0;g--){var b=m[g],w=me()(i)?i(b.value,v-g-1):b.value,x=na(w)[d]+h;if(g===v-1){var E=y*(b.coordinate+y*x/2-r);m[g]=b=Ba(Ba({},b),{},{tickCoord:E>0?b.coordinate-E*y:b.coordinate})}else m[g]=b=Ba(Ba({},b),{},{tickCoord:b.coordinate});y*(b.tickCoord-y*x/2-t)>=0&&y*(b.tickCoord+y*x/2-r)<=0&&(r=b.tickCoord-y*(x/2+c),m[g]=Ba(Ba({},b),{},{isShow:!0}))}return m.filter((function(e){return e.isShow}))}},{key:"renderTickItem",value:function(e,t,r){return o.isValidElement(e)?o.cloneElement(e,t):me()(e)?e(t):o.createElement(Sa,La({},t,{className:"recharts-cartesian-axis-tick-value"}),r)}}],(r=[{key:"shouldComponentUpdate",value:function(e){var t=e.viewBox,r=za(e,["viewBox"]),n=this.props,i=n.viewBox,o=za(n,["viewBox"]);return!Co(t,i)||!Co(r,o)}},{key:"getTickLineCoord",value:function(e){var t,r,n,i,o,a,c=this.props,u=c.x,s=c.y,l=c.width,f=c.height,p=c.orientation,d=c.tickSize,h=c.mirror,m=c.tickMargin,v=h?-1:1,y=e.tickSize||d,g=V(e.tickCoord)?e.tickCoord:e.coordinate;switch(p){case"top":t=r=e.coordinate,a=(n=(i=s+ +!h*f)-v*y)-v*m,o=g;break;case"left":n=i=e.coordinate,o=(t=(r=u+ +!h*l)-v*y)-v*m,a=g;break;case"right":n=i=e.coordinate,o=(t=(r=u+ +h*l)+v*y)+v*m,a=g;break;default:t=r=e.coordinate,a=(n=(i=s+ +h*f)+v*y)+v*m,o=g}return{line:{x1:t,y1:n,x2:r,y2:i},tick:{x:o,y:a}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,r=t.orientation,n=t.mirror;switch(r){case"left":e=n?"start":"end";break;case"right":e=n?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,r=e.mirror,n="end";switch(t){case"left":case"right":n="middle";break;case"top":n=r?"start":"end";break;default:n=r?"end":"start"}return n}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.x,r=e.y,n=e.width,i=e.height,a=e.orientation,c=e.mirror,u=e.axisLine,s=Ba(Ba(Ba({},_e(this.props)),_e(u)),{},{fill:"none"});if("top"===a||"bottom"===a){var l=+("top"===a&&!c||"bottom"===a&&c);s=Ba(Ba({},s),{},{x1:t,y1:r+l*i,x2:t+n,y2:r+l*i})}else{var f=+("left"===a&&!c||"right"===a&&c);s=Ba(Ba({},s),{},{x1:t+f*n,y1:r,x2:t+f*n,y2:r+i})}return o.createElement("line",La({},s,{className:P()("recharts-cartesian-axis-line",L()(u,"className"))}))}},{key:"renderTicks",value:function(e){var t=this,r=this.props,n=r.tickLine,i=r.stroke,c=r.tick,u=r.tickFormatter,s=r.unit,l=a.getTicks(Ba(Ba({},this.props),{},{ticks:e})),f=this.getTickTextAnchor(),p=this.getTickVerticalAnchor(),d=_e(this.props),h=_e(c),m=Ba(Ba({},d),{},{fill:"none"},_e(n)),v=l.map((function(e,r){var v=t.getTickLineCoord(e),y=v.line,g=v.tick,b=Ba(Ba(Ba(Ba({textAnchor:f,verticalAnchor:p},d),{},{stroke:"none",fill:i},h),g),{},{index:r,payload:e,visibleTicksCount:l.length,tickFormatter:u});return o.createElement(ze,La({className:"recharts-cartesian-axis-tick",key:"tick-".concat(r)},Ne(t.props,e,r)),n&&o.createElement("line",La({},m,y,{className:P()("recharts-cartesian-axis-tick-line",L()(n,"className"))})),c&&a.renderTickItem(c,b,"".concat(me()(u)?u(e.value,r):e.value).concat(s||"")))}));return o.createElement("g",{className:"recharts-cartesian-axis-ticks"},v)}},{key:"render",value:function(){var e=this.props,t=e.axisLine,r=e.width,n=e.height,i=e.ticksGenerator,a=e.className;if(e.hide)return null;var c=this.props,u=c.ticks,s=za(c,["ticks"]),l=u;return me()(i)&&(l=u&&u.length>0?i(this.props):i(s)),r<=0||n<=0||!l||!l.length?null:o.createElement(ze,{className:P()("recharts-cartesian-axis",a)},t&&this.renderAxisLine(),this.renderTicks(l),_a.renderCallByParent(this.props))}}])&&Ga(t.prototype,r),n&&Ga(t,n),a}(o.Component);function Ja(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((t-e)/r)),o=new Array(i);++n<i;)o[n]=e+n*r;return o}function Ya(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function Xa(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}Va.displayName="CartesianAxis",Va.defaultProps={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"};const Qa=Symbol("implicit");function $a(){var e=new Map,t=[],r=[],n=Qa;function i(i){var o=i+"",a=e.get(o);if(!a){if(n!==Qa)return n;e.set(o,a=t.push(i))}return r[(a-1)%r.length]}return i.domain=function(r){if(!arguments.length)return t.slice();t=[],e=new Map;for(const n of r){const r=n+"";e.has(r)||e.set(r,t.push(n))}return i},i.range=function(e){return arguments.length?(r=Array.from(e),i):r.slice()},i.unknown=function(e){return arguments.length?(n=e,i):n},i.copy=function(){return $a(t,r).unknown(n)},Ya.apply(i,arguments),i}function Ka(){var e,t,r=$a().unknown(void 0),n=r.domain,i=r.range,o=0,a=1,c=!1,u=0,s=0,l=.5;function f(){var r=n().length,f=a<o,p=f?a:o,d=f?o:a;e=(d-p)/Math.max(1,r-u+2*s),c&&(e=Math.floor(e)),p+=(d-p-e*(r-u))*l,t=e*(1-u),c&&(p=Math.round(p),t=Math.round(t));var h=Ja(r).map((function(t){return p+e*t}));return i(f?h.reverse():h)}return delete r.unknown,r.domain=function(e){return arguments.length?(n(e),f()):n()},r.range=function(e){return arguments.length?([o,a]=e,o=+o,a=+a,f()):[o,a]},r.rangeRound=function(e){return[o,a]=e,o=+o,a=+a,c=!0,f()},r.bandwidth=function(){return t},r.step=function(){return e},r.round=function(e){return arguments.length?(c=!!e,f()):c},r.padding=function(e){return arguments.length?(u=Math.min(1,s=+e),f()):u},r.paddingInner=function(e){return arguments.length?(u=Math.min(1,e),f()):u},r.paddingOuter=function(e){return arguments.length?(s=+e,f()):s},r.align=function(e){return arguments.length?(l=Math.max(0,Math.min(1,e)),f()):l},r.copy=function(){return Ka(n(),[o,a]).round(c).paddingInner(u).paddingOuter(s).align(l)},Ya.apply(f(),arguments)}function ec(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return ec(t())},e}function tc(){return ec(Ka.apply(null,arguments).paddingInner(1))}var rc=r(60879),nc=r.n(rc),ic=r(11974),oc=r.n(ic),ac=r(33323),cc=r.n(ac),uc=r(41719),sc=r.n(uc),lc=r(26058),fc=r.n(lc);function pc(e){return function(e){if(Array.isArray(e))return dc(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return dc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return dc(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var hc=function(e){return e},mc={"@@functional/placeholder":!0},vc=function(e){return e===mc},yc=function(e){return function t(){return 0===arguments.length||1===arguments.length&&vc(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},gc=function e(t,r){return 1===t?r:yc((function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=i.filter((function(e){return e!==mc})).length;return a>=t?r.apply(void 0,i):e(t-a,yc((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=i.map((function(e){return vc(e)?t.shift():e}));return r.apply(void 0,pc(o).concat(t))})))}))},bc=function(e){return gc(e.length,e)},wc=function(e,t){for(var r=[],n=e;n<t;++n)r[n-e]=n;return r},xc=bc((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)})),Ec=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!t.length)return hc;var n=t.reverse(),i=n[0],o=n.slice(1);return function(){return o.reduce((function(e,t){return t(e)}),i.apply(void 0,arguments))}},Ic=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},Sc=function(e){var t=null,r=null;return function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return t&&i.every((function(e,r){return e===t[r]}))?r:(t=i,r=e.apply(void 0,i))}};var Mc={rangeStep:function(e,t,r){for(var n=new(fc())(e),i=0,o=[];n.lt(t)&&i<1e5;)o.push(n.toNumber()),n=n.add(r),i++;return o},getDigitCount:function(e){return 0===e?1:Math.floor(new(fc())(e).abs().log(10).toNumber())+1},interpolateNumber:bc((function(e,t,r){var n=+e;return n+r*(+t-n)})),uninterpolateNumber:bc((function(e,t,r){var n=t-+e;return(r-e)/(n=n||1/0)})),uninterpolateTruncation:bc((function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))}))};function Oc(e){return function(e){if(Array.isArray(e))return Tc(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||jc(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(u){i=!0,o=u}finally{try{n||null==c.return||c.return()}finally{if(i)throw o}}return r}(e,t)||jc(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jc(e,t){if(e){if("string"==typeof e)return Tc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Tc(e,t):void 0}}function Tc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Dc(e){var t=kc(e,2),r=t[0],n=t[1],i=r,o=n;return r>n&&(i=n,o=r),[i,o]}function Ac(e,t,r){if(e.lte(0))return new(fc())(0);var n=Mc.getDigitCount(e.toNumber()),i=new(fc())(10).pow(n),o=e.div(i),a=1!==n?.05:.1,c=new(fc())(Math.ceil(o.div(a).toNumber())).add(r).mul(a).mul(i);return t?c:new(fc())(Math.ceil(c))}function _c(e,t,r){var n=1,i=new(fc())(e);if(!i.isint()&&r){var o=Math.abs(e);o<1?(n=new(fc())(10).pow(Mc.getDigitCount(e)-1),i=new(fc())(Math.floor(i.div(n).toNumber())).mul(n)):o>1&&(i=new(fc())(Math.floor(e)))}else 0===e?i=new(fc())(Math.floor((t-1)/2)):r||(i=new(fc())(Math.floor(e)));var a=Math.floor((t-1)/2);return Ec(xc((function(e){return i.add(new(fc())(e-a).mul(n)).toNumber()})),wc)(0,t)}function Pc(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new(fc())(0),tickMin:new(fc())(0),tickMax:new(fc())(0)};var o,a=Ac(new(fc())(t).sub(e).div(r-1),n,i);o=e<=0&&t>=0?new(fc())(0):(o=new(fc())(e).add(t).div(2)).sub(new(fc())(o).mod(a));var c=Math.ceil(o.sub(e).div(a).toNumber()),u=Math.ceil(new(fc())(t).sub(o).div(a).toNumber()),s=c+u+1;return s>r?Pc(e,t,r,n,i+1):(s<r&&(u=t>0?u+(r-s):u,c=t>0?c:c+(r-s)),{step:a,tickMin:o.sub(new(fc())(c).mul(a)),tickMax:o.add(new(fc())(u).mul(a))})}var Nc=Sc((function(e){var t=kc(e,2),r=t[0],n=t[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(i,2),c=Dc([r,n]),u=kc(c,2),s=u[0],l=u[1];if(s===-1/0||l===1/0){var f=l===1/0?[s].concat(Oc(wc(0,i-1).map((function(){return 1/0})))):[].concat(Oc(wc(0,i-1).map((function(){return-1/0}))),[l]);return r>n?Ic(f):f}if(s===l)return _c(s,i,o);var p=Pc(s,l,a,o),d=p.step,h=p.tickMin,m=p.tickMax,v=Mc.rangeStep(h,m.add(new(fc())(.1).mul(d)),d);return r>n?Ic(v):v})),Cc=(Sc((function(e){var t=kc(e,2),r=t[0],n=t[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(i,2),c=Dc([r,n]),u=kc(c,2),s=u[0],l=u[1];if(s===-1/0||l===1/0)return[r,n];if(s===l)return _c(s,i,o);var f=Ac(new(fc())(l).sub(s).div(a-1),o,0),p=Ec(xc((function(e){return new(fc())(s).add(new(fc())(e).mul(f)).toNumber()})),wc),d=p(0,a).filter((function(e){return e>=s&&e<=l}));return r>n?Ic(d):d})),Sc((function(e,t){var r=kc(e,2),n=r[0],i=r[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Dc([n,i]),c=kc(a,2),u=c[0],s=c[1];if(u===-1/0||s===1/0)return[n,i];if(u===s)return[u];var l=Math.max(t,2),f=Ac(new(fc())(s).sub(u).div(l-1),o,0),p=[].concat(Oc(Mc.rangeStep(new(fc())(u),new(fc())(s).sub(new(fc())(.99).mul(f)),f)),[s]);return n>i?Ic(p):p}))),Lc=Math.sqrt(50),Rc=Math.sqrt(10),Bc=Math.sqrt(2);function Uc(e,t,r){var n,i,o,a,c=-1;if(r=+r,(e=+e)===(t=+t)&&r>0)return[e];if((n=t<e)&&(i=e,e=t,t=i),0===(a=zc(e,t,r))||!isFinite(a))return[];if(a>0){let r=Math.round(e/a),n=Math.round(t/a);for(r*a<e&&++r,n*a>t&&--n,o=new Array(i=n-r+1);++c<i;)o[c]=(r+c)*a}else{a=-a;let r=Math.round(e*a),n=Math.round(t*a);for(r/a<e&&++r,n/a>t&&--n,o=new Array(i=n-r+1);++c<i;)o[c]=(r+c)/a}return n&&o.reverse(),o}function zc(e,t,r){var n=(t-e)/Math.max(0,r),i=Math.floor(Math.log(n)/Math.LN10),o=n/Math.pow(10,i);return i>=0?(o>=Lc?10:o>=Rc?5:o>=Bc?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Lc?10:o>=Rc?5:o>=Bc?2:1)}function Hc(e,t,r){var n=Math.abs(t-e)/Math.max(0,r),i=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),o=n/i;return o>=Lc?i*=10:o>=Rc?i*=5:o>=Bc&&(i*=2),t<e?-i:i}function Gc(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Wc(e){let t=e,r=e;function n(e,t,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n<i;){const o=n+i>>>1;r(e[o],t)<0?n=o+1:i=o}return n}return 1===e.length&&(t=(t,r)=>e(t)-r,r=function(e){return(t,r)=>Gc(e(t),r)}(e)),{left:n,center:function(e,r,i,o){null==i&&(i=0),null==o&&(o=e.length);const a=n(e,r,i,o-1);return a>i&&t(e[a-1],r)>-t(e[a],r)?a-1:a},right:function(e,t,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n<i;){const o=n+i>>>1;r(e[o],t)>0?i=o:n=o+1}return n}}}function qc(e){return null===e?NaN:+e}const Zc=Wc(Gc),Fc=Zc.right;Zc.left,Wc(qc).center;var Vc=Fc;function Jc(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Yc(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Xc(){}var Qc=.7,$c=1/Qc,Kc="\\s*([+-]?\\d+)\\s*",eu="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",tu="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ru=/^#([0-9a-f]{3,8})$/,nu=new RegExp("^rgb\\("+[Kc,Kc,Kc]+"\\)$"),iu=new RegExp("^rgb\\("+[tu,tu,tu]+"\\)$"),ou=new RegExp("^rgba\\("+[Kc,Kc,Kc,eu]+"\\)$"),au=new RegExp("^rgba\\("+[tu,tu,tu,eu]+"\\)$"),cu=new RegExp("^hsl\\("+[eu,tu,tu]+"\\)$"),uu=new RegExp("^hsla\\("+[eu,tu,tu,eu]+"\\)$"),su={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function lu(){return this.rgb().formatHex()}function fu(){return this.rgb().formatRgb()}function pu(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=ru.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?du(t):3===r?new yu(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?hu(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?hu(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=nu.exec(e))?new yu(t[1],t[2],t[3],1):(t=iu.exec(e))?new yu(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ou.exec(e))?hu(t[1],t[2],t[3],t[4]):(t=au.exec(e))?hu(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=cu.exec(e))?xu(t[1],t[2]/100,t[3]/100,1):(t=uu.exec(e))?xu(t[1],t[2]/100,t[3]/100,t[4]):su.hasOwnProperty(e)?du(su[e]):"transparent"===e?new yu(NaN,NaN,NaN,0):null}function du(e){return new yu(e>>16&255,e>>8&255,255&e,1)}function hu(e,t,r,n){return n<=0&&(e=t=r=NaN),new yu(e,t,r,n)}function mu(e){return e instanceof Xc||(e=pu(e)),e?new yu((e=e.rgb()).r,e.g,e.b,e.opacity):new yu}function vu(e,t,r,n){return 1===arguments.length?mu(e):new yu(e,t,r,null==n?1:n)}function yu(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function gu(){return"#"+wu(this.r)+wu(this.g)+wu(this.b)}function bu(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function wu(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function xu(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Iu(e,t,r,n)}function Eu(e){if(e instanceof Iu)return new Iu(e.h,e.s,e.l,e.opacity);if(e instanceof Xc||(e=pu(e)),!e)return new Iu;if(e instanceof Iu)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),o=Math.max(t,r,n),a=NaN,c=o-i,u=(o+i)/2;return c?(a=t===o?(r-n)/c+6*(r<n):r===o?(n-t)/c+2:(t-r)/c+4,c/=u<.5?o+i:2-o-i,a*=60):c=u>0&&u<1?0:a,new Iu(a,c,u,e.opacity)}function Iu(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Su(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}function Mu(e,t,r,n,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*r+(1+3*e+3*o-3*a)*n+a*i)/6}Jc(Xc,pu,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:lu,formatHex:lu,formatHsl:function(){return Eu(this).formatHsl()},formatRgb:fu,toString:fu}),Jc(yu,vu,Yc(Xc,{brighter:function(e){return e=null==e?$c:Math.pow($c,e),new yu(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?Qc:Math.pow(Qc,e),new yu(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:gu,formatHex:gu,formatRgb:bu,toString:bu})),Jc(Iu,(function(e,t,r,n){return 1===arguments.length?Eu(e):new Iu(e,t,r,null==n?1:n)}),Yc(Xc,{brighter:function(e){return e=null==e?$c:Math.pow($c,e),new Iu(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Qc:Math.pow(Qc,e),new Iu(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new yu(Su(e>=240?e-240:e+120,i,n),Su(e,i,n),Su(e<120?e+240:e-120,i,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var Ou=e=>()=>e;function ku(e,t){return function(r){return e+r*t}}function ju(e){return 1==(e=+e)?Tu:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):Ou(isNaN(t)?r:t)}}function Tu(e,t){var r=t-e;return r?ku(e,r):Ou(isNaN(e)?t:e)}var Du=function e(t){var r=ju(t);function n(e,t){var n=r((e=vu(e)).r,(t=vu(t)).r),i=r(e.g,t.g),o=r(e.b,t.b),a=Tu(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);function Au(e){return function(t){var r,n,i=t.length,o=new Array(i),a=new Array(i),c=new Array(i);for(r=0;r<i;++r)n=vu(t[r]),o[r]=n.r||0,a[r]=n.g||0,c[r]=n.b||0;return o=e(o),a=e(a),c=e(c),n.opacity=1,function(e){return n.r=o(e),n.g=a(e),n.b=c(e),n+""}}}Au((function(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],o=e[n+1],a=n>0?e[n-1]:2*i-o,c=n<t-1?e[n+2]:2*o-i;return Mu((r-n/t)*t,a,i,o,c)}})),Au((function(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],o=e[n%t],a=e[(n+1)%t],c=e[(n+2)%t];return Mu((r-n/t)*t,i,o,a,c)}}));function _u(e,t){var r,n=t?t.length:0,i=e?Math.min(n,e.length):0,o=new Array(i),a=new Array(n);for(r=0;r<i;++r)o[r]=zu(e[r],t[r]);for(;r<n;++r)a[r]=t[r];return function(e){for(r=0;r<i;++r)a[r]=o[r](e);return a}}function Pu(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Nu(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function Cu(e,t){var r,n={},i={};for(r in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)r in e?n[r]=zu(e[r],t[r]):i[r]=t[r];return function(e){for(r in n)i[r]=n[r](e);return i}}var Lu=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ru=new RegExp(Lu.source,"g");function Bu(e,t){var r,n,i,o=Lu.lastIndex=Ru.lastIndex=0,a=-1,c=[],u=[];for(e+="",t+="";(r=Lu.exec(e))&&(n=Ru.exec(t));)(i=n.index)>o&&(i=t.slice(o,i),c[a]?c[a]+=i:c[++a]=i),(r=r[0])===(n=n[0])?c[a]?c[a]+=n:c[++a]=n:(c[++a]=null,u.push({i:a,x:Nu(r,n)})),o=Ru.lastIndex;return o<t.length&&(i=t.slice(o),c[a]?c[a]+=i:c[++a]=i),c.length<2?u[0]?function(e){return function(t){return e(t)+""}}(u[0].x):function(e){return function(){return e}}(t):(t=u.length,function(e){for(var r,n=0;n<t;++n)c[(r=u[n]).i]=r.x(e);return c.join("")})}function Uu(e,t){t||(t=[]);var r,n=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(r=0;r<n;++r)i[r]=e[r]*(1-o)+t[r]*o;return i}}function zu(e,t){var r,n,i=typeof t;return null==t||"boolean"===i?Ou(t):("number"===i?Nu:"string"===i?(r=pu(t))?(t=r,Du):Bu:t instanceof pu?Du:t instanceof Date?Pu:(n=t,!ArrayBuffer.isView(n)||n instanceof DataView?Array.isArray(t)?_u:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Cu:Nu:Uu))(e,t)}function Hu(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function Gu(e){return+e}var Wu=[0,1];function qu(e){return e}function Zu(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:(r=isNaN(t)?NaN:.5,function(){return r});var r}function Fu(e,t,r){var n=e[0],i=e[1],o=t[0],a=t[1];return i<n?(n=Zu(i,n),o=r(a,o)):(n=Zu(n,i),o=r(o,a)),function(e){return o(n(e))}}function Vu(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),o=new Array(n),a=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<n;)i[a]=Zu(e[a],e[a+1]),o[a]=r(t[a],t[a+1]);return function(t){var r=Vc(e,t,1,n)-1;return o[r](i[r](t))}}function Ju(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Yu(){var e,t,r,n,i,o,a=Wu,c=Wu,u=zu,s=qu;function l(){var e=Math.min(a.length,c.length);return s!==qu&&(s=function(e,t){var r;return e>t&&(r=e,e=t,t=r),function(r){return Math.max(e,Math.min(t,r))}}(a[0],a[e-1])),n=e>2?Vu:Fu,i=o=null,f}function f(t){return null==t||isNaN(t=+t)?r:(i||(i=n(a.map(e),c,u)))(e(s(t)))}return f.invert=function(r){return s(t((o||(o=n(c,a.map(e),Nu)))(r)))},f.domain=function(e){return arguments.length?(a=Array.from(e,Gu),l()):a.slice()},f.range=function(e){return arguments.length?(c=Array.from(e),l()):c.slice()},f.rangeRound=function(e){return c=Array.from(e),u=Hu,l()},f.clamp=function(e){return arguments.length?(s=!!e||qu,l()):s!==qu},f.interpolate=function(e){return arguments.length?(u=e,l()):u},f.unknown=function(e){return arguments.length?(r=e,f):r},function(r,n){return e=r,t=n,l()}}function Xu(){return Yu()(qu,qu)}var Qu,$u=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ku(e){if(!(t=$u.exec(e)))throw new Error("invalid format: "+e);var t;return new es({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function es(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function ts(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function rs(e){return(e=ts(Math.abs(e)))?e[1]:NaN}function ns(e,t){var r=ts(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}Ku.prototype=es.prototype,es.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var is={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>ns(100*e,t),r:ns,s:function(e,t){var r=ts(e,t);if(!r)return e+"";var n=r[0],i=r[1],o=i-(Qu=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=n.length;return o===a?n:o>a?n+new Array(o-a+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+ts(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function os(e){return e}var as,cs,us,ss=Array.prototype.map,ls=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function fs(e){var t,r,n=void 0===e.grouping||void 0===e.thousands?os:(t=ss.call(e.grouping,Number),r=e.thousands+"",function(e,n){for(var i=e.length,o=[],a=0,c=t[0],u=0;i>0&&c>0&&(u+c+1>n&&(c=Math.max(1,n-u)),o.push(e.substring(i-=c,i+c)),!((u+=c+1)>n));)c=t[a=(a+1)%t.length];return o.reverse().join(r)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",c=void 0===e.numerals?os:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(ss.call(e.numerals,String)),u=void 0===e.percent?"%":e.percent+"",s=void 0===e.minus?"−":e.minus+"",l=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=Ku(e)).fill,r=e.align,f=e.sign,p=e.symbol,d=e.zero,h=e.width,m=e.comma,v=e.precision,y=e.trim,g=e.type;"n"===g?(m=!0,g="g"):is[g]||(void 0===v&&(v=12),y=!0,g="g"),(d||"0"===t&&"="===r)&&(d=!0,t="0",r="=");var b="$"===p?i:"#"===p&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",w="$"===p?o:/[%p]/.test(g)?u:"",x=is[g],E=/[defgprs%]/.test(g);function I(e){var i,o,u,p=b,I=w;if("c"===g)I=x(e)+I,e="";else{var S=(e=+e)<0||1/e<0;if(e=isNaN(e)?l:x(Math.abs(e),v),y&&(e=function(e){e:for(var t,r=e.length,n=1,i=-1;n<r;++n)switch(e[n]){case".":i=t=n;break;case"0":0===i&&(i=n),t=n;break;default:if(!+e[n])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==f&&(S=!1),p=(S?"("===f?f:s:"-"===f||"("===f?"":f)+p,I=("s"===g?ls[8+Qu/3]:"")+I+(S&&"("===f?")":""),E)for(i=-1,o=e.length;++i<o;)if(48>(u=e.charCodeAt(i))||u>57){I=(46===u?a+e.slice(i+1):e.slice(i))+I,e=e.slice(0,i);break}}m&&!d&&(e=n(e,1/0));var M=p.length+e.length+I.length,O=M<h?new Array(h-M+1).join(t):"";switch(m&&d&&(e=n(O+e,O.length?h-I.length:1/0),O=""),r){case"<":e=p+e+I+O;break;case"=":e=p+O+e+I;break;case"^":e=O.slice(0,M=O.length>>1)+p+e+I+O.slice(M);break;default:e=O+p+e+I}return c(e)}return v=void 0===v?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),I.toString=function(){return e+""},I}return{format:f,formatPrefix:function(e,t){var r=f(((e=Ku(e)).type="f",e)),n=3*Math.max(-8,Math.min(8,Math.floor(rs(t)/3))),i=Math.pow(10,-n),o=ls[8+n/3];return function(e){return r(i*e)+o}}}}function ps(e,t,r,n){var i,o=Hc(e,t,r);switch((n=Ku(null==n?",f":n)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=n.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(rs(t)/3)))-rs(Math.abs(e)))}(o,a))||(n.precision=i),us(n,a);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,rs(t)-rs(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(n.precision=i-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(i=function(e){return Math.max(0,-rs(Math.abs(e)))}(o))||(n.precision=i-2*("%"===n.type))}return cs(n)}function ds(e){var t=e.domain;return e.ticks=function(e){var r=t();return Uc(r[0],r[r.length-1],null==e?10:e)},e.tickFormat=function(e,r){var n=t();return ps(n[0],n[n.length-1],null==e?10:e,r)},e.nice=function(r){null==r&&(r=10);var n,i,o=t(),a=0,c=o.length-1,u=o[a],s=o[c],l=10;for(s<u&&(i=u,u=s,s=i,i=a,a=c,c=i);l-- >0;){if((i=zc(u,s,r))===n)return o[a]=u,o[c]=s,t(o);if(i>0)u=Math.floor(u/i)*i,s=Math.ceil(s/i)*i;else{if(!(i<0))break;u=Math.ceil(u*i)/i,s=Math.floor(s*i)/i}n=i}return e},e}function hs(){var e=Xu();return e.copy=function(){return Ju(e,hs())},Ya.apply(e,arguments),ds(e)}function ms(e){var t;function r(e){return null==e||isNaN(e=+e)?t:e}return r.invert=r,r.domain=r.range=function(t){return arguments.length?(e=Array.from(t,Gu),r):e.slice()},r.unknown=function(e){return arguments.length?(t=e,r):t},r.copy=function(){return ms(e).unknown(t)},e=arguments.length?Array.from(e,Gu):[0,1],ds(r)}function vs(e,t){var r,n=0,i=(e=e.slice()).length-1,o=e[n],a=e[i];return a<o&&(r=n,n=i,i=r,r=o,o=a,a=r),e[n]=t.floor(o),e[i]=t.ceil(a),e}function ys(e){return Math.log(e)}function gs(e){return Math.exp(e)}function bs(e){return-Math.log(-e)}function ws(e){return-Math.exp(-e)}function xs(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Es(e){return function(t){return-e(-t)}}function Is(e){var t,r,n=e(ys,gs),i=n.domain,o=10;function a(){return t=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}(o),r=function(e){return 10===e?xs:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}(o),i()[0]<0?(t=Es(t),r=Es(r),e(bs,ws)):e(ys,gs),n}return n.base=function(e){return arguments.length?(o=+e,a()):o},n.domain=function(e){return arguments.length?(i(e),a()):i()},n.ticks=function(e){var n,a=i(),c=a[0],u=a[a.length-1];(n=u<c)&&(p=c,c=u,u=p);var s,l,f,p=t(c),d=t(u),h=null==e?10:+e,m=[];if(!(o%1)&&d-p<h){if(p=Math.floor(p),d=Math.ceil(d),c>0){for(;p<=d;++p)for(l=1,s=r(p);l<o;++l)if(!((f=s*l)<c)){if(f>u)break;m.push(f)}}else for(;p<=d;++p)for(l=o-1,s=r(p);l>=1;--l)if(!((f=s*l)<c)){if(f>u)break;m.push(f)}2*m.length<h&&(m=Uc(c,u,h))}else m=Uc(p,d,Math.min(d-p,h)).map(r);return n?m.reverse():m},n.tickFormat=function(e,i){if(null==i&&(i=10===o?".0e":","),"function"!=typeof i&&(i=cs(i)),e===1/0)return i;null==e&&(e=10);var a=Math.max(1,o*e/n.ticks().length);return function(e){var n=e/r(Math.round(t(e)));return n*o<o-.5&&(n*=o),n<=a?i(e):""}},n.nice=function(){return i(vs(i(),{floor:function(e){return r(Math.floor(t(e)))},ceil:function(e){return r(Math.ceil(t(e)))}}))},n}function Ss(){var e=Is(Yu()).domain([1,10]);return e.copy=function(){return Ju(e,Ss()).base(e.base())},Ya.apply(e,arguments),e}function Ms(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Os(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function ks(e){var t=1,r=e(Ms(t),Os(t));return r.constant=function(r){return arguments.length?e(Ms(t=+r),Os(t)):t},ds(r)}function js(){var e=ks(Yu());return e.copy=function(){return Ju(e,js()).constant(e.constant())},Ya.apply(e,arguments)}function Ts(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Ds(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function As(e){return e<0?-e*e:e*e}function _s(e){var t=e(qu,qu),r=1;function n(){return 1===r?e(qu,qu):.5===r?e(Ds,As):e(Ts(r),Ts(1/r))}return t.exponent=function(e){return arguments.length?(r=+e,n()):r},ds(t)}function Ps(){var e=_s(Yu());return e.copy=function(){return Ju(e,Ps()).exponent(e.exponent())},Ya.apply(e,arguments),e}function Ns(){return Ps.apply(null,arguments).exponent(.5)}function Cs(e){return Math.sign(e)*e*e}function Ls(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Rs(){var e,t=Xu(),r=[0,1],n=!1;function i(r){var i=Ls(t(r));return isNaN(i)?e:n?Math.round(i):i}return i.invert=function(e){return t.invert(Cs(e))},i.domain=function(e){return arguments.length?(t.domain(e),i):t.domain()},i.range=function(e){return arguments.length?(t.range((r=Array.from(e,Gu)).map(Cs)),i):r.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(n=!!e,i):n},i.clamp=function(e){return arguments.length?(t.clamp(e),i):t.clamp()},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return Rs(t.domain(),r).round(n).clamp(t.clamp()).unknown(e)},Ya.apply(i,arguments),ds(i)}function Bs(e,t){let r;if(void 0===t)for(const n of e)null!=n&&(r<n||void 0===r&&n>=n)&&(r=n);else{let n=-1;for(let i of e)null!=(i=t(i,++n,e))&&(r<i||void 0===r&&i>=i)&&(r=i)}return r}function Us(e,t){let r;if(void 0===t)for(const n of e)null!=n&&(r>n||void 0===r&&n>=n)&&(r=n);else{let n=-1;for(let i of e)null!=(i=t(i,++n,e))&&(r>i||void 0===r&&i>=i)&&(r=i)}return r}function zs(e,t,r=0,n=e.length-1,i=Gc){for(;n>r;){if(n-r>600){const o=n-r+1,a=t-r+1,c=Math.log(o),u=.5*Math.exp(2*c/3),s=.5*Math.sqrt(c*u*(o-u)/o)*(a-o/2<0?-1:1);zs(e,t,Math.max(r,Math.floor(t-a*u/o+s)),Math.min(n,Math.floor(t+(o-a)*u/o+s)),i)}const o=e[t];let a=r,c=n;for(Hs(e,r,t),i(e[n],o)>0&&Hs(e,r,n);a<c;){for(Hs(e,a,c),++a,--c;i(e[a],o)<0;)++a;for(;i(e[c],o)>0;)--c}0===i(e[r],o)?Hs(e,r,c):(++c,Hs(e,c,n)),c<=t&&(r=c+1),t<=c&&(n=c-1)}return e}function Hs(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function Gs(e,t,r){if(n=(e=Float64Array.from(function*(e,t){if(void 0===t)for(let r of e)null!=r&&(r=+r)>=r&&(yield r);else{let r=-1;for(let n of e)null!=(n=t(n,++r,e))&&(n=+n)>=n&&(yield n)}}(e,r))).length){if((t=+t)<=0||n<2)return Us(e);if(t>=1)return Bs(e);var n,i=(n-1)*t,o=Math.floor(i),a=Bs(zs(e,o).subarray(0,o+1));return a+(Us(e.subarray(o+1))-a)*(i-o)}}function Ws(e,t,r=qc){if(n=e.length){if((t=+t)<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,o=Math.floor(i),a=+r(e[o],o,e);return a+(+r(e[o+1],o+1,e)-a)*(i-o)}}function qs(){var e,t=[],r=[],n=[];function i(){var e=0,i=Math.max(1,r.length);for(n=new Array(i-1);++e<i;)n[e-1]=Ws(t,e/i);return o}function o(t){return null==t||isNaN(t=+t)?e:r[Vc(n,t)]}return o.invertExtent=function(e){var i=r.indexOf(e);return i<0?[NaN,NaN]:[i>0?n[i-1]:t[0],i<n.length?n[i]:t[t.length-1]]},o.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let r of e)null==r||isNaN(r=+r)||t.push(r);return t.sort(Gc),i()},o.range=function(e){return arguments.length?(r=Array.from(e),i()):r.slice()},o.unknown=function(t){return arguments.length?(e=t,o):e},o.quantiles=function(){return n.slice()},o.copy=function(){return qs().domain(t).range(r).unknown(e)},Ya.apply(o,arguments)}function Zs(){var e,t=0,r=1,n=1,i=[.5],o=[0,1];function a(t){return null!=t&&t<=t?o[Vc(i,t,0,n)]:e}function c(){var e=-1;for(i=new Array(n);++e<n;)i[e]=((e+1)*r-(e-n)*t)/(n+1);return a}return a.domain=function(e){return arguments.length?([t,r]=e,t=+t,r=+r,c()):[t,r]},a.range=function(e){return arguments.length?(n=(o=Array.from(e)).length-1,c()):o.slice()},a.invertExtent=function(e){var a=o.indexOf(e);return a<0?[NaN,NaN]:a<1?[t,i[0]]:a>=n?[i[n-1],r]:[i[a-1],i[a]]},a.unknown=function(t){return arguments.length?(e=t,a):a},a.thresholds=function(){return i.slice()},a.copy=function(){return Zs().domain([t,r]).range(o).unknown(e)},Ya.apply(ds(a),arguments)}function Fs(){var e,t=[.5],r=[0,1],n=1;function i(i){return null!=i&&i<=i?r[Vc(t,i,0,n)]:e}return i.domain=function(e){return arguments.length?(t=Array.from(e),n=Math.min(t.length,r.length-1),i):t.slice()},i.range=function(e){return arguments.length?(r=Array.from(e),n=Math.min(t.length,r.length-1),i):r.slice()},i.invertExtent=function(e){var n=r.indexOf(e);return[t[n-1],t[n]]},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return Fs().domain(t).range(r).unknown(e)},Ya.apply(i,arguments)}as=fs({thousands:",",grouping:[3],currency:["$",""]}),cs=as.format,us=as.formatPrefix;const Vs=1e3,Js=6e4,Ys=36e5,Xs=864e5,Qs=6048e5,$s=2592e6,Ks=31536e6;var el=new Date,tl=new Date;function rl(e,t,r,n){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(r){return e(r=new Date(r-1)),t(r,1),e(r),r},i.round=function(e){var t=i(e),r=i.ceil(e);return e-t<r-e?t:r},i.offset=function(e,r){return t(e=new Date(+e),null==r?1:Math.floor(r)),e},i.range=function(r,n,o){var a,c=[];if(r=i.ceil(r),o=null==o?1:Math.floor(o),!(r<n&&o>0))return c;do{c.push(a=new Date(+r)),t(r,o),e(r)}while(a<r&&r<n);return c},i.filter=function(r){return rl((function(t){if(t>=t)for(;e(t),!r(t);)t.setTime(t-1)}),(function(e,n){if(e>=e)if(n<0)for(;++n<=0;)for(;t(e,-1),!r(e););else for(;--n>=0;)for(;t(e,1),!r(e););}))},r&&(i.count=function(t,n){return el.setTime(+t),tl.setTime(+n),e(el),e(tl),Math.floor(r(el,tl))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(n?function(t){return n(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var nl=rl((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));nl.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?rl((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,r){t.setTime(+t+r*e)}),(function(t,r){return(r-t)/e})):nl:null};var il=nl,ol=(nl.range,rl((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*Vs)}),(function(e,t){return(t-e)/Vs}),(function(e){return e.getUTCSeconds()}))),al=ol,cl=(ol.range,rl((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Vs)}),(function(e,t){e.setTime(+e+t*Js)}),(function(e,t){return(t-e)/Js}),(function(e){return e.getMinutes()}))),ul=cl,sl=(cl.range,rl((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Vs-e.getMinutes()*Js)}),(function(e,t){e.setTime(+e+t*Ys)}),(function(e,t){return(t-e)/Ys}),(function(e){return e.getHours()}))),ll=sl,fl=(sl.range,rl((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Js)/Xs),(e=>e.getDate()-1))),pl=fl;fl.range;function dl(e){return rl((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Js)/Qs}))}var hl=dl(0),ml=dl(1),vl=dl(2),yl=dl(3),gl=dl(4),bl=dl(5),wl=dl(6),xl=(hl.range,ml.range,vl.range,yl.range,gl.range,bl.range,wl.range,rl((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}))),El=xl,Il=(xl.range,rl((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()})));Il.every=function(e){return isFinite(e=Math.floor(e))&&e>0?rl((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,r){t.setFullYear(t.getFullYear()+r*e)})):null};var Sl=Il,Ml=(Il.range,rl((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Js)}),(function(e,t){return(t-e)/Js}),(function(e){return e.getUTCMinutes()}))),Ol=Ml,kl=(Ml.range,rl((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Ys)}),(function(e,t){return(t-e)/Ys}),(function(e){return e.getUTCHours()}))),jl=kl,Tl=(kl.range,rl((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Xs}),(function(e){return e.getUTCDate()-1}))),Dl=Tl;Tl.range;function Al(e){return rl((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/Qs}))}var _l=Al(0),Pl=Al(1),Nl=Al(2),Cl=Al(3),Ll=Al(4),Rl=Al(5),Bl=Al(6),Ul=(_l.range,Pl.range,Nl.range,Cl.range,Ll.range,Rl.range,Bl.range,rl((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}))),zl=Ul,Hl=(Ul.range,rl((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()})));Hl.every=function(e){return isFinite(e=Math.floor(e))&&e>0?rl((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})):null};var Gl=Hl;Hl.range;function Wl(e,t,r,n,i,o){const a=[[al,1,Vs],[al,5,5e3],[al,15,15e3],[al,30,3e4],[o,1,Js],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,Ys],[i,3,108e5],[i,6,216e5],[i,12,432e5],[n,1,Xs],[n,2,1728e5],[r,1,Qs],[t,1,$s],[t,3,7776e6],[e,1,Ks]];function c(t,r,n){const i=Math.abs(r-t)/n,o=Wc((([,,e])=>e)).right(a,i);if(o===a.length)return e.every(Hc(t/Ks,r/Ks,n));if(0===o)return il.every(Math.max(Hc(t,r,n),1));const[c,u]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return c.every(u)}return[function(e,t,r){const n=t<e;n&&([e,t]=[t,e]);const i=r&&"function"==typeof r.range?r:c(e,t,r),o=i?i.range(e,+t+1):[];return n?o.reverse():o},c]}const[ql,Zl]=Wl(Gl,zl,_l,Dl,jl,Ol),[Fl,Vl]=Wl(Sl,El,hl,pl,ll,ul);function Jl(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Yl(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Xl(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}var Ql,$l,Kl,ef={"-":"",_:" ",0:"0"},tf=/^\s*\d+/,rf=/^%/,nf=/[\\^$*+?|[\]().{}]/g;function of(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",o=i.length;return n+(o<r?new Array(r-o+1).join(t)+i:i)}function af(e){return e.replace(nf,"\\$&")}function cf(e){return new RegExp("^(?:"+e.map(af).join("|")+")","i")}function uf(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function sf(e,t,r){var n=tf.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function lf(e,t,r){var n=tf.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function ff(e,t,r){var n=tf.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function pf(e,t,r){var n=tf.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function df(e,t,r){var n=tf.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function hf(e,t,r){var n=tf.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function mf(e,t,r){var n=tf.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function vf(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function yf(e,t,r){var n=tf.exec(t.slice(r,r+1));return n?(e.q=3*n[0]-3,r+n[0].length):-1}function gf(e,t,r){var n=tf.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function bf(e,t,r){var n=tf.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function wf(e,t,r){var n=tf.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function xf(e,t,r){var n=tf.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function Ef(e,t,r){var n=tf.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function If(e,t,r){var n=tf.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function Sf(e,t,r){var n=tf.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function Mf(e,t,r){var n=tf.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Of(e,t,r){var n=rf.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function kf(e,t,r){var n=tf.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function jf(e,t,r){var n=tf.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Tf(e,t){return of(e.getDate(),t,2)}function Df(e,t){return of(e.getHours(),t,2)}function Af(e,t){return of(e.getHours()%12||12,t,2)}function _f(e,t){return of(1+pl.count(Sl(e),e),t,3)}function Pf(e,t){return of(e.getMilliseconds(),t,3)}function Nf(e,t){return Pf(e,t)+"000"}function Cf(e,t){return of(e.getMonth()+1,t,2)}function Lf(e,t){return of(e.getMinutes(),t,2)}function Rf(e,t){return of(e.getSeconds(),t,2)}function Bf(e){var t=e.getDay();return 0===t?7:t}function Uf(e,t){return of(hl.count(Sl(e)-1,e),t,2)}function zf(e){var t=e.getDay();return t>=4||0===t?gl(e):gl.ceil(e)}function Hf(e,t){return e=zf(e),of(gl.count(Sl(e),e)+(4===Sl(e).getDay()),t,2)}function Gf(e){return e.getDay()}function Wf(e,t){return of(ml.count(Sl(e)-1,e),t,2)}function qf(e,t){return of(e.getFullYear()%100,t,2)}function Zf(e,t){return of((e=zf(e)).getFullYear()%100,t,2)}function Ff(e,t){return of(e.getFullYear()%1e4,t,4)}function Vf(e,t){var r=e.getDay();return of((e=r>=4||0===r?gl(e):gl.ceil(e)).getFullYear()%1e4,t,4)}function Jf(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+of(t/60|0,"0",2)+of(t%60,"0",2)}function Yf(e,t){return of(e.getUTCDate(),t,2)}function Xf(e,t){return of(e.getUTCHours(),t,2)}function Qf(e,t){return of(e.getUTCHours()%12||12,t,2)}function $f(e,t){return of(1+Dl.count(Gl(e),e),t,3)}function Kf(e,t){return of(e.getUTCMilliseconds(),t,3)}function ep(e,t){return Kf(e,t)+"000"}function tp(e,t){return of(e.getUTCMonth()+1,t,2)}function rp(e,t){return of(e.getUTCMinutes(),t,2)}function np(e,t){return of(e.getUTCSeconds(),t,2)}function ip(e){var t=e.getUTCDay();return 0===t?7:t}function op(e,t){return of(_l.count(Gl(e)-1,e),t,2)}function ap(e){var t=e.getUTCDay();return t>=4||0===t?Ll(e):Ll.ceil(e)}function cp(e,t){return e=ap(e),of(Ll.count(Gl(e),e)+(4===Gl(e).getUTCDay()),t,2)}function up(e){return e.getUTCDay()}function sp(e,t){return of(Pl.count(Gl(e)-1,e),t,2)}function lp(e,t){return of(e.getUTCFullYear()%100,t,2)}function fp(e,t){return of((e=ap(e)).getUTCFullYear()%100,t,2)}function pp(e,t){return of(e.getUTCFullYear()%1e4,t,4)}function dp(e,t){var r=e.getUTCDay();return of((e=r>=4||0===r?Ll(e):Ll.ceil(e)).getUTCFullYear()%1e4,t,4)}function hp(){return"+0000"}function mp(){return"%"}function vp(e){return+e}function yp(e){return Math.floor(+e/1e3)}function gp(e){return new Date(e)}function bp(e){return e instanceof Date?+e:+new Date(+e)}function wp(e,t,r,n,i,o,a,c,u,s){var l=Xu(),f=l.invert,p=l.domain,d=s(".%L"),h=s(":%S"),m=s("%I:%M"),v=s("%I %p"),y=s("%a %d"),g=s("%b %d"),b=s("%B"),w=s("%Y");function x(e){return(u(e)<e?d:c(e)<e?h:a(e)<e?m:o(e)<e?v:n(e)<e?i(e)<e?y:g:r(e)<e?b:w)(e)}return l.invert=function(e){return new Date(f(e))},l.domain=function(e){return arguments.length?p(Array.from(e,bp)):p().map(gp)},l.ticks=function(t){var r=p();return e(r[0],r[r.length-1],null==t?10:t)},l.tickFormat=function(e,t){return null==t?x:s(t)},l.nice=function(e){var r=p();return e&&"function"==typeof e.range||(e=t(r[0],r[r.length-1],null==e?10:e)),e?p(vs(r,e)):l},l.copy=function(){return Ju(l,wp(e,t,r,n,i,o,a,c,u,s))},l}function xp(){return Ya.apply(wp(Fl,Vl,Sl,El,hl,pl,ll,ul,al,$l).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Ep(){return Ya.apply(wp(ql,Zl,Gl,zl,_l,Dl,jl,Ol,al,Kl).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ip(){var e,t,r,n,i,o=0,a=1,c=qu,u=!1;function s(t){return null==t||isNaN(t=+t)?i:c(0===r?.5:(t=(n(t)-e)*r,u?Math.max(0,Math.min(1,t)):t))}function l(e){return function(t){var r,n;return arguments.length?([r,n]=t,c=e(r,n),s):[c(0),c(1)]}}return s.domain=function(i){return arguments.length?([o,a]=i,e=n(o=+o),t=n(a=+a),r=e===t?0:1/(t-e),s):[o,a]},s.clamp=function(e){return arguments.length?(u=!!e,s):u},s.interpolator=function(e){return arguments.length?(c=e,s):c},s.range=l(zu),s.rangeRound=l(Hu),s.unknown=function(e){return arguments.length?(i=e,s):i},function(i){return n=i,e=i(o),t=i(a),r=e===t?0:1/(t-e),s}}function Sp(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Mp(){var e=ds(Ip()(qu));return e.copy=function(){return Sp(e,Mp())},Xa.apply(e,arguments)}function Op(){var e=Is(Ip()).domain([1,10]);return e.copy=function(){return Sp(e,Op()).base(e.base())},Xa.apply(e,arguments)}function kp(){var e=ks(Ip());return e.copy=function(){return Sp(e,kp()).constant(e.constant())},Xa.apply(e,arguments)}function jp(){var e=_s(Ip());return e.copy=function(){return Sp(e,jp()).exponent(e.exponent())},Xa.apply(e,arguments)}function Tp(){return jp.apply(null,arguments).exponent(.5)}function Dp(){var e=[],t=qu;function r(r){if(null!=r&&!isNaN(r=+r))return t((Vc(e,r,1)-1)/(e.length-1))}return r.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let r of t)null==r||isNaN(r=+r)||e.push(r);return e.sort(Gc),r},r.interpolator=function(e){return arguments.length?(t=e,r):t},r.range=function(){return e.map(((r,n)=>t(n/(e.length-1))))},r.quantiles=function(t){return Array.from({length:t+1},((r,n)=>Gs(e,n/t)))},r.copy=function(){return Dp(t).domain(e)},Xa.apply(r,arguments)}function Ap(e,t){void 0===t&&(t=e,e=zu);for(var r=0,n=t.length-1,i=t[0],o=new Array(n<0?0:n);r<n;)o[r]=e(i,i=t[++r]);return function(e){var t=Math.max(0,Math.min(n-1,Math.floor(e*=n)));return o[t](e-t)}}function _p(){var e,t,r,n,i,o,a,c=0,u=.5,s=1,l=1,f=qu,p=!1;function d(e){return isNaN(e=+e)?a:(e=.5+((e=+o(e))-t)*(l*e<l*t?n:i),f(p?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var r,n,i;return arguments.length?([r,n,i]=t,f=Ap(e,[r,n,i]),d):[f(0),f(.5),f(1)]}}return d.domain=function(a){return arguments.length?([c,u,s]=a,e=o(c=+c),t=o(u=+u),r=o(s=+s),n=e===t?0:.5/(t-e),i=t===r?0:.5/(r-t),l=t<e?-1:1,d):[c,u,s]},d.clamp=function(e){return arguments.length?(p=!!e,d):p},d.interpolator=function(e){return arguments.length?(f=e,d):f},d.range=h(zu),d.rangeRound=h(Hu),d.unknown=function(e){return arguments.length?(a=e,d):a},function(a){return o=a,e=a(c),t=a(u),r=a(s),n=e===t?0:.5/(t-e),i=t===r?0:.5/(r-t),l=t<e?-1:1,d}}function Pp(){var e=ds(_p()(qu));return e.copy=function(){return Sp(e,Pp())},Xa.apply(e,arguments)}function Np(){var e=Is(_p()).domain([.1,1,10]);return e.copy=function(){return Sp(e,Np()).base(e.base())},Xa.apply(e,arguments)}function Cp(){var e=ks(_p());return e.copy=function(){return Sp(e,Cp()).constant(e.constant())},Xa.apply(e,arguments)}function Lp(){var e=_s(_p());return e.copy=function(){return Sp(e,Lp()).exponent(e.exponent())},Xa.apply(e,arguments)}function Rp(){return Lp.apply(null,arguments).exponent(.5)}function Bp(e,t){if((i=e.length)>1)for(var r,n,i,o=1,a=e[t[0]],c=a.length;o<i;++o)for(n=a,a=e[t[o]],r=0;r<c;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function Up(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function zp(e,t){return e[t]}function Hp(e){const t=[];return t.key=e,t}function Gp(e){return function(e){if(Array.isArray(e))return Wp(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Wp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Wp(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wp(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Zp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qp(Object(r),!0).forEach((function(t){Fp(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Fp(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vp(e,t,r){return Ie()(e)||Ie()(t)?r:J(t)?L()(e,t,r):me()(t)?t(e):r}function Jp(e,t,r,n){var i=sc()(e,(function(e){return Vp(e,t)}));if("number"===r){var o=i.filter((function(e){return V(e)||parseFloat(e)}));return o.length?[cc()(o),oc()(o)]:[1/0,-1/0]}return(n?i.filter((function(e){return!Ie()(e)})):i).map((function(e){return J(e)||e instanceof Date?e:""}))}!function(e){Ql=function(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,o=e.days,a=e.shortDays,c=e.months,u=e.shortMonths,s=cf(i),l=uf(i),f=cf(o),p=uf(o),d=cf(a),h=uf(a),m=cf(c),v=uf(c),y=cf(u),g=uf(u),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return c[e.getMonth()]},c:null,d:Tf,e:Tf,f:Nf,g:Zf,G:Vf,H:Df,I:Af,j:_f,L:Pf,m:Cf,M:Lf,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:vp,s:yp,S:Rf,u:Bf,U:Uf,V:Hf,w:Gf,W:Wf,x:null,X:null,y:qf,Y:Ff,Z:Jf,"%":mp},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return c[e.getUTCMonth()]},c:null,d:Yf,e:Yf,f:ep,g:fp,G:dp,H:Xf,I:Qf,j:$f,L:Kf,m:tp,M:rp,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:vp,s:yp,S:np,u:ip,U:op,V:cp,w:up,W:sp,x:null,X:null,y:lp,Y:pp,Z:hp,"%":mp},x={a:function(e,t,r){var n=d.exec(t.slice(r));return n?(e.w=h.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(e,t,r){var n=f.exec(t.slice(r));return n?(e.w=p.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(e,t,r){var n=y.exec(t.slice(r));return n?(e.m=g.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(e,t,r){var n=m.exec(t.slice(r));return n?(e.m=v.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(e,r,n){return S(e,t,r,n)},d:bf,e:bf,f:Mf,g:mf,G:hf,H:xf,I:xf,j:wf,L:Sf,m:gf,M:Ef,p:function(e,t,r){var n=s.exec(t.slice(r));return n?(e.p=l.get(n[0].toLowerCase()),r+n[0].length):-1},q:yf,Q:kf,s:jf,S:If,u:lf,U:ff,V:pf,w:sf,W:df,x:function(e,t,n){return S(e,r,t,n)},X:function(e,t,r){return S(e,n,t,r)},y:mf,Y:hf,Z:vf,"%":Of};function E(e,t){return function(r){var n,i,o,a=[],c=-1,u=0,s=e.length;for(r instanceof Date||(r=new Date(+r));++c<s;)37===e.charCodeAt(c)&&(a.push(e.slice(u,c)),null!=(i=ef[n=e.charAt(++c)])?n=e.charAt(++c):i="e"===n?" ":"0",(o=t[n])&&(n=o(r,i)),a.push(n),u=c+1);return a.push(e.slice(u,c)),a.join("")}}function I(e,t){return function(r){var n,i,o=Xl(1900,void 0,1);if(S(o,e,r+="",0)!=r.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(n=Yl(Xl(o.y,0,1))).getUTCDay(),n=i>4||0===i?Pl.ceil(n):Pl(n),n=Dl.offset(n,7*(o.V-1)),o.y=n.getUTCFullYear(),o.m=n.getUTCMonth(),o.d=n.getUTCDate()+(o.w+6)%7):(i=(n=Jl(Xl(o.y,0,1))).getDay(),n=i>4||0===i?ml.ceil(n):ml(n),n=pl.offset(n,7*(o.V-1)),o.y=n.getFullYear(),o.m=n.getMonth(),o.d=n.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Yl(Xl(o.y,0,1)).getUTCDay():Jl(Xl(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Yl(o)):Jl(o)}}function S(e,t,r,n){for(var i,o,a=0,c=t.length,u=r.length;a<c;){if(n>=u)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=x[i in ef?t.charAt(a++):i])||(n=o(e,r,n))<0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}return b.x=E(r,b),b.X=E(n,b),b.c=E(t,b),w.x=E(r,w),w.X=E(n,w),w.c=E(t,w),{format:function(e){var t=E(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=I(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=E(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=I(e+="",!0);return t.toString=function(){return e},t}}}(e),$l=Ql.format,Ql.parse,Kl=Ql.utcFormat,Ql.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Yp=function(e){var t,r=e.type.displayName,n=e.props,i=n.stroke,o=n.fill;switch(r){case"Line":t=i;break;case"Area":case"Radar":t=i&&"none"!==i?i:o;break;default:t=o}return t},Xp=function(e){var t,r=e.children,n=e.formatedGraphicalItems,i=e.legendWidth,o=e.legendContent,a=zo(r,Xn.displayName);return a?(t=a.props&&a.props.payload?a.props&&a.props.payload:"children"===o?(n||[]).reduce((function(e,t){var r=t.item,n=t.props,i=n.sectors||n.data||[];return e.concat(i.map((function(e){return{type:a.props.iconType||r.props.legendType,value:e.name,color:e.fill,payload:e}})))}),[]):(n||[]).map((function(e){var t=e.item,r=t.props,n=r.dataKey,i=r.name,o=r.legendType;return{inactive:r.hide,dataKey:n,type:a.props.iconType||o||"square",color:Yp(t),value:i||n,payload:t.props}})),Zp(Zp(Zp({},a.props),Xn.getWithHeight(a,i)),{},{payload:t,item:a})):null},Qp=function(e,t,r,n){var i=t.props.children,o=Uo(i,"ErrorBar").filter((function(e){var t=e.props.direction;return!(!Ie()(t)&&!Ie()(n))||n.indexOf(t)>=0}));if(o&&o.length){var a=o.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var n=Vp(t,r,0),i=B()(n)?[cc()(n),oc()(n)]:[n,n],o=a.reduce((function(e,r){var n=Vp(t,r,0),o=i[0]-Math.abs(B()(n)?n[0]:n),a=i[1]+Math.abs(B()(n)?n[1]:n);return[Math.min(o,e[0]),Math.max(a,e[1])]}),[1/0,-1/0]);return[Math.min(o[0],e[0]),Math.max(o[1],e[1])]}),[1/0,-1/0])}return null},$p=function(e,t,r,n){var i=t.map((function(t){var i=t.props.dataKey;return"number"===r&&i&&Qp(e,t,i)||Jp(e,i,r,n)}));if("number"===r)return i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var o={};return i.reduce((function(e,t){for(var r=0,n=t.length;r<n;r++)o[t[r]]||(o[t[r]]=!0,e.push(t[r]));return e}),[])},Kp=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},ed=function(e,t,r){var n,i,o=e.map((function(e){return e.coordinate===t&&(n=!0),e.coordinate===r&&(i=!0),e.coordinate}));return n||o.push(t),i||o.push(r),o},td=function(e,t,r){if(!e)return null;var n=e.scale,i=e.duplicateDomain,o=e.type,a=e.range,c=(t||r)&&"category"===o&&n.bandwidth?n.bandwidth()/2:0;return c="angleAxis"===e.axisType?2*Z(a[0]-a[1])*c:c,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=i?i.indexOf(e):e;return{coordinate:n(t)+c,value:e,offset:c}})):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:n(e)+c,value:e,index:t,offset:c}})):n.ticks&&!r?n.ticks(e.tickCount).map((function(e){return{coordinate:n(e)+c,value:e,offset:c}})):n.domain().map((function(e,t){return{coordinate:n(e)+c,value:i?i[e]:e,index:t,offset:c}}))},rd=function(e,t,r){var n;return me()(r)?n=r:me()(t)&&(n=t),me()(e)||n?function(t,r,i,o){me()(e)&&e(t,r,i,o),me()(n)&&n(t,r,i,o)}:null},nd=1e-4,id={sign:function(e){var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r<n;++r)for(var i=0,o=0,a=0;a<t;++a){var c=z()(e[a][r][1])?e[a][r][0]:e[a][r][1];c>=0?(e[a][r][0]=i,e[a][r][1]=i+c,i=e[a][r][1]):(e[a][r][0]=o,e[a][r][1]=o+c,o=e[a][r][1])}},expand:function(e,t){if((n=e.length)>0){for(var r,n,i,o=0,a=e[0].length;o<a;++o){for(i=r=0;r<n;++r)i+=e[r][o][1]||0;if(i)for(r=0;r<n;++r)e[r][o][1]/=i}Bp(e,t)}},none:Bp,silhouette:function(e,t){if((r=e.length)>0){for(var r,n=0,i=e[t[0]],o=i.length;n<o;++n){for(var a=0,c=0;a<r;++a)c+=e[a][n][1]||0;i[n][1]+=i[n][0]=-c/2}Bp(e,t)}},wiggle:function(e,t){if((i=e.length)>0&&(n=(r=e[t[0]]).length)>0){for(var r,n,i,o=0,a=1;a<n;++a){for(var c=0,u=0,s=0;c<i;++c){for(var l=e[t[c]],f=l[a][1]||0,p=(f-(l[a-1][1]||0))/2,d=0;d<c;++d){var h=e[t[d]];p+=(h[a][1]||0)-(h[a-1][1]||0)}u+=f,s+=p*f}r[a-1][1]+=r[a-1][0]=o,u&&(o-=s/u)}r[a-1][1]+=r[a-1][0]=o,Bp(e,t)}},positive:function(e){var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r<n;++r)for(var i=0,o=0;o<t;++o){var a=z()(e[o][r][1])?e[o][r][0]:e[o][r][1];a>=0?(e[o][r][0]=i,e[o][r][1]=i+a,i=e[o][r][1]):(e[o][r][0]=0,e[o][r][1]=0)}}},od=function(e,t,r){var n=t.map((function(e){return e.props.dataKey}));return function(){var e=dn([]),t=Up,r=Bp,n=zp;function i(i){var o,a,c=Array.from(e.apply(this,arguments),Hp),u=c.length,s=-1;for(const e of i)for(o=0,++s;o<u;++o)(c[o][s]=[0,+n(e,c[o].key,s,i)]).data=e;for(o=0,a=mi(t(c));o<u;++o)c[a[o]].index=o;return r(c,a),c}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:dn(Array.from(t)),i):e},i.value=function(e){return arguments.length?(n="function"==typeof e?e:dn(+e),i):n},i.order=function(e){return arguments.length?(t=null==e?Up:"function"==typeof e?e:dn(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(r=null==e?Bp:e,i):r},i}().keys(n).value((function(e,t){return+Vp(e,t,0)})).order(Up).offset(id[r])(e)},ad=function(e,t){var r=t.realScaleType,n=t.type,i=t.tickCount,o=t.originalDomain,a=t.allowDecimals,c=r||t.scale;if("auto"!==c&&"linear"!==c)return null;if(i&&"number"===n&&o&&("auto"===o[0]||"auto"===o[1])){var u=e.domain();if(!u.length)return null;var s=Nc(u,i,a);return e.domain(function(e,t){return"number"===t?[cc()(e),oc()(e)]:e}(s,n)),{niceTicks:s}}if(i&&"number"===n){var l=e.domain();return{niceTicks:Cc(l,i,a)}}return null},cd=function(e){var t=e.axis,r=e.ticks,n=e.offset,i=e.bandSize,o=e.entry,a=e.index;if("category"===t.type)return r[a]?r[a].coordinate+n:null;var c=Vp(o,t.dataKey,t.domain[a]);return Ie()(c)?null:t.scale(c)-i/2+n},ud=function(e,t,r){return Object.keys(e).reduce((function(n,i){var o=e[i].stackedData.reduce((function(e,n){var i=n.slice(t,r+1).reduce((function(e,t){return[cc()(t.concat([e[0]]).filter(V)),oc()(t.concat([e[1]]).filter(V))]}),[1/0,-1/0]);return[Math.min(e[0],i[0]),Math.max(e[1],i[1])]}),[1/0,-1/0]);return[Math.min(o[0],n[0]),Math.max(o[1],n[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))},sd=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ld=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,fd=function(e,t,r){if(!B()(e))return t;var n=[];if(V(e[0]))n[0]=r?e[0]:Math.min(e[0],t[0]);else if(sd.test(e[0])){var i=+sd.exec(e[0])[1];n[0]=t[0]-i}else me()(e[0])?n[0]=e[0](t[0]):n[0]=t[0];if(V(e[1]))n[1]=r?e[1]:Math.max(e[1],t[1]);else if(ld.test(e[1])){var o=+ld.exec(e[1])[1];n[1]=t[1]+o}else me()(e[1])?n[1]=e[1](t[1]):n[1]=t[1];return n},pd=function(e,t,r){if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var i=be()(t,(function(e){return e.coordinate})),o=1/0,a=1,c=i.length;a<c;a++){var u=i[a],s=i[a-1];o=Math.min((u.coordinate||0)-(s.coordinate||0),o)}return o===1/0?0:o}return 0},dd=function(e,t,r){return e&&e.length?nc()(e,L()(r,"type.defaultProps.domain"))?t:e:t},hd=function(e,t){var r=e.props,n=r.dataKey,i=r.name,o=r.unit,a=r.formatter,c=r.tooltipType;return Zp(Zp({},_e(e)),{},{dataKey:n,unit:o,formatter:a,name:i||n,color:Yp(e),value:Vp(t,n),type:c,payload:t})};function md(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?md(Object(r),!0).forEach((function(t){yd(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):md(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function yd(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var gd=["Webkit","Moz","O","ms"];function bd(e){return(bd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wd(){return(wd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function xd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ed(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xd(Object(r),!0).forEach((function(t){Id(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Id(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Md(e,t){return(Md=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Od(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Td(e);if(t){var i=Td(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return kd(this,r)}}function kd(e,t){return!t||"object"!==bd(t)&&"function"!=typeof t?jd(e):t}function jd(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Td(e){return(Td=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Dd=function(e){return e.changedTouches&&!!e.changedTouches.length},Ad=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Md(e,t)}(a,e);var t,r,n,i=Od(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).leaveTimer=void 0,t.travellerDragStartHandlers=void 0,t.handleDrag=function(e){t.leaveTimer&&(clearTimeout(t.leaveTimer),t.leaveTimer=null),t.state.isTravellerMoving?t.handleTravellerMove(e):t.state.isSlideMoving&&t.handleSlideDrag(e)},t.handleTouchMove=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleDrag(e.changedTouches[0])},t.handleDragEnd=function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1}),t.detachDragEndListener()},t.handleLeaveWrapper=function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))},t.handleEnterSlideOrTraveller=function(){t.setState({isTextActive:!0})},t.handleLeaveSlideOrTraveller=function(){t.setState({isTextActive:!1})},t.handleSlideDragStart=function(e){var r=Dd(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:r.pageX}),t.attachDragEndListener()},t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(jd(t),"startX"),endX:t.handleTravellerDragStart.bind(jd(t),"endX")},t.state={},t}return t=a,n=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,r=e.y,n=e.width,i=e.height,a=e.stroke,c=Math.floor(r+i/2)-1;return o.createElement(o.Fragment,null,o.createElement("rect",{x:t,y:r,width:n,height:i,fill:a,stroke:"none"}),o.createElement("line",{x1:t+1,y1:c,x2:t+n-1,y2:c,fill:"none",stroke:"#fff"}),o.createElement("line",{x1:t+1,y1:c+2,x2:t+n-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):me()(e)?e(t):a.renderDefaultTraveller(t)}},{key:"getDerivedStateFromProps",value:function(e,t){var r=e.data,n=e.width,i=e.x,o=e.travellerWidth,a=e.updateId,c=e.startIndex,u=e.endIndex;if(r!==t.prevData||a!==t.prevUpdateId)return Ed({prevData:r,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:n},r&&r.length?function(e){var t=e.data,r=e.startIndex,n=e.endIndex,i=e.x,o=e.width,a=e.travellerWidth;if(!t||!t.length)return{};var c=t.length,u=tc().domain(xe()(0,c)).range([i,i+o-a]),s=u.domain().map((function(e){return u(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:u(r),endX:u(n),scale:u,scaleValues:s}}({data:r,width:n,x:i,travellerWidth:o,startIndex:c,endIndex:u}):{scale:null,scaleValues:null});if(t.scale&&(n!==t.prevWidth||i!==t.prevX||o!==t.prevTravellerWidth)){t.scale.range([i,i+n-o]);var s=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:r,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:n,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:s}}return null}},{key:"getIndexInRange",value:function(e,t){for(var r=0,n=e.length-1;n-r>1;){var i=Math.floor((r+n)/2);e[i]>t?n=i:r=i}return t>=e[n]?n:r}}],(r=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,r=e.endX,n=this.state.scaleValues,i=this.props,o=i.gap,c=i.data.length-1,u=Math.min(t,r),s=Math.max(t,r),l=a.getIndexInRange(n,u),f=a.getIndexInRange(n,s);return{startIndex:l-l%o,endIndex:f===c?c:f-f%o}}},{key:"getTextOfTick",value:function(e){var t=this.props,r=t.data,n=t.tickFormatter,i=t.dataKey,o=Vp(r[e],i,e);return me()(n)?n(o,e):o}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,r=t.slideMoveStartX,n=t.startX,i=t.endX,o=this.props,a=o.x,c=o.width,u=o.travellerWidth,s=o.startIndex,l=o.endIndex,f=o.onChange,p=e.pageX-r;p>0?p=Math.min(p,a+c-u-i,a+c-u-n):p<0&&(p=Math.max(p,a-n,a-i));var d=this.getIndex({startX:n+p,endX:i+p});d.startIndex===s&&d.endIndex===l||!f||f(d),this.setState({startX:n+p,endX:i+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var r=Dd(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t,r=this.state,n=r.brushMoveStartX,i=r.movingTravellerId,o=r.endX,a=r.startX,c=this.state[i],u=this.props,s=u.x,l=u.width,f=u.travellerWidth,p=u.onChange,d=u.gap,h=u.data,m={startX:this.state.startX,endX:this.state.endX},v=e.pageX-n;v>0?v=Math.min(v,s+l-f-c):v<0&&(v=Math.max(v,s-c)),m[i]=c+v;var y=this.getIndex(m),g=y.startIndex,b=y.endIndex;this.setState((Id(t={},i,c+v),Id(t,"brushMoveStartX",e.pageX),t),(function(){var e;p&&(e=h.length-1,("startX"===i&&(o>a?g%d==0:b%d==0)||o<a&&b===e||"endX"===i&&(o>a?b%d==0:g%d==0)||o>a&&b===e)&&p(y))}))}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,r=e.y,n=e.width,i=e.height,a=e.fill,c=e.stroke;return o.createElement("rect",{stroke:c,fill:a,x:t,y:r,width:n,height:i})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,r=e.y,n=e.width,i=e.height,a=e.data,c=e.children,u=e.padding,s=o.Children.only(c);return s?o.cloneElement(s,{x:t,y:r,width:n,height:i,margin:u,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,t){var r=this.props,n=r.y,i=r.travellerWidth,c=r.height,u=r.traveller,s=Math.max(e,this.props.x),l=Ed(Ed({},_e(this.props)),{},{x:s,y:n,width:i,height:c});return o.createElement(ze,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],style:{cursor:"col-resize"}},a.renderTraveller(u,l))}},{key:"renderSlide",value:function(e,t){var r=this.props,n=r.y,i=r.height,a=r.stroke,c=r.travellerWidth,u=Math.min(e,t)+c,s=Math.max(Math.abs(t-e)-c,0);return o.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:u,y:n,width:s,height:i})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,r=e.endIndex,n=e.y,i=e.height,a=e.travellerWidth,c=e.stroke,u=this.state,s=u.startX,l=u.endX,f={pointerEvents:"none",fill:c};return o.createElement(ze,{className:"recharts-brush-texts"},o.createElement(Sa,wd({textAnchor:"end",verticalAnchor:"middle",x:Math.min(s,l)-5,y:n+i/2},f),this.getTextOfTick(t)),o.createElement(Sa,wd({textAnchor:"start",verticalAnchor:"middle",x:Math.max(s,l)+a+5,y:n+i/2},f),this.getTextOfTick(r)))}},{key:"render",value:function(){var e=this.props,t=e.data,r=e.className,n=e.children,i=e.x,a=e.y,c=e.width,u=e.height,s=e.alwaysShowText,l=this.state,f=l.startX,p=l.endX,d=l.isTextActive,h=l.isSlideMoving,m=l.isTravellerMoving;if(!t||!t.length||!V(i)||!V(a)||!V(c)||!V(u)||c<=0||u<=0)return null;var v=P()("recharts-brush",r),y=1===o.Children.count(n),g=function(e,t){if(!e)return null;var r=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),n=gd.reduce((function(e,n){return vd(vd({},e),{},yd({},n+r,t))}),{});return n[e]=t,n}("userSelect","none");return o.createElement(ze,{className:v,onMouseMove:this.handleDrag,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),y&&this.renderPanorama(),this.renderSlide(f,p),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(p,"endX"),(d||h||m||s)&&this.renderText())}}])&&Sd(t.prototype,r),n&&Sd(t,n),a}(o.PureComponent);Ad.displayName="Brush",Ad.defaultProps={height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1};var _d=function(e,t){var r=e.alwaysShow,n=e.ifOverflow;return r&&(n="extendDomain"),n===t},Pd=r(18345),Nd=r.n(Pd);function Cd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ld(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Rd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ld(Object(r),!0).forEach((function(t){Bd(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ld(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Bd(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ud=function(e,t){var r=e.x,n=e.y,i=t.x,o=t.y;return{x:Math.min(r,i),y:Math.min(n,o),width:Math.abs(i-r),height:Math.abs(o-n)}},zd=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scale=void 0,this.scale=t}var t,r,n;return t=e,n=[{key:"create",value:function(t){return new e(t)}}],(r=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.bandAware,n=t.position;if(void 0!==e){if(n)switch(n){case"start":return this.scale(e);case"middle":var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(e)+o;default:return this.scale(e)}if(r){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),r=t[0],n=t[t.length-1];return r<=n?e>=r&&e<=n:e>=n&&e<=r}}])&&Cd(t.prototype,r),n&&Cd(t,n),e}();zd.EPS=1e-4;var Hd=function(e){var t=Object.keys(e).reduce((function(t,r){return Rd(Rd({},t),{},Bd({},r,zd.create(e[r])))}),{});return Rd(Rd({},t),{},{apply:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware;return Nd()(e,(function(e,r){return t[r].apply(e,{bandAware:n})}))},isInRange:function(e){return fe()(e,(function(e,r){return t[r].isInRange(e)}))}})};function Gd(){return(Gd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Wd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function qd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Wd(Object(r),!0).forEach((function(t){Zd(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Zd(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fd(e){var t=e.x,r=e.y,n=e.r,i=e.alwaysShow,a=e.clipPathId,c=J(t),u=J(r);if(te(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!u)return null;var s=function(e){var t=e.x,r=e.y,n=e.xAxis,i=e.yAxis,o=Hd({x:n.scale,y:i.scale}),a=o.apply({x:t,y:r},{bandAware:!0});return _d(e,"discard")&&!o.isInRange(a)?null:a}(e);if(!s)return null;var l=s.x,f=s.y,p=e.shape,d=e.className,h=qd(qd({clipPath:_d(e,"hidden")?"url(#".concat(a,")"):void 0},_e(e,!0)),{},{cx:l,cy:f});return o.createElement(ze,{className:P()("recharts-reference-dot",d)},Fd.renderDot(p,h),_a.renderCallByParent(e,{x:l-n,y:f-n,width:2*n,height:2*n}))}Fd.displayName="ReferenceDot",Fd.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},Fd.renderDot=function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):me()(e)?e(t):o.createElement(wo,Gd({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"}))};var Vd=r(94927),Jd=r.n(Vd);function Yd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Xd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yd(Object(r),!0).forEach((function(t){Qd(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Qd(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(u){i=!0,o=u}finally{try{n||null==c.return||c.return()}finally{if(i)throw o}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Kd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Kd(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kd(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function eh(){return(eh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function th(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxis,a=e.yAxis,c=e.shape,u=e.className,s=e.alwaysShow,l=e.clipPathId;te(void 0===s,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=function(e,t,r,n,i){var o=i.viewBox,a=o.x,c=o.y,u=o.width,s=o.height,l=i.position;if(r){var f=i.y,p=i.yAxis.orientation,d=e.y.apply(f,{position:l});if(_d(i,"discard")&&!e.y.isInRange(d))return null;var h=[{x:a+u,y:d},{x:a,y:d}];return"left"===p?h.reverse():h}if(t){var m=i.x,v=i.xAxis.orientation,y=e.x.apply(m,{position:l});if(_d(i,"discard")&&!e.x.isInRange(y))return null;var g=[{x:y,y:c+s},{x:y,y:c}];return"top"===v?g.reverse():g}if(n){var b=i.segment.map((function(t){return e.apply(t,{position:l})}));return _d(i,"discard")&&Jd()(b,(function(t){return!e.isInRange(t)}))?null:b}return null}(Hd({x:i.scale,y:a.scale}),J(t),J(r),n&&2===n.length,e);if(!f)return null;var p=$d(f,2),d=p[0],h=d.x,m=d.y,v=p[1],y=v.x,g=v.y,b=Xd(Xd({clipPath:_d(e,"hidden")?"url(#".concat(l,")"):void 0},_e(e,!0)),{},{x1:h,y1:m,x2:y,y2:g});return o.createElement(ze,{className:P()("recharts-reference-line",u)},function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):me()(e)?e(t):o.createElement("line",eh({},t,{className:"recharts-reference-line-line"}))}(c,b),_a.renderCallByParent(e,function(e){var t=e.x1,r=e.y1,n=e.x2,i=e.y2;return Ud({x:t,y:r},{x:n,y:i})}({x1:h,y1:m,x2:y,y2:g})))}function rh(){return(rh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function nh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ih(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nh(Object(r),!0).forEach((function(t){oh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function oh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}th.displayName="ReferenceLine",th.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function ah(e){var t=e.x1,r=e.x2,n=e.y1,i=e.y2,a=e.className,c=e.alwaysShow,u=e.clipPathId;te(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var s=J(t),l=J(r),f=J(n),p=J(i),d=e.shape;if(!(s||l||f||p||d))return null;var h=function(e,t,r,n,i){var o=i.x1,a=i.x2,c=i.y1,u=i.y2,s=i.xAxis,l=i.yAxis,f=Hd({x:s.scale,y:l.scale}),p={x:e?f.x.apply(o,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(c,{position:"start"}):f.y.rangeMin},d={x:t?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(u,{position:"end"}):f.y.rangeMax};return!_d(i,"discard")||f.isInRange(p)&&f.isInRange(d)?Ud(p,d):null}(s,l,f,p,e);if(!h&&!d)return null;var m=_d(e,"hidden")?"url(#".concat(u,")"):void 0;return o.createElement(ze,{className:P()("recharts-reference-area",a)},ah.renderRect(d,ih(ih({clipPath:m},_e(e,!0)),h)),_a.renderCallByParent(e,h))}ah.displayName="ReferenceArea",ah.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},ah.renderRect=function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):me()(e)?e(t):o.createElement(Ao,rh({},t,{className:"recharts-reference-area-rect"}))};var ch=function(e,t,r,n,i){var o=Uo(e,th.displayName),a=Uo(e,Fd.displayName),c=o.concat(a),u=Uo(e,ah.displayName),s="".concat(n,"Id"),l=n[0],f=t;if(c.length&&(f=c.reduce((function(e,t){if(t.props[s]===r&&_d(t.props,"extendDomain")&&V(t.props[l])){var n=t.props[l];return[Math.min(e[0],n),Math.max(e[1],n)]}return e}),f)),u.length){var p="".concat(l,"1"),d="".concat(l,"2");f=u.reduce((function(e,t){if(t.props[s]===r&&_d(t.props,"extendDomain")&&V(t.props[p])&&V(t.props[d])){var n=t.props[p],i=t.props[d];return[Math.min(e[0],n,i),Math.max(e[1],n,i)]}return e}),f)}return i&&i.length&&(f=i.reduce((function(e,t){return V(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),f)),f},uh=r(2594),sh=new(r.n(uh)());sh.setMaxListeners&&sh.setMaxListeners(10);var lh="recharts.syncMouseEvents";function fh(e){return(fh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ph(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(u){i=!0,o=u}finally{try{n||null==c.return||c.return()}finally{if(i)throw o}}return r}(e,t)||Eh(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dh(){return(dh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function hh(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function mh(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function vh(e,t){return(vh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function yh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=wh(e);if(t){var i=wh(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return gh(this,r)}}function gh(e,t){return!t||"object"!==fh(t)&&"function"!=typeof t?bh(e):t}function bh(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wh(e){return(wh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function xh(e){return function(e){if(Array.isArray(e))return Ih(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Eh(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Eh(e,t){if(e){if("string"==typeof e)return Ih(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ih(e,t):void 0}}function Ih(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Sh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Mh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Sh(Object(r),!0).forEach((function(t){Oh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Oh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var kh={xAxis:["bottom","top"],yAxis:["left","right"]},jh={x:0,y:0},Th=Number.isFinite?Number.isFinite:isFinite,Dh="function"==typeof requestAnimationFrame?requestAnimationFrame:"function"==typeof setImmediate?setImmediate:setTimeout,Ah="function"==typeof cancelAnimationFrame?cancelAnimationFrame:"function"==typeof clearImmediate?clearImmediate:clearTimeout,_h=function(e,t,r){var n=t.graphicalItems,i=t.dataStartIndex,o=t.dataEndIndex,a=(n||[]).reduce((function(e,t){var r=t.props.data;return r&&r.length?[].concat(xh(e),xh(r)):e}),[]);return a&&a.length>0?a:r&&r.props&&r.props.data&&r.props.data.length>0?r.props.data:e&&e.length&&V(i)&&V(o)?e.slice(i,o+1):[]},Ph=function(e,t,r,n){var i=e.graphicalItems,o=e.tooltipAxis,a=_h(t,e);return r<0||!i||!i.length||r>=a.length?null:i.reduce((function(e,t){if(t.props.hide)return e;var i,c=t.props.data;o.dataKey&&!o.allowDuplicatedCategory?i=ee(void 0===c?a:c,o.dataKey,n):i=c&&c[r]||a[r];return i?[].concat(xh(e),[hd(t,i)]):e}),[])},Nh=function(e,t,r,n){var i=n||{x:e.chartX,y:e.chartY},o=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(i,r),a=e.orderedTooltipTicks,c=e.tooltipAxis,u=e.tooltipTicks,s=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,a=null!==(t=null==r?void 0:r.length)&&void 0!==t?t:0;if(a>1){if(i&&"angleAxis"===i.axisType&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var c=i.range,u=0;u<a;u++){var s=u>0?n[u-1].coordinate:n[a-1].coordinate,l=n[u].coordinate,f=u>=a-1?n[0].coordinate:n[u+1].coordinate,p=void 0;if(Z(l-s)!==Z(f-l)){var d=[];if(Z(f-l)===Z(c[1]-c[0])){p=f;var h=l+c[1]-c[0];d[0]=Math.min(h,(h+s)/2),d[1]=Math.max(h,(h+s)/2)}else{p=s;var m=f+c[1]-c[0];d[0]=Math.min(l,(m+l)/2),d[1]=Math.max(l,(m+l)/2)}var v=[Math.min(l,(p+l)/2),Math.max(l,(p+l)/2)];if(e>v[0]&&e<=v[1]||e>=d[0]&&e<=d[1]){o=n[u].index;break}}else{var y=Math.min(s,f),g=Math.max(s,f);if(e>(y+l)/2&&e<=(g+l)/2){o=n[u].index;break}}}else for(var b=0;b<a;b++)if(0===b&&e<=(r[b].coordinate+r[b+1].coordinate)/2||b>0&&b<a-1&&e>(r[b].coordinate+r[b-1].coordinate)/2&&e<=(r[b].coordinate+r[b+1].coordinate)/2||b===a-1&&e>(r[b].coordinate+r[b-1].coordinate)/2){o=r[b].index;break}}else o=0;return o}(o,a,u,c);if(s>=0&&u){var l=u[s]&&u[s].value;return{activeTooltipIndex:s,activeLabel:l,activePayload:Ph(e,t,s,l),activeCoordinate:function(e,t,r,n){var i=t.find((function(e){return e&&e.index===r}));if(i){if("horizontal"===e)return{x:i.coordinate,y:n.y};if("vertical"===e)return{x:n.x,y:i.coordinate};if("centric"===e){var o=i.coordinate,a=n.radius;return Mh(Mh(Mh({},n),Xi(n.cx,n.cy,a,o)),{},{angle:o,radius:a})}var c=i.coordinate,u=n.angle;return Mh(Mh(Mh({},n),Xi(n.cx,n.cy,c,u)),{},{angle:u,radius:c})}return jh}(r,a,s,i)}}return null},Ch=function(e,t){var r=t.axes,n=t.graphicalItems,i=t.axisType,o=t.axisIdKey,a=t.stackGroups,c=t.dataStartIndex,u=t.dataEndIndex,s=e.layout,l=e.children,f=e.stackOffset,p=Kp(s,i);return r.reduce((function(t,r){var d=r.props,h=d.type,m=d.dataKey,v=d.allowDataOverflow,y=d.allowDuplicatedCategory,g=d.scale,b=d.ticks,w=r.props[o],x=_h(e.data,{graphicalItems:n.filter((function(e){return e.props[o]===w})),dataStartIndex:c,dataEndIndex:u}),E=x.length;if(!t[w]){var I,S,M;if(m){if(I=Jp(x,m,h),"category"===h&&p){var O=function(e){if(!B()(e))return!1;for(var t=e.length,r={},n=0;n<t;n++){if(r[e[n]])return!0;r[e[n]]=!0}return!1}(I);y&&O?(S=I,I=xe()(0,E)):y||(I=dd(r.props.domain,I,r).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(xh(e),[t])}),[]))}else if("category"===h)I=y?I.filter((function(e){return""!==e&&!Ie()(e)})):dd(r.props.domain,I,r).reduce((function(e,t){return e.indexOf(t)>=0||""===t||Ie()(t)?e:[].concat(xh(e),[t])}),[]);else if("number"===h){var k=function(e,t,r,n){var i=t.map((function(t){return Qp(e,t,r,n)})).filter((function(e){return!Ie()(e)}));return i&&i.length?i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null}(x,n.filter((function(e){return e.props[o]===w&&!e.props.hide})),m,i);k&&(I=k)}!p||"number"!==h&&"auto"===g||(M=Jp(x,m,"category"))}else I=p?xe()(0,E):a&&a[w]&&a[w].hasStack&&"number"===h?"expand"===f?[0,1]:ud(a[w].stackGroups,c,u):$p(x,n.filter((function(e){return e.props[o]===w&&!e.props.hide})),h,!0);if("number"===h)I=ch(l,I,w,i,b),r.props.domain&&(I=fd(r.props.domain,I,v));else if("category"===h&&r.props.domain){var j=r.props.domain;I.every((function(e){return j.indexOf(e)>=0}))&&(I=j)}return Mh(Mh({},t),{},Oh({},w,Mh(Mh({},r.props),{},{axisType:i,domain:I,categoricalDomain:M,duplicateDomain:S,originalDomain:r.props.domain,isCategorical:p,layout:s})))}return t}),{})},Lh=function(e,t){var r=t.axisType,n=void 0===r?"xAxis":r,i=t.AxisComp,o=t.graphicalItems,a=t.stackGroups,c=t.dataStartIndex,u=t.dataEndIndex,s=e.children,l="".concat(n,"Id"),f=Uo(s,i),p={};return f&&f.length?p=Ch(e,{axes:f,graphicalItems:o,axisType:n,axisIdKey:l,stackGroups:a,dataStartIndex:c,dataEndIndex:u}):o&&o.length&&(p=function(e,t){var r=t.graphicalItems,n=t.Axis,i=t.axisType,o=t.axisIdKey,a=t.stackGroups,c=t.dataStartIndex,u=t.dataEndIndex,s=e.layout,l=e.children,f=_h(e.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:u}),p=f.length,d=Kp(s,i),h=-1;return r.reduce((function(e,t){var m,v=t.props[o];return e[v]?e:(h++,d?m=xe()(0,p):a&&a[v]&&a[v].hasStack?(m=ud(a[v].stackGroups,c,u),m=ch(l,m,v,i)):(m=fd(n.defaultProps.domain,$p(f,r.filter((function(e){return e.props[o]===v&&!e.props.hide})),"number"),n.defaultProps.allowDataOverflow),m=ch(l,m,v,i)),Mh(Mh({},e),{},Oh({},v,Mh(Mh({axisType:i},n.defaultProps),{},{hide:!0,orientation:L()(kh,"".concat(i,".").concat(h%2),null),domain:m,originalDomain:n.defaultProps.domain,isCategorical:d,layout:s}))))}),{})}(e,{Axis:i,graphicalItems:o,axisType:n,axisIdKey:l,stackGroups:a,dataStartIndex:c,dataEndIndex:u})),p},Rh=function(e){var t=e.children,r=e.defaultShowTooltip,n=zo(t,Ad.displayName);return{chartX:0,chartY:0,dataStartIndex:n&&n.props&&n.props.startIndex||0,dataEndIndex:n&&n.props&&n.props.endIndex||e.data&&e.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!Ie()(r)&&r}},Bh=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},Uh=function(e,t){var r=e.props,n=(e.graphicalItems,e.xAxisMap),i=void 0===n?{}:n,o=e.yAxisMap,a=void 0===o?{}:o,c=r.width,u=r.height,s=r.children,l=r.margin||{},f=zo(s,Ad.displayName),p=zo(s,Xn.displayName),d=Object.keys(a).reduce((function(e,t){var r=a[t],n=r.orientation;return r.mirror||r.hide?e:Mh(Mh({},e),{},Oh({},n,e[n]+r.width))}),{left:l.left||0,right:l.right||0}),h=Object.keys(i).reduce((function(e,t){var r=i[t],n=r.orientation;return r.mirror||r.hide?e:Mh(Mh({},e),{},Oh({},n,L()(e,"".concat(n))+r.height))}),{top:l.top||0,bottom:l.bottom||0}),m=Mh(Mh({},h),d),v=m.bottom;return f&&(m.bottom+=f.props.height||Ad.defaultProps.height),p&&t&&(m=function(e,t,r,n){var i=r.children,o=r.width,a=r.margin,c=o-(a.left||0)-(a.right||0),u=Xp({children:i,legendWidth:c}),s=e;if(u){var l=n||{},f=u.align,p=u.verticalAlign,d=u.layout;("vertical"===d||"horizontal"===d&&"center"===p)&&V(e[f])&&(s=Zp(Zp({},e),{},Fp({},f,s[f]+(l.width||0)))),("horizontal"===d||"vertical"===d&&"center"===f)&&V(e[p])&&(s=Zp(Zp({},e),{},Fp({},p,s[p]+(l.height||0))))}return s}(m,0,r,t)),Mh(Mh({brushBottom:v},m),{},{width:c-m.left-m.right,height:u-m.top-m.bottom})};function zh(){return(zh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Hh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(u){i=!0,o=u}finally{try{n||null==c.return||c.return()}finally{if(i)throw o}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Gh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Gh(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Wh(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function qh(e){var t=e.offset,r=e.layout,n=e.width,i=e.dataKey,a=e.data,c=e.dataPointFormatter,u=e.xAxis,s=e.yAxis,l=Wh(e,["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"]),f=_e(l),p=a.map((function(e,a){var l=c(e,i),p=l.x,d=l.y,h=l.value,m=l.errorVal;if(!m)return null;var v,y,g=[];if(Array.isArray(m)){var b=Hh(m,2);v=b[0],y=b[1]}else v=y=m;if("vertical"===r){var w=u.scale,x=d+t,E=x+n,I=x-n,S=w(h-v),M=w(h+y);g.push({x1:M,y1:E,x2:M,y2:I}),g.push({x1:S,y1:x,x2:M,y2:x}),g.push({x1:S,y1:E,x2:S,y2:I})}else if("horizontal"===r){var O=s.scale,k=p+t,j=k-n,T=k+n,D=O(h-v),A=O(h+y);g.push({x1:j,y1:A,x2:T,y2:A}),g.push({x1:k,y1:D,x2:k,y2:A}),g.push({x1:j,y1:D,x2:T,y2:D})}return o.createElement(ze,zh({className:"recharts-errorBar",key:"bar-".concat(a)},f),g.map((function(e,t){return o.createElement("line",zh({},e,{key:"line-".concat(t)}))})))}));return o.createElement(ze,{className:"recharts-errorBars"},p)}qh.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},qh.displayName="ErrorBar";var Zh=function(e){return null};Zh.displayName="Cell";var Fh=r(16731),Vh=r.n(Fh);function Jh(e){return function(e){if(Array.isArray(e))return Yh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Yh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Yh(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Xh(){return(Xh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Qh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qh(Object(r),!0).forEach((function(t){Kh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Kh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function em(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var tm={valueAccessor:function(e){return B()(e.value)?Vh()(e.value):e.value}};function rm(e){var t=e.data,r=e.valueAccessor,n=e.dataKey,i=e.clockWise,a=e.id,c=e.textBreakAll,u=em(e,["data","valueAccessor","dataKey","clockWise","id","textBreakAll"]);return t&&t.length?o.createElement(ze,{className:"recharts-label-list"},t.map((function(e,t){var s=Ie()(n)?r(e,t):Vp(e&&e.payload,n),l=Ie()(a)?{}:{id:"".concat(a,"-").concat(t)};return o.createElement(_a,Xh({},_e(e,!0),u,l,{parentViewBox:e.parentViewBox,index:t,value:s,textBreakAll:c,viewBox:_a.parseViewBox(Ie()(i)?e:$h($h({},e),{},{clockWise:i})),key:"label-".concat(t)}))}))):null}function nm(e,t){return e?!0===e?o.createElement(rm,{key:"labelList-implicit",data:t}):o.isValidElement(e)||me()(e)?o.createElement(rm,{key:"labelList-implicit",data:t,content:e}):ke()(e)?o.createElement(rm,Xh({data:t},e,{key:"labelList-implicit"})):null:null}function im(e){return(im="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function om(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function am(){return(am=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function cm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function um(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cm(Object(r),!0).forEach((function(t){sm(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function sm(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fm(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function pm(e,t){return(pm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function dm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=mm(e);if(t){var i=mm(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return hm(this,r)}}function hm(e,t){return!t||"object"!==im(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function mm(e){return(mm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}rm.displayName="LabelList",rm.renderCallByParent=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=Uo(n,rm.displayName).map((function(e,r){return(0,o.cloneElement)(e,{data:t,key:"labelList-".concat(r)})}));if(!r)return i;var a=nm(e.label,t);return[a].concat(Jh(i))},rm.defaultProps=tm;var vm=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&pm(e,t)}(a,e);var t,r,n,i=dm(a);function a(){var e;lm(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return(e=i.call.apply(i,[this].concat(r))).state={isAnimationFinished:!1},e.id=X("recharts-bar-"),e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()},e.handleAnimationStart=function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()},e}return t=a,n=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}},{key:"renderRectangle",value:function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):me()(e)?e(t):o.createElement(Ao,t)}}],(r=[{key:"renderRectanglesStatically",value:function(e){var t=this,r=this.props.shape,n=_e(this.props);return e&&e.map((function(e,i){var c=um(um(um({},n),e),{},{index:i});return o.createElement(ze,am({className:"recharts-bar-rectangle"},Ne(t.props,e,i),{key:"rectangle-".concat(i)}),a.renderRectangle(r,c))}))}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,t=this.props,r=t.data,n=t.layout,i=t.isAnimationActive,a=t.animationBegin,c=t.animationDuration,u=t.animationEasing,s=t.animationId,l=this.state.prevData;return o.createElement(sr,{begin:a,duration:c,isActive:i,easing:u,from:{t:0},to:{t:1},key:"bar-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var i=t.t,a=r.map((function(e,t){var r=l&&l[t];if(r){var o=K(r.x,e.x),a=K(r.y,e.y),c=K(r.width,e.width),u=K(r.height,e.height);return um(um({},e),{},{x:o(i),y:a(i),width:c(i),height:u(i)})}if("horizontal"===n){var s=K(0,e.height)(i);return um(um({},e),{},{y:e.y+e.height-s,height:s})}var f=K(0,e.width)(i);return um(um({},e),{},{width:f})}));return o.createElement(ze,null,e.renderRectanglesStatically(a))}))}},{key:"renderRectangles",value:function(){var e=this.props,t=e.data,r=e.isAnimationActive,n=this.state.prevData;return!(r&&t&&t.length)||n&&nc()(n,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props.data,r=_e(this.props.background);return t.map((function(t,n){t.value;var i=t.background,o=om(t,["value","background"]);if(!i)return null;var c=um(um(um(um(um({},o),{},{fill:"#eee"},i),r),Ne(e.props,t,n)),{},{index:n,key:"background-bar-".concat(n),className:"recharts-bar-background-rectangle"});return a.renderRectangle(e.props.background,c)}))}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,t=e.data,r=e.xAxis,n=e.yAxis,i=e.layout,a=e.children,c=Uo(a,qh.displayName);if(!c)return null;var u="vertical"===i?t[0].height/2:t[0].width/2;function s(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:Vp(e,t)}}return c.map((function(e,a){return o.cloneElement(e,{key:"error-bar-".concat(a),data:t,xAxis:r,yAxis:n,layout:i,offset:u,dataPointFormatter:s})}))}},{key:"render",value:function(){var e=this.props,t=e.hide,r=e.data,n=e.className,i=e.xAxis,a=e.yAxis,c=e.left,u=e.top,s=e.width,l=e.height,f=e.isAnimationActive,p=e.background,d=e.id;if(t||!r||!r.length)return null;var h=this.state.isAnimationFinished,m=P()("recharts-bar",n),v=i&&i.allowDataOverflow||a&&a.allowDataOverflow,y=Ie()(d)?this.id:d;return o.createElement(ze,{className:m},v?o.createElement("defs",null,o.createElement("clipPath",{id:"clipPath-".concat(y)},o.createElement("rect",{x:c,y:u,width:s,height:l}))):null,o.createElement(ze,{className:"recharts-bar-rectangles",clipPath:v?"url(#clipPath-".concat(y,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(),(!f||h)&&rm.renderCallByParent(this.props,r))}}])&&fm(t.prototype,r),n&&fm(t,n),a}(o.PureComponent);vm.displayName="Bar",vm.defaultProps={xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",isAnimationActive:!Sr.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"},vm.getComposedData=function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,o=e.xAxis,a=e.yAxis,c=e.xAxisTicks,u=e.yAxisTicks,s=e.stackedData,l=e.dataStartIndex,f=e.displayedData,p=e.offset,d=function(e,t){if(!e)return null;for(var r=0,n=e.length;r<n;r++)if(e[r].item===t)return e[r].position;return null}(n,r);if(!d)return null;var h=t.layout,m=r.props,v=m.dataKey,y=m.children,g=m.minPointSize,b="horizontal"===h?a:o,w=s?b.scale.domain():null,x=function(e){var t=e.numericAxis,r=t.scale.domain();if("number"===t.type){var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return n<=0&&i>=0?0:i<0?i:n}return r[0]}({numericAxis:b}),E=Uo(y,Zh.displayName),I=f.map((function(e,t){var n,f,p,m,y,b;if(s?n=function(e,t){if(!t||2!==t.length||!V(t[0])||!V(t[1]))return e;var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!V(e[0])||e[0]<r)&&(i[0]=r),(!V(e[1])||e[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i}(s[l+t],w):(n=Vp(e,v),B()(n)||(n=[x,n])),"horizontal"===h){if(f=cd({axis:o,ticks:c,bandSize:i,offset:d.offset,entry:e,index:t}),p=a.scale(n[1]),m=d.size,y=a.scale(n[0])-a.scale(n[1]),b={x:f,y:a.y,width:m,height:a.height},Math.abs(g)>0&&Math.abs(y)<Math.abs(g)){var I=Z(y||g)*(Math.abs(g)-Math.abs(y));p-=I,y+=I}}else f=o.scale(n[0]),p=cd({axis:a,ticks:u,bandSize:i,offset:d.offset,entry:e,index:t}),m=o.scale(n[1])-o.scale(n[0]),y=d.size,b={x:o.x,y:p,width:o.width,height:y},Math.abs(g)>0&&Math.abs(m)<Math.abs(g)&&(m+=Z(m||g)*(Math.abs(g)-Math.abs(m)));return um(um(um({},e),{},{x:f,y:p,width:m,height:y,value:s?n:n[1],payload:e,background:b},E&&E[t]&&E[t].props),{},{tooltipPayload:[hd(r,e)],tooltipPosition:{x:f+m/2,y:p+y/2}})}));return um({data:I,layout:h},p)};var ym=function(){return null};ym.displayName="XAxis",ym.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",domain:[0,"auto"],padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0};var gm=function(){return null};gm.displayName="YAxis",gm.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",domain:[0,"auto"],padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1};var bm=function(e){var t,r,n=e.chartName,i=e.GraphicalChild,a=e.defaultTooltipEventType,c=void 0===a?"axis":a,u=e.validateTooltipEventTypes,s=void 0===u?["axis"]:u,l=e.axisComponents,f=e.legendContent,p=e.formatAxisMap,d=e.defaultProps,h=function(e,t){var r=t.graphicalItems,n=t.stackGroups,i=t.offset,a=t.updateId,c=t.dataStartIndex,u=t.dataEndIndex,s=e.barSize,f=e.layout,p=e.barGap,d=e.barCategoryGap,h=e.maxBarSize,m=Bh(f),v=m.numericAxisName,y=m.cateAxisName,g=function(e){return!(!e||!e.length)&&e.some((function(e){var t=Bo(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(r)&&function(e){var t=e.barSize,r=e.stackGroups,n=void 0===r?{}:r;if(!n)return{};for(var i={},o=Object.keys(n),a=0,c=o.length;a<c;a++)for(var u=n[o[a]].stackGroups,s=Object.keys(u),l=0,f=s.length;l<f;l++){var p=u[s[l]],d=p.items,h=p.cateAxisId,m=d.filter((function(e){return Bo(e.type).indexOf("Bar")>=0}));if(m&&m.length){var v=m[0].props.barSize,y=m[0].props[h];i[y]||(i[y]=[]),i[y].push({item:m[0],stackList:m.slice(1),barSize:Ie()(v)?t:v})}}return i}({barSize:s,stackGroups:n}),b=[];return r.forEach((function(r,s){var m=_h(e.data,{dataStartIndex:c,dataEndIndex:u},r),w=r.props,x=w.dataKey,E=w.maxBarSize,I=r.props["".concat(v,"Id")],S=r.props["".concat(y,"Id")],M=l.reduce((function(e,n){var i,o=t["".concat(n.axisType,"Map")],a=r.props["".concat(n.axisType,"Id")],c=o&&o[a];return Mh(Mh({},e),{},(Oh(i={},n.axisType,c),Oh(i,"".concat(n.axisType,"Ticks"),td(c)),i))}),{}),O=M[y],k=M["".concat(y,"Ticks")],j=n&&n[I]&&n[I].hasStack&&function(e,t){var r=e.props.stackId;if(J(r)){var n=t[r];if(n&&n.items.length){for(var i=-1,o=0,a=n.items.length;o<a;o++)if(n.items[o]===e){i=o;break}return i>=0?n.stackedData[i]:null}}return null}(r,n[I].stackGroups),T=Bo(r.type).indexOf("Bar")>=0,D=pd(O,k),A=[];if(T){var _=pd(O,k,!0),P=Ie()(E)?h:E;A=function(e){var t=e.barGap,r=e.barCategoryGap,n=e.bandSize,i=e.sizeList,o=void 0===i?[]:i,a=e.maxBarSize,c=o.length;if(c<1)return null;var u,s=Q(t,n,0,!0);if(o[0].barSize===+o[0].barSize){var l=!1,f=n/c,p=o.reduce((function(e,t){return e+t.barSize||0}),0);(p+=(c-1)*s)>=n&&(p-=(c-1)*s,s=0),p>=n&&f>0&&(l=!0,p=c*(f*=.9));var d={offset:((n-p)/2>>0)-s,size:0};u=o.reduce((function(e,t){var r=[].concat(Gp(e),[{item:t.item,position:{offset:d.offset+d.size+s,size:l?f:t.barSize}}]);return d=r[r.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:d})})),r}),[])}else{var h=Q(r,n,0,!0);n-2*h-(c-1)*s<=0&&(s=0);var m=(n-2*h-(c-1)*s)/c;m>1&&(m>>=0);var v=a===+a?Math.min(m,a):m;u=o.reduce((function(e,t,r){var n=[].concat(Gp(e),[{item:t.item,position:{offset:h+(m+s)*r+(m-v)/2,size:v}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:n[n.length-1].position})})),n}),[])}return u}({barGap:p,barCategoryGap:d,bandSize:_!==D?_:D,sizeList:g[S],maxBarSize:P}),_!==D&&(A=A.map((function(e){return Mh(Mh({},e),{},{position:Mh(Mh({},e.position),{},{offset:e.position.offset-_/2})})})))}var N,C,L,R,B=r&&r.type&&r.type.getComposedData;B&&b.push({props:Mh(Mh({},B(Mh(Mh({},M),{},{displayedData:m,props:e,dataKey:x,item:r,bandSize:D,barPosition:A,offset:i,stackedData:j,layout:f,dataStartIndex:c,dataEndIndex:u}))),{},(N={key:r.key||"item-".concat(s)},Oh(N,v,M[v]),Oh(N,y,M[y]),Oh(N,"animationId",a),N)),childIndex:(C=r,L=e.children,R=-1,o.Children.forEach(L,(function(e,t){e===C&&(R=t)})),R),item:r})})),b},m=function(e,t){var r=e.props,o=e.dataStartIndex,a=e.dataEndIndex,c=e.updateId;if(!Ho({props:r}))return null;var u=r.children,s=r.layout,f=r.stackOffset,d=r.data,m=r.reverseStackOrder,v=Bh(s),y=v.numericAxisName,g=v.cateAxisName,b=Uo(u,i),w=function(e,t,r,n,i,o){if(!e)return null;var a=(o?t.reverse():t).reduce((function(e,t){var i=t.props,o=i.stackId;if(i.hide)return e;var a=t.props[r],c=e[a]||{hasStack:!1,stackGroups:{}};if(J(o)){var u=c.stackGroups[o]||{numericAxisId:r,cateAxisId:n,items:[]};u.items.push(t),c.hasStack=!0,c.stackGroups[o]=u}else c.stackGroups[X("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[t]};return Zp(Zp({},e),{},Fp({},a,c))}),{});return Object.keys(a).reduce((function(t,o){var c=a[o];return c.hasStack&&(c.stackGroups=Object.keys(c.stackGroups).reduce((function(t,o){var a=c.stackGroups[o];return Zp(Zp({},t),{},Fp({},o,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:od(e,a.items,i)}))}),{})),Zp(Zp({},t),{},Fp({},o,c))}),{})}(d,b,"".concat(y,"Id"),"".concat(g,"Id"),f,m),x=l.reduce((function(e,t){var n="".concat(t.axisType,"Map");return Mh(Mh({},e),{},Oh({},n,Lh(r,Mh(Mh({},t),{},{graphicalItems:b,stackGroups:t.axisType===y&&w,dataStartIndex:o,dataEndIndex:a}))))}),{}),E=Uh(Mh(Mh({},x),{},{props:r,graphicalItems:b}),null==t?void 0:t.legendBBox);Object.keys(x).forEach((function(e){x[e]=p(r,x[e],E,e.replace("Map",""),n)}));var I,S,M=x["".concat(g,"Map")],O=(I=$(M),{tooltipTicks:S=td(I,!1,!0),orderedTooltipTicks:be()(S,(function(e){return e.coordinate})),tooltipAxis:I,tooltipAxisBandSize:pd(I)}),k=h(r,Mh(Mh({},x),{},{dataStartIndex:o,dataEndIndex:a,updateId:c,graphicalItems:b,stackGroups:w,offset:E}));return Mh(Mh({formatedGraphicalItems:k,graphicalItems:b,offset:E,stackGroups:w},O),x)};return r=t=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vh(e,t)}(u,e);var t,r,i,a=yh(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=a.call(this,e)).uniqueChartId=void 0,t.clipPathId=void 0,t.legendInstance=void 0,t.deferId=void 0,t.container=void 0,t.clearDeferId=function(){!Ie()(t.deferId)&&Ah&&Ah(t.deferId),t.deferId=null},t.handleLegendBBoxUpdate=function(e){if(e&&t.legendInstance){var r=t.state,n=r.dataStartIndex,i=r.dataEndIndex,o=r.updateId;t.setState(Mh({legendBBox:e},m({props:t.props,dataStartIndex:n,dataEndIndex:i,updateId:o},Mh(Mh({},t.state),{},{legendBBox:e}))))}},t.handleReceiveSyncEvent=function(e,r,n){t.props.syncId===e&&r!==t.uniqueChartId&&(t.clearDeferId(),t.deferId=Dh&&Dh(t.applySyncEvent.bind(bh(t),n)))},t.handleBrushChange=function(e){var r=e.startIndex,n=e.endIndex;if(r!==t.state.dataStartIndex||n!==t.state.dataEndIndex){var i=t.state.updateId;t.setState((function(){return Mh({dataStartIndex:r,dataEndIndex:n},m({props:t.props,dataStartIndex:r,dataEndIndex:n,updateId:i},t.state))})),t.triggerSyncEvent({dataStartIndex:r,dataEndIndex:n})}},t.handleMouseEnter=function(e){var r=t.props.onMouseEnter,n=t.getMouseInfo(e);if(n){var i=Mh(Mh({},n),{},{isTooltipActive:!0});t.setState(i),t.triggerSyncEvent(i),me()(r)&&r(i,e)}},t.triggeredAfterMouseMove=function(e){var r=t.props.onMouseMove,n=t.getMouseInfo(e),i=n?Mh(Mh({},n),{},{isTooltipActive:!0}):{isTooltipActive:!1};t.setState(i),t.triggerSyncEvent(i),me()(r)&&r(i,e)},t.handleItemMouseEnter=function(e){t.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))},t.handleItemMouseLeave=function(){t.setState((function(){return{isTooltipActive:!1}}))},t.handleMouseMove=function(e){e&&me()(e.persist)&&e.persist(),t.triggeredAfterMouseMove(e)},t.handleMouseLeave=function(e){var r=t.props.onMouseLeave,n={isTooltipActive:!1};t.setState(n),t.triggerSyncEvent(n),me()(r)&&r(n,e),t.cancelThrottledTriggerAfterMouseMove()},t.handleOuterEvent=function(e){var r=function(e){var t=e&&e.type;return t&&Ro[t]?Ro[t]:null}(e),n=L()(t.props,"".concat(r));r&&me()(n)&&n(/.*touch.*/i.test(r)?t.getMouseInfo(e.changedTouches[0]):t.getMouseInfo(e),e)},t.handleClick=function(e){var r=t.props.onClick,n=t.getMouseInfo(e);if(n){var i=Mh(Mh({},n),{},{isTooltipActive:!0});t.setState(i),t.triggerSyncEvent(i),me()(r)&&r(i,e)}},t.handleMouseDown=function(e){var r=t.props.onMouseDown;me()(r)&&r(t.getMouseInfo(e),e)},t.handleMouseUp=function(e){var r=t.props.onMouseUp;me()(r)&&r(t.getMouseInfo(e),e)},t.handleTouchMove=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseMove(e.changedTouches[0])},t.handleTouchStart=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseDown(e.changedTouches[0])},t.handleTouchEnd=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseUp(e.changedTouches[0])},t.verticalCoordinatesGenerator=function(e){var t=e.xAxis,r=e.width,n=e.height,i=e.offset;return ed(Va.getTicks(Mh(Mh(Mh({},Va.defaultProps),t),{},{ticks:td(t,!0),viewBox:{x:0,y:0,width:r,height:n}})),i.left,i.left+i.width)},t.horizontalCoordinatesGenerator=function(e){var t=e.yAxis,r=e.width,n=e.height,i=e.offset;return ed(Va.getTicks(Mh(Mh(Mh({},Va.defaultProps),t),{},{ticks:td(t,!0),viewBox:{x:0,y:0,width:r,height:n}})),i.top,i.top+i.height)},t.axesTicksGenerator=function(e){return td(e,!0)},t.renderCursor=function(e){var r=t.state,i=r.isTooltipActive,a=r.activeCoordinate,c=r.activePayload,u=r.offset,s=r.activeTooltipIndex,l=t.getTooltipEventType();if(!(e&&e.props.cursor&&i&&a&&"axis"===l))return null;var f,p=t.props.layout,d=Ci;if("ScatterChart"===n)f=a,d=qi;else if("BarChart"===n)f=t.getCursorRectangle(),d=Ao;else if("radial"===p){var h=t.getCursorPoints(),m=h.cx,v=h.cy,y=h.radius;f={cx:m,cy:v,startAngle:h.startAngle,endAngle:h.endAngle,innerRadius:y,outerRadius:y},d=lo}else f={points:t.getCursorPoints()},d=Ci;var g=e.key||"_recharts-cursor",b=Mh(Mh(Mh(Mh({stroke:"#ccc",pointerEvents:"none"},u),f),_e(e.props.cursor)),{},{payload:c,payloadIndex:s,key:g,className:"recharts-tooltip-cursor"});return(0,o.isValidElement)(e.props.cursor)?(0,o.cloneElement)(e.props.cursor,b):(0,o.createElement)(d,b)},t.renderPolarAxis=function(e,r,n){var i=L()(e,"type.axisType"),a=L()(t.state,"".concat(i,"Map"))[e.props["".concat(i,"Id")]];return(0,o.cloneElement)(e,Mh(Mh({},a),{},{className:i,key:e.key||"".concat(r,"-").concat(n),ticks:td(a,!0)}))},t.renderXAxis=function(e,r,n){var i=t.state.xAxisMap[e.props.xAxisId];return t.renderAxis(i,e,r,n)},t.renderYAxis=function(e,r,n){var i=t.state.yAxisMap[e.props.yAxisId];return t.renderAxis(i,e,r,n)},t.renderGrid=function(e){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,c=t.props,u=c.width,s=c.height,l=$(n),f=de()(i,(function(e){return fe()(e.domain,Th)}))||$(i),p=e.props||{};return(0,o.cloneElement)(e,{key:e.key||"grid",x:V(p.x)?p.x:a.left,y:V(p.y)?p.y:a.top,width:V(p.width)?p.width:a.width,height:V(p.height)?p.height:a.height,xAxis:l,yAxis:f,offset:a,chartWidth:u,chartHeight:s,verticalCoordinatesGenerator:p.verticalCoordinatesGenerator||t.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:p.horizontalCoordinatesGenerator||t.horizontalCoordinatesGenerator})},t.renderPolarGrid=function(e){var r=e.props,n=r.radialLines,i=r.polarAngles,a=r.polarRadius,c=t.state,u=c.radiusAxisMap,s=c.angleAxisMap,l=$(u),f=$(s),p=f.cx,d=f.cy,h=f.innerRadius,m=f.outerRadius;e.props;return(0,o.cloneElement)(e,{polarAngles:B()(i)?i:td(f,!0).map((function(e){return e.coordinate})),polarRadius:B()(a)?a:td(l,!0).map((function(e){return e.coordinate})),cx:p,cy:d,innerRadius:h,outerRadius:m,key:e.key||"polar-grid",radialLines:n})},t.renderLegend=function(){var e=t.state.formatedGraphicalItems,r=t.props,n=r.children,i=r.width,a=r.height,c=t.props.margin||{},u=i-(c.left||0)-(c.right||0),s=Xp({children:n,formatedGraphicalItems:e,legendWidth:u,legendContent:f});if(!s)return null;var l=s.item,p=hh(s,["item"]);return(0,o.cloneElement)(l,Mh(Mh({},p),{},{chartWidth:i,chartHeight:a,margin:c,ref:function(e){t.legendInstance=e},onBBoxUpdate:t.handleLegendBBoxUpdate}))},t.renderTooltip=function(){var e=t.props.children,r=zo(e,Rr.displayName);if(!r)return null;var n=t.state,i=n.isTooltipActive,a=n.activeCoordinate,c=n.activePayload,u=n.activeLabel,s=n.offset;return(0,o.cloneElement)(r,{viewBox:Mh(Mh({},s),{},{x:s.left,y:s.top}),active:i,label:u,payload:i?c:[],coordinate:a})},t.renderBrush=function(e){var r=t.props,n=r.margin,i=r.data,a=t.state,c=a.offset,u=a.dataStartIndex,s=a.dataEndIndex,l=a.updateId;return(0,o.cloneElement)(e,{key:e.key||"_recharts-brush",onChange:rd(t.handleBrushChange,null,e.props.onChange),data:i,x:V(e.props.x)?e.props.x:c.left,y:V(e.props.y)?e.props.y:c.top+c.height+c.brushBottom-(n.bottom||0),width:V(e.props.width)?e.props.width:c.width,startIndex:u,endIndex:s,updateId:"brush-".concat(l)})},t.renderReferenceElement=function(e,r,n){if(!e)return null;var i=bh(t).clipPathId,a=t.state,c=a.xAxisMap,u=a.yAxisMap,s=a.offset,l=e.props,f=l.xAxisId,p=l.yAxisId;return(0,o.cloneElement)(e,{key:e.key||"".concat(r,"-").concat(n),xAxis:c[f],yAxis:u[p],viewBox:{x:s.left,y:s.top,width:s.width,height:s.height},clipPathId:i})},t.renderActivePoints=function(e){var t=e.item,r=e.activePoint,n=e.basePoint,i=e.childIndex,o=e.isRange,a=[],c=t.props.key,s=t.item.props,l=s.activeDot,f=Mh(Mh({index:i,dataKey:s.dataKey,cx:r.x,cy:r.y,r:4,fill:Yp(t.item),strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value,key:"".concat(c,"-activePoint-").concat(i)},_e(l)),Pe(l));return a.push(u.renderActiveDot(l,f)),n?a.push(u.renderActiveDot(l,Mh(Mh({},f),{},{cx:n.x,cy:n.y,key:"".concat(c,"-basePoint-").concat(i)}))):o&&a.push(null),a},t.renderGraphicChild=function(e,r,n){var i=t.filterFormatItem(e,r,n);if(!i)return null;var a=t.getTooltipEventType(),c=t.state,u=c.isTooltipActive,s=c.tooltipAxis,l=c.activeTooltipIndex,f=c.activeLabel,p=t.props.children,d=zo(p,Rr.displayName),h=i.props,m=h.points,v=h.isRange,y=h.baseLine,g=i.item.props,b=g.activeDot,w=!g.hide&&u&&d&&b&&l>=0,x={};"axis"!==a&&d&&"click"===d.props.trigger?x={onClick:rd(t.handleItemMouseEnter,null,e.props.onCLick)}:"axis"!==a&&(x={onMouseLeave:rd(t.handleItemMouseLeave,null,e.props.onMouseLeave),onMouseEnter:rd(t.handleItemMouseEnter,null,e.props.onMouseEnter)});var E=(0,o.cloneElement)(e,Mh(Mh({},i.props),x));if(w){var I,S;if(s.dataKey&&!s.allowDuplicatedCategory){var M="function"==typeof s.dataKey?function(e){return"function"==typeof s.dataKey?s.dataKey(e.payload):null}:"payload.".concat(s.dataKey.toString());I=ee(m,M,f),S=v&&y&&ee(y,M,f)}else I=m[l],S=v&&y&&y[l];if(!Ie()(I))return[E].concat(xh(t.renderActivePoints({item:i,activePoint:I,basePoint:S,childIndex:l,isRange:v})))}return v?[E,null,null]:[E,null]},t.renderCustomized=function(e){return(0,o.cloneElement)(e,Mh(Mh({},t.props),t.state))},t.uniqueChartId=Ie()(e.id)?X("recharts"):e.id,t.clipPathId="".concat(t.uniqueChartId,"-clip"),e.throttleDelay&&(t.triggeredAfterMouseMove=ye()(t.triggeredAfterMouseMove,e.throttleDelay)),t.state={},t}return t=u,(r=[{key:"componentDidMount",value:function(){Ie()(this.props.syncId)||this.addListener()}},{key:"componentDidUpdate",value:function(e){Ie()(e.syncId)&&!Ie()(this.props.syncId)&&this.addListener(),!Ie()(e.syncId)&&Ie()(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),Ie()(this.props.syncId)||this.removeListener(),this.cancelThrottledTriggerAfterMouseMove()}},{key:"cancelThrottledTriggerAfterMouseMove",value:function(){"function"==typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=zo(this.props.children,Rr.displayName);if(e&&Me()(e.props.shared)){var t=e.props.shared?"axis":"item";return s.indexOf(t)>=0?t:c}return c}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t,r,n,i=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}}(e,(t=this.container,r=t.ownerDocument.documentElement,n={top:0,left:0},void 0!==t.getBoundingClientRect&&(n=t.getBoundingClientRect()),{top:n.top+window.pageYOffset-r.clientTop,left:n.left+window.pageXOffset-r.clientLeft})),o=this.inRange(i.chartX,i.chartY);if(!o)return null;var a=this.state,c=a.xAxisMap,u=a.yAxisMap;if("axis"!==this.getTooltipEventType()&&c&&u){var s=$(c).scale,l=$(u).scale,f=s&&s.invert?s.invert(i.chartX):null,p=l&&l.invert?l.invert(i.chartY):null;return Mh(Mh({},i),{},{xValue:f,yValue:p})}var d=Nh(this.state,this.props.data,this.props.layout,o);return d?Mh(Mh({},i),d):null}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,r=t.activeCoordinate,n=t.offset,i=t.tooltipAxisBandSize,o=i/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?r.x-o:n.left+.5,y:"horizontal"===e?n.top+.5:r.y-o,width:"horizontal"===e?i:n.width-1,height:"horizontal"===e?n.height-1:i}}},{key:"getCursorPoints",value:function(){var e,t,r,n,i=this.props.layout,o=this.state,a=o.activeCoordinate,c=o.offset;if("horizontal"===i)r=e=a.x,t=c.top,n=c.top+c.height;else if("vertical"===i)n=t=a.y,e=c.left,r=c.left+c.width;else if(!Ie()(a.cx)||!Ie()(a.cy)){if("centric"!==i){var u=a.cx,s=a.cy,l=a.radius,f=a.startAngle,p=a.endAngle;return{points:[Xi(u,s,l,f),Xi(u,s,l,p)],cx:u,cy:s,radius:l,startAngle:f,endAngle:p}}var d=a.cx,h=a.cy,m=a.innerRadius,v=a.outerRadius,y=a.angle,g=Xi(d,h,m,y),b=Xi(d,h,v,y);e=g.x,t=g.y,r=b.x,n=b.y}return[{x:e,y:t},{x:r,y:n}]}},{key:"inRange",value:function(e,t){var r=this.props.layout;if("horizontal"===r||"vertical"===r){var n=this.state.offset;return e>=n.left&&e<=n.left+n.width&&t>=n.top&&t<=n.top+n.height?{x:e,y:t}:null}var i=this.state,o=i.angleAxisMap,a=i.radiusAxisMap;if(o&&a){var c=$(o);return Ki({x:e,y:t},c)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),r=zo(e,Rr.displayName),n={};return r&&"axis"===t&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),Mh(Mh({},Pe(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){sh.on(lh,this.handleReceiveSyncEvent),sh.setMaxListeners&&sh._maxListeners&&sh.setMaxListeners(sh._maxListeners+1)}},{key:"removeListener",value:function(){sh.removeListener(lh,this.handleReceiveSyncEvent),sh.setMaxListeners&&sh._maxListeners&&sh.setMaxListeners(sh._maxListeners-1)}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;Ie()(t)||sh.emit(lh,t,this.uniqueChartId,e)}},{key:"applySyncEvent",value:function(e){var t=this.props,r=t.layout,n=t.syncMethod,i=this.state.updateId,o=e.dataStartIndex,a=e.dataEndIndex;if(Ie()(e.dataStartIndex)&&Ie()(e.dataEndIndex))if(Ie()(e.activeTooltipIndex))this.setState(e);else{var c=e.chartX,u=e.chartY,s=e.activeTooltipIndex,l=this.state,f=l.offset,p=l.tooltipTicks;if(!f)return;if("function"==typeof n)s=n(p,e);else if("value"===n){s=-1;for(var d=0;d<p.length;d++)if(p[d].value===e.activeLabel){s=d;break}}var h=Mh(Mh({},f),{},{x:f.left,y:f.top}),v=Math.min(c,h.x+h.width),y=Math.min(u,h.y+h.height),g=p[s]&&p[s].value,b=Ph(this.state,this.props.data,s),w=p[s]?{x:"horizontal"===r?p[s].coordinate:v,y:"horizontal"===r?y:p[s].coordinate}:jh;this.setState(Mh(Mh({},e),{},{activeLabel:g,activeCoordinate:w,activePayload:b,activeTooltipIndex:s}))}else this.setState(Mh({dataStartIndex:o,dataEndIndex:a},m({props:this.props,dataStartIndex:o,dataEndIndex:a,updateId:i},this.state)))}},{key:"filterFormatItem",value:function(e,t,r){for(var n=this.state.formatedGraphicalItems,i=0,o=n.length;i<o;i++){var a=n[i];if(a.item===e||a.props.key===e.key||t===Bo(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderAxis",value:function(e,t,r,n){var i=this.props,a=i.width,c=i.height;return o.createElement(Va,dh({},e,{className:"recharts-".concat(e.axisType," ").concat(e.axisType),key:t.key||"".concat(r,"-").concat(n),viewBox:{x:0,y:0,width:a,height:c},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var e=this.clipPathId,t=this.state.offset,r=t.left,n=t.top,i=t.height,a=t.width;return o.createElement("defs",null,o.createElement("clipPath",{id:e},o.createElement("rect",{x:r,y:n,height:i,width:a})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var r=ph(t,2),n=r[0],i=r[1];return Mh(Mh({},e),{},Oh({},n,i.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var r=ph(t,2),n=r[0],i=r[1];return Mh(Mh({},e),{},Oh({},n,i.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(e){var t,r;return null===(t=this.state.xAxisMap)||void 0===t||null===(r=t[e])||void 0===r?void 0:r.scale}},{key:"getYScaleByAxisId",value:function(e){var t,r;return null===(t=this.state.yAxisMap)||void 0===t||null===(r=t[e])||void 0===r?void 0:r.scale}},{key:"getItemByXY",value:function(e){var t=this.state.formatedGraphicalItems;if(t&&t.length)for(var r=0,n=t.length;r<n;r++){var i=t[r],o=i.props,a=i.item,c=Bo(a.type);if("Bar"===c){var u=(o.data||[]).find((function(t){return Do(e,t)}));if(u)return{graphicalItem:i,payload:u}}else if("RadialBar"===c){var s=(o.data||[]).find((function(t){return Ki(e,t)}));if(s)return{graphicalItem:i,payload:s}}}return null}},{key:"render",value:function(){var e=this;if(!Ho(this))return null;var t=this.props,r=t.children,n=t.className,i=t.width,a=t.height,c=t.style,u=t.compact,s=hh(t,["children","className","width","height","style","compact"]),l=_e(s),f={CartesianGrid:{handler:this.renderGrid,once:!0},ReferenceArea:{handler:this.renderReferenceElement},ReferenceLine:{handler:this.renderReferenceElement},ReferenceDot:{handler:this.renderReferenceElement},XAxis:{handler:this.renderXAxis},YAxis:{handler:this.renderYAxis},Brush:{handler:this.renderBrush,once:!0},Bar:{handler:this.renderGraphicChild},Line:{handler:this.renderGraphicChild},Area:{handler:this.renderGraphicChild},Radar:{handler:this.renderGraphicChild},RadialBar:{handler:this.renderGraphicChild},Scatter:{handler:this.renderGraphicChild},Pie:{handler:this.renderGraphicChild},Funnel:{handler:this.renderGraphicChild},Tooltip:{handler:this.renderCursor,once:!0},PolarGrid:{handler:this.renderPolarGrid,once:!0},PolarAngleAxis:{handler:this.renderPolarAxis},PolarRadiusAxis:{handler:this.renderPolarAxis},Customized:{handler:this.renderCustomized}};if(u)return o.createElement(Re,dh({},l,{width:i,height:a}),this.renderClipPath(),Fo(r,f));var p=this.parseEventsOfWrapper();return o.createElement("div",dh({className:P()("recharts-wrapper",n),style:Mh({position:"relative",cursor:"default",width:i,height:a},c)},p,{ref:function(t){e.container=t}}),o.createElement(Re,dh({},l,{width:i,height:a}),this.renderClipPath(),Fo(r,f)),this.renderLegend(),this.renderTooltip())}}])&&mh(t.prototype,r),i&&mh(t,i),u}(o.Component),t.displayName=n,t.defaultProps=Mh({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d),t.getDerivedStateFromProps=function(e,t){var r=e.data,n=e.children,i=e.width,o=e.height,a=e.layout,c=e.stackOffset,u=e.margin;if(Ie()(t.updateId)){var s=Rh(e);return Mh(Mh(Mh({},s),{},{updateId:0},m(Mh(Mh({props:e},s),{},{updateId:0}),t)),{},{prevData:r,prevWidth:i,prevHeight:o,prevLayout:a,prevStackOffset:c,prevMargin:u,prevChildren:n})}if(r!==t.prevData||i!==t.prevWidth||o!==t.prevHeight||a!==t.prevLayout||c!==t.prevStackOffset||!Co(u,t.prevMargin)){var l=Rh(e),f={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},p=Mh(Mh({},Nh(t,r,a)),{},{updateId:t.updateId+1}),d=Mh(Mh(Mh({},l),f),p);return Mh(Mh(Mh({},d),m(Mh({props:e},d),t)),{},{prevData:r,prevWidth:i,prevHeight:o,prevLayout:a,prevStackOffset:c,prevMargin:u,prevChildren:n})}if(!qo(n,t.prevChildren)){var h=!Ie()(r)?t.updateId:t.updateId+1;return Mh(Mh({updateId:h},m(Mh(Mh({props:e},t),{},{updateId:h}),t)),{},{prevChildren:n})}return null},t.renderActiveDot=function(e,t){var r;return r=(0,o.isValidElement)(e)?(0,o.cloneElement)(e,t):me()(e)?e(t):o.createElement(wo,t),o.createElement(ze,{className:"recharts-active-dot",key:t.key},r)},r}({chartName:"BarChart",GraphicalChild:vm,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:ym},{axisType:"yAxis",AxisComp:gm}],formatAxisMap:function(e,t,r,i,o){var a=e.width,c=e.height,u=e.layout,s=e.children,l=Object.keys(t),f={left:r.left,leftMirror:r.left,right:a-r.right,rightMirror:a-r.right,top:r.top,topMirror:r.top,bottom:c-r.bottom,bottomMirror:c-r.bottom},p=!!zo(s,"Bar");return l.reduce((function(e,a){var c,s,l,d,h=t[a],m=h.orientation,v=h.domain,y=h.padding,g=void 0===y?{}:y,b=h.mirror,w=h.reversed,x="".concat(m).concat(b?"Mirror":"");c="xAxis"===i?[r.left+(g.left||0),r.left+r.width-(g.right||0)]:"yAxis"===i?"horizontal"===u?[r.top+r.height-(g.bottom||0),r.top+(g.top||0)]:[r.top+(g.top||0),r.top+r.height-(g.bottom||0)]:h.range,w&&(c=[c[1],c[0]]);var E=function(e,t,r){var i=e.scale,o=e.type,a=e.layout,c=e.axisType;if("auto"===i)return"radial"===a&&"radiusAxis"===c?{scale:Ka(),realScaleType:"band"}:"radial"===a&&"angleAxis"===c?{scale:hs(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!r)?{scale:tc(),realScaleType:"point"}:"category"===o?{scale:Ka(),realScaleType:"band"}:{scale:hs(),realScaleType:"linear"};if(q()(i)){var u="scale".concat(Ur()(i));return{scale:(n[u]||tc)(),realScaleType:n[u]?u:"point"}}return me()(i)?{scale:i}:{scale:tc(),realScaleType:"point"}}(h,o,p),I=E.scale,S=E.realScaleType;I.domain(v).range(c),function(e){var t=e.domain();if(t&&!(t.length<=2)){var r=t.length,n=e.range(),i=Math.min(n[0],n[1])-nd,o=Math.max(n[0],n[1])+nd,a=e(t[0]),c=e(t[r-1]);(a<i||a>o||c<i||c>o)&&e.domain([t[0],t[r-1]])}}(I);var M=ad(I,Rd(Rd({},h),{},{realScaleType:S}));"xAxis"===i?(d="top"===m&&!b||"bottom"===m&&b,s=r.left,l=f[x]-d*h.height):"yAxis"===i&&(d="left"===m&&!b||"right"===m&&b,s=f[x]-d*h.width,l=r.top);var O=Rd(Rd(Rd({},h),M),{},{realScaleType:S,x:s,y:l,scale:I,width:"xAxis"===i?r.width:h.width,height:"yAxis"===i?r.height:h.height});return O.bandSize=pd(O,M),h.hide||"xAxis"!==i?h.hide||(f[x]+=(d?-1:1)*O.width):f[x]+=(d?-1:1)*O.height,Rd(Rd({},e),{},Bd({},a,O))}),{})}}),wm=e=>o.createElement("div",{className:"wprm-admin-dashboard-block-chart-days-container"},o.createElement("div",{className:"wprm-admin-dashboard-block-chart-title"},"📊 ".concat((0,y.S)("Daily Interaction"))),o.createElement(se,{width:"100%",height:300},o.createElement(bm,{data:e.data},o.createElement(ym,{dataKey:"date"}),o.createElement(gm,{type:"number",domain:[0,"dataMax"],allowDecimals:!1}),o.createElement(Rr,null),o.createElement(vm,{dataKey:"total",name:(0,y.S)("Interactions"),fill:"#2271b1"})))),xm=e=>0===e.data.length?null:o.createElement("div",{className:"wprm-admin-dashboard-block-chart-table-container"},o.createElement("div",{className:"wprm-admin-dashboard-block-chart-title"},e.title),o.createElement("table",{className:"wprm-admin-dashboard-block-chart-table"},o.createElement("thead",null,o.createElement("tr",null,o.createElement("th",null,e.label),o.createElement("th",null,(0,y.S)("Total")),o.createElement("th",null,(0,y.S)("Unique")))),o.createElement("tbody",null,e.data.map(((e,t)=>o.createElement("tr",{key:t},o.createElement("td",null,e.name),o.createElement("td",null,e.total),o.createElement("td",null,e.unique)))))));class Em extends o.Component{constructor(e){super(e),this.state={loading:!0,data:!1}}componentDidMount(){this.checkForUpdate()}checkForUpdate(){this.setState({loading:!0},(()=>{v.Z.dashboard.getAnalytics().then((e=>{var t=!1;e&&(t=e.data),this.setState({loading:!1,data:t})}))}))}render(){var{data:e}=this.state;return o.createElement(o.Fragment,null,this.state.loading?o.createElement(T.Z,null):o.createElement(o.Fragment,null,0===e.total?o.createElement("span",null,(0,y.S)("No actions found for the last 7 days. If you just enabled analytics they should start showing up soon.")):o.createElement(o.Fragment,null,o.createElement("div",{className:"wprm-admin-dashboard-block-chart"},o.createElement(wm,{data:e.per_day})),o.createElement("div",{className:"wprm-admin-dashboard-block-chart"},o.createElement(xm,{title:"🏆 ".concat((0,y.S)("Top Recipe Interactions (last 7 days)")),label:(0,y.S)("Recipe"),data:e.per_recipe})),o.createElement("div",{className:"wprm-admin-dashboard-block-chart"},o.createElement(xm,{title:"👍 ".concat((0,y.S)("Interactions (last 7 days)")),label:(0,y.S)("Type"),data:e.per_type})))))}}class Im extends o.Component{constructor(e){super(e),this.state={analyticsEnabled:wprm_admin_dashboard.settings.analytics_enabled}}render(){return o.createElement(g,{title:(0,y.S)("Analytics")},this.state.analyticsEnabled?o.createElement(o.Fragment,null,o.createElement(Em,null),wprm_admin_dashboard.settings.honey_home_integration?o.createElement(M,{title:(0,y.S)("Learn more")},"Go to your ",o.createElement("a",{href:"https://dailygrub.com/dashboard",target:"_blank"},"DailyGrub Dashboard")," for more insights!"):o.createElement(M,{title:"📈 ".concat((0,y.S)("Interested in more data?"))},"WP Recipe Maker partners with ",o.createElement("a",{href:"https://dailygrub.com",target:"_blank"},"DailyGrub")," to offer a full suite of recipe-specific analytics!")):o.createElement(j,{onEnable:()=>{v.Z.settings.save({analytics_enabled:!0}),this.setState({analyticsEnabled:!0})}}))}}var Sm=r(47750);class Mm extends o.Component{constructor(e){super(e),this.state={rating:0}}render(){return o.createElement(g,{title:(0,y.S)("Feedback")},o.createElement("div",{className:"wprm-admin-dashboard-feedback-container"},0===this.state.rating&&o.createElement(o.Fragment,null,o.createElement("label",null,(0,y.S)("How would you rate WP Recipe Maker?")),o.createElement("div",null,o.createElement(Sm.Z,{rating:this.state.rating,starDimension:"25px",starSpacing:"0",starHoverColor:"#2271b1",changeRating:e=>{this.setState({rating:e},(()=>{v.Z.utilities.giveFeedback(e)}))},numberOfStars:5,name:"feedback"}))),0<this.state.rating&&3>=this.state.rating&&o.createElement(o.Fragment,null,o.createElement("p",null,"Sorry to hear you don't seem to be enjoying WP Recipe Maker as much as we want you to. It would be great if you could provide us with any feedback at all."),o.createElement("p",null,"Email ",o.createElement("a",{href:"mailto:support@bootstrapped.ventures",target:"_blank"},"support@bootstrapped.ventures")," with any problems, frustrations or suggestions and we'll be happy to help you out! We improve the plugin weekly based on customer feedback, so your thoughts can really make a difference."),o.createElement("a",{className:"button button-primary",href:"mailto:support@bootstrapped.ventures",target:"_blank"},"Contact us now!")),4==this.state.rating&&o.createElement(o.Fragment,null,o.createElement("p",null,"Happy to hear that you do seem to be enjoying WP Recipe Maker! We are aiming to be a 5-star plugin though, so it would be amazing if you could give us any feedback at all on how we can get there for you."),o.createElement("p",null,"Email ",o.createElement("a",{href:"mailto:support@bootstrapped.ventures",target:"_blank"},"support@bootstrapped.ventures")," with any problems, frustrations or suggestions and we'll be happy to help you out! We improve the plugin weekly based on customer feedback, so your thoughts can really make a difference."),o.createElement("a",{className:"button button-primary",href:"mailto:support@bootstrapped.ventures",target:"_blank"},"Contact us now!")),5==this.state.rating&&o.createElement(o.Fragment,null,o.createElement("p",null,"Very happy to hear you're enjoying WP Recipe Maker!"),o.createElement("p",null,"It would be amazing if you could help spread the word and leave an honest ",o.createElement("a",{href:"https://wordpress.org/support/plugin/wp-recipe-maker/reviews/#new-post",target:"_blank"},"review over at wordpress.org")," for our plugin. This really helps with getting new users, which leads to more customers and more time we can spend improving WPRM."),o.createElement("a",{className:"button button-primary",href:"https://wordpress.org/support/plugin/wp-recipe-maker/reviews/#new-post",target:"_blank"},"Leave a review!"),o.createElement("p",null,"Already left a review? Thanks a lot for taking the time! If you have any further feedback at all, feel free to contact us at ",o.createElement("a",{href:"mailto:support@bootstrapped.ventures",target:"_blank"},"support@bootstrapped.ventures"),". We improve the plugin weekly based on customer feedback, so your thoughts can really make a difference."))))}}r(19985);class Om extends o.Component{constructor(e){super(e),this.state={open:!1}}render(){return o.createElement("div",{className:"wprm-admin-dashboard-health-check-item"},o.createElement("div",{className:"wprm-admin-dashboard-health-check-header",onClick:()=>{this.setState({open:!this.state.open})}},this.props.header),this.state.open&&o.createElement("div",{className:"wprm-admin-dashboard-health-check-content"},this.props.children))}}var km=e=>o.createElement(o.Fragment,null,e.item.includes("litespeed-cache")&&o.createElement(Om,{header:"🔌 LiteSpeed Cache might be breaking recipe saving"},o.createElement("p",null,'There have been issues with LiteSpeed Cache breaking the recipe saving if the "Cache REST API" setting is enabled on the ',o.createElement("em",null,"LiteSpeed Cache > Cache")," page."),o.createElement("p",null,'We recommend setting that setting to "Off".'))),jm=e=>{var t=e.item;return t.length?o.createElement(Om,{header:"✍️ Duplicate recipe names: ".concat(t.length)},o.createElement("p",null,"These recipe names are used in more than 1 recipe and might be duplicates. Click to find them on the manage page:"),o.createElement("div",{className:"wprm-admin-dashboard-health-check-list"},t.map(((e,t)=>o.createElement("div",{className:"wprm-admin-dashboard-health-check-list-item",key:t},o.createElement("div",{className:"wprm-admin-dashboard-health-check-list-item-main"},o.createElement("a",{href:"".concat(wprm_admin.manage_url,"#recipe/name=").concat(encodeURIComponent(e.name))},e.name)),o.createElement("div",{className:"wprm-admin-dashboard-health-check-list-item-side"},e.recipes.length," recipes")))))):null},Tm=e=>{var t=e.item;return t&&Object.keys(t).length?o.createElement(Om,{header:"📸 Missing recipe thumbnails: ".concat(Object.keys(t).length)},o.createElement("p",null,"Google expects to see 3 different ratios for the recipe image in the recipe metadata. WP Recipe Maker automatically generates those ratios for the recipe images, but some of them seem to be missing. This can happen if you converted those recipes from another plugin, for example."),o.createElement("p",null,"Try using a plugin like ",o.createElement("a",{href:"https://wordpress.org/plugins/regenerate-thumbnails/",target:"_blank"},"Regenerate Thumbnails")," to make sure all thumbnail sizes exist."),o.createElement("p",null,"If that doesn't fix things, the problem could also be that the original recipe image is too small. A recipe image should be at least 500 by 500 pixels to be able to generate all thumbnail sizes."),o.createElement("p",null,"Click through to find the problem recipes on the Manage page:"),o.createElement("div",{className:"wprm-admin-dashboard-health-check-list"},Object.keys(t).map(((e,r)=>{var n=t[e]?t[e]:"n/a";return o.createElement("div",{className:"wprm-admin-dashboard-health-check-list-item",key:r},o.createElement("div",{className:"wprm-admin-dashboard-health-check-list-item-main"},o.createElement("a",{href:"".concat(wprm_admin.manage_url,"#recipe/id=").concat(encodeURIComponent(e))},n)))})))):null},Dm=r(2778),Am=r.n(Dm),_m={compatibility:km,duplicate_names:jm,missing_thumbnails:Tm,multiple_parents:e=>{var t=e.item;return Object.keys(t).length?o.createElement(Om,{header:"📑 Recipes used in multiple places: ".concat(Object.keys(t).length)},o.createElement("p",null,"These recipes have been added to more than 1 post or page. A recipe should generally only exist in 1 parent post. References should be made using the ",o.createElement("a",{href:"https://help.bootstrapped.ventures/article/182-itemlist-metadata-for-recipe-roundup-posts",target:"_blank"},"Recipe Roundup feature")," instead. Click on a post to edit it:"),o.createElement("div",{className:"wprm-admin-dashboard-health-check-list"},Object.keys(t).map(((e,r)=>{var n=t[e];return o.createElement("div",{className:"wprm-admin-dashboard-health-check-multiple-parents",key:r},o.createElement("div",{className:"wprm-admin-dashboard-health-check-multiple-parents-recipe"},e," - ",n.name),o.createElement("div",{className:"wprm-admin-dashboard-health-check-multiple-parents-posts"},n.posts.map(((e,t)=>{var r="".concat(e.id," - ").concat(e.name?e.name:"n/a");return o.createElement("div",{className:"wprm-admin-dashboard-health-check-multiple-parents-post",key:t},e.edit_url?o.createElement(o.Fragment,null,o.createElement("a",{href:Am().decode(e.edit_url)},r),parseInt(n.parent_post_id)===parseInt(e.id)&&" (parent post)"):r)}))))})))):null},seo_types:e=>{var t=e.item,r=Object.values(t).reduce(((e,t)=>e+t));if(0===r)return o.createElement(Om,{header:"🤷‍♂️ No recipes yet"},o.createElement("p",null,"We can't seem to find any recipes yet. Start adding them!"));var n={good:"Good SEO",rating:"Only missing recipe ratings",warning:"Missing some recommended fields",bad:"Missing some required fields",other:"Not using metadata (excluded from count)"};return o.createElement(Om,{header:"🔍 Recipes with a good SEO rating: ".concat(t.good," of ").concat(r-t.other)},o.createElement("p",null,"Google has a list of required and recommended fields they want to see in the metadata. You definitely need to fill in all required fields. Not filling in recommended fields will get you a warning, but is not a huge problem. Click to see those recipes on the manage page:"),o.createElement("div",{className:"wprm-admin-dashboard-health-check-list"},Object.keys(n).map(((e,r)=>{var i=n[e];return o.createElement("div",{className:"wprm-admin-dashboard-health-check-list-item",key:r},o.createElement("div",{className:"wprm-admin-dashboard-health-check-list-item-main"},o.createElement("a",{href:"".concat(wprm_admin.manage_url,"#recipe/seo=").concat(e)},i)),o.createElement("div",{className:"wprm-admin-dashboard-health-check-list-item-side"},t[e]," ",1===t[e]?"recipe":"recipes"))}))))}};class Pm extends o.Component{constructor(e){super(e),this.state={items:wprm_admin_dashboard.health.items}}render(){return o.createElement(g,{title:(0,y.S)("Health Check"),button:(0,y.S)("Run Check"),buttonAction:()=>{window.location=wprm_admin_dashboard.health.tool}},o.createElement("div",{className:"wprm-admin-dashboard-health-check-container"},o.createElement("div",{className:"wprm-admin-dashboard-health-check-last-update wprm-admin-dashboard-health-check-last-update-".concat(wprm_admin_dashboard.health.urgency),title:wprm_admin_dashboard.health.date?wprm_admin_dashboard.health.date_formatted_full:null},(0,y.S)("Last check:")," ",wprm_admin_dashboard.health.date_formatted,wprm_admin_dashboard.health.updated&&" (".concat((0,y.S)("outdated version"),")")),o.createElement("div",{className:"wprm-admin-dashboard-health-check-description"},(0,y.S)("Use the Health Check feature to search for any WPRM-related issues and improve your recipes.")," ","never"===wprm_admin_dashboard.health.urgency?(0,y.S)("Recommended to run occassionally by clicking on the blue button."):(0,y.S)("Most recent results:")),Object.keys(this.state.items).map(((e,t)=>{var r=this.state.items[e],n=!!_m.hasOwnProperty(e)&&_m[e];return n?o.createElement(n,{item:r,key:t}):null})),o.createElement("div",{className:"wprm-admin-dashboard-health-check-learn-more"},o.createElement("a",{href:"https://help.bootstrapped.ventures/article/306-health-check",target:"_blank"},(0,y.S)("Learn more about the Health Check feature")))))}}var Nm=e=>o.createElement("div",{className:"wprm-admin-dashboard-learn-section-container"},o.createElement("div",{className:"wprm-admin-dashboard-learn-section-title"},e.title),o.createElement("div",{className:"wprm-admin-dashboard-learn-section"},e.children)),Cm=e=>o.createElement("div",{className:"wprm-admin-dashboard-learn-section-item"},e.hasOwnProperty("url")?o.createElement("a",{href:e.url,target:"_blank"},e.children):e.children),Lm=e=>o.createElement(g,{title:(0,y.S)("Get the most out of WPRM")},o.createElement("div",{className:"wprm-admin-dashboard-learn-container"},o.createElement(Nm,{title:"🧑‍🎓 ".concat((0,y.S)("Learn More"))},o.createElement(Cm,{url:"https://help.bootstrapped.ventures/collection/1-wp-recipe-maker"},(0,y.S)("Documentation in our knowledge base")),o.createElement(Cm,{url:"https://demo.wprecipemaker.com/all-features/"},(0,y.S)("All features in action on our demo site")),o.createElement(Cm,{url:"https://bootstrapped.ventures/wp-recipe-maker/videos/"},(0,y.S)("Video tutorials and walkthroughs"))),o.createElement(Nm,{title:"🤝 ".concat((0,y.S)("Our Partners"))},o.createElement(Cm,{url:"https://myemissions.green/wp-recipe-maker?ref=wprm"},(0,y.S)("My Emissions carbon footprint labels")),o.createElement(Cm,{url:"https://dailygrub.com"},(0,y.S)("DailyGrub recipe analytics suite"))),o.createElement(Nm,{title:"🙋 ".concat((0,y.S)("Get Help"))},o.createElement(Cm,{url:"https://www.facebook.com/groups/1741126932849712"},(0,y.S)("WP Recipe Maker Facebook Group")),o.createElement(Cm,{url:"mailto:support@bootstrapped.ventures"},(0,y.S)("Email our support team"))))),Rm=e=>{var{item:t}=e;if(!t.title)return null;var r=o.createElement(o.Fragment,null,o.createElement("div",{className:"wprm-admin-dashboard-news-item-title-container"},o.createElement("div",{className:"wprm-admin-dashboard-news-item-date"},t.date_formatted),o.createElement("div",{className:"wprm-admin-dashboard-news-item-title"},t.title)),t.hasOwnProperty("label")&&o.createElement("div",{className:"wprm-admin-dashboard-news-item-label wprm-admin-dashboard-news-item-label-".concat(t.label_key)},t.label)),n=["wprm-admin-dashboard-news-item"];return t.new&&n.push("wprm-admin-dashboard-news-item-new"),o.createElement(o.Fragment,null,t.hasOwnProperty("url")?o.createElement("a",{href:t.url,target:"_blank",className:n.join(" ")},r):o.createElement("div",{className:n.join(" ")},r))},Bm=e=>{var t=wprm_admin_dashboard.news;return t&&0!==t.length?o.createElement(g,{title:(0,y.S)("News")},o.createElement("div",{className:"wprm-admin-dashboard-news-container"},t.map(((e,t)=>o.createElement(Rm,{item:e,key:t}))))):null},Um=r(46963),zm=e=>{var{recipe:t}=e,r=t.hasOwnProperty("permalink")&&t.permalink;return o.createElement("div",{className:"wprm-admin-dashboard-recipes-recipe"},o.createElement("div",{className:"wprm-admin-dashboard-recipes-recipe-name-container"},o.createElement("div",{className:"wprm-admin-dashboard-recipes-recipe-date"},t.date_formatted?t.date_formatted:""),o.createElement("div",{className:"wprm-admin-dashboard-recipes-recipe-name"},t.name?t.name:"n/a")),o.createElement("div",{className:"wprm-admin-dashboard-recipes-recipe-actions"},r&&o.createElement("div",{className:"wprm-admin-dashboard-recipes-recipe-action"},o.createElement("a",{href:t.permalink,target:"_blank"},o.createElement(Um.Z,{type:"eye",title:(0,y.S)("View Recipe")}))),o.createElement("div",{className:"wprm-admin-dashboard-recipes-recipe-action"},o.createElement(Um.Z,{type:"pencil",title:(0,y.S)("Edit Recipe"),onClick:()=>{WPRM_Modal.open("recipe",{recipeId:t.id,saveCallback:r=>{var n=JSON.parse(JSON.stringify(t));n.name=r.name,e.onUpdate(n)}})}}))))};class Hm extends o.Component{constructor(e){super(e),this.state={recipes:wprm_admin_dashboard.recipes}}render(){return o.createElement(g,{title:(0,y.S)("Latest Recipes"),button:(0,y.S)("Create Recipe"),buttonAction:()=>{WPRM_Modal.open("recipe",{saveCallback:e=>{var t=JSON.parse(JSON.stringify(this.state.recipes)),r=JSON.parse(JSON.stringify(e));r.date_formatted=wprm_admin_dashboard.today_formatted,(t=t.filter((e=>e.id!==r.id))).unshift(r),this.setState({recipes:t})}})}},o.createElement("div",{className:"wprm-admin-dashboard-recipes-container"},0===this.state.recipes.length?o.createElement("div",{className:"wprm-admin-dashboard-recipes-all"},(0,y.S)("No recipes found. Welcome to WP Recipe Maker!")):o.createElement(o.Fragment,null,this.state.recipes.map(((e,t)=>o.createElement(zm,{recipe:e,onUpdate:e=>{var r=JSON.parse(JSON.stringify(this.state.recipes));r[t]=e,this.setState({recipes:r})},key:t})))),o.createElement("div",{className:"wprm-admin-dashboard-recipes-all"},o.createElement("a",{href:wprm_admin.manage_url},(0,y.S)("Manage all recipes...")))))}}var Gm=e=>o.createElement("div",{className:"wprm-admin-dashboard-tip"},e.children),Wm=[o.createElement(Gm,null,"Use the ",o.createElement("strong",null,"TAB key")," while entering ingredients or instructions to easily jump from field to field and create new lines."),o.createElement(Gm,null,"Copying your recipes from other sources?",o.createElement("br",null),"Use our ",o.createElement("a",{href:"https://help.bootstrapped.ventures/article/70-import-recipe-from-text",target:"_blank"},"Import Recipe from Text")," feature to speed things up."),o.createElement(Gm,null,"Have you seen the ",o.createElement("strong",null,"toolbar at the bottom of the recipe modal")," when editing rich fields (like the summary or instructions)? It gives you quick access to some editing and symbols."),o.createElement(Gm,null,"The ",o.createElement("strong",null,"Bulk Edit column")," on some of the WP Recipe Maker > Manage pages allows you to quickly edit multiple rows at once."),o.createElement(Gm,null,"Make sure to use the ",o.createElement("a",{href:"https://help.bootstrapped.ventures/article/182-itemlist-metadata-for-recipe-roundup-posts",target:"_blank"},"Recipe Roundup feature")," for roundup posts. This will add itemList metadata that allows those posts to show up as a carousel in Google."),o.createElement(Gm,null,"Give your visitors an easy way to find recipes by course, cuisine, ingredient, calories, ... by combining WPRM with our ",o.createElement("a",{href:"https://demo.wprecipemaker.com/recipe-index/",target:"_blank"},"WP Ultimate Post Grid plugin"),"."),o.createElement(Gm,null,"When adding equipment or ingredient names, the toolbar at the bottom of the recipe modal will ",o.createElement("strong",null,"show suggestions")," that you used before. Just click to use them and keep things consistent!"),o.createElement(Gm,null,o.createElement("strong",null,"Toggle specific columns")," at the top of the WP Recipe Maker > Manage page to customize it to your needs."),o.createElement(Gm,null,"Join the ",o.createElement("a",{href:"https://www.facebook.com/groups/1741126932849712/",target:"_blank"},"WP Recipe Maker Facebook Group")," to get access to a community of WPRM food bloggers, just like you!")];class qm extends o.Component{constructor(e){super(e);var t=Math.floor(Math.random()*Wm.length);this.changeTip=this.changeTip.bind(this);var r=setInterval(this.changeTip,15e3);this.state={activeTip:t,interval:r,bar:"odd"}}changeTip(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.state.activeTip+e;t<0?t+=Wm.length:t%=Wm.length,clearInterval(this.state.interval),this.setState({activeTip:t,interval:setInterval(this.changeTip,15e3),bar:"even"===this.state.bar?"odd":"even"})}render(){return o.createElement(g,{title:(0,y.S)("Quick Tips")},o.createElement("div",{className:"wprm-admin-dashboard-tips-container"},o.createElement("div",{className:"wprm-admin-dashboard-tips-prev",onClick:()=>{this.changeTip(-1)}},"<"),o.createElement("div",{className:"wprm-admin-dashboard-tips"},Wm.map(((e,t)=>{var r=["wprm-admin-dashboard-tip-container"];return t===this.state.activeTip&&r.push("wprm-admin-dashboard-tip-container-active"),o.createElement("div",{className:r.join(" "),key:t},e)}))),o.createElement("div",{className:"wprm-admin-dashboard-tips-next",onClick:()=>{this.changeTip(1)}},">")),o.createElement("div",{className:"wprm-admin-dashboard-tips-progress"},o.createElement("div",{className:"wprm-admin-dashboard-tips-progress-bar wprm-admin-dashboard-tips-progress-bar-".concat(this.state.bar)})))}}var{hooks:Zm}=WPRecipeMaker["wp-recipe-maker/dist/shared"],Fm=Zm.applyFilters("dashboardBlocks",[{id:"recipes",block:Hm},{id:"news",block:Bm},{id:"health",block:Pm},{id:"tips",block:qm},{id:"learn",block:Lm},{id:"analytics",block:Im}]);window.wprm_admin_dashboard.hasOwnProperty("feedback")&&window.wprm_admin_dashboard.feedback&&Fm.unshift({id:"feedback",block:Mm});class Vm extends o.Component{render(){var e=!1;return window.wprm_admin_dashboard.hasOwnProperty("marketing")&&window.wprm_admin_dashboard.marketing&&(e=wprm_admin_dashboard.marketing),o.createElement(o.Fragment,null,o.createElement("h1",null,"WP Recipe Maker"),!1!==e&&o.createElement(S,{campaign:e}),o.createElement(m,{blocks:Fm}))}}var Jm=document.getElementById("wprm-admin-dashboard");Jm&&i.render(o.createElement(Vm,null),Jm)},99237:function(e,t,r){"use strict";r.d(t,{Z:function(){return G}});var n=r(46087),i=wprm_admin.endpoints.analytics,o={delete:e=>n.Z.call("".concat(i,"/").concat(e),"DELETE")};function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=wprm_admin.endpoints.custom_taxonomies,s={save(e,t){var r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t),i=e?"PUT":"POST";return n.Z.call(u,i,r)}},l=wprm_admin.endpoints.dashboard,f={getAnalytics:()=>n.Z.call("".concat(l,"/analytics"))},p=wprm_admin.endpoints.notices,d={dismissNotice(e){var t={id:e};return n.Z.call(p,"DELETE",t)}},h=wprm_admin.endpoints.modal,m={parseIngredients(e){var t={ingredients:e};return n.Z.call("".concat(h,"/ingredient/parse"),"POST",t)}},v=(r(35054),wprm_admin.endpoints.manage),y=wprm_admin.endpoints.rating,g=wprm_admin.endpoints.taxonomy,b=!1,w=!1,x={getData(e){return b?(w=e,new Promise((e=>e(!1)))):this.getDataDebounced(e)},getDataDebounced(e){return b=!0,n.Z.call("".concat(v,"/").concat(e.route),"POST",e).then((e=>{if(w){var t=w;return w=!1,this.getDataDebounced(t)}return b=!1,e}))},deleteUserRatings:e=>n.Z.call("".concat(y,"/recipe/").concat(e),"DELETE"),getTerm:(e,t)=>n.Z.call("".concat(g).concat(e,"/").concat(t)),createTerm(e,t){var r={name:t};return n.Z.call("".concat(g).concat(e),"POST",r)},deleteTerm:(e,t)=>n.Z.call("".concat(g).concat(e,"/").concat(t,"?force=true"),"DELETE"),renameTerm(e,t,r){var i={name:r};return n.Z.call("".concat(g).concat(e,"/").concat(t),"POST",i)},changeTermSlug(e,t,r){var i={slug:r};return n.Z.call("".concat(g).concat(e,"/").concat(t),"POST",i)},renameTermLabel(e,t,r){var i={type:e,id:t,label:r};return n.Z.call("".concat(v,"/taxonomy/label"),"POST",i)},mergeTerm(e,t,r){var i={type:e,oldId:t,newId:r};return n.Z.call("".concat(v,"/taxonomy/merge"),"POST",i)},updateTaxonomyMeta(e,t,r){var i={};return i[e]=r,n.Z.call("".concat(g).concat(e,"/").concat(t),"POST",i)},bulkEdit(e,t,r,i){var o={type:t,ids:r,action:i};return n.Z.call("".concat(v,"/").concat(e,"/bulk"),"POST",o)}},E=wprm_admin.endpoints.modal,I=!1,S=!1,M=!1,O={getSuggestions(e){return I?(M=e,new Promise((e=>e(!1)))):this.getSuggestionsDebounced(e)},getSuggestionsDebounced(e){I=!0;var t=Date.now();return!1!==S&&500>t-S?new Promise((r=>{setTimeout((()=>{r(this.getSuggestionsDebounced(e))}),t-S)})):(S=t,n.Z.call("".concat(E,"/suggest"),"POST",e).then((e=>{if(M){var t=M;return M=!1,this.getSuggestionsDebounced(t)}return I=!1,e})))}},k=wprm_admin.endpoints.rating,j={update(e){var t={rating:e};return n.Z.call("".concat(k),"POST",t)},updateComment(e,t){var r={rating:t};return n.Z.call("".concat(k,"/comment/").concat(e),"POST",r)},delete:e=>n.Z.call("".concat(k,"/").concat(e),"DELETE")},T=wprm_admin.endpoints.recipe,D=wprm_admin.endpoints.manage,A={get:e=>n.Z.call("".concat(T,"/").concat(e)),save(e){var t={recipe:e},r=T,i="POST",o=!!e.id&&parseInt(e.id);return o&&(r+="/".concat(o),i="PUT"),n.Z.call(r,i,t)},updateStatus(e,t){var r={status:t};return n.Z.call("".concat(T,"/").concat(e),"PUT",r)},delete(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r="".concat(T,"/").concat(e);return t&&(r+="?force=true"),n.Z.call(r,"DELETE")},deleteRevision:e=>n.Z.call("".concat(D,"/revision/").concat(e),"DELETE")},_=wprm_admin.endpoints.setting,P={save(e){var t={settings:e};return n.Z.call(_,"POST",t)}},N=wprm_admin.endpoints.template,C=[],L={},R=null,B={previewShortcode(e,t,r){return L[e]=t,clearTimeout(R),R=setTimeout((()=>{this.previewShortcodes(r)}),500),new Promise((e=>C.push(e)))},previewShortcodes(e){var t=C,r=L;C=[],L={};var n={recipeId:e,shortcodes:r};fetch("".concat(N,"/preview"),{method:"POST",headers:{"X-WP-Nonce":wprm_admin.api_nonce,Accept:"application/json","Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify(n)}).then((e=>e.json().then((r=>{var n=e.ok?r.preview:{};t.forEach((e=>e(n)))}))))},searchRecipes:e=>fetch(wprm_admin.ajax_url,{method:"POST",credentials:"same-origin",body:"action=wprm_search_recipes&security="+wprm_admin.nonce+"&search="+encodeURIComponent(e),headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded; charset=utf-8"}}).then((e=>e.json())),save(e){var t={template:e};return n.Z.call(N,"POST",t)},delete(e){var t={slug:e};return n.Z.call(N,"DELETE",t)}},U=wprm_admin.endpoints.utilities,z={saveImage(e){var t={url:e};return n.Z.call("".concat(U,"/save_image"),"POST",t)},giveFeedback(e){var t={feedback:e};return n.Z.call("".concat(U,"/feedback"),"POST",t)}},{hooks:H}=WPRecipeMaker["wp-recipe-maker/dist/shared"],G=H.applyFilters("api",{analytics:o,customTaxonomy:s,dashboard:f,general:d,import:m,manage:x,modal:O,rating:j,recipe:A,settings:P,template:B,utilities:z})},46087:function(e,t,r){"use strict";r(31807),r(35054),r(22321);t.Z={call(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=wprm_admin.api_nonce;"object"==typeof window.wpApiSettings&&window.wpApiSettings.nonce&&(n=window.wpApiSettings.nonce);var i={method:t,headers:{"X-WP-Nonce":n,Accept:"application/json","Content-Type":"application/json","Cache-Control":"no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:0},credentials:"same-origin"};"PUT"!==t&&"DELETE"!==t||(i.method="POST",i.headers["X-HTTP-Method-Override"]=t),r&&(i.body=JSON.stringify(r));var o=0;return e=e.replace(/\?/g,(function(e){return 2<=++o?"&":e})),fetch(e,i).then((function(t){if(t.ok)return t.json();console.log(e,i),console.log(t);var r="",n=parseInt(t.status),o=!1;300<=n&&n<=399?o="A redirection is breaking the API endpoint. Are any redirections set up in the .htaccess file or using a plugin?":401===n||403===n?o="Something is blocking access. Are you or your webhost using a firewall like Cloudflare WAF or Sucuri? Try whitelisting your own IP address or this specific action.":404===n?o="The rest API endpoint could not be found. Are your permalinks set up correctly?":500<=n&&n<=599&&(o="The server is throwing an error. It could be hitting a memory or execution limit. Check with your webhost what the exact error is in the logs."),o&&(r+="".concat(o,"\r\n\r\n")),r+="Press OK to contact support@bootstrapped.ventures for support (opens an email popup).";var a="".concat(t.url," ").concat(t.redirected?"(redirected)":"","- ").concat(t.status," - ").concat(t.statusText);r+="\r\n\r\n".concat(a);try{t.text().then((e=>{if(console.log(e),-1!==e.indexOf("rest_cookie_invalid_nonce"))return alert("You got logged out or your session expired. Please try logging out of WordPress and back in again."),!1;r+="\r\n\r\n".concat(e)}))}catch(u){console.log(u),r+="\r\n\r\n".concat(u)}if(confirm(r)){var c="I received the error message below at ".concat(window.location.href,"\r\n\r\n").concat(r);window.open("mailto:".concat(encodeURIComponent("support@bootstrapped.ventures"),"?subject=").concat(encodeURIComponent("WP Recipe Maker Error Message"),"&body=").concat(encodeURIComponent(c)))}return!1}))}}},46963:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(89526),i=r(49092),o=r(95075),a={adjustable:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PGxpbmUgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjEyLjUiIHkxPSIxMi41IiB4Mj0iMTUuNSIgeTI9IjEyLjUiPjwvbGluZT4gPGxpbmUgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjAuNSIgeTE9IjMuNSIgeDI9IjMuNSIgeTI9IjMuNSI+PC9saW5lPiA8bGluZSBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiB4MT0iOS41IiB5MT0iMy41IiB4Mj0iMTUuNSIgeTI9IjMuNSI+PC9saW5lPiA8cmVjdCBkYXRhLWNvbG9yPSJjb2xvci0yIiB4PSIzLjUiIHk9IjAuNSIgZmlsbD0ibm9uZSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHdpZHRoPSIzIiBoZWlnaHQ9IjYiPjwvcmVjdD4gPHJlY3QgZGF0YS1jb2xvcj0iY29sb3ItMiIgeD0iOS41IiB5PSI5LjUiIGZpbGw9Im5vbmUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiB3aWR0aD0iMyIgaGVpZ2h0PSI2Ij48L3JlY3Q+IDxsaW5lIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHgxPSIwLjUiIHkxPSIxMi41IiB4Mj0iNi41IiB5Mj0iMTIuNSI+PC9saW5lPiA8L2c+PC9zdmc+",bold:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PHBhdGggZD0iTTIuNSwxLjVoNmEzLDMsMCwwLDEsMywzaDBhMywzLDAsMCwxLTMsM2gtNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjwvcGF0aD4gPHBhdGggZD0iTTQuNSw3LjVIMTBBMy41LDMuNSwwLDAsMSwxMy41LDExaDBBMy41LDMuNSwwLDAsMSwxMCwxNC41SDIuNSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjwvcGF0aD4gPGxpbmUgeDE9IjQuNSIgeTE9IjEuNSIgeDI9IjQuNSIgeTI9IjE0LjUiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48L2xpbmU+PC9nPjwvc3ZnPg==",clock:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PGNpcmNsZSBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBjeD0iOC41IiBjeT0iOC41IiByPSI3Ij48L2NpcmNsZT4gPHBvbHlsaW5lIGRhdGEtY29sb3I9ImNvbG9yLTIiIGZpbGw9Im5vbmUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBwb2ludHM9IiA1LjUsNS41IDguNSw4LjUgMTMuNSw4LjUgIj48L3BvbHlsaW5lPiA8bGluZSBkYXRhLWNvbG9yPSJjb2xvci0yIiBmaWxsPSJub25lIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjguNSIgeTE9IjMuNSIgeDI9IjguNSIgeTI9IjQuNSI+PC9saW5lPiA8bGluZSBkYXRhLWNvbG9yPSJjb2xvci0yIiBmaWxsPSJub25lIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjguNSIgeTE9IjEzLjUiIHgyPSI4LjUiIHkyPSIxMi41Ij48L2xpbmU+IDxsaW5lIGRhdGEtY29sb3I9ImNvbG9yLTIiIGZpbGw9Im5vbmUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiB4MT0iMy41IiB5MT0iOC41IiB4Mj0iNC41IiB5Mj0iOC41Ij48L2xpbmU+IDwvZz48L3N2Zz4=",close:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PGxpbmUgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjEzLjUiIHkxPSIyLjUiIHgyPSIyLjUiIHkyPSIxMy41IiBkYXRhLWNhcD0iYnV0dCI+PC9saW5lPiA8bGluZSBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiB4MT0iMi41IiB5MT0iMi41IiB4Mj0iMTMuNSIgeTI9IjEzLjUiIGRhdGEtY2FwPSJidXR0Ij48L2xpbmU+IDwvZz48L3N2Zz4=",code:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBmaWxsPSIjMTExMTExIj48bGluZSB4MT0iMTAuNSIgeTE9IjEuNSIgeDI9IjUuNSIgeTI9IjE0LjUiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBkYXRhLWNhcD0iYnV0dCIgZGF0YS1jb2xvcj0iY29sb3ItMiI+PC9saW5lPiA8cG9seWxpbmUgcG9pbnRzPSIzLjUgNC41IDAuNSA3LjUgMy41IDEwLjUiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBkYXRhLWNhcD0iYnV0dCI+PC9wb2x5bGluZT4gPHBvbHlsaW5lIHBvaW50cz0iMTIuNSA0LjUgMTUuNSA3LjUgMTIuNSAxMC41IiBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgZGF0YS1jYXA9ImJ1dHQiPjwvcG9seWxpbmU+PC9nPjwvc3ZnPg==","checkbox-alternate":"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PHBvbHlsaW5lIGRhdGEtY29sb3I9ImNvbG9yLTIiIGZpbGw9Im5vbmUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBwb2ludHM9IiA0LjUsNi41IDcuNSw5LjUgMTUuNSwxLjUgIi8+IDxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIGQ9Ik0xMy41LDcuNXY2IGMwLDAuNTUyLTAuNDQ4LDEtMSwxaC0xMWMtMC41NTIsMC0xLTAuNDQ4LTEtMXYtMTFjMC0wLjU1MiwwLjQ0OC0xLDEtMWg5Ii8+IDwvZz48L3N2Zz4=","checkbox-checked":"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PGcgY2xhc3M9Im5jLWljb24td3JhcHBlciIgZmlsbD0iIzQ0NDQ0NCI+PHBvbHlsaW5lIGRhdGEtY29sb3I9ImNvbG9yLTIiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzQ0NDQ0NCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHBvaW50cz0iNC41LDcuNSA3LDEwIDEyLDUgIj48L3BvbHlsaW5lPjxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzQ0NDQ0NCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIGQ9Ik0xNC41LDE1LjVoLTEzYy0wLjU1MiwwLTEtMC40NDgtMS0xdi0xM2MwLTAuNTUyLDAuNDQ4LTEsMS0xaDEzYzAuNTUyLDAsMSwwLjQ0OCwxLDF2MTNDMTUuNSwxNS4wNTIsMTUuMDUyLDE1LjUsMTQuNSwxNS41eiI+PC9wYXRoPjwvZz48L3N2Zz4=","checkbox-empty":"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PGcgY2xhc3M9Im5jLWljb24td3JhcHBlciIgZmlsbD0iIzQ0NDQ0NCI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjNDQ0NDQ0IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTE0LjUsMTUuNWgtMTNjLTAuNTUyLDAtMS0wLjQ0OC0xLTF2LTEzYzAtMC41NTIsMC40NDgtMSwxLTFoMTNjMC41NTIsMCwxLDAuNDQ4LDEsMXYxM0MxNS41LDE1LjA1MiwxNS4wNTIsMTUuNSwxNC41LDE1LjV6Ij48L3BhdGg+PC9nPjwvc3ZnPg==",checkmark:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PHBvbHlsaW5lIHBvaW50cz0iMSA5LjUgNS41IDE0IDE1IDEuNSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0ic3F1YXJlIi8+PC9nPjwvc3ZnPg==",duplicate:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PHJlY3QgeD0iMC41IiB5PSIwLjUiIHdpZHRoPSIxMSIgaGVpZ2h0PSIxMSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGRhdGEtY2FwPSJidXR0Ii8+IDxwb2x5bGluZSBwb2ludHM9IjEzLjUgNC41IDE1LjUgNC41IDE1LjUgMTUuNSA0LjUgMTUuNSA0LjUgMTMuNSIgZmlsbD0ibm9uZSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBkYXRhLWNhcD0iYnV0dCIgZGF0YS1jb2xvcj0iY29sb3ItMiIvPjwvZz48L3N2Zz4=",drag:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PGxpbmUgeDE9IjAuNSIgeTE9IjUuNSIgeDI9IjE1LjUiIHkyPSI1LjUiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PGxpbmUgeDE9IjAuNSIgeTE9IjEwLjUiIHgyPSIxNS41IiB5Mj0iMTAuNSIgZmlsbD0ibm9uZSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBkYXRhLWNvbG9yPSJjb2xvci0yIi8+PC9nPjwvc3ZnPg==","eafl-link":"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMyOTgwYjkiIHN0cm9rZT0iIzI5ODBiOSI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMjk4MGI5IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTEyLDlsMS45NzUtMi4wMjUgYzEuMzY3LTEuMzY3LDEuMzY3LTMuNTgzLDAtNC45NWwwLDBjLTEuMzY3LTEuMzY3LTMuNTgzLTEuMzY3LTQuOTUsMEw3LDQiIGRhdGEtY2FwPSJidXR0Ij48L3BhdGg+IDxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzI5ODBiOSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIGQ9Ik05LDEybC0yLjAyNSwxLjk3NSBjLTEuMzY3LDEuMzY3LTMuNTgzLDEuMzY3LTQuOTUsMGwwLDBjLTEuMzY3LTEuMzY3LTEuMzY3LTMuNTgzLDAtNC45NUw0LDciIGRhdGEtY2FwPSJidXR0Ij48L3BhdGg+IDxsaW5lIGZpbGw9Im5vbmUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiB4MT0iNSIgeTE9IjExIiB4Mj0iMTEiIHkyPSI1IiBkYXRhLWNhcD0iYnV0dCIgZGF0YS1jb2xvcj0iY29sb3ItMiI+PC9saW5lPiA8L2c+PC9zdmc+","eafl-unlink":"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMyOTgwYjkiIHN0cm9rZT0iIzI5ODBiOSI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMjk4MGI5IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTEyLDlsMS45NzUtMi4wMjUgYzEuMzY3LTEuMzY3LDEuMzY3LTMuNTgzLDAtNC45NWwwLDBjLTEuMzY3LTEuMzY3LTMuNTgzLTEuMzY3LTQuOTUsMEw3LDQiIGRhdGEtY2FwPSJidXR0Ij48L3BhdGg+IDxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzI5ODBiOSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIGQ9Ik05LDEybC0yLjAyNSwxLjk3NSBjLTEuMzY3LDEuMzY3LTMuNTgzLDEuMzY3LTQuOTUsMGwwLDBjLTEuMzY3LTEuMzY3LTEuMzY3LTMuNTgzLDAtNC45NUw0LDciIGRhdGEtY2FwPSJidXR0Ij48L3BhdGg+IDxsaW5lIGZpbGw9Im5vbmUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiB4MT0iNSIgeTE9IjExIiB4Mj0iMTEiIHkyPSI1IiBkYXRhLWNhcD0iYnV0dCIgZGF0YS1jb2xvcj0iY29sb3ItMiI+PC9saW5lPiA8bGluZSBmaWxsPSJub25lIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjEuNSIgeTE9IjEuNSIgeDI9IjQiIHkyPSI0IiBkYXRhLWNhcD0iYnV0dCIgZGF0YS1jb2xvcj0iY29sb3ItMiI+PC9saW5lPiA8bGluZSBmaWxsPSJub25lIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjEyIiB5MT0iMTIiIHgyPSIxNC41IiB5Mj0iMTQuNSIgZGF0YS1jYXA9ImJ1dHQiIGRhdGEtY29sb3I9ImNvbG9yLTIiPjwvbGluZT4gPC9nPjwvc3ZnPg==",eye:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTAuNSw4IGMwLDAsMy01LjUsNy41LTUuNVMxNS41LDgsMTUuNSw4cy0zLDUuNS03LjUsNS41UzAuNSw4LDAuNSw4eiIvPiA8Y2lyY2xlIGRhdGEtY29sb3I9ImNvbG9yLTIiIGZpbGw9Im5vbmUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBjeD0iOCIgY3k9IjgiIHI9IjIuNSIvPiA8L2c+PC9zdmc+",italic:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PGxpbmUgeDE9IjYuNSIgeTE9IjAuNSIgeDI9IjEyLjUiIHkyPSIwLjUiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48L2xpbmU+IDxsaW5lIHgxPSIzLjUiIHkxPSIxNS41IiB4Mj0iOS41IiB5Mj0iMTUuNSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjwvbGluZT4gPGxpbmUgeDE9IjkuNSIgeTE9IjAuNSIgeDI9IjYuNSIgeTI9IjE1LjUiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48L2xpbmU+PC9nPjwvc3ZnPg==",link:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTEyLDlsMS45NzUtMi4wMjUgYzEuMzY3LTEuMzY3LDEuMzY3LTMuNTgzLDAtNC45NWwwLDBjLTEuMzY3LTEuMzY3LTMuNTgzLTEuMzY3LTQuOTUsMEw3LDQiIGRhdGEtY2FwPSJidXR0Ij48L3BhdGg+IDxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIGQ9Ik05LDEybC0yLjAyNSwxLjk3NSBjLTEuMzY3LDEuMzY3LTMuNTgzLDEuMzY3LTQuOTUsMGwwLDBjLTEuMzY3LTEuMzY3LTEuMzY3LTMuNTgzLDAtNC45NUw0LDciIGRhdGEtY2FwPSJidXR0Ij48L3BhdGg+IDxsaW5lIGZpbGw9Im5vbmUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiB4MT0iNSIgeTE9IjExIiB4Mj0iMTEiIHkyPSI1IiBkYXRhLWNhcD0iYnV0dCIgZGF0YS1jb2xvcj0iY29sb3ItMiI+PC9saW5lPiA8L2c+PC9zdmc+",merge:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PGxpbmUgZmlsbD0ibm9uZSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHgxPSIxMC41IiB5MT0iMTIuNSIgeDI9IjEzLjUiIHkyPSIxNS41IiBkYXRhLWNvbG9yPSJjb2xvci0yIj48L2xpbmU+IDxwb2x5bGluZSBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBwb2ludHM9IjQuNSw0LjUgOC41LDAuNSAxMi41LDQuNSAiPjwvcG9seWxpbmU+IDxwb2x5bGluZSBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBwb2ludHM9IjguNSwwLjUgOC41LDEwLjUgMy41LDE1LjUgIj48L3BvbHlsaW5lPjwvZz48L3N2Zz4=",movie:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PGNpcmNsZSBmaWxsPSJub25lIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgY3g9IjIuNSIgY3k9IjIuNSIgcj0iMiIgZGF0YS1jb2xvcj0iY29sb3ItMiIvPiA8Y2lyY2xlIGZpbGw9Im5vbmUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBjeD0iOCIgY3k9IjMiIHI9IjEuNSIgZGF0YS1jb2xvcj0iY29sb3ItMiIvPiA8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBkPSJNMTAuNSw5LjV2LTIgYzAtMC41NTItMC40NDgtMS0xLTFoLThjLTAuNTUyLDAtMSwwLjQ0OC0xLDF2N2MwLDAuNTUyLDAuNDQ4LDEsMSwxaDhjMC41NTIsMCwxLTAuNDQ4LDEtMXYtMmw1LDJ2LTdMMTAuNSw5LjV6Ii8+PC9nPjwvc3ZnPg==",pencil:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBmaWxsPSIjMTExMTExIj48cG9seWdvbiBkYXRhLWNvbG9yPSJjb2xvci0yIiBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBwb2ludHM9IiAxMywwLjUgMTUuNSwzIDcuNSwxMSA0LDEyIDUsOC41ICI+PC9wb2x5Z29uPiA8bGluZSBkYXRhLWNvbG9yPSJjb2xvci0yIiBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiB4MT0iMTEiIHkxPSIyLjUiIHgyPSIxMy41IiB5Mj0iNSI+PC9saW5lPiA8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBkPSJNMTMuNSw5LjV2NSBjMCwwLjU1Mi0wLjQ0OCwxLTEsMWgtMTFjLTAuNTUyLDAtMS0wLjQ0OC0xLTF2LTExYzAtMC41NTIsMC40NDgtMSwxLTFoNSI+PC9wYXRoPiA8L2c+PC9zdmc+",photo:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTE0LjUsMTUuNWgtMTMgYy0wLjU1MiwwLTEtMC40NDgtMS0xdi0xM2MwLTAuNTUyLDAuNDQ4LTEsMS0xaDEzYzAuNTUyLDAsMSwwLjQ0OCwxLDF2MTNDMTUuNSwxNS4wNTIsMTUuMDUyLDE1LjUsMTQuNSwxNS41eiIvPiA8cG9seWxpbmUgZmlsbD0ibm9uZSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHBvaW50cz0iMi41LDEyLjUgOS41LDcuNSAxMy41LDExLjUgIiBkYXRhLWNvbG9yPSJjb2xvci0yIi8+IDxjaXJjbGUgY3g9IjQuNSIgY3k9IjUuNSIgcj0iMS41IiBkYXRhLWNhcD0iYnV0dCIgZGF0YS1jb2xvcj0iY29sb3ItMiIgZGF0YS1zdHJva2U9Im5vbmUiIHN0cm9rZT0ibm9uZSIvPjwvZz48L3N2Zz4=",plus:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PGxpbmUgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjguNSIgeTE9IjQuNSIgeDI9IjguNSIgeTI9IjEyLjUiLz4gPGxpbmUgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjQuNSIgeTE9IjguNSIgeDI9IjEyLjUiIHkyPSI4LjUiLz4gPC9nPjwvc3ZnPg==",print:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PHBvbHlsaW5lIHBvaW50cz0iMy41IDMuNSAzLjUgMC41IDEyLjUgMC41IDEyLjUgMy41IiBmaWxsPSJub25lIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGRhdGEtY29sb3I9ImNvbG9yLTIiLz4gPHBvbHlsaW5lIHBvaW50cz0iMy41IDEyLjUgMC41IDEyLjUgMC41IDUuNSAxNS41IDUuNSAxNS41IDEyLjUgMTIuNSAxMi41IiBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPiA8cmVjdCB4PSIzLjUiIHk9IjkuNSIgd2lkdGg9IjkiIGhlaWdodD0iNiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48L2c+PC9zdmc+",question:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBmaWxsPSIjMTExMTExIj48Y2lyY2xlIGRhdGEtY29sb3I9ImNvbG9yLTIiIGN4PSI4IiBjeT0iMTMuNSIgcj0iMS41Ii8+IDxwYXRoIGZpbGw9IiMxMTExMTEiIGQ9Ik04LDBDNi4zMDksMCw0Ljc5MiwxLjA3Miw0LjIyOSwyLjY2N0wzLjg5NSwzLjYwOUw1Ljc4LDQuMjc2bDAuMzMzLTAuOTQzQzYuMzk2LDIuNTM2LDcuMTU0LDIsOCwyIGMxLjEwMywwLDIsMC44OTcsMiwyYzAsMC42MzItMC4yNDUsMC44MzktMC45NTIsMS4zNDdDOC4xODQsNS45NjcsNyw2LjgxNyw3LDl2MWgyVjljMC0xLjE1NywwLjQ4Mi0xLjUwMywxLjIxNC0yLjAyOCBDMTAuOTY4LDYuNDMxLDEyLDUuNjksMTIsNEMxMiwxLjc5NCwxMC4yMDYsMCw4LDB6Ii8+PC9nPjwvc3ZnPg==",restore:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIGQ9Ik0wLjUsNS41bDUtNXYzIGMzLjE1NiwwLDcsMS44NTQsNyw3Yy0xLjU1OS0yLjUyMy00LjUtMy03LTN2M0wwLjUsNS41eiIgZGF0YS1jb2xvcj0iY29sb3ItMiIvPiA8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBkPSJNMC41LDEwLjV2NCBjMCwwLjU1MiwwLjQ0OCwxLDEsMWgxM2MwLjU1MiwwLDEtMC40NDgsMS0xdi0xMWMwLTAuNTUyLTAuNDQ4LTEtMS0xaC0yIi8+PC9nPjwvc3ZnPg==","star-empty":"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjE2cHgiIGhlaWdodD0iMTZweCIgdmlld0JveD0iMCAwIDI0IDI0Ij48ZyAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCwgMCkiPjxwb2x5Z29uIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzM0MzQzNCIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0ic3F1YXJlIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHBvaW50cz0iMTIsMi42IDE1LDkgMjEuNCw5IDE2LjcsMTMuOSAxOC42LDIxLjQgMTIsMTcuNiA1LjQsMjEuNCA3LjMsMTMuOSAyLjYsOSA5LDkgIiBzdHJva2UtbGluZWpvaW49Im1pdGVyIi8+PC9nPjwvc3ZnPg==","star-full":"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjE2cHgiIGhlaWdodD0iMTZweCIgdmlld0JveD0iMCAwIDI0IDI0Ij48ZyA+PHBhdGggZmlsbD0iIzM0MzQzNCIgZD0iTTEyLjcxMiwxLjk0MmwyLjk2OSw2LjAxNWw2LjYzOCwwLjk2NWMwLjY1MSwwLjA5NSwwLjkxMSwwLjg5NSwwLjQ0LDEuMzU0bC00LjgwNCw0LjY4MmwxLjEzNCw2LjYxMmMwLjExMSwwLjY0OS0wLjU3LDEuMTQzLTEuMTUyLDAuODM3TDEyLDE5LjI4NmwtNS45MzgsMy4xMjJDNS40OCwyMi43MTQsNC43OTksMjIuMjE5LDQuOTEsMjEuNTdsMS4xMzQtNi42MTJsLTQuODA0LTQuNjgyYy0wLjQ3MS0wLjQ1OS0wLjIxMS0xLjI2LDAuNDQtMS4zNTRsNi42MzgtMC45NjVsMi45NjktNi4wMTVDMTEuNTc5LDEuMzUyLDEyLjQyMSwxLjM1MiwxMi43MTIsMS45NDJ6Ii8+PC9nPjwvc3ZnPg==",subscript:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PHBvbHlsaW5lIHBvaW50cz0iMi41IDQuNSAyLjUgMi41IDEyLjUgMi41IDEyLjUgNC41IiBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PC9wb2x5bGluZT4gPGxpbmUgeDE9IjcuNSIgeTE9IjIuNSIgeDI9IjcuNSIgeTI9IjEzLjUiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48L2xpbmU+IDxsaW5lIHgxPSI1LjUiIHkxPSIxMy41IiB4Mj0iOS41IiB5Mj0iMTMuNSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjwvbGluZT4gPHBhdGggZD0iTTE1LDE1LjMyNEgxMS45MDd2LS43NThsMS4wNC0xLjA1M3EuNDQ3LS40NjUuNTg0LS42MzZhMS40MzcsMS40MzcsMCwwLDAsLjE5MS0uMjkzLjY1LjY1LDAsMCwwLC4wNTMtLjI1Ny4zMzUuMzM1LDAsMCwwLS4xMDctLjI2Mi40NDQuNDQ0LDAsMCwwLS4zLS4xLjgyLjgyLDAsMCwwLS40MDYuMTE1LDIuOTM1LDIuOTM1LDAsMCwwLS40NjUuMzRsLS42MzMtLjc0MWEzLjQ1NCwzLjQ1NCwwLDAsMSwuNTU0LS40MjEsMS45NzIsMS45NzIsMCwwLDEsLjQ4OC0uMTkzQTIuMzU0LDIuMzU0LDAsMCwxLDEzLjUsMTFhMS44LDEuOCwwLDAsMSwuNzM5LjE0NiwxLjE1NSwxLjE1NSwwLDAsMSwuNS40MTYsMS4wNjMsMS4wNjMsMCwwLDEsLjE3OS42LDEuNTcyLDEuNTcyLDAsMCwxLS4yNTYuODgzLDIuOTQzLDIuOTQzLDAsMCwxLS4zNDkuNDMzcS0uMjE4LjIyNi0uOTI1Ljg2M3YuMDI5SDE1WiIgZGF0YS1jYXA9ImJ1dHQiIGRhdGEtY29sb3I9ImNvbG9yLTIiIGRhdGEtc3Ryb2tlPSJub25lIiBzdHJva2U9Im5vbmUiPjwvcGF0aD48L2c+PC9zdmc+",superscript:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PHBvbHlsaW5lIHBvaW50cz0iMC41IDQuNSAwLjUgMi41IDEwLjUgMi41IDEwLjUgNC41IiBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PC9wb2x5bGluZT4gPGxpbmUgeDE9IjUuNSIgeTE9IjIuNSIgeDI9IjUuNSIgeTI9IjEzLjUiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48L2xpbmU+IDxsaW5lIHgxPSIzLjUiIHkxPSIxMy41IiB4Mj0iNy41IiB5Mj0iMTMuNSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjwvbGluZT4gPHBhdGggZD0iTTE2LDQuMzI0SDEyLjkwN1YzLjU2NmwxLjA0LTEuMDUzcS40NDctLjQ2NS41ODQtLjYzNmExLjQzNywxLjQzNywwLDAsMCwuMTkxLS4yOTMuNjUuNjUsMCwwLDAsLjA1My0uMjU3LjMzNS4zMzUsMCwwLDAtLjEwNy0uMjYyLjQ0NC40NDQsMCwwLDAtLjMtLjEuODIuODIsMCwwLDAtLjQwNi4xMTUsMi45MzUsMi45MzUsMCwwLDAtLjQ2NS4zNEwxMi44Ni42ODJhMy40NTQsMy40NTQsMCwwLDEsLjU1NC0uNDIxQTEuOTcyLDEuOTcyLDAsMCwxLDEzLjkuMDY4LDIuMzU0LDIuMzU0LDAsMCwxLDE0LjUsMGExLjgsMS44LDAsMCwxLC43MzkuMTQ2LDEuMTU1LDEuMTU1LDAsMCwxLC41LjQxNiwxLjA2MywxLjA2MywwLDAsMSwuMTc5LjYsMS42MjcsMS42MjcsMCwwLDEtLjA2My40NjQsMS42NCwxLjY0LDAsMCwxLS4xOTMuNDE5LDIuOTQzLDIuOTQzLDAsMCwxLS4zNDkuNDMzcS0uMjE4LjIyNi0uOTI1Ljg2M3YuMDI5SDE2WiIgZGF0YS1jYXA9ImJ1dHQiIGRhdGEtY29sb3I9ImNvbG9yLTIiIGRhdGEtc3Ryb2tlPSJub25lIiBzdHJva2U9Im5vbmUiPjwvcGF0aD48L2c+PC9zdmc+",trash:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTIuNSw2LjV2NyBjMCwxLjEwNSwwLjg5NSwyLDIsMmg4YzEuMTA1LDAsMi0wLjg5NSwyLTJ2LTciLz4gPGxpbmUgZGF0YS1jb2xvcj0iY29sb3ItMiIgZmlsbD0ibm9uZSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHgxPSIxLjUiIHkxPSIzLjUiIHgyPSIxNS41IiB5Mj0iMy41Ii8+IDxwb2x5bGluZSBkYXRhLWNvbG9yPSJjb2xvci0yIiBmaWxsPSJub25lIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgcG9pbnRzPSIgNi41LDMuNSA2LjUsMC41IDEwLjUsMC41IDEwLjUsMy41ICIvPiA8bGluZSBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiB4MT0iOC41IiB5MT0iNy41IiB4Mj0iOC41IiB5Mj0iMTIuNSIvPiA8bGluZSBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiB4MT0iMTEuNSIgeTE9IjcuNSIgeDI9IjExLjUiIHkyPSIxMi41Ii8+IDxsaW5lIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHgxPSI1LjUiIHkxPSI3LjUiIHgyPSI1LjUiIHkyPSIxMi41Ii8+IDwvZz48L3N2Zz4=",underline:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PGxpbmUgeDE9IjAuNSIgeTE9IjE1LjUiIHgyPSIxNS41IiB5Mj0iMTUuNSIgZmlsbD0ibm9uZSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBkYXRhLWNvbG9yPSJjb2xvci0yIj48L2xpbmU+IDxwYXRoIGQ9Ik0xMi41LDEuNVY4QTQuNSw0LjUsMCwwLDEsOCwxMi41SDhBNC41LDQuNSwwLDAsMSwzLjUsOFYxLjUiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48L3BhdGg+IDxsaW5lIHgxPSIxLjUiIHkxPSIxLjUiIHgyPSI1LjUiIHkyPSIxLjUiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48L2xpbmU+IDxsaW5lIHgxPSIxMC41IiB5MT0iMS41IiB4Mj0iMTQuNSIgeTI9IjEuNSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjwvbGluZT48L2c+PC9zdmc+",unlink:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTEyLDlsMS45NzUtMi4wMjUgYzEuMzY3LTEuMzY3LDEuMzY3LTMuNTgzLDAtNC45NWwwLDBjLTEuMzY3LTEuMzY3LTMuNTgzLTEuMzY3LTQuOTUsMEw3LDQiIGRhdGEtY2FwPSJidXR0Ij48L3BhdGg+IDxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIGQ9Ik05LDEybC0yLjAyNSwxLjk3NSBjLTEuMzY3LDEuMzY3LTMuNTgzLDEuMzY3LTQuOTUsMGwwLDBjLTEuMzY3LTEuMzY3LTEuMzY3LTMuNTgzLDAtNC45NUw0LDciIGRhdGEtY2FwPSJidXR0Ij48L3BhdGg+IDxsaW5lIGZpbGw9Im5vbmUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiB4MT0iNSIgeTE9IjExIiB4Mj0iMTEiIHkyPSI1IiBkYXRhLWNhcD0iYnV0dCIgZGF0YS1jb2xvcj0iY29sb3ItMiI+PC9saW5lPiA8bGluZSBmaWxsPSJub25lIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjEuNSIgeTE9IjEuNSIgeDI9IjQiIHkyPSI0IiBkYXRhLWNhcD0iYnV0dCIgZGF0YS1jb2xvcj0iY29sb3ItMiI+PC9saW5lPiA8bGluZSBmaWxsPSJub25lIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjEyIiB5MT0iMTIiIHgyPSIxNC41IiB5Mj0iMTQuNSIgZGF0YS1jYXA9ImJ1dHQiIGRhdGEtY29sb3I9ImNvbG9yLTIiPjwvbGluZT4gPC9nPjwvc3ZnPg==",videoplayer:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PHBvbHlnb24gZmlsbD0ibm9uZSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHBvaW50cz0iNi41LDIuNSA2LjUsNy41IDEwLjUsNSAiIGRhdGEtY29sb3I9ImNvbG9yLTIiLz4gPGNpcmNsZSBmaWxsPSJub25lIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgY3g9IjguNSIgY3k9IjExLjUiIHI9IjIiIGRhdGEtY29sb3I9ImNvbG9yLTIiLz4gPGxpbmUgZmlsbD0ibm9uZSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHgxPSIyLjUiIHkxPSIxMS41IiB4Mj0iNi41IiB5Mj0iMTEuNSIgZGF0YS1jb2xvcj0iY29sb3ItMiIvPiA8bGluZSBmaWxsPSJub25lIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjEyLjUiIHkxPSIxMS41IiB4Mj0iMTMuNSIgeTI9IjExLjUiIGRhdGEtY29sb3I9ImNvbG9yLTIiLz4gPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTE0LjUsMTUuNWgtMTMgYy0wLjU1MiwwLTEtMC40NDgtMS0xdi0xM2MwLTAuNTUyLDAuNDQ4LTEsMS0xaDEzYzAuNTUyLDAsMSwwLjQ0OCwxLDF2MTNDMTUuNSwxNS4wNTIsMTUuMDUyLDE1LjUsMTQuNSwxNS41eiIvPjwvZz48L3N2Zz4="},c=e=>{var t=!!a.hasOwnProperty(e.type)&&a[e.type];if(!t)return null;var r=e.title,c=e.className?"wprm-admin-icon ".concat(e.className):"wprm-admin-icon",u=!!e.hasOwnProperty("hidden")&&e.hidden;return u&&(r="",c+=" wprm-admin-icon-hidden"),n.createElement(o.Z,{content:r},n.createElement("span",{className:c,onClick:u?()=>{}:e.onClick},n.createElement(i.Z,{src:t})))}},34133:function(e,t,r){"use strict";var n=r(89526);t.Z=e=>n.createElement("div",{className:"wprm-admin-loader"})},95075:function(e,t,r){"use strict";var n=r(89526),i=r(20877);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.Z=e=>{if(!e.content)return e.children;var t=e.hasOwnProperty("style")?e.style:{};return n.createElement(i.Tooltip,{html:n.createElement("div",{dangerouslySetInnerHTML:{__html:e.content}}),popperOptions:{modifiers:{addZIndex:{enabled:!0,order:810,fn:e=>a(a({},e),{},{styles:a(a({},e.styles),{},{zIndex:1e5})})},preventOverflow:{boundariesElement:"window"}}},style:t},e.children)}},52082:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{S:function(){return c}});var a={};function c(e){return a.hasOwnProperty(e)?a[e]:e}window.hasOwnProperty("wprm_public")&&wprm_public.hasOwnProperty("translations")&&(a=i(i({},a),wprm_public.translations)),window.hasOwnProperty("wprm_admin")&&wprm_admin.hasOwnProperty("translations")&&(a=i(i({},a),wprm_admin.translations))},64403:function(e,t){var r;
2
  /*!
3
  Copyright (c) 2017 Jed Watson.
4
  Licensed under the MIT License (MIT), see
5
  http://jedwatson.github.io/classnames
6
- */!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)&&r.length){var a=i.apply(null,r);a&&e.push(a)}else if("object"===o)for(var c in r)n.call(r,c)&&r[c]&&e.push(c)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},28641:function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},13350:function(e,t,r){"use strict";var n=r(91140).charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},9519:function(e){e.exports=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e}},83875:function(e,t,r){var n=r(52786);e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},37190:function(e,t,r){var n=r(29580),i=r(35108),o=r(32565),a=function(e){return function(t,r,a){var c,u=n(t),s=i(u.length),l=o(a,s);if(e&&r!=r){for(;s>l;)if((c=u[l++])!=c)return!0}else for(;s>l;l++)if((e||l in u)&&u[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},54324:function(e,t,r){"use strict";var n=r(79044);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){throw 1},1)}))}},5673:function(e,t,r){var n=r(7493),i=r(79044),o=r(40454),a=Object.defineProperty,c={},u=function(e){throw e};e.exports=function(e,t){if(o(c,e))return c[e];t||(t={});var r=[][e],s=!!o(t,"ACCESSORS")&&t.ACCESSORS,l=o(t,0)?t[0]:u,f=o(t,1)?t[1]:void 0;return c[e]=!!r&&!i((function(){if(s&&!n)return!0;var e={length:-1};s?a(e,1,{enumerable:!0,get:u}):e[1]=1,r.call(e,l,f)}))}},9637:function(e,t,r){var n=r(83875);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(a){var o=e.return;throw void 0!==o&&n(o.call(e)),a}}},8662:function(e,t,r){var n=r(52280)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(c){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var o={};o[n]=function(){return{next:function(){return{done:r=!0}}}},e(o)}catch(c){}return r}},79159:function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},36994:function(e,t,r){var n=r(57301),i=r(79159),o=r(52280)("toStringTag"),a="Arguments"==i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(r){}}(t=Object(e),o))?r:a?i(t):"Object"==(n=i(t))&&"function"==typeof t.callee?"Arguments":n}},73870:function(e,t,r){var n=r(40454),i=r(31561),o=r(66012),a=r(86385);e.exports=function(e,t){for(var r=i(t),c=a.f,u=o.f,s=0;s<r.length;s++){var l=r[s];n(e,l)||c(e,l,u(t,l))}}},15454:function(e,t,r){var n=r(52280)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(i){}}return!1}},45899:function(e,t,r){var n=r(7493),i=r(86385),o=r(69199);e.exports=n?function(e,t,r){return i.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},69199:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7493:function(e,t,r){var n=r(79044);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},92750:function(e,t,r){var n=r(98363),i=r(52786),o=n.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},53121:function(e,t,r){var n=r(82647);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},82647:function(e,t,r){var n=r(22773);e.exports=n("navigator","userAgent")||""},11197:function(e,t,r){var n,i,o=r(98363),a=r(82647),c=o.process,u=c&&c.versions,s=u&&u.v8;s?i=(n=s.split("."))[0]+n[1]:a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=n[1]),e.exports=i&&+i},48869:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},19882:function(e,t,r){var n=r(98363),i=r(66012).f,o=r(45899),a=r(35974),c=r(51621),u=r(73870),s=r(86291);e.exports=function(e,t){var r,l,f,p,d,h=e.target,m=e.global,v=e.stat;if(r=m?n:v?n[h]||c(h,{}):(n[h]||{}).prototype)for(l in t){if(p=t[l],f=e.noTargetGet?(d=i(r,l))&&d.value:r[l],!s(m?l:h+(v?".":"#")+l,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;u(p,f)}(e.sham||f&&f.sham)&&o(p,"sham",!0),a(r,l,p,e)}}},79044:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},81492:function(e,t,r){"use strict";r(39275);var n=r(35974),i=r(79044),o=r(52280),a=r(99749),c=r(45899),u=o("species"),s=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),l="$0"==="a".replace(/./,"$0"),f=o("replace"),p=!!/./[f]&&""===/./[f]("a","$0"),d=!i((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));e.exports=function(e,t,r,f){var h=o(e),m=!i((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),v=m&&!i((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[u]=function(){return r},r.flags="",r[h]=/./[h]),r.exec=function(){return t=!0,null},r[h](""),!t}));if(!m||!v||"replace"===e&&(!s||!l||p)||"split"===e&&!d){var y=/./[h],g=r(h,""[e],(function(e,t,r,n,i){return t.exec===a?m&&!i?{done:!0,value:y.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}}),{REPLACE_KEEPS_$0:l,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),b=g[0],w=g[1];n(String.prototype,e,b),n(RegExp.prototype,h,2==t?function(e,t){return w.call(e,this,t)}:function(e){return w.call(e,this)})}f&&c(RegExp.prototype[h],"sham",!0)}},98166:function(e,t,r){var n=r(28641);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},22773:function(e,t,r){var n=r(67290),i=r(98363),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e])||o(i[e]):n[e]&&n[e][t]||i[e]&&i[e][t]}},77193:function(e,t,r){var n=r(36994),i=r(44818),o=r(52280)("iterator");e.exports=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[n(e)]}},98363:function(e,t,r){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||Function("return this")()},40454:function(e){var t={}.hasOwnProperty;e.exports=function(e,r){return t.call(e,r)}},47505:function(e){e.exports={}},46271:function(e,t,r){var n=r(98363);e.exports=function(e,t){var r=n.console;r&&r.error&&(1===arguments.length?r.error(e):r.error(e,t))}},47055:function(e,t,r){var n=r(22773);e.exports=n("document","documentElement")},67548:function(e,t,r){var n=r(7493),i=r(79044),o=r(92750);e.exports=!n&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},78609:function(e,t,r){var n=r(79044),i=r(79159),o="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},56429:function(e,t,r){var n=r(49415),i=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return i.call(e)}),e.exports=n.inspectSource},20821:function(e,t,r){var n,i,o,a=r(36830),c=r(98363),u=r(52786),s=r(45899),l=r(40454),f=r(50466),p=r(47505),d=c.WeakMap;if(a){var h=new d,m=h.get,v=h.has,y=h.set;n=function(e,t){return y.call(h,e,t),t},i=function(e){return m.call(h,e)||{}},o=function(e){return v.call(h,e)}}else{var g=f("state");p[g]=!0,n=function(e,t){return s(e,g,t),t},i=function(e){return l(e,g)?e[g]:{}},o=function(e){return l(e,g)}}e.exports={set:n,get:i,has:o,enforce:function(e){return o(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!u(t)||(r=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},68089:function(e,t,r){var n=r(52280),i=r(44818),o=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},86291:function(e,t,r){var n=r(79044),i=/#|\.prototype\./,o=function(e,t){var r=c[a(e)];return r==s||r!=u&&("function"==typeof t?n(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},u=o.NATIVE="N",s=o.POLYFILL="P";e.exports=o},52786:function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},21178:function(e){e.exports=!1},42622:function(e,t,r){var n=r(52786),i=r(79159),o=r(52280)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},5166:function(e,t,r){var n=r(83875),i=r(68089),o=r(35108),a=r(98166),c=r(77193),u=r(9637),s=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,r,l,f){var p,d,h,m,v,y,g,b=a(t,r,l?2:1);if(f)p=e;else{if("function"!=typeof(d=c(e)))throw TypeError("Target is not iterable");if(i(d)){for(h=0,m=o(e.length);m>h;h++)if((v=l?b(n(g=e[h])[0],g[1]):b(e[h]))&&v instanceof s)return v;return new s(!1)}p=d.call(e)}for(y=p.next;!(g=y.call(p)).done;)if("object"==typeof(v=u(p,b,g.value,l))&&v&&v instanceof s)return v;return new s(!1)}).stop=function(e){return new s(!0,e)}},44818:function(e){e.exports={}},71800:function(e,t,r){var n,i,o,a,c,u,s,l,f=r(98363),p=r(66012).f,d=r(79159),h=r(84643).set,m=r(53121),v=f.MutationObserver||f.WebKitMutationObserver,y=f.process,g=f.Promise,b="process"==d(y),w=p(f,"queueMicrotask"),x=w&&w.value;x||(n=function(){var e,t;for(b&&(e=y.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(r){throw i?a():o=void 0,r}}o=void 0,e&&e.enter()},b?a=function(){y.nextTick(n)}:v&&!m?(c=!0,u=document.createTextNode(""),new v(n).observe(u,{characterData:!0}),a=function(){u.data=c=!c}):g&&g.resolve?(s=g.resolve(void 0),l=s.then,a=function(){l.call(s,n)}):a=function(){h.call(f,n)}),e.exports=x||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},58369:function(e,t,r){var n=r(98363);e.exports=n.Promise},3850:function(e,t,r){var n=r(79044);e.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},36830:function(e,t,r){var n=r(98363),i=r(56429),o=n.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},29269:function(e,t,r){"use strict";var n=r(28641),i=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new i(e)}},21049:function(e,t,r){var n=r(42622);e.exports=function(e){if(n(e))throw TypeError("The method doesn't accept regular expressions");return e}},86385:function(e,t,r){var n=r(7493),i=r(67548),o=r(83875),a=r(21893),c=Object.defineProperty;t.f=n?c:function(e,t,r){if(o(e),t=a(t,!0),o(r),i)try{return c(e,t,r)}catch(n){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},66012:function(e,t,r){var n=r(7493),i=r(81513),o=r(69199),a=r(29580),c=r(21893),u=r(40454),s=r(67548),l=Object.getOwnPropertyDescriptor;t.f=n?l:function(e,t){if(e=a(e),t=c(t,!0),s)try{return l(e,t)}catch(r){}if(u(e,t))return o(!i.f.call(e,t),e[t])}},87994:function(e,t,r){var n=r(18794),i=r(48869).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},89612:function(e,t){t.f=Object.getOwnPropertySymbols},18794:function(e,t,r){var n=r(40454),i=r(29580),o=r(37190).indexOf,a=r(47505);e.exports=function(e,t){var r,c=i(e),u=0,s=[];for(r in c)!n(a,r)&&n(c,r)&&s.push(r);for(;t.length>u;)n(c,r=t[u++])&&(~o(s,r)||s.push(r));return s}},81513:function(e,t){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);t.f=i?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},31561:function(e,t,r){var n=r(22773),i=r(87994),o=r(89612),a=r(83875);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=o.f;return r?t.concat(r(e)):t}},67290:function(e,t,r){var n=r(98363);e.exports=n},74443:function(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},11621:function(e,t,r){var n=r(83875),i=r(52786),o=r(29269);e.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},7592:function(e,t,r){var n=r(35974);e.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}},35974:function(e,t,r){var n=r(98363),i=r(45899),o=r(40454),a=r(51621),c=r(56429),u=r(20821),s=u.get,l=u.enforce,f=String(String).split("String");(e.exports=function(e,t,r,c){var u=!!c&&!!c.unsafe,s=!!c&&!!c.enumerable,p=!!c&&!!c.noTargetGet;"function"==typeof r&&("string"!=typeof t||o(r,"name")||i(r,"name",t),l(r).source=f.join("string"==typeof t?t:"")),e!==n?(u?!p&&e[t]&&(s=!0):delete e[t],s?e[t]=r:i(e,t,r)):s?e[t]=r:a(t,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&s(this).source||c(this)}))},94088:function(e,t,r){var n=r(79159),i=r(99749);e.exports=function(e,t){var r=e.exec;if("function"==typeof r){var o=r.call(e,t);if("object"!=typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==n(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},99749:function(e,t,r){"use strict";var n,i,o=r(58083),a=r(97047),c=RegExp.prototype.exec,u=String.prototype.replace,s=c,l=(n=/a/,i=/b*/g,c.call(n,"a"),c.call(i,"a"),0!==n.lastIndex||0!==i.lastIndex),f=a.UNSUPPORTED_Y||a.BROKEN_CARET,p=void 0!==/()??/.exec("")[1];(l||p||f)&&(s=function(e){var t,r,n,i,a=this,s=f&&a.sticky,d=o.call(a),h=a.source,m=0,v=e;return s&&(-1===(d=d.replace("y","")).indexOf("g")&&(d+="g"),v=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(h="(?: "+h+")",v=" "+v,m++),r=new RegExp("^(?:"+h+")",d)),p&&(r=new RegExp("^"+h+"$(?!\\s)",d)),l&&(t=a.lastIndex),n=c.call(s?r:a,v),s?n?(n.input=n.input.slice(m),n[0]=n[0].slice(m),n.index=a.lastIndex,a.lastIndex+=n[0].length):a.lastIndex=0:l&&n&&(a.lastIndex=a.global?n.index+n[0].length:t),p&&n&&n.length>1&&u.call(n[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(n[i]=void 0)})),n}),e.exports=s},58083:function(e,t,r){"use strict";var n=r(83875);e.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},97047:function(e,t,r){"use strict";var n=r(79044);function i(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=n((function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=n((function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},96411:function(e){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},51621:function(e,t,r){var n=r(98363),i=r(45899);e.exports=function(e,t){try{i(n,e,t)}catch(r){n[e]=t}return t}},57323:function(e,t,r){"use strict";var n=r(22773),i=r(86385),o=r(52280),a=r(7493),c=o("species");e.exports=function(e){var t=n(e),r=i.f;a&&t&&!t[c]&&r(t,c,{configurable:!0,get:function(){return this}})}},60878:function(e,t,r){var n=r(86385).f,i=r(40454),o=r(52280)("toStringTag");e.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,o)&&n(e,o,{configurable:!0,value:t})}},50466:function(e,t,r){var n=r(53580),i=r(34524),o=n("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},49415:function(e,t,r){var n=r(98363),i=r(51621),o="__core-js_shared__",a=n[o]||i(o,{});e.exports=a},53580:function(e,t,r){var n=r(21178),i=r(49415);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},7270:function(e,t,r){var n=r(83875),i=r(28641),o=r(52280)("species");e.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||null==(r=n(a)[o])?t:i(r)}},91140:function(e,t,r){var n=r(98330),i=r(96411),o=function(e){return function(t,r){var o,a,c=String(i(t)),u=n(r),s=c.length;return u<0||u>=s?e?"":void 0:(o=c.charCodeAt(u))<55296||o>56319||u+1===s||(a=c.charCodeAt(u+1))<56320||a>57343?e?c.charAt(u):o:e?c.slice(u,u+2):a-56320+(o-55296<<10)+65536}};e.exports={codeAt:o(!1),charAt:o(!0)}},5167:function(e,t,r){var n=r(82647);e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(n)},98385:function(e,t,r){var n=r(35108),i=r(26031),o=r(96411),a=Math.ceil,c=function(e){return function(t,r,c){var u,s,l=String(o(t)),f=l.length,p=void 0===c?" ":String(c),d=n(r);return d<=f||""==p?l:(u=d-f,(s=i.call(p,a(u/p.length))).length>u&&(s=s.slice(0,u)),e?l+s:s+l)}};e.exports={start:c(!1),end:c(!0)}},26031:function(e,t,r){"use strict";var n=r(98330),i=r(96411);e.exports="".repeat||function(e){var t=String(i(this)),r="",o=n(e);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(r+=t);return r}},84643:function(e,t,r){var n,i,o,a=r(98363),c=r(79044),u=r(79159),s=r(98166),l=r(47055),f=r(92750),p=r(53121),d=a.location,h=a.setImmediate,m=a.clearImmediate,v=a.process,y=a.MessageChannel,g=a.Dispatch,b=0,w={},x="onreadystatechange",E=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},I=function(e){return function(){E(e)}},S=function(e){E(e.data)},M=function(e){a.postMessage(e+"",d.protocol+"//"+d.host)};h&&m||(h=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return w[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},n(b),b},m=function(e){delete w[e]},"process"==u(v)?n=function(e){v.nextTick(I(e))}:g&&g.now?n=function(e){g.now(I(e))}:y&&!p?(o=(i=new y).port2,i.port1.onmessage=S,n=s(o.postMessage,o,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||c(M)||"file:"===d.protocol?n=x in f("script")?function(e){l.appendChild(f("script")).onreadystatechange=function(){l.removeChild(this),E(e)}}:function(e){setTimeout(I(e),0)}:(n=M,a.addEventListener("message",S,!1))),e.exports={set:h,clear:m}},32565:function(e,t,r){var n=r(98330),i=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):o(r,t)}},29580:function(e,t,r){var n=r(78609),i=r(96411);e.exports=function(e){return n(i(e))}},98330:function(e){var t=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:t)(e)}},35108:function(e,t,r){var n=r(98330),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},30744:function(e,t,r){var n=r(96411);e.exports=function(e){return Object(n(e))}},21893:function(e,t,r){var n=r(52786);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},57301:function(e,t,r){var n={};n[r(52280)("toStringTag")]="z",e.exports="[object z]"===String(n)},34524:function(e){var t=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+r).toString(36)}},189:function(e,t,r){var n=r(3850);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},52280:function(e,t,r){var n=r(98363),i=r(53580),o=r(40454),a=r(34524),c=r(3850),u=r(189),s=i("wks"),l=n.Symbol,f=u?l:l&&l.withoutSetter||a;e.exports=function(e){return o(s,e)||(c&&o(l,e)?s[e]=l[e]:s[e]=f("Symbol."+e)),s[e]}},31807:function(e,t,r){"use strict";var n=r(19882),i=r(37190).indexOf,o=r(54324),a=r(5673),c=[].indexOf,u=!!c&&1/[1].indexOf(1,-0)<0,s=o("indexOf"),l=a("indexOf",{ACCESSORS:!0,1:0});n({target:"Array",proto:!0,forced:u||!s||!l},{indexOf:function(e){return u?c.apply(this,arguments)||0:i(this,e,arguments.length>1?arguments[1]:void 0)}})},35054:function(e,t,r){"use strict";var n,i,o,a,c=r(19882),u=r(21178),s=r(98363),l=r(22773),f=r(58369),p=r(35974),d=r(7592),h=r(60878),m=r(57323),v=r(52786),y=r(28641),g=r(9519),b=r(79159),w=r(56429),x=r(5166),E=r(8662),I=r(7270),S=r(84643).set,M=r(71800),O=r(11621),k=r(46271),j=r(29269),T=r(74443),D=r(20821),A=r(86291),_=r(52280),P=r(11197),N=_("species"),C="Promise",L=D.get,R=D.set,B=D.getterFor(C),U=f,z=s.TypeError,H=s.document,G=s.process,W=l("fetch"),q=j.f,Z=q,F="process"==b(G),V=!!(H&&H.createEvent&&s.dispatchEvent),J="unhandledrejection",Y=A(C,(function(){if(!(w(U)!==String(U))){if(66===P)return!0;if(!F&&"function"!=typeof PromiseRejectionEvent)return!0}if(u&&!U.prototype.finally)return!0;if(P>=51&&/native code/.test(U))return!1;var e=U.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[N]=t,!(e.then((function(){}))instanceof t)})),X=Y||!E((function(e){U.all(e).catch((function(){}))})),Q=function(e){var t;return!(!v(e)||"function"!=typeof(t=e.then))&&t},$=function(e,t,r){if(!t.notified){t.notified=!0;var n=t.reactions;M((function(){for(var i=t.value,o=1==t.state,a=0;n.length>a;){var c,u,s,l=n[a++],f=o?l.ok:l.fail,p=l.resolve,d=l.reject,h=l.domain;try{f?(o||(2===t.rejection&&re(e,t),t.rejection=1),!0===f?c=i:(h&&h.enter(),c=f(i),h&&(h.exit(),s=!0)),c===l.promise?d(z("Promise-chain cycle")):(u=Q(c))?u.call(c,p,d):p(c)):d(i)}catch(m){h&&!s&&h.exit(),d(m)}}t.reactions=[],t.notified=!1,r&&!t.rejection&&ee(e,t)}))}},K=function(e,t,r){var n,i;V?((n=H.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),s.dispatchEvent(n)):n={promise:t,reason:r},(i=s["on"+e])?i(n):e===J&&k("Unhandled promise rejection",r)},ee=function(e,t){S.call(s,(function(){var r,n=t.value;if(te(t)&&(r=T((function(){F?G.emit("unhandledRejection",n,e):K(J,e,n)})),t.rejection=F||te(t)?2:1,r.error))throw r.value}))},te=function(e){return 1!==e.rejection&&!e.parent},re=function(e,t){S.call(s,(function(){F?G.emit("rejectionHandled",e):K("rejectionhandled",e,t.value)}))},ne=function(e,t,r,n){return function(i){e(t,r,i,n)}},ie=function(e,t,r,n){t.done||(t.done=!0,n&&(t=n),t.value=r,t.state=2,$(e,t,!0))},oe=function(e,t,r,n){if(!t.done){t.done=!0,n&&(t=n);try{if(e===r)throw z("Promise can't be resolved itself");var i=Q(r);i?M((function(){var n={done:!1};try{i.call(r,ne(oe,e,n,t),ne(ie,e,n,t))}catch(o){ie(e,n,o,t)}})):(t.value=r,t.state=1,$(e,t,!1))}catch(o){ie(e,{done:!1},o,t)}}};Y&&(U=function(e){g(this,U,C),y(e),n.call(this);var t=L(this);try{e(ne(oe,this,t),ne(ie,this,t))}catch(r){ie(this,t,r)}},(n=function(e){R(this,{type:C,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=d(U.prototype,{then:function(e,t){var r=B(this),n=q(I(this,U));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=F?G.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&$(this,r,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new n,t=L(e);this.promise=e,this.resolve=ne(oe,e,t),this.reject=ne(ie,e,t)},j.f=q=function(e){return e===U||e===o?new i(e):Z(e)},u||"function"!=typeof f||(a=f.prototype.then,p(f.prototype,"then",(function(e,t){var r=this;return new U((function(e,t){a.call(r,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof W&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return O(U,W.apply(s,arguments))}}))),c({global:!0,wrap:!0,forced:Y},{Promise:U}),h(U,C,!1,!0),m(C),o=l(C),c({target:C,stat:!0,forced:Y},{reject:function(e){var t=q(this);return t.reject.call(void 0,e),t.promise}}),c({target:C,stat:!0,forced:u||Y},{resolve:function(e){return O(u&&this===o?U:this,e)}}),c({target:C,stat:!0,forced:X},{all:function(e){var t=this,r=q(t),n=r.resolve,i=r.reject,o=T((function(){var r=y(t.resolve),o=[],a=0,c=1;x(e,(function(e){var u=a++,s=!1;o.push(void 0),c++,r.call(t,e).then((function(e){s||(s=!0,o[u]=e,--c||n(o))}),i)})),--c||n(o)}));return o.error&&i(o.value),r.promise},race:function(e){var t=this,r=q(t),n=r.reject,i=T((function(){var i=y(t.resolve);x(e,(function(e){i.call(t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}})},39275:function(e,t,r){"use strict";var n=r(19882),i=r(99749);n({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},19985:function(e,t,r){"use strict";var n=r(19882),i=r(21049),o=r(96411);n({target:"String",proto:!0,forced:!r(15454)("includes")},{includes:function(e){return!!~String(o(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},21682:function(e,t,r){"use strict";var n=r(19882),i=r(98385).start;n({target:"String",proto:!0,forced:r(5167)},{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},22321:function(e,t,r){"use strict";var n=r(81492),i=r(83875),o=r(30744),a=r(35108),c=r(98330),u=r(96411),s=r(13350),l=r(94088),f=Math.max,p=Math.min,d=Math.floor,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,m=/\$([$&'`]|\d\d?)/g;n("replace",2,(function(e,t,r,n){var v=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,y=n.REPLACE_KEEPS_$0,g=v?"$":"$0";return[function(r,n){var i=u(this),o=null==r?void 0:r[e];return void 0!==o?o.call(r,i,n):t.call(String(i),r,n)},function(e,n){if(!v&&y||"string"==typeof n&&-1===n.indexOf(g)){var o=r(t,e,this,n);if(o.done)return o.value}var u=i(e),d=String(this),h="function"==typeof n;h||(n=String(n));var m=u.global;if(m){var w=u.unicode;u.lastIndex=0}for(var x=[];;){var E=l(u,d);if(null===E)break;if(x.push(E),!m)break;""===String(E[0])&&(u.lastIndex=s(d,a(u.lastIndex),w))}for(var I,S="",M=0,O=0;O<x.length;O++){E=x[O];for(var k=String(E[0]),j=f(p(c(E.index),d.length),0),T=[],D=1;D<E.length;D++)T.push(void 0===(I=E[D])?I:String(I));var A=E.groups;if(h){var _=[k].concat(T,j,d);void 0!==A&&_.push(A);var P=String(n.apply(void 0,_))}else P=b(k,d,j,T,A,n);j>=M&&(S+=d.slice(M,j)+P,M=j+k.length)}return S+d.slice(M)}];function b(e,r,n,i,a,c){var u=n+e.length,s=i.length,l=m;return void 0!==a&&(a=o(a),l=h),t.call(c,l,(function(t,o){var c;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return r.slice(0,n);case"'":return r.slice(u);case"<":c=a[o.slice(1,-1)];break;default:var l=+o;if(0===l)return t;if(l>s){var f=d(l/10);return 0===f?t:f<=s?void 0===i[f-1]?o.charAt(1):i[f-1]+o.charAt(1):t}c=i[l-1]}return void 0===c?"":c}))}}))},68598:function(e){var t={px:{px:1,cm:96/2.54,mm:96/25.4,in:96,pt:96/72,pc:16},cm:{px:2.54/96,cm:1,mm:.1,in:2.54,pt:2.54/72,pc:2.54/6},mm:{px:25.4/96,cm:10,mm:1,in:25.4,pt:25.4/72,pc:25.4/6},in:{px:1/96,cm:1/2.54,mm:1/25.4,in:1,pt:1/72,pc:1/6},pt:{px:.75,cm:72/2.54,mm:72/25.4,in:72,pt:1,pc:12},pc:{px:6/96,cm:6/2.54,mm:6/25.4,in:6,pt:6/72,pc:1},deg:{deg:1,grad:.9,rad:180/Math.PI,turn:360},grad:{deg:400/360,grad:1,rad:200/Math.PI,turn:400},rad:{deg:Math.PI/180,grad:Math.PI/200,rad:1,turn:2*Math.PI},turn:{deg:1/360,grad:1/400,rad:.5/Math.PI,turn:1},s:{s:1,ms:.001},ms:{s:1e3,ms:1},Hz:{Hz:1,kHz:1e3},kHz:{Hz:.001,kHz:1},dpi:{dpi:1,dpcm:1/2.54,dppx:1/96},dpcm:{dpi:2.54,dpcm:1,dppx:2.54/96},dppx:{dpi:96,dpcm:96/2.54,dppx:1}};e.exports=function(e,r,n,i){if(!t.hasOwnProperty(n))throw new Error("Cannot convert to "+n);if(!t[n].hasOwnProperty(r))throw new Error("Cannot convert from "+r+" to "+n);return i=Math.pow(10,parseInt(i)||5),Math.round(t[n][r]*e*i)/i}},26058:function(e,t,r){var n;/*! decimal.js-light v2.5.1 https://github.com/MikeMcl/decimal.js-light/LICENCE */!function(i){"use strict";var o,a=1e9,c={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},u=!0,s="[DecimalError] ",l=s+"Invalid argument: ",f=s+"Exponent out of range: ",p=Math.floor,d=Math.pow,h=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,m=1e7,v=9007199254740991,y=p(1286742750677284.5),g={};function b(e,t){var r,n,i,o,a,c,s,l,f=e.constructor,p=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),u?T(t,p):t;if(s=e.d,l=t.d,a=e.e,i=t.e,s=s.slice(),o=a-i){for(o<0?(n=s,o=-o,c=l.length):(n=l,i=a,c=s.length),o>(c=(a=Math.ceil(p/7))>c?a+1:c+1)&&(o=c,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for((c=s.length)-(o=l.length)<0&&(o=c,n=l,l=s,s=n),r=0;o;)r=(s[--o]=s[o]+l[o]+r)/m|0,s[o]%=m;for(r&&(s.unshift(r),++i),c=s.length;0==s[--c];)s.pop();return t.d=s,t.e=i,u?T(t,p):t}function w(e,t,r){if(e!==~~e||e<t||e>r)throw Error(l+e)}function x(e){var t,r,n,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)(r=7-(n=e[t]+"").length)&&(o+=O(r)),o+=n;(r=7-(n=(a=e[t])+"").length)&&(o+=O(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}g.absoluteValue=g.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},g.comparedTo=g.cmp=function(e){var t,r,n,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(t=0,r=(n=o.d.length)<(i=e.d.length)?n:i;t<r;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return n===i?0:n>i^o.s<0?1:-1},g.decimalPlaces=g.dp=function(){var e=this,t=e.d.length-1,r=7*(t-e.e);if(t=e.d[t])for(;t%10==0;t/=10)r--;return r<0?0:r},g.dividedBy=g.div=function(e){return E(this,new this.constructor(e))},g.dividedToIntegerBy=g.idiv=function(e){var t=this.constructor;return T(E(this,new t(e),0,1),t.precision)},g.equals=g.eq=function(e){return!this.cmp(e)},g.exponent=function(){return S(this)},g.greaterThan=g.gt=function(e){return this.cmp(e)>0},g.greaterThanOrEqualTo=g.gte=function(e){return this.cmp(e)>=0},g.isInteger=g.isint=function(){return this.e>this.d.length-2},g.isNegative=g.isneg=function(){return this.s<0},g.isPositive=g.ispos=function(){return this.s>0},g.isZero=function(){return 0===this.s},g.lessThan=g.lt=function(e){return this.cmp(e)<0},g.lessThanOrEqualTo=g.lte=function(e){return this.cmp(e)<1},g.logarithm=g.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(void 0===e)e=new n(10);else if((e=new n(e)).s<1||e.eq(o))throw Error(s+"NaN");if(r.s<1)throw Error(s+(r.s?"NaN":"-Infinity"));return r.eq(o)?new n(0):(u=!1,t=E(k(r,a),k(e,a),a),u=!0,T(t,i))},g.minus=g.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?D(t,e):b(t,(e.s=-e.s,e))},g.modulo=g.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(!(e=new n(e)).s)throw Error(s+"NaN");return r.s?(u=!1,t=E(r,e,0,1).times(e),u=!0,r.minus(t)):T(new n(r),i)},g.naturalExponential=g.exp=function(){return I(this)},g.naturalLogarithm=g.ln=function(){return k(this)},g.negated=g.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},g.plus=g.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?b(t,e):D(t,(e.s=-e.s,e))},g.precision=g.sd=function(e){var t,r,n,i=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(l+e);if(t=S(i)+1,r=7*(n=i.d.length-1)+1,n=i.d[n]){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r},g.squareRoot=g.sqrt=function(){var e,t,r,n,i,o,a,c=this,l=c.constructor;if(c.s<1){if(!c.s)return new l(0);throw Error(s+"NaN")}for(e=S(c),u=!1,0==(i=Math.sqrt(+c))||i==1/0?(((t=x(c.d)).length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=p((e+1)/2)-(e<0||e%2),n=new l(t=i==1/0?"5e"+e:(t=i.toExponential()).slice(0,t.indexOf("e")+1)+e)):n=new l(i.toString()),i=a=(r=l.precision)+3;;)if(n=(o=n).plus(E(c,o,a+2)).times(.5),x(o.d).slice(0,a)===(t=x(n.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&"4999"==t){if(T(o,r+1,0),o.times(o).eq(c)){n=o;break}}else if("9999"!=t)break;a+=4}return u=!0,T(n,r)},g.times=g.mul=function(e){var t,r,n,i,o,a,c,s,l,f=this,p=f.constructor,d=f.d,h=(e=new p(e)).d;if(!f.s||!e.s)return new p(0);for(e.s*=f.s,r=f.e+e.e,(s=d.length)<(l=h.length)&&(o=d,d=h,h=o,a=s,s=l,l=a),o=[],n=a=s+l;n--;)o.push(0);for(n=l;--n>=0;){for(t=0,i=s+n;i>n;)c=o[i]+h[n]*d[i-n-1]+t,o[i--]=c%m|0,t=c/m|0;o[i]=(o[i]+t)%m|0}for(;!o[--a];)o.pop();return t?++r:o.shift(),e.d=o,e.e=r,u?T(e,p.precision):e},g.toDecimalPlaces=g.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),void 0===e?r:(w(e,0,a),void 0===t?t=n.rounding:w(t,0,8),T(r,e+S(r)+1,t))},g.toExponential=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=A(n,!0):(w(e,0,a),void 0===t?t=i.rounding:w(t,0,8),r=A(n=T(new i(n),e+1,t),!0,e+1)),r},g.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return void 0===e?A(i):(w(e,0,a),void 0===t?t=o.rounding:w(t,0,8),r=A((n=T(new o(i),e+S(i)+1,t)).abs(),!1,e+S(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)},g.toInteger=g.toint=function(){var e=this,t=e.constructor;return T(new t(e),S(e)+1,t.rounding)},g.toNumber=function(){return+this},g.toPower=g.pow=function(e){var t,r,n,i,a,c,l=this,f=l.constructor,d=+(e=new f(e));if(!e.s)return new f(o);if(!(l=new f(l)).s){if(e.s<1)throw Error(s+"Infinity");return l}if(l.eq(o))return l;if(n=f.precision,e.eq(o))return T(l,n);if(c=(t=e.e)>=(r=e.d.length-1),a=l.s,c){if((r=d<0?-d:d)<=v){for(i=new f(o),t=Math.ceil(n/7+4),u=!1;r%2&&_((i=i.times(l)).d,t),0!==(r=p(r/2));)_((l=l.times(l)).d,t);return u=!0,e.s<0?new f(o).div(i):T(i,n)}}else if(a<0)throw Error(s+"NaN");return a=a<0&&1&e.d[Math.max(t,r)]?-1:1,l.s=1,u=!1,i=e.times(k(l,n+12)),u=!0,(i=I(i)).s=a,i},g.toPrecision=function(e,t){var r,n,i=this,o=i.constructor;return void 0===e?n=A(i,(r=S(i))<=o.toExpNeg||r>=o.toExpPos):(w(e,1,a),void 0===t?t=o.rounding:w(t,0,8),n=A(i=T(new o(i),e,t),e<=(r=S(i))||r<=o.toExpNeg,e)),n},g.toSignificantDigits=g.tosd=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(w(e,1,a),void 0===t?t=r.rounding:w(t,0,8)),T(new r(this),e,t)},g.toString=g.valueOf=g.val=g.toJSON=function(){var e=this,t=S(e),r=e.constructor;return A(e,t<=r.toExpNeg||t>=r.toExpPos)};var E=function(){function e(e,t){var r,n=0,i=e.length;for(e=e.slice();i--;)r=e[i]*t+n,e[i]=r%m|0,n=r/m|0;return n&&e.unshift(n),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function r(e,t,r){for(var n=0;r--;)e[r]-=n,n=e[r]<t[r]?1:0,e[r]=n*m+e[r]-t[r];for(;!e[0]&&e.length>1;)e.shift()}return function(n,i,o,a){var c,u,l,f,p,d,h,v,y,g,b,w,x,E,I,M,O,k,j=n.constructor,D=n.s==i.s?1:-1,A=n.d,_=i.d;if(!n.s)return new j(n);if(!i.s)throw Error(s+"Division by zero");for(u=n.e-i.e,O=_.length,I=A.length,v=(h=new j(D)).d=[],l=0;_[l]==(A[l]||0);)++l;if(_[l]>(A[l]||0)&&--u,(w=null==o?o=j.precision:a?o+(S(n)-S(i))+1:o)<0)return new j(0);if(w=w/7+2|0,l=0,1==O)for(f=0,_=_[0],w++;(l<I||f)&&w--;l++)x=f*m+(A[l]||0),v[l]=x/_|0,f=x%_|0;else{for((f=m/(_[0]+1)|0)>1&&(_=e(_,f),A=e(A,f),O=_.length,I=A.length),E=O,g=(y=A.slice(0,O)).length;g<O;)y[g++]=0;(k=_.slice()).unshift(0),M=_[0],_[1]>=m/2&&++M;do{f=0,(c=t(_,y,O,g))<0?(b=y[0],O!=g&&(b=b*m+(y[1]||0)),(f=b/M|0)>1?(f>=m&&(f=m-1),1==(c=t(p=e(_,f),y,d=p.length,g=y.length))&&(f--,r(p,O<d?k:_,d))):(0==f&&(c=f=1),p=_.slice()),(d=p.length)<g&&p.unshift(0),r(y,p,g),-1==c&&(c=t(_,y,O,g=y.length))<1&&(f++,r(y,O<g?k:_,g)),g=y.length):0===c&&(f++,y=[0]),v[l++]=f,c&&y[0]?y[g++]=A[E]||0:(y=[A[E]],g=1)}while((E++<I||void 0!==y[0])&&w--)}return v[0]||v.shift(),h.e=u,T(h,a?o+S(h)+1:o)}}();function I(e,t){var r,n,i,a,c,s=0,l=0,p=e.constructor,h=p.precision;if(S(e)>16)throw Error(f+S(e));if(!e.s)return new p(o);for(null==t?(u=!1,c=h):c=t,a=new p(.03125);e.abs().gte(.1);)e=e.times(a),l+=5;for(c+=Math.log(d(2,l))/Math.LN10*2+5|0,r=n=i=new p(o),p.precision=c;;){if(n=T(n.times(e),c),r=r.times(++s),x((a=i.plus(E(n,r,c))).d).slice(0,c)===x(i.d).slice(0,c)){for(;l--;)i=T(i.times(i),c);return p.precision=h,null==t?(u=!0,T(i,h)):i}i=a}}function S(e){for(var t=7*e.e,r=e.d[0];r>=10;r/=10)t++;return t}function M(e,t,r){if(t>e.LN10.sd())throw u=!0,r&&(e.precision=r),Error(s+"LN10 precision limit exceeded");return T(new e(e.LN10),t)}function O(e){for(var t="";e--;)t+="0";return t}function k(e,t){var r,n,i,a,c,l,f,p,d,h=1,m=e,v=m.d,y=m.constructor,g=y.precision;if(m.s<1)throw Error(s+(m.s?"NaN":"-Infinity"));if(m.eq(o))return new y(0);if(null==t?(u=!1,p=g):p=t,m.eq(10))return null==t&&(u=!0),M(y,p);if(p+=10,y.precision=p,n=(r=x(v)).charAt(0),a=S(m),!(Math.abs(a)<15e14))return f=M(y,p+2,g).times(a+""),m=k(new y(n+"."+r.slice(1)),p-10).plus(f),y.precision=g,null==t?(u=!0,T(m,g)):m;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=x((m=m.times(e)).d)).charAt(0),h++;for(a=S(m),n>1?(m=new y("0."+r),a++):m=new y(n+"."+r.slice(1)),l=c=m=E(m.minus(o),m.plus(o),p),d=T(m.times(m),p),i=3;;){if(c=T(c.times(d),p),x((f=l.plus(E(c,new y(i),p))).d).slice(0,p)===x(l.d).slice(0,p))return l=l.times(2),0!==a&&(l=l.plus(M(y,p+2,g).times(a+""))),l=E(l,new y(h),p),y.precision=g,null==t?(u=!0,T(l,g)):l;l=f,i+=2}}function j(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;48===t.charCodeAt(n);)++n;for(i=t.length;48===t.charCodeAt(i-1);)--i;if(t=t.slice(n,i)){if(i-=n,r=r-n-1,e.e=p(r/7),e.d=[],n=(r+1)%7,r<0&&(n+=7),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=7;n<i;)e.d.push(+t.slice(n,n+=7));n=7-(t=t.slice(n)).length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),u&&(e.e>y||e.e<-y))throw Error(f+r)}else e.s=0,e.e=0,e.d=[0];return e}function T(e,t,r){var n,i,o,a,c,s,l,h,v=e.d;for(a=1,o=v[0];o>=10;o/=10)a++;if((n=t-a)<0)n+=7,i=t,l=v[h=0];else{if((h=Math.ceil((n+1)/7))>=(o=v.length))return e;for(l=o=v[h],a=1;o>=10;o/=10)a++;i=(n%=7)-7+a}if(void 0!==r&&(c=l/(o=d(10,a-i-1))%10|0,s=t<0||void 0!==v[h+1]||l%o,s=r<4?(c||s)&&(0==r||r==(e.s<0?3:2)):c>5||5==c&&(4==r||s||6==r&&(n>0?i>0?l/d(10,a-i):0:v[h-1])%10&1||r==(e.s<0?8:7))),t<1||!v[0])return s?(o=S(e),v.length=1,t=t-o-1,v[0]=d(10,(7-t%7)%7),e.e=p(-t/7)||0):(v.length=1,v[0]=e.e=e.s=0),e;if(0==n?(v.length=h,o=1,h--):(v.length=h+1,o=d(10,7-n),v[h]=i>0?(l/d(10,a-i)%d(10,i)|0)*o:0),s)for(;;){if(0==h){(v[0]+=o)==m&&(v[0]=1,++e.e);break}if(v[h]+=o,v[h]!=m)break;v[h--]=0,o=1}for(n=v.length;0===v[--n];)v.pop();if(u&&(e.e>y||e.e<-y))throw Error(f+S(e));return e}function D(e,t){var r,n,i,o,a,c,s,l,f,p,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),u?T(t,h):t;if(s=e.d,p=t.d,n=t.e,l=e.e,s=s.slice(),a=l-n){for((f=a<0)?(r=s,a=-a,c=p.length):(r=p,n=l,c=s.length),a>(i=Math.max(Math.ceil(h/7),c)+2)&&(a=i,r.length=1),r.reverse(),i=a;i--;)r.push(0);r.reverse()}else{for((f=(i=s.length)<(c=p.length))&&(c=i),i=0;i<c;i++)if(s[i]!=p[i]){f=s[i]<p[i];break}a=0}for(f&&(r=s,s=p,p=r,t.s=-t.s),c=s.length,i=p.length-c;i>0;--i)s[c++]=0;for(i=p.length;i>a;){if(s[--i]<p[i]){for(o=i;o&&0===s[--o];)s[o]=m-1;--s[o],s[i]+=m}s[i]-=p[i]}for(;0===s[--c];)s.pop();for(;0===s[0];s.shift())--n;return s[0]?(t.d=s,t.e=n,u?T(t,h):t):new d(0)}function A(e,t,r){var n,i=S(e),o=x(e.d),a=o.length;return t?(r&&(n=r-a)>0?o=o.charAt(0)+"."+o.slice(1)+O(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+O(-i-1)+o,r&&(n=r-a)>0&&(o+=O(n))):i>=a?(o+=O(i+1-a),r&&(n=r-i-1)>0&&(o=o+"."+O(n))):((n=i+1)<a&&(o=o.slice(0,n)+"."+o.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(o+="."),o+=O(n))),e.s<0?"-"+o:o}function _(e,t){if(e.length>t)return e.length=t,!0}function P(e){if(!e||"object"!=typeof e)throw Error(s+"Object expected");var t,r,n,i=["precision",1,a,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if(void 0!==(n=e[r=i[t]])){if(!(p(n)===n&&n>=i[t+1]&&n<=i[t+2]))throw Error(l+r+": "+n);this[r]=n}if(void 0!==(n=e[r="LN10"])){if(n!=Math.LN10)throw Error(l+r+": "+n);this[r]=new this(n)}return this}(c=function e(t){var r,n,i;function o(e){var t=this;if(!(t instanceof o))return new o(e);if(t.constructor=o,e instanceof o)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"==typeof e){if(0*e!=0)throw Error(l+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):j(t,e.toString())}if("string"!=typeof e)throw Error(l+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!h.test(e))throw Error(l+e);j(t,e)}if(o.prototype=g,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=e,o.config=o.set=P,void 0===t&&(t={}),t)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],r=0;r<i.length;)t.hasOwnProperty(n=i[r++])||(t[n]=this[n]);return o.config(t),o}(c)).default=c.Decimal=c,o=new c(1),void 0===(n=function(){return c}.call(t,r,t,e))||(e.exports=n)}()},37941:function(e,t,r){var n;
7
  /*!
8
  Copyright (c) 2015 Jed Watson.
9
  Based on code that is Copyright 2013-2015, Facebook, Inc.
@@ -33,7 +33,7 @@ var WPRecipeMaker;(WPRecipeMaker=void 0===WPRecipeMaker?{}:WPRecipeMaker)["wp-re
33
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
34
  * SOFTWARE.
35
  */
36
- var n="undefined"!=typeof window&&"undefined"!=typeof document,i=["Edge","Trident","Firefox"],o=0,a=0;a<i.length;a+=1)if(n&&navigator.userAgent.indexOf(i[a])>=0){o=1;break}var c=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),o))}};function u(e){return e&&"[object Function]"==={}.toString.call(e)}function s(e,t){if(1!==e.nodeType)return[];var r=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?r[t]:r}function l(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function f(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=s(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(r+i+n)?e:f(l(e))}var p=n&&!(!window.MSInputMethodContext||!document.documentMode),d=n&&/MSIE 10/.test(navigator.userAgent);function h(e){return 11===e?p:10===e?d:p||d}function m(e){if(!e)return document.documentElement;for(var t=h(10)?document.body:null,r=e.offsetParent||null;r===t&&e.nextElementSibling;)r=(e=e.nextElementSibling).offsetParent;var n=r&&r.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TH","TD","TABLE"].indexOf(r.nodeName)&&"static"===s(r,"position")?m(r):r:e?e.ownerDocument.documentElement:document.documentElement}function v(e){return null!==e.parentNode?v(e.parentNode):e}function y(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var r=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,n=r?e:t,i=r?t:e,o=document.createRange();o.setStart(n,0),o.setEnd(i,0);var a,c,u=o.commonAncestorContainer;if(e!==u&&t!==u||n.contains(i))return"BODY"===(c=(a=u).nodeName)||"HTML"!==c&&m(a.firstElementChild)!==a?m(u):u;var s=v(e);return s.host?y(s.host,t):y(e,v(t).host)}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",r="top"===t?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var i=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||i;return o[r]}return e[r]}function b(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=g(t,"top"),i=g(t,"left"),o=r?-1:1;return e.top+=n*o,e.bottom+=n*o,e.left+=i*o,e.right+=i*o,e}function w(e,t){var r="x"===t?"Left":"Top",n="Left"===r?"Right":"Bottom";return parseFloat(e["border"+r+"Width"],10)+parseFloat(e["border"+n+"Width"],10)}function x(e,t,r,n){return Math.max(t["offset"+e],t["scroll"+e],r["client"+e],r["offset"+e],r["scroll"+e],h(10)?parseInt(r["offset"+e])+parseInt(n["margin"+("Height"===e?"Top":"Left")])+parseInt(n["margin"+("Height"===e?"Bottom":"Right")]):0)}function E(e){var t=e.body,r=e.documentElement,n=h(10)&&getComputedStyle(r);return{height:x("Height",t,r,n),width:x("Width",t,r,n)}}var I=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},S=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),M=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function k(e){return O({},e,{right:e.left+e.width,bottom:e.top+e.height})}function j(e){var t={};try{if(h(10)){t=e.getBoundingClientRect();var r=g(e,"top"),n=g(e,"left");t.top+=r,t.left+=n,t.bottom+=r,t.right+=n}else t=e.getBoundingClientRect()}catch(p){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?E(e.ownerDocument):{},a=o.width||e.clientWidth||i.right-i.left,c=o.height||e.clientHeight||i.bottom-i.top,u=e.offsetWidth-a,l=e.offsetHeight-c;if(u||l){var f=s(e);u-=w(f,"x"),l-=w(f,"y"),i.width-=u,i.height-=l}return k(i)}function T(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=h(10),i="HTML"===t.nodeName,o=j(e),a=j(t),c=f(e),u=s(t),l=parseFloat(u.borderTopWidth,10),p=parseFloat(u.borderLeftWidth,10);r&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=k({top:o.top-a.top-l,left:o.left-a.left-p,width:o.width,height:o.height});if(d.marginTop=0,d.marginLeft=0,!n&&i){var m=parseFloat(u.marginTop,10),v=parseFloat(u.marginLeft,10);d.top-=l-m,d.bottom-=l-m,d.left-=p-v,d.right-=p-v,d.marginTop=m,d.marginLeft=v}return(n&&!r?t.contains(c):t===c&&"BODY"!==c.nodeName)&&(d=b(d,t)),d}function D(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.ownerDocument.documentElement,n=T(e,r),i=Math.max(r.clientWidth,window.innerWidth||0),o=Math.max(r.clientHeight,window.innerHeight||0),a=t?0:g(r),c=t?0:g(r,"left"),u={top:a-n.top+n.marginTop,left:c-n.left+n.marginLeft,width:i,height:o};return k(u)}function A(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===s(e,"position"))return!0;var r=l(e);return!!r&&A(r)}function _(e){if(!e||!e.parentElement||h())return document.documentElement;for(var t=e.parentElement;t&&"none"===s(t,"transform");)t=t.parentElement;return t||document.documentElement}function P(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?_(e):y(e,t);if("viewport"===n)o=D(a,i);else{var c=void 0;"scrollParent"===n?"BODY"===(c=f(l(t))).nodeName&&(c=e.ownerDocument.documentElement):c="window"===n?e.ownerDocument.documentElement:n;var u=T(c,a,i);if("HTML"!==c.nodeName||A(a))o=u;else{var s=E(e.ownerDocument),p=s.height,d=s.width;o.top+=u.top-u.marginTop,o.bottom=p+u.top,o.left+=u.left-u.marginLeft,o.right=d+u.left}}var h="number"==typeof(r=r||0);return o.left+=h?r:r.left||0,o.top+=h?r:r.top||0,o.right-=h?r:r.right||0,o.bottom-=h?r:r.bottom||0,o}function N(e){return e.width*e.height}function C(e,t,r,n,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=P(r,n,o,i),c={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},u=Object.keys(c).map((function(e){return O({key:e},c[e],{area:N(c[e])})})).sort((function(e,t){return t.area-e.area})),s=u.filter((function(e){var t=e.width,n=e.height;return t>=r.clientWidth&&n>=r.clientHeight})),l=s.length>0?s[0].key:u[0].key,f=e.split("-")[1];return l+(f?"-"+f:"")}function L(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=n?_(t):y(t,r);return T(r,i,n)}function R(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),r=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),n=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+n,height:e.offsetHeight+r}}function B(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function U(e,t,r){r=r.split("-")[0];var n=R(e),i={width:n.width,height:n.height},o=-1!==["right","left"].indexOf(r),a=o?"top":"left",c=o?"left":"top",u=o?"height":"width",s=o?"width":"height";return i[a]=t[a]+t[u]/2-n[u]/2,i[c]=r===c?t[c]-n[s]:t[B(c)],i}function z(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function H(e,t,r){return(void 0===r?e:e.slice(0,function(e,t,r){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===r}));var n=z(e,(function(e){return e[t]===r}));return e.indexOf(n)}(e,"name",r))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var r=e.function||e.fn;e.enabled&&u(r)&&(t.offsets.popper=k(t.offsets.popper),t.offsets.reference=k(t.offsets.reference),t=r(t,e))})),t}function G(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=L(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=C(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=U(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=H(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function W(e,t){return e.some((function(e){var r=e.name;return e.enabled&&r===t}))}function q(e){for(var t=[!1,"ms","Webkit","Moz","O"],r=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length;n++){var i=t[n],o=i?""+i+r:e;if(void 0!==document.body.style[o])return o}return null}function Z(){return this.state.isDestroyed=!0,W(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[q("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function F(e){var t=e.ownerDocument;return t?t.defaultView:window}function V(e,t,r,n){var i="BODY"===e.nodeName,o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,r,{passive:!0}),i||V(f(o.parentNode),t,r,n),n.push(o)}function J(e,t,r,n){r.updateBound=n,F(e).addEventListener("resize",r.updateBound,{passive:!0});var i=f(e);return V(i,"scroll",r.updateBound,r.scrollParents),r.scrollElement=i,r.eventsEnabled=!0,r}function Y(){this.state.eventsEnabled||(this.state=J(this.reference,this.options,this.state,this.scheduleUpdate))}function X(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,F(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function Q(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function $(e,t){Object.keys(t).forEach((function(r){var n="";-1!==["width","height","top","right","bottom","left"].indexOf(r)&&Q(t[r])&&(n="px"),e.style[r]=t[r]+n}))}var K=n&&/Firefox/i.test(navigator.userAgent);function ee(e,t,r){var n=z(e,(function(e){return e.name===t})),i=!!n&&e.some((function(e){return e.name===r&&e.enabled&&e.order<n.order}));if(!i){var o="`"+t+"`",a="`"+r+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}var te=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],re=te.slice(3);function ne(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=re.indexOf(e),n=re.slice(r+1).concat(re.slice(0,r));return t?n.reverse():n}var ie="flip",oe="clockwise",ae="counterclockwise";function ce(e,t,r,n){var i=[0,0],o=-1!==["right","left"].indexOf(n),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),c=a.indexOf(z(a,(function(e){return-1!==e.search(/,|\s/)})));a[c]&&-1===a[c].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,s=-1!==c?[a.slice(0,c).concat([a[c].split(u)[0]]),[a[c].split(u)[1]].concat(a.slice(c+1))]:[a];return(s=s.map((function(e,n){var i=(1===n?!o:o)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,r,n){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(0===a.indexOf("%")){var c=void 0;switch(a){case"%p":c=r;break;case"%":case"%r":default:c=n}return k(c)[t]/100*o}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;return o}(e,i,t,r)}))}))).forEach((function(e,t){e.forEach((function(r,n){Q(r)&&(i[t]+=r*("-"===e[n-1]?-1:1))}))})),i}var ue={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,r=t.split("-")[0],n=t.split("-")[1];if(n){var i=e.offsets,o=i.reference,a=i.popper,c=-1!==["bottom","top"].indexOf(r),u=c?"left":"top",s=c?"width":"height",l={start:M({},u,o[u]),end:M({},u,o[u]+o[s]-a[s])};e.offsets.popper=O({},a,l[n])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var r=t.offset,n=e.placement,i=e.offsets,o=i.popper,a=i.reference,c=n.split("-")[0],u=void 0;return u=Q(+r)?[+r,0]:ce(r,o,a,c),"left"===c?(o.top+=u[0],o.left-=u[1]):"right"===c?(o.top+=u[0],o.left+=u[1]):"top"===c?(o.left+=u[0],o.top-=u[1]):"bottom"===c&&(o.left+=u[0],o.top+=u[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var r=t.boundariesElement||m(e.instance.popper);e.instance.reference===r&&(r=m(r));var n=q("transform"),i=e.instance.popper.style,o=i.top,a=i.left,c=i[n];i.top="",i.left="",i[n]="";var u=P(e.instance.popper,e.instance.reference,t.padding,r,e.positionFixed);i.top=o,i.left=a,i[n]=c,t.boundaries=u;var s=t.priority,l=e.offsets.popper,f={primary:function(e){var r=l[e];return l[e]<u[e]&&!t.escapeWithReference&&(r=Math.max(l[e],u[e])),M({},e,r)},secondary:function(e){var r="right"===e?"left":"top",n=l[r];return l[e]>u[e]&&!t.escapeWithReference&&(n=Math.min(l[r],u[e]-("right"===e?l.width:l.height))),M({},r,n)}};return s.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";l=O({},l,f[t](e))})),e.offsets.popper=l,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,r=t.popper,n=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),c=a?"right":"bottom",u=a?"left":"top",s=a?"width":"height";return r[c]<o(n[u])&&(e.offsets.popper[u]=o(n[u])-r[s]),r[u]>o(n[c])&&(e.offsets.popper[u]=o(n[c])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var r;if(!ee(e.instance.modifiers,"arrow","keepTogether"))return e;var n=t.element;if("string"==typeof n){if(!(n=e.instance.popper.querySelector(n)))return e}else if(!e.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,a=o.popper,c=o.reference,u=-1!==["left","right"].indexOf(i),l=u?"height":"width",f=u?"Top":"Left",p=f.toLowerCase(),d=u?"left":"top",h=u?"bottom":"right",m=R(n)[l];c[h]-m<a[p]&&(e.offsets.popper[p]-=a[p]-(c[h]-m)),c[p]+m>a[h]&&(e.offsets.popper[p]+=c[p]+m-a[h]),e.offsets.popper=k(e.offsets.popper);var v=c[p]+c[l]/2-m/2,y=s(e.instance.popper),g=parseFloat(y["margin"+f],10),b=parseFloat(y["border"+f+"Width"],10),w=v-e.offsets.popper[p]-g-b;return w=Math.max(Math.min(a[l]-m,w),0),e.arrowElement=n,e.offsets.arrow=(M(r={},p,Math.round(w)),M(r,d,""),r),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(W(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var r=P(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),n=e.placement.split("-")[0],i=B(n),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case ie:a=[n,i];break;case oe:a=ne(n);break;case ae:a=ne(n,!0);break;default:a=t.behavior}return a.forEach((function(c,u){if(n!==c||a.length===u+1)return e;n=e.placement.split("-")[0],i=B(n);var s=e.offsets.popper,l=e.offsets.reference,f=Math.floor,p="left"===n&&f(s.right)>f(l.left)||"right"===n&&f(s.left)<f(l.right)||"top"===n&&f(s.bottom)>f(l.top)||"bottom"===n&&f(s.top)<f(l.bottom),d=f(s.left)<f(r.left),h=f(s.right)>f(r.right),m=f(s.top)<f(r.top),v=f(s.bottom)>f(r.bottom),y="left"===n&&d||"right"===n&&h||"top"===n&&m||"bottom"===n&&v,g=-1!==["top","bottom"].indexOf(n),b=!!t.flipVariations&&(g&&"start"===o&&d||g&&"end"===o&&h||!g&&"start"===o&&m||!g&&"end"===o&&v),w=!!t.flipVariationsByContent&&(g&&"start"===o&&h||g&&"end"===o&&d||!g&&"start"===o&&v||!g&&"end"===o&&m),x=b||w;(p||y||x)&&(e.flipped=!0,(p||y)&&(n=a[u+1]),x&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=n+(o?"-"+o:""),e.offsets.popper=O({},e.offsets.popper,U(e.instance.popper,e.offsets.reference,e.placement)),e=H(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,r=t.split("-")[0],n=e.offsets,i=n.popper,o=n.reference,a=-1!==["left","right"].indexOf(r),c=-1===["top","left"].indexOf(r);return i[a?"left":"top"]=o[r]-(c?i[a?"width":"height"]:0),e.placement=B(t),e.offsets.popper=k(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!ee(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,r=z(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<r.top||t.left>r.right||t.top>r.bottom||t.right<r.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var r=t.x,n=t.y,i=e.offsets.popper,o=z(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:t.gpuAcceleration,c=m(e.instance.popper),u=j(c),s={position:i.position},l=function(e,t){var r=e.offsets,n=r.popper,i=r.reference,o=Math.round,a=Math.floor,c=function(e){return e},u=o(i.width),s=o(n.width),l=-1!==["left","right"].indexOf(e.placement),f=-1!==e.placement.indexOf("-"),p=t?l||f||u%2==s%2?o:a:c,d=t?o:c;return{left:p(u%2==1&&s%2==1&&!f&&t?n.left-1:n.left),top:d(n.top),bottom:d(n.bottom),right:p(n.right)}}(e,window.devicePixelRatio<2||!K),f="bottom"===r?"top":"bottom",p="right"===n?"left":"right",d=q("transform"),h=void 0,v=void 0;if(v="bottom"===f?"HTML"===c.nodeName?-c.clientHeight+l.bottom:-u.height+l.bottom:l.top,h="right"===p?"HTML"===c.nodeName?-c.clientWidth+l.right:-u.width+l.right:l.left,a&&d)s[d]="translate3d("+h+"px, "+v+"px, 0)",s[f]=0,s[p]=0,s.willChange="transform";else{var y="bottom"===f?-1:1,g="right"===p?-1:1;s[f]=v*y,s[p]=h*g,s.willChange=f+", "+p}var b={"x-placement":e.placement};return e.attributes=O({},b,e.attributes),e.styles=O({},s,e.styles),e.arrowStyles=O({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,r;return $(e.instance.popper,e.styles),t=e.instance.popper,r=e.attributes,Object.keys(r).forEach((function(e){!1!==r[e]?t.setAttribute(e,r[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&$(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,r,n,i){var o=L(i,t,e,r.positionFixed),a=C(r.placement,o,t,e,r.modifiers.flip.boundariesElement,r.modifiers.flip.padding);return t.setAttribute("x-placement",a),$(t,{position:r.positionFixed?"fixed":"absolute"}),r},gpuAcceleration:void 0}}},se=function(){function e(t,r){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};I(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=c(this.update.bind(this)),this.options=O({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=r&&r.jquery?r[0]:r,this.options.modifiers={},Object.keys(O({},e.Defaults.modifiers,i.modifiers)).forEach((function(t){n.options.modifiers[t]=O({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return O({name:e},n.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&u(e.onLoad)&&e.onLoad(n.reference,n.popper,n.options,e,n.state)})),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return S(e,[{key:"update",value:function(){return G.call(this)}},{key:"destroy",value:function(){return Z.call(this)}},{key:"enableEventListeners",value:function(){return Y.call(this)}},{key:"disableEventListeners",value:function(){return X.call(this)}}]),e}();se.Utils=("undefined"!=typeof window?window:r.g).PopperUtils,se.placements=te,se.Defaults=ue,t.default=se},59069:function(e,t,r){var n=r(50027),i=r(46714),o=r(16895);function a(e){return this instanceof a?(this.nodes=n(e),this):new a(e)}a.prototype.toString=function(){return Array.isArray(this.nodes)?o(this.nodes):""},a.prototype.walk=function(e,t){return i(this.nodes,e,t),this},a.unit=r(32280),a.walk=i,a.stringify=o,e.exports=a},50027:function(e){var t="(".charCodeAt(0),r=")".charCodeAt(0),n="'".charCodeAt(0),i='"'.charCodeAt(0),o="\\".charCodeAt(0),a="/".charCodeAt(0),c=",".charCodeAt(0),u=":".charCodeAt(0),s="*".charCodeAt(0);e.exports=function(e){for(var l,f,p,d,h,m,v,y,g=[],b=e,w=0,x=b.charCodeAt(w),E=b.length,I=[{nodes:g}],S=0,M="",O="",k="";w<E;)if(x<=32){l=w;do{l+=1,x=b.charCodeAt(l)}while(x<=32);d=b.slice(w,l),p=g[g.length-1],x===r&&S?k=d:p&&"div"===p.type?p.after=d:x===c||x===u||x===a&&b.charCodeAt(l+1)!==s?O=d:g.push({type:"space",sourceIndex:w,value:d}),w=l}else if(x===n||x===i){l=w,d={type:"string",sourceIndex:w,quote:f=x===n?"'":'"'};do{if(h=!1,~(l=b.indexOf(f,l+1)))for(m=l;b.charCodeAt(m-1)===o;)m-=1,h=!h;else l=(b+=f).length-1,d.unclosed=!0}while(h);d.value=b.slice(w+1,l),g.push(d),w=l+1,x=b.charCodeAt(w)}else if(x===a&&b.charCodeAt(w+1)===s)d={type:"comment",sourceIndex:w},-1===(l=b.indexOf("*/",w))&&(d.unclosed=!0,l=b.length),d.value=b.slice(w+2,l),g.push(d),w=l+2,x=b.charCodeAt(w);else if(x===a||x===c||x===u)d=b[w],g.push({type:"div",sourceIndex:w-O.length,value:d,before:O,after:""}),O="",w+=1,x=b.charCodeAt(w);else if(t===x){l=w;do{l+=1,x=b.charCodeAt(l)}while(x<=32);if(d={type:"function",sourceIndex:w-M.length,value:M,before:b.slice(w+1,l)},w=l,"url"===M&&x!==n&&x!==i){l-=1;do{if(h=!1,~(l=b.indexOf(")",l+1)))for(m=l;b.charCodeAt(m-1)===o;)m-=1,h=!h;else l=(b+=")").length-1,d.unclosed=!0}while(h);v=l;do{v-=1,x=b.charCodeAt(v)}while(x<=32);d.nodes=w!==v+1?[{type:"word",sourceIndex:w,value:b.slice(w,v+1)}]:[],d.unclosed&&v+1!==l?(d.after="",d.nodes.push({type:"space",sourceIndex:v+1,value:b.slice(v+1,l)})):d.after=b.slice(v+1,l),w=l+1,x=b.charCodeAt(w),g.push(d)}else S+=1,d.after="",g.push(d),I.push(d),g=d.nodes=[],y=d;M=""}else if(r===x&&S)w+=1,x=b.charCodeAt(w),y.after=k,k="",S-=1,I.pop(),g=(y=I[S]).nodes;else{l=w;do{x===o&&(l+=1),l+=1,x=b.charCodeAt(l)}while(l<E&&!(x<=32||x===n||x===i||x===c||x===u||x===a||x===t||x===r&&S));d=b.slice(w,l),t===x?M=d:g.push({type:"word",sourceIndex:w,value:d}),w=l}for(w=I.length-1;w;w-=1)I[w].unclosed=!0;return I[0].nodes}},16895:function(e){function t(e,t){var n,i,o=e.type,a=e.value;return t&&void 0!==(i=t(e))?i:"word"===o||"space"===o?a:"string"===o?(n=e.quote||"")+a+(e.unclosed?"":n):"comment"===o?"/*"+a+(e.unclosed?"":"*/"):"div"===o?(e.before||"")+a+(e.after||""):Array.isArray(e.nodes)?(n=r(e.nodes),"function"!==o?n:a+"("+(e.before||"")+n+(e.after||"")+(e.unclosed?"":")")):a}function r(e,r){var n,i;if(Array.isArray(e)){for(n="",i=e.length-1;~i;i-=1)n=t(e[i],r)+n;return n}return t(e,r)}e.exports=r},32280:function(e){var t="-".charCodeAt(0),r="+".charCodeAt(0),n=".".charCodeAt(0),i="e".charCodeAt(0),o="E".charCodeAt(0);e.exports=function(e){for(var a,c=0,u=e.length,s=!1,l=-1,f=!1;c<u;){if((a=e.charCodeAt(c))>=48&&a<=57)f=!0;else if(a===i||a===o){if(l>-1)break;l=c}else if(a===n){if(s)break;s=!0}else{if(a!==r&&a!==t)break;if(0!==c)break}c+=1}return l+1===c&&c--,!!f&&{number:e.slice(0,c),unit:e.slice(c)}}},46714:function(e){e.exports=function e(t,r,n){var i,o,a,c;for(i=0,o=t.length;i<o;i+=1)a=t[i],n||(c=r(a,i,t)),!1!==c&&"function"===a.type&&Array.isArray(a.nodes)&&e(a.nodes,r,n),n&&r(a,i,t)}},5372:function(e,t,r){"use strict";var n=r(49567);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,a){if(a!==n){var c=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 c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return r.PropTypes=r,r}},2652:function(e,t,r){e.exports=r(5372)()},49567:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},61666:function(e,t,r){for(var n=r(76279),i="undefined"==typeof window?r.g:window,o=["moz","webkit"],a="AnimationFrame",c=i["request"+a],u=i["cancel"+a]||i["cancelRequest"+a],s=0;!c&&s<o.length;s++)c=i[o[s]+"Request"+a],u=i[o[s]+"Cancel"+a]||i[o[s]+"CancelRequest"+a];if(!c||!u){var l=0,f=0,p=[];c=function(e){if(0===p.length){var t=n(),r=Math.max(0,16.666666666666668-(t-l));l=r+t,setTimeout((function(){var e=p.slice(0);p.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(l)}catch(r){setTimeout((function(){throw r}),0)}}),Math.round(r))}return p.push({handle:++f,callback:e,cancelled:!1}),f},u=function(e){for(var t=0;t<p.length;t++)p[t].handle===e&&(p[t].cancelled=!0)}}e.exports=function(e){return c.call(i,e)},e.exports.cancel=function(){u.apply(i,arguments)},e.exports.polyfill=function(e){e||(e=i),e.requestAnimationFrame=c,e.cancelAnimationFrame=u}},50310:function(e,t,r){"use strict";r.d(t,{XQ:function(){return i},Un:function(){return o},Qc:function(){return a}});var n=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(c){i={error:c}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},i=function(e){return e.split(/ ?; ?/).reduce((function(e,t){var r=n(t.split(/ ?: ?/),2),i=r[0],o=r[1];return i&&o&&(e[i.replace(/-(\w)/g,(function(e,t){return t.toUpperCase()}))]=Number.isNaN(Number(o))?o:Number(o)),e}),{})},o=["br","col","colgroup","dl","hr","iframe","img","input","link","menuitem","meta","ol","param","select","table","tbody","tfoot","thead","tr","ul","wbr"],a={"accept-charset":"acceptCharset",acceptcharset:"acceptCharset",accesskey:"accessKey",allowfullscreen:"allowFullScreen",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classID",classname:"className",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",controlslist:"controlsList",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",datetime:"dateTime",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",enctype:"encType",for:"htmlFor",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",innerhtml:"innerHTML",inputmode:"inputMode",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",marginwidth:"marginWidth",marginheight:"marginHeight",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",nomodule:"noModule",novalidate:"noValidate",playsinline:"playsInline",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",typemustmatch:"typeMustMatch",usemap:"useMap",accentheight:"accentHeight","accent-height":"accentHeight",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",arabicform:"arabicForm","arabic-form":"arabicForm",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",diffuseconstant:"diffuseConstant",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",edgemode:"edgeMode",enablebackground:"enableBackground","enable-background":"enableBackground",externalresourcesrequired:"externalResourcesRequired",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",imagerendering:"imageRendering","image-rendering":"imageRendering",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",vmathematical:"vMathematical","v-mathematical":"vMathematical",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan",onblur:"onBlur",onchange:"onChange",onclick:"onClick",oncontextmenu:"onContextMenu",ondoubleclick:"onDoubleClick",ondrag:"onDrag",ondragend:"onDragEnd",ondragenter:"onDragEnter",ondragexit:"onDragExit",ondragleave:"onDragLeave",ondragover:"onDragOver",ondragstart:"onDragStart",ondrop:"onDrop",onerror:"onError",onfocus:"onFocus",oninput:"onInput",oninvalid:"onInvalid",onkeydown:"onKeyDown",onkeypress:"onKeyPress",onkeyup:"onKeyUp",onload:"onLoad",onmousedown:"onMouseDown",onmouseenter:"onMouseEnter",onmouseleave:"onMouseLeave",onmousemove:"onMouseMove",onmouseout:"onMouseOut",onmouseover:"onMouseOver",onmouseup:"onMouseUp",onscroll:"onScroll",onsubmit:"onSubmit",ontouchcancel:"onTouchCancel",ontouchend:"onTouchEnd",ontouchmove:"onTouchMove",ontouchstart:"onTouchStart",onwheel:"onWheel"}},88041:function(e,t,r){"use strict";r.d(t,{ZP:function(){return s}});var n=r(89526),i=r(50310),o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},a=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(c){i={error:c}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},c=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(a(arguments[t]));return e};function u(e,t){var r;if(void 0===t&&(t={}),!(e&&e instanceof Node))return null;var a,s=t.actions,l=void 0===s?[]:s,f=t.index,p=void 0===f?0:f,d=t.level,h=void 0===d?0:d,m=e,v=h+"-"+p,y=[];if(Array.isArray(l)&&l.forEach((function(t){t.condition(m,v,h)&&("function"==typeof t.pre&&((m=t.pre(m,v,h))instanceof Node||(m=e)),"function"==typeof t.post&&y.push(t.post(m,v,h)))})),y.length)return y;switch(m.nodeType){case 1:return n.createElement((a=m.nodeName,/[a-z]+[A-Z]+[a-z]+/.test(a)?a:a.toLowerCase()),function(e,t){var r={key:t};if(e instanceof Element){var n=e.getAttribute("class");n&&(r.className=n),c(e.attributes).forEach((function(e){switch(e.name){case"class":break;case"style":r[e.name]=(0,i.XQ)(e.value);break;case"allowfullscreen":case"allowpaymentrequest":case"async":case"autofocus":case"autoplay":case"checked":case"controls":case"default":case"defer":case"disabled":case"formnovalidate":case"hidden":case"ismap":case"itemscope":case"loop":case"multiple":case"muted":case"nomodule":case"novalidate":case"open":case"readonly":case"required":case"reversed":case"selected":case"typemustmatch":r[i.Qc[e.name]||e.name]=!0;break;default:r[i.Qc[e.name]||e.name]=e.value}}))}return r}(m,v),function(e,t,r){var n=c(e).map((function(e,n){return u(e,o(o({},r),{index:n,level:t+1}))})).filter(Boolean);return n.length?n:null}(m.childNodes,h,t));case 3:var g=(null===(r=m.nodeValue)||void 0===r?void 0:r.toString())||"";if(/^\s+$/.test(g)&&!/[\u202F\u00A0]/.test(g))return null;if(!m.parentNode)return g;var b=m.parentNode.nodeName.toLowerCase();return-1!==i.Un.indexOf(b)?(/\S/.test(g)&&console.warn("A textNode is not allowed inside '"+b+"'. Your text \""+g+'" will be ignored'),null):g;case 8:default:return null}}function s(e,t){return void 0===t&&(t={}),"string"==typeof e?function(e,t){if(void 0===t&&(t={}),!e||"string"!=typeof e)return null;var r=t.nodeOnly,n=void 0!==r&&r,i=t.selector,o=void 0===i?"body > *":i,a=t.type,c=void 0===a?"text/html":a;try{var s=(new DOMParser).parseFromString(e,c).querySelector(o);if(!(s instanceof Node))throw new Error("Error parsing input");return n?s:u(s,t)}catch(l){}return null}(e,t):e instanceof Node?u(e,t):null}},8126:function(e,t,r){"use strict";r.d(t,{Q_:function(){return i},Nq:function(){return o},Q6:function(){return a},O1:function(){return c}});var n=r(37941),i={FAILED:"failed",LOADED:"loaded",LOADING:"loading",PENDING:"pending",READY:"ready",UNSUPPORTED:"unsupported"};function o(){return n.canUseDOM}function a(){return function(){if(!document)return!1;var e=document.createElement("div");return e.innerHTML="<svg />",!!e.firstChild&&"http://www.w3.org/2000/svg"===e.firstChild.namespaceURI}()&&"undefined"!=typeof window&&null!==window}function c(e){for(var t,r="abcdefghijklmnopqrstuvwxyz",n=""+r+r.toUpperCase()+"1234567890",i="",o=0;o<e;o++)i+=(t=n)[Math.floor(Math.random()*t.length)];return i}},49092:function(e,t,r){"use strict";var n,i=r(89526),o=r(88041),a=r(8126),c=(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(){return(u=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},s=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r},l=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(c){i={error:c}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},f=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(l(arguments[t]));return e},p=Object.create(null),d=function(e){function t(t){var r=e.call(this,t)||this;return r.isActive=!1,r.handleCacheQueue=function(e){"string"!=typeof e?r.handleError(e):r.handleLoad(e)},r.handleLoad=function(e){r.isActive&&r.setState({content:e,status:a.Q_.LOADED},r.getElement)},r.handleError=function(e){var t=r.props.onError,n="Browser does not support SVG"===e.message?a.Q_.UNSUPPORTED:a.Q_.FAILED;r.isActive&&r.setState({status:n},(function(){"function"==typeof t&&t(e)}))},r.request=function(){var e=r.props,t=e.cacheRequests,n=e.src;try{return t&&(p[n]={content:"",status:a.Q_.LOADING,queue:[]}),fetch(n).then((function(e){var t=e.headers.get("content-type"),r=l((t||"").split(/ ?; ?/),1)[0];if(e.status>299)throw new Error("Not found");if(!["image/svg+xml","text/plain"].some((function(e){return r.indexOf(e)>=0})))throw new Error("Content type isn't valid: "+r);return e.text()})).then((function(e){if(r.handleLoad(e),t){var i=p[n];i&&(i.content=e,i.status=a.Q_.LOADED,i.queue=i.queue.filter((function(t){return t(e),!1})))}})).catch((function(e){if(r.handleError(e),t){var i=p[n];i&&(i.queue.forEach((function(t){t(e)})),delete p[n])}}))}catch(i){return r.handleError(new Error(i.message))}},r.state={content:"",element:null,hasCache:!!t.cacheRequests&&!!p[t.src],status:a.Q_.PENDING},r.hash=t.uniqueHash||(0,a.O1)(8),r}return c(t,e),t.prototype.componentDidMount=function(){if(this.isActive=!0,(0,a.Nq)()){var e=this.state.status,t=this.props.src;try{if(e===a.Q_.PENDING){if(!(0,a.Q6)())throw new Error("Browser does not support SVG");if(!t)throw new Error("Missing src");this.load()}}catch(r){this.handleError(r)}}},t.prototype.componentDidUpdate=function(e,t){if((0,a.Nq)()){var r=this.state,n=r.hasCache,i=r.status,o=this.props,c=o.onLoad,u=o.src;if(t.status!==a.Q_.READY&&i===a.Q_.READY&&c&&c(u,n),e.src!==u){if(!u)return void this.handleError(new Error("Missing src"));this.load()}}},t.prototype.componentWillUnmount=function(){this.isActive=!1},t.prototype.processSVG=function(){var e=this.state.content,t=this.props.preProcessor;return t?t(e):e},t.prototype.updateSVGAttributes=function(e){var t=this,r=this.props,n=r.baseURL,i=void 0===n?"":n,o=r.uniquifyIDs,a=["id","href","xlink:href","xlink:role","xlink:arcrole"],c=["href","xlink:href"];return o?(f(e.children).map((function(e){if(e.attributes&&e.attributes.length){var r=Object.values(e.attributes).map((function(e){var r=e,n=e.value.match(/url\((.*?)\)/);return n&&n[1]&&(r.value=e.value.replace(n[0],"url("+i+n[1]+"__"+t.hash+")")),r}));a.forEach((function(e){var n,i,o=r.find((function(t){return t.name===e}));!o||(n=e,i=o.value,c.indexOf(n)>=0&&i&&i.indexOf("#")<0)||(o.value=o.value+"__"+t.hash)}))}return e.children.length?t.updateSVGAttributes(e):e})),e):e},t.prototype.getNode=function(){var e=this.props,t=e.description,r=e.title;try{var n=this.processSVG(),i=(0,o.ZP)(n,{nodeOnly:!0});if(!(i&&i instanceof SVGSVGElement))throw new Error("Could not convert the src to a DOM Node");var a=this.updateSVGAttributes(i);if(t){var c=a.querySelector("desc");c&&c.parentNode&&c.parentNode.removeChild(c);var u=document.createElement("desc");u.innerHTML=t,a.prepend(u)}if(r){var s=a.querySelector("title");s&&s.parentNode&&s.parentNode.removeChild(s);var l=document.createElement("title");l.innerHTML=r,a.prepend(l)}return a}catch(f){return this.handleError(f)}},t.prototype.getElement=function(){try{var e=this.getNode(),t=(0,o.ZP)(e);if(!t||!i.isValidElement(t))throw new Error("Could not convert the src to a React element");this.setState({element:t,status:a.Q_.READY})}catch(r){this.handleError(new Error(r.message))}},t.prototype.load=function(){var e=this;this.isActive&&this.setState({content:"",element:null,status:a.Q_.LOADING},(function(){var t=e.props,r=t.cacheRequests,n=t.src,i=r&&p[n];if(i)i.status===a.Q_.LOADING?i.queue.push(e.handleCacheQueue):i.status===a.Q_.LOADED&&e.handleLoad(i.content);else{var o,c=n.match(/data:image\/svg[^,]*?(;base64)?,(.*)/);c?o=c[1]?atob(c[2]):decodeURIComponent(c[2]):n.indexOf("<svg")>=0&&(o=n),o?e.handleLoad(o):e.request()}}))},t.prototype.render=function(){var e=this.state,t=e.element,r=e.status,n=this.props,o=(n.baseURL,n.cacheRequests,n.children),c=void 0===o?null:o,l=(n.description,n.innerRef),f=n.loader,p=void 0===f?null:f,d=(n.onError,n.onLoad,n.preProcessor,n.src,n.title,n.uniqueHash,n.uniquifyIDs,s(n,["baseURL","cacheRequests","children","description","innerRef","loader","onError","onLoad","preProcessor","src","title","uniqueHash","uniquifyIDs"]));return(0,a.Nq)()?t?i.cloneElement(t,u({ref:l},d)):[a.Q_.UNSUPPORTED,a.Q_.FAILED].indexOf(r)>-1?c:p:p},t.defaultProps={cacheRequests:!0,uniquifyIDs:!1},t}(i.PureComponent);t.Z=d},19018:function(e,t,r){"use strict";function n(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function i(e){this.setState(function(t){var r=this.constructor.getDerivedStateFromProps(e,t);return null!=r?r:null}.bind(this))}function o(e,t){try{var r=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var r=null,a=null,c=null;if("function"==typeof t.componentWillMount?r="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(r="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?c="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(c="UNSAFE_componentWillUpdate"),null!==r||null!==a||null!==c){var u=e.displayName||e.name,s="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+u+" uses "+s+" but also contains the following legacy lifecycles:"+(null!==r?"\n "+r:"")+(null!==a?"\n "+a:"")+(null!==c?"\n "+c:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=n,t.componentWillReceiveProps=i),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=o;var l=t.componentDidUpdate;t.componentDidUpdate=function(e,t,r){var n=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:r;l.call(this,e,t,n)}}return e}r.r(t),r.d(t,{polyfill:function(){return a}}),n.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},81668:function(e,t,r){"use strict";var n=r(7402),i=r(89526),o=r(73961),a=r(18492),c=r(7362);function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function s(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var l=u(n),f=s(i),p=u(a),d=u(c),h=function(e,t){return(h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function m(e,t){function r(){this.constructor=e}h(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var v=function(){return(v=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function y(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}var g=function(e,t,r,n){switch(t){case"debounce":return p.default(e,r,n);case"throttle":return d.default(e,r,n);default:return e}},b=function(e){return"function"==typeof e},w=function(){return"undefined"==typeof window},x=function(e){return e instanceof Element||e instanceof HTMLDocument},E=function(e,t,r,n){return function(i){var o=i.width,a=i.height;t((function(t){return t.width===o&&t.height===a||t.width===o&&!n||t.height===a&&!r?t:(e&&b(e)&&e(o,a),{width:o,height:a})}))}},I=function(e){function t(t){var r=e.call(this,t)||this;r.cancelHandler=function(){r.resizeHandler&&r.resizeHandler.cancel&&(r.resizeHandler.cancel(),r.resizeHandler=null)},r.attachObserver=function(){var e=r.props,t=e.targetRef,n=e.observerOptions;if(!w()){t&&t.current&&(r.targetRef.current=t.current);var i=r.getElement();i&&(r.observableElement&&r.observableElement===i||(r.observableElement=i,r.resizeObserver.observe(i,n)))}},r.getElement=function(){var e=r.props,t=e.querySelector,n=e.targetDomEl;if(w())return null;if(t)return document.querySelector(t);if(n&&x(n))return n;if(r.targetRef&&x(r.targetRef.current))return r.targetRef.current;var i=o.findDOMNode(r);if(!i)return null;switch(r.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return i;default:return i.parentElement}},r.createResizeHandler=function(e){var t=r.props,n=t.handleWidth,i=void 0===n||n,o=t.handleHeight,a=void 0===o||o,c=t.onResize;if(i||a){var u=E(c,r.setState.bind(r),i,a);e.forEach((function(e){var t=e&&e.contentRect||{},n=t.width,i=t.height;!r.skipOnMount&&!w()&&u({width:n,height:i}),r.skipOnMount=!1}))}},r.getRenderType=function(){var e=r.props,t=e.render,n=e.children;return b(t)?"renderProp":b(n)?"childFunction":i.isValidElement(n)?"child":Array.isArray(n)?"childArray":"parent"};var n=t.skipOnMount,a=t.refreshMode,c=t.refreshRate,u=void 0===c?1e3:c,s=t.refreshOptions;return r.state={width:void 0,height:void 0},r.skipOnMount=n,r.targetRef=i.createRef(),r.observableElement=null,w()||(r.resizeHandler=g(r.createResizeHandler,a,u,s),r.resizeObserver=new l.default(r.resizeHandler)),r}return m(t,e),t.prototype.componentDidMount=function(){this.attachObserver()},t.prototype.componentDidUpdate=function(){this.attachObserver()},t.prototype.componentWillUnmount=function(){w()||(this.resizeObserver.disconnect(),this.cancelHandler())},t.prototype.render=function(){var e,t=this.props,r=t.render,n=t.children,o=t.nodeType,a=void 0===o?"div":o,c=this.state,u={width:c.width,height:c.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return r&&r(u);case"childFunction":return(e=n)(u);case"child":if((e=n).type&&"string"==typeof e.type){var s=y(u,["targetRef"]);return i.cloneElement(e,s)}return i.cloneElement(e,u);case"childArray":return(e=n).map((function(e){return!!e&&i.cloneElement(e,u)}));default:return f.createElement(a,null)}},t}(i.PureComponent);var S=w()?i.useEffect:i.useLayoutEffect;t.ZP=I},83314:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},58296:function(e,t,r){"use strict";var n=r(83314);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,i.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var i=n(r(7459));e.exports=t.default},7459:function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},51793:function(e){"use strict";function t(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,r){e.classList?e.classList.remove(r):"string"==typeof e.className?e.className=t(e.className,r):e.setAttribute("class",t(e.className&&e.className.baseVal||"",r))}},30062:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;!function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}t.default=e}(r(2652));var n=c(r(58296)),i=c(r(51793)),o=c(r(89526)),a=c(r(30488));r(25160);function c(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var s=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,n.default)(e,t)}))},l=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,i.default)(e,t)}))},f=function(e){var t,r;function n(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this).onEnter=function(e,r){var n=t.getClassNames(r?"appear":"enter").className;t.removeClasses(e,"exit"),s(e,n),t.props.onEnter&&t.props.onEnter(e,r)},t.onEntering=function(e,r){var n=t.getClassNames(r?"appear":"enter").activeClassName;t.reflowAndAddClass(e,n),t.props.onEntering&&t.props.onEntering(e,r)},t.onEntered=function(e,r){var n=t.getClassNames("appear").doneClassName,i=t.getClassNames("enter").doneClassName,o=r?n+" "+i:i;t.removeClasses(e,r?"appear":"enter"),s(e,o),t.props.onEntered&&t.props.onEntered(e,r)},t.onExit=function(e){var r=t.getClassNames("exit").className;t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),s(e,r),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var r=t.getClassNames("exit").activeClassName;t.reflowAndAddClass(e,r),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var r=t.getClassNames("exit").doneClassName;t.removeClasses(e,"exit"),s(e,r),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var r=t.props.classNames,n="string"==typeof r,i=n?(n&&r?r+"-":"")+e:r[e];return{className:i,activeClassName:n?i+"-active":r[e+"Active"],doneClassName:n?i+"-done":r[e+"Done"]}},t}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var i=n.prototype;return i.removeClasses=function(e,t){var r=this.getClassNames(t),n=r.className,i=r.activeClassName,o=r.doneClassName;n&&l(e,n),i&&l(e,i),o&&l(e,o)},i.reflowAndAddClass=function(e,t){t&&(e&&e.scrollTop,s(e,t))},i.render=function(){var e=u({},this.props);return delete e.classNames,o.default.createElement(a.default,u({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},n}(o.default.Component);f.defaultProps={classNames:""},f.propTypes={};var p=f;t.default=p,e.exports=t.default},43951:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;a(r(2652));var n=a(r(89526)),i=r(73961),o=a(r(42609));function a(e){return e&&e.__esModule?e:{default:e}}var c=function(e){var t,r;function a(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this).handleEnter=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onEnter",0,r)},t.handleEntering=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onEntering",0,r)},t.handleEntered=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onEntered",0,r)},t.handleExit=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onExit",1,r)},t.handleExiting=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onExiting",1,r)},t.handleExited=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onExited",1,r)},t}r=e,(t=a).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var c=a.prototype;return c.handleLifecycle=function(e,t,r){var o,a=this.props.children,c=n.default.Children.toArray(a)[t];c.props[e]&&(o=c.props)[e].apply(o,r),this.props[e]&&this.props[e]((0,i.findDOMNode)(this))},c.render=function(){var e=this.props,t=e.children,r=e.in,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,["children","in"]),a=n.default.Children.toArray(t),c=a[0],u=a[1];return delete i.onEnter,delete i.onEntering,delete i.onEntered,delete i.onExit,delete i.onExiting,delete i.onExited,n.default.createElement(o.default,i,r?n.default.cloneElement(c,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):n.default.cloneElement(u,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},a}(n.default.Component);c.propTypes={};var u=c;t.default=u,e.exports=t.default},30488:function(e,t,r){"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(2652)),i=c(r(89526)),o=c(r(73961)),a=r(19018);r(25160);function c(e){return e&&e.__esModule?e:{default:e}}var u="unmounted";t.UNMOUNTED=u;var s="exited";t.EXITED=s;var l="entering";t.ENTERING=l;var f="entered";t.ENTERED=f;var p="exiting";t.EXITING=p;var d=function(e){var t,r;function n(t,r){var n;n=e.call(this,t,r)||this;var i,o=r.transitionGroup,a=o&&!o.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?a?(i=s,n.appearStatus=l):i=f:i=t.unmountOnExit||t.mountOnEnter?u:s,n.state={status:i},n.nextCallback=null,n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var a=n.prototype;return a.getChildContext=function(){return{transitionGroup:null}},n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===u?{status:s}:null},a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==l&&r!==f&&(t=l):r!==l&&r!==f||(t=p)}this.updateStatus(!1,t)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},a.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var r=o.default.findDOMNode(this);t===l?this.performEnter(r,e):this.performExit(r)}else this.props.unmountOnExit&&this.state.status===s&&this.setState({status:u})},a.performEnter=function(e,t){var r=this,n=this.props.enter,i=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,o=this.getTimeouts(),a=i?o.appear:o.enter;t||n?(this.props.onEnter(e,i),this.safeSetState({status:l},(function(){r.props.onEntering(e,i),r.onTransitionEnd(e,a,(function(){r.safeSetState({status:f},(function(){r.props.onEntered(e,i)}))}))}))):this.safeSetState({status:f},(function(){r.props.onEntered(e)}))},a.performExit=function(e){var t=this,r=this.props.exit,n=this.getTimeouts();r?(this.props.onExit(e),this.safeSetState({status:p},(function(){t.props.onExiting(e),t.onTransitionEnd(e,n.exit,(function(){t.safeSetState({status:s},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:s},(function(){t.props.onExited(e)}))},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},a.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},a.onTransitionEnd=function(e,t,r){this.setNextCallback(r);var n=null==t&&!this.props.addEndListener;e&&!n?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},a.render=function(){var e=this.state.status;if(e===u)return null;var t=this.props,r=t.children,n=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(t,["children"]);if(delete n.in,delete n.mountOnEnter,delete n.unmountOnExit,delete n.appear,delete n.enter,delete n.exit,delete n.timeout,delete n.addEndListener,delete n.onEnter,delete n.onEntering,delete n.onEntered,delete n.onExit,delete n.onExiting,delete n.onExited,"function"==typeof r)return r(e,n);var o=i.default.Children.only(r);return i.default.cloneElement(o,n)},n}(i.default.Component);function h(){}d.contextTypes={transitionGroup:n.object},d.childContextTypes={transitionGroup:function(){}},d.propTypes={},d.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},d.UNMOUNTED=0,d.EXITED=1,d.ENTERING=2,d.ENTERED=3,d.EXITING=4;var m=(0,a.polyfill)(d);t.default=m},42609:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=c(r(2652)),i=c(r(89526)),o=r(19018),a=r(44177);function c(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var l=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},f=function(e){var t,r;function n(t,r){var n,i=(n=e.call(this,t,r)||this).handleExited.bind(s(s(n)));return n.state={handleExited:i,firstRender:!0},n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},o.componentDidMount=function(){this.appeared=!0,this.mounted=!0},o.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(e,t){var r=t.children,n=t.handleExited;return{children:t.firstRender?(0,a.getInitialChildMapping)(e,n):(0,a.getNextChildMapping)(e,r,n),firstRender:!1}},o.handleExited=function(e,t){var r=(0,a.getChildMapping)(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=u({},t.children);return delete r[e.key],{children:r}})))},o.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,["component","childFactory"]),o=l(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?o:i.default.createElement(t,n,o)},n}(i.default.Component);f.childContextTypes={transitionGroup:n.default.object.isRequired},f.propTypes={},f.defaultProps={component:"div",childFactory:function(e){return e}};var p=(0,o.polyfill)(f);t.default=p,e.exports=t.default},33092:function(e,t,r){"use strict";var n=c(r(30062)),i=c(r(43951)),o=c(r(42609)),a=c(r(30488));function c(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:a.default,TransitionGroup:o.default,ReplaceTransition:i.default,CSSTransition:n.default}},44177:function(e,t,r){"use strict";t.__esModule=!0,t.getChildMapping=i,t.mergeChildMappings=o,t.getInitialChildMapping=function(e,t){return i(e.children,(function(r){return(0,n.cloneElement)(r,{onExited:t.bind(null,r),in:!0,appear:a(r,"appear",e),enter:a(r,"enter",e),exit:a(r,"exit",e)})}))},t.getNextChildMapping=function(e,t,r){var c=i(e.children),u=o(t,c);return Object.keys(u).forEach((function(i){var o=u[i];if((0,n.isValidElement)(o)){var s=i in t,l=i in c,f=t[i],p=(0,n.isValidElement)(f)&&!f.props.in;!l||s&&!p?l||!s||p?l&&s&&(0,n.isValidElement)(f)&&(u[i]=(0,n.cloneElement)(o,{onExited:r.bind(null,o),in:f.props.in,exit:a(o,"exit",e),enter:a(o,"enter",e)})):u[i]=(0,n.cloneElement)(o,{in:!1}):u[i]=(0,n.cloneElement)(o,{onExited:r.bind(null,o),in:!0,exit:a(o,"exit",e),enter:a(o,"enter",e)})}})),u};var n=r(89526);function i(e,t){var r=Object.create(null);return e&&n.Children.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&(0,n.isValidElement)(e)?t(e):e}(e)})),r}function o(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var c={};for(var u in t){if(i[u])for(n=0;n<i[u].length;n++){var s=i[u][n];c[i[u][n]]=r(s)}c[u]=r(u)}for(n=0;n<o.length;n++)c[o[n]]=r(o[n]);return c}function a(e,t,r){return null!=r[t]?r[t]:e.props[t]}},25160:function(e,t,r){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var n;(n=r(2652))&&n.__esModule;t.timeoutsShape=null;t.classNamesShape=null},47750:function(e,t,r){"use strict";var n,i=r(33992),o=(n=i)&&n.__esModule?n:{default:n};Number.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},t.Z=o.default},33992:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=c(r(89526)),o=c(r(2652)),a=c(r(10));function c(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var l=function(e){function t(){var e,r,n;u(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=n=s(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),n.state={highestStarHovered:-1/0},n.fillId="starGrad"+Math.random().toFixed(15).slice(2),n.hoverOverStar=function(e){return function(){n.setState({highestStarHovered:e})}},n.unHoverOverStar=function(){n.setState({highestStarHovered:-1/0})},s(n,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"stopColorStyle",value:function(e){var t={stopColor:e,stopOpacity:"1"};return this.props.ignoreInlineStyles?{}:t}},{key:"render",value:function(){var e=this.props,t=e.starRatedColor,r=e.starEmptyColor;return i.default.createElement("div",{className:"star-ratings",title:this.titleText,style:this.starRatingsStyle},i.default.createElement("svg",{className:"star-grad",style:this.starGradientStyle},i.default.createElement("defs",null,i.default.createElement("linearGradient",{id:this.fillId,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},i.default.createElement("stop",{offset:"0%",className:"stop-color-first",style:this.stopColorStyle(t)}),i.default.createElement("stop",{offset:this.offsetValue,className:"stop-color-first",style:this.stopColorStyle(t)}),i.default.createElement("stop",{offset:this.offsetValue,className:"stop-color-final",style:this.stopColorStyle(r)}),i.default.createElement("stop",{offset:"100%",className:"stop-color-final",style:this.stopColorStyle(r)})))),this.renderStars)}},{key:"starRatingsStyle",get:function(){return this.props.ignoreInlineStyles?{}:{position:"relative",boxSizing:"border-box",display:"inline-block"}}},{key:"starGradientStyle",get:function(){return this.props.ignoreInlineStyles?{}:{position:"absolute",zIndex:"0",width:"0",height:"0",visibility:"hidden"}}},{key:"titleText",get:function(){var e=this.props,t=e.typeOfWidget,r=e.rating,n=this.state.highestStarHovered,i=n>0?n:r,o=parseFloat(i.toFixed(2)).toString();Number.isInteger(i)&&(o=String(i));var a=t+"s";return"1"===o&&(a=t),o+" "+a}},{key:"offsetValue",get:function(){var e=this.props.rating,t="0%";Number.isInteger(e)||(t=e.toFixed(2).split(".")[1].slice(0,2)+"%");return t}},{key:"renderStars",get:function(){var e=this,t=this.props,r=t.changeRating,n=t.rating,o=t.numberOfStars,c=t.starDimension,u=t.starSpacing,s=t.starRatedColor,l=t.starEmptyColor,f=t.starHoverColor,p=t.gradientPathName,d=t.ignoreInlineStyles,h=t.svgIconPath,m=t.svgIconViewBox,v=t.name,y=this.state.highestStarHovered;return Array.apply(null,Array(o)).map((function(t,g){var b=g+1,w=b<=n,x=y>0,E=b<=y,I=b===y,S=b>n&&b-1<n,M=1===b,O=b===o;return i.default.createElement(a.default,{key:b,fillId:e.fillId,changeRating:r?function(){return r(b,v)}:null,hoverOverStar:r?e.hoverOverStar(b):null,unHoverOverStar:r?e.unHoverOverStar:null,isStarred:w,isPartiallyFullStar:S,isHovered:E,hoverMode:x,isCurrentHoveredStar:I,isFirstStar:M,isLastStar:O,starDimension:c,starSpacing:u,starHoverColor:f,starRatedColor:s,starEmptyColor:l,gradientPathName:p,ignoreInlineStyles:d,svgIconPath:h,svgIconViewBox:m})}))}}]),t}(i.default.Component);l.propTypes={rating:o.default.number.isRequired,numberOfStars:o.default.number.isRequired,changeRating:o.default.func,starHoverColor:o.default.string.isRequired,starRatedColor:o.default.string.isRequired,starEmptyColor:o.default.string.isRequired,starDimension:o.default.string.isRequired,starSpacing:o.default.string.isRequired,gradientPathName:o.default.string.isRequired,ignoreInlineStyles:o.default.bool.isRequired,svgIconPath:o.default.string.isRequired,svgIconViewBox:o.default.string.isRequired,name:o.default.string},l.defaultProps={rating:0,typeOfWidget:"Star",numberOfStars:5,changeRating:null,starHoverColor:"rgb(230, 67, 47)",starRatedColor:"rgb(109, 122, 130)",starEmptyColor:"rgb(203, 211, 227)",starDimension:"50px",starSpacing:"7px",gradientPathName:"",ignoreInlineStyles:!1,svgIconPath:"m25,1 6,17h18l-14,11 5,17-15-10-15,10 5-17-14-11h18z",svgIconViewBox:"0 0 51 48"},t.default=l},10:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=c(r(89526)),o=c(r(60204)),a=c(r(2652));function c(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var l=function(e){function t(){return u(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"render",value:function(){var e=this.props,t=e.changeRating,r=e.hoverOverStar,n=e.unHoverOverStar,o=e.svgIconViewBox,a=e.svgIconPath;return i.default.createElement("div",{className:"star-container",style:this.starContainerStyle,onMouseEnter:r,onMouseLeave:n,onClick:t},i.default.createElement("svg",{viewBox:o,className:this.starClasses,style:this.starSvgStyle},i.default.createElement("path",{className:"star",style:this.pathStyle,d:a})))}},{key:"starContainerStyle",get:function(){var e=this.props,t=e.changeRating,r=e.starSpacing,n=e.isFirstStar,i=e.isLastStar;return e.ignoreInlineStyles?{}:{position:"relative",display:"inline-block",verticalAlign:"middle",paddingLeft:n?void 0:r,paddingRight:i?void 0:r,cursor:t?"pointer":void 0}}},{key:"starSvgStyle",get:function(){var e=this.props,t=e.ignoreInlineStyles,r=e.isCurrentHoveredStar,n=e.starDimension;return t?{}:{width:n,height:n,transition:"transform .2s ease-in-out",transform:r?"scale(1.1)":void 0}}},{key:"pathStyle",get:function(){var e=this.props,t=e.isStarred,r=e.isPartiallyFullStar,n=e.isHovered,i=e.hoverMode,o=e.starEmptyColor,a=e.starRatedColor,c=e.starHoverColor,u=e.gradientPathName,s=e.fillId,l=void 0;return l=i?n?c:o:r?"url('"+u+"#"+s+"')":t?a:o,e.ignoreInlineStyles?{}:{fill:l,transition:"fill .2s ease-in-out"}}},{key:"starClasses",get:function(){var e=this.props,t=e.isSelected,r=e.isPartiallyFullStar,n=e.isHovered,i=e.isCurrentHoveredStar,a=e.ignoreInlineStyles,c=(0,o.default)({"widget-svg":!0,"widget-selected":t,"multi-widget-selected":r,hovered:n,"current-hovered":i});return a?{}:c}}]),t}(i.default.Component);l.propTypes={fillId:a.default.string.isRequired,changeRating:a.default.func,hoverOverStar:a.default.func,unHoverOverStar:a.default.func,isStarred:a.default.bool.isRequired,isPartiallyFullStar:a.default.bool.isRequired,isHovered:a.default.bool.isRequired,hoverMode:a.default.bool.isRequired,isCurrentHoveredStar:a.default.bool.isRequired,isFirstStar:a.default.bool.isRequired,isLastStar:a.default.bool.isRequired,starDimension:a.default.string.isRequired,starSpacing:a.default.string.isRequired,starHoverColor:a.default.string.isRequired,starRatedColor:a.default.string.isRequired,starEmptyColor:a.default.string.isRequired,gradientPathName:a.default.string.isRequired,ignoreInlineStyles:a.default.bool.isRequired,svgIconPath:a.default.string.isRequired,svgIconViewBox:a.default.string.isRequired},t.default=l},60204:function(e,t){var r;
37
  /*!
38
  Copyright (c) 2018 Jed Watson.
39
  Licensed under the MIT License (MIT), see
1
+ var WPRecipeMaker;(WPRecipeMaker=void 0===WPRecipeMaker?{}:WPRecipeMaker)["wp-recipe-maker/dist/admin-dashboard"]=(self.webpackChunkWPRecipeMaker_name_=self.webpackChunkWPRecipeMaker_name_||[]).push([[752],{81162:function(e,t,r){"use strict";r.r(t);var n={};r.r(n),r.d(n,{scaleBand:function(){return Ka},scaleDiverging:function(){return Np},scaleDivergingLog:function(){return Pp},scaleDivergingPow:function(){return Lp},scaleDivergingSqrt:function(){return Rp},scaleDivergingSymlog:function(){return Cp},scaleIdentity:function(){return ms},scaleImplicit:function(){return Qa},scaleLinear:function(){return hs},scaleLog:function(){return Ss},scaleOrdinal:function(){return $a},scalePoint:function(){return tc},scalePow:function(){return Ns},scaleQuantile:function(){return qs},scaleQuantize:function(){return Zs},scaleRadial:function(){return Rs},scaleSequential:function(){return Mp},scaleSequentialLog:function(){return Op},scaleSequentialPow:function(){return jp},scaleSequentialQuantile:function(){return Dp},scaleSequentialSqrt:function(){return Tp},scaleSequentialSymlog:function(){return kp},scaleSqrt:function(){return Ps},scaleSymlog:function(){return js},scaleThreshold:function(){return Fs},scaleTime:function(){return xp},scaleUtc:function(){return Ep},tickFormat:function(){return ps}});var i=r(73961),o=r(89526);function a(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const f={breakpointCols:void 0,className:void 0,columnClassName:void 0,children:void 0,columnAttrs:void 0,column:void 0};class p extends o.Component{constructor(e){let t;super(e),this.reCalculateColumnCount=this.reCalculateColumnCount.bind(this),this.reCalculateColumnCountDebounce=this.reCalculateColumnCountDebounce.bind(this),t=this.props.breakpointCols&&this.props.breakpointCols.default?this.props.breakpointCols.default:parseInt(this.props.breakpointCols)||2,this.state={columnCount:t}}componentDidMount(){this.reCalculateColumnCount(),window&&window.addEventListener("resize",this.reCalculateColumnCountDebounce)}componentDidUpdate(){this.reCalculateColumnCount()}componentWillUnmount(){window&&window.removeEventListener("resize",this.reCalculateColumnCountDebounce)}reCalculateColumnCountDebounce(){window&&window.requestAnimationFrame?(window.cancelAnimationFrame&&window.cancelAnimationFrame(this._lastRecalculateAnimationFrame),this._lastRecalculateAnimationFrame=window.requestAnimationFrame((()=>{this.reCalculateColumnCount()}))):this.reCalculateColumnCount()}reCalculateColumnCount(){const e=window&&window.innerWidth||1/0;let t=this.props.breakpointCols;"object"!=typeof t&&(t={default:parseInt(t)||2});let r=1/0,n=t.default||2;for(let i in t){const o=parseInt(i);o>0&&e<=o&&o<r&&(r=o,n=t[i])}n=Math.max(1,parseInt(n)||1),this.state.columnCount!==n&&this.setState({columnCount:n})}itemsInColumns(){const e=this.state.columnCount,t=new Array(e),r=o.Children.toArray(this.props.children);for(let n=0;n<r.length;n++){const i=n%e;t[i]||(t[i]=[]),t[i].push(r[n])}return t}renderColumns(){const{column:e,columnAttrs:t={},columnClassName:r}=this.props,n=this.itemsInColumns(),i=100/n.length+"%";let a=r;a&&"string"!=typeof a&&(this.logDeprecated('The property "columnClassName" requires a string'),void 0===a&&(a="my-masonry-grid_column"));const u=s(s(s({},e),t),{},{style:s(s({},t.style),{},{width:i}),className:a});return n.map(((e,t)=>o.createElement("div",c({},u,{key:t}),e)))}logDeprecated(e){console.error("[Masonry]",e)}render(){const e=this.props,{children:t,breakpointCols:r,columnClassName:n,columnAttrs:i,column:u,className:s}=e,l=a(e,["children","breakpointCols","columnClassName","columnAttrs","column","className"]);let f=s;return"string"!=typeof s&&(this.logDeprecated('The property "className" requires a string'),void 0===s&&(f="my-masonry-grid")),o.createElement("div",c({},l,{className:f}),this.renderColumns())}}p.defaultProps=f;var d=p,h={default:2,1150:1},m=e=>o.createElement(d,{breakpointCols:h,className:"wprm-admin-dashboard-blocks-grid",columnClassName:"wprm-admin-dashboard-blocks-grid-column"},e.blocks.map((e=>{var t=e.block;return o.createElement(t,{key:e.id})}))),v=r(99237),y=r(52082),g=e=>o.createElement("div",{className:"wprm-admin-dashboard-block-container"},o.createElement("div",{className:"wprm-admin-dashboard-block-header"},o.createElement("div",{className:"wprm-admin-dashboard-block-header-title"},e.title),e.hasOwnProperty("button")&&o.createElement("div",{className:"wprm-admin-dashboard-block-header-button"},o.createElement("button",{className:"button button-primary",onClick:()=>{e.buttonAction()}},e.button))),o.createElement("div",{className:"wprm-admin-dashboard-block"},e.children)),b=(r(21682),"undefined"!=typeof window?function(){if(!e)var e={};var t={FONT:"font",VIEW:"view",TRANSFORM:"transform",EASING_FUNCTION:"easing-function",TRANSITION:"transition"},r={};r[t.FONT]={},r[t.VIEW]={},r[t.TRANSFORM]={},r[t.EASING_FUNCTION]={},r[t.TRANSITION]={};var n=function(e,t){if(!r[e])return null;for(var n in t)if(t.hasOwnProperty(n)){if(r[e][n])return null;r[e][n]=t[n]}},i=function(e,t,n){if(!r[e])throw"Can't add extension with type of \""+e+'", "'+e+'" is not a valid extension type. The following types are valid: '+qt(r);if(!/^[-a-z]+$/.test(t))throw"Can't add extension with name \""+t+'", "'+t+'" is contains invalid characters. Only lowercase alphabetical characters and dashes are allowed.';if(r[e][t])throw"Can't add extension with name \""+t+'", "'+t+'" is already added.';r[e][t]=n},o=function(e,t){if(!r[e])throw"Can't get extension with type of \""+e+'", "'+e+'" is not a valid extension type. The following types are available: '+qt(r);if(!r[e][t])throw"Can't get extension with name \""+t+'", "'+t+'" is not available. The following extensions are available: '+qt(r[e]);return r[e][t]},a=2628e6,c={Week:6048e5,Day:864e5,Hour:36e5,Minute:6e4,Second:1e3,Millisecond:1,Month:a,Year:31536e6},u=["Januari","Februari","March","April","May","June","July","August","September","October","November","December"];for(var s in c)if(c.hasOwnProperty(s)){var l=c[s];1===l?(c.mi=l,c.ms=l):l===a?c.M=l:c[s.charAt(0).toLowerCase()]=l,c[s.toLowerCase()]=l,c[s.toLowerCase()+"s"]=l}var f={Monday:1,Tuesday:2,Wednesday:3,Thursday:4,Friday:5,Saturday:6,Sunday:0},p={M:1,y:12},d=function(e){return e instanceof Date},h=function(e,t){var r=t-e.getDay();return e.setDate(e.getDate()+r),e},m=function(e,t){var r=E(e.getMonth()+1,e.getFullYear());return t="last"===t?r:Math.max(1,Math.min(r,t)),e.setDate(t),e},v=function(e,t){return e.setMonth(u.map((function(e){return e.toLowerCase()})).indexOf(t)),e},y=function(e){var t=6e4*(new Date).getTimezoneOffset();if("Z"===e)return t;var r=e.match(/\+|-|[\d]{2}|[\d]{2}/g);return("-"===r.shift()?-1:1)*(36e5*parseInt(r[0],10)+6e4*parseInt(r[1],10))+t},g=function(e){return new Date(Date.now()+e)},b=function(e,t){return new Date(e.getTime()+t)},w=function(e,t){return e.toDateString()===t.toDateString()},x=function(e,t){return e.getTime()===t.getTime()},E=function(e,t){return new Date(t,e,0).getDate()},I=function(e){return e.match(/(Z)|([+\-][0-9]{2}:?[0-9]*$)/g)?new Date(e):(e+=-1!==e.indexOf("T")?"Z":"",S(new Date(e)))},S=function(e){return new Date(e.getTime()+6e4*e.getTimezoneOffset())},M=function(e,t){return t.map((function(t){var r=c[t],n=Math.max(0,Math.floor(e/r));return e%=r,n}))},O=function(e,t,r){var n=t-e,i=!1;if(n<0){n=e-t;var o=[t,e];e=o[0],t=o[1],i=!0}r||(r=["d","h","m"]);var a=r.indexOf("m");a>=0&&("y"===r[a-1]||"d"===r[a+1])&&(r[a].key="M");var u=void 0,s=void 0,l=void 0,f=r.includes("y"),d=r.includes("M");(d||f)&&(u=new Date(e.valueOf()+n),s=A(u,e),l=d?Math.floor(s):12*Math.floor(s/12),n=u.valueOf()-D(T(e),l).valueOf());var h=r.map((function(e){if("y"===e||"M"===e){var t=Math.max(0,Math.floor(s/p[e]));return s-=t*p[e],t}var r=c[e],i=Math.max(0,Math.floor(n/r));return n%=r,i}));return i?h.map((function(e){return e>0?-e:e})):h},k=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if("number"==typeof t[0]&&"string"==typeof t[1]){if(!c[t[1]])throw'"'+t[1]+'" is not a valid amount.';return t[0]*c[t[1]]}return d(t[0])?O.apply(void 0,t):"number"==typeof t[0]&&Array.isArray(t[1])?M.apply(void 0,t):null},j=function(){return new Date},T=function(e){return new Date(e.valueOf())},D=function(e,t){return e.setMonth(e.getMonth()+t),e},A=function(e,t){var r=12*(t.getFullYear()-e.getFullYear())+(t.getMonth()-e.getMonth()),n=D(T(e),r);return-(r+(t-n<0?(t-n)/(n-D(T(e),r-1)):(t-n)/(D(T(e),r+1)-n)))},_=function(e){return{destroy:function(){e.destroyed=!0,e.frame&&cancelAnimationFrame(e.frame),e.styleObserver&&e.styleObserver.disconnect(),e.didResizeWindow&&window.removeEventListener("resize",e.didResizeWindow),e.root&&e.root.parentNode&&e.root.parentNode.removeChild(e.root)}}},N=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.createElement("span"),r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return e.root=t,e.aligned=null,e.destroyed=!1,t&&r&&(e.root.classList.add("tick-"+r),e.root.setAttribute("data-view",r)),t&&t.dataset.layout&&(e.align=(t.dataset.layout.match(/left|right|center/)||[])[0]||"left"),{appendTo:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"last";!e.root||e.root&&e.root.parentNode||("last"!==r?("first"===r&&(0===t.childNodes.length?t.appendChild(e.root):0===t.children.length&&t.childNodes.length?t.insertBefore(e.root,t.childNodes[t.childNodes.length-1]):t.insertBefore(e.root,t.children[0])),"string"!=typeof r&&t.insertBefore(e.root,r)):t.childNodes.length&&t.childNodes[t.childNodes.length-1].nodeType===Node.TEXT_NODE?t.insertBefore(e.root,t.childNodes[t.childNodes.length-1]):t.appendChild(e.root))}}},P=function(e,t){return e.definition=t,{setDefinition:function(t){e.definition=t}}},C=function(e,t,r,n){return{draw:function(){if(!e.dirty){if(r)r(e)&&L(e);return!1}return t(e,n),L(e),e.dirty=!1,!0}}},L=function(e){if(!e.fit){if(!e.root||!(e.root.getAttribute("data-layout")||"").match(/fit/))return void(e.fit=!1);var t=window.getComputedStyle(e.root,null);e.fit=!0,e.fitInfo={currentFontSize:parseInt(t.getPropertyValue("font-size"),10)}}e.fitInfo.availableWidth=e.root.parentNode.clientWidth,e.fitInfo.currentWidth=e.root.scrollWidth;var r=Math.min(Math.max(4,e.fitInfo.availableWidth/e.fitInfo.currentWidth*e.fitInfo.currentFontSize),1024);Math.abs(r-e.fitInfo.currentFontSize)<=1||(e.fitInfo.currentFontSize=r,e.root.style.fontSize=e.fitInfo.currentFontSize+"px")},R=function(e){return e.dirty=!0,e.value=null,e.valueUpdateCount=0,e.isInitialValue=function(){return e.valueUpdateCount<=1},{reset:function(){e.dirty=!0,e.value=null,e.valueUpdateCount=0},update:function(t){zt(e.value,t)||(e.value=t,e.valueUpdateCount++,e.dirty=!0)}}},B=function(e){e.didResizeWindow=function(){e.dirty=!0},window.addEventListener("resize",e.didResizeWindow)},U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z=(function(){function e(e){this.value=e}function t(t){var r,n;function i(r,n){try{var a=t[r](n),c=a.value;c instanceof e?Promise.resolve(c.value).then((function(e){i("next",e)}),(function(e){i("throw",e)})):o(a.done?"return":"normal",a.value)}catch(u){o("throw",u)}}function o(e,t){switch(e){case"return":r.resolve({value:t,done:!0});break;case"throw":r.reject(t);break;default:r.resolve({value:t,done:!1})}(r=r.next)?i(r.key,r.arg):n=null}this._invoke=function(e,t){return new Promise((function(o,a){var c={key:e,arg:t,resolve:o,reject:a,next:null};n?n=n.next=c:(r=n=c,i(e,t))}))},"function"!=typeof t.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),H=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),G=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},W=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)},q=function(e,t){var r=(e.definition||[]).concat();"right"===e.align&&r.reverse();var n=Array.isArray(e.value)?e.value.concat():"object"===U(e.value)?Nt(e.value):e.value;r.forEach((function(r){if(!r.presenter){if(e.update=t(r),!r.presenter)return;r.presenter.appendTo(e.root)}})),r.filter((function(e){return void 0!==e.presenter})).forEach((function(t){Array.isArray(n)&&e.valueMapping?e.update(t,"indexes"===e.valueMapping?"right"===e.align?n.pop():n.shift():n):t.key&&void 0!==n[t.key]?e.update(t,n[t.key]):e.update(t,n)})),e.views=r,Z(e)},Z=function(e){var t=!1;return e.views.filter((function(e){return void 0!==e.presenter})).forEach((function(e){e.presenter.draw()&&(t=!0)})),t},F=function(e,t,r){var n=Pt(Array.isArray(e.value)?e.value:(e.value+"").split(""));if("right"===e.align&&n.reverse(),e.definitions.length>n.length)for(;e.definitions.length>n.length;){e.definitions.pop().presenter.destroy()}n.forEach((function(r,n){var i=e.definitions[n];i||(i=e.definitions[n]=ct(e.definition),e.update=t(i),i.presenter.appendTo(e.root,"right"===e.align?"first":"last"))})),n.forEach((function(t,r){return e.update(e.definitions[r],t)})),e.views=n,V(e)},V=function(e){var t=!1;return e.views.forEach((function(r,n){e.definitions[n].presenter.draw()&&(t=!0)})),t},J="undefined"==typeof document?null:function(){for(var e=["webkit","Moz","ms","O"],t=0,r=e.length,n=document.createElement("div").style;t<r;t++)if(e[t]+"Transform"in n)return e[t];return null}(),Y=function(e,t){var r=document.createElement(e);return t&&(r.className=t),r},X=function(e,t,r){var n=new MutationObserver((function(n){t.forEach((function(i){n.filter((function(e){return t.includes(e.attributeName)})).length&&r(e.getAttribute(i))}))}));return n.observe(e,{attributes:!0}),n},Q=function(e){return e instanceof HTMLElement},$=function(e,t){e.style.transformOrigin=t},K=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";e.transforms||(e.transforms=[]);var i=e.transforms.find((function(e){return e.name===t}));i?i.value=r:e.transforms.push({name:t,value:r,unit:n}),ee(e,e.transforms)},ee=function(e,t){e.style.transform=t.map((function(e){return e.name+"("+e.value+e.unit+")"})).join(" ")},te=function(e){var t=e.getBoundingClientRect();return!(t.bottom<0)&&!(t.top>window.scrollY+window.innerHeight)},re=function(e){return e.trim()},ne={},ie=function(e,t){var r=t.toString();return ne[r]||(ne[r]={}),ne[r][e]||(ne[r][e]=t(e)),ne[r][e]},oe=new RegExp("^[0-9]+$"),ae=new RegExp("^(true|false)$"),ce=new RegExp("^[0-9.]+$"),ue=new RegExp("color"),se=new RegExp("shadow"),le=new RegExp("^(follow-gradient|horizontal-gradient|vertical-gradient)"),fe=new RegExp("^[.0-9]+(?:ms|s){1}$"),pe=new RegExp("^transition-?(?:in|out)?$"),de=new RegExp("^url\\("),he=function(e){return e?parseFloat(e)*(/ms$/.test(e)?1:1e3):0},me=function(e){return e.match(/[a-z]+(?:\(.*?\))?\s?(?:origin\(.*?\))?\s?(?:[a-z]+\(.*?\))?[ .a-z-0-9]*/g).map(ve)},ve=function(e){var t=e.match(/([a-z]+(?:\(.*?\))?)\s?(?:origin\((.*?)\))?\s?([a-z]+(?:\(.*?\))?)?\s?(?:([.0-9ms]+)?\s?(?:(ease-[a-z-]+))?\s?([.0-9ms]+)?)?/),r=vt(t[1]),n=void 0,i=void 0,o=void 0,a=void 0,c=void 0;return t.slice(2).filter((function(e){return void 0!==e})).forEach((function(e){fe.test(e)?void 0===i?i=he(e):a=he(e):/ /.test(e)?n=e:/^ease-[a-z-]+$/.test(e)?o=e:/^[a-z]+/.test(e)&&(c=vt(e))})),c&&(i=void 0,o=void 0),{name:r.name,parameters:r.parameters,duration:i,ease:o,delay:a,origin:n,resolver:c}},ye=function(e){var t=e.match(/follow-gradient|horizontal-gradient|vertical-gradient/)[0];return{type:t,colors:e.substr(t.length).match(/(?:transparent|rgb\(.*?\)|hsl\(.*?\)|hsla\(.*?\)|rgba\(.*?\)|[a-z]+|#[abcdefABCDEF\d]+)\s?(?:[\d]{1,3}%?)?/g).map(be)}},ge=/\s([\d]{1,3})%?$/,be=function(e){var t=e.match(ge);return{offset:t?parseFloat(t[1])/100:null,value:Se(e.replace(ge,""))}},we=[],xe=function(e,t){return we[e]?we[e].find((function(e){return e.node.parentNode===t})):null},Ee=function(e,t){we[e]||(we[e]=[]),we[e].push(t)},Ie="undefined"==typeof document?function(e){return 0}:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(0==e)return 0;if(r){var n=xe(r,t)||{};return n.node||(n.node=document.createElement("span"),n.node.style.cssText="position:absolute;padding:0;visibility:hidden;",t.appendChild(n.node)),n.node.style.marginTop=e,n.style||(n.style=window.getComputedStyle(n.node)),Ee(r,n),parseInt(n.style.marginTop,10)}var i=document.createElement("span");return i.style.cssText="position:absolute;padding:0;visibility:hidden;margin-top:"+e,t.appendChild(i),requestAnimationFrame((function(){i.parentNode.removeChild(i)})),parseInt(window.getComputedStyle(i).marginTop,10)},Se="undefined"==typeof document?function(e){return e}:function(e){if("transparent"===e)return"rgba(0,0,0,0)";var t=document.createElement("span");return t.style.cssText="position:absolute;visibility:hidden;color:"+e,document.body.appendChild(t),requestAnimationFrame((function(){t.parentNode.removeChild(t)})),window.getComputedStyle(t).getPropertyValue("color")},Me=function(e){return"string"!=typeof e?e:e.match(/([-.\d]+(?:%|ms|s|deg|cm|em|ch|ex|q|in|mm|pc|pt|px|vh|vw|vmin|vmax)?)|[%#A-Za-z0-9,.()]+/g)},Oe=function(e){var t=e.split(":").map(re),r=function(e){return e.trim().split("-").map((function(e,t){return t>0?function(e){return e.charAt(0).toUpperCase()+e.slice(1)}(e):e})).join("")}(t[0]),n=function(e,t){return ae.test(e)?function(e){return"string"==typeof e?"true"===e:e}(e):oe.test(e)?parseInt(e,10):ce.test(e)?parseFloat(e):de.test(e)?1===(r=e.match(/url\((.*?)\)/g).map((function(e){return e.substring(4,e.length-1)}))).length?r[0]:r:ue.test(t)?le.test(e)?ie(e,ye):ie(e,Se):se.test(t)?ie(e,Me):pe.test(t)?"none"===e?e:ie(e,me):e;var r}(t[1],t[0]);return r&&null!=n?{property:r,value:n}:null},ke=function(e){return e},je=function(e){return e<.5?2*e*e:(4-2*e)*e-1},Te={"ease-linear":ke,"ease-in-sine":function(e){return-1*Math.cos(e*(Math.PI/2))+1},"ease-out-sine":function(e){return Math.sin(e*(Math.PI/2))},"ease-in-out-sine":function(e){return-.5*(Math.cos(Math.PI*e)-1)},"ease-in-cubic":function(e){return e*e*e},"ease-out-cubic":function(e){var t=e-1;return t*t*t+1},"ease-in-out-cubic":function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},"ease-in-circ":function(e){var t=e/1;return-1*(Math.sqrt(1-t*e)-1)},"ease-out-circ":function(e){var t=e-1;return Math.sqrt(1-t*t)},"ease-in-out-circ":function(e){var t=2*e,r=t-2;return t<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-r*r)+1)},"ease-in-quad":function(e){return e*e},"ease-out-quad":function(e){return e*(2-e)},"ease-in-out-quad":je,"ease-in-quart":function(e){return e*e*e*e},"ease-out-quart":function(e){return 1- --e*e*e*e},"ease-in-out-quart":function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},"ease-in-expo":function(e){return 0===e?0:Math.pow(2,10*(e-1))},"ease-out-expo":function(e){return 1===e?1:1-Math.pow(2,-10*e)},"ease-in-out-expo":function(e){if(0===e||1===e)return e;var t=2*e,r=t-1;return t<1?.5*Math.pow(2,10*r):.5*(2-Math.pow(2,-10*r))},"ease-in-back":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1.70158,r=e/1;return r*r*((t+1)*r-t)},"ease-out-back":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1.70158,r=e/1-1;return r*r*((t+1)*r+t)+1},"ease-in-out-back":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1.70158,r=2*e,n=r-2,i=1.525*t;return r<1?.5*r*r*((i+1)*r-i):.5*(n*n*((i+1)*n+i)+2)},"ease-out-elastic":function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.7,r=1-t,n=2*e;if(0===e||1===e)return e;var i=r/(2*Math.PI)*Math.asin(1);return Math.pow(2,-10*n)*Math.sin((n-i)*(2*Math.PI)/r)+1},"ease-out-bounce":function(e){var t=e/1;if(t<1/2.75)return 7.5625*t*t;if(t<2/2.75){var r=t-1.5/2.75;return 7.5625*r*r+.75}if(t<2.5/2.75){var n=t-2.25/2.75;return 7.5625*n*n+.9375}var i=t-2.625/2.75;return 7.5625*i*i+.984375}};n(t.EASING_FUNCTION,Te);var De=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:500,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ke,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return Ae((function(t){e(n(t))}),t,r,i)},Ae=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:500,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(!e)return null;var i=null,o=void 0,a=null,c=function c(u){if(null===i&&(i=u),(o=u-i-n)<r)return e(o>=0?o/r:0),a=requestAnimationFrame(c),null;e(1),t&&t()};return c(Bt()),function(){cancelAnimationFrame(a)}},_e=function(){var e=1e3/24,t=null,r={velocity:0,origin:0,position:0,destination:1},n=function(){cancelAnimationFrame(t)};return{getPosition:function(){return r.position},cancel:n,translate:function(i,o,a,c){n(),null===a?r.destination=o:(r.position=o,r.destination=a,r.velocity=0),r.origin=r.position;var u=null;!function o(a){t=requestAnimationFrame(o),u||(u=a);var s=a-u;s<=e||(u=a-s%e,c(r,n),i(r.position))}(Bt())}}},Ne=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=_e(),o={update:null,cancel:i.cancel,getPosition:i.getPosition};return"arrive"===e?o.update=Pe.apply(void 0,[i.translate].concat(r)):"spring"===e?o.update=Le.apply(void 0,[i.translate].concat(r)):"step"===e&&(o.update=Ce.apply(void 0,[i.translate].concat(r))),o},Pe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.01;return function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e(n,i,o,(function(e,n){var i=e.destination-e.position,o=e.origin+.5*(e.destination-e.origin);e.velocity+=2*(-(o-e.origin)+i)*r,e.position+=e.velocity<0?Math.max(e.velocity,-t):Math.min(e.velocity,t),(e.origin<e.destination&&e.position>=e.destination||e.origin>=e.destination&&e.position<=e.destination)&&(n(),e.velocity=0,e.position=e.destination)}))}},Ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.01;return function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e(r,n,i,(function(e,r){e.velocity=t,e.position+=e.velocity,(e.origin<e.destination&&e.position>=e.destination||e.origin>=e.destination&&e.position<=e.destination)&&(r(),e.velocity=0,e.position=e.destination)}))}},Le=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.75,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;return function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e(i,o,a,(function(e,i){var o=-(e.position-e.destination)*t;e.velocity+=o/n,e.position+=e.velocity,e.velocity*=r,Re(e.position,e.destination,e.velocity)&&(i(),e.position=e.destination,e.velocity=0)}))}},Re=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.001;return Math.abs(e-t)<n&&Math.abs(r)<n},Be=function(e){var t=e.map((function(e){return ze(Ue(e.name,e.parameters,e.ease),e.origin,e.duration,e.delay)}));return function(e,r,n){if(!Q(e))return!1;var i=t.length;t.forEach((function(t){t(e,r,(function(){!--i&&n&&n(e)}))}))}},Ue=function(e,r,n){var i=n?o(t.EASING_FUNCTION,n):n,a=o(t.TRANSITION,e);return function(e,t,n){a.apply(void 0,[e,n,t,i].concat(W(r)))}},ze=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"50% 50% 0",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:500,n=arguments[3];return function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=arguments[2];$(i,t),Ae((function(t){e(i,o,t)}),a,r,n)}},He=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.lastAppliedStyles=null,Ge(e,t,e.root.dataset.style),e.styleObserver=X(e.root,["data-style"],(function(r){Ge(e,t,r)})),{setStyle:function(r){Ge(e,t,r)}}},Ge=function(e,r,n){if(e.lastAppliedStyles!==n){e.lastAppliedStyles=n,e.style=n?jt(r,function(e){return e.split(";").filter((function(e){return e.trim().length})).map(Oe).filter((function(e){return null!==e})).reduce((function(e,t){return e[t.property]=t.value,e}),{})}(n)):r;var i=[],a=[];e.style.transitionIn&&e.style.transitionIn.length?(i=e.style.transitionIn,a=e.style.transitionOut):e.style.transition&&"none"!==e.style.transition&&e.style.transition.forEach((function(e){var r=function(e){return o(t.TRANSITION,e.name).apply(void 0,W(e.parameters||[]))}(e);i=i.concat(r.intro),a=a.concat(r.outro)})),i&&a&&(e.transitionIn=Be(i),e.transitionOut=Be(a),e.skipToTransitionInEnd=Be(i.map(We)),e.skipToTransitionOutEnd=Be(a.map(We))),e.dirty=!0}},We=function(e){var t=Nt(e);return t.duration=0,t.delay=0,t},qe=function(e){return e[J+"BackingStorePixelRatio"]||e.backingStorePixelRatio||1},Ze=function(){return window.devicePixelRatio||1},Fe=function(e){e.getContext("2d").clearRect(0,0,e.width,e.height)},Ve={text:function(){return function(e){var t={};return Object.assign({},N(t,e,"text"),R(t),C(t,(function(e){e.root.setAttribute("data-value",e.value),function(e,t){var r=e.childNodes[0];r?t!==r.nodeValue&&(r.nodeValue=t):(r=document.createTextNode(t),e.appendChild(r))}(e.root,e.value)})),_(t))}}};n(t.VIEW,Ve);var Je=function(e,t,r){return function(e,t,r){var n={valueMapping:null};if(e&&e.dataset.valueMapping){var i=e.dataset.valueMapping;n.valueMapping=-1!==["none","indexes"].indexOf(i)?i:null}return Object.assign({},N(n,e),B(n),R(n),P(n,t),C(n,q,Z,r),_(n))}(e,t,r)},Ye=function(e,t,r){return function(e,t,r){var n={definitions:[]};return Object.assign({},N(n,e),R(n),P(n,t),C(n,F,V,r),_(n))}(e,t,r)},Xe=function(e,r,n){var i=o(t.VIEW,e);return i?i({Extension:{Type:t,getExtension:o},Utils:{toPixels:Ie,toColor:Se},Canvas:{clear:Fe,getDevicePixelRatio:Ze,getBackingStoreRatio:qe},DOM:{visible:te,create:Y,transform:K},Animation:{animate:De},Data:{request:Ut},Date:{performance:Bt},View:{rooter:N,drawer:C,updater:R,styler:He,grouper:P,resizer:B,destroyer:_}})(r,n):null},Qe=function(e,t){return"-"===e[t]&&">"===e[t+1]},$e=function(e){return"'"===e||'"'===e},Ke=function(e){return","===e},et=function(e){return"("===e},tt=function(e){return")"===e},rt=function(e){return 0!==e.trim().length},nt=function(e,t){return e.push(t.trim())},it=function(e,t){return rt(t)?(nt(e,t),""):t},ot=function(e,t){return e.length&&t.push(e.length>1?e.concat():e[0]),[]},at=function e(t,r,n){for(var i="",o=[],a=null,c=!1;t<r.length;){var u=r[t];if(et(u)){c=!1;var s=[i.trim()];u=r[t=e(t+1,r,s)],o.push(s),i=""}else{if(tt(u))return c&&i.trim().length&&(o.push([i.trim()]),i="",c=!1),rt(i)&&nt(o,i),o=ot(o,n),t+1;null!==a&&u!==a?i+=u:u===a?(o.push(i),i="",a=null):$e(u)?(i="",a=u):Qe(r,t)?(c=!0,i.trim().length&&(o.push([i.trim()]),i=""),t+=2):Ke(u)?(c&&i.trim().length&&(o.push([i.trim()]),i="",c=!1),o=ot(o,n),i=it(n,i)):i+=u,t++}}return(c&&i.trim().length||!c&&i.trim().length&&!o.length)&&(o.push([i.trim()]),i=""),ot(o,n),it(n,i),t},ct=function e(t){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]="root"!==n?"children"!==n?"repeat"!==n?t[n]:null===t[n]?null:e(t[n]):null===t[n]?null:t[n].map(e):t[n].cloneNode());return r.presenter=null,r},ut={root:null,key:null,view:null,overlay:null,presenter:null,transform:null,layout:null,style:null,repeat:null,children:null,className:null},st=function e(t){return Array.from(t).map((function(t){var r=jt(ut,{root:t});for(var n in t.dataset)t.dataset.hasOwnProperty(n)&&void 0!==r[n]&&(r[n]=t.dataset[n]);return r.repeat?(r.repeat=e(t.children).pop(),Array.from(t.children).forEach((function(e){e.parentNode.removeChild(e)}))):t.children.length&&(r.children=e(t.children)),r}))},lt=function e(t){return t.map((function(t){return"string"==typeof(t=jt(ut,t)).root?t.root=document.createElement(t.root):t.root=document.createElement("span"),t.transform&&(t.root.dataset.transform=t.transform),t.className&&(t.root.className=t.className),t.overlay&&(t.root.dataset.overlay=t.overlay),t.view?(t.root.dataset.view=t.view,t.style&&(t.root.dataset.style=t.style),t.repeat=null):(t.layout&&(t.root.dataset.layout=t.layout),t.repeat?(t.root.dataset.repeat=!0,t.repeat=e(t.children).pop()):t.children&&(t.children=e(t.children),t.children.forEach((function(e){t.root.appendChild(e.root)})))),t}))},ft=function(e){var t=!1,r=function(r,i){r.transform(i,(function(e){r.presenter.update(e)}),e),t||(t=!0,n())},n=function t(){e.baseDefinition.presenter.draw(),requestAnimationFrame(t)};return function t(n){return n.presenter=function(e,t){var r=void 0;return e.repeat?r=Ye(e.root,e.repeat,t):"string"==typeof e.view?r=Xe(e.view,e.root,e.style):function(e){return e.children&&e.children.length}(e)&&(r=Je(e.root,e.children,t)),r}(n,t),n.transform=ht(n.transform,e),r}(e.baseDefinition)},pt=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return function(t,n){!function t(i,o){r.length<=i?n(o):r[i](o,dt(t,[i+1]),e)}(0,t)}},dt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments[2];return function(){var n=Array.from(t);return Array.prototype.push.apply(n,arguments),e.apply(r,n)}},ht=function(e,t){if(!e)return function(e,t){return t(e)};if("function"==typeof e)return e;var r=function(e){var t=[];return at(0,e,t),t}("transform("+(/^[a-z]+$/.test(e)?e+"()":e)+")");return mt(r,t)},mt=function e(r,n){var i=r.map((function(r){var i=r.shift(),a=o(t.TRANSFORM,i)||function(e,t,r){t(e)},c=r.map((function(t){return Array.isArray(t)?"string"==typeof t[0]?e([t],n):e(t,n):Ot(t)}));return a.apply(void 0,W(c))}));return pt.apply(void 0,[n].concat(W(i)))},vt=function(e){var t=e.match(/[a-z]+/)[0];return{name:t,parameters:yt(e.substring(t.length))}},yt=function(e){return(e.match(/('.+?')|(".+?")|(\[.+?])|([.:\-\d\sa-zA-Z]+%?)/g)||[]).map(_t).filter((function(e){return e.length})).map(Ot)},gt=function(e){return e.substring(1,e.length-1)},bt=/^([\d]{4}-[\d]{1,2}-[\d]{1,2})/,wt=/^(true|false)$/,xt=/^[\a-zA-Z]+$/,Et=/^0[\d]+/,It=/^('|")/,St=/^-?(?:\d+)?(?:\.|0\.)?[\d]+$/,Mt=/^(\[)/,Ot=function(e){return wt.test(e)?"true"===e:Mt.test(e)?yt(gt(e)):bt.test(e)?I(e):It.test(e)?gt(e):xt.test(e)||Et.test(e)?e:St.test(e)?parseFloat(e):e},kt=function(e){var t=(e+"").match(/(-?[.\d]+)(%|ms|s|deg|cm|em|ch|ex|q|in|mm|pc|pt|px|vh|vw|vmin|vmax)?/);return{value:parseFloat(t[1]),units:t[2]}},jt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=void 0,n={};for(r in e)e.hasOwnProperty(r)&&(n[r]=void 0===t[r]?e[r]:t[r]);return n},Tt=function(e){var t=window,r=e.split(".");return r.forEach((function(e,n){t[r[n]]&&(t=t[r[n]])})),t!==window?t:null},Dt=function(e){return/^(?:[\w]+\s?:\s?[\w.]+,\s?)+(?:[\w]+\s?:\s?[\w.]+)$/g.test(e)?e.match(/(?:(\w+)\s?:\s?([\w.]+))/g).reduce((function(e,t){var r=t.split(":");return e[r[0]]=Ot(r[1]),e}),{}):Ot(e)},At=function(e){return parseInt(e,10)},_t=function(e){return e.trim()},Nt=function(e){return"object"===(void 0===e?"undefined":U(e))&&null!==e?JSON.parse(JSON.stringify(e)):e},Pt=function(e){return e.slice()},Ct=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e+Math.random()*(t-e)},Lt=function(e){for(var t=[],r=0;r<e;r++)t.push(r);return t},Rt=function(e){for(var t=e.length;t;t--){var r=Math.floor(Math.random()*t),n=[e[r],e[t-1]];e[t-1]=n[0],e[r]=n[1]}},Bt=function(){return window.performance.now()},Ut=function(e,t,r,n){var i=new XMLHttpRequest;n&&n(i),i.open("GET",e,!0),i.onload=function(){t(i.response)},r&&(i.onerror=function(){r(i,i.status)}),i.send()},zt=function(e,t){return Ht(e)?Gt(e,t):Array.isArray(e)?Wt(e,t):e===t},Ht=function(e){return e===Object(e)},Gt=function(e,t){for(var r in e)if(!t.hasOwnProperty(r)||e[r]!==t[r])return!1;return!0},Wt=function(e,t){return e.length==t.length&&e.every((function(e,r){return e===t[r]}))},qt=function(e){return Object.keys(e).map((function(e){return'"'+e+'"'})).join(", ")},Zt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.createElement("div");z(this,e),this._options=jt(e.options(),t),this._element=r,this._value=null,this._observer=null,this._viewDefinition=null,this._constants=null,this._presets=null,this._updater=null,this._didInit=null,this._didDestroy=null,this._willDestroy=null,this._didUpdate=null,this._init()}return H(e,[{key:"isRootElement",value:function(e){return this._element===e}},{key:"setConstant",value:function(e,t){this._constants[e]=t}},{key:"getConstants",value:function(){return this._constants}},{key:"getConstant",value:function(e){return this._constants[e]}},{key:"setPreset",value:function(e,t){this._presets[e]=t}},{key:"getPreset",value:function(e){return this._presets[e]}},{key:"destroy",value:function(){this._willDestroy(this),this._observer.disconnect(),this.baseDefinition.presenter.destroy(),this._didDestroy(this)}},{key:"redraw",value:function(){this.baseDefinition&&this.baseDefinition.presenter&&(this.baseDefinition.presenter.reset(),this.baseDefinition.presenter.draw(),this._updater(this.baseDefinition,this._value))}},{key:"_init",value:function(){var e=this;this._viewDefinition=this._options.view,this._willDestroy=this._options.willDestroy,this._didDestroy=this._options.didDestroy,this._didInit=this._options.didInit,this._didUpdate=this._options.didUpdate,this._value=this._options.value,this._presets=this._options.presets,this._constants=this._options.constants,this._element.classList.contains("tick")||this._element.classList.add("tick"),this._observer=X(this._element,["data-value"],(function(t){e.value=t})),this._viewDefinition.root!==this._element&&(Array.from(this._viewDefinition.root.children).forEach((function(t){e._element.appendChild(t)})),this._viewDefinition.root=this._element),this._viewDefinition.view||this._viewDefinition.children||(this._viewDefinition.view="text"),this._updater=ft(this),null!==this.value&&this._update(this.value),this._element.dataset.state="initialised",this._didInit(this,this.value)}},{key:"_update",value:function(e){this._updater(this.baseDefinition,e),this._didUpdate(this,e)}},{key:"baseDefinition",get:function(){return this._viewDefinition}},{key:"root",get:function(){return this._element}},{key:"value",get:function(){return this._value},set:function(e){this._value="string"==typeof e?Dt(e):e,this._update(e)}}],[{key:"options",value:function(){return{constants:Jt(),presets:Yt(),value:null,view:null,didInit:function(e){},didUpdate:function(e,t){},willDestroy:function(e){},didDestroy:function(e){}}}}]),e}(),Ft=function(e,t,r,n){return{label:1===e?t:r,progress:e/n,value:e}},Vt=[],Jt=function(){return Xt},Yt=function(){return Qt},Xt={YEAR_PLURAL:"Years",YEAR_SINGULAR:"Year",MONTH_PLURAL:"Months",MONTH_SINGULAR:"Month",WEEK_PLURAL:"Weeks",WEEK_SINGULAR:"Week",DAY_PLURAL:"Days",DAY_SINGULAR:"Day",HOUR_PLURAL:"Hours",HOUR_SINGULAR:"Hour",MINUTE_PLURAL:"Minutes",MINUTE_SINGULAR:"Minute",SECOND_PLURAL:"Seconds",SECOND_SINGULAR:"Second",MILLISECOND_PLURAL:"Milliseconds",MILLISECOND_SINGULAR:"Millisecond"},Qt={y:function(e,t){return Ft(e,t.YEAR_SINGULAR,t.YEAR_PLURAL,10)},M:function(e,t){return Ft(e,t.MONTH_SINGULAR,t.MONTH_PLURAL,12)},w:function(e,t){return Ft(e,t.WEEK_SINGULAR,t.WEEK_PLURAL,52)},d:function(e,t){return Ft(e,t.DAY_SINGULAR,t.DAY_PLURAL,365)},h:function(e,t){return Ft(e,t.HOUR_SINGULAR,t.HOUR_PLURAL,24)},m:function(e,t){return Ft(e,t.MINUTE_SINGULAR,t.MINUTE_PLURAL,60)},s:function(e,t){return Ft(e,t.SECOND_SINGULAR,t.SECOND_PLURAL,60)},mi:function(e,t){return Ft(e,t.MILLISECOND_SINGULAR,t.MILLISECOND_PLURAL,1e3)}},$t={value:Dt,didInit:Tt,didUpdate:Tt,didDestroy:Tt,willDestroy:Tt},Kt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=e.dataset,i={meta:{}};for(var o in n)if(n.hasOwnProperty(o)){var a=t[o],c=n[o];a&&(c=null===(c=a(c))?Nt(r[o]):c,i[o]=c)}return i},er=function(e){var t=Vt.filter((function(t){return t.isRootElement(e)}));return t?t[0]:null},tr=function(){return G({},Zt.options(),{constants:G({},Xt),presets:G({},Qt)})},rr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(e&&!Q(e)&&(t=e,e=void 0),!e||!er(e)){t&&t.view&&(t.view=lt([t.view])[0]),!t&&e&&(t=Kt(e,$t,tr())),e&&(t||(t={}),t.view||(t.view=st([e])[0]));var r=new Zt(t,e);return Vt.push(r),r}},nr=function(e){return function(){setTimeout(e,0)}},ir=function(){return Date.now()},or=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=jt({autostart:!0},r),i=null,o=null,a=null,c=0,u=null,s=!1,l=null,f=function(){return s},p=function(){return null!==o},d=function(){return document.hidden},h=function r(){var n=ir(),a=i-n,u=t+a;i=n+u,e(n-o-c+a),l=setTimeout(r,u)},m=function(){f()?b():p()||(o=ir(),setTimeout((function(){e(0)}),0),M(),d()?E():(i=ir()+t,l=setTimeout((function(){h()}),t)))},v=function(){clearTimeout(l),l=null,o=null,i=null,a=null,c=0,u=null,s=!1,S()},y=function(){v(),m()},g=function(){p()&&!d()&&(s=!0,S(),w())},b=function(){f()&&p()&&!d()&&(s=!1,M(),x())},w=function(){clearTimeout(l),a=ir(),u=i-a},x=function(){c+=ir()-a,a=null,i=ir()+u,l=setTimeout((function(){h()}),u)},E=function(){w()},I=function(){p()&&x()},S=function(){document.removeEventListener("visibilitychange",O)},M=function(){document.addEventListener("visibilitychange",O)},O=function(){d()?E():I()};return n.autostart&&m(),{start:m,stop:nr(v),reset:nr(y),pause:nr(g),resume:b}},ar=function(e){/^[\d]+/.test(e)||(e="1 "+e);var t=e.split(" ");return parseFloat(t[0])*c[t[1].toLowerCase()]},cr=function(e,t){return function(e,t){return e.setHours(t[0]||0,t[1]||0,t[2]||0,t[3]||0),e}(e,t.split(":").map(At))},ur=function(e,t){var r=t.match(/((?:[\d]+\s)?(?:hours|hour|minutes|minute|seconds|second))|((?:from|till)\s[\d]+(?::[\d]+)?(?::[\d]+)?)|(wait\s[\d]+\s[a-z]+)/g).reduce((function(e,t){return/from/.test(t)?e.from=cr(e.from,t.split(" ")[1]):/till/.test(t)?e.till=cr(e.till,t.split(" ")[1]):/wait/.test(t)?e.idle=ar(t.substr(5)):/hours|hour|minutes|minute|seconds|second/.test(t)&&(e.interval=ar(t)),e}),{idle:null,interval:null,date:null,dist:null,wait:!1,from:cr(T(e),"0"),till:cr(T(e),"23:59:59:999")});if(e<r.from||e>=r.till)return r;if(r.interval>r.till-r.from)return r;var n=e-r.from,i=r.interval-n%r.interval;return null!==r.idle&&i>=r.interval-r.idle?(r.wait=!0,r):(r.dist=i,r.date=new Date(e.getTime()+r.dist),r)},sr=function(e,t){return/januari|februari|march|april|may|june|july|august|september|october|november|december/.test(t)?function(e,t){var r=t.match(/januari|februari|march|april|may|june|july|august|september|october|november|december|[\d]+th|\dst|\dnd|first|last|at\s[\d]+(?::[\d]+)?(?::[\d]+)?/g);if(r.length>1){var n="";r.forEach((function(e){n=t.split(e)[1]||""}));var i=n.trim().match(/wait\s[\d]+\s[a-z]+/);i&&r.push(i[0])}var o=r.reduce((function(t,r){return/([\d]+th|\dst|\dnd|first|last)/.test(r)&&(t.day=/^[\d]/.test(r)?parseInt(r,10):"first"===r?1:r),/^at/.test(r)?t.time=cr(T(e),r.substr(3)):/wait/.test(r)?t.idle=ar(r.substr(5)):/^[\a-zA-Z]+$/.test(r)&&(t.month=r),t}),{idle:null,day:null,month:null,time:null,date:null,dist:null,wait:!1});if(o.time){o.time.setDate(1),o.time=v(o.time,o.month),o.time=m(o.time,o.day);var a=o.time-e,c=0;if(a<0&&(c=a,o.time.setFullYear(o.time.getFullYear()+1),a=o.time-e),null!==o.idle&&c+o.idle>0)return o.wait=!0,o;o.dist=a}else{o.time=T(e),o.time.setDate(1),o.time=v(o.time,o.month),o.time=m(o.time,o.day);var u=ur(o.time,t);if(u.wait)return o;o.time=T(w(e,o.time)&&u.date?u.date:u.from);var s=o.time-e;s<0&&(o.time=T(u.from),o.time.setFullYear(o.time.getFullYear()+1),s=o.time-e),o.dist=s}return o.date=T(o.time),o}(e,t):/month/.test(t)?function(e,t){var r=t.match(/[\d]+th|\dst|\dnd|first|last|at\s[\d]+(?::[\d]+)?(?::[\d]+)?/g);if(r.length>1){var n="";r.forEach((function(e){n=t.split(e)[1]||""}));var i=n.trim().match(/wait\s[\d]+\s[a-z]+/);i&&r.push(i[0])}var o=r.reduce((function(t,r){return/([\d]+th|\dst|\dnd|first|last)/.test(r)&&(t.day=/^[\d]/.test(r)?parseInt(r,10):"first"===r?1:r),/^at/.test(r)?t.time=cr(T(e),r.substr(3)):/wait/.test(r)&&(t.idle=ar(r.substr(5))),t}),{idle:null,day:null,time:null,date:null,dist:null,wait:!1});if(o.time){o.time=m(o.time,o.day);var a=o.time-e,c=0;if(a<0&&(c=a,o.time.setDate(1),o.time.setMonth(o.time.getMonth()+1),m(o.time,o.day),a=o.time-e),null!==o.idle&&c+o.idle>0)return o.wait=!0,o;o.dist=a}else{o.time=m(T(e),o.day);var u=ur(o.time,t);if(u.wait)return o;o.time=T(w(e,o.time)&&u.date?u.date:u.from);var s=o.time-e;s<0&&(o.time=T(u.from),o.time.setDate(1),o.time.setMonth(o.time.getMonth()+1),m(o.time,o.day),s=o.time-e),o.dist=s}return o.date=T(o.time),o}(e,t):/(?:mon|tues|wednes|thurs|fri|satur|sun)day/.test(t)?function(e,t){var r=t.match(/(?:mon|tues|wednes|thurs|fri|satur|sun)day|at\s[\d]+(?::[\d]+)?(?::[\d]+)?/g);if(r.length>1){var n="";r.forEach((function(e){n=t.split(e)[1]||""}));var i=n.trim().match(/wait\s[\d]+\s[a-z]+/);i&&r.push(i[0])}var o=r.reduce((function(t,r){return/(?:mon|tues|wednes|thurs|fri|satur|sun)day/.test(r)&&(t.day=f[function(e){return e.charAt(0).toUpperCase()+e.slice(1)}(r)]),/^at/.test(r)?t.time=cr(T(e),r.substr(3)):/wait/.test(r)&&(t.idle=ar(r.substr(5))),t}),{idle:null,day:null,time:null,date:null,dist:null,wait:!1});if(o.time){o.time=h(o.time,o.day);var a=o.time-e;if(a<0&&(o.time.setDate(o.time.getDate()+7),a=o.time-e),null!==o.idle&&a>=c.Week-o.idle)return o.wait=!0,o;o.dist=a}else{o.time=h(T(e),o.day);var u=ur(o.time,t);if(u.wait)return o;o.time=T(w(e,o.time)&&u.date?u.date:u.from);var s=o.time-e;s<0&&o.time.setDate(o.time.getDate()+7),o.dist=s}return o.date=T(o.time),o}(e,t):/day at/.test(t)||/^at /.test(t)?function(e,t){var r=t.match(/([\d]+(?::[\d]+)?(?::[\d]+)?)|(wait\s[\d]+\s[a-z]+)/g).reduce((function(t,r){return/^[\d]/.test(r)?t.time=cr(T(e),r):/wait/.test(r)&&(t.idle=ar(r.substr(5))),t}),{idle:null,time:null,date:null,wait:!1,dist:null}),n=r.time-e;return n<0&&(r.time.setDate(r.time.getDate()+1),n=r.time-e),null!==r.idle&&n>=c.Day-r.idle?(r.wait=!0,r):(r.dist=n,r.date=T(r.time),r)}(e,t):/hours|hour|minutes|minute|seconds|second/.test(t)?ur(e,t):null},lr=function(e,t){for(var r=t.split(",").map(_t).map((function(t){return sr(e,t)})),n=null,i=0;i<r.length;i++){var o=r[i];if(null===n&&o.wait)return null;(null===n||null===n.dist&&null!==o.dist||null!==o.dist&&o.dist<n.dist)&&(n=o)}return n.date},fr=function(e,t){!0!==e?"string"!=typeof e?setTimeout((function(){t(0)}),0):setTimeout((function(){t(I(e).getTime()-j().getTime())}),0):function(e){var t=new XMLHttpRequest,r=Date.now();t.open("HEAD",window.location+"?noCache="+r),t.setRequestHeader("Content-Type","text/html"),t.setRequestHeader("Cache-Control","no-cache"),t.onload=function(){var n=.5*(r-Date.now()),i=new Date(t.getResponseHeader("Date"));e(new Date(i.getTime()+n))},t.send()}((function(e){t(e.getTime()-j().getTime())}))},pr={format:["d","h","m","s"],cascade:!0,server:null,interval:1e3},dr=function(e){return G({complete:!1,offset:null,value:null,timer:null,onload:function(){},onupdate:function(e){}},e)},hr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("number"!=typeof e)throw'Can\'t start counter, the "milliseconds" parameter is required';var r=(t=jt({units:"seconds",target:0,amount:1e3,interval:1e3},t)).target,n=e,i=dr({target:r,onended:function(){}});return setTimeout((function(){i.timer=or((function(o){if((n=e-o/t.interval*t.amount)<=r)return i.value=t.target,i.onupdate(i.value/c[t.units]),i.timer.stop(),void i.onended();i.value=n,i.onupdate(i.value/c[t.units])}),t.interval,{autostart:!1}),i.complete=!0,i.onload(),i.timer.start()}),0),i},mr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===e)throw'Can\'t start counter, the "due" parameter is required';t=jt(pr,t);var r=d(e)?e:I(e),n=dr({due:T(r),onended:function(){}});return fr(t.server,(function(e){n.offset=e;n.timer=or((function(){var i=g(e);if(r-i<=0)return n.value=new Array(t.format.length).fill(0),n.onupdate(n.value),n.timer.stop(),void n.onended();n.value=O(i,r,t.format,t.cascade),n.onupdate(n.value)}),t.interval,{autostart:!1}),n.complete=!0,n.onload(),n.timer.start()})),n},vr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return function(r,n){return n((parseFloat(r)-e)/(t-e))}},yr=function(e,t,r,n){t[e]=r[e],n(Pt(t))},gr={ascii:function(){return function(e,t){return t((e+"").charCodeAt(0))}},char:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e?new RegExp("[^"+e+"]","g"):null;return function(e,n){var i=String.fromCharCode(e);r&&(i=i.replace(r,t)),n(i)}},tween:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ease-linear",n=arguments[2];e=he(e);var i=o(t.EASING_FUNCTION,r),a=null,c=null;return function(t,r){if(t=parseFloat(t),a&&a(),null===c||t===c)return c=t,void r(t);var o=c,u=t-o;a=De((function(e){r(o+e*u)}),(function(){a=null}),e,i,n),c=t}},value:function(e){return function(t,r){return r(e)}},input:function(){return function(e,t){return t(e)}},rotate:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e,r){var n=Array.isArray(e)?e:[e],i=[],o=t.length;n.forEach((function(e,a){t[a%o](e,(function(e){i[a]=e,a===n.length-1&&r(i)}))}))}},map:function(e){return function(t,r){var n=[],i=t;i.forEach((function(t,o){e(t,(function(e){n[o]=e,o===i.length-1&&r(n.concat())}))}))}},transform:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e,r){var n=[],i=e;t.forEach((function(e,o){e(i,(function(e){n[o]=e,o===t.length-1&&r(1===n.length?n[0]:n)}))}))}},upper:function(){return function(e,t){return t((e+"").toUpperCase())}},lower:function(){return function(e,t){return t((e+"").toLowerCase())}},abs:function(){return function(e,t){return t(Math.abs(e))}},add:function(e){return function(t,r){return r(t+e)}},subtract:function(e){return function(t,r){return r(t-e)}},modulus:function(e){return function(t,r){return r(t%e)}},pad:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"left";return function(r,n){return n(e.length>(""+r).length?"left"===t?(""+e+r).slice(-e.length):(""+r+e).substring(0,e.length):r)}},number:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;return function(n,i){i((n<0?"-":"")+parseFloat(Math.abs(n)).toFixed(r).replace(/./g,(function(r,n,i){return"."===r?e:n&&(i.length-n)%3==0?t+r:r})))}},replace:function(e,t){return function(r,n){return n((r+"").replace(new RegExp("."===e?"\\"+e:e,"g"),t))}},round:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(t,r){return r(e?t.toFixed(e):Math.round(t))}},ceil:function(){return function(e,t){return t(Math.ceil(e))}},floor:function(){return function(e,t){return t(Math.floor(e))}},fraction:vr,percentage:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,r=vr(e,t);return function(e,t){r(e,(function(e){t(100*e)}))}},multiply:function(e){return function(t,r){return r(t*e)}},divide:function(e){return function(t,r){return r(t/e)}},split:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return function(t,r){return r((t+"").split(e))}},format:function(e){return function(t,r){return r(e.replace(/\$0/gi,t))}},plural:function(e,t){return function(r,n){return n(1===r?e:t)}},limit:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return function(r,n){return n(Math.min(Math.max(r,e),t))}},reverse:function(){return function(e,t){return t(Array.isArray(e)?e.reverse():(e+"").split("").reverse().join(""))}},arrive:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=null,o=null,a=null;return function(c,u){return c=parseFloat(c),null===i?(i=c,void u(c)):(r&&null!==o&&i===c&&(a.cancel(),a=null),n&&null!==o&&c-a.getPosition()>1?(a.cancel(),a=null,o=null,i=c,void u(c)):(a?a.update(u,c):(a=Ne("arrive",e,t)).update(u,i,c),void(o=c)))}},spring:function(e,t,r){var n=null,i=null;return function(o,a){if(o=parseFloat(o),null===n)return n=o,void a(o);i?i.update(a,o):(i=Ne("spring",e,t,r)).update(a,n,o)}},delay:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rtl",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:50,n=null;return function(i,o){if(!n)return n=Pt(i),void o(Pt(n));n="rtl"===e?n.slice(n.length-i.length,n.length):n.slice(0,i.length);var a=Lt(i.length);"random"===e&&Rt(a),"rtl"===e&&a.reverse();!function e(){yr(a.shift(),n,i,o),a.length&&setTimeout(e,Ct(t,r))}()}},step:function(e){var t=null,r=null,n=null;return function(i,o){if(i=parseFloat(i),null===t)return t=i,void o(i);null!==r&&t===i&&(n.cancel(),n=null),n?n.update(o,i):(n=Ne("step",e)).update(o,t,i),r=i}},keys:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e,r){var n={};e.forEach((function(e,r){n[t[r]]=e})),r(n)}},duration:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e,r){return r(M(e,t))}},substring:function(e,t){return function(r,n){return n((r+"").substring(e,t))}},preset:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e,r,n){return r(e.map((function(e,r){return n.getPreset(t[r])(e,n.getConstants(),n)})))}}};n(t.TRANSFORM,gr);var br={x:"translateX",y:"translateY",z:"translateZ"},wr={x:"rotateX",y:"rotateY",z:"rotateZ"},xr={both:"scale",x:"scaleX",y:"scaleY"},Er=function(e,t,r){return e+(t-e)*r},Ir={fade:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:je,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1;if(r<0){var a=[o,i];i=a[0],o=a[1]}e.style.opacity=Er(i,o,n(t))},move:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:je,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"0",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"100%",a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"y";if(r<0){var c=[o,i];i=c[0],o=c[1]}var u=ie(i,kt),s=ie(o,kt);K(e,br[a],Er(u.value,s.value,n(t)),u.units||s.units)},rotate:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:je,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"0",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"90deg",a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"x";if(r<0){var c=[o,i];i=c[0],o=c[1]}var u=ie(i,kt),s=ie(o,kt);K(e,wr[a],Er(u.value,s.value,n(t)),u.units||s.units)},scale:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:je,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"both";if(r<0){var c=[o,i];i=c[0],o=c[1]}K(e,xr[a],Er(i,o,n(t)))},crossfade:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments[1],r=arguments[2];return{intro:[{name:"fade",parameters:[0,1],duration:1e3*e,delay:he(t)}],outro:[{name:"fade",parameters:[1,0],duration:1e3*e,delay:he(r)}]}},swap:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments[3],i=arguments[4];return{intro:[{name:"move",parameters:[""+100*-t,"0%",e],duration:1e3*r,delay:he(n)}],outro:[{name:"move",parameters:["0%",""+100*t,e],duration:1e3*r,delay:he(i)}]}},revolve:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments[3],i=arguments[4];return{intro:[{name:"rotate",parameters:[90*-t+"deg","0deg",e],duration:1e3*r,delay:he(n)}],outro:[{name:"rotate",parameters:["0deg",90*t+"deg",e],duration:1e3*r,delay:he(i)}]}},zoom:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments[2],n=arguments[3];return{intro:[{name:"scale",parameters:[e,1],duration:1e3*t,delay:he(r)}],outro:[{name:"scale",parameters:[1,e],duration:1e3*t,delay:he(n)}]}}};n(t.TRANSITION,Ir);var Sr={supported:function(){var e=window;if(void 0===e)return!1;var t=e.CSS&&e.CSS.supports,r=!!e.MSInputMethodContext&&!!document.documentMode,n=t&&CSS.supports("transform","translateX(0)");return r||t&&n&&!!["MutationObserver","requestAnimationFrame"].filter((function(t){return t in e})).length}(),options:{setConstant:function(e,t){Xt[e]=t},setPreset:function(e,t){Qt[e]=t}},helper:{interval:or,date:function(e){return e?I(e):j()},duration:k},data:{request:Ut,poll:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6e4;return or((function(){Ut(e,t)}),r)}},DOM:{create:rr,destroy:function(e){var t=function(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r].isRootElement(t))return r;return-1}(Vt,e);return!(t<0)&&(Vt[t].destroy(),Vt.splice(t,1),!0)},parse:function(e){var t,r=void 0,n=void 0,i=[];for(n=(t=e.querySelectorAll(".tick:not([data-state])")).length;n--;)r=t[n],i.push(rr(r));return i},find:er},count:{down:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if("number"==typeof t[0]&&"string"==typeof t[1]){var n=t[0],i=t[1].toLowerCase();return t.shift(),t[0]=k(n,i),t[1]=t[1]||{},t[1].units=i,hr.apply(void 0,t)}return"string"==typeof t[0]||d(t[0])?mr.apply(void 0,t):null},up:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===e)throw'Can\'t start counter, the "since" parameter is required';t=jt(pr,t);var r=d(e)?e:I(e),n=dr({since:T(r)});return fr(t.server,(function(e){n.offset=e;n.timer=or((function(){var i=g(e);n.value=O(r,i,t.format,t.cascade),n.onupdate(n.value)}),t.interval,{autostart:!1}),n.complete=!0,n.onload(),n.timer.start()})),n},schedule:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof e)throw'Can\'t start scheduler, "schedule" is a required parameter';var r=(t=jt(G({},pr,{timezone:null}),t)).timezone?y(t.timezone):null,n=dr({waiting:null,nextScheduledDate:null,previouslyScheduledDate:null,onrepeat:function(e,t){},onresume:function(e){},onwait:function(e){}}),i=void 0,o=null;return fr(t.server,(function(a){n.offset=a;n.timer=or((function(){var c=g(a);if(null!==r&&(c=b(c,r)),o=lr(c,e),n.waiting=null===o,n.waiting)return void 0===i&&(i=null),n.value=new Array(t.format.length).fill(0),n.nextScheduledDate&&(n.previouslyScheduledDate=T(n.nextScheduledDate)),n.nextScheduledDate=null===o?null:T(o),void n.onwait(n.previouslyScheduledDate?T(n.previouslyScheduledDate):null);n.nextScheduledDate=T(o),null===i&&n.onresume(T(o)),(null===i||void 0!==i&&!x(i,o))&&(n.onrepeat(T(o),i?T(i):null),i&&(n.previouslyScheduledDate=T(i))),i=T(o),n.value=O(c,o,t.format,t.cascade),n.onupdate(n.value)}),t.interval,{autostart:!1}),n.complete=!0,n.onload(),n.timer.start()})),n}},plugin:{add:function(e,t,r){if("function"==typeof e){var n=e;return i(n.identifier.type,n.identifier.name,n)}return i(e,t,r)}}},Mr=function(e){if(!t.hasOwnProperty(e))return"continue";Sr.plugin[function(e){return e.replace(/-./g,(function(e){return e.charAt(1).toUpperCase()}))}("add-"+t[e])]=function(r,n){i(t[e],r,n)}};for(var Or in t)Mr(Or);return e.exports=Sr,e.exports}():null),w="undefined"!=typeof window?function(){if(!e)var e={};!function(){function e(e){this.value=e}function t(t){var r,n;function i(r,n){try{var a=t[r](n),c=a.value;c instanceof e?Promise.resolve(c.value).then((function(e){i("next",e)}),(function(e){i("throw",e)})):o(a.done?"return":"normal",a.value)}catch(u){o("throw",u)}}function o(e,t){switch(e){case"return":r.resolve({value:t,done:!0});break;case"throw":r.reject(t);break;default:r.resolve({value:t,done:!1})}(r=r.next)?i(r.key,r.arg):n=null}this._invoke=function(e,t){return new Promise((function(o,a){var c={key:e,arg:t,resolve:o,reject:a,next:null};n?n=n.next=c:(r=n=c,i(e,t))}))},"function"!=typeof t.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}();var t=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();return e.exports=function(e){var r=e.DOM,n=(e.Animation.animate,e.Extension),i=e.Date.performance,o=e.View,a=o.rooter,c=o.destroyer,u=o.drawer,s=o.updater,l=o.styler,f=n.getExtension(n.Type.EASING_FUNCTION,"ease-out-cubic"),p=n.getExtension(n.Type.EASING_FUNCTION,"ease-out-sine"),d=function(e){if(e.isInitialValue()){e.root.textContent="",e.spacer=r.create("span","tick-flip-spacer"),e.root.appendChild(e.spacer);var t=r.create("span","tick-flip-shadow-top tick-flip-shadow tick-flip-front"),o=r.create("span","tick-flip-shadow-bottom tick-flip-shadow tick-flip-back");e.root.appendChild(t),e.root.appendChild(o),e.shadowCard=r.create("span","tick-flip-card-shadow"),e.root.appendChild(e.shadowCard)}if(e.spacer.textContent=e.value,e.isInitialValue()||r.visible(e.root)){var a=e.cards[e.cards.length-1];if(a&&(a.waiting=!1,a.offset=i(),a.back=e.value),e.isInitialValue()){var c=new h;c.back=e.value,c.offset=null,c.progress=1,e.root.insertBefore(c.root,e.root.firstChild),e.cards.push(c)}var u=new h;if(u.offset=null,u.progress=0,u.visual_progress=0,u.waiting=!0,u.front=e.value,u.rotate(0),e.root.insertBefore(u.root,e.root.firstChild),e.cards.push(u),!e.animating){e.animating=!0;var s=n.getExtension(n.Type.EASING_FUNCTION,e.style.flipEasing);!function t(){var n=e.cards.filter((function(e){return!e.done&&!e.waiting}));if(0!==n.length){n.forEach((function(t){null!==t.offset&&(t.progress=(i()-t.offset)/e.style.flipDuration),t.progress>=1&&(t.progress=1,t.done=!0),t.visual_progress=s(t.progress)}));n.reverse().forEach((function(e,t){var r=n[t-1];r&&e.visual_progress<=r.visual_progress&&(e.visual_progress=r.visual_progress+.01)})),n.reverse(),e.cards.forEach((function(t,r){var n=1-2*Math.abs(t.visual_progress-.5),i=1-(t.visual_progress-.5)/.5;t.shadowFront=n,t.highlightBack=i;var o=e.cards[r+1];o&&t.visual_progress>.5&&t.visual_progress>0&&(t.shadowBack=f(o.visual_progress))})),n.forEach((function(e,t){var r=e.visual_progress;r>.5&&!e.done?e.root.style.zIndex=10+t:e.root.style.removeProperty("z-index"),e.rotate(-180*r)}));var o=0,a=1;n.forEach((function(e){var t=Math.abs(e.visual_progress-.5);t<a&&(a=t,o=e.visual_progress)}));var c=p(o<.5?o/.5:(1-o)/.5);e.shadowCard.style.opacity=c,r.transform(e.shadowCard,"scaleY",c),e.cards.filter((function(e){return e.done})).slice(0,-1).forEach((function(t){e.cards=e.cards.filter((function(e){return e!==t})),t.root.parentNode&&e.root.removeChild(t.root)})),requestAnimationFrame(t)}else e.animating=!1}()}}else e.cards.forEach((function(t){t.back=e.value,t.front=e.value}))},h=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._root=r.create("span","tick-flip-card");var t=r.create("span","tick-flip-panel-front tick-flip-front tick-flip-panel"),n=r.create("span","tick-flip-panel-front-text"),i=r.create("span","tick-flip-panel-text-wrapper");n.appendChild(i);var o=r.create("span","tick-flip-panel-front-shadow");t.appendChild(n),t.appendChild(o);var a=r.create("span","tick-flip-panel-back tick-flip-back tick-flip-panel"),c=r.create("span","tick-flip-panel-back-text"),u=r.create("span","tick-flip-panel-text-wrapper");c.appendChild(u);var s=r.create("span","tick-flip-panel-back-highlight"),l=r.create("span","tick-flip-panel-back-shadow");a.appendChild(c),a.appendChild(s),a.appendChild(l),this._root.appendChild(t),this._root.appendChild(a),this._front=t,this._back=a,this._shadowFront=o,this._shadowBack=l,this._highlightBack=s,this._textBack=u,this._textFront=i,this._frontValue=null,this._backValue=null}return t(e,[{key:"rotate",value:function(e){this._front.style.transform="rotateX("+e+"deg)",this._back.style.transform="rotateX("+(-180+e)+"deg)"}},{key:"root",get:function(){return this._root}},{key:"front",set:function(e){this._frontValue=e,this._textFront.textContent=e},get:function(){return this._frontValue}},{key:"back",set:function(e){this._backValue=e,this._textBack.textContent=e},get:function(){return this._backValue}},{key:"highlightBack",set:function(e){this._highlightBack.style.opacity=e}},{key:"shadowBack",set:function(e){this._shadowBack.style.opacity=e}},{key:"shadowFront",set:function(e){this._shadowFront.style.opacity=e}}]),e}();return function(e){var t={cards:[],lastCard:null,initialCard:null,shadowAbove:null,shadowBelow:null,shadowCard:null,currentValue:null,lastValue:null,front:null,back:null};return Object.assign({},a(t,e,"flip"),s(t),l(t,{flipDuration:800,flipEasing:"ease-out-bounce"}),u(t,d),c(t))}},e.exports.identifier={name:"flip",type:"view"},e.exports}():null;b.plugin.add(w);var x=b;class E extends o.Component{constructor(e){super(e),this._tickRef=o.createRef()}componentDidMount(){this._tickInstance=x.DOM.create(this._tickRef.current,{value:this.props.value})}componentDidUpdate(){this._tickInstance&&(this._tickInstance.value=this.props.value)}componentWillUnmount(){this._tickInstance&&x.DOM.destroy(this._tickRef.current)}render(){return o.createElement("div",{ref:this._tickRef,className:"tick"},o.createElement("div",{"data-repeat":"true","aria-hidden":"true"},o.createElement("span",{"data-view":"flip"},"Tick")))}}class I extends o.Component{constructor(e){super(e);var t=0;t+=e.countdown.seconds,t+=60*e.countdown.minutes,t+=60*e.countdown.hours*60,t+=24*e.countdown.days*60*60;var r=setInterval(this.updateCountdown.bind(this),1e3);this.state={start:Date.now(),interval:r,total:t,timeLeft:t}}updateCountdown(){var e=Date.now(),t=Math.round((e-this.state.start)/1e3);this.setState({timeLeft:this.state.total-t})}render(){var{timeLeft:e}=this.state,t=e<=0,r=0,n=0,i=0,a=0;return t||(r=Math.floor(e/86400),n=Math.floor(e%86400/3600),i=Math.floor(e%3600/60),a=Math.floor(e%60)),o.createElement(o.Fragment,null,t?o.createElement("p",{style:{color:"darkred"}},(0,y.S)("You just missed the deadline!")):o.createElement("div",{className:"wprm-admin-dashboard-marketing-countdown"},o.createElement("div",{className:"wprm-admin-dashboard-marketing-countdown-unit"},o.createElement(E,{value:r})," ",1===r?(0,y.S)("day"):(0,y.S)("days")),o.createElement("div",{className:"wprm-admin-dashboard-marketing-countdown-unit"},o.createElement(E,{value:String(n).padStart(2,"0")})," ",1===n?(0,y.S)("hour"):(0,y.S)("hours")),o.createElement("div",{className:"wprm-admin-dashboard-marketing-countdown-unit"},o.createElement(E,{value:String(i).padStart(2,"0")})," ",1===i?(0,y.S)("minute"):(0,y.S)("minutes")),o.createElement("div",{className:"wprm-admin-dashboard-marketing-countdown-unit"},o.createElement(E,{value:String(a).padStart(2,"0")})," ",1===a?(0,y.S)("second"):(0,y.S)("seconds")),o.createElement("div",{className:"wprm-admin-dashboard-marketing-countdown-label"},(0,y.S)("left to grab the discount!"))))}}class S extends o.Component{render(){var{campaign:e}=this.props;return e.hasOwnProperty("dismissed")&&e.dismissed?null:o.createElement("div",{className:"wprm-admin-dashboard-marketing"},o.createElement(g,{title:e.page_title},o.createElement("p",{dangerouslySetInnerHTML:{__html:e.page_text}}),o.createElement(I,{countdown:e.countdown}),o.createElement("div",{class:"wprm-admin-dashboard-marketing-actions"},o.createElement("a",{className:"button button-primary",href:e.url,target:"_blank"},(0,y.S)("Learn more about the sale")," 🎉"),o.createElement("a",{href:"#",class:"wprm-admin-dashboard-marketing-actions-remove",onClick:()=>{v.Z.general.dismissNotice("dashboard_".concat(e.id)),e.dismissed=!0,this.forceUpdate()}},(0,y.S)("Remove Notice")))))}}var M=e=>o.createElement("div",{className:"wprm-admin-dashboard-block-footer-container"},e.hasOwnProperty("title")&&o.createElement("div",{className:"wprm-admin-dashboard-block-footer-title"},e.title),o.createElement("div",{className:"wprm-admin-dashboard-block-footer"},e.children)),O=r(67127),k=e=>o.createElement("label",{className:"wprm-admin-dashboard-toggle-container"},o.createElement(O.Z,{className:"wprm-admin-dashboard-toggle",checked:e.value,onChange:t=>e.onChange(t.target.checked)}),o.createElement("span",{className:"wprm-admin-dashboard-toggle-label"},e.children)),j=e=>o.createElement(o.Fragment,null,o.createElement("p",null,(0,y.S)("Track different visitor actions related to recipes.")," ",(0,y.S)("Find out what recipes visitors are interacting with, what affiliate links are getting clicked on, and more...")),o.createElement(k,{value:!1,onChange:()=>{e.onEnable()}},(0,y.S)("Enable Analytics"))),T=r(34133),D=r(71629),A=r.n(D),_=r(64403),N=r.n(_),P=r(81668),C=r(63774),L=r.n(C),R=r(86901),B=r.n(R),U=r(81027),z=r.n(U),H=r(10442),G=r.n(H),W=r(9338),q=r.n(W),Z=function(e){return 0===e?0:e>0?1:-1},F=function(e){return q()(e)&&e.indexOf("%")===e.length-1},V=function(e){return G()(e)&&!z()(e)},J=function(e){return V(e)||q()(e)},Y=0,X=function(e){var t=++Y;return"".concat(e||"").concat(t)},Q=function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!V(e)&&!q()(e))return n;if(F(e)){var o=e.indexOf("%");r=t*parseFloat(e.slice(0,o))/100}else r=+e;return z()(r)&&(r=n),i&&r>t&&(r=t),r},$=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},K=function(e,t){return V(e)&&V(t)?function(r){return e+r*(t-e)}:function(){return t}};function ee(e,t,r){return e&&e.length?e.find((function(e){return e&&("function"==typeof t?t(e):L()(e,t))===r})):null}var te=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i]};function re(e){return(re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ne(){return(ne=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ie(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function oe(e,t){return(oe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ae(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ue(e);if(t){var i=ue(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ce(this,r)}}function ce(e,t){return!t||"object"!==re(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ue(e){return(ue=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var se=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&oe(e,t)}(a,e);var t,r,n,i=ae(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).handleResize=void 0,t.mounted=void 0,t.containerRef=void 0,t.updateDimensionsImmediate=function(){if(t.mounted){var e=t.getContainerSize();if(e){var r=t.state,n=r.containerWidth,i=r.containerHeight,o=e.containerWidth,a=e.containerHeight;o===n&&a===i||t.setState({containerWidth:o,containerHeight:a})}}},t.state={containerWidth:-1,containerHeight:-1},t.handleResize=e.debounce>0?A()(t.updateDimensionsImmediate,e.debounce):t.updateDimensionsImmediate,t.containerRef=o.createRef(),t}return t=a,(r=[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.getContainerSize();e&&this.setState(e)}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"getContainerSize",value:function(){return this.containerRef.current?{containerWidth:this.containerRef.current.clientWidth,containerHeight:this.containerRef.current.clientHeight}:null}},{key:"renderChart",value:function(){var e=this.state,t=e.containerWidth,r=e.containerHeight;if(t<0||r<0)return null;var n=this.props,i=n.aspect,a=n.width,c=n.height,u=n.minWidth,s=n.minHeight,l=n.maxHeight,f=n.children;te(F(a)||F(c),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",a,c),te(!i||i>0,"The aspect(%s) must be greater than zero.",i);var p=F(a)?t:a,d=F(c)?r:c;return i&&i>0&&(p?d=p/i:d&&(p=d*i),l&&d>l&&(d=l)),te(p>0||d>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",p,d,a,c,u,s,i),o.cloneElement(f,{width:p,height:d})}},{key:"render",value:function(){var e=this.props,t=e.minWidth,r=e.minHeight,n=e.width,i=e.height,a=e.maxHeight,c=e.id,u=e.className,s={width:n,height:i,minWidth:t,minHeight:r,maxHeight:a};return o.createElement(P.ZP,{handleWidth:!0,handleHeight:!0,onResize:this.handleResize,targetRef:this.containerRef},o.createElement("div",ne({},null!=c?{id:"".concat(c)}:{},{className:N()("recharts-responsive-container",u),style:s,ref:this.containerRef}),this.renderChart()))}}])&&ie(t.prototype,r),n&&ie(t,n),a}(o.Component);se.defaultProps={width:"100%",height:"100%",debounce:0};var le=r(13485),fe=r.n(le),pe=r(77106),de=r.n(pe),he=r(46423),me=r.n(he),ve=r(73804),ye=r.n(ve),ge=r(5251),be=r.n(ge),we=r(6934),xe=r.n(we),Ee=r(14847),Ie=r.n(Ee),Se=r(47563),Me=r.n(Se),Oe=r(11006),ke=r.n(Oe);function je(e){return(je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Te=["viewBox","children"],De=["className","color","height","id","lang","max","media","method","min","name","style","target","type","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Ae=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],_e=function(e,t,r){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var n=e;if((0,o.isValidElement)(e)&&(n=e.props),!ke()(n))return null;var i={};return Object.keys(n).forEach((function(e){(De.includes(e)||r&&Te.includes(e)||t&&Ae.includes(e))&&(i[e]=n[e])})),i},Ne=function(e,t){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if((0,o.isValidElement)(e)&&(r=e.props),!ke()(r))return null;var n={};return Object.keys(r).forEach((function(e){Ae.includes(e)&&(n[e]=t||function(t){return r[e](r,t)})})),n},Pe=function(e,t,r){if(!ke()(e)||"object"!==je(e))return null;var n=null;return Object.keys(e).forEach((function(i){var o=e[i];Ae.includes(i)&&"function"==typeof o&&(n||(n={}),n[i]=function(e,t,r){return function(n){return e(t,r,n),null}}(o,t,r))})),n};function Ce(){return(Ce=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Le(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Re(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,c=e.style,u=Le(e,["children","width","height","viewBox","className","style"]),s=i||{width:r,height:n,x:0,y:0},l=N()("recharts-surface",a);return o.createElement("svg",Ce({},_e(u,!0,!0),{className:l,width:r,height:n,style:c,viewBox:"".concat(s.x," ").concat(s.y," ").concat(s.width," ").concat(s.height),version:"1.1"}),t)}function Be(){return(Be=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Ue(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function ze(e){var t=e.children,r=e.className,n=Ue(e,["children","className"]),i=N()("recharts-layer",r);return o.createElement("g",Be({className:i},_e(n,!0)),t)}var He=r(36766),Ge=r.n(He),We=r(2652),qe=r.n(We),Ze=r(44287),Fe=r(61666),Ve=r.n(Fe);function Je(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1,n=function n(i){r<0&&(r=i),i-r>t?(e(i),r=-1):Ve()(n)};Ve()(n)}function Ye(e){return(Ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xe(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Qe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qe(e,t)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $e(){var e=function(){return null},t=!1,r=function r(n){if(!t){if(Array.isArray(n)){if(!n.length)return;var i=Xe(n),o=i[0],a=i.slice(1);return"number"==typeof o?void Je(r.bind(null,a),o):(r(o),void Je(r.bind(null,a)))}"object"===Ye(n)&&e(n),"function"==typeof n&&n()}};return{stop:function(){t=!0},start:function(e){t=!1,r(e)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}}function Ke(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function et(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(r),!0).forEach((function(t){tt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ke(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function tt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var rt=["Webkit","Moz","O","ms"],nt=["-webkit-","-moz-","-o-","-ms-"],it=["transform","transformOrigin","transition"],ot=function(e){return e},at=function(e,t){return Object.keys(t).reduce((function(r,n){return et(et({},r),{},tt({},n,e(n,t[n])))}),{})},ct=function(e){return Object.keys(e).reduce((function(e,t){return et(et({},e),function(e,t){if(-1===it.indexOf(e))return tt({},e,t);var r="transition"===e,n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),i=t;return rt.reduce((function(e,o,a){return r&&(i=t.replace(/(transform|transform-origin)/gim,"".concat(nt[a],"$1"))),et(et({},e),{},tt({},o+n,i))}),{})}(t,e[t]))}),e)},ut=function(e,t,r){return e.map((function(e){return"".concat((n=e,n.replace(/([A-Z])/g,(function(e){return"-".concat(e.toLowerCase())})))," ").concat(t,"ms ").concat(r);var n})).join(",")};function st(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(u){i=!0,o=u}finally{try{n||null==c.return||c.return()}finally{if(i)throw o}}return r}(e,t)||ft(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lt(e){return function(e){if(Array.isArray(e))return pt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||ft(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ft(e,t){if(e){if("string"==typeof e)return pt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?pt(e,t):void 0}}function pt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var dt=1e-4,ht=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},mt=function(e,t){return e.map((function(e,r){return e*Math.pow(t,r)})).reduce((function(e,t){return e+t}))},vt=function(e,t){return function(r){var n=ht(e,t);return mt(n,r)}},yt=function(e,t){return function(r){var n=ht(e,t),i=[].concat(lt(n.map((function(e,t){return e*t})).slice(1)),[0]);return mt(i,r)}},gt=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],i=t[1],o=t[2],a=t[3];if(1===t.length)switch(t[0]){case"linear":n=0,i=0,o=1,a=1;break;case"ease":n=.25,i=.1,o=.25,a=1;break;case"ease-in":n=.42,i=0,o=1,a=1;break;case"ease-out":n=.42,i=0,o=.58,a=1;break;case"ease-in-out":n=0,i=0,o=.58,a=1;break;default:var c=t[0].split("(");if("cubic-bezier"===c[0]&&4===c[1].split(")")[0].split(",").length){var u=c[1].split(")")[0].split(",").map((function(e){return parseFloat(e)})),s=st(u,4);n=s[0],i=s[1],o=s[2],a=s[3]}}[n,o,i,a].every((function(e){return"number"==typeof e&&e>=0&&e<=1}));var l=vt(n,o),f=vt(i,a),p=yt(n,o),d=function(e){return e>1?1:e<0?0:e},h=function(e){for(var t=e>1?1:e,r=t,n=0;n<8;++n){var i=l(r)-t,o=p(r);if(Math.abs(i-t)<dt||o<dt)return f(r);r=d(r-i/o)}return f(r)};return h.isStepper=!1,h},bt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,r=void 0===t?100:t,n=e.damping,i=void 0===n?8:n,o=e.dt,a=void 0===o?17:o,c=function(e,t,n){var o=n+(-(e-t)*r-n*i)*a/1e3,c=n*a/1e3+e;return Math.abs(c-t)<dt&&Math.abs(o)<dt?[t,0]:[c,o]};return c.isStepper=!0,c.dt=a,c};function wt(e){return function(e){if(Array.isArray(e))return Ot(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Mt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Et(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(r),!0).forEach((function(t){It(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function It(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function St(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(u){i=!0,o=u}finally{try{n||null==c.return||c.return()}finally{if(i)throw o}}return r}(e,t)||Mt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mt(e,t){if(e){if("string"==typeof e)return Ot(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ot(e,t):void 0}}function Ot(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var kt=function(e,t,r){return e+(t-e)*r},jt=function(e){return e.from!==e.to},Tt=function e(t,r,n){var i=at((function(e,r){if(jt(r)){var n=St(t(r.from,r.to,r.velocity),2),i=n[0],o=n[1];return Et(Et({},r),{},{from:i,velocity:o})}return r}),r);return n<1?at((function(e,t){return jt(t)?Et(Et({},t),{},{velocity:kt(t.velocity,i[e].velocity,n),from:kt(t.from,i[e].from,n)}):t}),r):e(t,i,n-1)},Dt=function(e,t,r,n,i){var o,a,c,u,s=(o=e,a=t,[Object.keys(o),Object.keys(a)].reduce((function(e,t){return e.filter((function(e){return t.includes(e)}))}))),l=s.reduce((function(r,n){return Et(Et({},r),{},It({},n,[e[n],t[n]]))}),{}),f=s.reduce((function(r,n){return Et(Et({},r),{},It({},n,{from:e[n],velocity:0,to:t[n]}))}),{}),p=-1,d=function(){return null};return d=r.isStepper?function(n){c||(c=n);var o=(n-c)/r.dt;f=Tt(r,f,o),i(Et(Et(Et({},e),t),at((function(e,t){return t.from}),f))),c=n,Object.values(f).filter(jt).length&&(p=Ve()(d))}:function(o){u||(u=o);var a=(o-u)/n,c=at((function(e,t){return kt.apply(void 0,wt(t).concat([r(a)]))}),l);if(i(Et(Et(Et({},e),t),c)),a<1)p=Ve()(d);else{var s=at((function(e,t){return kt.apply(void 0,wt(t).concat([r(1)]))}),l);i(Et(Et(Et({},e),t),s))}},function(){return Ve()(d),function(){(0,Fe.cancel)(p)}}};function At(e){return(At="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _t(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Nt(e){return function(e){if(Array.isArray(e))return Pt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Pt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ct(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Lt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ct(Object(r),!0).forEach((function(t){Rt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ct(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Rt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ut(e,t){return(Ut=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function zt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Wt(e);if(t){var i=Wt(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Ht(this,r)}}function Ht(e,t){return!t||"object"!==At(t)&&"function"!=typeof t?Gt(e):t}function Gt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wt(e){return(Wt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var qt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ut(e,t)}(a,e);var t,r,n,i=zt(a);function a(e,t){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var n=(r=i.call(this,e,t)).props,o=n.isActive,c=n.attributeName,u=n.from,s=n.to,l=n.steps,f=n.children;if(r.handleStyleChange=r.handleStyleChange.bind(Gt(r)),r.changeStyle=r.changeStyle.bind(Gt(r)),!o)return r.state={style:{}},"function"==typeof f&&(r.state={style:s}),Ht(r);if(l&&l.length)r.state={style:l[0].style};else if(u){if("function"==typeof f)return r.state={style:u},Ht(r);r.state={style:c?Rt({},c,u):u}}else r.state={style:{}};return r}return t=a,(r=[{key:"componentDidMount",value:function(){var e=this.props,t=e.isActive,r=e.canBegin;this.mounted=!0,t&&r&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.isActive,n=t.canBegin,i=t.attributeName,o=t.shouldReAnimate;if(n)if(r){if(!((0,Ze.deepEqual)(e.to,this.props.to)&&e.canBegin&&e.isActive)){var a=!e.canBegin||!e.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var c=a||o?this.props.from:e.to;if(this.state&&this.state.style){var u={style:i?Rt({},i,c):c};(i&&this.state.style[i]!==c||!i&&this.state.style!==c)&&this.setState(u)}this.runAnimation(Lt(Lt({},this.props),{},{from:c,begin:0}))}}else{var s={style:i?Rt({},i,this.props.to):this.props.to};this.state&&this.state.style&&(i&&this.state.style[i]!==this.props.to||!i&&this.state.style!==this.props.to)&&this.setState(s)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1,this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation()}},{key:"runJSAnimation",value:function(e){var t=this,r=e.from,n=e.to,i=e.duration,o=e.easing,a=e.begin,c=e.onAnimationEnd,u=e.onAnimationStart,s=Dt(r,n,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0];if("string"==typeof n)switch(n){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return gt(n);case"spring":return bt();default:if("cubic-bezier"===n.split("(")[0])return gt(n)}return"function"==typeof n?n:null}(o),i,this.changeStyle);this.manager.start([u,a,function(){t.stopJSAnimation=s()},i,c])}},{key:"runStepAnimation",value:function(e){var t=this,r=e.steps,n=e.begin,i=e.onAnimationStart,o=r[0],a=o.style,c=o.duration,u=void 0===c?0:c;return this.manager.start([i].concat(Nt(r.reduce((function(e,n,i){if(0===i)return e;var o=n.duration,a=n.easing,c=void 0===a?"ease":a,u=n.style,s=n.properties,l=n.onAnimationEnd,f=i>0?r[i-1]:n,p=s||Object.keys(u);if("function"==typeof c||"spring"===c)return[].concat(Nt(e),[t.runJSAnimation.bind(t,{from:f.style,to:u,duration:o,easing:c}),o]);var d=ut(p,o,c),h=Lt(Lt(Lt({},f.style),u),{},{transition:d});return[].concat(Nt(e),[h,o,l]).filter(ot)}),[a,Math.max(u,n)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=$e());var t=e.begin,r=e.duration,n=e.attributeName,i=e.to,o=e.easing,a=e.onAnimationStart,c=e.onAnimationEnd,u=e.steps,s=e.children,l=this.manager;if(this.unSubscribe=l.subscribe(this.handleStyleChange),"function"!=typeof o&&"function"!=typeof s&&"spring"!==o)if(u.length>1)this.runStepAnimation(e);else{var f=n?Rt({},n,i):i,p=ut(Object.keys(f),r,o);l.start([a,t,Lt(Lt({},f),{},{transition:p}),r,c])}else this.runJSAnimation(e)}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"render",value:function(){var e=this.props,t=e.children,r=(e.begin,e.duration,e.attributeName,e.easing,e.isActive),n=(e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart,_t(e,["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"])),i=o.Children.count(t),a=ct(this.state.style);if("function"==typeof t)return t(a);if(!r||0===i)return t;var c=function(e){var t=e.props,r=t.style,i=void 0===r?{}:r,c=t.className;return(0,o.cloneElement)(e,Lt(Lt({},n),{},{style:Lt(Lt({},i),a),className:c}))};return 1===i?c(o.Children.only(t)):o.createElement("div",null,o.Children.map(t,(function(e){return c(e)})))}}])&&Bt(t.prototype,r),n&&Bt(t,n),a}(o.PureComponent);qt.displayName="Animate",qt.propTypes={from:qe().oneOfType([qe().object,qe().string]),to:qe().oneOfType([qe().object,qe().string]),attributeName:qe().string,duration:qe().number,begin:qe().number,easing:qe().oneOfType([qe().string,qe().func]),steps:qe().arrayOf(qe().shape({duration:qe().number.isRequired,style:qe().object.isRequired,easing:qe().oneOfType([qe().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),qe().func]),properties:qe().arrayOf("string"),onAnimationEnd:qe().func})),children:qe().oneOfType([qe().node,qe().func]),isActive:qe().bool,canBegin:qe().bool,onAnimationEnd:qe().func,shouldReAnimate:qe().bool,onAnimationStart:qe().func,onAnimationReStart:qe().func},qt.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};var Zt=qt,Ft=r(33092);function Vt(e){return(Vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Jt(){return(Jt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Yt(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Xt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Qt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xt(Object(r),!0).forEach((function(t){$t(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function er(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function tr(e,t){return(tr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function rr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ir(e);if(t){var i=ir(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return nr(this,r)}}function nr(e,t){return!t||"object"!==Vt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ir(e){return(ir=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}void 0===Number.isFinite&&(Number.isFinite=function(e){return"number"==typeof e&&isFinite(e)});var or=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.steps,r=e.duration;return t&&t.length?t.reduce((function(e,t){return e+(Number.isFinite(t.duration)&&t.duration>0?t.duration:0)}),0):Number.isFinite(r)?r:0},ar=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&tr(e,t)}(a,e);var t,r,n,i=rr(a);function a(){var e;Kt(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return(e=i.call.apply(i,[this].concat(r))).state={isActive:!1},e.handleEnter=function(t,r){var n=e.props,i=n.appearOptions,o=n.enterOptions;e.handleStyleActive(r?i:o)},e.handleExit=function(){e.handleStyleActive(e.props.leaveOptions)},e}return t=a,(r=[{key:"handleStyleActive",value:function(e){if(e){var t=e.onAnimationEnd?function(){e.onAnimationEnd()}:null;this.setState(Qt(Qt({},e),{},{onAnimationEnd:t,isActive:!0}))}}},{key:"parseTimeout",value:function(){var e=this.props,t=e.appearOptions,r=e.enterOptions,n=e.leaveOptions;return or(t)+or(r)+or(n)}},{key:"render",value:function(){var e=this,t=this.props,r=t.children,n=(t.appearOptions,t.enterOptions,t.leaveOptions,Yt(t,["children","appearOptions","enterOptions","leaveOptions"]));return o.createElement(Ft.Transition,Jt({},n,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),(function(){return o.createElement(Zt,e.state,o.Children.only(r))}))}}])&&er(t.prototype,r),n&&er(t,n),a}(o.Component);ar.propTypes={appearOptions:qe().object,enterOptions:qe().object,leaveOptions:qe().object,children:qe().element};var cr=ar;function ur(e){var t=e.component,r=e.children,n=e.appear,i=e.enter,a=e.leave;return o.createElement(Ft.TransitionGroup,{component:t},o.Children.map(r,(function(e,t){return o.createElement(cr,{appearOptions:n,enterOptions:i,leaveOptions:a,key:"child-".concat(t)},e)})))}ur.propTypes={appear:qe().object,enter:qe().object,leave:qe().object,children:qe().oneOfType([qe().array,qe().element]),component:qe().any},ur.defaultProps={component:"span"};var sr=Zt;function lr(e){return(lr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(u){i=!0,o=u}finally{try{n||null==c.return||c.return()}finally{if(i)throw o}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return pr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function dr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function hr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dr(Object(r),!0).forEach((function(t){mr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function mr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function gr(e,t){return(gr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function br(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=xr(e);if(t){var i=xr(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return wr(this,r)}}function wr(e,t){return!t||"object"!==lr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function xr(e){return(xr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Er(e){return B()(e)&&J(e[0])&&J(e[1])?e.join(" ~ "):e}var Ir=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&gr(e,t)}(a,e);var t,r,n,i=br(a);function a(){return vr(this,a),i.apply(this,arguments)}return t=a,(r=[{key:"renderContent",value:function(){var e=this.props,t=e.payload,r=e.separator,n=e.formatter,i=e.itemStyle,a=e.itemSorter;if(t&&t.length){var c=(a?be()(t,a):t).map((function(e,a){if("none"===e.type)return null;var c=hr({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},i),u=e.formatter||n||Er,s=e.name,l=e.value;if(u){var f=u(l,s,e,a,t);if(Array.isArray(f)){var p=fr(f,2);l=p[0],s=p[1]}else l=f}return o.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(a),style:c},J(s)?o.createElement("span",{className:"recharts-tooltip-item-name"},s):null,J(s)?o.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,o.createElement("span",{className:"recharts-tooltip-item-value"},l),o.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))}));return o.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},c)}return null}},{key:"render",value:function(){var e=this.props,t=e.wrapperClassName,r=e.contentStyle,n=e.labelClassName,i=e.labelStyle,a=e.label,c=e.labelFormatter,u=e.payload,s=hr({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},r),l=hr({margin:0},i),f=!Ie()(a),p=f?a:"",d=N()("recharts-default-tooltip",t),h=N()("recharts-tooltip-label",n);return f&&c&&(p=c(a,u)),o.createElement("div",{className:d,style:s},o.createElement("p",{className:h,style:l},o.isValidElement(p)?p:"".concat(p)),this.renderContent())}}])&&yr(t.prototype,r),n&&yr(t,n),a}(o.PureComponent);Ir.displayName="DefaultTooltipContent",Ir.defaultProps={separator:" : ",contentStyle:{},itemStyle:{},labelStyle:{}};var Sr={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(e){return Sr[e]},set:function(e,t){if("string"==typeof e)Sr[e]=t;else{var r=Object.keys(e);r&&r.length&&r.forEach((function(t){Sr[t]=e[t]}))}}};function Mr(e){return(Mr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Or(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function kr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Or(Object(r),!0).forEach((function(t){jr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Or(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function jr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ar(e,t){return(Ar=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _r(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Pr(e);if(t){var i=Pr(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Nr(this,r)}}function Nr(e,t){return!t||"object"!==Mr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Pr(e){return(Pr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Cr="recharts-tooltip-wrapper";function Lr(e){return e.dataKey}var Rr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ar(e,t)}(a,e);var t,r,n,i=_r(a);function a(){var e;Tr(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return(e=i.call.apply(i,[this].concat(r))).state={boxWidth:-1,boxHeight:-1},e.wrapperNode=void 0,e.getTranslate=function(t){var r=t.key,n=t.tooltipDimension,i=t.viewBoxDimension,o=e.props,a=o.allowEscapeViewBox,c=o.coordinate,u=o.offset,s=o.position,l=o.viewBox;if(s&&V(s[r]))return s[r];var f=c[r]-n-u,p=c[r]+u;return a[r]?p:c[r]+n+u>l[r]+i?Math.max(f,l[r]):Math.max(p,l[r])},e}return t=a,(r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,r=e.boxHeight;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-t)>1||Math.abs(n.height-r)>1)&&this.setState({boxWidth:n.width,boxHeight:n.height})}else-1===t&&-1===r||this.setState({boxWidth:-1,boxHeight:-1})}},{key:"render",value:function(){var e,t,r,n=this,i=this.props,a=i.payload,c=i.isAnimationActive,u=i.animationDuration,s=i.animationEasing,l=i.filterNull,f=function(e,t){return!0===e?Ge()(t,Lr):me()(e)?Ge()(t,e):t}(i.payloadUniqBy,l&&a&&a.length?a.filter((function(e){return!Ie()(e.value)})):a),p=f&&f.length,d=this.props,h=d.content,m=d.viewBox,v=d.coordinate,y=d.position,g=d.active,b=kr({pointerEvents:"none",visibility:g&&p?"visible":"hidden",position:"absolute",top:0,left:0},d.wrapperStyle);if(y&&V(y.x)&&V(y.y))t=y.x,r=y.y;else{var w=this.state,x=w.boxWidth,E=w.boxHeight;x>0&&E>0&&v?(t=this.getTranslate({key:"x",tooltipDimension:x,viewBoxDimension:m.width}),r=this.getTranslate({key:"y",tooltipDimension:E,viewBoxDimension:m.height})):b.visibility="hidden"}b=kr(kr({},ct({transform:this.props.useTranslate3d?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")})),b),c&&g&&(b=kr(kr({},ct({transition:"transform ".concat(u,"ms ").concat(s)})),b));var I=N()(Cr,(jr(e={},"".concat(Cr,"-right"),V(t)&&v&&V(v.x)&&t>=v.x),jr(e,"".concat(Cr,"-left"),V(t)&&v&&V(v.x)&&t<v.x),jr(e,"".concat(Cr,"-bottom"),V(r)&&v&&V(v.y)&&r>=v.y),jr(e,"".concat(Cr,"-top"),V(r)&&v&&V(v.y)&&r<v.y),e));return o.createElement("div",{className:I,style:b,ref:function(e){n.wrapperNode=e}},function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):me()(e)?o.createElement(e,t):o.createElement(Ir,t)}(h,kr(kr({},this.props),{},{payload:f})))}}])&&Dr(t.prototype,r),n&&Dr(t,n),a}(o.PureComponent);Rr.displayName="Tooltip",Rr.defaultProps={active:!1,allowEscapeViewBox:{x:!1,y:!1},offset:10,viewBox:{x1:0,x2:0,y1:0,y2:0},coordinate:{x:0,y:0},cursorStyle:{},separator:" : ",wrapperStyle:{},contentStyle:{},itemStyle:{},labelStyle:{},cursor:!0,trigger:"hover",isAnimationActive:!Sr.isSsr,animationEasing:"ease",animationDuration:400,filterNull:!0,useTranslate3d:!1};var Br=r(21528),Ur=r.n(Br),zr=(Math.abs,Math.atan2,Math.cos,Math.max,Math.min,Math.sin,Math.sqrt,Math.PI),Hr=2*zr;var Gr={draw:function(e,t){var r=Math.sqrt(t/zr);e.moveTo(r,0),e.arc(0,0,r,0,Hr)}},Wr={draw:function(e,t){var r=Math.sqrt(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},qr=Math.sqrt(1/3),Zr=2*qr,Fr={draw:function(e,t){var r=Math.sqrt(t/Zr),n=r*qr;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Vr={draw:function(e,t){var r=Math.sqrt(t),n=-r/2;e.rect(n,n,r,r)}},Jr=Math.sin(zr/10)/Math.sin(7*zr/10),Yr=Math.sin(Hr/10)*Jr,Xr=-Math.cos(Hr/10)*Jr,Qr={draw:function(e,t){var r=Math.sqrt(.8908130915292852*t),n=Yr*r,i=Xr*r;e.moveTo(0,-r),e.lineTo(n,i);for(var o=1;o<5;++o){var a=Hr*o/5,c=Math.cos(a),u=Math.sin(a);e.lineTo(u*r,-c*r),e.lineTo(c*n-u*i,u*n+c*i)}e.closePath()}},$r=Math.sqrt(3),Kr={draw:function(e,t){var r=-Math.sqrt(t/(3*$r));e.moveTo(0,2*r),e.lineTo(-$r*r,-r),e.lineTo($r*r,-r),e.closePath()}},en=-.5,tn=Math.sqrt(3)/2,rn=1/Math.sqrt(12),nn=3*(rn/2+1),on={draw:function(e,t){var r=Math.sqrt(t/nn),n=r/2,i=r*rn,o=n,a=r*rn+r,c=-o,u=a;e.moveTo(n,i),e.lineTo(o,a),e.lineTo(c,u),e.lineTo(en*n-tn*i,tn*n+en*i),e.lineTo(en*o-tn*a,tn*o+en*a),e.lineTo(en*c-tn*u,tn*c+en*u),e.lineTo(en*n+tn*i,en*i-tn*n),e.lineTo(en*o+tn*a,en*a-tn*o),e.lineTo(en*c+tn*u,en*u-tn*c),e.closePath()}};const an=Math.PI,cn=2*an,un=1e-6,sn=cn-un;function ln(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function fn(){return new ln}ln.prototype=fn.prototype={constructor:ln,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,r,n){this._+="Q"+ +e+","+ +t+","+(this._x1=+r)+","+(this._y1=+n)},bezierCurveTo:function(e,t,r,n,i,o){this._+="C"+ +e+","+ +t+","+ +r+","+ +n+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,r,n,i){e=+e,t=+t,r=+r,n=+n,i=+i;var o=this._x1,a=this._y1,c=r-e,u=n-t,s=o-e,l=a-t,f=s*s+l*l;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(f>un)if(Math.abs(l*c-u*s)>un&&i){var p=r-o,d=n-a,h=c*c+u*u,m=p*p+d*d,v=Math.sqrt(h),y=Math.sqrt(f),g=i*Math.tan((an-Math.acos((h+f-m)/(2*v*y)))/2),b=g/y,w=g/v;Math.abs(b-1)>un&&(this._+="L"+(e+b*s)+","+(t+b*l)),this._+="A"+i+","+i+",0,0,"+ +(l*p>s*d)+","+(this._x1=e+w*c)+","+(this._y1=t+w*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,r,n,i,o){e=+e,t=+t,o=!!o;var a=(r=+r)*Math.cos(n),c=r*Math.sin(n),u=e+a,s=t+c,l=1^o,f=o?n-i:i-n;if(r<0)throw new Error("negative radius: "+r);null===this._x1?this._+="M"+u+","+s:(Math.abs(this._x1-u)>un||Math.abs(this._y1-s)>un)&&(this._+="L"+u+","+s),r&&(f<0&&(f=f%cn+cn),f>sn?this._+="A"+r+","+r+",0,1,"+l+","+(e-a)+","+(t-c)+"A"+r+","+r+",0,1,"+l+","+(this._x1=u)+","+(this._y1=s):f>un&&(this._+="A"+r+","+r+",0,"+ +(f>=an)+","+l+","+(this._x1=e+r*Math.cos(i))+","+(this._y1=t+r*Math.sin(i))))},rect:function(e,t,r,n){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +r+"v"+ +n+"h"+-r+"Z"},toString:function(){return this._}};var pn=fn;function dn(e){return function(){return e}}function hn(e){return(hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mn(){return(mn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function vn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function gn(e,t){return(gn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function bn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=xn(e);if(t){var i=xn(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return wn(this,r)}}function wn(e,t){return!t||"object"!==hn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function xn(e){return(xn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var En={symbolCircle:Gr,symbolCross:Wr,symbolDiamond:Fr,symbolSquare:Vr,symbolStar:Qr,symbolTriangle:Kr,symbolWye:on},In=Math.PI/180,Sn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&gn(e,t)}(a,e);var t,r,n,i=bn(a);function a(){return vn(this,a),i.apply(this,arguments)}return t=a,(r=[{key:"getPath",value:function(){var e=this.props,t=e.size,r=e.sizeType,n=e.type,i=function(e){var t="symbol".concat(Ur()(e));return En[t]||Gr}(n);return function(e,t){var r=null;function n(){var n;if(r||(r=n=pn()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),n)return r=null,n+""||null}return e="function"==typeof e?e:dn(e||Gr),t="function"==typeof t?t:dn(void 0===t?64:+t),n.type=function(t){return arguments.length?(e="function"==typeof t?t:dn(t),n):e},n.size=function(e){return arguments.length?(t="function"==typeof e?e:dn(+e),n):t},n.context=function(e){return arguments.length?(r=null==e?null:e,n):r},n}().type(i).size(function(e,t,r){if("area"===t)return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var n=18*In;return 1.25*e*e*(Math.tan(n)-Math.tan(2*n)*Math.pow(Math.tan(n),2));case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}}(t,r,n))()}},{key:"render",value:function(){var e=this.props,t=e.className,r=e.cx,n=e.cy,i=e.size;return r===+r&&n===+n&&i===+i?o.createElement("path",mn({},_e(this.props,!0),{className:N()("recharts-symbols",t),transform:"translate(".concat(r,", ").concat(n,")"),d:this.getPath()})):null}}])&&yn(t.prototype,r),n&&yn(t,n),a}(o.PureComponent);function Mn(e){return(Mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function On(){return(On=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function kn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function jn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function An(e,t){return(An=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _n(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Pn(e);if(t){var i=Pn(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Nn(this,r)}}function Nn(e,t){return!t||"object"!==Mn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Pn(e){return(Pn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Sn.defaultProps={type:"circle",size:64,sizeType:"area"},Sn.registerSymbol=function(e,t){En["symbol".concat(Ur()(e))]=t};var Cn=32,Ln=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&An(e,t)}(a,e);var t,r,n,i=_n(a);function a(){return Tn(this,a),i.apply(this,arguments)}return t=a,(r=[{key:"renderIcon",value:function(e){var t=this.props.inactiveColor,r=16,n=Cn/6,i=Cn/3,a=e.inactive?t:e.color;if("plainline"===e.type)return o.createElement("line",{strokeWidth:4,fill:"none",stroke:a,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:r,x2:Cn,y2:r,className:"recharts-legend-icon"});if("line"===e.type)return o.createElement("path",{strokeWidth:4,fill:"none",stroke:a,d:"M0,".concat(r,"h").concat(i,"\n A").concat(n,",").concat(n,",0,1,1,").concat(2*i,",").concat(r,"\n H").concat(Cn,"M").concat(2*i,",").concat(r,"\n A").concat(n,",").concat(n,",0,1,1,").concat(i,",").concat(r),className:"recharts-legend-icon"});if("rect"===e.type)return o.createElement("path",{stroke:"none",fill:a,d:"M0,".concat(4,"h").concat(Cn,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(o.isValidElement(e.legendIcon)){var c=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kn(Object(r),!0).forEach((function(t){jn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e);return delete c.legendIcon,o.cloneElement(e.legendIcon,c)}return o.createElement(Sn,{fill:a,cx:r,cy:r,size:Cn,sizeType:"diameter",type:e.type})}},{key:"renderItems",value:function(){var e=this,t=this.props,r=t.payload,n=t.iconSize,i=t.layout,a=t.formatter,c=t.inactiveColor,u={x:0,y:0,width:Cn,height:Cn},s={display:"horizontal"===i?"inline-block":"block",marginRight:10},l={display:"inline-block",verticalAlign:"middle",marginRight:4};return r.map((function(t,r){var i,f=t.formatter||a,p=N()((jn(i={"recharts-legend-item":!0},"legend-item-".concat(r),!0),jn(i,"inactive",t.inactive),i));if("none"===t.type)return null;var d=t.inactive?c:t.color;return o.createElement("li",On({className:p,style:s,key:"legend-item-".concat(r)},Pe(e.props,t,r)),o.createElement(Re,{width:n,height:n,viewBox:u,style:l},e.renderIcon(t)),o.createElement("span",{className:"recharts-legend-item-text",style:{color:d}},f?f(t.value,t,r):t.value))}))}},{key:"render",value:function(){var e=this.props,t=e.payload,r=e.layout,n=e.align;if(!t||!t.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===r?n:"left"};return o.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}])&&Dn(t.prototype,r),n&&Dn(t,n),a}(o.PureComponent);function Rn(e){return(Rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Bn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Un(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Bn(Object(r),!0).forEach((function(t){zn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function zn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Wn(e,t){return(Wn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function qn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Fn(e);if(t){var i=Fn(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Zn(this,r)}}function Zn(e,t){return!t||"object"!==Rn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Fn(e){return(Fn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Vn(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Jn(e){return e.value}function Yn(e,t){return!0===e?Ge()(t,Jn):me()(e)?Ge()(t,e):t}Ln.displayName="Legend",Ln.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"};var Xn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Wn(e,t)}(a,e);var t,r,n,i=qn(a);function a(){var e;Hn(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return(e=i.call.apply(i,[this].concat(r))).wrapperNode=void 0,e.state={boxWidth:-1,boxHeight:-1},e}return t=a,n=[{key:"getWithHeight",value:function(e,t){var r=e.props.layout;return"vertical"===r&&V(e.props.height)?{height:e.props.height}:"horizontal"===r?{width:e.props.width||t}:null}}],(r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){return this.wrapperNode&&this.wrapperNode.getBoundingClientRect?this.wrapperNode.getBoundingClientRect():null}},{key:"getBBoxSnapshot",value:function(){var e=this.state,t=e.boxWidth,r=e.boxHeight;return t>=0&&r>=0?{width:t,height:r}:null}},{key:"getDefaultPosition",value:function(e){var t,r,n=this.props,i=n.layout,o=n.align,a=n.verticalAlign,c=n.margin,u=n.chartWidth,s=n.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===o&&"vertical"===i?{left:((u||0)-(this.getBBoxSnapshot()||{width:0}).width)/2}:"right"===o?{right:c&&c.right||0}:{left:c&&c.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(r="middle"===a?{top:((s||0)-(this.getBBoxSnapshot()||{height:0}).height)/2}:"bottom"===a?{bottom:c&&c.bottom||0}:{top:c&&c.top||0}),Un(Un({},t),r)}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,r=e.boxHeight,n=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var i=this.wrapperNode.getBoundingClientRect();(Math.abs(i.width-t)>1||Math.abs(i.height-r)>1)&&this.setState({boxWidth:i.width,boxHeight:i.height},(function(){n&&n(i)}))}else-1===t&&-1===r||this.setState({boxWidth:-1,boxHeight:-1},(function(){n&&n(null)}))}},{key:"render",value:function(){var e=this,t=this.props,r=t.content,n=t.width,i=t.height,a=t.wrapperStyle,c=t.payloadUniqBy,u=t.payload,s=Un(Un({position:"absolute",width:n||"auto",height:i||"auto"},this.getDefaultPosition(a)),a);return o.createElement("div",{className:"recharts-legend-wrapper",style:s,ref:function(t){e.wrapperNode=t}},function(e,t){if(o.isValidElement(e))return o.cloneElement(e,t);if(me()(e))return o.createElement(e,t);t.ref;var r=Vn(t,["ref"]);return o.createElement(Ln,r)}(r,Un(Un({},this.props),{},{payload:Yn(c,u)})))}}])&&Gn(t.prototype,r),n&&Gn(t,n),a}(o.PureComponent);function Qn(){}function $n(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Kn(e){this._context=e}function ei(e){this._context=e}function ti(e){this._context=e}function ri(e){this._context=e}function ni(e){this._context=e}function ii(e){return new ni(e)}function oi(e){return e<0?-1:1}function ai(e,t,r){var n=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(n||i<0&&-0),a=(r-e._y1)/(i||n<0&&-0),c=(o*i+a*n)/(n+i);return(oi(o)+oi(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(c))||0}function ci(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function ui(e,t,r){var n=e._x0,i=e._y0,o=e._x1,a=e._y1,c=(o-n)/3;e._context.bezierCurveTo(n+c,i+c*t,o-c,a-c*r,o,a)}function si(e){this._context=e}function li(e){this._context=new fi(e)}function fi(e){this._context=e}function pi(e){this._context=e}function di(e){var t,r,n=e.length-1,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function hi(e,t){this._context=e,this._t=t}Xn.displayName="Legend",Xn.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"},Kn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:$n(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:$n(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},ei.prototype={areaStart:Qn,areaEnd:Qn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:$n(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},ti.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:$n(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},ri.prototype={areaStart:Qn,areaEnd:Qn,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},ni.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},si.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ui(this,this._t0,ci(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,ui(this,ci(this,r=ai(this,e,t)),r);break;default:ui(this,this._t0,r=ai(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}},(li.prototype=Object.create(si.prototype)).point=function(e,t){si.prototype.point.call(this,t,e)},fi.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,o){this._context.bezierCurveTo(t,e,n,r,o,i)}},pi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===r)this._context.lineTo(e[1],t[1]);else for(var n=di(e),i=di(t),o=0,a=1;a<r;++o,++a)this._context.bezierCurveTo(n[0][o],i[0][o],n[1][o],i[1][o],e[a],t[a]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},hi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}}this._x=e,this._y=t}};Array.prototype.slice;function mi(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function vi(e){return e[0]}function yi(e){return e[1]}function gi(e,t){var r=dn(!0),n=null,i=ii,o=null;function a(a){var c,u,s,l=(a=mi(a)).length,f=!1;for(null==n&&(o=i(s=pn())),c=0;c<=l;++c)!(c<l&&r(u=a[c],c,a))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+e(u,c,a),+t(u,c,a));if(s)return o=null,s+""||null}return e="function"==typeof e?e:void 0===e?vi:dn(e),t="function"==typeof t?t:void 0===t?yi:dn(t),a.x=function(t){return arguments.length?(e="function"==typeof t?t:dn(+t),a):e},a.y=function(e){return arguments.length?(t="function"==typeof e?e:dn(+e),a):t},a.defined=function(e){return arguments.length?(r="function"==typeof e?e:dn(!!e),a):r},a.curve=function(e){return arguments.length?(i=e,null!=n&&(o=i(n)),a):i},a.context=function(e){return arguments.length?(null==e?n=o=null:o=i(n=e),a):n},a}function bi(e,t,r){var n=null,i=dn(!0),o=null,a=ii,c=null;function u(u){var s,l,f,p,d,h=(u=mi(u)).length,m=!1,v=new Array(h),y=new Array(h);for(null==o&&(c=a(d=pn())),s=0;s<=h;++s){if(!(s<h&&i(p=u[s],s,u))===m)if(m=!m)l=s,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),f=s-1;f>=l;--f)c.point(v[f],y[f]);c.lineEnd(),c.areaEnd()}m&&(v[s]=+e(p,s,u),y[s]=+t(p,s,u),c.point(n?+n(p,s,u):v[s],r?+r(p,s,u):y[s]))}if(d)return c=null,d+""||null}function s(){return gi().defined(i).curve(a).context(o)}return e="function"==typeof e?e:void 0===e?vi:dn(+e),t="function"==typeof t?t:dn(void 0===t?0:+t),r="function"==typeof r?r:void 0===r?yi:dn(+r),u.x=function(t){return arguments.length?(e="function"==typeof t?t:dn(+t),n=null,u):e},u.x0=function(t){return arguments.length?(e="function"==typeof t?t:dn(+t),u):e},u.x1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:dn(+e),u):n},u.y=function(e){return arguments.length?(t="function"==typeof e?e:dn(+e),r=null,u):t},u.y0=function(e){return arguments.length?(t="function"==typeof e?e:dn(+e),u):t},u.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:dn(+e),u):r},u.lineX0=u.lineY0=function(){return s().x(e).y(t)},u.lineY1=function(){return s().x(e).y(r)},u.lineX1=function(){return s().x(n).y(t)},u.defined=function(e){return arguments.length?(i="function"==typeof e?e:dn(!!e),u):i},u.curve=function(e){return arguments.length?(a=e,null!=o&&(c=a(o)),u):a},u.context=function(e){return arguments.length?(null==e?o=c=null:c=a(o=e),u):o},u}function wi(e){return(wi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xi(){return(xi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Ei(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ii(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ei(Object(r),!0).forEach((function(t){Si(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ei(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Si(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ki(e,t){return(ki=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ji(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Di(e);if(t){var i=Di(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Ti(this,r)}}function Ti(e,t){return!t||"object"!==wi(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Di(e){return(Di=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ai={curveBasisClosed:function(e){return new ei(e)},curveBasisOpen:function(e){return new ti(e)},curveBasis:function(e){return new Kn(e)},curveLinearClosed:function(e){return new ri(e)},curveLinear:ii,curveMonotoneX:function(e){return new si(e)},curveMonotoneY:function(e){return new li(e)},curveNatural:function(e){return new pi(e)},curveStep:function(e){return new hi(e,.5)},curveStepAfter:function(e){return new hi(e,1)},curveStepBefore:function(e){return new hi(e,0)}},_i=function(e){return e.x===+e.x&&e.y===+e.y},Ni=function(e){return e.x},Pi=function(e){return e.y},Ci=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ki(e,t)}(a,e);var t,r,n,i=ji(a);function a(){return Mi(this,a),i.apply(this,arguments)}return t=a,(r=[{key:"getPath",value:function(){var e,t=this.props,r=t.type,n=t.points,i=t.baseLine,o=t.layout,a=t.connectNulls,c=function(e,t){if(me()(e))return e;var r="curve".concat(Ur()(e));return"curveMonotone"===r&&t?Ai["".concat(r).concat("vertical"===t?"Y":"X")]:Ai[r]||ii}(r,o),u=a?n.filter((function(e){return _i(e)})):n;if(B()(i)){var s=a?i.filter((function(e){return _i(e)})):i,l=u.map((function(e,t){return Ii(Ii({},e),{},{base:s[t]})}));return(e="vertical"===o?bi().y(Pi).x1(Ni).x0((function(e){return e.base.x})):bi().x(Ni).y1(Pi).y0((function(e){return e.base.y}))).defined(_i).curve(c),e(l)}return(e="vertical"===o&&V(i)?bi().y(Pi).x1(Ni).x0(i):V(i)?bi().x(Ni).y1(Pi).y0(i):gi().x(Ni).y(Pi)).defined(_i).curve(c),e(u)}},{key:"render",value:function(){var e=this.props,t=e.className,r=e.points,n=e.path,i=e.pathRef;if(!(r&&r.length||n))return null;var a=r&&r.length?this.getPath():n;return o.createElement("path",xi({},_e(this.props),Ne(this.props),{className:N()("recharts-curve",t),d:a,ref:i}))}}])&&Oi(t.prototype,r),n&&Oi(t,n),a}(o.PureComponent);function Li(e){return(Li="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ri(){return(Ri=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Bi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ui(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function zi(e,t){return(zi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Hi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Wi(e);if(t){var i=Wi(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Gi(this,r)}}function Gi(e,t){return!t||"object"!==Li(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Wi(e){return(Wi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Ci.defaultProps={type:"linear",points:[],connectNulls:!1};var qi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&zi(e,t)}(a,e);var t,r,n,i=Hi(a);function a(){return Bi(this,a),i.apply(this,arguments)}return t=a,n=[{key:"getPath",value:function(e,t,r,n,i,o){return"M".concat(e,",").concat(i,"v").concat(n,"M").concat(o,",").concat(t,"h").concat(r)}}],(r=[{key:"render",value:function(){var e=this.props,t=e.x,r=e.y,n=e.width,i=e.height,c=e.top,u=e.left,s=e.className;return V(t)&&V(r)&&V(n)&&V(i)&&V(c)&&V(u)?o.createElement("path",Ri({},_e(this.props,!0),{className:N()("recharts-cross",s),d:a.getPath(t,r,n,i,c,u)})):null}}])&&Ui(t.prototype,r),n&&Ui(t,n),a}(o.PureComponent);function Zi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Fi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zi(Object(r),!0).forEach((function(t){Vi(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Vi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}qi.defaultProps={x:0,y:0,top:0,left:0,width:0,height:0};var Ji=Math.PI/180,Yi=function(e){return 180*e/Math.PI},Xi=function(e,t,r,n){return{x:e+Math.cos(-Ji*n)*r,y:t+Math.sin(-Ji*n)*r}},Qi=function(e,t){var r=e.x,n=e.y,i=t.cx,o=t.cy,a=function(e,t){var r=e.x,n=e.y,i=t.x,o=t.y;return Math.sqrt(Math.pow(r-i,2)+Math.pow(n-o,2))}({x:r,y:n},{x:i,y:o});if(a<=0)return{radius:a};var c=(r-i)/a,u=Math.acos(c);return n>o&&(u=2*Math.PI-u),{radius:a,angle:Yi(u),angleInRadian:u}},$i=function(e,t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),o=Math.floor(n/360);return e+360*Math.min(i,o)},Ki=function(e,t){var r=e.x,n=e.y,i=Qi({x:r,y:n},t),o=i.radius,a=i.angle,c=t.innerRadius,u=t.outerRadius;if(o<c||o>u)return!1;if(0===o)return!0;var s,l=function(e){var t=e.startAngle,r=e.endAngle,n=Math.floor(t/360),i=Math.floor(r/360),o=Math.min(n,i);return{startAngle:t-360*o,endAngle:r-360*o}}(t),f=l.startAngle,p=l.endAngle,d=a;if(f<=p){for(;d>p;)d-=360;for(;d<f;)d+=360;s=d>=f&&d<=p}else{for(;d>f;)d-=360;for(;d<p;)d+=360;s=d>=p&&d<=f}return s?Fi(Fi({},t),{},{radius:o,angle:$i(d,t)}):null};function eo(e){return(eo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function to(){return(to=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ro(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function no(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function io(e,t){return(io=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function oo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=co(e);if(t){var i=co(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ao(this,r)}}function ao(e,t){return!t||"object"!==eo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function co(e){return(co=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var uo=function(e){var t=e.cx,r=e.cy,n=e.radius,i=e.angle,o=e.sign,a=e.isExternal,c=e.cornerRadius,u=e.cornerIsExternal,s=c*(a?1:-1)+n,l=Math.asin(c/s)/Ji,f=u?i:i+o*l,p=u?i-o*l:i;return{center:Xi(t,r,s,f),circleTangency:Xi(t,r,n,f),lineTangency:Xi(t,r,s*Math.cos(l*Ji),p),theta:l}},so=function(e){var t=e.cx,r=e.cy,n=e.innerRadius,i=e.outerRadius,o=e.startAngle,a=function(e,t){return Z(t-e)*Math.min(Math.abs(t-e),359.999)}(o,e.endAngle),c=o+a,u=Xi(t,r,i,o),s=Xi(t,r,i,c),l="M ".concat(u.x,",").concat(u.y,"\n A ").concat(i,",").concat(i,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o>c),",\n ").concat(s.x,",").concat(s.y,"\n ");if(n>0){var f=Xi(t,r,n,o),p=Xi(t,r,n,c);l+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(n,",").concat(n,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o<=c),",\n ").concat(f.x,",").concat(f.y," Z")}else l+="L ".concat(t,",").concat(r," Z");return l},lo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&io(e,t)}(a,e);var t,r,n,i=oo(a);function a(){return ro(this,a),i.apply(this,arguments)}return t=a,(r=[{key:"render",value:function(){var e=this.props,t=e.cx,r=e.cy,n=e.innerRadius,i=e.outerRadius,a=e.cornerRadius,c=e.forceCornerRadius,u=e.cornerIsExternal,s=e.startAngle,l=e.endAngle,f=e.className;if(i<n||s===l)return null;var p,d=N()("recharts-sector",f),h=i-n,m=Q(a,h,0,!0);return p=m>0&&Math.abs(s-l)<360?function(e){var t=e.cx,r=e.cy,n=e.innerRadius,i=e.outerRadius,o=e.cornerRadius,a=e.forceCornerRadius,c=e.cornerIsExternal,u=e.startAngle,s=e.endAngle,l=Z(s-u),f=uo({cx:t,cy:r,radius:i,angle:u,sign:l,cornerRadius:o,cornerIsExternal:c}),p=f.circleTangency,d=f.lineTangency,h=f.theta,m=uo({cx:t,cy:r,radius:i,angle:s,sign:-l,cornerRadius:o,cornerIsExternal:c}),v=m.circleTangency,y=m.lineTangency,g=m.theta,b=c?Math.abs(u-s):Math.abs(u-s)-h-g;if(b<0)return a?"M ".concat(d.x,",").concat(d.y,"\n a").concat(o,",").concat(o,",0,0,1,").concat(2*o,",0\n a").concat(o,",").concat(o,",0,0,1,").concat(2*-o,",0\n "):so({cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:u,endAngle:s});var w="M ".concat(d.x,",").concat(d.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(p.x,",").concat(p.y,"\n A").concat(i,",").concat(i,",0,").concat(+(b>180),",").concat(+(l<0),",").concat(v.x,",").concat(v.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(y.x,",").concat(y.y,"\n ");if(n>0){var x=uo({cx:t,cy:r,radius:n,angle:u,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),E=x.circleTangency,I=x.lineTangency,S=x.theta,M=uo({cx:t,cy:r,radius:n,angle:s,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),O=M.circleTangency,k=M.lineTangency,j=M.theta,T=c?Math.abs(u-s):Math.abs(u-s)-S-j;if(T<0&&0===o)return"".concat(w,"L").concat(t,",").concat(r,"Z");w+="L".concat(k.x,",").concat(k.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(O.x,",").concat(O.y,"\n A").concat(n,",").concat(n,",0,").concat(+(T>180),",").concat(+(l>0),",").concat(E.x,",").concat(E.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(I.x,",").concat(I.y,"Z")}else w+="L".concat(t,",").concat(r,"Z");return w}({cx:t,cy:r,innerRadius:n,outerRadius:i,cornerRadius:Math.min(m,h/2),forceCornerRadius:c,cornerIsExternal:u,startAngle:s,endAngle:l}):so({cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:s,endAngle:l}),o.createElement("path",to({},_e(this.props,!0),{className:d,d:p}))}}])&&no(t.prototype,r),n&&no(t,n),a}(o.PureComponent);function fo(e){return(fo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function po(){return(po=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ho(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function vo(e,t){return(vo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function yo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=bo(e);if(t){var i=bo(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return go(this,r)}}function go(e,t){return!t||"object"!==fo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function bo(e){return(bo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}lo.defaultProps={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1};var wo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vo(e,t)}(a,e);var t,r,n,i=yo(a);function a(){return ho(this,a),i.apply(this,arguments)}return t=a,(r=[{key:"render",value:function(){var e=this.props,t=e.cx,r=e.cy,n=e.r,i=e.className,a=N()("recharts-dot",i);return t===+t&&r===+r&&n===+n?o.createElement("circle",po({},_e(this.props),Ne(this.props),{className:a,cx:t,cy:r,r:n})):null}}])&&mo(t.prototype,r),n&&mo(t,n),a}(o.PureComponent);function xo(e){return(xo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Eo(){return(Eo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Io(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function So(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Mo(e,t){return(Mo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Oo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=jo(e);if(t){var i=jo(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ko(this,r)}}function ko(e,t){return!t||"object"!==xo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function jo(e){return(jo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var To=function(e,t,r,n,i){var o,a=Math.min(Math.abs(r)/2,Math.abs(n)/2),c=n>=0?1:-1,u=r>=0?1:-1,s=n>=0&&r>=0||n<0&&r<0?1:0;if(a>0&&i instanceof Array){for(var l=[0,0,0,0],f=0;f<4;f++)l[f]=i[f]>a?a:i[f];o="M".concat(e,",").concat(t+c*l[0]),l[0]>0&&(o+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(s,",").concat(e+u*l[0],",").concat(t)),o+="L ".concat(e+r-u*l[1],",").concat(t),l[1]>0&&(o+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(s,",\n ").concat(e+r,",").concat(t+c*l[1])),o+="L ".concat(e+r,",").concat(t+n-c*l[2]),l[2]>0&&(o+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(s,",\n ").concat(e+r-u*l[2],",").concat(t+n)),o+="L ".concat(e+u*l[3],",").concat(t+n),l[3]>0&&(o+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(s,",\n ").concat(e,",").concat(t+n-c*l[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var p=Math.min(a,i);o="M ".concat(e,",").concat(t+c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(e+u*p,",").concat(t,"\n L ").concat(e+r-u*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(e+r,",").concat(t+c*p,"\n L ").concat(e+r,",").concat(t+n-c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(e+r-u*p,",").concat(t+n,"\n L ").concat(e+u*p,",").concat(t+n,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(e,",").concat(t+n-c*p," Z")}else o="M ".concat(e,",").concat(t," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return o},Do=function(e,t){if(!e||!t)return!1;var r=e.x,n=e.y,i=t.x,o=t.y,a=t.width,c=t.height;if(Math.abs(a)>0&&Math.abs(c)>0){var u=Math.min(i,i+a),s=Math.max(i,i+a),l=Math.min(o,o+c),f=Math.max(o,o+c);return r>=u&&r<=s&&n>=l&&n<=f}return!1},Ao=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Mo(e,t)}(a,e);var t,r,n,i=Oo(a);function a(){var e;Io(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return(e=i.call.apply(i,[this].concat(r))).state={totalLength:-1},e.node=void 0,e}return t=a,(r=[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var e=this.node.getTotalLength();e&&this.setState({totalLength:e})}catch(t){}}},{key:"render",value:function(){var e=this,t=this.props,r=t.x,n=t.y,i=t.width,a=t.height,c=t.radius,u=t.className,s=this.state.totalLength,l=this.props,f=l.animationEasing,p=l.animationDuration,d=l.animationBegin,h=l.isAnimationActive,m=l.isUpdateAnimationActive;if(r!==+r||n!==+n||i!==+i||a!==+a||0===i||0===a)return null;var v=N()("recharts-rectangle",u);return m?o.createElement(sr,{canBegin:s>0,from:{width:i,height:a,x:r,y:n},to:{width:i,height:a,x:r,y:n},duration:p,animationEasing:f,isActive:m},(function(t){var r=t.width,n=t.height,i=t.x,a=t.y;return o.createElement(sr,{canBegin:s>0,from:"0px ".concat(-1===s?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,isActive:h,easing:f},o.createElement("path",Eo({},_e(e.props,!0),{className:v,d:To(i,a,r,n,c),ref:function(t){e.node=t}})))})):o.createElement("path",Eo({},_e(this.props,!0),{className:v,d:To(r,n,i,a,c)}))}}])&&So(t.prototype,r),n&&So(t,n),a}(o.PureComponent);Ao.defaultProps={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"};var _o=r(70418),No=r.n(_o),Po=r(32822);function Co(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function Lo(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var Ro={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Bo=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},Uo=function e(t,r){var n=[],i=[];return i=B()(r)?r.map((function(e){return Bo(e)})):[Bo(r)],o.Children.forEach(t,(function(t){(0,Po.isFragment)(t)&&(n=n.concat(e(t.props.children,r)));var o=L()(t,"type.displayName")||L()(t,"type.name");-1!==i.indexOf(o)&&n.push(t)})),n},zo=function(e,t){var r=Uo(e,t);return r&&r[0]},Ho=function(e){if(!e||!e.props)return!1;var t=e.props,r=t.width,n=t.height;return!(!V(r)||r<=0||!V(n)||n<=0)},Go=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],Wo=function(e){return e&&e.type&&q()(e.type)&&Go.indexOf(e.type)>=0},qo=function e(t,r){if(t===r)return!0;if(o.Children.count(t)!==o.Children.count(r))return!1;var n=o.Children.count(t);if(0===n)return!0;if(1===n)return Zo(B()(t)?t[0]:t,B()(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],c=r[i];if(B()(a)||B()(c)){if(!e(a,c))return!1}else if(!Zo(a,c))return!1}return!0},Zo=function(e,t){if(Ie()(e)&&Ie()(t))return!0;if(!Ie()(e)&&!Ie()(t)){var r=e.props||{},n=r.children,i=Lo(r,["children"]),o=t.props||{},a=o.children,c=Lo(o,["children"]);return n&&a?Co(i,c)&&qo(n,a):!n&&!a&&Co(i,c)}return!1},Fo=function(e,t){var r=[],n={};return o.Children.forEach(e,(function(e,i){if(Wo(e))r.push(e);else if(e){var o=Bo(e.type),a=t[o]||{},c=a.handler,u=a.once;if(c&&(!u||!n[o])){var s=c(e,o,i);r.push(s),n[o]=!0}}})),No()(r).filter((function(e){return!Ie()(e)}))};function Vo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Jo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vo(Object(r),!0).forEach((function(t){Yo(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Yo(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xo(e){return function(e){if(Array.isArray(e))return Qo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Qo(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qo(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qo(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var $o={widthCache:{},cacheCount:0},Ko={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},ea=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],ta="recharts_measurement_span";var ra=function(e){return Object.keys(e).reduce((function(t,r){return"".concat(t).concat((n=r,n.split("").reduce((function(e,t){return t===t.toUpperCase()?[].concat(Xo(e),["-",t.toLowerCase()]):[].concat(Xo(e),[t])}),[]).join("")),":").concat(function(e,t){return ea.indexOf(e)>=0&&t===+t?"".concat(t,"px"):t}(r,e[r]),";");var n}),"")},na=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||Sr.isSsr)return{width:0,height:0};var r="".concat(e),n=ra(t),i="".concat(r,"-").concat(n);if($o.widthCache[i])return $o.widthCache[i];try{var o=document.getElementById(ta);o||((o=document.createElement("span")).setAttribute("id",ta),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=Jo(Jo({},Ko),t);Object.keys(a).map((function(e){return o.style[e]=a[e],e})),o.textContent=r;var c=o.getBoundingClientRect(),u={width:c.width,height:c.height};return $o.widthCache[i]=u,++$o.cacheCount>2e3&&($o.cacheCount=0,$o.widthCache={}),u}catch(s){return{width:0,height:0}}},ia=r(55502),oa=r.n(ia);function aa(e){return(aa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ca(){return(ca=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ua(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function sa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function la(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function fa(e,t){return(fa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ha(e);if(t){var i=ha(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return da(this,r)}}function da(e,t){return!t||"object"!==aa(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ha(e){return(ha=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ma(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(u){i=!0,o=u}finally{try{n||null==c.return||c.return()}finally{if(i)throw o}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return va(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return va(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function va(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ya(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ga(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ya(Object(r),!0).forEach((function(t){ba(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ya(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ba(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var wa=/[ \f\n\r\t\v\u2028\u2029]+/,xa=function(e){try{var t=[];return Ie()(e.children)||(t=e.breakAll?e.children.toString().split(""):e.children.toString().split(wa)),{wordsWithComputedWidth:t.map((function(t){return{word:t,width:na(t,e.style).width}})),spaceWidth:e.breakAll?0:na(" ",e.style).width}}catch(r){return null}},Ea=function(e){return[{words:Ie()(e)?[]:e.toString().split(wa)}]},Ia=function(e,t){if((e.width||e.scaleToFit)&&!Sr.isSsr&&t){var r=xa(e);return r?function(e,t,r,n,i){var o=V(e.maxLines),a=e.children,c=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var o=t.word,a=t.width,c=e[e.length-1];if(c&&(null==n||i||c.width+a+r<n))c.words.push(o),c.width+=a+r;else{var u={words:[o],width:a};e.push(u)}return e}),[])},u=c(t);if(!o)return u;for(var s,l=function(t){var r=a.slice(0,t),i=xa(ga(ga({},e),{},{children:r+"…"})).wordsWithComputedWidth,o=c(i);return[o.length>e.maxLines||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(o).width>n,o]},f=0,p=a.length-1,d=0;f<=p&&d<=a.length-1;){var h=Math.floor((f+p)/2),m=ma(l(h-1),2),v=m[0],y=m[1],g=ma(l(h),1)[0];if(v||g||(f=h+1),v&&g&&(p=h-1),!v&&g){s=y;break}d++}return s||u}(e,r.wordsWithComputedWidth,r.spaceWidth,e.width,e.scaleToFit):Ea(e.children)}return Ea(e.children)},Sa=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fa(e,t)}(a,e);var t,r,n,i=pa(a);function a(){var e;sa(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return(e=i.call.apply(i,[this].concat(r))).state={},e}return t=a,n=[{key:"getDerivedStateFromProps",value:function(e,t){if(e.width!==t.prevWidth||e.scaleToFit!==t.prevScaleToFit||e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll){var r=e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll;return{prevWidth:e.width,prevScaleToFit:e.scaleToFit,prevChildren:e.children,prevStyle:e.style,wordsByLines:Ia(e,r)}}return null}}],(r=[{key:"render",value:function(){var e=this.props,t=e.dx,r=e.dy,n=e.textAnchor,i=e.verticalAnchor,a=e.scaleToFit,c=e.angle,u=e.lineHeight,s=e.capHeight,l=e.className,f=e.breakAll,p=ua(e,["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className","breakAll"]),d=this.state.wordsByLines;if(!J(p.x)||!J(p.y))return null;var h,m=p.x+(V(t)?t:0),v=p.y+(V(r)?r:0);switch(i){case"start":h=oa()("calc(".concat(s,")"));break;case"middle":h=oa()("calc(".concat((d.length-1)/2," * -").concat(u," + (").concat(s," / 2))"));break;default:h=oa()("calc(".concat(d.length-1," * -").concat(u,")"))}var y=[];if(a){var g=d[0].width,b=this.props.width;y.push("scale(".concat((V(b)?b/g:1)/g,")"))}return c&&y.push("rotate(".concat(c,", ").concat(m,", ").concat(v,")")),y.length&&(p.transform=y.join(" ")),o.createElement("text",ca({},_e(p,!0),{x:m,y:v,className:N()("recharts-text",l),textAnchor:n}),d.map((function(e,t){return o.createElement("tspan",{x:m,dy:0===t?h:u,key:t},e.words.join(f?"":" "))})))}}])&&la(t.prototype,r),n&&la(t,n),a}(o.Component);function Ma(e){return function(e){if(Array.isArray(e))return Oa(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Oa(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Oa(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oa(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ka(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ja(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ka(Object(r),!0).forEach((function(t){Ta(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ka(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ta(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Da(){return(Da=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}Sa.defaultProps={x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end"};var Aa=function(e,t,r){var n,i,a=e.position,c=e.viewBox,u=e.offset,s=e.className,l=c,f=l.cx,p=l.cy,d=l.innerRadius,h=l.outerRadius,m=l.startAngle,v=l.endAngle,y=l.clockWise,g=(d+h)/2,b=function(e,t){return Z(t-e)*Math.min(Math.abs(t-e),360)}(m,v),w=b>=0?1:-1;"insideStart"===a?(n=m+w*u,i=y):"insideEnd"===a?(n=v-w*u,i=!y):"end"===a&&(n=v+w*u,i=y),i=b<=0?i:!i;var x=Xi(f,p,g,n),E=Xi(f,p,g,n+359*(i?1:-1)),I="M".concat(x.x,",").concat(x.y,"\n A").concat(g,",").concat(g,",0,1,").concat(i?0:1,",\n ").concat(E.x,",").concat(E.y),S=Ie()(e.id)?X("recharts-radial-line-"):e.id;return o.createElement("text",Da({},r,{dominantBaseline:"central",className:N()("recharts-radial-bar-label",s)}),o.createElement("defs",null,o.createElement("path",{id:S,d:I})),o.createElement("textPath",{xlinkHref:"#".concat(S)},t))};function _a(e){var t,r=e.viewBox,n=e.position,i=e.value,a=e.children,c=e.content,u=e.className,s=void 0===u?"":u,l=e.textBreakAll;if(!r||Ie()(i)&&Ie()(a)&&!(0,o.isValidElement)(c)&&!me()(c))return null;if((0,o.isValidElement)(c))return(0,o.cloneElement)(c,e);if(me()(c)){if(t=(0,o.createElement)(c,e),(0,o.isValidElement)(t))return t}else t=function(e){var t=e.value,r=e.formatter,n=Ie()(e.children)?t:e.children;return me()(r)?r(n):n}(e);var f=function(e){return V(e.cx)}(r),p=_e(e,!0);if(f&&("insideStart"===n||"insideEnd"===n||"end"===n))return Aa(e,t,p);var d=f?function(e){var t=e.viewBox,r=e.offset,n=e.position,i=t,o=i.cx,a=i.cy,c=i.innerRadius,u=i.outerRadius,s=(i.startAngle+i.endAngle)/2;if("outside"===n){var l=Xi(o,a,u+r,s),f=l.x;return{x:f,y:l.y,textAnchor:f>=o?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"end"};var p=Xi(o,a,(c+u)/2,s);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}}(e):function(e){var t=e.viewBox,r=e.parentViewBox,n=e.offset,i=e.position,o=t,a=o.x,c=o.y,u=o.width,s=o.height,l=s>=0?1:-1,f=l*n,p=l>0?"end":"start",d=l>0?"start":"end",h=u>=0?1:-1,m=h*n,v=h>0?"end":"start",y=h>0?"start":"end";if("top"===i)return ja(ja({},{x:a+u/2,y:c-l*n,textAnchor:"middle",verticalAnchor:p}),r?{height:Math.max(c-r.y,0),width:u}:{});if("bottom"===i)return ja(ja({},{x:a+u/2,y:c+s+f,textAnchor:"middle",verticalAnchor:d}),r?{height:Math.max(r.y+r.height-(c+s),0),width:u}:{});if("left"===i){var g={x:a-m,y:c+s/2,textAnchor:v,verticalAnchor:"middle"};return ja(ja({},g),r?{width:Math.max(g.x-r.x,0),height:s}:{})}if("right"===i){var b={x:a+u+m,y:c+s/2,textAnchor:y,verticalAnchor:"middle"};return ja(ja({},b),r?{width:Math.max(r.x+r.width-b.x,0),height:s}:{})}var w=r?{width:u,height:s}:{};return"insideLeft"===i?ja({x:a+m,y:c+s/2,textAnchor:y,verticalAnchor:"middle"},w):"insideRight"===i?ja({x:a+u-m,y:c+s/2,textAnchor:v,verticalAnchor:"middle"},w):"insideTop"===i?ja({x:a+u/2,y:c+f,textAnchor:"middle",verticalAnchor:d},w):"insideBottom"===i?ja({x:a+u/2,y:c+s-f,textAnchor:"middle",verticalAnchor:p},w):"insideTopLeft"===i?ja({x:a+m,y:c+f,textAnchor:y,verticalAnchor:d},w):"insideTopRight"===i?ja({x:a+u-m,y:c+f,textAnchor:v,verticalAnchor:d},w):"insideBottomLeft"===i?ja({x:a+m,y:c+s-f,textAnchor:y,verticalAnchor:p},w):"insideBottomRight"===i?ja({x:a+u-m,y:c+s-f,textAnchor:v,verticalAnchor:p},w):ke()(i)&&(V(i.x)||F(i.x))&&(V(i.y)||F(i.y))?ja({x:a+Q(i.x,u),y:c+Q(i.y,s),textAnchor:"end",verticalAnchor:"end"},w):ja({x:a+u/2,y:c+s/2,textAnchor:"middle",verticalAnchor:"middle"},w)}(e);return o.createElement(Sa,Da({className:N()("recharts-label",s)},p,d,{breakAll:l}),t)}_a.displayName="Label",_a.defaultProps={offset:5};var Na=function(e){var t=e.cx,r=e.cy,n=e.angle,i=e.startAngle,o=e.endAngle,a=e.r,c=e.radius,u=e.innerRadius,s=e.outerRadius,l=e.x,f=e.y,p=e.top,d=e.left,h=e.width,m=e.height,v=e.clockWise,y=e.labelViewBox;if(y)return y;if(V(h)&&V(m)){if(V(l)&&V(f))return{x:l,y:f,width:h,height:m};if(V(p)&&V(d))return{x:p,y:d,width:h,height:m}}return V(l)&&V(f)?{x:l,y:f,width:0,height:0}:V(t)&&V(r)?{cx:t,cy:r,startAngle:i||n||0,endAngle:o||n||0,innerRadius:u||0,outerRadius:s||c||a||0,clockWise:v}:e.viewBox?e.viewBox:{}},Pa=function(e,t){return e?!0===e?o.createElement(_a,{key:"label-implicit",viewBox:t}):J(e)?o.createElement(_a,{key:"label-implicit",viewBox:t,value:e}):(0,o.isValidElement)(e)?e.type===_a?(0,o.cloneElement)(e,{key:"label-implicit",viewBox:t}):o.createElement(_a,{key:"label-implicit",content:e,viewBox:t}):me()(e)?o.createElement(_a,{key:"label-implicit",content:e,viewBox:t}):ke()(e)?o.createElement(_a,Da({viewBox:t},e,{key:"label-implicit"})):null:null};function Ca(e){return(Ca="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function La(){return(La=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Ra(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ba(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ra(Object(r),!0).forEach((function(t){Ua(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ra(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ua(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function za(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Ha(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ga(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Wa(e,t){return(Wa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function qa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Fa(e);if(t){var i=Fa(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Za(this,r)}}function Za(e,t){return!t||"object"!==Ca(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Fa(e){return(Fa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}_a.parseViewBox=Na,_a.renderCallByParent=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=Na(e),a=Uo(n,_a.displayName).map((function(e,r){return(0,o.cloneElement)(e,{viewBox:t||i,key:"label-".concat(r)})}));if(!r)return a;var c=Pa(e.label,t||i);return[c].concat(Ma(a))};var Va=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Wa(e,t)}(a,e);var t,r,n,i=qa(a);function a(){return Ha(this,a),i.apply(this,arguments)}return t=a,n=[{key:"getTicks",value:function(e){var t=e.tick,r=e.ticks,n=e.viewBox,i=e.minTickGap,o=e.orientation,c=e.interval,u=e.tickFormatter,s=e.unit;return r&&r.length&&t?V(c)||Sr.isSsr?a.getNumberIntervalTicks(r,"number"==typeof c&&V(c)?c:0):"preserveStartEnd"===c?a.getTicksStart({ticks:r,tickFormatter:u,viewBox:n,orientation:o,minTickGap:i,unit:s},!0):"preserveStart"===c?a.getTicksStart({ticks:r,tickFormatter:u,viewBox:n,orientation:o,minTickGap:i,unit:s}):a.getTicksEnd({ticks:r,tickFormatter:u,viewBox:n,orientation:o,minTickGap:i,unit:s}):[]}},{key:"getNumberIntervalTicks",value:function(e,t){return e.filter((function(e,r){return r%(t+1)==0}))}},{key:"getTicksStart",value:function(e,t){var r,n,i=e.ticks,o=e.tickFormatter,a=e.viewBox,c=e.orientation,u=e.minTickGap,s=e.unit,l=a.x,f=a.y,p=a.width,d=a.height,h="top"===c||"bottom"===c?"width":"height",m=(i||[]).slice(),v=s&&"width"===h?na(s)[h]:0,y=m.length,g=y>=2?Z(m[1].coordinate-m[0].coordinate):1;if(1===g?(r="width"===h?l:f,n="width"===h?l+p:f+d):(r="width"===h?l+p:f+d,n="width"===h?l:f),t){var b=i[y-1],w=me()(o)?o(b.value,y-1):b.value,x=na(w)[h]+v,E=g*(b.coordinate+g*x/2-n);m[y-1]=b=Ba(Ba({},b),{},{tickCoord:E>0?b.coordinate-E*g:b.coordinate}),g*(b.tickCoord-g*x/2-r)>=0&&g*(b.tickCoord+g*x/2-n)<=0&&(n=b.tickCoord-g*(x/2+u),m[y-1]=Ba(Ba({},b),{},{isShow:!0}))}for(var I=t?y-1:y,S=0;S<I;S++){var M=m[S],O=me()(o)?o(M.value,S):M.value,k=na(O)[h]+v;if(0===S){var j=g*(M.coordinate-g*k/2-r);m[S]=M=Ba(Ba({},M),{},{tickCoord:j<0?M.coordinate-j*g:M.coordinate})}else m[S]=M=Ba(Ba({},M),{},{tickCoord:M.coordinate});g*(M.tickCoord-g*k/2-r)>=0&&g*(M.tickCoord+g*k/2-n)<=0&&(r=M.tickCoord+g*(k/2+u),m[S]=Ba(Ba({},M),{},{isShow:!0}))}return m.filter((function(e){return e.isShow}))}},{key:"getTicksEnd",value:function(e){var t,r,n=e.ticks,i=e.tickFormatter,o=e.viewBox,a=e.orientation,c=e.minTickGap,u=e.unit,s=o.x,l=o.y,f=o.width,p=o.height,d="top"===a||"bottom"===a?"width":"height",h=u&&"width"===d?na(u)[d]:0,m=(n||[]).slice(),v=m.length,y=v>=2?Z(m[1].coordinate-m[0].coordinate):1;1===y?(t="width"===d?s:l,r="width"===d?s+f:l+p):(t="width"===d?s+f:l+p,r="width"===d?s:l);for(var g=v-1;g>=0;g--){var b=m[g],w=me()(i)?i(b.value,v-g-1):b.value,x=na(w)[d]+h;if(g===v-1){var E=y*(b.coordinate+y*x/2-r);m[g]=b=Ba(Ba({},b),{},{tickCoord:E>0?b.coordinate-E*y:b.coordinate})}else m[g]=b=Ba(Ba({},b),{},{tickCoord:b.coordinate});y*(b.tickCoord-y*x/2-t)>=0&&y*(b.tickCoord+y*x/2-r)<=0&&(r=b.tickCoord-y*(x/2+c),m[g]=Ba(Ba({},b),{},{isShow:!0}))}return m.filter((function(e){return e.isShow}))}},{key:"renderTickItem",value:function(e,t,r){return o.isValidElement(e)?o.cloneElement(e,t):me()(e)?e(t):o.createElement(Sa,La({},t,{className:"recharts-cartesian-axis-tick-value"}),r)}}],(r=[{key:"shouldComponentUpdate",value:function(e){var t=e.viewBox,r=za(e,["viewBox"]),n=this.props,i=n.viewBox,o=za(n,["viewBox"]);return!Co(t,i)||!Co(r,o)}},{key:"getTickLineCoord",value:function(e){var t,r,n,i,o,a,c=this.props,u=c.x,s=c.y,l=c.width,f=c.height,p=c.orientation,d=c.tickSize,h=c.mirror,m=c.tickMargin,v=h?-1:1,y=e.tickSize||d,g=V(e.tickCoord)?e.tickCoord:e.coordinate;switch(p){case"top":t=r=e.coordinate,a=(n=(i=s+ +!h*f)-v*y)-v*m,o=g;break;case"left":n=i=e.coordinate,o=(t=(r=u+ +!h*l)-v*y)-v*m,a=g;break;case"right":n=i=e.coordinate,o=(t=(r=u+ +h*l)+v*y)+v*m,a=g;break;default:t=r=e.coordinate,a=(n=(i=s+ +h*f)+v*y)+v*m,o=g}return{line:{x1:t,y1:n,x2:r,y2:i},tick:{x:o,y:a}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,r=t.orientation,n=t.mirror;switch(r){case"left":e=n?"start":"end";break;case"right":e=n?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,r=e.mirror,n="end";switch(t){case"left":case"right":n="middle";break;case"top":n=r?"start":"end";break;default:n=r?"end":"start"}return n}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.x,r=e.y,n=e.width,i=e.height,a=e.orientation,c=e.mirror,u=e.axisLine,s=Ba(Ba(Ba({},_e(this.props)),_e(u)),{},{fill:"none"});if("top"===a||"bottom"===a){var l=+("top"===a&&!c||"bottom"===a&&c);s=Ba(Ba({},s),{},{x1:t,y1:r+l*i,x2:t+n,y2:r+l*i})}else{var f=+("left"===a&&!c||"right"===a&&c);s=Ba(Ba({},s),{},{x1:t+f*n,y1:r,x2:t+f*n,y2:r+i})}return o.createElement("line",La({},s,{className:N()("recharts-cartesian-axis-line",L()(u,"className"))}))}},{key:"renderTicks",value:function(e){var t=this,r=this.props,n=r.tickLine,i=r.stroke,c=r.tick,u=r.tickFormatter,s=r.unit,l=a.getTicks(Ba(Ba({},this.props),{},{ticks:e})),f=this.getTickTextAnchor(),p=this.getTickVerticalAnchor(),d=_e(this.props),h=_e(c),m=Ba(Ba({},d),{},{fill:"none"},_e(n)),v=l.map((function(e,r){var v=t.getTickLineCoord(e),y=v.line,g=v.tick,b=Ba(Ba(Ba(Ba({textAnchor:f,verticalAnchor:p},d),{},{stroke:"none",fill:i},h),g),{},{index:r,payload:e,visibleTicksCount:l.length,tickFormatter:u});return o.createElement(ze,La({className:"recharts-cartesian-axis-tick",key:"tick-".concat(r)},Pe(t.props,e,r)),n&&o.createElement("line",La({},m,y,{className:N()("recharts-cartesian-axis-tick-line",L()(n,"className"))})),c&&a.renderTickItem(c,b,"".concat(me()(u)?u(e.value,r):e.value).concat(s||"")))}));return o.createElement("g",{className:"recharts-cartesian-axis-ticks"},v)}},{key:"render",value:function(){var e=this.props,t=e.axisLine,r=e.width,n=e.height,i=e.ticksGenerator,a=e.className;if(e.hide)return null;var c=this.props,u=c.ticks,s=za(c,["ticks"]),l=u;return me()(i)&&(l=u&&u.length>0?i(this.props):i(s)),r<=0||n<=0||!l||!l.length?null:o.createElement(ze,{className:N()("recharts-cartesian-axis",a)},t&&this.renderAxisLine(),this.renderTicks(l),_a.renderCallByParent(this.props))}}])&&Ga(t.prototype,r),n&&Ga(t,n),a}(o.Component);function Ja(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((t-e)/r)),o=new Array(i);++n<i;)o[n]=e+n*r;return o}function Ya(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function Xa(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}Va.displayName="CartesianAxis",Va.defaultProps={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"};const Qa=Symbol("implicit");function $a(){var e=new Map,t=[],r=[],n=Qa;function i(i){var o=i+"",a=e.get(o);if(!a){if(n!==Qa)return n;e.set(o,a=t.push(i))}return r[(a-1)%r.length]}return i.domain=function(r){if(!arguments.length)return t.slice();t=[],e=new Map;for(const n of r){const r=n+"";e.has(r)||e.set(r,t.push(n))}return i},i.range=function(e){return arguments.length?(r=Array.from(e),i):r.slice()},i.unknown=function(e){return arguments.length?(n=e,i):n},i.copy=function(){return $a(t,r).unknown(n)},Ya.apply(i,arguments),i}function Ka(){var e,t,r=$a().unknown(void 0),n=r.domain,i=r.range,o=0,a=1,c=!1,u=0,s=0,l=.5;function f(){var r=n().length,f=a<o,p=f?a:o,d=f?o:a;e=(d-p)/Math.max(1,r-u+2*s),c&&(e=Math.floor(e)),p+=(d-p-e*(r-u))*l,t=e*(1-u),c&&(p=Math.round(p),t=Math.round(t));var h=Ja(r).map((function(t){return p+e*t}));return i(f?h.reverse():h)}return delete r.unknown,r.domain=function(e){return arguments.length?(n(e),f()):n()},r.range=function(e){return arguments.length?([o,a]=e,o=+o,a=+a,f()):[o,a]},r.rangeRound=function(e){return[o,a]=e,o=+o,a=+a,c=!0,f()},r.bandwidth=function(){return t},r.step=function(){return e},r.round=function(e){return arguments.length?(c=!!e,f()):c},r.padding=function(e){return arguments.length?(u=Math.min(1,s=+e),f()):u},r.paddingInner=function(e){return arguments.length?(u=Math.min(1,e),f()):u},r.paddingOuter=function(e){return arguments.length?(s=+e,f()):s},r.align=function(e){return arguments.length?(l=Math.max(0,Math.min(1,e)),f()):l},r.copy=function(){return Ka(n(),[o,a]).round(c).paddingInner(u).paddingOuter(s).align(l)},Ya.apply(f(),arguments)}function ec(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return ec(t())},e}function tc(){return ec(Ka.apply(null,arguments).paddingInner(1))}var rc=r(60879),nc=r.n(rc),ic=r(11974),oc=r.n(ic),ac=r(33323),cc=r.n(ac),uc=r(41719),sc=r.n(uc),lc=r(26058),fc=r.n(lc);function pc(e){return function(e){if(Array.isArray(e))return dc(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return dc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return dc(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var hc=function(e){return e},mc={"@@functional/placeholder":!0},vc=function(e){return e===mc},yc=function(e){return function t(){return 0===arguments.length||1===arguments.length&&vc(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},gc=function e(t,r){return 1===t?r:yc((function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=i.filter((function(e){return e!==mc})).length;return a>=t?r.apply(void 0,i):e(t-a,yc((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=i.map((function(e){return vc(e)?t.shift():e}));return r.apply(void 0,pc(o).concat(t))})))}))},bc=function(e){return gc(e.length,e)},wc=function(e,t){for(var r=[],n=e;n<t;++n)r[n-e]=n;return r},xc=bc((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)})),Ec=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!t.length)return hc;var n=t.reverse(),i=n[0],o=n.slice(1);return function(){return o.reduce((function(e,t){return t(e)}),i.apply(void 0,arguments))}},Ic=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},Sc=function(e){var t=null,r=null;return function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return t&&i.every((function(e,r){return e===t[r]}))?r:(t=i,r=e.apply(void 0,i))}};var Mc={rangeStep:function(e,t,r){for(var n=new(fc())(e),i=0,o=[];n.lt(t)&&i<1e5;)o.push(n.toNumber()),n=n.add(r),i++;return o},getDigitCount:function(e){return 0===e?1:Math.floor(new(fc())(e).abs().log(10).toNumber())+1},interpolateNumber:bc((function(e,t,r){var n=+e;return n+r*(+t-n)})),uninterpolateNumber:bc((function(e,t,r){var n=t-+e;return(r-e)/(n=n||1/0)})),uninterpolateTruncation:bc((function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))}))};function Oc(e){return function(e){if(Array.isArray(e))return Tc(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||jc(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(u){i=!0,o=u}finally{try{n||null==c.return||c.return()}finally{if(i)throw o}}return r}(e,t)||jc(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jc(e,t){if(e){if("string"==typeof e)return Tc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Tc(e,t):void 0}}function Tc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Dc(e){var t=kc(e,2),r=t[0],n=t[1],i=r,o=n;return r>n&&(i=n,o=r),[i,o]}function Ac(e,t,r){if(e.lte(0))return new(fc())(0);var n=Mc.getDigitCount(e.toNumber()),i=new(fc())(10).pow(n),o=e.div(i),a=1!==n?.05:.1,c=new(fc())(Math.ceil(o.div(a).toNumber())).add(r).mul(a).mul(i);return t?c:new(fc())(Math.ceil(c))}function _c(e,t,r){var n=1,i=new(fc())(e);if(!i.isint()&&r){var o=Math.abs(e);o<1?(n=new(fc())(10).pow(Mc.getDigitCount(e)-1),i=new(fc())(Math.floor(i.div(n).toNumber())).mul(n)):o>1&&(i=new(fc())(Math.floor(e)))}else 0===e?i=new(fc())(Math.floor((t-1)/2)):r||(i=new(fc())(Math.floor(e)));var a=Math.floor((t-1)/2);return Ec(xc((function(e){return i.add(new(fc())(e-a).mul(n)).toNumber()})),wc)(0,t)}function Nc(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new(fc())(0),tickMin:new(fc())(0),tickMax:new(fc())(0)};var o,a=Ac(new(fc())(t).sub(e).div(r-1),n,i);o=e<=0&&t>=0?new(fc())(0):(o=new(fc())(e).add(t).div(2)).sub(new(fc())(o).mod(a));var c=Math.ceil(o.sub(e).div(a).toNumber()),u=Math.ceil(new(fc())(t).sub(o).div(a).toNumber()),s=c+u+1;return s>r?Nc(e,t,r,n,i+1):(s<r&&(u=t>0?u+(r-s):u,c=t>0?c:c+(r-s)),{step:a,tickMin:o.sub(new(fc())(c).mul(a)),tickMax:o.add(new(fc())(u).mul(a))})}var Pc=Sc((function(e){var t=kc(e,2),r=t[0],n=t[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(i,2),c=Dc([r,n]),u=kc(c,2),s=u[0],l=u[1];if(s===-1/0||l===1/0){var f=l===1/0?[s].concat(Oc(wc(0,i-1).map((function(){return 1/0})))):[].concat(Oc(wc(0,i-1).map((function(){return-1/0}))),[l]);return r>n?Ic(f):f}if(s===l)return _c(s,i,o);var p=Nc(s,l,a,o),d=p.step,h=p.tickMin,m=p.tickMax,v=Mc.rangeStep(h,m.add(new(fc())(.1).mul(d)),d);return r>n?Ic(v):v})),Cc=(Sc((function(e){var t=kc(e,2),r=t[0],n=t[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(i,2),c=Dc([r,n]),u=kc(c,2),s=u[0],l=u[1];if(s===-1/0||l===1/0)return[r,n];if(s===l)return _c(s,i,o);var f=Ac(new(fc())(l).sub(s).div(a-1),o,0),p=Ec(xc((function(e){return new(fc())(s).add(new(fc())(e).mul(f)).toNumber()})),wc),d=p(0,a).filter((function(e){return e>=s&&e<=l}));return r>n?Ic(d):d})),Sc((function(e,t){var r=kc(e,2),n=r[0],i=r[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Dc([n,i]),c=kc(a,2),u=c[0],s=c[1];if(u===-1/0||s===1/0)return[n,i];if(u===s)return[u];var l=Math.max(t,2),f=Ac(new(fc())(s).sub(u).div(l-1),o,0),p=[].concat(Oc(Mc.rangeStep(new(fc())(u),new(fc())(s).sub(new(fc())(.99).mul(f)),f)),[s]);return n>i?Ic(p):p}))),Lc=Math.sqrt(50),Rc=Math.sqrt(10),Bc=Math.sqrt(2);function Uc(e,t,r){var n,i,o,a,c=-1;if(r=+r,(e=+e)===(t=+t)&&r>0)return[e];if((n=t<e)&&(i=e,e=t,t=i),0===(a=zc(e,t,r))||!isFinite(a))return[];if(a>0){let r=Math.round(e/a),n=Math.round(t/a);for(r*a<e&&++r,n*a>t&&--n,o=new Array(i=n-r+1);++c<i;)o[c]=(r+c)*a}else{a=-a;let r=Math.round(e*a),n=Math.round(t*a);for(r/a<e&&++r,n/a>t&&--n,o=new Array(i=n-r+1);++c<i;)o[c]=(r+c)/a}return n&&o.reverse(),o}function zc(e,t,r){var n=(t-e)/Math.max(0,r),i=Math.floor(Math.log(n)/Math.LN10),o=n/Math.pow(10,i);return i>=0?(o>=Lc?10:o>=Rc?5:o>=Bc?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Lc?10:o>=Rc?5:o>=Bc?2:1)}function Hc(e,t,r){var n=Math.abs(t-e)/Math.max(0,r),i=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),o=n/i;return o>=Lc?i*=10:o>=Rc?i*=5:o>=Bc&&(i*=2),t<e?-i:i}function Gc(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Wc(e){let t=e,r=e;function n(e,t,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n<i;){const o=n+i>>>1;r(e[o],t)<0?n=o+1:i=o}return n}return 1===e.length&&(t=(t,r)=>e(t)-r,r=function(e){return(t,r)=>Gc(e(t),r)}(e)),{left:n,center:function(e,r,i,o){null==i&&(i=0),null==o&&(o=e.length);const a=n(e,r,i,o-1);return a>i&&t(e[a-1],r)>-t(e[a],r)?a-1:a},right:function(e,t,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n<i;){const o=n+i>>>1;r(e[o],t)>0?i=o:n=o+1}return n}}}function qc(e){return null===e?NaN:+e}const Zc=Wc(Gc),Fc=Zc.right;Zc.left,Wc(qc).center;var Vc=Fc;function Jc(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Yc(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Xc(){}var Qc=.7,$c=1/Qc,Kc="\\s*([+-]?\\d+)\\s*",eu="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",tu="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ru=/^#([0-9a-f]{3,8})$/,nu=new RegExp("^rgb\\("+[Kc,Kc,Kc]+"\\)$"),iu=new RegExp("^rgb\\("+[tu,tu,tu]+"\\)$"),ou=new RegExp("^rgba\\("+[Kc,Kc,Kc,eu]+"\\)$"),au=new RegExp("^rgba\\("+[tu,tu,tu,eu]+"\\)$"),cu=new RegExp("^hsl\\("+[eu,tu,tu]+"\\)$"),uu=new RegExp("^hsla\\("+[eu,tu,tu,eu]+"\\)$"),su={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function lu(){return this.rgb().formatHex()}function fu(){return this.rgb().formatRgb()}function pu(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=ru.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?du(t):3===r?new yu(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?hu(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?hu(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=nu.exec(e))?new yu(t[1],t[2],t[3],1):(t=iu.exec(e))?new yu(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ou.exec(e))?hu(t[1],t[2],t[3],t[4]):(t=au.exec(e))?hu(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=cu.exec(e))?xu(t[1],t[2]/100,t[3]/100,1):(t=uu.exec(e))?xu(t[1],t[2]/100,t[3]/100,t[4]):su.hasOwnProperty(e)?du(su[e]):"transparent"===e?new yu(NaN,NaN,NaN,0):null}function du(e){return new yu(e>>16&255,e>>8&255,255&e,1)}function hu(e,t,r,n){return n<=0&&(e=t=r=NaN),new yu(e,t,r,n)}function mu(e){return e instanceof Xc||(e=pu(e)),e?new yu((e=e.rgb()).r,e.g,e.b,e.opacity):new yu}function vu(e,t,r,n){return 1===arguments.length?mu(e):new yu(e,t,r,null==n?1:n)}function yu(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function gu(){return"#"+wu(this.r)+wu(this.g)+wu(this.b)}function bu(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function wu(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function xu(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Iu(e,t,r,n)}function Eu(e){if(e instanceof Iu)return new Iu(e.h,e.s,e.l,e.opacity);if(e instanceof Xc||(e=pu(e)),!e)return new Iu;if(e instanceof Iu)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),o=Math.max(t,r,n),a=NaN,c=o-i,u=(o+i)/2;return c?(a=t===o?(r-n)/c+6*(r<n):r===o?(n-t)/c+2:(t-r)/c+4,c/=u<.5?o+i:2-o-i,a*=60):c=u>0&&u<1?0:a,new Iu(a,c,u,e.opacity)}function Iu(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Su(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}function Mu(e,t,r,n,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*r+(1+3*e+3*o-3*a)*n+a*i)/6}Jc(Xc,pu,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:lu,formatHex:lu,formatHsl:function(){return Eu(this).formatHsl()},formatRgb:fu,toString:fu}),Jc(yu,vu,Yc(Xc,{brighter:function(e){return e=null==e?$c:Math.pow($c,e),new yu(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?Qc:Math.pow(Qc,e),new yu(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:gu,formatHex:gu,formatRgb:bu,toString:bu})),Jc(Iu,(function(e,t,r,n){return 1===arguments.length?Eu(e):new Iu(e,t,r,null==n?1:n)}),Yc(Xc,{brighter:function(e){return e=null==e?$c:Math.pow($c,e),new Iu(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Qc:Math.pow(Qc,e),new Iu(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new yu(Su(e>=240?e-240:e+120,i,n),Su(e,i,n),Su(e<120?e+240:e-120,i,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var Ou=e=>()=>e;function ku(e,t){return function(r){return e+r*t}}function ju(e){return 1==(e=+e)?Tu:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):Ou(isNaN(t)?r:t)}}function Tu(e,t){var r=t-e;return r?ku(e,r):Ou(isNaN(e)?t:e)}var Du=function e(t){var r=ju(t);function n(e,t){var n=r((e=vu(e)).r,(t=vu(t)).r),i=r(e.g,t.g),o=r(e.b,t.b),a=Tu(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);function Au(e){return function(t){var r,n,i=t.length,o=new Array(i),a=new Array(i),c=new Array(i);for(r=0;r<i;++r)n=vu(t[r]),o[r]=n.r||0,a[r]=n.g||0,c[r]=n.b||0;return o=e(o),a=e(a),c=e(c),n.opacity=1,function(e){return n.r=o(e),n.g=a(e),n.b=c(e),n+""}}}Au((function(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],o=e[n+1],a=n>0?e[n-1]:2*i-o,c=n<t-1?e[n+2]:2*o-i;return Mu((r-n/t)*t,a,i,o,c)}})),Au((function(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],o=e[n%t],a=e[(n+1)%t],c=e[(n+2)%t];return Mu((r-n/t)*t,i,o,a,c)}}));function _u(e,t){var r,n=t?t.length:0,i=e?Math.min(n,e.length):0,o=new Array(i),a=new Array(n);for(r=0;r<i;++r)o[r]=zu(e[r],t[r]);for(;r<n;++r)a[r]=t[r];return function(e){for(r=0;r<i;++r)a[r]=o[r](e);return a}}function Nu(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Pu(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function Cu(e,t){var r,n={},i={};for(r in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)r in e?n[r]=zu(e[r],t[r]):i[r]=t[r];return function(e){for(r in n)i[r]=n[r](e);return i}}var Lu=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ru=new RegExp(Lu.source,"g");function Bu(e,t){var r,n,i,o=Lu.lastIndex=Ru.lastIndex=0,a=-1,c=[],u=[];for(e+="",t+="";(r=Lu.exec(e))&&(n=Ru.exec(t));)(i=n.index)>o&&(i=t.slice(o,i),c[a]?c[a]+=i:c[++a]=i),(r=r[0])===(n=n[0])?c[a]?c[a]+=n:c[++a]=n:(c[++a]=null,u.push({i:a,x:Pu(r,n)})),o=Ru.lastIndex;return o<t.length&&(i=t.slice(o),c[a]?c[a]+=i:c[++a]=i),c.length<2?u[0]?function(e){return function(t){return e(t)+""}}(u[0].x):function(e){return function(){return e}}(t):(t=u.length,function(e){for(var r,n=0;n<t;++n)c[(r=u[n]).i]=r.x(e);return c.join("")})}function Uu(e,t){t||(t=[]);var r,n=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(r=0;r<n;++r)i[r]=e[r]*(1-o)+t[r]*o;return i}}function zu(e,t){var r,n,i=typeof t;return null==t||"boolean"===i?Ou(t):("number"===i?Pu:"string"===i?(r=pu(t))?(t=r,Du):Bu:t instanceof pu?Du:t instanceof Date?Nu:(n=t,!ArrayBuffer.isView(n)||n instanceof DataView?Array.isArray(t)?_u:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Cu:Pu:Uu))(e,t)}function Hu(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function Gu(e){return+e}var Wu=[0,1];function qu(e){return e}function Zu(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:(r=isNaN(t)?NaN:.5,function(){return r});var r}function Fu(e,t,r){var n=e[0],i=e[1],o=t[0],a=t[1];return i<n?(n=Zu(i,n),o=r(a,o)):(n=Zu(n,i),o=r(o,a)),function(e){return o(n(e))}}function Vu(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),o=new Array(n),a=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<n;)i[a]=Zu(e[a],e[a+1]),o[a]=r(t[a],t[a+1]);return function(t){var r=Vc(e,t,1,n)-1;return o[r](i[r](t))}}function Ju(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Yu(){var e,t,r,n,i,o,a=Wu,c=Wu,u=zu,s=qu;function l(){var e=Math.min(a.length,c.length);return s!==qu&&(s=function(e,t){var r;return e>t&&(r=e,e=t,t=r),function(r){return Math.max(e,Math.min(t,r))}}(a[0],a[e-1])),n=e>2?Vu:Fu,i=o=null,f}function f(t){return null==t||isNaN(t=+t)?r:(i||(i=n(a.map(e),c,u)))(e(s(t)))}return f.invert=function(r){return s(t((o||(o=n(c,a.map(e),Pu)))(r)))},f.domain=function(e){return arguments.length?(a=Array.from(e,Gu),l()):a.slice()},f.range=function(e){return arguments.length?(c=Array.from(e),l()):c.slice()},f.rangeRound=function(e){return c=Array.from(e),u=Hu,l()},f.clamp=function(e){return arguments.length?(s=!!e||qu,l()):s!==qu},f.interpolate=function(e){return arguments.length?(u=e,l()):u},f.unknown=function(e){return arguments.length?(r=e,f):r},function(r,n){return e=r,t=n,l()}}function Xu(){return Yu()(qu,qu)}var Qu,$u=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ku(e){if(!(t=$u.exec(e)))throw new Error("invalid format: "+e);var t;return new es({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function es(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function ts(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function rs(e){return(e=ts(Math.abs(e)))?e[1]:NaN}function ns(e,t){var r=ts(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}Ku.prototype=es.prototype,es.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var is={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>ns(100*e,t),r:ns,s:function(e,t){var r=ts(e,t);if(!r)return e+"";var n=r[0],i=r[1],o=i-(Qu=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=n.length;return o===a?n:o>a?n+new Array(o-a+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+ts(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function os(e){return e}var as,cs,us,ss=Array.prototype.map,ls=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function fs(e){var t,r,n=void 0===e.grouping||void 0===e.thousands?os:(t=ss.call(e.grouping,Number),r=e.thousands+"",function(e,n){for(var i=e.length,o=[],a=0,c=t[0],u=0;i>0&&c>0&&(u+c+1>n&&(c=Math.max(1,n-u)),o.push(e.substring(i-=c,i+c)),!((u+=c+1)>n));)c=t[a=(a+1)%t.length];return o.reverse().join(r)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",c=void 0===e.numerals?os:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(ss.call(e.numerals,String)),u=void 0===e.percent?"%":e.percent+"",s=void 0===e.minus?"−":e.minus+"",l=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=Ku(e)).fill,r=e.align,f=e.sign,p=e.symbol,d=e.zero,h=e.width,m=e.comma,v=e.precision,y=e.trim,g=e.type;"n"===g?(m=!0,g="g"):is[g]||(void 0===v&&(v=12),y=!0,g="g"),(d||"0"===t&&"="===r)&&(d=!0,t="0",r="=");var b="$"===p?i:"#"===p&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",w="$"===p?o:/[%p]/.test(g)?u:"",x=is[g],E=/[defgprs%]/.test(g);function I(e){var i,o,u,p=b,I=w;if("c"===g)I=x(e)+I,e="";else{var S=(e=+e)<0||1/e<0;if(e=isNaN(e)?l:x(Math.abs(e),v),y&&(e=function(e){e:for(var t,r=e.length,n=1,i=-1;n<r;++n)switch(e[n]){case".":i=t=n;break;case"0":0===i&&(i=n),t=n;break;default:if(!+e[n])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==f&&(S=!1),p=(S?"("===f?f:s:"-"===f||"("===f?"":f)+p,I=("s"===g?ls[8+Qu/3]:"")+I+(S&&"("===f?")":""),E)for(i=-1,o=e.length;++i<o;)if(48>(u=e.charCodeAt(i))||u>57){I=(46===u?a+e.slice(i+1):e.slice(i))+I,e=e.slice(0,i);break}}m&&!d&&(e=n(e,1/0));var M=p.length+e.length+I.length,O=M<h?new Array(h-M+1).join(t):"";switch(m&&d&&(e=n(O+e,O.length?h-I.length:1/0),O=""),r){case"<":e=p+e+I+O;break;case"=":e=p+O+e+I;break;case"^":e=O.slice(0,M=O.length>>1)+p+e+I+O.slice(M);break;default:e=O+p+e+I}return c(e)}return v=void 0===v?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),I.toString=function(){return e+""},I}return{format:f,formatPrefix:function(e,t){var r=f(((e=Ku(e)).type="f",e)),n=3*Math.max(-8,Math.min(8,Math.floor(rs(t)/3))),i=Math.pow(10,-n),o=ls[8+n/3];return function(e){return r(i*e)+o}}}}function ps(e,t,r,n){var i,o=Hc(e,t,r);switch((n=Ku(null==n?",f":n)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=n.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(rs(t)/3)))-rs(Math.abs(e)))}(o,a))||(n.precision=i),us(n,a);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,rs(t)-rs(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(n.precision=i-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(i=function(e){return Math.max(0,-rs(Math.abs(e)))}(o))||(n.precision=i-2*("%"===n.type))}return cs(n)}function ds(e){var t=e.domain;return e.ticks=function(e){var r=t();return Uc(r[0],r[r.length-1],null==e?10:e)},e.tickFormat=function(e,r){var n=t();return ps(n[0],n[n.length-1],null==e?10:e,r)},e.nice=function(r){null==r&&(r=10);var n,i,o=t(),a=0,c=o.length-1,u=o[a],s=o[c],l=10;for(s<u&&(i=u,u=s,s=i,i=a,a=c,c=i);l-- >0;){if((i=zc(u,s,r))===n)return o[a]=u,o[c]=s,t(o);if(i>0)u=Math.floor(u/i)*i,s=Math.ceil(s/i)*i;else{if(!(i<0))break;u=Math.ceil(u*i)/i,s=Math.floor(s*i)/i}n=i}return e},e}function hs(){var e=Xu();return e.copy=function(){return Ju(e,hs())},Ya.apply(e,arguments),ds(e)}function ms(e){var t;function r(e){return null==e||isNaN(e=+e)?t:e}return r.invert=r,r.domain=r.range=function(t){return arguments.length?(e=Array.from(t,Gu),r):e.slice()},r.unknown=function(e){return arguments.length?(t=e,r):t},r.copy=function(){return ms(e).unknown(t)},e=arguments.length?Array.from(e,Gu):[0,1],ds(r)}function vs(e,t){var r,n=0,i=(e=e.slice()).length-1,o=e[n],a=e[i];return a<o&&(r=n,n=i,i=r,r=o,o=a,a=r),e[n]=t.floor(o),e[i]=t.ceil(a),e}function ys(e){return Math.log(e)}function gs(e){return Math.exp(e)}function bs(e){return-Math.log(-e)}function ws(e){return-Math.exp(-e)}function xs(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Es(e){return function(t){return-e(-t)}}function Is(e){var t,r,n=e(ys,gs),i=n.domain,o=10;function a(){return t=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}(o),r=function(e){return 10===e?xs:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}(o),i()[0]<0?(t=Es(t),r=Es(r),e(bs,ws)):e(ys,gs),n}return n.base=function(e){return arguments.length?(o=+e,a()):o},n.domain=function(e){return arguments.length?(i(e),a()):i()},n.ticks=function(e){var n,a=i(),c=a[0],u=a[a.length-1];(n=u<c)&&(p=c,c=u,u=p);var s,l,f,p=t(c),d=t(u),h=null==e?10:+e,m=[];if(!(o%1)&&d-p<h){if(p=Math.floor(p),d=Math.ceil(d),c>0){for(;p<=d;++p)for(l=1,s=r(p);l<o;++l)if(!((f=s*l)<c)){if(f>u)break;m.push(f)}}else for(;p<=d;++p)for(l=o-1,s=r(p);l>=1;--l)if(!((f=s*l)<c)){if(f>u)break;m.push(f)}2*m.length<h&&(m=Uc(c,u,h))}else m=Uc(p,d,Math.min(d-p,h)).map(r);return n?m.reverse():m},n.tickFormat=function(e,i){if(null==i&&(i=10===o?".0e":","),"function"!=typeof i&&(i=cs(i)),e===1/0)return i;null==e&&(e=10);var a=Math.max(1,o*e/n.ticks().length);return function(e){var n=e/r(Math.round(t(e)));return n*o<o-.5&&(n*=o),n<=a?i(e):""}},n.nice=function(){return i(vs(i(),{floor:function(e){return r(Math.floor(t(e)))},ceil:function(e){return r(Math.ceil(t(e)))}}))},n}function Ss(){var e=Is(Yu()).domain([1,10]);return e.copy=function(){return Ju(e,Ss()).base(e.base())},Ya.apply(e,arguments),e}function Ms(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Os(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function ks(e){var t=1,r=e(Ms(t),Os(t));return r.constant=function(r){return arguments.length?e(Ms(t=+r),Os(t)):t},ds(r)}function js(){var e=ks(Yu());return e.copy=function(){return Ju(e,js()).constant(e.constant())},Ya.apply(e,arguments)}function Ts(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Ds(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function As(e){return e<0?-e*e:e*e}function _s(e){var t=e(qu,qu),r=1;function n(){return 1===r?e(qu,qu):.5===r?e(Ds,As):e(Ts(r),Ts(1/r))}return t.exponent=function(e){return arguments.length?(r=+e,n()):r},ds(t)}function Ns(){var e=_s(Yu());return e.copy=function(){return Ju(e,Ns()).exponent(e.exponent())},Ya.apply(e,arguments),e}function Ps(){return Ns.apply(null,arguments).exponent(.5)}function Cs(e){return Math.sign(e)*e*e}function Ls(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Rs(){var e,t=Xu(),r=[0,1],n=!1;function i(r){var i=Ls(t(r));return isNaN(i)?e:n?Math.round(i):i}return i.invert=function(e){return t.invert(Cs(e))},i.domain=function(e){return arguments.length?(t.domain(e),i):t.domain()},i.range=function(e){return arguments.length?(t.range((r=Array.from(e,Gu)).map(Cs)),i):r.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(n=!!e,i):n},i.clamp=function(e){return arguments.length?(t.clamp(e),i):t.clamp()},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return Rs(t.domain(),r).round(n).clamp(t.clamp()).unknown(e)},Ya.apply(i,arguments),ds(i)}function Bs(e,t){let r;if(void 0===t)for(const n of e)null!=n&&(r<n||void 0===r&&n>=n)&&(r=n);else{let n=-1;for(let i of e)null!=(i=t(i,++n,e))&&(r<i||void 0===r&&i>=i)&&(r=i)}return r}function Us(e,t){let r;if(void 0===t)for(const n of e)null!=n&&(r>n||void 0===r&&n>=n)&&(r=n);else{let n=-1;for(let i of e)null!=(i=t(i,++n,e))&&(r>i||void 0===r&&i>=i)&&(r=i)}return r}function zs(e,t,r=0,n=e.length-1,i=Gc){for(;n>r;){if(n-r>600){const o=n-r+1,a=t-r+1,c=Math.log(o),u=.5*Math.exp(2*c/3),s=.5*Math.sqrt(c*u*(o-u)/o)*(a-o/2<0?-1:1);zs(e,t,Math.max(r,Math.floor(t-a*u/o+s)),Math.min(n,Math.floor(t+(o-a)*u/o+s)),i)}const o=e[t];let a=r,c=n;for(Hs(e,r,t),i(e[n],o)>0&&Hs(e,r,n);a<c;){for(Hs(e,a,c),++a,--c;i(e[a],o)<0;)++a;for(;i(e[c],o)>0;)--c}0===i(e[r],o)?Hs(e,r,c):(++c,Hs(e,c,n)),c<=t&&(r=c+1),t<=c&&(n=c-1)}return e}function Hs(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function Gs(e,t,r){if(n=(e=Float64Array.from(function*(e,t){if(void 0===t)for(let r of e)null!=r&&(r=+r)>=r&&(yield r);else{let r=-1;for(let n of e)null!=(n=t(n,++r,e))&&(n=+n)>=n&&(yield n)}}(e,r))).length){if((t=+t)<=0||n<2)return Us(e);if(t>=1)return Bs(e);var n,i=(n-1)*t,o=Math.floor(i),a=Bs(zs(e,o).subarray(0,o+1));return a+(Us(e.subarray(o+1))-a)*(i-o)}}function Ws(e,t,r=qc){if(n=e.length){if((t=+t)<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,o=Math.floor(i),a=+r(e[o],o,e);return a+(+r(e[o+1],o+1,e)-a)*(i-o)}}function qs(){var e,t=[],r=[],n=[];function i(){var e=0,i=Math.max(1,r.length);for(n=new Array(i-1);++e<i;)n[e-1]=Ws(t,e/i);return o}function o(t){return null==t||isNaN(t=+t)?e:r[Vc(n,t)]}return o.invertExtent=function(e){var i=r.indexOf(e);return i<0?[NaN,NaN]:[i>0?n[i-1]:t[0],i<n.length?n[i]:t[t.length-1]]},o.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let r of e)null==r||isNaN(r=+r)||t.push(r);return t.sort(Gc),i()},o.range=function(e){return arguments.length?(r=Array.from(e),i()):r.slice()},o.unknown=function(t){return arguments.length?(e=t,o):e},o.quantiles=function(){return n.slice()},o.copy=function(){return qs().domain(t).range(r).unknown(e)},Ya.apply(o,arguments)}function Zs(){var e,t=0,r=1,n=1,i=[.5],o=[0,1];function a(t){return null!=t&&t<=t?o[Vc(i,t,0,n)]:e}function c(){var e=-1;for(i=new Array(n);++e<n;)i[e]=((e+1)*r-(e-n)*t)/(n+1);return a}return a.domain=function(e){return arguments.length?([t,r]=e,t=+t,r=+r,c()):[t,r]},a.range=function(e){return arguments.length?(n=(o=Array.from(e)).length-1,c()):o.slice()},a.invertExtent=function(e){var a=o.indexOf(e);return a<0?[NaN,NaN]:a<1?[t,i[0]]:a>=n?[i[n-1],r]:[i[a-1],i[a]]},a.unknown=function(t){return arguments.length?(e=t,a):a},a.thresholds=function(){return i.slice()},a.copy=function(){return Zs().domain([t,r]).range(o).unknown(e)},Ya.apply(ds(a),arguments)}function Fs(){var e,t=[.5],r=[0,1],n=1;function i(i){return null!=i&&i<=i?r[Vc(t,i,0,n)]:e}return i.domain=function(e){return arguments.length?(t=Array.from(e),n=Math.min(t.length,r.length-1),i):t.slice()},i.range=function(e){return arguments.length?(r=Array.from(e),n=Math.min(t.length,r.length-1),i):r.slice()},i.invertExtent=function(e){var n=r.indexOf(e);return[t[n-1],t[n]]},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return Fs().domain(t).range(r).unknown(e)},Ya.apply(i,arguments)}as=fs({thousands:",",grouping:[3],currency:["$",""]}),cs=as.format,us=as.formatPrefix;const Vs=1e3,Js=6e4,Ys=36e5,Xs=864e5,Qs=6048e5,$s=2592e6,Ks=31536e6;var el=new Date,tl=new Date;function rl(e,t,r,n){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(r){return e(r=new Date(r-1)),t(r,1),e(r),r},i.round=function(e){var t=i(e),r=i.ceil(e);return e-t<r-e?t:r},i.offset=function(e,r){return t(e=new Date(+e),null==r?1:Math.floor(r)),e},i.range=function(r,n,o){var a,c=[];if(r=i.ceil(r),o=null==o?1:Math.floor(o),!(r<n&&o>0))return c;do{c.push(a=new Date(+r)),t(r,o),e(r)}while(a<r&&r<n);return c},i.filter=function(r){return rl((function(t){if(t>=t)for(;e(t),!r(t);)t.setTime(t-1)}),(function(e,n){if(e>=e)if(n<0)for(;++n<=0;)for(;t(e,-1),!r(e););else for(;--n>=0;)for(;t(e,1),!r(e););}))},r&&(i.count=function(t,n){return el.setTime(+t),tl.setTime(+n),e(el),e(tl),Math.floor(r(el,tl))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(n?function(t){return n(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var nl=rl((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));nl.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?rl((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,r){t.setTime(+t+r*e)}),(function(t,r){return(r-t)/e})):nl:null};var il=nl,ol=(nl.range,rl((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*Vs)}),(function(e,t){return(t-e)/Vs}),(function(e){return e.getUTCSeconds()}))),al=ol,cl=(ol.range,rl((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Vs)}),(function(e,t){e.setTime(+e+t*Js)}),(function(e,t){return(t-e)/Js}),(function(e){return e.getMinutes()}))),ul=cl,sl=(cl.range,rl((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Vs-e.getMinutes()*Js)}),(function(e,t){e.setTime(+e+t*Ys)}),(function(e,t){return(t-e)/Ys}),(function(e){return e.getHours()}))),ll=sl,fl=(sl.range,rl((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Js)/Xs),(e=>e.getDate()-1))),pl=fl;fl.range;function dl(e){return rl((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Js)/Qs}))}var hl=dl(0),ml=dl(1),vl=dl(2),yl=dl(3),gl=dl(4),bl=dl(5),wl=dl(6),xl=(hl.range,ml.range,vl.range,yl.range,gl.range,bl.range,wl.range,rl((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}))),El=xl,Il=(xl.range,rl((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()})));Il.every=function(e){return isFinite(e=Math.floor(e))&&e>0?rl((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,r){t.setFullYear(t.getFullYear()+r*e)})):null};var Sl=Il,Ml=(Il.range,rl((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Js)}),(function(e,t){return(t-e)/Js}),(function(e){return e.getUTCMinutes()}))),Ol=Ml,kl=(Ml.range,rl((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Ys)}),(function(e,t){return(t-e)/Ys}),(function(e){return e.getUTCHours()}))),jl=kl,Tl=(kl.range,rl((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Xs}),(function(e){return e.getUTCDate()-1}))),Dl=Tl;Tl.range;function Al(e){return rl((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/Qs}))}var _l=Al(0),Nl=Al(1),Pl=Al(2),Cl=Al(3),Ll=Al(4),Rl=Al(5),Bl=Al(6),Ul=(_l.range,Nl.range,Pl.range,Cl.range,Ll.range,Rl.range,Bl.range,rl((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}))),zl=Ul,Hl=(Ul.range,rl((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()})));Hl.every=function(e){return isFinite(e=Math.floor(e))&&e>0?rl((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})):null};var Gl=Hl;Hl.range;function Wl(e,t,r,n,i,o){const a=[[al,1,Vs],[al,5,5e3],[al,15,15e3],[al,30,3e4],[o,1,Js],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,Ys],[i,3,108e5],[i,6,216e5],[i,12,432e5],[n,1,Xs],[n,2,1728e5],[r,1,Qs],[t,1,$s],[t,3,7776e6],[e,1,Ks]];function c(t,r,n){const i=Math.abs(r-t)/n,o=Wc((([,,e])=>e)).right(a,i);if(o===a.length)return e.every(Hc(t/Ks,r/Ks,n));if(0===o)return il.every(Math.max(Hc(t,r,n),1));const[c,u]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return c.every(u)}return[function(e,t,r){const n=t<e;n&&([e,t]=[t,e]);const i=r&&"function"==typeof r.range?r:c(e,t,r),o=i?i.range(e,+t+1):[];return n?o.reverse():o},c]}const[ql,Zl]=Wl(Gl,zl,_l,Dl,jl,Ol),[Fl,Vl]=Wl(Sl,El,hl,pl,ll,ul);function Jl(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Yl(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Xl(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}var Ql,$l,Kl,ef={"-":"",_:" ",0:"0"},tf=/^\s*\d+/,rf=/^%/,nf=/[\\^$*+?|[\]().{}]/g;function of(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",o=i.length;return n+(o<r?new Array(r-o+1).join(t)+i:i)}function af(e){return e.replace(nf,"\\$&")}function cf(e){return new RegExp("^(?:"+e.map(af).join("|")+")","i")}function uf(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function sf(e,t,r){var n=tf.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function lf(e,t,r){var n=tf.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function ff(e,t,r){var n=tf.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function pf(e,t,r){var n=tf.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function df(e,t,r){var n=tf.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function hf(e,t,r){var n=tf.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function mf(e,t,r){var n=tf.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function vf(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function yf(e,t,r){var n=tf.exec(t.slice(r,r+1));return n?(e.q=3*n[0]-3,r+n[0].length):-1}function gf(e,t,r){var n=tf.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function bf(e,t,r){var n=tf.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function wf(e,t,r){var n=tf.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function xf(e,t,r){var n=tf.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function Ef(e,t,r){var n=tf.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function If(e,t,r){var n=tf.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function Sf(e,t,r){var n=tf.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function Mf(e,t,r){var n=tf.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Of(e,t,r){var n=rf.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function kf(e,t,r){var n=tf.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function jf(e,t,r){var n=tf.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Tf(e,t){return of(e.getDate(),t,2)}function Df(e,t){return of(e.getHours(),t,2)}function Af(e,t){return of(e.getHours()%12||12,t,2)}function _f(e,t){return of(1+pl.count(Sl(e),e),t,3)}function Nf(e,t){return of(e.getMilliseconds(),t,3)}function Pf(e,t){return Nf(e,t)+"000"}function Cf(e,t){return of(e.getMonth()+1,t,2)}function Lf(e,t){return of(e.getMinutes(),t,2)}function Rf(e,t){return of(e.getSeconds(),t,2)}function Bf(e){var t=e.getDay();return 0===t?7:t}function Uf(e,t){return of(hl.count(Sl(e)-1,e),t,2)}function zf(e){var t=e.getDay();return t>=4||0===t?gl(e):gl.ceil(e)}function Hf(e,t){return e=zf(e),of(gl.count(Sl(e),e)+(4===Sl(e).getDay()),t,2)}function Gf(e){return e.getDay()}function Wf(e,t){return of(ml.count(Sl(e)-1,e),t,2)}function qf(e,t){return of(e.getFullYear()%100,t,2)}function Zf(e,t){return of((e=zf(e)).getFullYear()%100,t,2)}function Ff(e,t){return of(e.getFullYear()%1e4,t,4)}function Vf(e,t){var r=e.getDay();return of((e=r>=4||0===r?gl(e):gl.ceil(e)).getFullYear()%1e4,t,4)}function Jf(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+of(t/60|0,"0",2)+of(t%60,"0",2)}function Yf(e,t){return of(e.getUTCDate(),t,2)}function Xf(e,t){return of(e.getUTCHours(),t,2)}function Qf(e,t){return of(e.getUTCHours()%12||12,t,2)}function $f(e,t){return of(1+Dl.count(Gl(e),e),t,3)}function Kf(e,t){return of(e.getUTCMilliseconds(),t,3)}function ep(e,t){return Kf(e,t)+"000"}function tp(e,t){return of(e.getUTCMonth()+1,t,2)}function rp(e,t){return of(e.getUTCMinutes(),t,2)}function np(e,t){return of(e.getUTCSeconds(),t,2)}function ip(e){var t=e.getUTCDay();return 0===t?7:t}function op(e,t){return of(_l.count(Gl(e)-1,e),t,2)}function ap(e){var t=e.getUTCDay();return t>=4||0===t?Ll(e):Ll.ceil(e)}function cp(e,t){return e=ap(e),of(Ll.count(Gl(e),e)+(4===Gl(e).getUTCDay()),t,2)}function up(e){return e.getUTCDay()}function sp(e,t){return of(Nl.count(Gl(e)-1,e),t,2)}function lp(e,t){return of(e.getUTCFullYear()%100,t,2)}function fp(e,t){return of((e=ap(e)).getUTCFullYear()%100,t,2)}function pp(e,t){return of(e.getUTCFullYear()%1e4,t,4)}function dp(e,t){var r=e.getUTCDay();return of((e=r>=4||0===r?Ll(e):Ll.ceil(e)).getUTCFullYear()%1e4,t,4)}function hp(){return"+0000"}function mp(){return"%"}function vp(e){return+e}function yp(e){return Math.floor(+e/1e3)}function gp(e){return new Date(e)}function bp(e){return e instanceof Date?+e:+new Date(+e)}function wp(e,t,r,n,i,o,a,c,u,s){var l=Xu(),f=l.invert,p=l.domain,d=s(".%L"),h=s(":%S"),m=s("%I:%M"),v=s("%I %p"),y=s("%a %d"),g=s("%b %d"),b=s("%B"),w=s("%Y");function x(e){return(u(e)<e?d:c(e)<e?h:a(e)<e?m:o(e)<e?v:n(e)<e?i(e)<e?y:g:r(e)<e?b:w)(e)}return l.invert=function(e){return new Date(f(e))},l.domain=function(e){return arguments.length?p(Array.from(e,bp)):p().map(gp)},l.ticks=function(t){var r=p();return e(r[0],r[r.length-1],null==t?10:t)},l.tickFormat=function(e,t){return null==t?x:s(t)},l.nice=function(e){var r=p();return e&&"function"==typeof e.range||(e=t(r[0],r[r.length-1],null==e?10:e)),e?p(vs(r,e)):l},l.copy=function(){return Ju(l,wp(e,t,r,n,i,o,a,c,u,s))},l}function xp(){return Ya.apply(wp(Fl,Vl,Sl,El,hl,pl,ll,ul,al,$l).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Ep(){return Ya.apply(wp(ql,Zl,Gl,zl,_l,Dl,jl,Ol,al,Kl).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ip(){var e,t,r,n,i,o=0,a=1,c=qu,u=!1;function s(t){return null==t||isNaN(t=+t)?i:c(0===r?.5:(t=(n(t)-e)*r,u?Math.max(0,Math.min(1,t)):t))}function l(e){return function(t){var r,n;return arguments.length?([r,n]=t,c=e(r,n),s):[c(0),c(1)]}}return s.domain=function(i){return arguments.length?([o,a]=i,e=n(o=+o),t=n(a=+a),r=e===t?0:1/(t-e),s):[o,a]},s.clamp=function(e){return arguments.length?(u=!!e,s):u},s.interpolator=function(e){return arguments.length?(c=e,s):c},s.range=l(zu),s.rangeRound=l(Hu),s.unknown=function(e){return arguments.length?(i=e,s):i},function(i){return n=i,e=i(o),t=i(a),r=e===t?0:1/(t-e),s}}function Sp(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Mp(){var e=ds(Ip()(qu));return e.copy=function(){return Sp(e,Mp())},Xa.apply(e,arguments)}function Op(){var e=Is(Ip()).domain([1,10]);return e.copy=function(){return Sp(e,Op()).base(e.base())},Xa.apply(e,arguments)}function kp(){var e=ks(Ip());return e.copy=function(){return Sp(e,kp()).constant(e.constant())},Xa.apply(e,arguments)}function jp(){var e=_s(Ip());return e.copy=function(){return Sp(e,jp()).exponent(e.exponent())},Xa.apply(e,arguments)}function Tp(){return jp.apply(null,arguments).exponent(.5)}function Dp(){var e=[],t=qu;function r(r){if(null!=r&&!isNaN(r=+r))return t((Vc(e,r,1)-1)/(e.length-1))}return r.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let r of t)null==r||isNaN(r=+r)||e.push(r);return e.sort(Gc),r},r.interpolator=function(e){return arguments.length?(t=e,r):t},r.range=function(){return e.map(((r,n)=>t(n/(e.length-1))))},r.quantiles=function(t){return Array.from({length:t+1},((r,n)=>Gs(e,n/t)))},r.copy=function(){return Dp(t).domain(e)},Xa.apply(r,arguments)}function Ap(e,t){void 0===t&&(t=e,e=zu);for(var r=0,n=t.length-1,i=t[0],o=new Array(n<0?0:n);r<n;)o[r]=e(i,i=t[++r]);return function(e){var t=Math.max(0,Math.min(n-1,Math.floor(e*=n)));return o[t](e-t)}}function _p(){var e,t,r,n,i,o,a,c=0,u=.5,s=1,l=1,f=qu,p=!1;function d(e){return isNaN(e=+e)?a:(e=.5+((e=+o(e))-t)*(l*e<l*t?n:i),f(p?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var r,n,i;return arguments.length?([r,n,i]=t,f=Ap(e,[r,n,i]),d):[f(0),f(.5),f(1)]}}return d.domain=function(a){return arguments.length?([c,u,s]=a,e=o(c=+c),t=o(u=+u),r=o(s=+s),n=e===t?0:.5/(t-e),i=t===r?0:.5/(r-t),l=t<e?-1:1,d):[c,u,s]},d.clamp=function(e){return arguments.length?(p=!!e,d):p},d.interpolator=function(e){return arguments.length?(f=e,d):f},d.range=h(zu),d.rangeRound=h(Hu),d.unknown=function(e){return arguments.length?(a=e,d):a},function(a){return o=a,e=a(c),t=a(u),r=a(s),n=e===t?0:.5/(t-e),i=t===r?0:.5/(r-t),l=t<e?-1:1,d}}function Np(){var e=ds(_p()(qu));return e.copy=function(){return Sp(e,Np())},Xa.apply(e,arguments)}function Pp(){var e=Is(_p()).domain([.1,1,10]);return e.copy=function(){return Sp(e,Pp()).base(e.base())},Xa.apply(e,arguments)}function Cp(){var e=ks(_p());return e.copy=function(){return Sp(e,Cp()).constant(e.constant())},Xa.apply(e,arguments)}function Lp(){var e=_s(_p());return e.copy=function(){return Sp(e,Lp()).exponent(e.exponent())},Xa.apply(e,arguments)}function Rp(){return Lp.apply(null,arguments).exponent(.5)}function Bp(e,t){if((i=e.length)>1)for(var r,n,i,o=1,a=e[t[0]],c=a.length;o<i;++o)for(n=a,a=e[t[o]],r=0;r<c;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function Up(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function zp(e,t){return e[t]}function Hp(e){const t=[];return t.key=e,t}function Gp(e){return function(e){if(Array.isArray(e))return Wp(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Wp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Wp(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wp(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Zp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qp(Object(r),!0).forEach((function(t){Fp(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Fp(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vp(e,t,r){return Ie()(e)||Ie()(t)?r:J(t)?L()(e,t,r):me()(t)?t(e):r}function Jp(e,t,r,n){var i=sc()(e,(function(e){return Vp(e,t)}));if("number"===r){var o=i.filter((function(e){return V(e)||parseFloat(e)}));return o.length?[cc()(o),oc()(o)]:[1/0,-1/0]}return(n?i.filter((function(e){return!Ie()(e)})):i).map((function(e){return J(e)||e instanceof Date?e:""}))}!function(e){Ql=function(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,o=e.days,a=e.shortDays,c=e.months,u=e.shortMonths,s=cf(i),l=uf(i),f=cf(o),p=uf(o),d=cf(a),h=uf(a),m=cf(c),v=uf(c),y=cf(u),g=uf(u),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return c[e.getMonth()]},c:null,d:Tf,e:Tf,f:Pf,g:Zf,G:Vf,H:Df,I:Af,j:_f,L:Nf,m:Cf,M:Lf,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:vp,s:yp,S:Rf,u:Bf,U:Uf,V:Hf,w:Gf,W:Wf,x:null,X:null,y:qf,Y:Ff,Z:Jf,"%":mp},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return c[e.getUTCMonth()]},c:null,d:Yf,e:Yf,f:ep,g:fp,G:dp,H:Xf,I:Qf,j:$f,L:Kf,m:tp,M:rp,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:vp,s:yp,S:np,u:ip,U:op,V:cp,w:up,W:sp,x:null,X:null,y:lp,Y:pp,Z:hp,"%":mp},x={a:function(e,t,r){var n=d.exec(t.slice(r));return n?(e.w=h.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(e,t,r){var n=f.exec(t.slice(r));return n?(e.w=p.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(e,t,r){var n=y.exec(t.slice(r));return n?(e.m=g.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(e,t,r){var n=m.exec(t.slice(r));return n?(e.m=v.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(e,r,n){return S(e,t,r,n)},d:bf,e:bf,f:Mf,g:mf,G:hf,H:xf,I:xf,j:wf,L:Sf,m:gf,M:Ef,p:function(e,t,r){var n=s.exec(t.slice(r));return n?(e.p=l.get(n[0].toLowerCase()),r+n[0].length):-1},q:yf,Q:kf,s:jf,S:If,u:lf,U:ff,V:pf,w:sf,W:df,x:function(e,t,n){return S(e,r,t,n)},X:function(e,t,r){return S(e,n,t,r)},y:mf,Y:hf,Z:vf,"%":Of};function E(e,t){return function(r){var n,i,o,a=[],c=-1,u=0,s=e.length;for(r instanceof Date||(r=new Date(+r));++c<s;)37===e.charCodeAt(c)&&(a.push(e.slice(u,c)),null!=(i=ef[n=e.charAt(++c)])?n=e.charAt(++c):i="e"===n?" ":"0",(o=t[n])&&(n=o(r,i)),a.push(n),u=c+1);return a.push(e.slice(u,c)),a.join("")}}function I(e,t){return function(r){var n,i,o=Xl(1900,void 0,1);if(S(o,e,r+="",0)!=r.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(n=Yl(Xl(o.y,0,1))).getUTCDay(),n=i>4||0===i?Nl.ceil(n):Nl(n),n=Dl.offset(n,7*(o.V-1)),o.y=n.getUTCFullYear(),o.m=n.getUTCMonth(),o.d=n.getUTCDate()+(o.w+6)%7):(i=(n=Jl(Xl(o.y,0,1))).getDay(),n=i>4||0===i?ml.ceil(n):ml(n),n=pl.offset(n,7*(o.V-1)),o.y=n.getFullYear(),o.m=n.getMonth(),o.d=n.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Yl(Xl(o.y,0,1)).getUTCDay():Jl(Xl(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Yl(o)):Jl(o)}}function S(e,t,r,n){for(var i,o,a=0,c=t.length,u=r.length;a<c;){if(n>=u)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=x[i in ef?t.charAt(a++):i])||(n=o(e,r,n))<0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}return b.x=E(r,b),b.X=E(n,b),b.c=E(t,b),w.x=E(r,w),w.X=E(n,w),w.c=E(t,w),{format:function(e){var t=E(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=I(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=E(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=I(e+="",!0);return t.toString=function(){return e},t}}}(e),$l=Ql.format,Ql.parse,Kl=Ql.utcFormat,Ql.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Yp=function(e){var t,r=e.type.displayName,n=e.props,i=n.stroke,o=n.fill;switch(r){case"Line":t=i;break;case"Area":case"Radar":t=i&&"none"!==i?i:o;break;default:t=o}return t},Xp=function(e){var t,r=e.children,n=e.formatedGraphicalItems,i=e.legendWidth,o=e.legendContent,a=zo(r,Xn.displayName);return a?(t=a.props&&a.props.payload?a.props&&a.props.payload:"children"===o?(n||[]).reduce((function(e,t){var r=t.item,n=t.props,i=n.sectors||n.data||[];return e.concat(i.map((function(e){return{type:a.props.iconType||r.props.legendType,value:e.name,color:e.fill,payload:e}})))}),[]):(n||[]).map((function(e){var t=e.item,r=t.props,n=r.dataKey,i=r.name,o=r.legendType;return{inactive:r.hide,dataKey:n,type:a.props.iconType||o||"square",color:Yp(t),value:i||n,payload:t.props}})),Zp(Zp(Zp({},a.props),Xn.getWithHeight(a,i)),{},{payload:t,item:a})):null},Qp=function(e,t,r,n){var i=t.props.children,o=Uo(i,"ErrorBar").filter((function(e){var t=e.props.direction;return!(!Ie()(t)&&!Ie()(n))||n.indexOf(t)>=0}));if(o&&o.length){var a=o.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var n=Vp(t,r,0),i=B()(n)?[cc()(n),oc()(n)]:[n,n],o=a.reduce((function(e,r){var n=Vp(t,r,0),o=i[0]-Math.abs(B()(n)?n[0]:n),a=i[1]+Math.abs(B()(n)?n[1]:n);return[Math.min(o,e[0]),Math.max(a,e[1])]}),[1/0,-1/0]);return[Math.min(o[0],e[0]),Math.max(o[1],e[1])]}),[1/0,-1/0])}return null},$p=function(e,t,r,n){var i=t.map((function(t){var i=t.props.dataKey;return"number"===r&&i&&Qp(e,t,i)||Jp(e,i,r,n)}));if("number"===r)return i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var o={};return i.reduce((function(e,t){for(var r=0,n=t.length;r<n;r++)o[t[r]]||(o[t[r]]=!0,e.push(t[r]));return e}),[])},Kp=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},ed=function(e,t,r){var n,i,o=e.map((function(e){return e.coordinate===t&&(n=!0),e.coordinate===r&&(i=!0),e.coordinate}));return n||o.push(t),i||o.push(r),o},td=function(e,t,r){if(!e)return null;var n=e.scale,i=e.duplicateDomain,o=e.type,a=e.range,c=(t||r)&&"category"===o&&n.bandwidth?n.bandwidth()/2:0;return c="angleAxis"===e.axisType?2*Z(a[0]-a[1])*c:c,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=i?i.indexOf(e):e;return{coordinate:n(t)+c,value:e,offset:c}})):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:n(e)+c,value:e,index:t,offset:c}})):n.ticks&&!r?n.ticks(e.tickCount).map((function(e){return{coordinate:n(e)+c,value:e,offset:c}})):n.domain().map((function(e,t){return{coordinate:n(e)+c,value:i?i[e]:e,index:t,offset:c}}))},rd=function(e,t,r){var n;return me()(r)?n=r:me()(t)&&(n=t),me()(e)||n?function(t,r,i,o){me()(e)&&e(t,r,i,o),me()(n)&&n(t,r,i,o)}:null},nd=1e-4,id={sign:function(e){var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r<n;++r)for(var i=0,o=0,a=0;a<t;++a){var c=z()(e[a][r][1])?e[a][r][0]:e[a][r][1];c>=0?(e[a][r][0]=i,e[a][r][1]=i+c,i=e[a][r][1]):(e[a][r][0]=o,e[a][r][1]=o+c,o=e[a][r][1])}},expand:function(e,t){if((n=e.length)>0){for(var r,n,i,o=0,a=e[0].length;o<a;++o){for(i=r=0;r<n;++r)i+=e[r][o][1]||0;if(i)for(r=0;r<n;++r)e[r][o][1]/=i}Bp(e,t)}},none:Bp,silhouette:function(e,t){if((r=e.length)>0){for(var r,n=0,i=e[t[0]],o=i.length;n<o;++n){for(var a=0,c=0;a<r;++a)c+=e[a][n][1]||0;i[n][1]+=i[n][0]=-c/2}Bp(e,t)}},wiggle:function(e,t){if((i=e.length)>0&&(n=(r=e[t[0]]).length)>0){for(var r,n,i,o=0,a=1;a<n;++a){for(var c=0,u=0,s=0;c<i;++c){for(var l=e[t[c]],f=l[a][1]||0,p=(f-(l[a-1][1]||0))/2,d=0;d<c;++d){var h=e[t[d]];p+=(h[a][1]||0)-(h[a-1][1]||0)}u+=f,s+=p*f}r[a-1][1]+=r[a-1][0]=o,u&&(o-=s/u)}r[a-1][1]+=r[a-1][0]=o,Bp(e,t)}},positive:function(e){var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r<n;++r)for(var i=0,o=0;o<t;++o){var a=z()(e[o][r][1])?e[o][r][0]:e[o][r][1];a>=0?(e[o][r][0]=i,e[o][r][1]=i+a,i=e[o][r][1]):(e[o][r][0]=0,e[o][r][1]=0)}}},od=function(e,t,r){var n=t.map((function(e){return e.props.dataKey}));return function(){var e=dn([]),t=Up,r=Bp,n=zp;function i(i){var o,a,c=Array.from(e.apply(this,arguments),Hp),u=c.length,s=-1;for(const e of i)for(o=0,++s;o<u;++o)(c[o][s]=[0,+n(e,c[o].key,s,i)]).data=e;for(o=0,a=mi(t(c));o<u;++o)c[a[o]].index=o;return r(c,a),c}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:dn(Array.from(t)),i):e},i.value=function(e){return arguments.length?(n="function"==typeof e?e:dn(+e),i):n},i.order=function(e){return arguments.length?(t=null==e?Up:"function"==typeof e?e:dn(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(r=null==e?Bp:e,i):r},i}().keys(n).value((function(e,t){return+Vp(e,t,0)})).order(Up).offset(id[r])(e)},ad=function(e,t){var r=t.realScaleType,n=t.type,i=t.tickCount,o=t.originalDomain,a=t.allowDecimals,c=r||t.scale;if("auto"!==c&&"linear"!==c)return null;if(i&&"number"===n&&o&&("auto"===o[0]||"auto"===o[1])){var u=e.domain();if(!u.length)return null;var s=Pc(u,i,a);return e.domain(function(e,t){return"number"===t?[cc()(e),oc()(e)]:e}(s,n)),{niceTicks:s}}if(i&&"number"===n){var l=e.domain();return{niceTicks:Cc(l,i,a)}}return null},cd=function(e){var t=e.axis,r=e.ticks,n=e.offset,i=e.bandSize,o=e.entry,a=e.index;if("category"===t.type)return r[a]?r[a].coordinate+n:null;var c=Vp(o,t.dataKey,t.domain[a]);return Ie()(c)?null:t.scale(c)-i/2+n},ud=function(e,t,r){return Object.keys(e).reduce((function(n,i){var o=e[i].stackedData.reduce((function(e,n){var i=n.slice(t,r+1).reduce((function(e,t){return[cc()(t.concat([e[0]]).filter(V)),oc()(t.concat([e[1]]).filter(V))]}),[1/0,-1/0]);return[Math.min(e[0],i[0]),Math.max(e[1],i[1])]}),[1/0,-1/0]);return[Math.min(o[0],n[0]),Math.max(o[1],n[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))},sd=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ld=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,fd=function(e,t,r){if(!B()(e))return t;var n=[];if(V(e[0]))n[0]=r?e[0]:Math.min(e[0],t[0]);else if(sd.test(e[0])){var i=+sd.exec(e[0])[1];n[0]=t[0]-i}else me()(e[0])?n[0]=e[0](t[0]):n[0]=t[0];if(V(e[1]))n[1]=r?e[1]:Math.max(e[1],t[1]);else if(ld.test(e[1])){var o=+ld.exec(e[1])[1];n[1]=t[1]+o}else me()(e[1])?n[1]=e[1](t[1]):n[1]=t[1];return n},pd=function(e,t,r){if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var i=be()(t,(function(e){return e.coordinate})),o=1/0,a=1,c=i.length;a<c;a++){var u=i[a],s=i[a-1];o=Math.min((u.coordinate||0)-(s.coordinate||0),o)}return o===1/0?0:o}return 0},dd=function(e,t,r){return e&&e.length?nc()(e,L()(r,"type.defaultProps.domain"))?t:e:t},hd=function(e,t){var r=e.props,n=r.dataKey,i=r.name,o=r.unit,a=r.formatter,c=r.tooltipType;return Zp(Zp({},_e(e)),{},{dataKey:n,unit:o,formatter:a,name:i||n,color:Yp(e),value:Vp(t,n),type:c,payload:t})};function md(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?md(Object(r),!0).forEach((function(t){yd(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):md(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function yd(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var gd=["Webkit","Moz","O","ms"];function bd(e){return(bd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wd(){return(wd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function xd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ed(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xd(Object(r),!0).forEach((function(t){Id(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Id(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Md(e,t){return(Md=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Od(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Td(e);if(t){var i=Td(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return kd(this,r)}}function kd(e,t){return!t||"object"!==bd(t)&&"function"!=typeof t?jd(e):t}function jd(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Td(e){return(Td=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Dd=function(e){return e.changedTouches&&!!e.changedTouches.length},Ad=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Md(e,t)}(a,e);var t,r,n,i=Od(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).leaveTimer=void 0,t.travellerDragStartHandlers=void 0,t.handleDrag=function(e){t.leaveTimer&&(clearTimeout(t.leaveTimer),t.leaveTimer=null),t.state.isTravellerMoving?t.handleTravellerMove(e):t.state.isSlideMoving&&t.handleSlideDrag(e)},t.handleTouchMove=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleDrag(e.changedTouches[0])},t.handleDragEnd=function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1}),t.detachDragEndListener()},t.handleLeaveWrapper=function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))},t.handleEnterSlideOrTraveller=function(){t.setState({isTextActive:!0})},t.handleLeaveSlideOrTraveller=function(){t.setState({isTextActive:!1})},t.handleSlideDragStart=function(e){var r=Dd(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:r.pageX}),t.attachDragEndListener()},t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(jd(t),"startX"),endX:t.handleTravellerDragStart.bind(jd(t),"endX")},t.state={},t}return t=a,n=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,r=e.y,n=e.width,i=e.height,a=e.stroke,c=Math.floor(r+i/2)-1;return o.createElement(o.Fragment,null,o.createElement("rect",{x:t,y:r,width:n,height:i,fill:a,stroke:"none"}),o.createElement("line",{x1:t+1,y1:c,x2:t+n-1,y2:c,fill:"none",stroke:"#fff"}),o.createElement("line",{x1:t+1,y1:c+2,x2:t+n-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):me()(e)?e(t):a.renderDefaultTraveller(t)}},{key:"getDerivedStateFromProps",value:function(e,t){var r=e.data,n=e.width,i=e.x,o=e.travellerWidth,a=e.updateId,c=e.startIndex,u=e.endIndex;if(r!==t.prevData||a!==t.prevUpdateId)return Ed({prevData:r,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:n},r&&r.length?function(e){var t=e.data,r=e.startIndex,n=e.endIndex,i=e.x,o=e.width,a=e.travellerWidth;if(!t||!t.length)return{};var c=t.length,u=tc().domain(xe()(0,c)).range([i,i+o-a]),s=u.domain().map((function(e){return u(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:u(r),endX:u(n),scale:u,scaleValues:s}}({data:r,width:n,x:i,travellerWidth:o,startIndex:c,endIndex:u}):{scale:null,scaleValues:null});if(t.scale&&(n!==t.prevWidth||i!==t.prevX||o!==t.prevTravellerWidth)){t.scale.range([i,i+n-o]);var s=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:r,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:n,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:s}}return null}},{key:"getIndexInRange",value:function(e,t){for(var r=0,n=e.length-1;n-r>1;){var i=Math.floor((r+n)/2);e[i]>t?n=i:r=i}return t>=e[n]?n:r}}],(r=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,r=e.endX,n=this.state.scaleValues,i=this.props,o=i.gap,c=i.data.length-1,u=Math.min(t,r),s=Math.max(t,r),l=a.getIndexInRange(n,u),f=a.getIndexInRange(n,s);return{startIndex:l-l%o,endIndex:f===c?c:f-f%o}}},{key:"getTextOfTick",value:function(e){var t=this.props,r=t.data,n=t.tickFormatter,i=t.dataKey,o=Vp(r[e],i,e);return me()(n)?n(o,e):o}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,r=t.slideMoveStartX,n=t.startX,i=t.endX,o=this.props,a=o.x,c=o.width,u=o.travellerWidth,s=o.startIndex,l=o.endIndex,f=o.onChange,p=e.pageX-r;p>0?p=Math.min(p,a+c-u-i,a+c-u-n):p<0&&(p=Math.max(p,a-n,a-i));var d=this.getIndex({startX:n+p,endX:i+p});d.startIndex===s&&d.endIndex===l||!f||f(d),this.setState({startX:n+p,endX:i+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var r=Dd(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t,r=this.state,n=r.brushMoveStartX,i=r.movingTravellerId,o=r.endX,a=r.startX,c=this.state[i],u=this.props,s=u.x,l=u.width,f=u.travellerWidth,p=u.onChange,d=u.gap,h=u.data,m={startX:this.state.startX,endX:this.state.endX},v=e.pageX-n;v>0?v=Math.min(v,s+l-f-c):v<0&&(v=Math.max(v,s-c)),m[i]=c+v;var y=this.getIndex(m),g=y.startIndex,b=y.endIndex;this.setState((Id(t={},i,c+v),Id(t,"brushMoveStartX",e.pageX),t),(function(){var e;p&&(e=h.length-1,("startX"===i&&(o>a?g%d==0:b%d==0)||o<a&&b===e||"endX"===i&&(o>a?b%d==0:g%d==0)||o>a&&b===e)&&p(y))}))}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,r=e.y,n=e.width,i=e.height,a=e.fill,c=e.stroke;return o.createElement("rect",{stroke:c,fill:a,x:t,y:r,width:n,height:i})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,r=e.y,n=e.width,i=e.height,a=e.data,c=e.children,u=e.padding,s=o.Children.only(c);return s?o.cloneElement(s,{x:t,y:r,width:n,height:i,margin:u,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,t){var r=this.props,n=r.y,i=r.travellerWidth,c=r.height,u=r.traveller,s=Math.max(e,this.props.x),l=Ed(Ed({},_e(this.props)),{},{x:s,y:n,width:i,height:c});return o.createElement(ze,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],style:{cursor:"col-resize"}},a.renderTraveller(u,l))}},{key:"renderSlide",value:function(e,t){var r=this.props,n=r.y,i=r.height,a=r.stroke,c=r.travellerWidth,u=Math.min(e,t)+c,s=Math.max(Math.abs(t-e)-c,0);return o.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:u,y:n,width:s,height:i})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,r=e.endIndex,n=e.y,i=e.height,a=e.travellerWidth,c=e.stroke,u=this.state,s=u.startX,l=u.endX,f={pointerEvents:"none",fill:c};return o.createElement(ze,{className:"recharts-brush-texts"},o.createElement(Sa,wd({textAnchor:"end",verticalAnchor:"middle",x:Math.min(s,l)-5,y:n+i/2},f),this.getTextOfTick(t)),o.createElement(Sa,wd({textAnchor:"start",verticalAnchor:"middle",x:Math.max(s,l)+a+5,y:n+i/2},f),this.getTextOfTick(r)))}},{key:"render",value:function(){var e=this.props,t=e.data,r=e.className,n=e.children,i=e.x,a=e.y,c=e.width,u=e.height,s=e.alwaysShowText,l=this.state,f=l.startX,p=l.endX,d=l.isTextActive,h=l.isSlideMoving,m=l.isTravellerMoving;if(!t||!t.length||!V(i)||!V(a)||!V(c)||!V(u)||c<=0||u<=0)return null;var v=N()("recharts-brush",r),y=1===o.Children.count(n),g=function(e,t){if(!e)return null;var r=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),n=gd.reduce((function(e,n){return vd(vd({},e),{},yd({},n+r,t))}),{});return n[e]=t,n}("userSelect","none");return o.createElement(ze,{className:v,onMouseMove:this.handleDrag,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),y&&this.renderPanorama(),this.renderSlide(f,p),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(p,"endX"),(d||h||m||s)&&this.renderText())}}])&&Sd(t.prototype,r),n&&Sd(t,n),a}(o.PureComponent);Ad.displayName="Brush",Ad.defaultProps={height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1};var _d=function(e,t){var r=e.alwaysShow,n=e.ifOverflow;return r&&(n="extendDomain"),n===t},Nd=r(18345),Pd=r.n(Nd);function Cd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ld(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Rd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ld(Object(r),!0).forEach((function(t){Bd(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ld(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Bd(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ud=function(e,t){var r=e.x,n=e.y,i=t.x,o=t.y;return{x:Math.min(r,i),y:Math.min(n,o),width:Math.abs(i-r),height:Math.abs(o-n)}},zd=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scale=void 0,this.scale=t}var t,r,n;return t=e,n=[{key:"create",value:function(t){return new e(t)}}],(r=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.bandAware,n=t.position;if(void 0!==e){if(n)switch(n){case"start":return this.scale(e);case"middle":var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(e)+o;default:return this.scale(e)}if(r){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),r=t[0],n=t[t.length-1];return r<=n?e>=r&&e<=n:e>=n&&e<=r}}])&&Cd(t.prototype,r),n&&Cd(t,n),e}();zd.EPS=1e-4;var Hd=function(e){var t=Object.keys(e).reduce((function(t,r){return Rd(Rd({},t),{},Bd({},r,zd.create(e[r])))}),{});return Rd(Rd({},t),{},{apply:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware;return Pd()(e,(function(e,r){return t[r].apply(e,{bandAware:n})}))},isInRange:function(e){return fe()(e,(function(e,r){return t[r].isInRange(e)}))}})};function Gd(){return(Gd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Wd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function qd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Wd(Object(r),!0).forEach((function(t){Zd(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Zd(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fd(e){var t=e.x,r=e.y,n=e.r,i=e.alwaysShow,a=e.clipPathId,c=J(t),u=J(r);if(te(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!u)return null;var s=function(e){var t=e.x,r=e.y,n=e.xAxis,i=e.yAxis,o=Hd({x:n.scale,y:i.scale}),a=o.apply({x:t,y:r},{bandAware:!0});return _d(e,"discard")&&!o.isInRange(a)?null:a}(e);if(!s)return null;var l=s.x,f=s.y,p=e.shape,d=e.className,h=qd(qd({clipPath:_d(e,"hidden")?"url(#".concat(a,")"):void 0},_e(e,!0)),{},{cx:l,cy:f});return o.createElement(ze,{className:N()("recharts-reference-dot",d)},Fd.renderDot(p,h),_a.renderCallByParent(e,{x:l-n,y:f-n,width:2*n,height:2*n}))}Fd.displayName="ReferenceDot",Fd.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},Fd.renderDot=function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):me()(e)?e(t):o.createElement(wo,Gd({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"}))};var Vd=r(94927),Jd=r.n(Vd);function Yd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Xd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yd(Object(r),!0).forEach((function(t){Qd(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Qd(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(u){i=!0,o=u}finally{try{n||null==c.return||c.return()}finally{if(i)throw o}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Kd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Kd(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kd(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function eh(){return(eh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function th(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxis,a=e.yAxis,c=e.shape,u=e.className,s=e.alwaysShow,l=e.clipPathId;te(void 0===s,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=function(e,t,r,n,i){var o=i.viewBox,a=o.x,c=o.y,u=o.width,s=o.height,l=i.position;if(r){var f=i.y,p=i.yAxis.orientation,d=e.y.apply(f,{position:l});if(_d(i,"discard")&&!e.y.isInRange(d))return null;var h=[{x:a+u,y:d},{x:a,y:d}];return"left"===p?h.reverse():h}if(t){var m=i.x,v=i.xAxis.orientation,y=e.x.apply(m,{position:l});if(_d(i,"discard")&&!e.x.isInRange(y))return null;var g=[{x:y,y:c+s},{x:y,y:c}];return"top"===v?g.reverse():g}if(n){var b=i.segment.map((function(t){return e.apply(t,{position:l})}));return _d(i,"discard")&&Jd()(b,(function(t){return!e.isInRange(t)}))?null:b}return null}(Hd({x:i.scale,y:a.scale}),J(t),J(r),n&&2===n.length,e);if(!f)return null;var p=$d(f,2),d=p[0],h=d.x,m=d.y,v=p[1],y=v.x,g=v.y,b=Xd(Xd({clipPath:_d(e,"hidden")?"url(#".concat(l,")"):void 0},_e(e,!0)),{},{x1:h,y1:m,x2:y,y2:g});return o.createElement(ze,{className:N()("recharts-reference-line",u)},function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):me()(e)?e(t):o.createElement("line",eh({},t,{className:"recharts-reference-line-line"}))}(c,b),_a.renderCallByParent(e,function(e){var t=e.x1,r=e.y1,n=e.x2,i=e.y2;return Ud({x:t,y:r},{x:n,y:i})}({x1:h,y1:m,x2:y,y2:g})))}function rh(){return(rh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function nh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ih(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nh(Object(r),!0).forEach((function(t){oh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function oh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}th.displayName="ReferenceLine",th.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function ah(e){var t=e.x1,r=e.x2,n=e.y1,i=e.y2,a=e.className,c=e.alwaysShow,u=e.clipPathId;te(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var s=J(t),l=J(r),f=J(n),p=J(i),d=e.shape;if(!(s||l||f||p||d))return null;var h=function(e,t,r,n,i){var o=i.x1,a=i.x2,c=i.y1,u=i.y2,s=i.xAxis,l=i.yAxis,f=Hd({x:s.scale,y:l.scale}),p={x:e?f.x.apply(o,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(c,{position:"start"}):f.y.rangeMin},d={x:t?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(u,{position:"end"}):f.y.rangeMax};return!_d(i,"discard")||f.isInRange(p)&&f.isInRange(d)?Ud(p,d):null}(s,l,f,p,e);if(!h&&!d)return null;var m=_d(e,"hidden")?"url(#".concat(u,")"):void 0;return o.createElement(ze,{className:N()("recharts-reference-area",a)},ah.renderRect(d,ih(ih({clipPath:m},_e(e,!0)),h)),_a.renderCallByParent(e,h))}ah.displayName="ReferenceArea",ah.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},ah.renderRect=function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):me()(e)?e(t):o.createElement(Ao,rh({},t,{className:"recharts-reference-area-rect"}))};var ch=function(e,t,r,n,i){var o=Uo(e,th.displayName),a=Uo(e,Fd.displayName),c=o.concat(a),u=Uo(e,ah.displayName),s="".concat(n,"Id"),l=n[0],f=t;if(c.length&&(f=c.reduce((function(e,t){if(t.props[s]===r&&_d(t.props,"extendDomain")&&V(t.props[l])){var n=t.props[l];return[Math.min(e[0],n),Math.max(e[1],n)]}return e}),f)),u.length){var p="".concat(l,"1"),d="".concat(l,"2");f=u.reduce((function(e,t){if(t.props[s]===r&&_d(t.props,"extendDomain")&&V(t.props[p])&&V(t.props[d])){var n=t.props[p],i=t.props[d];return[Math.min(e[0],n,i),Math.max(e[1],n,i)]}return e}),f)}return i&&i.length&&(f=i.reduce((function(e,t){return V(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),f)),f},uh=r(2594),sh=new(r.n(uh)());sh.setMaxListeners&&sh.setMaxListeners(10);var lh="recharts.syncMouseEvents";function fh(e){return(fh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ph(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(u){i=!0,o=u}finally{try{n||null==c.return||c.return()}finally{if(i)throw o}}return r}(e,t)||Eh(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dh(){return(dh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function hh(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function mh(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function vh(e,t){return(vh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function yh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=wh(e);if(t){var i=wh(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return gh(this,r)}}function gh(e,t){return!t||"object"!==fh(t)&&"function"!=typeof t?bh(e):t}function bh(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wh(e){return(wh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function xh(e){return function(e){if(Array.isArray(e))return Ih(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Eh(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Eh(e,t){if(e){if("string"==typeof e)return Ih(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ih(e,t):void 0}}function Ih(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Sh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Mh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Sh(Object(r),!0).forEach((function(t){Oh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Oh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var kh={xAxis:["bottom","top"],yAxis:["left","right"]},jh={x:0,y:0},Th=Number.isFinite?Number.isFinite:isFinite,Dh="function"==typeof requestAnimationFrame?requestAnimationFrame:"function"==typeof setImmediate?setImmediate:setTimeout,Ah="function"==typeof cancelAnimationFrame?cancelAnimationFrame:"function"==typeof clearImmediate?clearImmediate:clearTimeout,_h=function(e,t,r){var n=t.graphicalItems,i=t.dataStartIndex,o=t.dataEndIndex,a=(n||[]).reduce((function(e,t){var r=t.props.data;return r&&r.length?[].concat(xh(e),xh(r)):e}),[]);return a&&a.length>0?a:r&&r.props&&r.props.data&&r.props.data.length>0?r.props.data:e&&e.length&&V(i)&&V(o)?e.slice(i,o+1):[]},Nh=function(e,t,r,n){var i=e.graphicalItems,o=e.tooltipAxis,a=_h(t,e);return r<0||!i||!i.length||r>=a.length?null:i.reduce((function(e,t){if(t.props.hide)return e;var i,c=t.props.data;o.dataKey&&!o.allowDuplicatedCategory?i=ee(void 0===c?a:c,o.dataKey,n):i=c&&c[r]||a[r];return i?[].concat(xh(e),[hd(t,i)]):e}),[])},Ph=function(e,t,r,n){var i=n||{x:e.chartX,y:e.chartY},o=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(i,r),a=e.orderedTooltipTicks,c=e.tooltipAxis,u=e.tooltipTicks,s=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,a=null!==(t=null==r?void 0:r.length)&&void 0!==t?t:0;if(a>1){if(i&&"angleAxis"===i.axisType&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var c=i.range,u=0;u<a;u++){var s=u>0?n[u-1].coordinate:n[a-1].coordinate,l=n[u].coordinate,f=u>=a-1?n[0].coordinate:n[u+1].coordinate,p=void 0;if(Z(l-s)!==Z(f-l)){var d=[];if(Z(f-l)===Z(c[1]-c[0])){p=f;var h=l+c[1]-c[0];d[0]=Math.min(h,(h+s)/2),d[1]=Math.max(h,(h+s)/2)}else{p=s;var m=f+c[1]-c[0];d[0]=Math.min(l,(m+l)/2),d[1]=Math.max(l,(m+l)/2)}var v=[Math.min(l,(p+l)/2),Math.max(l,(p+l)/2)];if(e>v[0]&&e<=v[1]||e>=d[0]&&e<=d[1]){o=n[u].index;break}}else{var y=Math.min(s,f),g=Math.max(s,f);if(e>(y+l)/2&&e<=(g+l)/2){o=n[u].index;break}}}else for(var b=0;b<a;b++)if(0===b&&e<=(r[b].coordinate+r[b+1].coordinate)/2||b>0&&b<a-1&&e>(r[b].coordinate+r[b-1].coordinate)/2&&e<=(r[b].coordinate+r[b+1].coordinate)/2||b===a-1&&e>(r[b].coordinate+r[b-1].coordinate)/2){o=r[b].index;break}}else o=0;return o}(o,a,u,c);if(s>=0&&u){var l=u[s]&&u[s].value;return{activeTooltipIndex:s,activeLabel:l,activePayload:Nh(e,t,s,l),activeCoordinate:function(e,t,r,n){var i=t.find((function(e){return e&&e.index===r}));if(i){if("horizontal"===e)return{x:i.coordinate,y:n.y};if("vertical"===e)return{x:n.x,y:i.coordinate};if("centric"===e){var o=i.coordinate,a=n.radius;return Mh(Mh(Mh({},n),Xi(n.cx,n.cy,a,o)),{},{angle:o,radius:a})}var c=i.coordinate,u=n.angle;return Mh(Mh(Mh({},n),Xi(n.cx,n.cy,c,u)),{},{angle:u,radius:c})}return jh}(r,a,s,i)}}return null},Ch=function(e,t){var r=t.axes,n=t.graphicalItems,i=t.axisType,o=t.axisIdKey,a=t.stackGroups,c=t.dataStartIndex,u=t.dataEndIndex,s=e.layout,l=e.children,f=e.stackOffset,p=Kp(s,i);return r.reduce((function(t,r){var d=r.props,h=d.type,m=d.dataKey,v=d.allowDataOverflow,y=d.allowDuplicatedCategory,g=d.scale,b=d.ticks,w=r.props[o],x=_h(e.data,{graphicalItems:n.filter((function(e){return e.props[o]===w})),dataStartIndex:c,dataEndIndex:u}),E=x.length;if(!t[w]){var I,S,M;if(m){if(I=Jp(x,m,h),"category"===h&&p){var O=function(e){if(!B()(e))return!1;for(var t=e.length,r={},n=0;n<t;n++){if(r[e[n]])return!0;r[e[n]]=!0}return!1}(I);y&&O?(S=I,I=xe()(0,E)):y||(I=dd(r.props.domain,I,r).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(xh(e),[t])}),[]))}else if("category"===h)I=y?I.filter((function(e){return""!==e&&!Ie()(e)})):dd(r.props.domain,I,r).reduce((function(e,t){return e.indexOf(t)>=0||""===t||Ie()(t)?e:[].concat(xh(e),[t])}),[]);else if("number"===h){var k=function(e,t,r,n){var i=t.map((function(t){return Qp(e,t,r,n)})).filter((function(e){return!Ie()(e)}));return i&&i.length?i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null}(x,n.filter((function(e){return e.props[o]===w&&!e.props.hide})),m,i);k&&(I=k)}!p||"number"!==h&&"auto"===g||(M=Jp(x,m,"category"))}else I=p?xe()(0,E):a&&a[w]&&a[w].hasStack&&"number"===h?"expand"===f?[0,1]:ud(a[w].stackGroups,c,u):$p(x,n.filter((function(e){return e.props[o]===w&&!e.props.hide})),h,!0);if("number"===h)I=ch(l,I,w,i,b),r.props.domain&&(I=fd(r.props.domain,I,v));else if("category"===h&&r.props.domain){var j=r.props.domain;I.every((function(e){return j.indexOf(e)>=0}))&&(I=j)}return Mh(Mh({},t),{},Oh({},w,Mh(Mh({},r.props),{},{axisType:i,domain:I,categoricalDomain:M,duplicateDomain:S,originalDomain:r.props.domain,isCategorical:p,layout:s})))}return t}),{})},Lh=function(e,t){var r=t.axisType,n=void 0===r?"xAxis":r,i=t.AxisComp,o=t.graphicalItems,a=t.stackGroups,c=t.dataStartIndex,u=t.dataEndIndex,s=e.children,l="".concat(n,"Id"),f=Uo(s,i),p={};return f&&f.length?p=Ch(e,{axes:f,graphicalItems:o,axisType:n,axisIdKey:l,stackGroups:a,dataStartIndex:c,dataEndIndex:u}):o&&o.length&&(p=function(e,t){var r=t.graphicalItems,n=t.Axis,i=t.axisType,o=t.axisIdKey,a=t.stackGroups,c=t.dataStartIndex,u=t.dataEndIndex,s=e.layout,l=e.children,f=_h(e.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:u}),p=f.length,d=Kp(s,i),h=-1;return r.reduce((function(e,t){var m,v=t.props[o];return e[v]?e:(h++,d?m=xe()(0,p):a&&a[v]&&a[v].hasStack?(m=ud(a[v].stackGroups,c,u),m=ch(l,m,v,i)):(m=fd(n.defaultProps.domain,$p(f,r.filter((function(e){return e.props[o]===v&&!e.props.hide})),"number"),n.defaultProps.allowDataOverflow),m=ch(l,m,v,i)),Mh(Mh({},e),{},Oh({},v,Mh(Mh({axisType:i},n.defaultProps),{},{hide:!0,orientation:L()(kh,"".concat(i,".").concat(h%2),null),domain:m,originalDomain:n.defaultProps.domain,isCategorical:d,layout:s}))))}),{})}(e,{Axis:i,graphicalItems:o,axisType:n,axisIdKey:l,stackGroups:a,dataStartIndex:c,dataEndIndex:u})),p},Rh=function(e){var t=e.children,r=e.defaultShowTooltip,n=zo(t,Ad.displayName);return{chartX:0,chartY:0,dataStartIndex:n&&n.props&&n.props.startIndex||0,dataEndIndex:n&&n.props&&n.props.endIndex||e.data&&e.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!Ie()(r)&&r}},Bh=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},Uh=function(e,t){var r=e.props,n=(e.graphicalItems,e.xAxisMap),i=void 0===n?{}:n,o=e.yAxisMap,a=void 0===o?{}:o,c=r.width,u=r.height,s=r.children,l=r.margin||{},f=zo(s,Ad.displayName),p=zo(s,Xn.displayName),d=Object.keys(a).reduce((function(e,t){var r=a[t],n=r.orientation;return r.mirror||r.hide?e:Mh(Mh({},e),{},Oh({},n,e[n]+r.width))}),{left:l.left||0,right:l.right||0}),h=Object.keys(i).reduce((function(e,t){var r=i[t],n=r.orientation;return r.mirror||r.hide?e:Mh(Mh({},e),{},Oh({},n,L()(e,"".concat(n))+r.height))}),{top:l.top||0,bottom:l.bottom||0}),m=Mh(Mh({},h),d),v=m.bottom;return f&&(m.bottom+=f.props.height||Ad.defaultProps.height),p&&t&&(m=function(e,t,r,n){var i=r.children,o=r.width,a=r.margin,c=o-(a.left||0)-(a.right||0),u=Xp({children:i,legendWidth:c}),s=e;if(u){var l=n||{},f=u.align,p=u.verticalAlign,d=u.layout;("vertical"===d||"horizontal"===d&&"center"===p)&&V(e[f])&&(s=Zp(Zp({},e),{},Fp({},f,s[f]+(l.width||0)))),("horizontal"===d||"vertical"===d&&"center"===f)&&V(e[p])&&(s=Zp(Zp({},e),{},Fp({},p,s[p]+(l.height||0))))}return s}(m,0,r,t)),Mh(Mh({brushBottom:v},m),{},{width:c-m.left-m.right,height:u-m.top-m.bottom})};function zh(){return(zh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Hh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(u){i=!0,o=u}finally{try{n||null==c.return||c.return()}finally{if(i)throw o}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Gh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Gh(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Wh(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function qh(e){var t=e.offset,r=e.layout,n=e.width,i=e.dataKey,a=e.data,c=e.dataPointFormatter,u=e.xAxis,s=e.yAxis,l=Wh(e,["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"]),f=_e(l),p=a.map((function(e,a){var l=c(e,i),p=l.x,d=l.y,h=l.value,m=l.errorVal;if(!m)return null;var v,y,g=[];if(Array.isArray(m)){var b=Hh(m,2);v=b[0],y=b[1]}else v=y=m;if("vertical"===r){var w=u.scale,x=d+t,E=x+n,I=x-n,S=w(h-v),M=w(h+y);g.push({x1:M,y1:E,x2:M,y2:I}),g.push({x1:S,y1:x,x2:M,y2:x}),g.push({x1:S,y1:E,x2:S,y2:I})}else if("horizontal"===r){var O=s.scale,k=p+t,j=k-n,T=k+n,D=O(h-v),A=O(h+y);g.push({x1:j,y1:A,x2:T,y2:A}),g.push({x1:k,y1:D,x2:k,y2:A}),g.push({x1:j,y1:D,x2:T,y2:D})}return o.createElement(ze,zh({className:"recharts-errorBar",key:"bar-".concat(a)},f),g.map((function(e,t){return o.createElement("line",zh({},e,{key:"line-".concat(t)}))})))}));return o.createElement(ze,{className:"recharts-errorBars"},p)}qh.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},qh.displayName="ErrorBar";var Zh=function(e){return null};Zh.displayName="Cell";var Fh=r(16731),Vh=r.n(Fh);function Jh(e){return function(e){if(Array.isArray(e))return Yh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Yh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Yh(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Xh(){return(Xh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Qh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qh(Object(r),!0).forEach((function(t){Kh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Kh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function em(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var tm={valueAccessor:function(e){return B()(e.value)?Vh()(e.value):e.value}};function rm(e){var t=e.data,r=e.valueAccessor,n=e.dataKey,i=e.clockWise,a=e.id,c=e.textBreakAll,u=em(e,["data","valueAccessor","dataKey","clockWise","id","textBreakAll"]);return t&&t.length?o.createElement(ze,{className:"recharts-label-list"},t.map((function(e,t){var s=Ie()(n)?r(e,t):Vp(e&&e.payload,n),l=Ie()(a)?{}:{id:"".concat(a,"-").concat(t)};return o.createElement(_a,Xh({},_e(e,!0),u,l,{parentViewBox:e.parentViewBox,index:t,value:s,textBreakAll:c,viewBox:_a.parseViewBox(Ie()(i)?e:$h($h({},e),{},{clockWise:i})),key:"label-".concat(t)}))}))):null}function nm(e,t){return e?!0===e?o.createElement(rm,{key:"labelList-implicit",data:t}):o.isValidElement(e)||me()(e)?o.createElement(rm,{key:"labelList-implicit",data:t,content:e}):ke()(e)?o.createElement(rm,Xh({data:t},e,{key:"labelList-implicit"})):null:null}function im(e){return(im="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function om(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function am(){return(am=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function cm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function um(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cm(Object(r),!0).forEach((function(t){sm(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function sm(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fm(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function pm(e,t){return(pm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function dm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=mm(e);if(t){var i=mm(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return hm(this,r)}}function hm(e,t){return!t||"object"!==im(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function mm(e){return(mm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}rm.displayName="LabelList",rm.renderCallByParent=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=Uo(n,rm.displayName).map((function(e,r){return(0,o.cloneElement)(e,{data:t,key:"labelList-".concat(r)})}));if(!r)return i;var a=nm(e.label,t);return[a].concat(Jh(i))},rm.defaultProps=tm;var vm=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&pm(e,t)}(a,e);var t,r,n,i=dm(a);function a(){var e;lm(this,a);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return(e=i.call.apply(i,[this].concat(r))).state={isAnimationFinished:!1},e.id=X("recharts-bar-"),e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()},e.handleAnimationStart=function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()},e}return t=a,n=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}},{key:"renderRectangle",value:function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):me()(e)?e(t):o.createElement(Ao,t)}}],(r=[{key:"renderRectanglesStatically",value:function(e){var t=this,r=this.props.shape,n=_e(this.props);return e&&e.map((function(e,i){var c=um(um(um({},n),e),{},{index:i});return o.createElement(ze,am({className:"recharts-bar-rectangle"},Pe(t.props,e,i),{key:"rectangle-".concat(i)}),a.renderRectangle(r,c))}))}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,t=this.props,r=t.data,n=t.layout,i=t.isAnimationActive,a=t.animationBegin,c=t.animationDuration,u=t.animationEasing,s=t.animationId,l=this.state.prevData;return o.createElement(sr,{begin:a,duration:c,isActive:i,easing:u,from:{t:0},to:{t:1},key:"bar-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var i=t.t,a=r.map((function(e,t){var r=l&&l[t];if(r){var o=K(r.x,e.x),a=K(r.y,e.y),c=K(r.width,e.width),u=K(r.height,e.height);return um(um({},e),{},{x:o(i),y:a(i),width:c(i),height:u(i)})}if("horizontal"===n){var s=K(0,e.height)(i);return um(um({},e),{},{y:e.y+e.height-s,height:s})}var f=K(0,e.width)(i);return um(um({},e),{},{width:f})}));return o.createElement(ze,null,e.renderRectanglesStatically(a))}))}},{key:"renderRectangles",value:function(){var e=this.props,t=e.data,r=e.isAnimationActive,n=this.state.prevData;return!(r&&t&&t.length)||n&&nc()(n,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props.data,r=_e(this.props.background);return t.map((function(t,n){t.value;var i=t.background,o=om(t,["value","background"]);if(!i)return null;var c=um(um(um(um(um({},o),{},{fill:"#eee"},i),r),Pe(e.props,t,n)),{},{index:n,key:"background-bar-".concat(n),className:"recharts-bar-background-rectangle"});return a.renderRectangle(e.props.background,c)}))}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,t=e.data,r=e.xAxis,n=e.yAxis,i=e.layout,a=e.children,c=Uo(a,qh.displayName);if(!c)return null;var u="vertical"===i?t[0].height/2:t[0].width/2;function s(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:Vp(e,t)}}return c.map((function(e,a){return o.cloneElement(e,{key:"error-bar-".concat(a),data:t,xAxis:r,yAxis:n,layout:i,offset:u,dataPointFormatter:s})}))}},{key:"render",value:function(){var e=this.props,t=e.hide,r=e.data,n=e.className,i=e.xAxis,a=e.yAxis,c=e.left,u=e.top,s=e.width,l=e.height,f=e.isAnimationActive,p=e.background,d=e.id;if(t||!r||!r.length)return null;var h=this.state.isAnimationFinished,m=N()("recharts-bar",n),v=i&&i.allowDataOverflow||a&&a.allowDataOverflow,y=Ie()(d)?this.id:d;return o.createElement(ze,{className:m},v?o.createElement("defs",null,o.createElement("clipPath",{id:"clipPath-".concat(y)},o.createElement("rect",{x:c,y:u,width:s,height:l}))):null,o.createElement(ze,{className:"recharts-bar-rectangles",clipPath:v?"url(#clipPath-".concat(y,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(),(!f||h)&&rm.renderCallByParent(this.props,r))}}])&&fm(t.prototype,r),n&&fm(t,n),a}(o.PureComponent);vm.displayName="Bar",vm.defaultProps={xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",isAnimationActive:!Sr.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"},vm.getComposedData=function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,o=e.xAxis,a=e.yAxis,c=e.xAxisTicks,u=e.yAxisTicks,s=e.stackedData,l=e.dataStartIndex,f=e.displayedData,p=e.offset,d=function(e,t){if(!e)return null;for(var r=0,n=e.length;r<n;r++)if(e[r].item===t)return e[r].position;return null}(n,r);if(!d)return null;var h=t.layout,m=r.props,v=m.dataKey,y=m.children,g=m.minPointSize,b="horizontal"===h?a:o,w=s?b.scale.domain():null,x=function(e){var t=e.numericAxis,r=t.scale.domain();if("number"===t.type){var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return n<=0&&i>=0?0:i<0?i:n}return r[0]}({numericAxis:b}),E=Uo(y,Zh.displayName),I=f.map((function(e,t){var n,f,p,m,y,b;if(s?n=function(e,t){if(!t||2!==t.length||!V(t[0])||!V(t[1]))return e;var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!V(e[0])||e[0]<r)&&(i[0]=r),(!V(e[1])||e[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i}(s[l+t],w):(n=Vp(e,v),B()(n)||(n=[x,n])),"horizontal"===h){if(f=cd({axis:o,ticks:c,bandSize:i,offset:d.offset,entry:e,index:t}),p=a.scale(n[1]),m=d.size,y=a.scale(n[0])-a.scale(n[1]),b={x:f,y:a.y,width:m,height:a.height},Math.abs(g)>0&&Math.abs(y)<Math.abs(g)){var I=Z(y||g)*(Math.abs(g)-Math.abs(y));p-=I,y+=I}}else f=o.scale(n[0]),p=cd({axis:a,ticks:u,bandSize:i,offset:d.offset,entry:e,index:t}),m=o.scale(n[1])-o.scale(n[0]),y=d.size,b={x:o.x,y:p,width:o.width,height:y},Math.abs(g)>0&&Math.abs(m)<Math.abs(g)&&(m+=Z(m||g)*(Math.abs(g)-Math.abs(m)));return um(um(um({},e),{},{x:f,y:p,width:m,height:y,value:s?n:n[1],payload:e,background:b},E&&E[t]&&E[t].props),{},{tooltipPayload:[hd(r,e)],tooltipPosition:{x:f+m/2,y:p+y/2}})}));return um({data:I,layout:h},p)};var ym=function(){return null};ym.displayName="XAxis",ym.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",domain:[0,"auto"],padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0};var gm=function(){return null};gm.displayName="YAxis",gm.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",domain:[0,"auto"],padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1};var bm=function(e){var t,r,n=e.chartName,i=e.GraphicalChild,a=e.defaultTooltipEventType,c=void 0===a?"axis":a,u=e.validateTooltipEventTypes,s=void 0===u?["axis"]:u,l=e.axisComponents,f=e.legendContent,p=e.formatAxisMap,d=e.defaultProps,h=function(e,t){var r=t.graphicalItems,n=t.stackGroups,i=t.offset,a=t.updateId,c=t.dataStartIndex,u=t.dataEndIndex,s=e.barSize,f=e.layout,p=e.barGap,d=e.barCategoryGap,h=e.maxBarSize,m=Bh(f),v=m.numericAxisName,y=m.cateAxisName,g=function(e){return!(!e||!e.length)&&e.some((function(e){var t=Bo(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(r)&&function(e){var t=e.barSize,r=e.stackGroups,n=void 0===r?{}:r;if(!n)return{};for(var i={},o=Object.keys(n),a=0,c=o.length;a<c;a++)for(var u=n[o[a]].stackGroups,s=Object.keys(u),l=0,f=s.length;l<f;l++){var p=u[s[l]],d=p.items,h=p.cateAxisId,m=d.filter((function(e){return Bo(e.type).indexOf("Bar")>=0}));if(m&&m.length){var v=m[0].props.barSize,y=m[0].props[h];i[y]||(i[y]=[]),i[y].push({item:m[0],stackList:m.slice(1),barSize:Ie()(v)?t:v})}}return i}({barSize:s,stackGroups:n}),b=[];return r.forEach((function(r,s){var m=_h(e.data,{dataStartIndex:c,dataEndIndex:u},r),w=r.props,x=w.dataKey,E=w.maxBarSize,I=r.props["".concat(v,"Id")],S=r.props["".concat(y,"Id")],M=l.reduce((function(e,n){var i,o=t["".concat(n.axisType,"Map")],a=r.props["".concat(n.axisType,"Id")],c=o&&o[a];return Mh(Mh({},e),{},(Oh(i={},n.axisType,c),Oh(i,"".concat(n.axisType,"Ticks"),td(c)),i))}),{}),O=M[y],k=M["".concat(y,"Ticks")],j=n&&n[I]&&n[I].hasStack&&function(e,t){var r=e.props.stackId;if(J(r)){var n=t[r];if(n&&n.items.length){for(var i=-1,o=0,a=n.items.length;o<a;o++)if(n.items[o]===e){i=o;break}return i>=0?n.stackedData[i]:null}}return null}(r,n[I].stackGroups),T=Bo(r.type).indexOf("Bar")>=0,D=pd(O,k),A=[];if(T){var _=pd(O,k,!0),N=Ie()(E)?h:E;A=function(e){var t=e.barGap,r=e.barCategoryGap,n=e.bandSize,i=e.sizeList,o=void 0===i?[]:i,a=e.maxBarSize,c=o.length;if(c<1)return null;var u,s=Q(t,n,0,!0);if(o[0].barSize===+o[0].barSize){var l=!1,f=n/c,p=o.reduce((function(e,t){return e+t.barSize||0}),0);(p+=(c-1)*s)>=n&&(p-=(c-1)*s,s=0),p>=n&&f>0&&(l=!0,p=c*(f*=.9));var d={offset:((n-p)/2>>0)-s,size:0};u=o.reduce((function(e,t){var r=[].concat(Gp(e),[{item:t.item,position:{offset:d.offset+d.size+s,size:l?f:t.barSize}}]);return d=r[r.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:d})})),r}),[])}else{var h=Q(r,n,0,!0);n-2*h-(c-1)*s<=0&&(s=0);var m=(n-2*h-(c-1)*s)/c;m>1&&(m>>=0);var v=a===+a?Math.min(m,a):m;u=o.reduce((function(e,t,r){var n=[].concat(Gp(e),[{item:t.item,position:{offset:h+(m+s)*r+(m-v)/2,size:v}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:n[n.length-1].position})})),n}),[])}return u}({barGap:p,barCategoryGap:d,bandSize:_!==D?_:D,sizeList:g[S],maxBarSize:N}),_!==D&&(A=A.map((function(e){return Mh(Mh({},e),{},{position:Mh(Mh({},e.position),{},{offset:e.position.offset-_/2})})})))}var P,C,L,R,B=r&&r.type&&r.type.getComposedData;B&&b.push({props:Mh(Mh({},B(Mh(Mh({},M),{},{displayedData:m,props:e,dataKey:x,item:r,bandSize:D,barPosition:A,offset:i,stackedData:j,layout:f,dataStartIndex:c,dataEndIndex:u}))),{},(P={key:r.key||"item-".concat(s)},Oh(P,v,M[v]),Oh(P,y,M[y]),Oh(P,"animationId",a),P)),childIndex:(C=r,L=e.children,R=-1,o.Children.forEach(L,(function(e,t){e===C&&(R=t)})),R),item:r})})),b},m=function(e,t){var r=e.props,o=e.dataStartIndex,a=e.dataEndIndex,c=e.updateId;if(!Ho({props:r}))return null;var u=r.children,s=r.layout,f=r.stackOffset,d=r.data,m=r.reverseStackOrder,v=Bh(s),y=v.numericAxisName,g=v.cateAxisName,b=Uo(u,i),w=function(e,t,r,n,i,o){if(!e)return null;var a=(o?t.reverse():t).reduce((function(e,t){var i=t.props,o=i.stackId;if(i.hide)return e;var a=t.props[r],c=e[a]||{hasStack:!1,stackGroups:{}};if(J(o)){var u=c.stackGroups[o]||{numericAxisId:r,cateAxisId:n,items:[]};u.items.push(t),c.hasStack=!0,c.stackGroups[o]=u}else c.stackGroups[X("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[t]};return Zp(Zp({},e),{},Fp({},a,c))}),{});return Object.keys(a).reduce((function(t,o){var c=a[o];return c.hasStack&&(c.stackGroups=Object.keys(c.stackGroups).reduce((function(t,o){var a=c.stackGroups[o];return Zp(Zp({},t),{},Fp({},o,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:od(e,a.items,i)}))}),{})),Zp(Zp({},t),{},Fp({},o,c))}),{})}(d,b,"".concat(y,"Id"),"".concat(g,"Id"),f,m),x=l.reduce((function(e,t){var n="".concat(t.axisType,"Map");return Mh(Mh({},e),{},Oh({},n,Lh(r,Mh(Mh({},t),{},{graphicalItems:b,stackGroups:t.axisType===y&&w,dataStartIndex:o,dataEndIndex:a}))))}),{}),E=Uh(Mh(Mh({},x),{},{props:r,graphicalItems:b}),null==t?void 0:t.legendBBox);Object.keys(x).forEach((function(e){x[e]=p(r,x[e],E,e.replace("Map",""),n)}));var I,S,M=x["".concat(g,"Map")],O=(I=$(M),{tooltipTicks:S=td(I,!1,!0),orderedTooltipTicks:be()(S,(function(e){return e.coordinate})),tooltipAxis:I,tooltipAxisBandSize:pd(I)}),k=h(r,Mh(Mh({},x),{},{dataStartIndex:o,dataEndIndex:a,updateId:c,graphicalItems:b,stackGroups:w,offset:E}));return Mh(Mh({formatedGraphicalItems:k,graphicalItems:b,offset:E,stackGroups:w},O),x)};return r=t=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vh(e,t)}(u,e);var t,r,i,a=yh(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=a.call(this,e)).uniqueChartId=void 0,t.clipPathId=void 0,t.legendInstance=void 0,t.deferId=void 0,t.container=void 0,t.clearDeferId=function(){!Ie()(t.deferId)&&Ah&&Ah(t.deferId),t.deferId=null},t.handleLegendBBoxUpdate=function(e){if(e&&t.legendInstance){var r=t.state,n=r.dataStartIndex,i=r.dataEndIndex,o=r.updateId;t.setState(Mh({legendBBox:e},m({props:t.props,dataStartIndex:n,dataEndIndex:i,updateId:o},Mh(Mh({},t.state),{},{legendBBox:e}))))}},t.handleReceiveSyncEvent=function(e,r,n){t.props.syncId===e&&r!==t.uniqueChartId&&(t.clearDeferId(),t.deferId=Dh&&Dh(t.applySyncEvent.bind(bh(t),n)))},t.handleBrushChange=function(e){var r=e.startIndex,n=e.endIndex;if(r!==t.state.dataStartIndex||n!==t.state.dataEndIndex){var i=t.state.updateId;t.setState((function(){return Mh({dataStartIndex:r,dataEndIndex:n},m({props:t.props,dataStartIndex:r,dataEndIndex:n,updateId:i},t.state))})),t.triggerSyncEvent({dataStartIndex:r,dataEndIndex:n})}},t.handleMouseEnter=function(e){var r=t.props.onMouseEnter,n=t.getMouseInfo(e);if(n){var i=Mh(Mh({},n),{},{isTooltipActive:!0});t.setState(i),t.triggerSyncEvent(i),me()(r)&&r(i,e)}},t.triggeredAfterMouseMove=function(e){var r=t.props.onMouseMove,n=t.getMouseInfo(e),i=n?Mh(Mh({},n),{},{isTooltipActive:!0}):{isTooltipActive:!1};t.setState(i),t.triggerSyncEvent(i),me()(r)&&r(i,e)},t.handleItemMouseEnter=function(e){t.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))},t.handleItemMouseLeave=function(){t.setState((function(){return{isTooltipActive:!1}}))},t.handleMouseMove=function(e){e&&me()(e.persist)&&e.persist(),t.triggeredAfterMouseMove(e)},t.handleMouseLeave=function(e){var r=t.props.onMouseLeave,n={isTooltipActive:!1};t.setState(n),t.triggerSyncEvent(n),me()(r)&&r(n,e),t.cancelThrottledTriggerAfterMouseMove()},t.handleOuterEvent=function(e){var r=function(e){var t=e&&e.type;return t&&Ro[t]?Ro[t]:null}(e),n=L()(t.props,"".concat(r));r&&me()(n)&&n(/.*touch.*/i.test(r)?t.getMouseInfo(e.changedTouches[0]):t.getMouseInfo(e),e)},t.handleClick=function(e){var r=t.props.onClick,n=t.getMouseInfo(e);if(n){var i=Mh(Mh({},n),{},{isTooltipActive:!0});t.setState(i),t.triggerSyncEvent(i),me()(r)&&r(i,e)}},t.handleMouseDown=function(e){var r=t.props.onMouseDown;me()(r)&&r(t.getMouseInfo(e),e)},t.handleMouseUp=function(e){var r=t.props.onMouseUp;me()(r)&&r(t.getMouseInfo(e),e)},t.handleTouchMove=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseMove(e.changedTouches[0])},t.handleTouchStart=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseDown(e.changedTouches[0])},t.handleTouchEnd=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseUp(e.changedTouches[0])},t.verticalCoordinatesGenerator=function(e){var t=e.xAxis,r=e.width,n=e.height,i=e.offset;return ed(Va.getTicks(Mh(Mh(Mh({},Va.defaultProps),t),{},{ticks:td(t,!0),viewBox:{x:0,y:0,width:r,height:n}})),i.left,i.left+i.width)},t.horizontalCoordinatesGenerator=function(e){var t=e.yAxis,r=e.width,n=e.height,i=e.offset;return ed(Va.getTicks(Mh(Mh(Mh({},Va.defaultProps),t),{},{ticks:td(t,!0),viewBox:{x:0,y:0,width:r,height:n}})),i.top,i.top+i.height)},t.axesTicksGenerator=function(e){return td(e,!0)},t.renderCursor=function(e){var r=t.state,i=r.isTooltipActive,a=r.activeCoordinate,c=r.activePayload,u=r.offset,s=r.activeTooltipIndex,l=t.getTooltipEventType();if(!(e&&e.props.cursor&&i&&a&&"axis"===l))return null;var f,p=t.props.layout,d=Ci;if("ScatterChart"===n)f=a,d=qi;else if("BarChart"===n)f=t.getCursorRectangle(),d=Ao;else if("radial"===p){var h=t.getCursorPoints(),m=h.cx,v=h.cy,y=h.radius;f={cx:m,cy:v,startAngle:h.startAngle,endAngle:h.endAngle,innerRadius:y,outerRadius:y},d=lo}else f={points:t.getCursorPoints()},d=Ci;var g=e.key||"_recharts-cursor",b=Mh(Mh(Mh(Mh({stroke:"#ccc",pointerEvents:"none"},u),f),_e(e.props.cursor)),{},{payload:c,payloadIndex:s,key:g,className:"recharts-tooltip-cursor"});return(0,o.isValidElement)(e.props.cursor)?(0,o.cloneElement)(e.props.cursor,b):(0,o.createElement)(d,b)},t.renderPolarAxis=function(e,r,n){var i=L()(e,"type.axisType"),a=L()(t.state,"".concat(i,"Map"))[e.props["".concat(i,"Id")]];return(0,o.cloneElement)(e,Mh(Mh({},a),{},{className:i,key:e.key||"".concat(r,"-").concat(n),ticks:td(a,!0)}))},t.renderXAxis=function(e,r,n){var i=t.state.xAxisMap[e.props.xAxisId];return t.renderAxis(i,e,r,n)},t.renderYAxis=function(e,r,n){var i=t.state.yAxisMap[e.props.yAxisId];return t.renderAxis(i,e,r,n)},t.renderGrid=function(e){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,c=t.props,u=c.width,s=c.height,l=$(n),f=de()(i,(function(e){return fe()(e.domain,Th)}))||$(i),p=e.props||{};return(0,o.cloneElement)(e,{key:e.key||"grid",x:V(p.x)?p.x:a.left,y:V(p.y)?p.y:a.top,width:V(p.width)?p.width:a.width,height:V(p.height)?p.height:a.height,xAxis:l,yAxis:f,offset:a,chartWidth:u,chartHeight:s,verticalCoordinatesGenerator:p.verticalCoordinatesGenerator||t.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:p.horizontalCoordinatesGenerator||t.horizontalCoordinatesGenerator})},t.renderPolarGrid=function(e){var r=e.props,n=r.radialLines,i=r.polarAngles,a=r.polarRadius,c=t.state,u=c.radiusAxisMap,s=c.angleAxisMap,l=$(u),f=$(s),p=f.cx,d=f.cy,h=f.innerRadius,m=f.outerRadius;e.props;return(0,o.cloneElement)(e,{polarAngles:B()(i)?i:td(f,!0).map((function(e){return e.coordinate})),polarRadius:B()(a)?a:td(l,!0).map((function(e){return e.coordinate})),cx:p,cy:d,innerRadius:h,outerRadius:m,key:e.key||"polar-grid",radialLines:n})},t.renderLegend=function(){var e=t.state.formatedGraphicalItems,r=t.props,n=r.children,i=r.width,a=r.height,c=t.props.margin||{},u=i-(c.left||0)-(c.right||0),s=Xp({children:n,formatedGraphicalItems:e,legendWidth:u,legendContent:f});if(!s)return null;var l=s.item,p=hh(s,["item"]);return(0,o.cloneElement)(l,Mh(Mh({},p),{},{chartWidth:i,chartHeight:a,margin:c,ref:function(e){t.legendInstance=e},onBBoxUpdate:t.handleLegendBBoxUpdate}))},t.renderTooltip=function(){var e=t.props.children,r=zo(e,Rr.displayName);if(!r)return null;var n=t.state,i=n.isTooltipActive,a=n.activeCoordinate,c=n.activePayload,u=n.activeLabel,s=n.offset;return(0,o.cloneElement)(r,{viewBox:Mh(Mh({},s),{},{x:s.left,y:s.top}),active:i,label:u,payload:i?c:[],coordinate:a})},t.renderBrush=function(e){var r=t.props,n=r.margin,i=r.data,a=t.state,c=a.offset,u=a.dataStartIndex,s=a.dataEndIndex,l=a.updateId;return(0,o.cloneElement)(e,{key:e.key||"_recharts-brush",onChange:rd(t.handleBrushChange,null,e.props.onChange),data:i,x:V(e.props.x)?e.props.x:c.left,y:V(e.props.y)?e.props.y:c.top+c.height+c.brushBottom-(n.bottom||0),width:V(e.props.width)?e.props.width:c.width,startIndex:u,endIndex:s,updateId:"brush-".concat(l)})},t.renderReferenceElement=function(e,r,n){if(!e)return null;var i=bh(t).clipPathId,a=t.state,c=a.xAxisMap,u=a.yAxisMap,s=a.offset,l=e.props,f=l.xAxisId,p=l.yAxisId;return(0,o.cloneElement)(e,{key:e.key||"".concat(r,"-").concat(n),xAxis:c[f],yAxis:u[p],viewBox:{x:s.left,y:s.top,width:s.width,height:s.height},clipPathId:i})},t.renderActivePoints=function(e){var t=e.item,r=e.activePoint,n=e.basePoint,i=e.childIndex,o=e.isRange,a=[],c=t.props.key,s=t.item.props,l=s.activeDot,f=Mh(Mh({index:i,dataKey:s.dataKey,cx:r.x,cy:r.y,r:4,fill:Yp(t.item),strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value,key:"".concat(c,"-activePoint-").concat(i)},_e(l)),Ne(l));return a.push(u.renderActiveDot(l,f)),n?a.push(u.renderActiveDot(l,Mh(Mh({},f),{},{cx:n.x,cy:n.y,key:"".concat(c,"-basePoint-").concat(i)}))):o&&a.push(null),a},t.renderGraphicChild=function(e,r,n){var i=t.filterFormatItem(e,r,n);if(!i)return null;var a=t.getTooltipEventType(),c=t.state,u=c.isTooltipActive,s=c.tooltipAxis,l=c.activeTooltipIndex,f=c.activeLabel,p=t.props.children,d=zo(p,Rr.displayName),h=i.props,m=h.points,v=h.isRange,y=h.baseLine,g=i.item.props,b=g.activeDot,w=!g.hide&&u&&d&&b&&l>=0,x={};"axis"!==a&&d&&"click"===d.props.trigger?x={onClick:rd(t.handleItemMouseEnter,null,e.props.onCLick)}:"axis"!==a&&(x={onMouseLeave:rd(t.handleItemMouseLeave,null,e.props.onMouseLeave),onMouseEnter:rd(t.handleItemMouseEnter,null,e.props.onMouseEnter)});var E=(0,o.cloneElement)(e,Mh(Mh({},i.props),x));if(w){var I,S;if(s.dataKey&&!s.allowDuplicatedCategory){var M="function"==typeof s.dataKey?function(e){return"function"==typeof s.dataKey?s.dataKey(e.payload):null}:"payload.".concat(s.dataKey.toString());I=ee(m,M,f),S=v&&y&&ee(y,M,f)}else I=m[l],S=v&&y&&y[l];if(!Ie()(I))return[E].concat(xh(t.renderActivePoints({item:i,activePoint:I,basePoint:S,childIndex:l,isRange:v})))}return v?[E,null,null]:[E,null]},t.renderCustomized=function(e){return(0,o.cloneElement)(e,Mh(Mh({},t.props),t.state))},t.uniqueChartId=Ie()(e.id)?X("recharts"):e.id,t.clipPathId="".concat(t.uniqueChartId,"-clip"),e.throttleDelay&&(t.triggeredAfterMouseMove=ye()(t.triggeredAfterMouseMove,e.throttleDelay)),t.state={},t}return t=u,(r=[{key:"componentDidMount",value:function(){Ie()(this.props.syncId)||this.addListener()}},{key:"componentDidUpdate",value:function(e){Ie()(e.syncId)&&!Ie()(this.props.syncId)&&this.addListener(),!Ie()(e.syncId)&&Ie()(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),Ie()(this.props.syncId)||this.removeListener(),this.cancelThrottledTriggerAfterMouseMove()}},{key:"cancelThrottledTriggerAfterMouseMove",value:function(){"function"==typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=zo(this.props.children,Rr.displayName);if(e&&Me()(e.props.shared)){var t=e.props.shared?"axis":"item";return s.indexOf(t)>=0?t:c}return c}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t,r,n,i=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}}(e,(t=this.container,r=t.ownerDocument.documentElement,n={top:0,left:0},void 0!==t.getBoundingClientRect&&(n=t.getBoundingClientRect()),{top:n.top+window.pageYOffset-r.clientTop,left:n.left+window.pageXOffset-r.clientLeft})),o=this.inRange(i.chartX,i.chartY);if(!o)return null;var a=this.state,c=a.xAxisMap,u=a.yAxisMap;if("axis"!==this.getTooltipEventType()&&c&&u){var s=$(c).scale,l=$(u).scale,f=s&&s.invert?s.invert(i.chartX):null,p=l&&l.invert?l.invert(i.chartY):null;return Mh(Mh({},i),{},{xValue:f,yValue:p})}var d=Ph(this.state,this.props.data,this.props.layout,o);return d?Mh(Mh({},i),d):null}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,r=t.activeCoordinate,n=t.offset,i=t.tooltipAxisBandSize,o=i/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?r.x-o:n.left+.5,y:"horizontal"===e?n.top+.5:r.y-o,width:"horizontal"===e?i:n.width-1,height:"horizontal"===e?n.height-1:i}}},{key:"getCursorPoints",value:function(){var e,t,r,n,i=this.props.layout,o=this.state,a=o.activeCoordinate,c=o.offset;if("horizontal"===i)r=e=a.x,t=c.top,n=c.top+c.height;else if("vertical"===i)n=t=a.y,e=c.left,r=c.left+c.width;else if(!Ie()(a.cx)||!Ie()(a.cy)){if("centric"!==i){var u=a.cx,s=a.cy,l=a.radius,f=a.startAngle,p=a.endAngle;return{points:[Xi(u,s,l,f),Xi(u,s,l,p)],cx:u,cy:s,radius:l,startAngle:f,endAngle:p}}var d=a.cx,h=a.cy,m=a.innerRadius,v=a.outerRadius,y=a.angle,g=Xi(d,h,m,y),b=Xi(d,h,v,y);e=g.x,t=g.y,r=b.x,n=b.y}return[{x:e,y:t},{x:r,y:n}]}},{key:"inRange",value:function(e,t){var r=this.props.layout;if("horizontal"===r||"vertical"===r){var n=this.state.offset;return e>=n.left&&e<=n.left+n.width&&t>=n.top&&t<=n.top+n.height?{x:e,y:t}:null}var i=this.state,o=i.angleAxisMap,a=i.radiusAxisMap;if(o&&a){var c=$(o);return Ki({x:e,y:t},c)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),r=zo(e,Rr.displayName),n={};return r&&"axis"===t&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),Mh(Mh({},Ne(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){sh.on(lh,this.handleReceiveSyncEvent),sh.setMaxListeners&&sh._maxListeners&&sh.setMaxListeners(sh._maxListeners+1)}},{key:"removeListener",value:function(){sh.removeListener(lh,this.handleReceiveSyncEvent),sh.setMaxListeners&&sh._maxListeners&&sh.setMaxListeners(sh._maxListeners-1)}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;Ie()(t)||sh.emit(lh,t,this.uniqueChartId,e)}},{key:"applySyncEvent",value:function(e){var t=this.props,r=t.layout,n=t.syncMethod,i=this.state.updateId,o=e.dataStartIndex,a=e.dataEndIndex;if(Ie()(e.dataStartIndex)&&Ie()(e.dataEndIndex))if(Ie()(e.activeTooltipIndex))this.setState(e);else{var c=e.chartX,u=e.chartY,s=e.activeTooltipIndex,l=this.state,f=l.offset,p=l.tooltipTicks;if(!f)return;if("function"==typeof n)s=n(p,e);else if("value"===n){s=-1;for(var d=0;d<p.length;d++)if(p[d].value===e.activeLabel){s=d;break}}var h=Mh(Mh({},f),{},{x:f.left,y:f.top}),v=Math.min(c,h.x+h.width),y=Math.min(u,h.y+h.height),g=p[s]&&p[s].value,b=Nh(this.state,this.props.data,s),w=p[s]?{x:"horizontal"===r?p[s].coordinate:v,y:"horizontal"===r?y:p[s].coordinate}:jh;this.setState(Mh(Mh({},e),{},{activeLabel:g,activeCoordinate:w,activePayload:b,activeTooltipIndex:s}))}else this.setState(Mh({dataStartIndex:o,dataEndIndex:a},m({props:this.props,dataStartIndex:o,dataEndIndex:a,updateId:i},this.state)))}},{key:"filterFormatItem",value:function(e,t,r){for(var n=this.state.formatedGraphicalItems,i=0,o=n.length;i<o;i++){var a=n[i];if(a.item===e||a.props.key===e.key||t===Bo(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderAxis",value:function(e,t,r,n){var i=this.props,a=i.width,c=i.height;return o.createElement(Va,dh({},e,{className:"recharts-".concat(e.axisType," ").concat(e.axisType),key:t.key||"".concat(r,"-").concat(n),viewBox:{x:0,y:0,width:a,height:c},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var e=this.clipPathId,t=this.state.offset,r=t.left,n=t.top,i=t.height,a=t.width;return o.createElement("defs",null,o.createElement("clipPath",{id:e},o.createElement("rect",{x:r,y:n,height:i,width:a})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var r=ph(t,2),n=r[0],i=r[1];return Mh(Mh({},e),{},Oh({},n,i.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var r=ph(t,2),n=r[0],i=r[1];return Mh(Mh({},e),{},Oh({},n,i.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(e){var t,r;return null===(t=this.state.xAxisMap)||void 0===t||null===(r=t[e])||void 0===r?void 0:r.scale}},{key:"getYScaleByAxisId",value:function(e){var t,r;return null===(t=this.state.yAxisMap)||void 0===t||null===(r=t[e])||void 0===r?void 0:r.scale}},{key:"getItemByXY",value:function(e){var t=this.state.formatedGraphicalItems;if(t&&t.length)for(var r=0,n=t.length;r<n;r++){var i=t[r],o=i.props,a=i.item,c=Bo(a.type);if("Bar"===c){var u=(o.data||[]).find((function(t){return Do(e,t)}));if(u)return{graphicalItem:i,payload:u}}else if("RadialBar"===c){var s=(o.data||[]).find((function(t){return Ki(e,t)}));if(s)return{graphicalItem:i,payload:s}}}return null}},{key:"render",value:function(){var e=this;if(!Ho(this))return null;var t=this.props,r=t.children,n=t.className,i=t.width,a=t.height,c=t.style,u=t.compact,s=hh(t,["children","className","width","height","style","compact"]),l=_e(s),f={CartesianGrid:{handler:this.renderGrid,once:!0},ReferenceArea:{handler:this.renderReferenceElement},ReferenceLine:{handler:this.renderReferenceElement},ReferenceDot:{handler:this.renderReferenceElement},XAxis:{handler:this.renderXAxis},YAxis:{handler:this.renderYAxis},Brush:{handler:this.renderBrush,once:!0},Bar:{handler:this.renderGraphicChild},Line:{handler:this.renderGraphicChild},Area:{handler:this.renderGraphicChild},Radar:{handler:this.renderGraphicChild},RadialBar:{handler:this.renderGraphicChild},Scatter:{handler:this.renderGraphicChild},Pie:{handler:this.renderGraphicChild},Funnel:{handler:this.renderGraphicChild},Tooltip:{handler:this.renderCursor,once:!0},PolarGrid:{handler:this.renderPolarGrid,once:!0},PolarAngleAxis:{handler:this.renderPolarAxis},PolarRadiusAxis:{handler:this.renderPolarAxis},Customized:{handler:this.renderCustomized}};if(u)return o.createElement(Re,dh({},l,{width:i,height:a}),this.renderClipPath(),Fo(r,f));var p=this.parseEventsOfWrapper();return o.createElement("div",dh({className:N()("recharts-wrapper",n),style:Mh({position:"relative",cursor:"default",width:i,height:a},c)},p,{ref:function(t){e.container=t}}),o.createElement(Re,dh({},l,{width:i,height:a}),this.renderClipPath(),Fo(r,f)),this.renderLegend(),this.renderTooltip())}}])&&mh(t.prototype,r),i&&mh(t,i),u}(o.Component),t.displayName=n,t.defaultProps=Mh({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d),t.getDerivedStateFromProps=function(e,t){var r=e.data,n=e.children,i=e.width,o=e.height,a=e.layout,c=e.stackOffset,u=e.margin;if(Ie()(t.updateId)){var s=Rh(e);return Mh(Mh(Mh({},s),{},{updateId:0},m(Mh(Mh({props:e},s),{},{updateId:0}),t)),{},{prevData:r,prevWidth:i,prevHeight:o,prevLayout:a,prevStackOffset:c,prevMargin:u,prevChildren:n})}if(r!==t.prevData||i!==t.prevWidth||o!==t.prevHeight||a!==t.prevLayout||c!==t.prevStackOffset||!Co(u,t.prevMargin)){var l=Rh(e),f={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},p=Mh(Mh({},Ph(t,r,a)),{},{updateId:t.updateId+1}),d=Mh(Mh(Mh({},l),f),p);return Mh(Mh(Mh({},d),m(Mh({props:e},d),t)),{},{prevData:r,prevWidth:i,prevHeight:o,prevLayout:a,prevStackOffset:c,prevMargin:u,prevChildren:n})}if(!qo(n,t.prevChildren)){var h=!Ie()(r)?t.updateId:t.updateId+1;return Mh(Mh({updateId:h},m(Mh(Mh({props:e},t),{},{updateId:h}),t)),{},{prevChildren:n})}return null},t.renderActiveDot=function(e,t){var r;return r=(0,o.isValidElement)(e)?(0,o.cloneElement)(e,t):me()(e)?e(t):o.createElement(wo,t),o.createElement(ze,{className:"recharts-active-dot",key:t.key},r)},r}({chartName:"BarChart",GraphicalChild:vm,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:ym},{axisType:"yAxis",AxisComp:gm}],formatAxisMap:function(e,t,r,i,o){var a=e.width,c=e.height,u=e.layout,s=e.children,l=Object.keys(t),f={left:r.left,leftMirror:r.left,right:a-r.right,rightMirror:a-r.right,top:r.top,topMirror:r.top,bottom:c-r.bottom,bottomMirror:c-r.bottom},p=!!zo(s,"Bar");return l.reduce((function(e,a){var c,s,l,d,h=t[a],m=h.orientation,v=h.domain,y=h.padding,g=void 0===y?{}:y,b=h.mirror,w=h.reversed,x="".concat(m).concat(b?"Mirror":"");c="xAxis"===i?[r.left+(g.left||0),r.left+r.width-(g.right||0)]:"yAxis"===i?"horizontal"===u?[r.top+r.height-(g.bottom||0),r.top+(g.top||0)]:[r.top+(g.top||0),r.top+r.height-(g.bottom||0)]:h.range,w&&(c=[c[1],c[0]]);var E=function(e,t,r){var i=e.scale,o=e.type,a=e.layout,c=e.axisType;if("auto"===i)return"radial"===a&&"radiusAxis"===c?{scale:Ka(),realScaleType:"band"}:"radial"===a&&"angleAxis"===c?{scale:hs(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!r)?{scale:tc(),realScaleType:"point"}:"category"===o?{scale:Ka(),realScaleType:"band"}:{scale:hs(),realScaleType:"linear"};if(q()(i)){var u="scale".concat(Ur()(i));return{scale:(n[u]||tc)(),realScaleType:n[u]?u:"point"}}return me()(i)?{scale:i}:{scale:tc(),realScaleType:"point"}}(h,o,p),I=E.scale,S=E.realScaleType;I.domain(v).range(c),function(e){var t=e.domain();if(t&&!(t.length<=2)){var r=t.length,n=e.range(),i=Math.min(n[0],n[1])-nd,o=Math.max(n[0],n[1])+nd,a=e(t[0]),c=e(t[r-1]);(a<i||a>o||c<i||c>o)&&e.domain([t[0],t[r-1]])}}(I);var M=ad(I,Rd(Rd({},h),{},{realScaleType:S}));"xAxis"===i?(d="top"===m&&!b||"bottom"===m&&b,s=r.left,l=f[x]-d*h.height):"yAxis"===i&&(d="left"===m&&!b||"right"===m&&b,s=f[x]-d*h.width,l=r.top);var O=Rd(Rd(Rd({},h),M),{},{realScaleType:S,x:s,y:l,scale:I,width:"xAxis"===i?r.width:h.width,height:"yAxis"===i?r.height:h.height});return O.bandSize=pd(O,M),h.hide||"xAxis"!==i?h.hide||(f[x]+=(d?-1:1)*O.width):f[x]+=(d?-1:1)*O.height,Rd(Rd({},e),{},Bd({},a,O))}),{})}}),wm=e=>o.createElement("div",{className:"wprm-admin-dashboard-block-chart-days-container"},o.createElement("div",{className:"wprm-admin-dashboard-block-chart-title"},"📊 ".concat((0,y.S)("Daily Interaction"))),o.createElement(se,{width:"100%",height:300},o.createElement(bm,{data:e.data},o.createElement(ym,{dataKey:"date"}),o.createElement(gm,{type:"number",domain:[0,"dataMax"],allowDecimals:!1}),o.createElement(Rr,null),o.createElement(vm,{dataKey:"total",name:(0,y.S)("Interactions"),fill:"#2271b1"})))),xm=e=>0===e.data.length?null:o.createElement("div",{className:"wprm-admin-dashboard-block-chart-table-container"},o.createElement("div",{className:"wprm-admin-dashboard-block-chart-title"},e.title),o.createElement("table",{className:"wprm-admin-dashboard-block-chart-table"},o.createElement("thead",null,o.createElement("tr",null,o.createElement("th",null,e.label),o.createElement("th",null,(0,y.S)("Total")),o.createElement("th",null,(0,y.S)("Unique")))),o.createElement("tbody",null,e.data.map(((e,t)=>o.createElement("tr",{key:t},o.createElement("td",null,e.name),o.createElement("td",null,e.total),o.createElement("td",null,e.unique)))))));class Em extends o.Component{constructor(e){super(e),this.state={loading:!0,data:!1}}componentDidMount(){this.checkForUpdate()}checkForUpdate(){this.setState({loading:!0},(()=>{v.Z.dashboard.getAnalytics().then((e=>{var t=!1;e&&(t=e.data),this.setState({loading:!1,data:t})}))}))}render(){var{data:e}=this.state;return o.createElement(o.Fragment,null,this.state.loading?o.createElement(T.Z,null):o.createElement(o.Fragment,null,0===e.total?o.createElement("span",null,(0,y.S)("No actions found for the last 7 days. If you just enabled analytics they should start showing up soon.")):o.createElement(o.Fragment,null,o.createElement("div",{className:"wprm-admin-dashboard-block-chart"},o.createElement(wm,{data:e.per_day})),o.createElement("div",{className:"wprm-admin-dashboard-block-chart"},o.createElement(xm,{title:"🏆 ".concat((0,y.S)("Top Recipe Interactions (last 7 days)")),label:(0,y.S)("Recipe"),data:e.per_recipe})),o.createElement("div",{className:"wprm-admin-dashboard-block-chart"},o.createElement(xm,{title:"👍 ".concat((0,y.S)("Interactions (last 7 days)")),label:(0,y.S)("Type"),data:e.per_type})))))}}class Im extends o.Component{constructor(e){super(e),this.state={analyticsEnabled:wprm_admin_dashboard.settings.analytics_enabled}}render(){return o.createElement(g,{title:(0,y.S)("Analytics")},this.state.analyticsEnabled?o.createElement(o.Fragment,null,o.createElement(Em,null),wprm_admin_dashboard.settings.honey_home_integration?o.createElement(M,{title:(0,y.S)("Learn more")},"Go to your ",o.createElement("a",{href:"https://dailygrub.com/dashboard",target:"_blank"},"DailyGrub Dashboard")," for more insights!"):o.createElement(M,{title:"📈 ".concat((0,y.S)("Interested in more data?"))},"WP Recipe Maker partners with ",o.createElement("a",{href:"https://dailygrub.com",target:"_blank"},"DailyGrub")," to offer a full suite of recipe-specific analytics!")):o.createElement(j,{onEnable:()=>{v.Z.settings.save({analytics_enabled:!0}),this.setState({analyticsEnabled:!0})}}))}}var Sm=r(47750);class Mm extends o.Component{constructor(e){super(e),this.state={rating:0}}render(){return o.createElement(g,{title:(0,y.S)("Feedback")},o.createElement("div",{className:"wprm-admin-dashboard-feedback-container"},0===this.state.rating&&o.createElement(o.Fragment,null,o.createElement("label",null,(0,y.S)("How would you rate WP Recipe Maker?")),o.createElement("div",null,o.createElement(Sm.Z,{rating:this.state.rating,starDimension:"25px",starSpacing:"0",starHoverColor:"#2271b1",changeRating:e=>{this.setState({rating:e},(()=>{v.Z.utilities.giveFeedback(e)}))},numberOfStars:5,name:"feedback"}))),0<this.state.rating&&3>=this.state.rating&&o.createElement(o.Fragment,null,o.createElement("p",null,"Sorry to hear you don't seem to be enjoying WP Recipe Maker as much as we want you to. It would be great if you could provide us with any feedback at all."),o.createElement("p",null,"Email ",o.createElement("a",{href:"mailto:support@bootstrapped.ventures",target:"_blank"},"support@bootstrapped.ventures")," with any problems, frustrations or suggestions and we'll be happy to help you out! We improve the plugin weekly based on customer feedback, so your thoughts can really make a difference."),o.createElement("a",{className:"button button-primary",href:"mailto:support@bootstrapped.ventures",target:"_blank"},"Contact us now!")),4==this.state.rating&&o.createElement(o.Fragment,null,o.createElement("p",null,"Happy to hear that you do seem to be enjoying WP Recipe Maker! We are aiming to be a 5-star plugin though, so it would be amazing if you could give us any feedback at all on how we can get there for you."),o.createElement("p",null,"Email ",o.createElement("a",{href:"mailto:support@bootstrapped.ventures",target:"_blank"},"support@bootstrapped.ventures")," with any problems, frustrations or suggestions and we'll be happy to help you out! We improve the plugin weekly based on customer feedback, so your thoughts can really make a difference."),o.createElement("a",{className:"button button-primary",href:"mailto:support@bootstrapped.ventures",target:"_blank"},"Contact us now!")),5==this.state.rating&&o.createElement(o.Fragment,null,o.createElement("p",null,"Very happy to hear you're enjoying WP Recipe Maker!"),o.createElement("p",null,"It would be amazing if you could help spread the word and leave an honest ",o.createElement("a",{href:"https://wordpress.org/support/plugin/wp-recipe-maker/reviews/#new-post",target:"_blank"},"review over at wordpress.org")," for our plugin. This really helps with getting new users, which leads to more customers and more time we can spend improving WPRM."),o.createElement("a",{className:"button button-primary",href:"https://wordpress.org/support/plugin/wp-recipe-maker/reviews/#new-post",target:"_blank"},"Leave a review!"),o.createElement("p",null,"Already left a review? Thanks a lot for taking the time! If you have any further feedback at all, feel free to contact us at ",o.createElement("a",{href:"mailto:support@bootstrapped.ventures",target:"_blank"},"support@bootstrapped.ventures"),". We improve the plugin weekly based on customer feedback, so your thoughts can really make a difference."))))}}r(19985);class Om extends o.Component{constructor(e){super(e),this.state={open:!1}}render(){return o.createElement("div",{className:"wprm-admin-dashboard-health-check-item"},o.createElement("div",{className:"wprm-admin-dashboard-health-check-header",onClick:()=>{this.setState({open:!this.state.open})}},this.props.header),this.state.open&&o.createElement("div",{className:"wprm-admin-dashboard-health-check-content"},this.props.children))}}var km=e=>o.createElement(o.Fragment,null,e.item.includes("litespeed-cache")&&o.createElement(Om,{header:"🔌 LiteSpeed Cache might be breaking recipe saving"},o.createElement("p",null,'There have been issues with LiteSpeed Cache breaking the recipe saving if the "Cache REST API" setting is enabled on the ',o.createElement("em",null,"LiteSpeed Cache > Cache")," page."),o.createElement("p",null,'We recommend setting that setting to "Off".'))),jm=e=>{var t=e.item;return t.length?o.createElement(Om,{header:"✍️ Duplicate recipe names: ".concat(t.length)},o.createElement("p",null,"These recipe names are used in more than 1 recipe and might be duplicates. Click to find them on the manage page:"),o.createElement("div",{className:"wprm-admin-dashboard-health-check-list"},t.map(((e,t)=>o.createElement("div",{className:"wprm-admin-dashboard-health-check-list-item",key:t},o.createElement("div",{className:"wprm-admin-dashboard-health-check-list-item-main"},o.createElement("a",{href:"".concat(wprm_admin.manage_url,"#recipe/name=").concat(encodeURIComponent(e.name))},e.name)),o.createElement("div",{className:"wprm-admin-dashboard-health-check-list-item-side"},e.recipes.length," recipes")))))):null},Tm=e=>{var t=e.item;return t&&Object.keys(t).length?o.createElement(Om,{header:"📸 Missing recipe thumbnails: ".concat(Object.keys(t).length)},o.createElement("p",null,"Google expects to see 3 different ratios for the recipe image in the recipe metadata. WP Recipe Maker automatically generates those ratios for the recipe images, but some of them seem to be missing. This can happen if you converted those recipes from another plugin, for example."),o.createElement("p",null,"Try using a plugin like ",o.createElement("a",{href:"https://wordpress.org/plugins/regenerate-thumbnails/",target:"_blank"},"Regenerate Thumbnails")," to make sure all thumbnail sizes exist."),o.createElement("p",null,"If that doesn't fix things, the problem could also be that the original recipe image is too small. A recipe image should be at least 500 by 500 pixels to be able to generate all thumbnail sizes."),o.createElement("p",null,"Click through to find the problem recipes on the Manage page:"),o.createElement("div",{className:"wprm-admin-dashboard-health-check-list"},Object.keys(t).map(((e,r)=>{var n=t[e]?t[e]:"n/a";return o.createElement("div",{className:"wprm-admin-dashboard-health-check-list-item",key:r},o.createElement("div",{className:"wprm-admin-dashboard-health-check-list-item-main"},o.createElement("a",{href:"".concat(wprm_admin.manage_url,"#recipe/id=").concat(encodeURIComponent(e))},n)))})))):null},Dm=r(2778),Am=r.n(Dm),_m={compatibility:km,duplicate_names:jm,missing_thumbnails:Tm,multiple_parents:e=>{var t=e.item;return Object.keys(t).length?o.createElement(Om,{header:"📑 Recipes used in multiple places: ".concat(Object.keys(t).length)},o.createElement("p",null,"These recipes have been added to more than 1 post or page. A recipe should generally only exist in 1 parent post. References should be made using the ",o.createElement("a",{href:"https://help.bootstrapped.ventures/article/182-itemlist-metadata-for-recipe-roundup-posts",target:"_blank"},"Recipe Roundup feature")," instead. Click on a post to edit it:"),o.createElement("div",{className:"wprm-admin-dashboard-health-check-list"},Object.keys(t).map(((e,r)=>{var n=t[e];return o.createElement("div",{className:"wprm-admin-dashboard-health-check-multiple-parents",key:r},o.createElement("div",{className:"wprm-admin-dashboard-health-check-multiple-parents-recipe"},e," - ",n.name),o.createElement("div",{className:"wprm-admin-dashboard-health-check-multiple-parents-posts"},n.posts.map(((e,t)=>{var r="".concat(e.id," - ").concat(e.name?e.name:"n/a");return o.createElement("div",{className:"wprm-admin-dashboard-health-check-multiple-parents-post",key:t},e.edit_url?o.createElement(o.Fragment,null,o.createElement("a",{href:Am().decode(e.edit_url)},r),parseInt(n.parent_post_id)===parseInt(e.id)&&" (parent post)"):r)}))))})))):null},seo_types:e=>{var t=e.item,r=Object.values(t).reduce(((e,t)=>e+t));if(0===r)return o.createElement(Om,{header:"🤷‍♂️ No recipes yet"},o.createElement("p",null,"We can't seem to find any recipes yet. Start adding them!"));var n={good:"Good SEO",rating:"Only missing recipe ratings",warning:"Missing some recommended fields",bad:"Missing some required fields",other:"Not using metadata (excluded from count)"};return o.createElement(Om,{header:"🔍 Recipes with a good SEO rating: ".concat(t.good," of ").concat(r-t.other)},o.createElement("p",null,"Google has a list of required and recommended fields they want to see in the metadata. You definitely need to fill in all required fields. Not filling in recommended fields will get you a warning, but is not a huge problem. Click to see those recipes on the manage page:"),o.createElement("div",{className:"wprm-admin-dashboard-health-check-list"},Object.keys(n).map(((e,r)=>{var i=n[e];return o.createElement("div",{className:"wprm-admin-dashboard-health-check-list-item",key:r},o.createElement("div",{className:"wprm-admin-dashboard-health-check-list-item-main"},o.createElement("a",{href:"".concat(wprm_admin.manage_url,"#recipe/seo=").concat(e)},i)),o.createElement("div",{className:"wprm-admin-dashboard-health-check-list-item-side"},t[e]," ",1===t[e]?"recipe":"recipes"))}))))}};class Nm extends o.Component{constructor(e){super(e),this.state={items:wprm_admin_dashboard.health.items}}render(){return o.createElement(g,{title:(0,y.S)("Health Check"),button:(0,y.S)("Run Check"),buttonAction:()=>{window.location=wprm_admin_dashboard.health.tool}},o.createElement("div",{className:"wprm-admin-dashboard-health-check-container"},o.createElement("div",{className:"wprm-admin-dashboard-health-check-last-update wprm-admin-dashboard-health-check-last-update-".concat(wprm_admin_dashboard.health.urgency),title:wprm_admin_dashboard.health.date?wprm_admin_dashboard.health.date_formatted_full:null},(0,y.S)("Last check:")," ",wprm_admin_dashboard.health.date_formatted,wprm_admin_dashboard.health.updated&&" (".concat((0,y.S)("outdated version"),")")),o.createElement("div",{className:"wprm-admin-dashboard-health-check-description"},(0,y.S)("Use the Health Check feature to search for any WPRM-related issues and improve your recipes.")," ","never"===wprm_admin_dashboard.health.urgency?(0,y.S)("Recommended to run occassionally by clicking on the blue button."):(0,y.S)("Most recent results:")),Object.keys(this.state.items).map(((e,t)=>{var r=this.state.items[e],n=!!_m.hasOwnProperty(e)&&_m[e];return n?o.createElement(n,{item:r,key:t}):null})),o.createElement("div",{className:"wprm-admin-dashboard-health-check-learn-more"},o.createElement("a",{href:"https://help.bootstrapped.ventures/article/306-health-check",target:"_blank"},(0,y.S)("Learn more about the Health Check feature")))))}}var Pm=e=>o.createElement("div",{className:"wprm-admin-dashboard-learn-section-container"},o.createElement("div",{className:"wprm-admin-dashboard-learn-section-title"},e.title),o.createElement("div",{className:"wprm-admin-dashboard-learn-section"},e.children)),Cm=e=>o.createElement("div",{className:"wprm-admin-dashboard-learn-section-item"},e.hasOwnProperty("url")?o.createElement("a",{href:e.url,target:"_blank"},e.children):e.children),Lm=e=>o.createElement(g,{title:(0,y.S)("Get the most out of WPRM")},o.createElement("div",{className:"wprm-admin-dashboard-learn-container"},o.createElement(Pm,{title:"🧑‍🎓 ".concat((0,y.S)("Learn More"))},o.createElement(Cm,{url:"https://help.bootstrapped.ventures/collection/1-wp-recipe-maker"},(0,y.S)("Documentation in our knowledge base")),o.createElement(Cm,{url:"https://demo.wprecipemaker.com/all-features/"},(0,y.S)("All features in action on our demo site")),o.createElement(Cm,{url:"https://bootstrapped.ventures/wp-recipe-maker/videos/"},(0,y.S)("Video tutorials and walkthroughs"))),o.createElement(Pm,{title:"🤝 ".concat((0,y.S)("Our Partners"))},o.createElement(Cm,{url:"https://myemissions.green/wp-recipe-maker?ref=wprm"},(0,y.S)("My Emissions carbon footprint labels")),o.createElement(Cm,{url:"https://dailygrub.com"},(0,y.S)("DailyGrub recipe analytics suite"))),o.createElement(Pm,{title:"🙋 ".concat((0,y.S)("Get Help"))},o.createElement(Cm,{url:"https://www.facebook.com/groups/1741126932849712"},(0,y.S)("WP Recipe Maker Facebook Group")),o.createElement(Cm,{url:"mailto:support@bootstrapped.ventures"},(0,y.S)("Email our support team"))))),Rm=e=>{var{item:t}=e;if(!t.title)return null;var r=o.createElement(o.Fragment,null,o.createElement("div",{className:"wprm-admin-dashboard-news-item-title-container"},o.createElement("div",{className:"wprm-admin-dashboard-news-item-date"},t.date_formatted),o.createElement("div",{className:"wprm-admin-dashboard-news-item-title"},t.title)),t.hasOwnProperty("label")&&o.createElement("div",{className:"wprm-admin-dashboard-news-item-label wprm-admin-dashboard-news-item-label-".concat(t.label_key)},t.label)),n=["wprm-admin-dashboard-news-item"];return t.new&&n.push("wprm-admin-dashboard-news-item-new"),o.createElement(o.Fragment,null,t.hasOwnProperty("url")?o.createElement("a",{href:t.url,target:"_blank",className:n.join(" ")},r):o.createElement("div",{className:n.join(" ")},r))},Bm=e=>{var t=wprm_admin_dashboard.news;return t&&0!==t.length?o.createElement(g,{title:(0,y.S)("News")},o.createElement("div",{className:"wprm-admin-dashboard-news-container"},t.map(((e,t)=>o.createElement(Rm,{item:e,key:t}))))):null},Um=r(76044),zm=e=>{var{recipe:t}=e,r=t.hasOwnProperty("permalink")&&t.permalink;return o.createElement("div",{className:"wprm-admin-dashboard-recipes-recipe"},o.createElement("div",{className:"wprm-admin-dashboard-recipes-recipe-name-container"},o.createElement("div",{className:"wprm-admin-dashboard-recipes-recipe-date"},t.date_formatted?t.date_formatted:""),o.createElement("div",{className:"wprm-admin-dashboard-recipes-recipe-name"},t.name?t.name:"n/a")),o.createElement("div",{className:"wprm-admin-dashboard-recipes-recipe-actions"},r&&o.createElement("div",{className:"wprm-admin-dashboard-recipes-recipe-action"},o.createElement("a",{href:t.permalink,target:"_blank"},o.createElement(Um.Z,{type:"eye",title:(0,y.S)("View Recipe")}))),o.createElement("div",{className:"wprm-admin-dashboard-recipes-recipe-action"},o.createElement(Um.Z,{type:"pencil",title:(0,y.S)("Edit Recipe"),onClick:()=>{WPRM_Modal.open("recipe",{recipeId:t.id,saveCallback:r=>{var n=JSON.parse(JSON.stringify(t));n.name=r.name,e.onUpdate(n)}})}}))))};class Hm extends o.Component{constructor(e){super(e),this.state={recipes:wprm_admin_dashboard.recipes}}render(){return o.createElement(g,{title:(0,y.S)("Latest Recipes"),button:(0,y.S)("Create Recipe"),buttonAction:()=>{WPRM_Modal.open("recipe",{saveCallback:e=>{var t=JSON.parse(JSON.stringify(this.state.recipes)),r=JSON.parse(JSON.stringify(e));r.date_formatted=wprm_admin_dashboard.today_formatted,(t=t.filter((e=>e.id!==r.id))).unshift(r),this.setState({recipes:t})}})}},o.createElement("div",{className:"wprm-admin-dashboard-recipes-container"},0===this.state.recipes.length?o.createElement("div",{className:"wprm-admin-dashboard-recipes-all"},(0,y.S)("No recipes found. Welcome to WP Recipe Maker!")):o.createElement(o.Fragment,null,this.state.recipes.map(((e,t)=>o.createElement(zm,{recipe:e,onUpdate:e=>{var r=JSON.parse(JSON.stringify(this.state.recipes));r[t]=e,this.setState({recipes:r})},key:t})))),o.createElement("div",{className:"wprm-admin-dashboard-recipes-all"},o.createElement("a",{href:wprm_admin.manage_url},(0,y.S)("Manage all recipes...")))))}}var Gm=e=>o.createElement("div",{className:"wprm-admin-dashboard-tip"},e.children),Wm=[o.createElement(Gm,null,"Use the ",o.createElement("strong",null,"TAB key")," while entering ingredients or instructions to easily jump from field to field and create new lines."),o.createElement(Gm,null,"Copying your recipes from other sources?",o.createElement("br",null),"Use our ",o.createElement("a",{href:"https://help.bootstrapped.ventures/article/70-import-recipe-from-text",target:"_blank"},"Import Recipe from Text")," feature to speed things up."),o.createElement(Gm,null,"Have you seen the ",o.createElement("strong",null,"toolbar at the bottom of the recipe modal")," when editing rich fields (like the summary or instructions)? It gives you quick access to some editing and symbols."),o.createElement(Gm,null,"The ",o.createElement("strong",null,"Bulk Edit column")," on some of the WP Recipe Maker > Manage pages allows you to quickly edit multiple rows at once."),o.createElement(Gm,null,"Make sure to use the ",o.createElement("a",{href:"https://help.bootstrapped.ventures/article/182-itemlist-metadata-for-recipe-roundup-posts",target:"_blank"},"Recipe Roundup feature")," for roundup posts. This will add itemList metadata that allows those posts to show up as a carousel in Google."),o.createElement(Gm,null,"Give your visitors an easy way to find recipes by course, cuisine, ingredient, calories, ... by combining WPRM with our ",o.createElement("a",{href:"https://demo.wprecipemaker.com/recipe-index/",target:"_blank"},"WP Ultimate Post Grid plugin"),"."),o.createElement(Gm,null,"When adding equipment or ingredient names, the toolbar at the bottom of the recipe modal will ",o.createElement("strong",null,"show suggestions")," that you used before. Just click to use them and keep things consistent!"),o.createElement(Gm,null,o.createElement("strong",null,"Toggle specific columns")," at the top of the WP Recipe Maker > Manage page to customize it to your needs."),o.createElement(Gm,null,"Join the ",o.createElement("a",{href:"https://www.facebook.com/groups/1741126932849712/",target:"_blank"},"WP Recipe Maker Facebook Group")," to get access to a community of WPRM food bloggers, just like you!")];class qm extends o.Component{constructor(e){super(e);var t=Math.floor(Math.random()*Wm.length);this.changeTip=this.changeTip.bind(this);var r=setInterval(this.changeTip,15e3);this.state={activeTip:t,interval:r,bar:"odd"}}changeTip(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.state.activeTip+e;t<0?t+=Wm.length:t%=Wm.length,clearInterval(this.state.interval),this.setState({activeTip:t,interval:setInterval(this.changeTip,15e3),bar:"even"===this.state.bar?"odd":"even"})}render(){return o.createElement(g,{title:(0,y.S)("Quick Tips")},o.createElement("div",{className:"wprm-admin-dashboard-tips-container"},o.createElement("div",{className:"wprm-admin-dashboard-tips-prev",onClick:()=>{this.changeTip(-1)}},"<"),o.createElement("div",{className:"wprm-admin-dashboard-tips"},Wm.map(((e,t)=>{var r=["wprm-admin-dashboard-tip-container"];return t===this.state.activeTip&&r.push("wprm-admin-dashboard-tip-container-active"),o.createElement("div",{className:r.join(" "),key:t},e)}))),o.createElement("div",{className:"wprm-admin-dashboard-tips-next",onClick:()=>{this.changeTip(1)}},">")),o.createElement("div",{className:"wprm-admin-dashboard-tips-progress"},o.createElement("div",{className:"wprm-admin-dashboard-tips-progress-bar wprm-admin-dashboard-tips-progress-bar-".concat(this.state.bar)})))}}var{hooks:Zm}=WPRecipeMaker["wp-recipe-maker/dist/shared"],Fm=Zm.applyFilters("dashboardBlocks",[{id:"recipes",block:Hm},{id:"news",block:Bm},{id:"health",block:Nm},{id:"tips",block:qm},{id:"learn",block:Lm},{id:"analytics",block:Im}]);window.wprm_admin_dashboard.hasOwnProperty("feedback")&&window.wprm_admin_dashboard.feedback&&Fm.unshift({id:"feedback",block:Mm});class Vm extends o.Component{render(){var e=!1;return window.wprm_admin_dashboard.hasOwnProperty("marketing")&&window.wprm_admin_dashboard.marketing&&(e=wprm_admin_dashboard.marketing),o.createElement(o.Fragment,null,o.createElement("h1",null,"WP Recipe Maker"),!1!==e&&o.createElement(S,{campaign:e}),o.createElement(m,{blocks:Fm}))}}var Jm=document.getElementById("wprm-admin-dashboard");Jm&&i.render(o.createElement(Vm,null),Jm)},99237:function(e,t,r){"use strict";r.d(t,{Z:function(){return G}});var n=r(46087),i=wprm_admin.endpoints.analytics,o={delete:e=>n.Z.call("".concat(i,"/").concat(e),"DELETE")};function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=wprm_admin.endpoints.custom_taxonomies,s={save(e,t){var r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t),i=e?"PUT":"POST";return n.Z.call(u,i,r)}},l=wprm_admin.endpoints.dashboard,f={getAnalytics:()=>n.Z.call("".concat(l,"/analytics"))},p=wprm_admin.endpoints.notices,d={dismissNotice(e){var t={id:e};return n.Z.call(p,"DELETE",t)}},h=wprm_admin.endpoints.modal,m={parseIngredients(e){var t={ingredients:e};return n.Z.call("".concat(h,"/ingredient/parse"),"POST",t)}},v=(r(35054),wprm_admin.endpoints.manage),y=wprm_admin.endpoints.rating,g=wprm_admin.endpoints.taxonomy,b=!1,w=!1,x={getData(e){return b?(w=e,new Promise((e=>e(!1)))):this.getDataDebounced(e)},getDataDebounced(e){return b=!0,n.Z.call("".concat(v,"/").concat(e.route),"POST",e).then((e=>{if(w){var t=w;return w=!1,this.getDataDebounced(t)}return b=!1,e}))},deleteUserRatings:e=>n.Z.call("".concat(y,"/recipe/").concat(e),"DELETE"),getTerm:(e,t)=>n.Z.call("".concat(g).concat(e,"/").concat(t)),createTerm(e,t){var r={name:t};return n.Z.call("".concat(g).concat(e),"POST",r)},deleteTerm:(e,t)=>n.Z.call("".concat(g).concat(e,"/").concat(t,"?force=true"),"DELETE"),renameTerm(e,t,r){var i={name:r};return n.Z.call("".concat(g).concat(e,"/").concat(t),"POST",i)},changeTermSlug(e,t,r){var i={slug:r};return n.Z.call("".concat(g).concat(e,"/").concat(t),"POST",i)},renameTermLabel(e,t,r){var i={type:e,id:t,label:r};return n.Z.call("".concat(v,"/taxonomy/label"),"POST",i)},mergeTerm(e,t,r){var i={type:e,oldId:t,newId:r};return n.Z.call("".concat(v,"/taxonomy/merge"),"POST",i)},updateTaxonomyMeta(e,t,r){var i={};return i[e]=r,n.Z.call("".concat(g).concat(e,"/").concat(t),"POST",i)},bulkEdit(e,t,r,i){var o={type:t,ids:r,action:i};return n.Z.call("".concat(v,"/").concat(e,"/bulk"),"POST",o)}},E=wprm_admin.endpoints.modal,I=!1,S=!1,M=!1,O={getSuggestions(e){return I?(M=e,new Promise((e=>e(!1)))):this.getSuggestionsDebounced(e)},getSuggestionsDebounced(e){I=!0;var t=Date.now();return!1!==S&&500>t-S?new Promise((r=>{setTimeout((()=>{r(this.getSuggestionsDebounced(e))}),t-S)})):(S=t,n.Z.call("".concat(E,"/suggest"),"POST",e).then((e=>{if(M){var t=M;return M=!1,this.getSuggestionsDebounced(t)}return I=!1,e})))}},k=wprm_admin.endpoints.rating,j={update(e){var t={rating:e};return n.Z.call("".concat(k),"POST",t)},updateComment(e,t){var r={rating:t};return n.Z.call("".concat(k,"/comment/").concat(e),"POST",r)},delete:e=>n.Z.call("".concat(k,"/").concat(e),"DELETE")},T=wprm_admin.endpoints.recipe,D=wprm_admin.endpoints.manage,A={get:e=>n.Z.call("".concat(T,"/").concat(e,"?t=").concat(Date.now())),save(e){var t={recipe:e},r=T,i="POST",o=!!e.id&&parseInt(e.id);return o&&(r+="/".concat(o),i="PUT"),n.Z.call(r,i,t)},updateStatus(e,t){var r={status:t};return n.Z.call("".concat(T,"/").concat(e),"PUT",r)},delete(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r="".concat(T,"/").concat(e);return t&&(r+="?force=true"),n.Z.call(r,"DELETE")},deleteRevision:e=>n.Z.call("".concat(D,"/revision/").concat(e),"DELETE")},_=wprm_admin.endpoints.setting,N={save(e){var t={settings:e};return n.Z.call(_,"POST",t)}},P=wprm_admin.endpoints.template,C=[],L={},R=null,B={previewShortcode(e,t,r){return L[e]=t,clearTimeout(R),R=setTimeout((()=>{this.previewShortcodes(r)}),500),new Promise((e=>C.push(e)))},previewShortcodes(e){var t=C,r=L;C=[],L={};var n={recipeId:e,shortcodes:r};fetch("".concat(P,"/preview"),{method:"POST",headers:{"X-WP-Nonce":wprm_admin.api_nonce,Accept:"application/json","Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify(n)}).then((e=>e.json().then((r=>{var n=e.ok?r.preview:{};t.forEach((e=>e(n)))}))))},searchRecipes:e=>fetch(wprm_admin.ajax_url,{method:"POST",credentials:"same-origin",body:"action=wprm_search_recipes&security="+wprm_admin.nonce+"&search="+encodeURIComponent(e),headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded; charset=utf-8"}}).then((e=>e.json())),save(e){var t={template:e};return n.Z.call(P,"POST",t)},delete(e){var t={slug:e};return n.Z.call(P,"DELETE",t)}},U=wprm_admin.endpoints.utilities,z={saveImage(e){var t={url:e};return n.Z.call("".concat(U,"/save_image"),"POST",t)},giveFeedback(e){var t={feedback:e};return n.Z.call("".concat(U,"/feedback"),"POST",t)}},{hooks:H}=WPRecipeMaker["wp-recipe-maker/dist/shared"],G=H.applyFilters("api",{analytics:o,customTaxonomy:s,dashboard:f,general:d,import:m,manage:x,modal:O,rating:j,recipe:A,settings:N,template:B,utilities:z})},46087:function(e,t,r){"use strict";r(31807),r(35054),r(22321);function n(e,t,r,n,i,o,a){try{var c=e[o](a),u=c.value}catch(s){return void r(s)}c.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(i,o){var a=e.apply(t,r);function c(e){n(a,i,o,c,u,"next",e)}function u(e){n(a,i,o,c,u,"throw",e)}c(void 0)}))}}function o(){return(o=i((function*(e,t,r){console.log(e,t),console.log(r);var n="",i=parseInt(r.status),o=!1;300<=i&&i<=399?o="A redirection is breaking the API endpoint. Are any redirections set up in the .htaccess file or using a plugin?":401===i||403===i?o="Something is blocking access. Are you or your webhost using a firewall like Cloudflare WAF or Sucuri? Try whitelisting your own IP address or this specific action.":404===i?o="The rest API endpoint could not be found. Are your permalinks set up correctly?":500<=i&&i<=599&&(o="The server is throwing an error. It could be hitting a memory or execution limit. Check with your webhost what the exact error is in the logs."),o&&(n+="".concat(o,"\r\n\r\n")),n+="Press OK to contact support@bootstrapped.ventures for support (opens an email popup).";var a="".concat(r.url," ").concat(r.redirected?"(redirected)":"","- ").concat(r.status," - ").concat(r.statusText);n+="\r\n\r\n".concat(a);var c=!0;try{yield r.text().then((e=>{console.log(e),-1!==e.indexOf("rest_cookie_invalid_nonce")?(alert("You got logged out or your session expired. Please try logging out of WordPress and back in again."),c=!1):n+="\r\n\r\n".concat(e)}))}catch(s){console.log(s),n+="\r\n\r\n".concat(s)}if(c&&confirm(n)){var u="I received the error message below at ".concat(window.location.href,"\r\n\r\n").concat(n);window.open("mailto:".concat(encodeURIComponent("support@bootstrapped.ventures"),"?subject=").concat(encodeURIComponent("WP Recipe Maker Error Message"),"&body=").concat(encodeURIComponent(u)))}}))).apply(this,arguments)}t.Z={call(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=wprm_admin.api_nonce;"object"==typeof window.wpApiSettings&&window.wpApiSettings.nonce&&(n=window.wpApiSettings.nonce);var i={method:t,headers:{"X-WP-Nonce":n,Accept:"application/json","Content-Type":"application/json","Cache-Control":"no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:0},credentials:"same-origin"};"PUT"!==t&&"DELETE"!==t||(i.method="POST",i.headers["X-HTTP-Method-Override"]=t),r&&(i.body=JSON.stringify(r));var a=0;return e=e.replace(/\?/g,(function(e){return 2<=++a?"&":e})),fetch(e,i).then((function(t){return t.ok?t.json():(function(e,t,r){o.apply(this,arguments)}(e,i,t),!1)}))}}},76044:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(89526),i=r(49092),o=r(95075),a={adjustable:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PGxpbmUgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjEyLjUiIHkxPSIxMi41IiB4Mj0iMTUuNSIgeTI9IjEyLjUiPjwvbGluZT4gPGxpbmUgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjAuNSIgeTE9IjMuNSIgeDI9IjMuNSIgeTI9IjMuNSI+PC9saW5lPiA8bGluZSBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiB4MT0iOS41IiB5MT0iMy41IiB4Mj0iMTUuNSIgeTI9IjMuNSI+PC9saW5lPiA8cmVjdCBkYXRhLWNvbG9yPSJjb2xvci0yIiB4PSIzLjUiIHk9IjAuNSIgZmlsbD0ibm9uZSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHdpZHRoPSIzIiBoZWlnaHQ9IjYiPjwvcmVjdD4gPHJlY3QgZGF0YS1jb2xvcj0iY29sb3ItMiIgeD0iOS41IiB5PSI5LjUiIGZpbGw9Im5vbmUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiB3aWR0aD0iMyIgaGVpZ2h0PSI2Ij48L3JlY3Q+IDxsaW5lIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHgxPSIwLjUiIHkxPSIxMi41IiB4Mj0iNi41IiB5Mj0iMTIuNSI+PC9saW5lPiA8L2c+PC9zdmc+",bold:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PHBhdGggZD0iTTIuNSwxLjVoNmEzLDMsMCwwLDEsMywzaDBhMywzLDAsMCwxLTMsM2gtNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjwvcGF0aD4gPHBhdGggZD0iTTQuNSw3LjVIMTBBMy41LDMuNSwwLDAsMSwxMy41LDExaDBBMy41LDMuNSwwLDAsMSwxMCwxNC41SDIuNSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjwvcGF0aD4gPGxpbmUgeDE9IjQuNSIgeTE9IjEuNSIgeDI9IjQuNSIgeTI9IjE0LjUiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48L2xpbmU+PC9nPjwvc3ZnPg==",clock:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PGNpcmNsZSBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBjeD0iOC41IiBjeT0iOC41IiByPSI3Ij48L2NpcmNsZT4gPHBvbHlsaW5lIGRhdGEtY29sb3I9ImNvbG9yLTIiIGZpbGw9Im5vbmUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBwb2ludHM9IiA1LjUsNS41IDguNSw4LjUgMTMuNSw4LjUgIj48L3BvbHlsaW5lPiA8bGluZSBkYXRhLWNvbG9yPSJjb2xvci0yIiBmaWxsPSJub25lIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjguNSIgeTE9IjMuNSIgeDI9IjguNSIgeTI9IjQuNSI+PC9saW5lPiA8bGluZSBkYXRhLWNvbG9yPSJjb2xvci0yIiBmaWxsPSJub25lIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjguNSIgeTE9IjEzLjUiIHgyPSI4LjUiIHkyPSIxMi41Ij48L2xpbmU+IDxsaW5lIGRhdGEtY29sb3I9ImNvbG9yLTIiIGZpbGw9Im5vbmUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiB4MT0iMy41IiB5MT0iOC41IiB4Mj0iNC41IiB5Mj0iOC41Ij48L2xpbmU+IDwvZz48L3N2Zz4=",close:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PGxpbmUgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjEzLjUiIHkxPSIyLjUiIHgyPSIyLjUiIHkyPSIxMy41IiBkYXRhLWNhcD0iYnV0dCI+PC9saW5lPiA8bGluZSBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiB4MT0iMi41IiB5MT0iMi41IiB4Mj0iMTMuNSIgeTI9IjEzLjUiIGRhdGEtY2FwPSJidXR0Ij48L2xpbmU+IDwvZz48L3N2Zz4=",code:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBmaWxsPSIjMTExMTExIj48bGluZSB4MT0iMTAuNSIgeTE9IjEuNSIgeDI9IjUuNSIgeTI9IjE0LjUiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBkYXRhLWNhcD0iYnV0dCIgZGF0YS1jb2xvcj0iY29sb3ItMiI+PC9saW5lPiA8cG9seWxpbmUgcG9pbnRzPSIzLjUgNC41IDAuNSA3LjUgMy41IDEwLjUiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBkYXRhLWNhcD0iYnV0dCI+PC9wb2x5bGluZT4gPHBvbHlsaW5lIHBvaW50cz0iMTIuNSA0LjUgMTUuNSA3LjUgMTIuNSAxMC41IiBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgZGF0YS1jYXA9ImJ1dHQiPjwvcG9seWxpbmU+PC9nPjwvc3ZnPg==","checkbox-alternate":"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PHBvbHlsaW5lIGRhdGEtY29sb3I9ImNvbG9yLTIiIGZpbGw9Im5vbmUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBwb2ludHM9IiA0LjUsNi41IDcuNSw5LjUgMTUuNSwxLjUgIi8+IDxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIGQ9Ik0xMy41LDcuNXY2IGMwLDAuNTUyLTAuNDQ4LDEtMSwxaC0xMWMtMC41NTIsMC0xLTAuNDQ4LTEtMXYtMTFjMC0wLjU1MiwwLjQ0OC0xLDEtMWg5Ii8+IDwvZz48L3N2Zz4=","checkbox-checked":"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PGcgY2xhc3M9Im5jLWljb24td3JhcHBlciIgZmlsbD0iIzQ0NDQ0NCI+PHBvbHlsaW5lIGRhdGEtY29sb3I9ImNvbG9yLTIiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzQ0NDQ0NCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHBvaW50cz0iNC41LDcuNSA3LDEwIDEyLDUgIj48L3BvbHlsaW5lPjxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzQ0NDQ0NCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIGQ9Ik0xNC41LDE1LjVoLTEzYy0wLjU1MiwwLTEtMC40NDgtMS0xdi0xM2MwLTAuNTUyLDAuNDQ4LTEsMS0xaDEzYzAuNTUyLDAsMSwwLjQ0OCwxLDF2MTNDMTUuNSwxNS4wNTIsMTUuMDUyLDE1LjUsMTQuNSwxNS41eiI+PC9wYXRoPjwvZz48L3N2Zz4=","checkbox-empty":"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PGcgY2xhc3M9Im5jLWljb24td3JhcHBlciIgZmlsbD0iIzQ0NDQ0NCI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjNDQ0NDQ0IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTE0LjUsMTUuNWgtMTNjLTAuNTUyLDAtMS0wLjQ0OC0xLTF2LTEzYzAtMC41NTIsMC40NDgtMSwxLTFoMTNjMC41NTIsMCwxLDAuNDQ4LDEsMXYxM0MxNS41LDE1LjA1MiwxNS4wNTIsMTUuNSwxNC41LDE1LjV6Ij48L3BhdGg+PC9nPjwvc3ZnPg==",checkmark:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PHBvbHlsaW5lIHBvaW50cz0iMSA5LjUgNS41IDE0IDE1IDEuNSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0ic3F1YXJlIi8+PC9nPjwvc3ZnPg==",duplicate:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PHJlY3QgeD0iMC41IiB5PSIwLjUiIHdpZHRoPSIxMSIgaGVpZ2h0PSIxMSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGRhdGEtY2FwPSJidXR0Ii8+IDxwb2x5bGluZSBwb2ludHM9IjEzLjUgNC41IDE1LjUgNC41IDE1LjUgMTUuNSA0LjUgMTUuNSA0LjUgMTMuNSIgZmlsbD0ibm9uZSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBkYXRhLWNhcD0iYnV0dCIgZGF0YS1jb2xvcj0iY29sb3ItMiIvPjwvZz48L3N2Zz4=",drag:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PGxpbmUgeDE9IjAuNSIgeTE9IjUuNSIgeDI9IjE1LjUiIHkyPSI1LjUiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PGxpbmUgeDE9IjAuNSIgeTE9IjEwLjUiIHgyPSIxNS41IiB5Mj0iMTAuNSIgZmlsbD0ibm9uZSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBkYXRhLWNvbG9yPSJjb2xvci0yIi8+PC9nPjwvc3ZnPg==","eafl-link":"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMyOTgwYjkiIHN0cm9rZT0iIzI5ODBiOSI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMjk4MGI5IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTEyLDlsMS45NzUtMi4wMjUgYzEuMzY3LTEuMzY3LDEuMzY3LTMuNTgzLDAtNC45NWwwLDBjLTEuMzY3LTEuMzY3LTMuNTgzLTEuMzY3LTQuOTUsMEw3LDQiIGRhdGEtY2FwPSJidXR0Ij48L3BhdGg+IDxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzI5ODBiOSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIGQ9Ik05LDEybC0yLjAyNSwxLjk3NSBjLTEuMzY3LDEuMzY3LTMuNTgzLDEuMzY3LTQuOTUsMGwwLDBjLTEuMzY3LTEuMzY3LTEuMzY3LTMuNTgzLDAtNC45NUw0LDciIGRhdGEtY2FwPSJidXR0Ij48L3BhdGg+IDxsaW5lIGZpbGw9Im5vbmUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiB4MT0iNSIgeTE9IjExIiB4Mj0iMTEiIHkyPSI1IiBkYXRhLWNhcD0iYnV0dCIgZGF0YS1jb2xvcj0iY29sb3ItMiI+PC9saW5lPiA8L2c+PC9zdmc+","eafl-unlink":"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMyOTgwYjkiIHN0cm9rZT0iIzI5ODBiOSI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMjk4MGI5IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTEyLDlsMS45NzUtMi4wMjUgYzEuMzY3LTEuMzY3LDEuMzY3LTMuNTgzLDAtNC45NWwwLDBjLTEuMzY3LTEuMzY3LTMuNTgzLTEuMzY3LTQuOTUsMEw3LDQiIGRhdGEtY2FwPSJidXR0Ij48L3BhdGg+IDxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzI5ODBiOSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIGQ9Ik05LDEybC0yLjAyNSwxLjk3NSBjLTEuMzY3LDEuMzY3LTMuNTgzLDEuMzY3LTQuOTUsMGwwLDBjLTEuMzY3LTEuMzY3LTEuMzY3LTMuNTgzLDAtNC45NUw0LDciIGRhdGEtY2FwPSJidXR0Ij48L3BhdGg+IDxsaW5lIGZpbGw9Im5vbmUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiB4MT0iNSIgeTE9IjExIiB4Mj0iMTEiIHkyPSI1IiBkYXRhLWNhcD0iYnV0dCIgZGF0YS1jb2xvcj0iY29sb3ItMiI+PC9saW5lPiA8bGluZSBmaWxsPSJub25lIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjEuNSIgeTE9IjEuNSIgeDI9IjQiIHkyPSI0IiBkYXRhLWNhcD0iYnV0dCIgZGF0YS1jb2xvcj0iY29sb3ItMiI+PC9saW5lPiA8bGluZSBmaWxsPSJub25lIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjEyIiB5MT0iMTIiIHgyPSIxNC41IiB5Mj0iMTQuNSIgZGF0YS1jYXA9ImJ1dHQiIGRhdGEtY29sb3I9ImNvbG9yLTIiPjwvbGluZT4gPC9nPjwvc3ZnPg==",eye:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTAuNSw4IGMwLDAsMy01LjUsNy41LTUuNVMxNS41LDgsMTUuNSw4cy0zLDUuNS03LjUsNS41UzAuNSw4LDAuNSw4eiIvPiA8Y2lyY2xlIGRhdGEtY29sb3I9ImNvbG9yLTIiIGZpbGw9Im5vbmUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBjeD0iOCIgY3k9IjgiIHI9IjIuNSIvPiA8L2c+PC9zdmc+",italic:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PGxpbmUgeDE9IjYuNSIgeTE9IjAuNSIgeDI9IjEyLjUiIHkyPSIwLjUiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48L2xpbmU+IDxsaW5lIHgxPSIzLjUiIHkxPSIxNS41IiB4Mj0iOS41IiB5Mj0iMTUuNSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjwvbGluZT4gPGxpbmUgeDE9IjkuNSIgeTE9IjAuNSIgeDI9IjYuNSIgeTI9IjE1LjUiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48L2xpbmU+PC9nPjwvc3ZnPg==",link:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTEyLDlsMS45NzUtMi4wMjUgYzEuMzY3LTEuMzY3LDEuMzY3LTMuNTgzLDAtNC45NWwwLDBjLTEuMzY3LTEuMzY3LTMuNTgzLTEuMzY3LTQuOTUsMEw3LDQiIGRhdGEtY2FwPSJidXR0Ij48L3BhdGg+IDxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIGQ9Ik05LDEybC0yLjAyNSwxLjk3NSBjLTEuMzY3LDEuMzY3LTMuNTgzLDEuMzY3LTQuOTUsMGwwLDBjLTEuMzY3LTEuMzY3LTEuMzY3LTMuNTgzLDAtNC45NUw0LDciIGRhdGEtY2FwPSJidXR0Ij48L3BhdGg+IDxsaW5lIGZpbGw9Im5vbmUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiB4MT0iNSIgeTE9IjExIiB4Mj0iMTEiIHkyPSI1IiBkYXRhLWNhcD0iYnV0dCIgZGF0YS1jb2xvcj0iY29sb3ItMiI+PC9saW5lPiA8L2c+PC9zdmc+",merge:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PGxpbmUgZmlsbD0ibm9uZSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHgxPSIxMC41IiB5MT0iMTIuNSIgeDI9IjEzLjUiIHkyPSIxNS41IiBkYXRhLWNvbG9yPSJjb2xvci0yIj48L2xpbmU+IDxwb2x5bGluZSBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBwb2ludHM9IjQuNSw0LjUgOC41LDAuNSAxMi41LDQuNSAiPjwvcG9seWxpbmU+IDxwb2x5bGluZSBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBwb2ludHM9IjguNSwwLjUgOC41LDEwLjUgMy41LDE1LjUgIj48L3BvbHlsaW5lPjwvZz48L3N2Zz4=",movie:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PGNpcmNsZSBmaWxsPSJub25lIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgY3g9IjIuNSIgY3k9IjIuNSIgcj0iMiIgZGF0YS1jb2xvcj0iY29sb3ItMiIvPiA8Y2lyY2xlIGZpbGw9Im5vbmUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBjeD0iOCIgY3k9IjMiIHI9IjEuNSIgZGF0YS1jb2xvcj0iY29sb3ItMiIvPiA8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBkPSJNMTAuNSw5LjV2LTIgYzAtMC41NTItMC40NDgtMS0xLTFoLThjLTAuNTUyLDAtMSwwLjQ0OC0xLDF2N2MwLDAuNTUyLDAuNDQ4LDEsMSwxaDhjMC41NTIsMCwxLTAuNDQ4LDEtMXYtMmw1LDJ2LTdMMTAuNSw5LjV6Ii8+PC9nPjwvc3ZnPg==",pencil:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBmaWxsPSIjMTExMTExIj48cG9seWdvbiBkYXRhLWNvbG9yPSJjb2xvci0yIiBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBwb2ludHM9IiAxMywwLjUgMTUuNSwzIDcuNSwxMSA0LDEyIDUsOC41ICI+PC9wb2x5Z29uPiA8bGluZSBkYXRhLWNvbG9yPSJjb2xvci0yIiBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiB4MT0iMTEiIHkxPSIyLjUiIHgyPSIxMy41IiB5Mj0iNSI+PC9saW5lPiA8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBkPSJNMTMuNSw5LjV2NSBjMCwwLjU1Mi0wLjQ0OCwxLTEsMWgtMTFjLTAuNTUyLDAtMS0wLjQ0OC0xLTF2LTExYzAtMC41NTIsMC40NDgtMSwxLTFoNSI+PC9wYXRoPiA8L2c+PC9zdmc+",photo:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTE0LjUsMTUuNWgtMTMgYy0wLjU1MiwwLTEtMC40NDgtMS0xdi0xM2MwLTAuNTUyLDAuNDQ4LTEsMS0xaDEzYzAuNTUyLDAsMSwwLjQ0OCwxLDF2MTNDMTUuNSwxNS4wNTIsMTUuMDUyLDE1LjUsMTQuNSwxNS41eiIvPiA8cG9seWxpbmUgZmlsbD0ibm9uZSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHBvaW50cz0iMi41LDEyLjUgOS41LDcuNSAxMy41LDExLjUgIiBkYXRhLWNvbG9yPSJjb2xvci0yIi8+IDxjaXJjbGUgY3g9IjQuNSIgY3k9IjUuNSIgcj0iMS41IiBkYXRhLWNhcD0iYnV0dCIgZGF0YS1jb2xvcj0iY29sb3ItMiIgZGF0YS1zdHJva2U9Im5vbmUiIHN0cm9rZT0ibm9uZSIvPjwvZz48L3N2Zz4=",plus:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PGxpbmUgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjguNSIgeTE9IjQuNSIgeDI9IjguNSIgeTI9IjEyLjUiLz4gPGxpbmUgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjQuNSIgeTE9IjguNSIgeDI9IjEyLjUiIHkyPSI4LjUiLz4gPC9nPjwvc3ZnPg==",print:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PHBvbHlsaW5lIHBvaW50cz0iMy41IDMuNSAzLjUgMC41IDEyLjUgMC41IDEyLjUgMy41IiBmaWxsPSJub25lIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGRhdGEtY29sb3I9ImNvbG9yLTIiLz4gPHBvbHlsaW5lIHBvaW50cz0iMy41IDEyLjUgMC41IDEyLjUgMC41IDUuNSAxNS41IDUuNSAxNS41IDEyLjUgMTIuNSAxMi41IiBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPiA8cmVjdCB4PSIzLjUiIHk9IjkuNSIgd2lkdGg9IjkiIGhlaWdodD0iNiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48L2c+PC9zdmc+",question:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBmaWxsPSIjMTExMTExIj48Y2lyY2xlIGRhdGEtY29sb3I9ImNvbG9yLTIiIGN4PSI4IiBjeT0iMTMuNSIgcj0iMS41Ii8+IDxwYXRoIGZpbGw9IiMxMTExMTEiIGQ9Ik04LDBDNi4zMDksMCw0Ljc5MiwxLjA3Miw0LjIyOSwyLjY2N0wzLjg5NSwzLjYwOUw1Ljc4LDQuMjc2bDAuMzMzLTAuOTQzQzYuMzk2LDIuNTM2LDcuMTU0LDIsOCwyIGMxLjEwMywwLDIsMC44OTcsMiwyYzAsMC42MzItMC4yNDUsMC44MzktMC45NTIsMS4zNDdDOC4xODQsNS45NjcsNyw2LjgxNyw3LDl2MWgyVjljMC0xLjE1NywwLjQ4Mi0xLjUwMywxLjIxNC0yLjAyOCBDMTAuOTY4LDYuNDMxLDEyLDUuNjksMTIsNEMxMiwxLjc5NCwxMC4yMDYsMCw4LDB6Ii8+PC9nPjwvc3ZnPg==",reload:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxwYXRoIGQ9Ik0xLjUsNy41IGMwLTMuODY2LDMuMTM0LTcsNy03YzIuNjM2LDAsNC44MjgsMS42NDEsNiw0Ij48L3BhdGg+IDxwb2x5bGluZSBwb2ludHM9IjE0LjUsMC41IDE0LjUsNC41IDEwLjUsNC41ICI+PC9wb2x5bGluZT4gPHBhdGggZD0iTTE1LjUsOC41IGMwLDMuODY2LTMuMTM0LDctNyw3Yy0yLjYzNiwwLTQuODI4LTEuNjQxLTYtNCIgc3Ryb2tlPSIjMTExMTExIj48L3BhdGg+IDxwb2x5bGluZSBwb2ludHM9IjIuNSwxNS41IDIuNSwxMS41IDYuNSwxMS41ICIgc3Ryb2tlPSIjMTExMTExIj48L3BvbHlsaW5lPjwvZz48L3N2Zz4=",restore:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIGQ9Ik0wLjUsNS41bDUtNXYzIGMzLjE1NiwwLDcsMS44NTQsNyw3Yy0xLjU1OS0yLjUyMy00LjUtMy03LTN2M0wwLjUsNS41eiIgZGF0YS1jb2xvcj0iY29sb3ItMiIvPiA8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBkPSJNMC41LDEwLjV2NCBjMCwwLjU1MiwwLjQ0OCwxLDEsMWgxM2MwLjU1MiwwLDEtMC40NDgsMS0xdi0xMWMwLTAuNTUyLTAuNDQ4LTEtMS0xaC0yIi8+PC9nPjwvc3ZnPg==","star-empty":"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjE2cHgiIGhlaWdodD0iMTZweCIgdmlld0JveD0iMCAwIDI0IDI0Ij48ZyAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCwgMCkiPjxwb2x5Z29uIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzM0MzQzNCIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0ic3F1YXJlIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHBvaW50cz0iMTIsMi42IDE1LDkgMjEuNCw5IDE2LjcsMTMuOSAxOC42LDIxLjQgMTIsMTcuNiA1LjQsMjEuNCA3LjMsMTMuOSAyLjYsOSA5LDkgIiBzdHJva2UtbGluZWpvaW49Im1pdGVyIi8+PC9nPjwvc3ZnPg==","star-full":"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjE2cHgiIGhlaWdodD0iMTZweCIgdmlld0JveD0iMCAwIDI0IDI0Ij48ZyA+PHBhdGggZmlsbD0iIzM0MzQzNCIgZD0iTTEyLjcxMiwxLjk0MmwyLjk2OSw2LjAxNWw2LjYzOCwwLjk2NWMwLjY1MSwwLjA5NSwwLjkxMSwwLjg5NSwwLjQ0LDEuMzU0bC00LjgwNCw0LjY4MmwxLjEzNCw2LjYxMmMwLjExMSwwLjY0OS0wLjU3LDEuMTQzLTEuMTUyLDAuODM3TDEyLDE5LjI4NmwtNS45MzgsMy4xMjJDNS40OCwyMi43MTQsNC43OTksMjIuMjE5LDQuOTEsMjEuNTdsMS4xMzQtNi42MTJsLTQuODA0LTQuNjgyYy0wLjQ3MS0wLjQ1OS0wLjIxMS0xLjI2LDAuNDQtMS4zNTRsNi42MzgtMC45NjVsMi45NjktNi4wMTVDMTEuNTc5LDEuMzUyLDEyLjQyMSwxLjM1MiwxMi43MTIsMS45NDJ6Ii8+PC9nPjwvc3ZnPg==",subscript:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PHBvbHlsaW5lIHBvaW50cz0iMi41IDQuNSAyLjUgMi41IDEyLjUgMi41IDEyLjUgNC41IiBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PC9wb2x5bGluZT4gPGxpbmUgeDE9IjcuNSIgeTE9IjIuNSIgeDI9IjcuNSIgeTI9IjEzLjUiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48L2xpbmU+IDxsaW5lIHgxPSI1LjUiIHkxPSIxMy41IiB4Mj0iOS41IiB5Mj0iMTMuNSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjwvbGluZT4gPHBhdGggZD0iTTE1LDE1LjMyNEgxMS45MDd2LS43NThsMS4wNC0xLjA1M3EuNDQ3LS40NjUuNTg0LS42MzZhMS40MzcsMS40MzcsMCwwLDAsLjE5MS0uMjkzLjY1LjY1LDAsMCwwLC4wNTMtLjI1Ny4zMzUuMzM1LDAsMCwwLS4xMDctLjI2Mi40NDQuNDQ0LDAsMCwwLS4zLS4xLjgyLjgyLDAsMCwwLS40MDYuMTE1LDIuOTM1LDIuOTM1LDAsMCwwLS40NjUuMzRsLS42MzMtLjc0MWEzLjQ1NCwzLjQ1NCwwLDAsMSwuNTU0LS40MjEsMS45NzIsMS45NzIsMCwwLDEsLjQ4OC0uMTkzQTIuMzU0LDIuMzU0LDAsMCwxLDEzLjUsMTFhMS44LDEuOCwwLDAsMSwuNzM5LjE0NiwxLjE1NSwxLjE1NSwwLDAsMSwuNS40MTYsMS4wNjMsMS4wNjMsMCwwLDEsLjE3OS42LDEuNTcyLDEuNTcyLDAsMCwxLS4yNTYuODgzLDIuOTQzLDIuOTQzLDAsMCwxLS4zNDkuNDMzcS0uMjE4LjIyNi0uOTI1Ljg2M3YuMDI5SDE1WiIgZGF0YS1jYXA9ImJ1dHQiIGRhdGEtY29sb3I9ImNvbG9yLTIiIGRhdGEtc3Ryb2tlPSJub25lIiBzdHJva2U9Im5vbmUiPjwvcGF0aD48L2c+PC9zdmc+",superscript:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PHBvbHlsaW5lIHBvaW50cz0iMC41IDQuNSAwLjUgMi41IDEwLjUgMi41IDEwLjUgNC41IiBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PC9wb2x5bGluZT4gPGxpbmUgeDE9IjUuNSIgeTE9IjIuNSIgeDI9IjUuNSIgeTI9IjEzLjUiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48L2xpbmU+IDxsaW5lIHgxPSIzLjUiIHkxPSIxMy41IiB4Mj0iNy41IiB5Mj0iMTMuNSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjwvbGluZT4gPHBhdGggZD0iTTE2LDQuMzI0SDEyLjkwN1YzLjU2NmwxLjA0LTEuMDUzcS40NDctLjQ2NS41ODQtLjYzNmExLjQzNywxLjQzNywwLDAsMCwuMTkxLS4yOTMuNjUuNjUsMCwwLDAsLjA1My0uMjU3LjMzNS4zMzUsMCwwLDAtLjEwNy0uMjYyLjQ0NC40NDQsMCwwLDAtLjMtLjEuODIuODIsMCwwLDAtLjQwNi4xMTUsMi45MzUsMi45MzUsMCwwLDAtLjQ2NS4zNEwxMi44Ni42ODJhMy40NTQsMy40NTQsMCwwLDEsLjU1NC0uNDIxQTEuOTcyLDEuOTcyLDAsMCwxLDEzLjkuMDY4LDIuMzU0LDIuMzU0LDAsMCwxLDE0LjUsMGExLjgsMS44LDAsMCwxLC43MzkuMTQ2LDEuMTU1LDEuMTU1LDAsMCwxLC41LjQxNiwxLjA2MywxLjA2MywwLDAsMSwuMTc5LjYsMS42MjcsMS42MjcsMCwwLDEtLjA2My40NjQsMS42NCwxLjY0LDAsMCwxLS4xOTMuNDE5LDIuOTQzLDIuOTQzLDAsMCwxLS4zNDkuNDMzcS0uMjE4LjIyNi0uOTI1Ljg2M3YuMDI5SDE2WiIgZGF0YS1jYXA9ImJ1dHQiIGRhdGEtY29sb3I9ImNvbG9yLTIiIGRhdGEtc3Ryb2tlPSJub25lIiBzdHJva2U9Im5vbmUiPjwvcGF0aD48L2c+PC9zdmc+",trash:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTIuNSw2LjV2NyBjMCwxLjEwNSwwLjg5NSwyLDIsMmg4YzEuMTA1LDAsMi0wLjg5NSwyLTJ2LTciLz4gPGxpbmUgZGF0YS1jb2xvcj0iY29sb3ItMiIgZmlsbD0ibm9uZSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHgxPSIxLjUiIHkxPSIzLjUiIHgyPSIxNS41IiB5Mj0iMy41Ii8+IDxwb2x5bGluZSBkYXRhLWNvbG9yPSJjb2xvci0yIiBmaWxsPSJub25lIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgcG9pbnRzPSIgNi41LDMuNSA2LjUsMC41IDEwLjUsMC41IDEwLjUsMy41ICIvPiA8bGluZSBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiB4MT0iOC41IiB5MT0iNy41IiB4Mj0iOC41IiB5Mj0iMTIuNSIvPiA8bGluZSBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiB4MT0iMTEuNSIgeTE9IjcuNSIgeDI9IjExLjUiIHkyPSIxMi41Ii8+IDxsaW5lIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHgxPSI1LjUiIHkxPSI3LjUiIHgyPSI1LjUiIHkyPSIxMi41Ii8+IDwvZz48L3N2Zz4=",underline:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PGxpbmUgeDE9IjAuNSIgeTE9IjE1LjUiIHgyPSIxNS41IiB5Mj0iMTUuNSIgZmlsbD0ibm9uZSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBkYXRhLWNvbG9yPSJjb2xvci0yIj48L2xpbmU+IDxwYXRoIGQ9Ik0xMi41LDEuNVY4QTQuNSw0LjUsMCwwLDEsOCwxMi41SDhBNC41LDQuNSwwLDAsMSwzLjUsOFYxLjUiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48L3BhdGg+IDxsaW5lIHgxPSIxLjUiIHkxPSIxLjUiIHgyPSI1LjUiIHkyPSIxLjUiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48L2xpbmU+IDxsaW5lIHgxPSIxMC41IiB5MT0iMS41IiB4Mj0iMTQuNSIgeTI9IjEuNSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjwvbGluZT48L2c+PC9zdmc+",unlink:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTEyLDlsMS45NzUtMi4wMjUgYzEuMzY3LTEuMzY3LDEuMzY3LTMuNTgzLDAtNC45NWwwLDBjLTEuMzY3LTEuMzY3LTMuNTgzLTEuMzY3LTQuOTUsMEw3LDQiIGRhdGEtY2FwPSJidXR0Ij48L3BhdGg+IDxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIGQ9Ik05LDEybC0yLjAyNSwxLjk3NSBjLTEuMzY3LDEuMzY3LTMuNTgzLDEuMzY3LTQuOTUsMGwwLDBjLTEuMzY3LTEuMzY3LTEuMzY3LTMuNTgzLDAtNC45NUw0LDciIGRhdGEtY2FwPSJidXR0Ij48L3BhdGg+IDxsaW5lIGZpbGw9Im5vbmUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiB4MT0iNSIgeTE9IjExIiB4Mj0iMTEiIHkyPSI1IiBkYXRhLWNhcD0iYnV0dCIgZGF0YS1jb2xvcj0iY29sb3ItMiI+PC9saW5lPiA8bGluZSBmaWxsPSJub25lIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjEuNSIgeTE9IjEuNSIgeDI9IjQiIHkyPSI0IiBkYXRhLWNhcD0iYnV0dCIgZGF0YS1jb2xvcj0iY29sb3ItMiI+PC9saW5lPiA8bGluZSBmaWxsPSJub25lIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjEyIiB5MT0iMTIiIHgyPSIxNC41IiB5Mj0iMTQuNSIgZGF0YS1jYXA9ImJ1dHQiIGRhdGEtY29sb3I9ImNvbG9yLTIiPjwvbGluZT4gPC9nPjwvc3ZnPg==",videoplayer:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9IiMxMTExMTEiIHN0cm9rZT0iIzExMTExMSI+PHBvbHlnb24gZmlsbD0ibm9uZSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHBvaW50cz0iNi41LDIuNSA2LjUsNy41IDEwLjUsNSAiIGRhdGEtY29sb3I9ImNvbG9yLTIiLz4gPGNpcmNsZSBmaWxsPSJub25lIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgY3g9IjguNSIgY3k9IjExLjUiIHI9IjIiIGRhdGEtY29sb3I9ImNvbG9yLTIiLz4gPGxpbmUgZmlsbD0ibm9uZSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHgxPSIyLjUiIHkxPSIxMS41IiB4Mj0iNi41IiB5Mj0iMTEuNSIgZGF0YS1jb2xvcj0iY29sb3ItMiIvPiA8bGluZSBmaWxsPSJub25lIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjEyLjUiIHkxPSIxMS41IiB4Mj0iMTMuNSIgeTI9IjExLjUiIGRhdGEtY29sb3I9ImNvbG9yLTIiLz4gPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTE0LjUsMTUuNWgtMTMgYy0wLjU1MiwwLTEtMC40NDgtMS0xdi0xM2MwLTAuNTUyLDAuNDQ4LTEsMS0xaDEzYzAuNTUyLDAsMSwwLjQ0OCwxLDF2MTNDMTUuNSwxNS4wNTIsMTUuMDUyLDE1LjUsMTQuNSwxNS41eiIvPjwvZz48L3N2Zz4="},c=e=>{var t=!!a.hasOwnProperty(e.type)&&a[e.type];if(!t)return null;var r=e.title,c=e.className?"wprm-admin-icon ".concat(e.className):"wprm-admin-icon",u=!!e.hasOwnProperty("hidden")&&e.hidden;return u&&(r="",c+=" wprm-admin-icon-hidden"),n.createElement(o.Z,{content:r},n.createElement("span",{className:c,onClick:u?()=>{}:e.onClick},n.createElement(i.Z,{src:t})))}},34133:function(e,t,r){"use strict";var n=r(89526);t.Z=e=>n.createElement("div",{className:"wprm-admin-loader"})},95075:function(e,t,r){"use strict";var n=r(89526),i=r(20877);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}t.Z=e=>{if(!e.content)return e.children;var t=e.hasOwnProperty("style")?e.style:{};return n.createElement(i.Tooltip,{html:n.createElement("div",{dangerouslySetInnerHTML:{__html:e.content}}),popperOptions:{modifiers:{addZIndex:{enabled:!0,order:810,fn:e=>a(a({},e),{},{styles:a(a({},e.styles),{},{zIndex:1e5})})},preventOverflow:{boundariesElement:"window"}}},style:t},e.children)}},52082:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{S:function(){return c}});var a={};function c(e){return a.hasOwnProperty(e)?a[e]:e}window.hasOwnProperty("wprm_public")&&wprm_public.hasOwnProperty("translations")&&(a=i(i({},a),wprm_public.translations)),window.hasOwnProperty("wprm_admin")&&wprm_admin.hasOwnProperty("translations")&&(a=i(i({},a),wprm_admin.translations))},64403:function(e,t){var r;
2
  /*!
3
  Copyright (c) 2017 Jed Watson.
4
  Licensed under the MIT License (MIT), see
5
  http://jedwatson.github.io/classnames
6
+ */!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)&&r.length){var a=i.apply(null,r);a&&e.push(a)}else if("object"===o)for(var c in r)n.call(r,c)&&r[c]&&e.push(c)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},28641:function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},13350:function(e,t,r){"use strict";var n=r(91140).charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},9519:function(e){e.exports=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e}},83875:function(e,t,r){var n=r(52786);e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},37190:function(e,t,r){var n=r(29580),i=r(35108),o=r(32565),a=function(e){return function(t,r,a){var c,u=n(t),s=i(u.length),l=o(a,s);if(e&&r!=r){for(;s>l;)if((c=u[l++])!=c)return!0}else for(;s>l;l++)if((e||l in u)&&u[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},54324:function(e,t,r){"use strict";var n=r(79044);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){throw 1},1)}))}},5673:function(e,t,r){var n=r(7493),i=r(79044),o=r(40454),a=Object.defineProperty,c={},u=function(e){throw e};e.exports=function(e,t){if(o(c,e))return c[e];t||(t={});var r=[][e],s=!!o(t,"ACCESSORS")&&t.ACCESSORS,l=o(t,0)?t[0]:u,f=o(t,1)?t[1]:void 0;return c[e]=!!r&&!i((function(){if(s&&!n)return!0;var e={length:-1};s?a(e,1,{enumerable:!0,get:u}):e[1]=1,r.call(e,l,f)}))}},9637:function(e,t,r){var n=r(83875);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(a){var o=e.return;throw void 0!==o&&n(o.call(e)),a}}},8662:function(e,t,r){var n=r(52280)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(c){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var o={};o[n]=function(){return{next:function(){return{done:r=!0}}}},e(o)}catch(c){}return r}},79159:function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},36994:function(e,t,r){var n=r(57301),i=r(79159),o=r(52280)("toStringTag"),a="Arguments"==i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(r){}}(t=Object(e),o))?r:a?i(t):"Object"==(n=i(t))&&"function"==typeof t.callee?"Arguments":n}},73870:function(e,t,r){var n=r(40454),i=r(31561),o=r(66012),a=r(86385);e.exports=function(e,t){for(var r=i(t),c=a.f,u=o.f,s=0;s<r.length;s++){var l=r[s];n(e,l)||c(e,l,u(t,l))}}},15454:function(e,t,r){var n=r(52280)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(i){}}return!1}},45899:function(e,t,r){var n=r(7493),i=r(86385),o=r(69199);e.exports=n?function(e,t,r){return i.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},69199:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7493:function(e,t,r){var n=r(79044);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},92750:function(e,t,r){var n=r(98363),i=r(52786),o=n.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},53121:function(e,t,r){var n=r(82647);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},82647:function(e,t,r){var n=r(22773);e.exports=n("navigator","userAgent")||""},11197:function(e,t,r){var n,i,o=r(98363),a=r(82647),c=o.process,u=c&&c.versions,s=u&&u.v8;s?i=(n=s.split("."))[0]+n[1]:a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=n[1]),e.exports=i&&+i},48869:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},19882:function(e,t,r){var n=r(98363),i=r(66012).f,o=r(45899),a=r(35974),c=r(51621),u=r(73870),s=r(86291);e.exports=function(e,t){var r,l,f,p,d,h=e.target,m=e.global,v=e.stat;if(r=m?n:v?n[h]||c(h,{}):(n[h]||{}).prototype)for(l in t){if(p=t[l],f=e.noTargetGet?(d=i(r,l))&&d.value:r[l],!s(m?l:h+(v?".":"#")+l,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;u(p,f)}(e.sham||f&&f.sham)&&o(p,"sham",!0),a(r,l,p,e)}}},79044:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},81492:function(e,t,r){"use strict";r(39275);var n=r(35974),i=r(79044),o=r(52280),a=r(99749),c=r(45899),u=o("species"),s=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),l="$0"==="a".replace(/./,"$0"),f=o("replace"),p=!!/./[f]&&""===/./[f]("a","$0"),d=!i((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));e.exports=function(e,t,r,f){var h=o(e),m=!i((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),v=m&&!i((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[u]=function(){return r},r.flags="",r[h]=/./[h]),r.exec=function(){return t=!0,null},r[h](""),!t}));if(!m||!v||"replace"===e&&(!s||!l||p)||"split"===e&&!d){var y=/./[h],g=r(h,""[e],(function(e,t,r,n,i){return t.exec===a?m&&!i?{done:!0,value:y.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}}),{REPLACE_KEEPS_$0:l,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),b=g[0],w=g[1];n(String.prototype,e,b),n(RegExp.prototype,h,2==t?function(e,t){return w.call(e,this,t)}:function(e){return w.call(e,this)})}f&&c(RegExp.prototype[h],"sham",!0)}},98166:function(e,t,r){var n=r(28641);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},22773:function(e,t,r){var n=r(67290),i=r(98363),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e])||o(i[e]):n[e]&&n[e][t]||i[e]&&i[e][t]}},77193:function(e,t,r){var n=r(36994),i=r(44818),o=r(52280)("iterator");e.exports=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[n(e)]}},98363:function(e,t,r){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||Function("return this")()},40454:function(e){var t={}.hasOwnProperty;e.exports=function(e,r){return t.call(e,r)}},47505:function(e){e.exports={}},46271:function(e,t,r){var n=r(98363);e.exports=function(e,t){var r=n.console;r&&r.error&&(1===arguments.length?r.error(e):r.error(e,t))}},47055:function(e,t,r){var n=r(22773);e.exports=n("document","documentElement")},67548:function(e,t,r){var n=r(7493),i=r(79044),o=r(92750);e.exports=!n&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},78609:function(e,t,r){var n=r(79044),i=r(79159),o="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},56429:function(e,t,r){var n=r(49415),i=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return i.call(e)}),e.exports=n.inspectSource},20821:function(e,t,r){var n,i,o,a=r(36830),c=r(98363),u=r(52786),s=r(45899),l=r(40454),f=r(50466),p=r(47505),d=c.WeakMap;if(a){var h=new d,m=h.get,v=h.has,y=h.set;n=function(e,t){return y.call(h,e,t),t},i=function(e){return m.call(h,e)||{}},o=function(e){return v.call(h,e)}}else{var g=f("state");p[g]=!0,n=function(e,t){return s(e,g,t),t},i=function(e){return l(e,g)?e[g]:{}},o=function(e){return l(e,g)}}e.exports={set:n,get:i,has:o,enforce:function(e){return o(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!u(t)||(r=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},68089:function(e,t,r){var n=r(52280),i=r(44818),o=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},86291:function(e,t,r){var n=r(79044),i=/#|\.prototype\./,o=function(e,t){var r=c[a(e)];return r==s||r!=u&&("function"==typeof t?n(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},u=o.NATIVE="N",s=o.POLYFILL="P";e.exports=o},52786:function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},21178:function(e){e.exports=!1},42622:function(e,t,r){var n=r(52786),i=r(79159),o=r(52280)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},5166:function(e,t,r){var n=r(83875),i=r(68089),o=r(35108),a=r(98166),c=r(77193),u=r(9637),s=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,r,l,f){var p,d,h,m,v,y,g,b=a(t,r,l?2:1);if(f)p=e;else{if("function"!=typeof(d=c(e)))throw TypeError("Target is not iterable");if(i(d)){for(h=0,m=o(e.length);m>h;h++)if((v=l?b(n(g=e[h])[0],g[1]):b(e[h]))&&v instanceof s)return v;return new s(!1)}p=d.call(e)}for(y=p.next;!(g=y.call(p)).done;)if("object"==typeof(v=u(p,b,g.value,l))&&v&&v instanceof s)return v;return new s(!1)}).stop=function(e){return new s(!0,e)}},44818:function(e){e.exports={}},71800:function(e,t,r){var n,i,o,a,c,u,s,l,f=r(98363),p=r(66012).f,d=r(79159),h=r(84643).set,m=r(53121),v=f.MutationObserver||f.WebKitMutationObserver,y=f.process,g=f.Promise,b="process"==d(y),w=p(f,"queueMicrotask"),x=w&&w.value;x||(n=function(){var e,t;for(b&&(e=y.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(r){throw i?a():o=void 0,r}}o=void 0,e&&e.enter()},b?a=function(){y.nextTick(n)}:v&&!m?(c=!0,u=document.createTextNode(""),new v(n).observe(u,{characterData:!0}),a=function(){u.data=c=!c}):g&&g.resolve?(s=g.resolve(void 0),l=s.then,a=function(){l.call(s,n)}):a=function(){h.call(f,n)}),e.exports=x||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},58369:function(e,t,r){var n=r(98363);e.exports=n.Promise},3850:function(e,t,r){var n=r(79044);e.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},36830:function(e,t,r){var n=r(98363),i=r(56429),o=n.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},29269:function(e,t,r){"use strict";var n=r(28641),i=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new i(e)}},21049:function(e,t,r){var n=r(42622);e.exports=function(e){if(n(e))throw TypeError("The method doesn't accept regular expressions");return e}},86385:function(e,t,r){var n=r(7493),i=r(67548),o=r(83875),a=r(21893),c=Object.defineProperty;t.f=n?c:function(e,t,r){if(o(e),t=a(t,!0),o(r),i)try{return c(e,t,r)}catch(n){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},66012:function(e,t,r){var n=r(7493),i=r(81513),o=r(69199),a=r(29580),c=r(21893),u=r(40454),s=r(67548),l=Object.getOwnPropertyDescriptor;t.f=n?l:function(e,t){if(e=a(e),t=c(t,!0),s)try{return l(e,t)}catch(r){}if(u(e,t))return o(!i.f.call(e,t),e[t])}},87994:function(e,t,r){var n=r(18794),i=r(48869).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},89612:function(e,t){t.f=Object.getOwnPropertySymbols},18794:function(e,t,r){var n=r(40454),i=r(29580),o=r(37190).indexOf,a=r(47505);e.exports=function(e,t){var r,c=i(e),u=0,s=[];for(r in c)!n(a,r)&&n(c,r)&&s.push(r);for(;t.length>u;)n(c,r=t[u++])&&(~o(s,r)||s.push(r));return s}},81513:function(e,t){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);t.f=i?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},31561:function(e,t,r){var n=r(22773),i=r(87994),o=r(89612),a=r(83875);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=o.f;return r?t.concat(r(e)):t}},67290:function(e,t,r){var n=r(98363);e.exports=n},74443:function(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},11621:function(e,t,r){var n=r(83875),i=r(52786),o=r(29269);e.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},7592:function(e,t,r){var n=r(35974);e.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}},35974:function(e,t,r){var n=r(98363),i=r(45899),o=r(40454),a=r(51621),c=r(56429),u=r(20821),s=u.get,l=u.enforce,f=String(String).split("String");(e.exports=function(e,t,r,c){var u=!!c&&!!c.unsafe,s=!!c&&!!c.enumerable,p=!!c&&!!c.noTargetGet;"function"==typeof r&&("string"!=typeof t||o(r,"name")||i(r,"name",t),l(r).source=f.join("string"==typeof t?t:"")),e!==n?(u?!p&&e[t]&&(s=!0):delete e[t],s?e[t]=r:i(e,t,r)):s?e[t]=r:a(t,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&s(this).source||c(this)}))},94088:function(e,t,r){var n=r(79159),i=r(99749);e.exports=function(e,t){var r=e.exec;if("function"==typeof r){var o=r.call(e,t);if("object"!=typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==n(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},99749:function(e,t,r){"use strict";var n,i,o=r(58083),a=r(97047),c=RegExp.prototype.exec,u=String.prototype.replace,s=c,l=(n=/a/,i=/b*/g,c.call(n,"a"),c.call(i,"a"),0!==n.lastIndex||0!==i.lastIndex),f=a.UNSUPPORTED_Y||a.BROKEN_CARET,p=void 0!==/()??/.exec("")[1];(l||p||f)&&(s=function(e){var t,r,n,i,a=this,s=f&&a.sticky,d=o.call(a),h=a.source,m=0,v=e;return s&&(-1===(d=d.replace("y","")).indexOf("g")&&(d+="g"),v=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(h="(?: "+h+")",v=" "+v,m++),r=new RegExp("^(?:"+h+")",d)),p&&(r=new RegExp("^"+h+"$(?!\\s)",d)),l&&(t=a.lastIndex),n=c.call(s?r:a,v),s?n?(n.input=n.input.slice(m),n[0]=n[0].slice(m),n.index=a.lastIndex,a.lastIndex+=n[0].length):a.lastIndex=0:l&&n&&(a.lastIndex=a.global?n.index+n[0].length:t),p&&n&&n.length>1&&u.call(n[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(n[i]=void 0)})),n}),e.exports=s},58083:function(e,t,r){"use strict";var n=r(83875);e.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},97047:function(e,t,r){"use strict";var n=r(79044);function i(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=n((function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=n((function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},96411:function(e){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},51621:function(e,t,r){var n=r(98363),i=r(45899);e.exports=function(e,t){try{i(n,e,t)}catch(r){n[e]=t}return t}},57323:function(e,t,r){"use strict";var n=r(22773),i=r(86385),o=r(52280),a=r(7493),c=o("species");e.exports=function(e){var t=n(e),r=i.f;a&&t&&!t[c]&&r(t,c,{configurable:!0,get:function(){return this}})}},60878:function(e,t,r){var n=r(86385).f,i=r(40454),o=r(52280)("toStringTag");e.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,o)&&n(e,o,{configurable:!0,value:t})}},50466:function(e,t,r){var n=r(53580),i=r(34524),o=n("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},49415:function(e,t,r){var n=r(98363),i=r(51621),o="__core-js_shared__",a=n[o]||i(o,{});e.exports=a},53580:function(e,t,r){var n=r(21178),i=r(49415);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},7270:function(e,t,r){var n=r(83875),i=r(28641),o=r(52280)("species");e.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||null==(r=n(a)[o])?t:i(r)}},91140:function(e,t,r){var n=r(98330),i=r(96411),o=function(e){return function(t,r){var o,a,c=String(i(t)),u=n(r),s=c.length;return u<0||u>=s?e?"":void 0:(o=c.charCodeAt(u))<55296||o>56319||u+1===s||(a=c.charCodeAt(u+1))<56320||a>57343?e?c.charAt(u):o:e?c.slice(u,u+2):a-56320+(o-55296<<10)+65536}};e.exports={codeAt:o(!1),charAt:o(!0)}},5167:function(e,t,r){var n=r(82647);e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(n)},98385:function(e,t,r){var n=r(35108),i=r(26031),o=r(96411),a=Math.ceil,c=function(e){return function(t,r,c){var u,s,l=String(o(t)),f=l.length,p=void 0===c?" ":String(c),d=n(r);return d<=f||""==p?l:(u=d-f,(s=i.call(p,a(u/p.length))).length>u&&(s=s.slice(0,u)),e?l+s:s+l)}};e.exports={start:c(!1),end:c(!0)}},26031:function(e,t,r){"use strict";var n=r(98330),i=r(96411);e.exports="".repeat||function(e){var t=String(i(this)),r="",o=n(e);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(r+=t);return r}},84643:function(e,t,r){var n,i,o,a=r(98363),c=r(79044),u=r(79159),s=r(98166),l=r(47055),f=r(92750),p=r(53121),d=a.location,h=a.setImmediate,m=a.clearImmediate,v=a.process,y=a.MessageChannel,g=a.Dispatch,b=0,w={},x="onreadystatechange",E=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},I=function(e){return function(){E(e)}},S=function(e){E(e.data)},M=function(e){a.postMessage(e+"",d.protocol+"//"+d.host)};h&&m||(h=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return w[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},n(b),b},m=function(e){delete w[e]},"process"==u(v)?n=function(e){v.nextTick(I(e))}:g&&g.now?n=function(e){g.now(I(e))}:y&&!p?(o=(i=new y).port2,i.port1.onmessage=S,n=s(o.postMessage,o,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||c(M)||"file:"===d.protocol?n=x in f("script")?function(e){l.appendChild(f("script")).onreadystatechange=function(){l.removeChild(this),E(e)}}:function(e){setTimeout(I(e),0)}:(n=M,a.addEventListener("message",S,!1))),e.exports={set:h,clear:m}},32565:function(e,t,r){var n=r(98330),i=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):o(r,t)}},29580:function(e,t,r){var n=r(78609),i=r(96411);e.exports=function(e){return n(i(e))}},98330:function(e){var t=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:t)(e)}},35108:function(e,t,r){var n=r(98330),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},30744:function(e,t,r){var n=r(96411);e.exports=function(e){return Object(n(e))}},21893:function(e,t,r){var n=r(52786);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},57301:function(e,t,r){var n={};n[r(52280)("toStringTag")]="z",e.exports="[object z]"===String(n)},34524:function(e){var t=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+r).toString(36)}},189:function(e,t,r){var n=r(3850);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},52280:function(e,t,r){var n=r(98363),i=r(53580),o=r(40454),a=r(34524),c=r(3850),u=r(189),s=i("wks"),l=n.Symbol,f=u?l:l&&l.withoutSetter||a;e.exports=function(e){return o(s,e)||(c&&o(l,e)?s[e]=l[e]:s[e]=f("Symbol."+e)),s[e]}},31807:function(e,t,r){"use strict";var n=r(19882),i=r(37190).indexOf,o=r(54324),a=r(5673),c=[].indexOf,u=!!c&&1/[1].indexOf(1,-0)<0,s=o("indexOf"),l=a("indexOf",{ACCESSORS:!0,1:0});n({target:"Array",proto:!0,forced:u||!s||!l},{indexOf:function(e){return u?c.apply(this,arguments)||0:i(this,e,arguments.length>1?arguments[1]:void 0)}})},35054:function(e,t,r){"use strict";var n,i,o,a,c=r(19882),u=r(21178),s=r(98363),l=r(22773),f=r(58369),p=r(35974),d=r(7592),h=r(60878),m=r(57323),v=r(52786),y=r(28641),g=r(9519),b=r(79159),w=r(56429),x=r(5166),E=r(8662),I=r(7270),S=r(84643).set,M=r(71800),O=r(11621),k=r(46271),j=r(29269),T=r(74443),D=r(20821),A=r(86291),_=r(52280),N=r(11197),P=_("species"),C="Promise",L=D.get,R=D.set,B=D.getterFor(C),U=f,z=s.TypeError,H=s.document,G=s.process,W=l("fetch"),q=j.f,Z=q,F="process"==b(G),V=!!(H&&H.createEvent&&s.dispatchEvent),J="unhandledrejection",Y=A(C,(function(){if(!(w(U)!==String(U))){if(66===N)return!0;if(!F&&"function"!=typeof PromiseRejectionEvent)return!0}if(u&&!U.prototype.finally)return!0;if(N>=51&&/native code/.test(U))return!1;var e=U.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[P]=t,!(e.then((function(){}))instanceof t)})),X=Y||!E((function(e){U.all(e).catch((function(){}))})),Q=function(e){var t;return!(!v(e)||"function"!=typeof(t=e.then))&&t},$=function(e,t,r){if(!t.notified){t.notified=!0;var n=t.reactions;M((function(){for(var i=t.value,o=1==t.state,a=0;n.length>a;){var c,u,s,l=n[a++],f=o?l.ok:l.fail,p=l.resolve,d=l.reject,h=l.domain;try{f?(o||(2===t.rejection&&re(e,t),t.rejection=1),!0===f?c=i:(h&&h.enter(),c=f(i),h&&(h.exit(),s=!0)),c===l.promise?d(z("Promise-chain cycle")):(u=Q(c))?u.call(c,p,d):p(c)):d(i)}catch(m){h&&!s&&h.exit(),d(m)}}t.reactions=[],t.notified=!1,r&&!t.rejection&&ee(e,t)}))}},K=function(e,t,r){var n,i;V?((n=H.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),s.dispatchEvent(n)):n={promise:t,reason:r},(i=s["on"+e])?i(n):e===J&&k("Unhandled promise rejection",r)},ee=function(e,t){S.call(s,(function(){var r,n=t.value;if(te(t)&&(r=T((function(){F?G.emit("unhandledRejection",n,e):K(J,e,n)})),t.rejection=F||te(t)?2:1,r.error))throw r.value}))},te=function(e){return 1!==e.rejection&&!e.parent},re=function(e,t){S.call(s,(function(){F?G.emit("rejectionHandled",e):K("rejectionhandled",e,t.value)}))},ne=function(e,t,r,n){return function(i){e(t,r,i,n)}},ie=function(e,t,r,n){t.done||(t.done=!0,n&&(t=n),t.value=r,t.state=2,$(e,t,!0))},oe=function(e,t,r,n){if(!t.done){t.done=!0,n&&(t=n);try{if(e===r)throw z("Promise can't be resolved itself");var i=Q(r);i?M((function(){var n={done:!1};try{i.call(r,ne(oe,e,n,t),ne(ie,e,n,t))}catch(o){ie(e,n,o,t)}})):(t.value=r,t.state=1,$(e,t,!1))}catch(o){ie(e,{done:!1},o,t)}}};Y&&(U=function(e){g(this,U,C),y(e),n.call(this);var t=L(this);try{e(ne(oe,this,t),ne(ie,this,t))}catch(r){ie(this,t,r)}},(n=function(e){R(this,{type:C,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=d(U.prototype,{then:function(e,t){var r=B(this),n=q(I(this,U));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=F?G.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&$(this,r,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new n,t=L(e);this.promise=e,this.resolve=ne(oe,e,t),this.reject=ne(ie,e,t)},j.f=q=function(e){return e===U||e===o?new i(e):Z(e)},u||"function"!=typeof f||(a=f.prototype.then,p(f.prototype,"then",(function(e,t){var r=this;return new U((function(e,t){a.call(r,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof W&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return O(U,W.apply(s,arguments))}}))),c({global:!0,wrap:!0,forced:Y},{Promise:U}),h(U,C,!1,!0),m(C),o=l(C),c({target:C,stat:!0,forced:Y},{reject:function(e){var t=q(this);return t.reject.call(void 0,e),t.promise}}),c({target:C,stat:!0,forced:u||Y},{resolve:function(e){return O(u&&this===o?U:this,e)}}),c({target:C,stat:!0,forced:X},{all:function(e){var t=this,r=q(t),n=r.resolve,i=r.reject,o=T((function(){var r=y(t.resolve),o=[],a=0,c=1;x(e,(function(e){var u=a++,s=!1;o.push(void 0),c++,r.call(t,e).then((function(e){s||(s=!0,o[u]=e,--c||n(o))}),i)})),--c||n(o)}));return o.error&&i(o.value),r.promise},race:function(e){var t=this,r=q(t),n=r.reject,i=T((function(){var i=y(t.resolve);x(e,(function(e){i.call(t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}})},39275:function(e,t,r){"use strict";var n=r(19882),i=r(99749);n({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},19985:function(e,t,r){"use strict";var n=r(19882),i=r(21049),o=r(96411);n({target:"String",proto:!0,forced:!r(15454)("includes")},{includes:function(e){return!!~String(o(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},21682:function(e,t,r){"use strict";var n=r(19882),i=r(98385).start;n({target:"String",proto:!0,forced:r(5167)},{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},22321:function(e,t,r){"use strict";var n=r(81492),i=r(83875),o=r(30744),a=r(35108),c=r(98330),u=r(96411),s=r(13350),l=r(94088),f=Math.max,p=Math.min,d=Math.floor,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,m=/\$([$&'`]|\d\d?)/g;n("replace",2,(function(e,t,r,n){var v=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,y=n.REPLACE_KEEPS_$0,g=v?"$":"$0";return[function(r,n){var i=u(this),o=null==r?void 0:r[e];return void 0!==o?o.call(r,i,n):t.call(String(i),r,n)},function(e,n){if(!v&&y||"string"==typeof n&&-1===n.indexOf(g)){var o=r(t,e,this,n);if(o.done)return o.value}var u=i(e),d=String(this),h="function"==typeof n;h||(n=String(n));var m=u.global;if(m){var w=u.unicode;u.lastIndex=0}for(var x=[];;){var E=l(u,d);if(null===E)break;if(x.push(E),!m)break;""===String(E[0])&&(u.lastIndex=s(d,a(u.lastIndex),w))}for(var I,S="",M=0,O=0;O<x.length;O++){E=x[O];for(var k=String(E[0]),j=f(p(c(E.index),d.length),0),T=[],D=1;D<E.length;D++)T.push(void 0===(I=E[D])?I:String(I));var A=E.groups;if(h){var _=[k].concat(T,j,d);void 0!==A&&_.push(A);var N=String(n.apply(void 0,_))}else N=b(k,d,j,T,A,n);j>=M&&(S+=d.slice(M,j)+N,M=j+k.length)}return S+d.slice(M)}];function b(e,r,n,i,a,c){var u=n+e.length,s=i.length,l=m;return void 0!==a&&(a=o(a),l=h),t.call(c,l,(function(t,o){var c;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return r.slice(0,n);case"'":return r.slice(u);case"<":c=a[o.slice(1,-1)];break;default:var l=+o;if(0===l)return t;if(l>s){var f=d(l/10);return 0===f?t:f<=s?void 0===i[f-1]?o.charAt(1):i[f-1]+o.charAt(1):t}c=i[l-1]}return void 0===c?"":c}))}}))},68598:function(e){var t={px:{px:1,cm:96/2.54,mm:96/25.4,in:96,pt:96/72,pc:16},cm:{px:2.54/96,cm:1,mm:.1,in:2.54,pt:2.54/72,pc:2.54/6},mm:{px:25.4/96,cm:10,mm:1,in:25.4,pt:25.4/72,pc:25.4/6},in:{px:1/96,cm:1/2.54,mm:1/25.4,in:1,pt:1/72,pc:1/6},pt:{px:.75,cm:72/2.54,mm:72/25.4,in:72,pt:1,pc:12},pc:{px:6/96,cm:6/2.54,mm:6/25.4,in:6,pt:6/72,pc:1},deg:{deg:1,grad:.9,rad:180/Math.PI,turn:360},grad:{deg:400/360,grad:1,rad:200/Math.PI,turn:400},rad:{deg:Math.PI/180,grad:Math.PI/200,rad:1,turn:2*Math.PI},turn:{deg:1/360,grad:1/400,rad:.5/Math.PI,turn:1},s:{s:1,ms:.001},ms:{s:1e3,ms:1},Hz:{Hz:1,kHz:1e3},kHz:{Hz:.001,kHz:1},dpi:{dpi:1,dpcm:1/2.54,dppx:1/96},dpcm:{dpi:2.54,dpcm:1,dppx:2.54/96},dppx:{dpi:96,dpcm:96/2.54,dppx:1}};e.exports=function(e,r,n,i){if(!t.hasOwnProperty(n))throw new Error("Cannot convert to "+n);if(!t[n].hasOwnProperty(r))throw new Error("Cannot convert from "+r+" to "+n);return i=Math.pow(10,parseInt(i)||5),Math.round(t[n][r]*e*i)/i}},26058:function(e,t,r){var n;/*! decimal.js-light v2.5.1 https://github.com/MikeMcl/decimal.js-light/LICENCE */!function(i){"use strict";var o,a=1e9,c={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},u=!0,s="[DecimalError] ",l=s+"Invalid argument: ",f=s+"Exponent out of range: ",p=Math.floor,d=Math.pow,h=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,m=1e7,v=9007199254740991,y=p(1286742750677284.5),g={};function b(e,t){var r,n,i,o,a,c,s,l,f=e.constructor,p=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),u?T(t,p):t;if(s=e.d,l=t.d,a=e.e,i=t.e,s=s.slice(),o=a-i){for(o<0?(n=s,o=-o,c=l.length):(n=l,i=a,c=s.length),o>(c=(a=Math.ceil(p/7))>c?a+1:c+1)&&(o=c,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for((c=s.length)-(o=l.length)<0&&(o=c,n=l,l=s,s=n),r=0;o;)r=(s[--o]=s[o]+l[o]+r)/m|0,s[o]%=m;for(r&&(s.unshift(r),++i),c=s.length;0==s[--c];)s.pop();return t.d=s,t.e=i,u?T(t,p):t}function w(e,t,r){if(e!==~~e||e<t||e>r)throw Error(l+e)}function x(e){var t,r,n,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)(r=7-(n=e[t]+"").length)&&(o+=O(r)),o+=n;(r=7-(n=(a=e[t])+"").length)&&(o+=O(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}g.absoluteValue=g.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},g.comparedTo=g.cmp=function(e){var t,r,n,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(t=0,r=(n=o.d.length)<(i=e.d.length)?n:i;t<r;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return n===i?0:n>i^o.s<0?1:-1},g.decimalPlaces=g.dp=function(){var e=this,t=e.d.length-1,r=7*(t-e.e);if(t=e.d[t])for(;t%10==0;t/=10)r--;return r<0?0:r},g.dividedBy=g.div=function(e){return E(this,new this.constructor(e))},g.dividedToIntegerBy=g.idiv=function(e){var t=this.constructor;return T(E(this,new t(e),0,1),t.precision)},g.equals=g.eq=function(e){return!this.cmp(e)},g.exponent=function(){return S(this)},g.greaterThan=g.gt=function(e){return this.cmp(e)>0},g.greaterThanOrEqualTo=g.gte=function(e){return this.cmp(e)>=0},g.isInteger=g.isint=function(){return this.e>this.d.length-2},g.isNegative=g.isneg=function(){return this.s<0},g.isPositive=g.ispos=function(){return this.s>0},g.isZero=function(){return 0===this.s},g.lessThan=g.lt=function(e){return this.cmp(e)<0},g.lessThanOrEqualTo=g.lte=function(e){return this.cmp(e)<1},g.logarithm=g.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(void 0===e)e=new n(10);else if((e=new n(e)).s<1||e.eq(o))throw Error(s+"NaN");if(r.s<1)throw Error(s+(r.s?"NaN":"-Infinity"));return r.eq(o)?new n(0):(u=!1,t=E(k(r,a),k(e,a),a),u=!0,T(t,i))},g.minus=g.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?D(t,e):b(t,(e.s=-e.s,e))},g.modulo=g.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(!(e=new n(e)).s)throw Error(s+"NaN");return r.s?(u=!1,t=E(r,e,0,1).times(e),u=!0,r.minus(t)):T(new n(r),i)},g.naturalExponential=g.exp=function(){return I(this)},g.naturalLogarithm=g.ln=function(){return k(this)},g.negated=g.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},g.plus=g.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?b(t,e):D(t,(e.s=-e.s,e))},g.precision=g.sd=function(e){var t,r,n,i=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(l+e);if(t=S(i)+1,r=7*(n=i.d.length-1)+1,n=i.d[n]){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r},g.squareRoot=g.sqrt=function(){var e,t,r,n,i,o,a,c=this,l=c.constructor;if(c.s<1){if(!c.s)return new l(0);throw Error(s+"NaN")}for(e=S(c),u=!1,0==(i=Math.sqrt(+c))||i==1/0?(((t=x(c.d)).length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=p((e+1)/2)-(e<0||e%2),n=new l(t=i==1/0?"5e"+e:(t=i.toExponential()).slice(0,t.indexOf("e")+1)+e)):n=new l(i.toString()),i=a=(r=l.precision)+3;;)if(n=(o=n).plus(E(c,o,a+2)).times(.5),x(o.d).slice(0,a)===(t=x(n.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&"4999"==t){if(T(o,r+1,0),o.times(o).eq(c)){n=o;break}}else if("9999"!=t)break;a+=4}return u=!0,T(n,r)},g.times=g.mul=function(e){var t,r,n,i,o,a,c,s,l,f=this,p=f.constructor,d=f.d,h=(e=new p(e)).d;if(!f.s||!e.s)return new p(0);for(e.s*=f.s,r=f.e+e.e,(s=d.length)<(l=h.length)&&(o=d,d=h,h=o,a=s,s=l,l=a),o=[],n=a=s+l;n--;)o.push(0);for(n=l;--n>=0;){for(t=0,i=s+n;i>n;)c=o[i]+h[n]*d[i-n-1]+t,o[i--]=c%m|0,t=c/m|0;o[i]=(o[i]+t)%m|0}for(;!o[--a];)o.pop();return t?++r:o.shift(),e.d=o,e.e=r,u?T(e,p.precision):e},g.toDecimalPlaces=g.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),void 0===e?r:(w(e,0,a),void 0===t?t=n.rounding:w(t,0,8),T(r,e+S(r)+1,t))},g.toExponential=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=A(n,!0):(w(e,0,a),void 0===t?t=i.rounding:w(t,0,8),r=A(n=T(new i(n),e+1,t),!0,e+1)),r},g.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return void 0===e?A(i):(w(e,0,a),void 0===t?t=o.rounding:w(t,0,8),r=A((n=T(new o(i),e+S(i)+1,t)).abs(),!1,e+S(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)},g.toInteger=g.toint=function(){var e=this,t=e.constructor;return T(new t(e),S(e)+1,t.rounding)},g.toNumber=function(){return+this},g.toPower=g.pow=function(e){var t,r,n,i,a,c,l=this,f=l.constructor,d=+(e=new f(e));if(!e.s)return new f(o);if(!(l=new f(l)).s){if(e.s<1)throw Error(s+"Infinity");return l}if(l.eq(o))return l;if(n=f.precision,e.eq(o))return T(l,n);if(c=(t=e.e)>=(r=e.d.length-1),a=l.s,c){if((r=d<0?-d:d)<=v){for(i=new f(o),t=Math.ceil(n/7+4),u=!1;r%2&&_((i=i.times(l)).d,t),0!==(r=p(r/2));)_((l=l.times(l)).d,t);return u=!0,e.s<0?new f(o).div(i):T(i,n)}}else if(a<0)throw Error(s+"NaN");return a=a<0&&1&e.d[Math.max(t,r)]?-1:1,l.s=1,u=!1,i=e.times(k(l,n+12)),u=!0,(i=I(i)).s=a,i},g.toPrecision=function(e,t){var r,n,i=this,o=i.constructor;return void 0===e?n=A(i,(r=S(i))<=o.toExpNeg||r>=o.toExpPos):(w(e,1,a),void 0===t?t=o.rounding:w(t,0,8),n=A(i=T(new o(i),e,t),e<=(r=S(i))||r<=o.toExpNeg,e)),n},g.toSignificantDigits=g.tosd=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(w(e,1,a),void 0===t?t=r.rounding:w(t,0,8)),T(new r(this),e,t)},g.toString=g.valueOf=g.val=g.toJSON=function(){var e=this,t=S(e),r=e.constructor;return A(e,t<=r.toExpNeg||t>=r.toExpPos)};var E=function(){function e(e,t){var r,n=0,i=e.length;for(e=e.slice();i--;)r=e[i]*t+n,e[i]=r%m|0,n=r/m|0;return n&&e.unshift(n),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function r(e,t,r){for(var n=0;r--;)e[r]-=n,n=e[r]<t[r]?1:0,e[r]=n*m+e[r]-t[r];for(;!e[0]&&e.length>1;)e.shift()}return function(n,i,o,a){var c,u,l,f,p,d,h,v,y,g,b,w,x,E,I,M,O,k,j=n.constructor,D=n.s==i.s?1:-1,A=n.d,_=i.d;if(!n.s)return new j(n);if(!i.s)throw Error(s+"Division by zero");for(u=n.e-i.e,O=_.length,I=A.length,v=(h=new j(D)).d=[],l=0;_[l]==(A[l]||0);)++l;if(_[l]>(A[l]||0)&&--u,(w=null==o?o=j.precision:a?o+(S(n)-S(i))+1:o)<0)return new j(0);if(w=w/7+2|0,l=0,1==O)for(f=0,_=_[0],w++;(l<I||f)&&w--;l++)x=f*m+(A[l]||0),v[l]=x/_|0,f=x%_|0;else{for((f=m/(_[0]+1)|0)>1&&(_=e(_,f),A=e(A,f),O=_.length,I=A.length),E=O,g=(y=A.slice(0,O)).length;g<O;)y[g++]=0;(k=_.slice()).unshift(0),M=_[0],_[1]>=m/2&&++M;do{f=0,(c=t(_,y,O,g))<0?(b=y[0],O!=g&&(b=b*m+(y[1]||0)),(f=b/M|0)>1?(f>=m&&(f=m-1),1==(c=t(p=e(_,f),y,d=p.length,g=y.length))&&(f--,r(p,O<d?k:_,d))):(0==f&&(c=f=1),p=_.slice()),(d=p.length)<g&&p.unshift(0),r(y,p,g),-1==c&&(c=t(_,y,O,g=y.length))<1&&(f++,r(y,O<g?k:_,g)),g=y.length):0===c&&(f++,y=[0]),v[l++]=f,c&&y[0]?y[g++]=A[E]||0:(y=[A[E]],g=1)}while((E++<I||void 0!==y[0])&&w--)}return v[0]||v.shift(),h.e=u,T(h,a?o+S(h)+1:o)}}();function I(e,t){var r,n,i,a,c,s=0,l=0,p=e.constructor,h=p.precision;if(S(e)>16)throw Error(f+S(e));if(!e.s)return new p(o);for(null==t?(u=!1,c=h):c=t,a=new p(.03125);e.abs().gte(.1);)e=e.times(a),l+=5;for(c+=Math.log(d(2,l))/Math.LN10*2+5|0,r=n=i=new p(o),p.precision=c;;){if(n=T(n.times(e),c),r=r.times(++s),x((a=i.plus(E(n,r,c))).d).slice(0,c)===x(i.d).slice(0,c)){for(;l--;)i=T(i.times(i),c);return p.precision=h,null==t?(u=!0,T(i,h)):i}i=a}}function S(e){for(var t=7*e.e,r=e.d[0];r>=10;r/=10)t++;return t}function M(e,t,r){if(t>e.LN10.sd())throw u=!0,r&&(e.precision=r),Error(s+"LN10 precision limit exceeded");return T(new e(e.LN10),t)}function O(e){for(var t="";e--;)t+="0";return t}function k(e,t){var r,n,i,a,c,l,f,p,d,h=1,m=e,v=m.d,y=m.constructor,g=y.precision;if(m.s<1)throw Error(s+(m.s?"NaN":"-Infinity"));if(m.eq(o))return new y(0);if(null==t?(u=!1,p=g):p=t,m.eq(10))return null==t&&(u=!0),M(y,p);if(p+=10,y.precision=p,n=(r=x(v)).charAt(0),a=S(m),!(Math.abs(a)<15e14))return f=M(y,p+2,g).times(a+""),m=k(new y(n+"."+r.slice(1)),p-10).plus(f),y.precision=g,null==t?(u=!0,T(m,g)):m;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=x((m=m.times(e)).d)).charAt(0),h++;for(a=S(m),n>1?(m=new y("0."+r),a++):m=new y(n+"."+r.slice(1)),l=c=m=E(m.minus(o),m.plus(o),p),d=T(m.times(m),p),i=3;;){if(c=T(c.times(d),p),x((f=l.plus(E(c,new y(i),p))).d).slice(0,p)===x(l.d).slice(0,p))return l=l.times(2),0!==a&&(l=l.plus(M(y,p+2,g).times(a+""))),l=E(l,new y(h),p),y.precision=g,null==t?(u=!0,T(l,g)):l;l=f,i+=2}}function j(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;48===t.charCodeAt(n);)++n;for(i=t.length;48===t.charCodeAt(i-1);)--i;if(t=t.slice(n,i)){if(i-=n,r=r-n-1,e.e=p(r/7),e.d=[],n=(r+1)%7,r<0&&(n+=7),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=7;n<i;)e.d.push(+t.slice(n,n+=7));n=7-(t=t.slice(n)).length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),u&&(e.e>y||e.e<-y))throw Error(f+r)}else e.s=0,e.e=0,e.d=[0];return e}function T(e,t,r){var n,i,o,a,c,s,l,h,v=e.d;for(a=1,o=v[0];o>=10;o/=10)a++;if((n=t-a)<0)n+=7,i=t,l=v[h=0];else{if((h=Math.ceil((n+1)/7))>=(o=v.length))return e;for(l=o=v[h],a=1;o>=10;o/=10)a++;i=(n%=7)-7+a}if(void 0!==r&&(c=l/(o=d(10,a-i-1))%10|0,s=t<0||void 0!==v[h+1]||l%o,s=r<4?(c||s)&&(0==r||r==(e.s<0?3:2)):c>5||5==c&&(4==r||s||6==r&&(n>0?i>0?l/d(10,a-i):0:v[h-1])%10&1||r==(e.s<0?8:7))),t<1||!v[0])return s?(o=S(e),v.length=1,t=t-o-1,v[0]=d(10,(7-t%7)%7),e.e=p(-t/7)||0):(v.length=1,v[0]=e.e=e.s=0),e;if(0==n?(v.length=h,o=1,h--):(v.length=h+1,o=d(10,7-n),v[h]=i>0?(l/d(10,a-i)%d(10,i)|0)*o:0),s)for(;;){if(0==h){(v[0]+=o)==m&&(v[0]=1,++e.e);break}if(v[h]+=o,v[h]!=m)break;v[h--]=0,o=1}for(n=v.length;0===v[--n];)v.pop();if(u&&(e.e>y||e.e<-y))throw Error(f+S(e));return e}function D(e,t){var r,n,i,o,a,c,s,l,f,p,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),u?T(t,h):t;if(s=e.d,p=t.d,n=t.e,l=e.e,s=s.slice(),a=l-n){for((f=a<0)?(r=s,a=-a,c=p.length):(r=p,n=l,c=s.length),a>(i=Math.max(Math.ceil(h/7),c)+2)&&(a=i,r.length=1),r.reverse(),i=a;i--;)r.push(0);r.reverse()}else{for((f=(i=s.length)<(c=p.length))&&(c=i),i=0;i<c;i++)if(s[i]!=p[i]){f=s[i]<p[i];break}a=0}for(f&&(r=s,s=p,p=r,t.s=-t.s),c=s.length,i=p.length-c;i>0;--i)s[c++]=0;for(i=p.length;i>a;){if(s[--i]<p[i]){for(o=i;o&&0===s[--o];)s[o]=m-1;--s[o],s[i]+=m}s[i]-=p[i]}for(;0===s[--c];)s.pop();for(;0===s[0];s.shift())--n;return s[0]?(t.d=s,t.e=n,u?T(t,h):t):new d(0)}function A(e,t,r){var n,i=S(e),o=x(e.d),a=o.length;return t?(r&&(n=r-a)>0?o=o.charAt(0)+"."+o.slice(1)+O(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+O(-i-1)+o,r&&(n=r-a)>0&&(o+=O(n))):i>=a?(o+=O(i+1-a),r&&(n=r-i-1)>0&&(o=o+"."+O(n))):((n=i+1)<a&&(o=o.slice(0,n)+"."+o.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(o+="."),o+=O(n))),e.s<0?"-"+o:o}function _(e,t){if(e.length>t)return e.length=t,!0}function N(e){if(!e||"object"!=typeof e)throw Error(s+"Object expected");var t,r,n,i=["precision",1,a,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if(void 0!==(n=e[r=i[t]])){if(!(p(n)===n&&n>=i[t+1]&&n<=i[t+2]))throw Error(l+r+": "+n);this[r]=n}if(void 0!==(n=e[r="LN10"])){if(n!=Math.LN10)throw Error(l+r+": "+n);this[r]=new this(n)}return this}(c=function e(t){var r,n,i;function o(e){var t=this;if(!(t instanceof o))return new o(e);if(t.constructor=o,e instanceof o)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"==typeof e){if(0*e!=0)throw Error(l+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):j(t,e.toString())}if("string"!=typeof e)throw Error(l+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!h.test(e))throw Error(l+e);j(t,e)}if(o.prototype=g,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=e,o.config=o.set=N,void 0===t&&(t={}),t)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],r=0;r<i.length;)t.hasOwnProperty(n=i[r++])||(t[n]=this[n]);return o.config(t),o}(c)).default=c.Decimal=c,o=new c(1),void 0===(n=function(){return c}.call(t,r,t,e))||(e.exports=n)}()},37941:function(e,t,r){var n;
7
  /*!
8
  Copyright (c) 2015 Jed Watson.
9
  Based on code that is Copyright 2013-2015, Facebook, Inc.
33
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
34
  * SOFTWARE.
35
  */
36
+ var n="undefined"!=typeof window&&"undefined"!=typeof document,i=["Edge","Trident","Firefox"],o=0,a=0;a<i.length;a+=1)if(n&&navigator.userAgent.indexOf(i[a])>=0){o=1;break}var c=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),o))}};function u(e){return e&&"[object Function]"==={}.toString.call(e)}function s(e,t){if(1!==e.nodeType)return[];var r=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?r[t]:r}function l(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function f(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=s(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(r+i+n)?e:f(l(e))}var p=n&&!(!window.MSInputMethodContext||!document.documentMode),d=n&&/MSIE 10/.test(navigator.userAgent);function h(e){return 11===e?p:10===e?d:p||d}function m(e){if(!e)return document.documentElement;for(var t=h(10)?document.body:null,r=e.offsetParent||null;r===t&&e.nextElementSibling;)r=(e=e.nextElementSibling).offsetParent;var n=r&&r.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TH","TD","TABLE"].indexOf(r.nodeName)&&"static"===s(r,"position")?m(r):r:e?e.ownerDocument.documentElement:document.documentElement}function v(e){return null!==e.parentNode?v(e.parentNode):e}function y(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var r=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,n=r?e:t,i=r?t:e,o=document.createRange();o.setStart(n,0),o.setEnd(i,0);var a,c,u=o.commonAncestorContainer;if(e!==u&&t!==u||n.contains(i))return"BODY"===(c=(a=u).nodeName)||"HTML"!==c&&m(a.firstElementChild)!==a?m(u):u;var s=v(e);return s.host?y(s.host,t):y(e,v(t).host)}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",r="top"===t?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var i=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||i;return o[r]}return e[r]}function b(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=g(t,"top"),i=g(t,"left"),o=r?-1:1;return e.top+=n*o,e.bottom+=n*o,e.left+=i*o,e.right+=i*o,e}function w(e,t){var r="x"===t?"Left":"Top",n="Left"===r?"Right":"Bottom";return parseFloat(e["border"+r+"Width"],10)+parseFloat(e["border"+n+"Width"],10)}function x(e,t,r,n){return Math.max(t["offset"+e],t["scroll"+e],r["client"+e],r["offset"+e],r["scroll"+e],h(10)?parseInt(r["offset"+e])+parseInt(n["margin"+("Height"===e?"Top":"Left")])+parseInt(n["margin"+("Height"===e?"Bottom":"Right")]):0)}function E(e){var t=e.body,r=e.documentElement,n=h(10)&&getComputedStyle(r);return{height:x("Height",t,r,n),width:x("Width",t,r,n)}}var I=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},S=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),M=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function k(e){return O({},e,{right:e.left+e.width,bottom:e.top+e.height})}function j(e){var t={};try{if(h(10)){t=e.getBoundingClientRect();var r=g(e,"top"),n=g(e,"left");t.top+=r,t.left+=n,t.bottom+=r,t.right+=n}else t=e.getBoundingClientRect()}catch(p){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?E(e.ownerDocument):{},a=o.width||e.clientWidth||i.right-i.left,c=o.height||e.clientHeight||i.bottom-i.top,u=e.offsetWidth-a,l=e.offsetHeight-c;if(u||l){var f=s(e);u-=w(f,"x"),l-=w(f,"y"),i.width-=u,i.height-=l}return k(i)}function T(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=h(10),i="HTML"===t.nodeName,o=j(e),a=j(t),c=f(e),u=s(t),l=parseFloat(u.borderTopWidth,10),p=parseFloat(u.borderLeftWidth,10);r&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=k({top:o.top-a.top-l,left:o.left-a.left-p,width:o.width,height:o.height});if(d.marginTop=0,d.marginLeft=0,!n&&i){var m=parseFloat(u.marginTop,10),v=parseFloat(u.marginLeft,10);d.top-=l-m,d.bottom-=l-m,d.left-=p-v,d.right-=p-v,d.marginTop=m,d.marginLeft=v}return(n&&!r?t.contains(c):t===c&&"BODY"!==c.nodeName)&&(d=b(d,t)),d}function D(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.ownerDocument.documentElement,n=T(e,r),i=Math.max(r.clientWidth,window.innerWidth||0),o=Math.max(r.clientHeight,window.innerHeight||0),a=t?0:g(r),c=t?0:g(r,"left"),u={top:a-n.top+n.marginTop,left:c-n.left+n.marginLeft,width:i,height:o};return k(u)}function A(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===s(e,"position"))return!0;var r=l(e);return!!r&&A(r)}function _(e){if(!e||!e.parentElement||h())return document.documentElement;for(var t=e.parentElement;t&&"none"===s(t,"transform");)t=t.parentElement;return t||document.documentElement}function N(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?_(e):y(e,t);if("viewport"===n)o=D(a,i);else{var c=void 0;"scrollParent"===n?"BODY"===(c=f(l(t))).nodeName&&(c=e.ownerDocument.documentElement):c="window"===n?e.ownerDocument.documentElement:n;var u=T(c,a,i);if("HTML"!==c.nodeName||A(a))o=u;else{var s=E(e.ownerDocument),p=s.height,d=s.width;o.top+=u.top-u.marginTop,o.bottom=p+u.top,o.left+=u.left-u.marginLeft,o.right=d+u.left}}var h="number"==typeof(r=r||0);return o.left+=h?r:r.left||0,o.top+=h?r:r.top||0,o.right-=h?r:r.right||0,o.bottom-=h?r:r.bottom||0,o}function P(e){return e.width*e.height}function C(e,t,r,n,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=N(r,n,o,i),c={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},u=Object.keys(c).map((function(e){return O({key:e},c[e],{area:P(c[e])})})).sort((function(e,t){return t.area-e.area})),s=u.filter((function(e){var t=e.width,n=e.height;return t>=r.clientWidth&&n>=r.clientHeight})),l=s.length>0?s[0].key:u[0].key,f=e.split("-")[1];return l+(f?"-"+f:"")}function L(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=n?_(t):y(t,r);return T(r,i,n)}function R(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),r=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),n=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+n,height:e.offsetHeight+r}}function B(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function U(e,t,r){r=r.split("-")[0];var n=R(e),i={width:n.width,height:n.height},o=-1!==["right","left"].indexOf(r),a=o?"top":"left",c=o?"left":"top",u=o?"height":"width",s=o?"width":"height";return i[a]=t[a]+t[u]/2-n[u]/2,i[c]=r===c?t[c]-n[s]:t[B(c)],i}function z(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function H(e,t,r){return(void 0===r?e:e.slice(0,function(e,t,r){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===r}));var n=z(e,(function(e){return e[t]===r}));return e.indexOf(n)}(e,"name",r))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var r=e.function||e.fn;e.enabled&&u(r)&&(t.offsets.popper=k(t.offsets.popper),t.offsets.reference=k(t.offsets.reference),t=r(t,e))})),t}function G(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=L(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=C(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=U(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=H(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function W(e,t){return e.some((function(e){var r=e.name;return e.enabled&&r===t}))}function q(e){for(var t=[!1,"ms","Webkit","Moz","O"],r=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length;n++){var i=t[n],o=i?""+i+r:e;if(void 0!==document.body.style[o])return o}return null}function Z(){return this.state.isDestroyed=!0,W(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[q("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function F(e){var t=e.ownerDocument;return t?t.defaultView:window}function V(e,t,r,n){var i="BODY"===e.nodeName,o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,r,{passive:!0}),i||V(f(o.parentNode),t,r,n),n.push(o)}function J(e,t,r,n){r.updateBound=n,F(e).addEventListener("resize",r.updateBound,{passive:!0});var i=f(e);return V(i,"scroll",r.updateBound,r.scrollParents),r.scrollElement=i,r.eventsEnabled=!0,r}function Y(){this.state.eventsEnabled||(this.state=J(this.reference,this.options,this.state,this.scheduleUpdate))}function X(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,F(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function Q(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function $(e,t){Object.keys(t).forEach((function(r){var n="";-1!==["width","height","top","right","bottom","left"].indexOf(r)&&Q(t[r])&&(n="px"),e.style[r]=t[r]+n}))}var K=n&&/Firefox/i.test(navigator.userAgent);function ee(e,t,r){var n=z(e,(function(e){return e.name===t})),i=!!n&&e.some((function(e){return e.name===r&&e.enabled&&e.order<n.order}));if(!i){var o="`"+t+"`",a="`"+r+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}var te=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],re=te.slice(3);function ne(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=re.indexOf(e),n=re.slice(r+1).concat(re.slice(0,r));return t?n.reverse():n}var ie="flip",oe="clockwise",ae="counterclockwise";function ce(e,t,r,n){var i=[0,0],o=-1!==["right","left"].indexOf(n),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),c=a.indexOf(z(a,(function(e){return-1!==e.search(/,|\s/)})));a[c]&&-1===a[c].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,s=-1!==c?[a.slice(0,c).concat([a[c].split(u)[0]]),[a[c].split(u)[1]].concat(a.slice(c+1))]:[a];return(s=s.map((function(e,n){var i=(1===n?!o:o)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,r,n){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(0===a.indexOf("%")){var c=void 0;switch(a){case"%p":c=r;break;case"%":case"%r":default:c=n}return k(c)[t]/100*o}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;return o}(e,i,t,r)}))}))).forEach((function(e,t){e.forEach((function(r,n){Q(r)&&(i[t]+=r*("-"===e[n-1]?-1:1))}))})),i}var ue={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,r=t.split("-")[0],n=t.split("-")[1];if(n){var i=e.offsets,o=i.reference,a=i.popper,c=-1!==["bottom","top"].indexOf(r),u=c?"left":"top",s=c?"width":"height",l={start:M({},u,o[u]),end:M({},u,o[u]+o[s]-a[s])};e.offsets.popper=O({},a,l[n])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var r=t.offset,n=e.placement,i=e.offsets,o=i.popper,a=i.reference,c=n.split("-")[0],u=void 0;return u=Q(+r)?[+r,0]:ce(r,o,a,c),"left"===c?(o.top+=u[0],o.left-=u[1]):"right"===c?(o.top+=u[0],o.left+=u[1]):"top"===c?(o.left+=u[0],o.top-=u[1]):"bottom"===c&&(o.left+=u[0],o.top+=u[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var r=t.boundariesElement||m(e.instance.popper);e.instance.reference===r&&(r=m(r));var n=q("transform"),i=e.instance.popper.style,o=i.top,a=i.left,c=i[n];i.top="",i.left="",i[n]="";var u=N(e.instance.popper,e.instance.reference,t.padding,r,e.positionFixed);i.top=o,i.left=a,i[n]=c,t.boundaries=u;var s=t.priority,l=e.offsets.popper,f={primary:function(e){var r=l[e];return l[e]<u[e]&&!t.escapeWithReference&&(r=Math.max(l[e],u[e])),M({},e,r)},secondary:function(e){var r="right"===e?"left":"top",n=l[r];return l[e]>u[e]&&!t.escapeWithReference&&(n=Math.min(l[r],u[e]-("right"===e?l.width:l.height))),M({},r,n)}};return s.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";l=O({},l,f[t](e))})),e.offsets.popper=l,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,r=t.popper,n=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),c=a?"right":"bottom",u=a?"left":"top",s=a?"width":"height";return r[c]<o(n[u])&&(e.offsets.popper[u]=o(n[u])-r[s]),r[u]>o(n[c])&&(e.offsets.popper[u]=o(n[c])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var r;if(!ee(e.instance.modifiers,"arrow","keepTogether"))return e;var n=t.element;if("string"==typeof n){if(!(n=e.instance.popper.querySelector(n)))return e}else if(!e.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,a=o.popper,c=o.reference,u=-1!==["left","right"].indexOf(i),l=u?"height":"width",f=u?"Top":"Left",p=f.toLowerCase(),d=u?"left":"top",h=u?"bottom":"right",m=R(n)[l];c[h]-m<a[p]&&(e.offsets.popper[p]-=a[p]-(c[h]-m)),c[p]+m>a[h]&&(e.offsets.popper[p]+=c[p]+m-a[h]),e.offsets.popper=k(e.offsets.popper);var v=c[p]+c[l]/2-m/2,y=s(e.instance.popper),g=parseFloat(y["margin"+f],10),b=parseFloat(y["border"+f+"Width"],10),w=v-e.offsets.popper[p]-g-b;return w=Math.max(Math.min(a[l]-m,w),0),e.arrowElement=n,e.offsets.arrow=(M(r={},p,Math.round(w)),M(r,d,""),r),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(W(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var r=N(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),n=e.placement.split("-")[0],i=B(n),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case ie:a=[n,i];break;case oe:a=ne(n);break;case ae:a=ne(n,!0);break;default:a=t.behavior}return a.forEach((function(c,u){if(n!==c||a.length===u+1)return e;n=e.placement.split("-")[0],i=B(n);var s=e.offsets.popper,l=e.offsets.reference,f=Math.floor,p="left"===n&&f(s.right)>f(l.left)||"right"===n&&f(s.left)<f(l.right)||"top"===n&&f(s.bottom)>f(l.top)||"bottom"===n&&f(s.top)<f(l.bottom),d=f(s.left)<f(r.left),h=f(s.right)>f(r.right),m=f(s.top)<f(r.top),v=f(s.bottom)>f(r.bottom),y="left"===n&&d||"right"===n&&h||"top"===n&&m||"bottom"===n&&v,g=-1!==["top","bottom"].indexOf(n),b=!!t.flipVariations&&(g&&"start"===o&&d||g&&"end"===o&&h||!g&&"start"===o&&m||!g&&"end"===o&&v),w=!!t.flipVariationsByContent&&(g&&"start"===o&&h||g&&"end"===o&&d||!g&&"start"===o&&v||!g&&"end"===o&&m),x=b||w;(p||y||x)&&(e.flipped=!0,(p||y)&&(n=a[u+1]),x&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=n+(o?"-"+o:""),e.offsets.popper=O({},e.offsets.popper,U(e.instance.popper,e.offsets.reference,e.placement)),e=H(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,r=t.split("-")[0],n=e.offsets,i=n.popper,o=n.reference,a=-1!==["left","right"].indexOf(r),c=-1===["top","left"].indexOf(r);return i[a?"left":"top"]=o[r]-(c?i[a?"width":"height"]:0),e.placement=B(t),e.offsets.popper=k(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!ee(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,r=z(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<r.top||t.left>r.right||t.top>r.bottom||t.right<r.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var r=t.x,n=t.y,i=e.offsets.popper,o=z(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:t.gpuAcceleration,c=m(e.instance.popper),u=j(c),s={position:i.position},l=function(e,t){var r=e.offsets,n=r.popper,i=r.reference,o=Math.round,a=Math.floor,c=function(e){return e},u=o(i.width),s=o(n.width),l=-1!==["left","right"].indexOf(e.placement),f=-1!==e.placement.indexOf("-"),p=t?l||f||u%2==s%2?o:a:c,d=t?o:c;return{left:p(u%2==1&&s%2==1&&!f&&t?n.left-1:n.left),top:d(n.top),bottom:d(n.bottom),right:p(n.right)}}(e,window.devicePixelRatio<2||!K),f="bottom"===r?"top":"bottom",p="right"===n?"left":"right",d=q("transform"),h=void 0,v=void 0;if(v="bottom"===f?"HTML"===c.nodeName?-c.clientHeight+l.bottom:-u.height+l.bottom:l.top,h="right"===p?"HTML"===c.nodeName?-c.clientWidth+l.right:-u.width+l.right:l.left,a&&d)s[d]="translate3d("+h+"px, "+v+"px, 0)",s[f]=0,s[p]=0,s.willChange="transform";else{var y="bottom"===f?-1:1,g="right"===p?-1:1;s[f]=v*y,s[p]=h*g,s.willChange=f+", "+p}var b={"x-placement":e.placement};return e.attributes=O({},b,e.attributes),e.styles=O({},s,e.styles),e.arrowStyles=O({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,r;return $(e.instance.popper,e.styles),t=e.instance.popper,r=e.attributes,Object.keys(r).forEach((function(e){!1!==r[e]?t.setAttribute(e,r[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&$(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,r,n,i){var o=L(i,t,e,r.positionFixed),a=C(r.placement,o,t,e,r.modifiers.flip.boundariesElement,r.modifiers.flip.padding);return t.setAttribute("x-placement",a),$(t,{position:r.positionFixed?"fixed":"absolute"}),r},gpuAcceleration:void 0}}},se=function(){function e(t,r){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};I(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=c(this.update.bind(this)),this.options=O({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=r&&r.jquery?r[0]:r,this.options.modifiers={},Object.keys(O({},e.Defaults.modifiers,i.modifiers)).forEach((function(t){n.options.modifiers[t]=O({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return O({name:e},n.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&u(e.onLoad)&&e.onLoad(n.reference,n.popper,n.options,e,n.state)})),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return S(e,[{key:"update",value:function(){return G.call(this)}},{key:"destroy",value:function(){return Z.call(this)}},{key:"enableEventListeners",value:function(){return Y.call(this)}},{key:"disableEventListeners",value:function(){return X.call(this)}}]),e}();se.Utils=("undefined"!=typeof window?window:r.g).PopperUtils,se.placements=te,se.Defaults=ue,t.default=se},59069:function(e,t,r){var n=r(50027),i=r(46714),o=r(16895);function a(e){return this instanceof a?(this.nodes=n(e),this):new a(e)}a.prototype.toString=function(){return Array.isArray(this.nodes)?o(this.nodes):""},a.prototype.walk=function(e,t){return i(this.nodes,e,t),this},a.unit=r(32280),a.walk=i,a.stringify=o,e.exports=a},50027:function(e){var t="(".charCodeAt(0),r=")".charCodeAt(0),n="'".charCodeAt(0),i='"'.charCodeAt(0),o="\\".charCodeAt(0),a="/".charCodeAt(0),c=",".charCodeAt(0),u=":".charCodeAt(0),s="*".charCodeAt(0);e.exports=function(e){for(var l,f,p,d,h,m,v,y,g=[],b=e,w=0,x=b.charCodeAt(w),E=b.length,I=[{nodes:g}],S=0,M="",O="",k="";w<E;)if(x<=32){l=w;do{l+=1,x=b.charCodeAt(l)}while(x<=32);d=b.slice(w,l),p=g[g.length-1],x===r&&S?k=d:p&&"div"===p.type?p.after=d:x===c||x===u||x===a&&b.charCodeAt(l+1)!==s?O=d:g.push({type:"space",sourceIndex:w,value:d}),w=l}else if(x===n||x===i){l=w,d={type:"string",sourceIndex:w,quote:f=x===n?"'":'"'};do{if(h=!1,~(l=b.indexOf(f,l+1)))for(m=l;b.charCodeAt(m-1)===o;)m-=1,h=!h;else l=(b+=f).length-1,d.unclosed=!0}while(h);d.value=b.slice(w+1,l),g.push(d),w=l+1,x=b.charCodeAt(w)}else if(x===a&&b.charCodeAt(w+1)===s)d={type:"comment",sourceIndex:w},-1===(l=b.indexOf("*/",w))&&(d.unclosed=!0,l=b.length),d.value=b.slice(w+2,l),g.push(d),w=l+2,x=b.charCodeAt(w);else if(x===a||x===c||x===u)d=b[w],g.push({type:"div",sourceIndex:w-O.length,value:d,before:O,after:""}),O="",w+=1,x=b.charCodeAt(w);else if(t===x){l=w;do{l+=1,x=b.charCodeAt(l)}while(x<=32);if(d={type:"function",sourceIndex:w-M.length,value:M,before:b.slice(w+1,l)},w=l,"url"===M&&x!==n&&x!==i){l-=1;do{if(h=!1,~(l=b.indexOf(")",l+1)))for(m=l;b.charCodeAt(m-1)===o;)m-=1,h=!h;else l=(b+=")").length-1,d.unclosed=!0}while(h);v=l;do{v-=1,x=b.charCodeAt(v)}while(x<=32);d.nodes=w!==v+1?[{type:"word",sourceIndex:w,value:b.slice(w,v+1)}]:[],d.unclosed&&v+1!==l?(d.after="",d.nodes.push({type:"space",sourceIndex:v+1,value:b.slice(v+1,l)})):d.after=b.slice(v+1,l),w=l+1,x=b.charCodeAt(w),g.push(d)}else S+=1,d.after="",g.push(d),I.push(d),g=d.nodes=[],y=d;M=""}else if(r===x&&S)w+=1,x=b.charCodeAt(w),y.after=k,k="",S-=1,I.pop(),g=(y=I[S]).nodes;else{l=w;do{x===o&&(l+=1),l+=1,x=b.charCodeAt(l)}while(l<E&&!(x<=32||x===n||x===i||x===c||x===u||x===a||x===t||x===r&&S));d=b.slice(w,l),t===x?M=d:g.push({type:"word",sourceIndex:w,value:d}),w=l}for(w=I.length-1;w;w-=1)I[w].unclosed=!0;return I[0].nodes}},16895:function(e){function t(e,t){var n,i,o=e.type,a=e.value;return t&&void 0!==(i=t(e))?i:"word"===o||"space"===o?a:"string"===o?(n=e.quote||"")+a+(e.unclosed?"":n):"comment"===o?"/*"+a+(e.unclosed?"":"*/"):"div"===o?(e.before||"")+a+(e.after||""):Array.isArray(e.nodes)?(n=r(e.nodes),"function"!==o?n:a+"("+(e.before||"")+n+(e.after||"")+(e.unclosed?"":")")):a}function r(e,r){var n,i;if(Array.isArray(e)){for(n="",i=e.length-1;~i;i-=1)n=t(e[i],r)+n;return n}return t(e,r)}e.exports=r},32280:function(e){var t="-".charCodeAt(0),r="+".charCodeAt(0),n=".".charCodeAt(0),i="e".charCodeAt(0),o="E".charCodeAt(0);e.exports=function(e){for(var a,c=0,u=e.length,s=!1,l=-1,f=!1;c<u;){if((a=e.charCodeAt(c))>=48&&a<=57)f=!0;else if(a===i||a===o){if(l>-1)break;l=c}else if(a===n){if(s)break;s=!0}else{if(a!==r&&a!==t)break;if(0!==c)break}c+=1}return l+1===c&&c--,!!f&&{number:e.slice(0,c),unit:e.slice(c)}}},46714:function(e){e.exports=function e(t,r,n){var i,o,a,c;for(i=0,o=t.length;i<o;i+=1)a=t[i],n||(c=r(a,i,t)),!1!==c&&"function"===a.type&&Array.isArray(a.nodes)&&e(a.nodes,r,n),n&&r(a,i,t)}},5372:function(e,t,r){"use strict";var n=r(49567);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,a){if(a!==n){var c=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 c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return r.PropTypes=r,r}},2652:function(e,t,r){e.exports=r(5372)()},49567:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},61666:function(e,t,r){for(var n=r(76279),i="undefined"==typeof window?r.g:window,o=["moz","webkit"],a="AnimationFrame",c=i["request"+a],u=i["cancel"+a]||i["cancelRequest"+a],s=0;!c&&s<o.length;s++)c=i[o[s]+"Request"+a],u=i[o[s]+"Cancel"+a]||i[o[s]+"CancelRequest"+a];if(!c||!u){var l=0,f=0,p=[];c=function(e){if(0===p.length){var t=n(),r=Math.max(0,16.666666666666668-(t-l));l=r+t,setTimeout((function(){var e=p.slice(0);p.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(l)}catch(r){setTimeout((function(){throw r}),0)}}),Math.round(r))}return p.push({handle:++f,callback:e,cancelled:!1}),f},u=function(e){for(var t=0;t<p.length;t++)p[t].handle===e&&(p[t].cancelled=!0)}}e.exports=function(e){return c.call(i,e)},e.exports.cancel=function(){u.apply(i,arguments)},e.exports.polyfill=function(e){e||(e=i),e.requestAnimationFrame=c,e.cancelAnimationFrame=u}},50310:function(e,t,r){"use strict";r.d(t,{XQ:function(){return i},Un:function(){return o},Qc:function(){return a}});var n=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(c){i={error:c}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},i=function(e){return e.split(/ ?; ?/).reduce((function(e,t){var r=n(t.split(/ ?: ?/),2),i=r[0],o=r[1];return i&&o&&(e[i.replace(/-(\w)/g,(function(e,t){return t.toUpperCase()}))]=Number.isNaN(Number(o))?o:Number(o)),e}),{})},o=["br","col","colgroup","dl","hr","iframe","img","input","link","menuitem","meta","ol","param","select","table","tbody","tfoot","thead","tr","ul","wbr"],a={"accept-charset":"acceptCharset",acceptcharset:"acceptCharset",accesskey:"accessKey",allowfullscreen:"allowFullScreen",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classID",classname:"className",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",controlslist:"controlsList",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",datetime:"dateTime",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",enctype:"encType",for:"htmlFor",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",innerhtml:"innerHTML",inputmode:"inputMode",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",marginwidth:"marginWidth",marginheight:"marginHeight",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",nomodule:"noModule",novalidate:"noValidate",playsinline:"playsInline",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",typemustmatch:"typeMustMatch",usemap:"useMap",accentheight:"accentHeight","accent-height":"accentHeight",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",arabicform:"arabicForm","arabic-form":"arabicForm",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",diffuseconstant:"diffuseConstant",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",edgemode:"edgeMode",enablebackground:"enableBackground","enable-background":"enableBackground",externalresourcesrequired:"externalResourcesRequired",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",imagerendering:"imageRendering","image-rendering":"imageRendering",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",vmathematical:"vMathematical","v-mathematical":"vMathematical",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan",onblur:"onBlur",onchange:"onChange",onclick:"onClick",oncontextmenu:"onContextMenu",ondoubleclick:"onDoubleClick",ondrag:"onDrag",ondragend:"onDragEnd",ondragenter:"onDragEnter",ondragexit:"onDragExit",ondragleave:"onDragLeave",ondragover:"onDragOver",ondragstart:"onDragStart",ondrop:"onDrop",onerror:"onError",onfocus:"onFocus",oninput:"onInput",oninvalid:"onInvalid",onkeydown:"onKeyDown",onkeypress:"onKeyPress",onkeyup:"onKeyUp",onload:"onLoad",onmousedown:"onMouseDown",onmouseenter:"onMouseEnter",onmouseleave:"onMouseLeave",onmousemove:"onMouseMove",onmouseout:"onMouseOut",onmouseover:"onMouseOver",onmouseup:"onMouseUp",onscroll:"onScroll",onsubmit:"onSubmit",ontouchcancel:"onTouchCancel",ontouchend:"onTouchEnd",ontouchmove:"onTouchMove",ontouchstart:"onTouchStart",onwheel:"onWheel"}},88041:function(e,t,r){"use strict";r.d(t,{ZP:function(){return s}});var n=r(89526),i=r(50310),o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},a=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(c){i={error:c}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},c=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(a(arguments[t]));return e};function u(e,t){var r;if(void 0===t&&(t={}),!(e&&e instanceof Node))return null;var a,s=t.actions,l=void 0===s?[]:s,f=t.index,p=void 0===f?0:f,d=t.level,h=void 0===d?0:d,m=e,v=h+"-"+p,y=[];if(Array.isArray(l)&&l.forEach((function(t){t.condition(m,v,h)&&("function"==typeof t.pre&&((m=t.pre(m,v,h))instanceof Node||(m=e)),"function"==typeof t.post&&y.push(t.post(m,v,h)))})),y.length)return y;switch(m.nodeType){case 1:return n.createElement((a=m.nodeName,/[a-z]+[A-Z]+[a-z]+/.test(a)?a:a.toLowerCase()),function(e,t){var r={key:t};if(e instanceof Element){var n=e.getAttribute("class");n&&(r.className=n),c(e.attributes).forEach((function(e){switch(e.name){case"class":break;case"style":r[e.name]=(0,i.XQ)(e.value);break;case"allowfullscreen":case"allowpaymentrequest":case"async":case"autofocus":case"autoplay":case"checked":case"controls":case"default":case"defer":case"disabled":case"formnovalidate":case"hidden":case"ismap":case"itemscope":case"loop":case"multiple":case"muted":case"nomodule":case"novalidate":case"open":case"readonly":case"required":case"reversed":case"selected":case"typemustmatch":r[i.Qc[e.name]||e.name]=!0;break;default:r[i.Qc[e.name]||e.name]=e.value}}))}return r}(m,v),function(e,t,r){var n=c(e).map((function(e,n){return u(e,o(o({},r),{index:n,level:t+1}))})).filter(Boolean);return n.length?n:null}(m.childNodes,h,t));case 3:var g=(null===(r=m.nodeValue)||void 0===r?void 0:r.toString())||"";if(/^\s+$/.test(g)&&!/[\u202F\u00A0]/.test(g))return null;if(!m.parentNode)return g;var b=m.parentNode.nodeName.toLowerCase();return-1!==i.Un.indexOf(b)?(/\S/.test(g)&&console.warn("A textNode is not allowed inside '"+b+"'. Your text \""+g+'" will be ignored'),null):g;case 8:default:return null}}function s(e,t){return void 0===t&&(t={}),"string"==typeof e?function(e,t){if(void 0===t&&(t={}),!e||"string"!=typeof e)return null;var r=t.nodeOnly,n=void 0!==r&&r,i=t.selector,o=void 0===i?"body > *":i,a=t.type,c=void 0===a?"text/html":a;try{var s=(new DOMParser).parseFromString(e,c).querySelector(o);if(!(s instanceof Node))throw new Error("Error parsing input");return n?s:u(s,t)}catch(l){}return null}(e,t):e instanceof Node?u(e,t):null}},8126:function(e,t,r){"use strict";r.d(t,{Q_:function(){return i},Nq:function(){return o},Q6:function(){return a},O1:function(){return c}});var n=r(37941),i={FAILED:"failed",LOADED:"loaded",LOADING:"loading",PENDING:"pending",READY:"ready",UNSUPPORTED:"unsupported"};function o(){return n.canUseDOM}function a(){return function(){if(!document)return!1;var e=document.createElement("div");return e.innerHTML="<svg />",!!e.firstChild&&"http://www.w3.org/2000/svg"===e.firstChild.namespaceURI}()&&"undefined"!=typeof window&&null!==window}function c(e){for(var t,r="abcdefghijklmnopqrstuvwxyz",n=""+r+r.toUpperCase()+"1234567890",i="",o=0;o<e;o++)i+=(t=n)[Math.floor(Math.random()*t.length)];return i}},49092:function(e,t,r){"use strict";var n,i=r(89526),o=r(88041),a=r(8126),c=(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(){return(u=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},s=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r},l=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(c){i={error:c}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},f=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(l(arguments[t]));return e},p=Object.create(null),d=function(e){function t(t){var r=e.call(this,t)||this;return r.isActive=!1,r.handleCacheQueue=function(e){"string"!=typeof e?r.handleError(e):r.handleLoad(e)},r.handleLoad=function(e){r.isActive&&r.setState({content:e,status:a.Q_.LOADED},r.getElement)},r.handleError=function(e){var t=r.props.onError,n="Browser does not support SVG"===e.message?a.Q_.UNSUPPORTED:a.Q_.FAILED;r.isActive&&r.setState({status:n},(function(){"function"==typeof t&&t(e)}))},r.request=function(){var e=r.props,t=e.cacheRequests,n=e.src;try{return t&&(p[n]={content:"",status:a.Q_.LOADING,queue:[]}),fetch(n).then((function(e){var t=e.headers.get("content-type"),r=l((t||"").split(/ ?; ?/),1)[0];if(e.status>299)throw new Error("Not found");if(!["image/svg+xml","text/plain"].some((function(e){return r.indexOf(e)>=0})))throw new Error("Content type isn't valid: "+r);return e.text()})).then((function(e){if(r.handleLoad(e),t){var i=p[n];i&&(i.content=e,i.status=a.Q_.LOADED,i.queue=i.queue.filter((function(t){return t(e),!1})))}})).catch((function(e){if(r.handleError(e),t){var i=p[n];i&&(i.queue.forEach((function(t){t(e)})),delete p[n])}}))}catch(i){return r.handleError(new Error(i.message))}},r.state={content:"",element:null,hasCache:!!t.cacheRequests&&!!p[t.src],status:a.Q_.PENDING},r.hash=t.uniqueHash||(0,a.O1)(8),r}return c(t,e),t.prototype.componentDidMount=function(){if(this.isActive=!0,(0,a.Nq)()){var e=this.state.status,t=this.props.src;try{if(e===a.Q_.PENDING){if(!(0,a.Q6)())throw new Error("Browser does not support SVG");if(!t)throw new Error("Missing src");this.load()}}catch(r){this.handleError(r)}}},t.prototype.componentDidUpdate=function(e,t){if((0,a.Nq)()){var r=this.state,n=r.hasCache,i=r.status,o=this.props,c=o.onLoad,u=o.src;if(t.status!==a.Q_.READY&&i===a.Q_.READY&&c&&c(u,n),e.src!==u){if(!u)return void this.handleError(new Error("Missing src"));this.load()}}},t.prototype.componentWillUnmount=function(){this.isActive=!1},t.prototype.processSVG=function(){var e=this.state.content,t=this.props.preProcessor;return t?t(e):e},t.prototype.updateSVGAttributes=function(e){var t=this,r=this.props,n=r.baseURL,i=void 0===n?"":n,o=r.uniquifyIDs,a=["id","href","xlink:href","xlink:role","xlink:arcrole"],c=["href","xlink:href"];return o?(f(e.children).map((function(e){if(e.attributes&&e.attributes.length){var r=Object.values(e.attributes).map((function(e){var r=e,n=e.value.match(/url\((.*?)\)/);return n&&n[1]&&(r.value=e.value.replace(n[0],"url("+i+n[1]+"__"+t.hash+")")),r}));a.forEach((function(e){var n,i,o=r.find((function(t){return t.name===e}));!o||(n=e,i=o.value,c.indexOf(n)>=0&&i&&i.indexOf("#")<0)||(o.value=o.value+"__"+t.hash)}))}return e.children.length?t.updateSVGAttributes(e):e})),e):e},t.prototype.getNode=function(){var e=this.props,t=e.description,r=e.title;try{var n=this.processSVG(),i=(0,o.ZP)(n,{nodeOnly:!0});if(!(i&&i instanceof SVGSVGElement))throw new Error("Could not convert the src to a DOM Node");var a=this.updateSVGAttributes(i);if(t){var c=a.querySelector("desc");c&&c.parentNode&&c.parentNode.removeChild(c);var u=document.createElement("desc");u.innerHTML=t,a.prepend(u)}if(r){var s=a.querySelector("title");s&&s.parentNode&&s.parentNode.removeChild(s);var l=document.createElement("title");l.innerHTML=r,a.prepend(l)}return a}catch(f){return this.handleError(f)}},t.prototype.getElement=function(){try{var e=this.getNode(),t=(0,o.ZP)(e);if(!t||!i.isValidElement(t))throw new Error("Could not convert the src to a React element");this.setState({element:t,status:a.Q_.READY})}catch(r){this.handleError(new Error(r.message))}},t.prototype.load=function(){var e=this;this.isActive&&this.setState({content:"",element:null,status:a.Q_.LOADING},(function(){var t=e.props,r=t.cacheRequests,n=t.src,i=r&&p[n];if(i)i.status===a.Q_.LOADING?i.queue.push(e.handleCacheQueue):i.status===a.Q_.LOADED&&e.handleLoad(i.content);else{var o,c=n.match(/data:image\/svg[^,]*?(;base64)?,(.*)/);c?o=c[1]?atob(c[2]):decodeURIComponent(c[2]):n.indexOf("<svg")>=0&&(o=n),o?e.handleLoad(o):e.request()}}))},t.prototype.render=function(){var e=this.state,t=e.element,r=e.status,n=this.props,o=(n.baseURL,n.cacheRequests,n.children),c=void 0===o?null:o,l=(n.description,n.innerRef),f=n.loader,p=void 0===f?null:f,d=(n.onError,n.onLoad,n.preProcessor,n.src,n.title,n.uniqueHash,n.uniquifyIDs,s(n,["baseURL","cacheRequests","children","description","innerRef","loader","onError","onLoad","preProcessor","src","title","uniqueHash","uniquifyIDs"]));return(0,a.Nq)()?t?i.cloneElement(t,u({ref:l},d)):[a.Q_.UNSUPPORTED,a.Q_.FAILED].indexOf(r)>-1?c:p:p},t.defaultProps={cacheRequests:!0,uniquifyIDs:!1},t}(i.PureComponent);t.Z=d},19018:function(e,t,r){"use strict";function n(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function i(e){this.setState(function(t){var r=this.constructor.getDerivedStateFromProps(e,t);return null!=r?r:null}.bind(this))}function o(e,t){try{var r=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var r=null,a=null,c=null;if("function"==typeof t.componentWillMount?r="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(r="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?c="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(c="UNSAFE_componentWillUpdate"),null!==r||null!==a||null!==c){var u=e.displayName||e.name,s="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+u+" uses "+s+" but also contains the following legacy lifecycles:"+(null!==r?"\n "+r:"")+(null!==a?"\n "+a:"")+(null!==c?"\n "+c:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=n,t.componentWillReceiveProps=i),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=o;var l=t.componentDidUpdate;t.componentDidUpdate=function(e,t,r){var n=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:r;l.call(this,e,t,n)}}return e}r.r(t),r.d(t,{polyfill:function(){return a}}),n.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},81668:function(e,t,r){"use strict";var n=r(7402),i=r(89526),o=r(73961),a=r(18492),c=r(7362);function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function s(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var l=u(n),f=s(i),p=u(a),d=u(c),h=function(e,t){return(h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function m(e,t){function r(){this.constructor=e}h(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var v=function(){return(v=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function y(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}var g=function(e,t,r,n){switch(t){case"debounce":return p.default(e,r,n);case"throttle":return d.default(e,r,n);default:return e}},b=function(e){return"function"==typeof e},w=function(){return"undefined"==typeof window},x=function(e){return e instanceof Element||e instanceof HTMLDocument},E=function(e,t,r,n){return function(i){var o=i.width,a=i.height;t((function(t){return t.width===o&&t.height===a||t.width===o&&!n||t.height===a&&!r?t:(e&&b(e)&&e(o,a),{width:o,height:a})}))}},I=function(e){function t(t){var r=e.call(this,t)||this;r.cancelHandler=function(){r.resizeHandler&&r.resizeHandler.cancel&&(r.resizeHandler.cancel(),r.resizeHandler=null)},r.attachObserver=function(){var e=r.props,t=e.targetRef,n=e.observerOptions;if(!w()){t&&t.current&&(r.targetRef.current=t.current);var i=r.getElement();i&&(r.observableElement&&r.observableElement===i||(r.observableElement=i,r.resizeObserver.observe(i,n)))}},r.getElement=function(){var e=r.props,t=e.querySelector,n=e.targetDomEl;if(w())return null;if(t)return document.querySelector(t);if(n&&x(n))return n;if(r.targetRef&&x(r.targetRef.current))return r.targetRef.current;var i=o.findDOMNode(r);if(!i)return null;switch(r.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return i;default:return i.parentElement}},r.createResizeHandler=function(e){var t=r.props,n=t.handleWidth,i=void 0===n||n,o=t.handleHeight,a=void 0===o||o,c=t.onResize;if(i||a){var u=E(c,r.setState.bind(r),i,a);e.forEach((function(e){var t=e&&e.contentRect||{},n=t.width,i=t.height;!r.skipOnMount&&!w()&&u({width:n,height:i}),r.skipOnMount=!1}))}},r.getRenderType=function(){var e=r.props,t=e.render,n=e.children;return b(t)?"renderProp":b(n)?"childFunction":i.isValidElement(n)?"child":Array.isArray(n)?"childArray":"parent"};var n=t.skipOnMount,a=t.refreshMode,c=t.refreshRate,u=void 0===c?1e3:c,s=t.refreshOptions;return r.state={width:void 0,height:void 0},r.skipOnMount=n,r.targetRef=i.createRef(),r.observableElement=null,w()||(r.resizeHandler=g(r.createResizeHandler,a,u,s),r.resizeObserver=new l.default(r.resizeHandler)),r}return m(t,e),t.prototype.componentDidMount=function(){this.attachObserver()},t.prototype.componentDidUpdate=function(){this.attachObserver()},t.prototype.componentWillUnmount=function(){w()||(this.resizeObserver.disconnect(),this.cancelHandler())},t.prototype.render=function(){var e,t=this.props,r=t.render,n=t.children,o=t.nodeType,a=void 0===o?"div":o,c=this.state,u={width:c.width,height:c.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return r&&r(u);case"childFunction":return(e=n)(u);case"child":if((e=n).type&&"string"==typeof e.type){var s=y(u,["targetRef"]);return i.cloneElement(e,s)}return i.cloneElement(e,u);case"childArray":return(e=n).map((function(e){return!!e&&i.cloneElement(e,u)}));default:return f.createElement(a,null)}},t}(i.PureComponent);var S=w()?i.useEffect:i.useLayoutEffect;t.ZP=I},83314:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},58296:function(e,t,r){"use strict";var n=r(83314);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,i.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var i=n(r(7459));e.exports=t.default},7459:function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},51793:function(e){"use strict";function t(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,r){e.classList?e.classList.remove(r):"string"==typeof e.className?e.className=t(e.className,r):e.setAttribute("class",t(e.className&&e.className.baseVal||"",r))}},30062:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;!function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}t.default=e}(r(2652));var n=c(r(58296)),i=c(r(51793)),o=c(r(89526)),a=c(r(30488));r(25160);function c(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var s=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,n.default)(e,t)}))},l=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,i.default)(e,t)}))},f=function(e){var t,r;function n(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this).onEnter=function(e,r){var n=t.getClassNames(r?"appear":"enter").className;t.removeClasses(e,"exit"),s(e,n),t.props.onEnter&&t.props.onEnter(e,r)},t.onEntering=function(e,r){var n=t.getClassNames(r?"appear":"enter").activeClassName;t.reflowAndAddClass(e,n),t.props.onEntering&&t.props.onEntering(e,r)},t.onEntered=function(e,r){var n=t.getClassNames("appear").doneClassName,i=t.getClassNames("enter").doneClassName,o=r?n+" "+i:i;t.removeClasses(e,r?"appear":"enter"),s(e,o),t.props.onEntered&&t.props.onEntered(e,r)},t.onExit=function(e){var r=t.getClassNames("exit").className;t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),s(e,r),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var r=t.getClassNames("exit").activeClassName;t.reflowAndAddClass(e,r),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var r=t.getClassNames("exit").doneClassName;t.removeClasses(e,"exit"),s(e,r),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var r=t.props.classNames,n="string"==typeof r,i=n?(n&&r?r+"-":"")+e:r[e];return{className:i,activeClassName:n?i+"-active":r[e+"Active"],doneClassName:n?i+"-done":r[e+"Done"]}},t}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var i=n.prototype;return i.removeClasses=function(e,t){var r=this.getClassNames(t),n=r.className,i=r.activeClassName,o=r.doneClassName;n&&l(e,n),i&&l(e,i),o&&l(e,o)},i.reflowAndAddClass=function(e,t){t&&(e&&e.scrollTop,s(e,t))},i.render=function(){var e=u({},this.props);return delete e.classNames,o.default.createElement(a.default,u({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},n}(o.default.Component);f.defaultProps={classNames:""},f.propTypes={};var p=f;t.default=p,e.exports=t.default},43951:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;a(r(2652));var n=a(r(89526)),i=r(73961),o=a(r(42609));function a(e){return e&&e.__esModule?e:{default:e}}var c=function(e){var t,r;function a(){for(var t,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this).handleEnter=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onEnter",0,r)},t.handleEntering=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onEntering",0,r)},t.handleEntered=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onEntered",0,r)},t.handleExit=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onExit",1,r)},t.handleExiting=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onExiting",1,r)},t.handleExited=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.handleLifecycle("onExited",1,r)},t}r=e,(t=a).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var c=a.prototype;return c.handleLifecycle=function(e,t,r){var o,a=this.props.children,c=n.default.Children.toArray(a)[t];c.props[e]&&(o=c.props)[e].apply(o,r),this.props[e]&&this.props[e]((0,i.findDOMNode)(this))},c.render=function(){var e=this.props,t=e.children,r=e.in,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,["children","in"]),a=n.default.Children.toArray(t),c=a[0],u=a[1];return delete i.onEnter,delete i.onEntering,delete i.onEntered,delete i.onExit,delete i.onExiting,delete i.onExited,n.default.createElement(o.default,i,r?n.default.cloneElement(c,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):n.default.cloneElement(u,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},a}(n.default.Component);c.propTypes={};var u=c;t.default=u,e.exports=t.default},30488:function(e,t,r){"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}(r(2652)),i=c(r(89526)),o=c(r(73961)),a=r(19018);r(25160);function c(e){return e&&e.__esModule?e:{default:e}}var u="unmounted";t.UNMOUNTED=u;var s="exited";t.EXITED=s;var l="entering";t.ENTERING=l;var f="entered";t.ENTERED=f;var p="exiting";t.EXITING=p;var d=function(e){var t,r;function n(t,r){var n;n=e.call(this,t,r)||this;var i,o=r.transitionGroup,a=o&&!o.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?a?(i=s,n.appearStatus=l):i=f:i=t.unmountOnExit||t.mountOnEnter?u:s,n.state={status:i},n.nextCallback=null,n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var a=n.prototype;return a.getChildContext=function(){return{transitionGroup:null}},n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===u?{status:s}:null},a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==l&&r!==f&&(t=l):r!==l&&r!==f||(t=p)}this.updateStatus(!1,t)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},a.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var r=o.default.findDOMNode(this);t===l?this.performEnter(r,e):this.performExit(r)}else this.props.unmountOnExit&&this.state.status===s&&this.setState({status:u})},a.performEnter=function(e,t){var r=this,n=this.props.enter,i=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,o=this.getTimeouts(),a=i?o.appear:o.enter;t||n?(this.props.onEnter(e,i),this.safeSetState({status:l},(function(){r.props.onEntering(e,i),r.onTransitionEnd(e,a,(function(){r.safeSetState({status:f},(function(){r.props.onEntered(e,i)}))}))}))):this.safeSetState({status:f},(function(){r.props.onEntered(e)}))},a.performExit=function(e){var t=this,r=this.props.exit,n=this.getTimeouts();r?(this.props.onExit(e),this.safeSetState({status:p},(function(){t.props.onExiting(e),t.onTransitionEnd(e,n.exit,(function(){t.safeSetState({status:s},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:s},(function(){t.props.onExited(e)}))},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},a.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},a.onTransitionEnd=function(e,t,r){this.setNextCallback(r);var n=null==t&&!this.props.addEndListener;e&&!n?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},a.render=function(){var e=this.state.status;if(e===u)return null;var t=this.props,r=t.children,n=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(t,["children"]);if(delete n.in,delete n.mountOnEnter,delete n.unmountOnExit,delete n.appear,delete n.enter,delete n.exit,delete n.timeout,delete n.addEndListener,delete n.onEnter,delete n.onEntering,delete n.onEntered,delete n.onExit,delete n.onExiting,delete n.onExited,"function"==typeof r)return r(e,n);var o=i.default.Children.only(r);return i.default.cloneElement(o,n)},n}(i.default.Component);function h(){}d.contextTypes={transitionGroup:n.object},d.childContextTypes={transitionGroup:function(){}},d.propTypes={},d.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},d.UNMOUNTED=0,d.EXITED=1,d.ENTERING=2,d.ENTERED=3,d.EXITING=4;var m=(0,a.polyfill)(d);t.default=m},42609:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=c(r(2652)),i=c(r(89526)),o=r(19018),a=r(44177);function c(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var l=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},f=function(e){var t,r;function n(t,r){var n,i=(n=e.call(this,t,r)||this).handleExited.bind(s(s(n)));return n.state={handleExited:i,firstRender:!0},n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},o.componentDidMount=function(){this.appeared=!0,this.mounted=!0},o.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(e,t){var r=t.children,n=t.handleExited;return{children:t.firstRender?(0,a.getInitialChildMapping)(e,n):(0,a.getNextChildMapping)(e,r,n),firstRender:!1}},o.handleExited=function(e,t){var r=(0,a.getChildMapping)(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=u({},t.children);return delete r[e.key],{children:r}})))},o.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,["component","childFactory"]),o=l(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?o:i.default.createElement(t,n,o)},n}(i.default.Component);f.childContextTypes={transitionGroup:n.default.object.isRequired},f.propTypes={},f.defaultProps={component:"div",childFactory:function(e){return e}};var p=(0,o.polyfill)(f);t.default=p,e.exports=t.default},33092:function(e,t,r){"use strict";var n=c(r(30062)),i=c(r(43951)),o=c(r(42609)),a=c(r(30488));function c(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:a.default,TransitionGroup:o.default,ReplaceTransition:i.default,CSSTransition:n.default}},44177:function(e,t,r){"use strict";t.__esModule=!0,t.getChildMapping=i,t.mergeChildMappings=o,t.getInitialChildMapping=function(e,t){return i(e.children,(function(r){return(0,n.cloneElement)(r,{onExited:t.bind(null,r),in:!0,appear:a(r,"appear",e),enter:a(r,"enter",e),exit:a(r,"exit",e)})}))},t.getNextChildMapping=function(e,t,r){var c=i(e.children),u=o(t,c);return Object.keys(u).forEach((function(i){var o=u[i];if((0,n.isValidElement)(o)){var s=i in t,l=i in c,f=t[i],p=(0,n.isValidElement)(f)&&!f.props.in;!l||s&&!p?l||!s||p?l&&s&&(0,n.isValidElement)(f)&&(u[i]=(0,n.cloneElement)(o,{onExited:r.bind(null,o),in:f.props.in,exit:a(o,"exit",e),enter:a(o,"enter",e)})):u[i]=(0,n.cloneElement)(o,{in:!1}):u[i]=(0,n.cloneElement)(o,{onExited:r.bind(null,o),in:!0,exit:a(o,"exit",e),enter:a(o,"enter",e)})}})),u};var n=r(89526);function i(e,t){var r=Object.create(null);return e&&n.Children.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&(0,n.isValidElement)(e)?t(e):e}(e)})),r}function o(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var c={};for(var u in t){if(i[u])for(n=0;n<i[u].length;n++){var s=i[u][n];c[i[u][n]]=r(s)}c[u]=r(u)}for(n=0;n<o.length;n++)c[o[n]]=r(o[n]);return c}function a(e,t,r){return null!=r[t]?r[t]:e.props[t]}},25160:function(e,t,r){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var n;(n=r(2652))&&n.__esModule;t.timeoutsShape=null;t.classNamesShape=null},47750:function(e,t,r){"use strict";var n,i=r(33992),o=(n=i)&&n.__esModule?n:{default:n};Number.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},t.Z=o.default},33992:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=c(r(89526)),o=c(r(2652)),a=c(r(10));function c(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var l=function(e){function t(){var e,r,n;u(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=n=s(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),n.state={highestStarHovered:-1/0},n.fillId="starGrad"+Math.random().toFixed(15).slice(2),n.hoverOverStar=function(e){return function(){n.setState({highestStarHovered:e})}},n.unHoverOverStar=function(){n.setState({highestStarHovered:-1/0})},s(n,r)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"stopColorStyle",value:function(e){var t={stopColor:e,stopOpacity:"1"};return this.props.ignoreInlineStyles?{}:t}},{key:"render",value:function(){var e=this.props,t=e.starRatedColor,r=e.starEmptyColor;return i.default.createElement("div",{className:"star-ratings",title:this.titleText,style:this.starRatingsStyle},i.default.createElement("svg",{className:"star-grad",style:this.starGradientStyle},i.default.createElement("defs",null,i.default.createElement("linearGradient",{id:this.fillId,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},i.default.createElement("stop",{offset:"0%",className:"stop-color-first",style:this.stopColorStyle(t)}),i.default.createElement("stop",{offset:this.offsetValue,className:"stop-color-first",style:this.stopColorStyle(t)}),i.default.createElement("stop",{offset:this.offsetValue,className:"stop-color-final",style:this.stopColorStyle(r)}),i.default.createElement("stop",{offset:"100%",className:"stop-color-final",style:this.stopColorStyle(r)})))),this.renderStars)}},{key:"starRatingsStyle",get:function(){return this.props.ignoreInlineStyles?{}:{position:"relative",boxSizing:"border-box",display:"inline-block"}}},{key:"starGradientStyle",get:function(){return this.props.ignoreInlineStyles?{}:{position:"absolute",zIndex:"0",width:"0",height:"0",visibility:"hidden"}}},{key:"titleText",get:function(){var e=this.props,t=e.typeOfWidget,r=e.rating,n=this.state.highestStarHovered,i=n>0?n:r,o=parseFloat(i.toFixed(2)).toString();Number.isInteger(i)&&(o=String(i));var a=t+"s";return"1"===o&&(a=t),o+" "+a}},{key:"offsetValue",get:function(){var e=this.props.rating,t="0%";Number.isInteger(e)||(t=e.toFixed(2).split(".")[1].slice(0,2)+"%");return t}},{key:"renderStars",get:function(){var e=this,t=this.props,r=t.changeRating,n=t.rating,o=t.numberOfStars,c=t.starDimension,u=t.starSpacing,s=t.starRatedColor,l=t.starEmptyColor,f=t.starHoverColor,p=t.gradientPathName,d=t.ignoreInlineStyles,h=t.svgIconPath,m=t.svgIconViewBox,v=t.name,y=this.state.highestStarHovered;return Array.apply(null,Array(o)).map((function(t,g){var b=g+1,w=b<=n,x=y>0,E=b<=y,I=b===y,S=b>n&&b-1<n,M=1===b,O=b===o;return i.default.createElement(a.default,{key:b,fillId:e.fillId,changeRating:r?function(){return r(b,v)}:null,hoverOverStar:r?e.hoverOverStar(b):null,unHoverOverStar:r?e.unHoverOverStar:null,isStarred:w,isPartiallyFullStar:S,isHovered:E,hoverMode:x,isCurrentHoveredStar:I,isFirstStar:M,isLastStar:O,starDimension:c,starSpacing:u,starHoverColor:f,starRatedColor:s,starEmptyColor:l,gradientPathName:p,ignoreInlineStyles:d,svgIconPath:h,svgIconViewBox:m})}))}}]),t}(i.default.Component);l.propTypes={rating:o.default.number.isRequired,numberOfStars:o.default.number.isRequired,changeRating:o.default.func,starHoverColor:o.default.string.isRequired,starRatedColor:o.default.string.isRequired,starEmptyColor:o.default.string.isRequired,starDimension:o.default.string.isRequired,starSpacing:o.default.string.isRequired,gradientPathName:o.default.string.isRequired,ignoreInlineStyles:o.default.bool.isRequired,svgIconPath:o.default.string.isRequired,svgIconViewBox:o.default.string.isRequired,name:o.default.string},l.defaultProps={rating:0,typeOfWidget:"Star",numberOfStars:5,changeRating:null,starHoverColor:"rgb(230, 67, 47)",starRatedColor:"rgb(109, 122, 130)",starEmptyColor:"rgb(203, 211, 227)",starDimension:"50px",starSpacing:"7px",gradientPathName:"",ignoreInlineStyles:!1,svgIconPath:"m25,1 6,17h18l-14,11 5,17-15-10-15,10 5-17-14-11h18z",svgIconViewBox:"0 0 51 48"},t.default=l},10:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=c(r(89526)),o=c(r(60204)),a=c(r(2652));function c(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var l=function(e){function t(){return u(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"render",value:function(){var e=this.props,t=e.changeRating,r=e.hoverOverStar,n=e.unHoverOverStar,o=e.svgIconViewBox,a=e.svgIconPath;return i.default.createElement("div",{className:"star-container",style:this.starContainerStyle,onMouseEnter:r,onMouseLeave:n,onClick:t},i.default.createElement("svg",{viewBox:o,className:this.starClasses,style:this.starSvgStyle},i.default.createElement("path",{className:"star",style:this.pathStyle,d:a})))}},{key:"starContainerStyle",get:function(){var e=this.props,t=e.changeRating,r=e.starSpacing,n=e.isFirstStar,i=e.isLastStar;return e.ignoreInlineStyles?{}:{position:"relative",display:"inline-block",verticalAlign:"middle",paddingLeft:n?void 0:r,paddingRight:i?void 0:r,cursor:t?"pointer":void 0}}},{key:"starSvgStyle",get:function(){var e=this.props,t=e.ignoreInlineStyles,r=e.isCurrentHoveredStar,n=e.starDimension;return t?{}:{width:n,height:n,transition:"transform .2s ease-in-out",transform:r?"scale(1.1)":void 0}}},{key:"pathStyle",get:function(){var e=this.props,t=e.isStarred,r=e.isPartiallyFullStar,n=e.isHovered,i=e.hoverMode,o=e.starEmptyColor,a=e.starRatedColor,c=e.starHoverColor,u=e.gradientPathName,s=e.fillId,l=void 0;return l=i?n?c:o:r?"url('"+u+"#"+s+"')":t?a:o,e.ignoreInlineStyles?{}:{fill:l,transition:"fill .2s ease-in-out"}}},{key:"starClasses",get:function(){var e=this.props,t=e.isSelected,r=e.isPartiallyFullStar,n=e.isHovered,i=e.isCurrentHoveredStar,a=e.ignoreInlineStyles,c=(0,o.default)({"widget-svg":!0,"widget-selected":t,"multi-widget-selected":r,hovered:n,"current-hovered":i});return a?{}:c}}]),t}(i.default.Component);l.propTypes={fillId:a.default.string.isRequired,changeRating:a.default.func,hoverOverStar:a.default.func,unHoverOverStar:a.default.func,isStarred:a.default.bool.isRequired,isPartiallyFullStar:a.default.bool.isRequired,isHovered:a.default.bool.isRequired,hoverMode:a.default.bool.isRequired,isCurrentHoveredStar:a.default.bool.isRequired,isFirstStar:a.default.bool.isRequired,isLastStar:a.default.bool.isRequired,starDimension:a.default.string.isRequired,starSpacing:a.default.string.isRequired,starHoverColor:a.default.string.isRequired,starRatedColor:a.default.string.isRequired,starEmptyColor:a.default.string.isRequired,gradientPathName:a.default.string.isRequired,ignoreInlineStyles:a.default.bool.isRequired,svgIconPath:a.default.string.isRequired,svgIconViewBox:a.default.string.isRequired},t.default=l},60204:function(e,t){var r;
37
  /*!
38
  Copyright (c) 2018 Jed Watson.
39
  Licensed under the MIT License (MIT), see
dist/admin-faq.css CHANGED
@@ -2,7 +2,7 @@
2
 
3
  .wprm-recipe-container{outline:none}.wprm-recipe{overflow:hidden;zoom:1;text-align:left;clear:both}.wprm-recipe *{box-sizing:border-box}.wprm-recipe ol,.wprm-recipe ul{-webkit-margin-before:0;-webkit-margin-after:0;-webkit-padding-start:0;margin:0;padding:0}.wprm-recipe li{font-size:1em;margin:0 0 0 32px;padding:0}.wprm-recipe p{font-size:1em;margin:0;padding:0}.wprm-recipe li,.wprm-recipe li.wprm-recipe-instruction{list-style-position:outside}.wprm-recipe li:before{display:none}.wprm-recipe h1,.wprm-recipe h2,.wprm-recipe h3,.wprm-recipe h4,.wprm-recipe h5,.wprm-recipe h6{clear:none;font-variant:normal;text-transform:none;letter-spacing:normal;margin:0;padding:0}.wprm-recipe a.wprm-recipe-link,.wprm-recipe a.wprm-recipe-link:hover{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.wprm-recipe .wprm-nutrition-label{margin-top:10px}body:not(.wprm-print) .wprm-recipe p:first-letter{font-size:inherit;line-height:inherit;color:inherit;margin:inherit;padding:inherit;font-family:inherit}.rtl .wprm-recipe{text-align:right}.rtl .wprm-recipe li{margin:0 32px 0 0}.wprm-screen-reader-text{border:0;clip:rect(1px, 1px, 1px, 1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute !important;width:1px;word-wrap:normal !important}
4
 
5
- .wprm-recipe-author-with-image{display:inline-flex;align-items:center}.wprm-recipe-author-with-image .wprm-recipe-author-image{line-height:0;margin-right:10px}.wprm-call-to-action.wprm-call-to-action-simple{margin-top:10px;padding:5px 10px;display:flex;justify-content:center;align-items:middle}.wprm-call-to-action.wprm-call-to-action-simple .wprm-call-to-action-icon{font-size:2.2em;margin:5px 0.5em 5px 0}.wprm-call-to-action.wprm-call-to-action-simple .wprm-call-to-action-icon svg{margin-top:0}.wprm-call-to-action.wprm-call-to-action-simple .wprm-call-to-action-text-container{margin:5px 0}.wprm-call-to-action.wprm-call-to-action-simple .wprm-call-to-action-text-container .wprm-call-to-action-header{display:block;font-weight:bold;font-size:1.3em}@media all and (max-width: 450px){.wprm-call-to-action.wprm-call-to-action-simple{flex-wrap:wrap}.wprm-call-to-action.wprm-call-to-action-simple .wprm-call-to-action-text-container{text-align:center}}.wprm-recipe-block-container-inline{display:inline-block;margin-right:1.2em}.rtl .wprm-recipe-block-container-inline{margin-right:0;margin-left:1.2em}.wprm-recipe-block-container-separate{display:block}.wprm-recipe-block-container-separated{display:block}.wprm-recipe-block-container-separated .wprm-recipe-details-label{display:block}.wprm-recipe-block-container-columns{display:block}.wprm-recipe-block-container-columns .wprm-recipe-details-label{display:inline-block;min-width:130px}.wprm-recipe-details-container-inline{display:inline}.wprm-recipe-details-container-table{display:flex;border:1px dotted #666;padding:5px;margin:5px 0}.wprm-recipe-details-container-table .wprm-recipe-block-container-table{flex:1;display:flex;flex-direction:column;text-align:center}.wprm-recipe-details-container-table.wprm-recipe-table-borders-top-bottom{border-left:none !important;border-right:none !important}.wprm-recipe-details-container-table.wprm-recipe-table-borders-left-right{border-top:none !important;border-bottom:none !important}.wprm-recipe-details-container-table.wprm-recipe-table-borders-top{border-left:none !important;border-right:none !important;border-bottom:none !important}.wprm-recipe-details-container-table.wprm-recipe-table-borders-bottom{border-left:none !important;border-right:none !important;border-top:none !important}.wprm-recipe-details-container-table.wprm-recipe-table-borders-left{border-right:none !important;border-top:none !important;border-bottom:none !important}.wprm-recipe-details-container-table.wprm-recipe-table-borders-right{border-left:none !important;border-top:none !important;border-bottom:none !important}@media all and (min-width: 451px){.wprm-recipe-table-borders-empty .wprm-recipe-block-container-table{border-top:none !important;border-bottom:none !important;border-left:none !important;border-right:none !important}.wprm-recipe-table-borders-inside .wprm-recipe-block-container-table{border-top:none !important;border-bottom:none !important;border-right:none !important}.wprm-recipe-table-borders-inside .wprm-recipe-block-container-table:first-child{border-left:none !important}.rtl .wprm-recipe-table-borders-inside .wprm-recipe-block-container-table{border-left:none !important}.rtl .wprm-recipe-table-borders-inside .wprm-recipe-block-container-table:first-child{border-right:none !important}}@media all and (max-width: 450px){.wprm-recipe-details-container-table{display:block;border:none !important;padding:0;margin:5px 0}.wprm-recipe-details-container-table.wprm-recipe-table-borders-none{display:flex;flex-wrap:wrap}.wprm-recipe-details-container-table.wprm-recipe-table-borders-none .wprm-recipe-block-container-table{min-width:120px;max-width:100%}.wprm-recipe-details-container-table .wprm-recipe-block-container-table{padding:5px}.wprm-recipe-details-container-table.wprm-recipe-table-borders-all .wprm-recipe-block-container-table:not(:first-child){border-top:none !important}.wprm-recipe-details-container-table.wprm-recipe-table-borders-top-bottom .wprm-recipe-block-container-table{border-left:none !important;border-right:none !important}.wprm-recipe-details-container-table.wprm-recipe-table-borders-top-bottom .wprm-recipe-block-container-table:not(:first-child){border-top:none !important}.wprm-recipe-details-container-table.wprm-recipe-table-borders-left-right .wprm-recipe-block-container-table{border-top:none !important;border-bottom:none !important}.wprm-recipe-details-container-table.wprm-recipe-table-borders-top .wprm-recipe-block-container-table{border-bottom:none !important;border-left:none !important;border-right:none !important}.wprm-recipe-details-container-table.wprm-recipe-table-borders-top .wprm-recipe-block-container-table:not(:first-child){border-top:none !important}.wprm-recipe-details-container-table.wprm-recipe-table-borders-bottom .wprm-recipe-block-container-table{border-top:none !important;border-left:none !important;border-right:none !important}.wprm-recipe-details-container-table.wprm-recipe-table-borders-bottom .wprm-recipe-block-container-table:not(:last-child){border-bottom:none !important}.wprm-recipe-details-container-table.wprm-recipe-table-borders-left .wprm-recipe-block-container-table{border-top:none !important;border-bottom:none !important;border-right:none !important}.wprm-recipe-details-container-table.wprm-recipe-table-borders-right .wprm-recipe-block-container-table{border-top:none !important;border-bottom:none !important;border-left:none !important}.wprm-recipe-block-container-columns .wprm-recipe-details-label{min-width:0;margin-right:0.4em}}.wprm-recipe-details-unit{font-size:0.8em}@media only screen and (max-width: 600px){.wprm-recipe-details-unit{font-size:1em}}.wprm-container-columns-spaced,.wprm-container-columns-spaced-middle{display:flex;flex-wrap:wrap;justify-content:space-between}.wprm-container-columns-spaced.wprm-container-columns-spaced-middle,.wprm-container-columns-spaced-middle.wprm-container-columns-spaced-middle{align-items:center}.wprm-container-columns-spaced>*,.wprm-container-columns-spaced-middle>*{flex:1}.wprm-container-columns-spaced.wprm-container-columns-gutter,.wprm-container-columns-spaced-middle.wprm-container-columns-gutter{margin-left:-8px;margin-right:-8px}.wprm-container-columns-spaced.wprm-container-columns-gutter>*,.wprm-container-columns-spaced-middle.wprm-container-columns-gutter>*{margin-left:8px !important;margin-right:8px !important}@media all and (max-width: 450px){.wprm-container-columns-spaced,.wprm-container-columns-spaced-middle{display:block}.wprm-container-columns-spaced.wprm-container-columns-gutter>*,.wprm-container-columns-spaced-middle.wprm-container-columns-gutter>*{margin-bottom:16px !important}}.wprm-container-float-left{float:left;margin:0 10px 10px 0;text-align:center;position:relative;z-index:1}.rtl .wprm-container-float-left{float:right;margin:0 0 10px 10px}.wprm-container-float-right{float:right;margin:0 0 10px 10px;text-align:center;position:relative;z-index:1}.rtl .wprm-container-float-right{float:left;margin:0 10px 10px 0}@media only screen and (max-width: 640px){.wprm-container-float-left,.wprm-container-float-right,.rtl .wprm-container-float-left,.rtl .wprm-container-float-right{float:none;margin-left:0;margin-right:0}}.wprm-icon-decoration-line,.wprm-header-decoration-line{display:flex;flex-wrap:wrap;align-items:center}.wprm-icon-decoration-line.wprm-align-left .wprm-decoration-line,.wprm-header-decoration-line.wprm-align-left .wprm-decoration-line{margin-left:15px}.wprm-icon-decoration-line.wprm-align-right .wprm-decoration-line,.wprm-header-decoration-line.wprm-align-right .wprm-decoration-line{margin-right:15px}.wprm-icon-decoration-line.wprm-align-center .wprm-decoration-line:first-child,.wprm-header-decoration-line.wprm-align-center .wprm-decoration-line:first-child{margin-right:15px}.wprm-icon-decoration-line.wprm-align-center .wprm-decoration-line:last-child,.wprm-header-decoration-line.wprm-align-center .wprm-decoration-line:last-child{margin-left:15px}.wprm-decoration-line{flex:auto;height:1px;border-bottom:1px solid black}.wprm-block-text-normal{font-weight:400;font-style:normal;text-transform:none}.wprm-block-text-light{font-weight:300 !important}.wprm-block-text-bold{font-weight:bold !important}.wprm-block-text-italic{font-style:italic !important}.wprm-block-text-uppercase{text-transform:uppercase !important}.wprm-block-text-faded{opacity:0.6}.wprm-block-text-uppercase-faded{text-transform:uppercase !important;opacity:0.6}.wprm-block-text-faded .wprm-block-text-faded{opacity:1}.wprm-block-text-uppercase-faded .wprm-block-text-uppercase-faded{opacity:1}.wprm-align-left{text-align:left}.wprm-align-center{text-align:center}.wprm-align-right{text-align:right}.wprm-recipe-header .wprm-recipe-icon{margin-right:5px}.wprm-recipe-header.wprm-header-has-actions{display:flex;flex-wrap:wrap;align-items:center}.wprm-recipe-header .wprm-unit-conversion-container,.wprm-recipe-header .wprm-recipe-adjustable-servings-container,.wprm-recipe-header .wprm-recipe-media-toggle-container{text-transform:none;font-style:normal;font-weight:normal;opacity:1;font-size:16px}.wprm-recipe-icon svg{display:inline;vertical-align:middle;margin-top:-0.15em;width:1.3em;height:1.3em;overflow:visible}.wprm-icon-shortcode{font-size:16px;height:16px}.wprm-icon-shortcode.wprm-icon-shortcode-inline{display:inline}.wprm-icon-shortcode .wprm-recipe-icon svg{display:inline;vertical-align:middle;margin-top:0;width:1em;height:1em;overflow:visible}.wprm-recipe-image img{display:block;margin:0 auto}.wprm-recipe-image .dpsp-pin-it-wrapper{margin:0 auto}.wprm-recipe-image picture{border:none !important}.wprm-block-image-circle img{border-radius:50%}.wprm-recipe-ingredients-container .wprm-recipe-ingredient-group-name{margin-top:0.8em !important}.wprm-recipe-ingredients-container .wprm-recipe-ingredient-notes-faded{opacity:0.7}.wprm-recipe-ingredients-container .wprm-recipe-ingredient-notes-smaller{font-size:0.8em}.wprm-recipe-ingredients-container .wprm-recipe-ingredient-notes-smaller-faded{opacity:0.7;font-size:0.8em}.wprm-ingredient-style-table-2 li.wprm-recipe-ingredient,.wprm-ingredient-style-table-2-align li.wprm-recipe-ingredient,.wprm-ingredient-style-table-3 li.wprm-recipe-ingredient,.wprm-ingredient-style-table-3-align li.wprm-recipe-ingredient{display:flex}.wprm-ingredient-style-table-2 li.wprm-recipe-ingredient .wprm-recipe-ingredient-amount-unit,.wprm-ingredient-style-table-2-align li.wprm-recipe-ingredient .wprm-recipe-ingredient-amount-unit,.wprm-ingredient-style-table-3 li.wprm-recipe-ingredient .wprm-recipe-ingredient-amount-unit,.wprm-ingredient-style-table-3-align li.wprm-recipe-ingredient .wprm-recipe-ingredient-amount-unit{margin-right:10px;flex-shrink:0}.wprm-ingredient-style-table-2-align .wprm-recipe-ingredient-amount-unit,.wprm-ingredient-style-table-3-align .wprm-recipe-ingredient-amount-unit{text-align:right}.wprm-ingredient-style-table-2 li.wprm-recipe-ingredient .wprm-recipe-ingredient-name-notes,.wprm-ingredient-style-table-2-align li.wprm-recipe-ingredient .wprm-recipe-ingredient-name-notes{flex:1}.wprm-ingredient-style-table-3 li.wprm-recipe-ingredient .wprm-recipe-ingredient-name,.wprm-ingredient-style-table-3-align li.wprm-recipe-ingredient .wprm-recipe-ingredient-name{margin-right:10px}.wprm-ingredient-style-table-3 li.wprm-recipe-ingredient .wprm-recipe-ingredient-notes,.wprm-ingredient-style-table-3-align li.wprm-recipe-ingredient .wprm-recipe-ingredient-notes{flex:1}.wprm-recipe-instructions-container .wprm-recipe-instruction-group-name{margin-top:0.8em !important}.wprm-recipe-instructions-container .wprm-recipe-instruction-text{font-size:1em}.wprm-recipe-instructions-container .wprm-recipe-instruction-media{max-width:100%;margin:5px 0 15px}.wprm-recipe-instructions-container .wprm-recipe-instruction-video iframe{max-width:100%}.wprm-recipe-instruction-ingredients-inline .wprm-recipe-instruction-ingredient{display:inline-block}.wprm-recipe-link{cursor:pointer;text-decoration:none}.wprm-recipe-link.wprm-recipe-link-inline-button{display:inline-block;margin:0 5px 5px 0}.wprm-recipe-link.wprm-recipe-link-button{display:table;margin:5px auto}.wprm-recipe-link.wprm-recipe-link-wide-button{display:block;width:auto;margin:5px 0;text-align:center}.wprm-recipe-link.wprm-recipe-link-button,.wprm-recipe-link.wprm-recipe-link-inline-button,.wprm-recipe-link.wprm-recipe-link-wide-button{border-width:1px;border-style:solid;padding:5px}.wprm-recipe-link.wprm-recipe-link-disabled{cursor:not-allowed}.rtl .wprm-recipe-link.wprm-recipe-link-inline-button{margin:0 0 5px 5px}.wprm-nutrition-label-container-simple .wprm-nutrition-label-text-nutrition-unit{font-size:0.85em}.wprm-nutrition-label-container-grouped{display:flex;flex-wrap:wrap;justify-content:flex-start}.wprm-nutrition-label-container-grouped .wprm-nutrition-label-text-nutrition-container{white-space:nowrap;padding-right:10px}.rtl .wprm-nutrition-label-container-grouped .wprm-nutrition-label-text-nutrition-container{padding-left:10px;padding-right:0}.wprm-recipe-rating{white-space:nowrap}.wprm-recipe-rating svg{vertical-align:middle;margin-top:-0.15em !important;width:1.1em;height:1.1em;margin:0}.wprm-recipe-rating.wprm-recipe-rating-inline .wprm-recipe-rating-details{display:inline-block;margin-left:10px}.wprm-recipe-rating .wprm-recipe-rating-details{font-size:0.8em}.wprm-spacer{display:block !important;background:none !important;font-size:0;line-height:0;width:100%;height:10px}.wprm-spacer+.wprm-spacer{display:none !important}.wprm-recipe-summary .wprm-spacer,.wprm-recipe-instruction-text .wprm-spacer,.wprm-recipe-notes .wprm-spacer{display:block !important}.wprm-toggle-switch-container{display:flex;align-items:center;margin:10px 0}.wprm-toggle-switch-container .wprm-toggle-switch{margin-right:10px}.wprm-toggle-switch-container label{cursor:pointer;margin:0;font-size:1em;flex-shrink:0}.wprm-toggle-switch-container .wprm-prevent-sleep-description{margin-left:10px;font-size:0.8em;line-height:1.1em}.wprm-t
2
 
3
  .wprm-recipe-container{outline:none}.wprm-recipe{overflow:hidden;zoom:1;text-align:left;clear:both}.wprm-recipe *{box-sizing:border-box}.wprm-recipe ol,.wprm-recipe ul{-webkit-margin-before:0;-webkit-margin-after:0;-webkit-padding-start:0;margin:0;padding:0}.wprm-recipe li{font-size:1em;margin:0 0 0 32px;padding:0}.wprm-recipe p{font-size:1em;margin:0;padding:0}.wprm-recipe li,.wprm-recipe li.wprm-recipe-instruction{list-style-position:outside}.wprm-recipe li:before{display:none}.wprm-recipe h1,.wprm-recipe h2,.wprm-recipe h3,.wprm-recipe h4,.wprm-recipe h5,.wprm-recipe h6{clear:none;font-variant:normal;text-transform:none;letter-spacing:normal;margin:0;padding:0}.wprm-recipe a.wprm-recipe-link,.wprm-recipe a.wprm-recipe-link:hover{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.wprm-recipe .wprm-nutrition-label{margin-top:10px}body:not(.wprm-print) .wprm-recipe p:first-letter{font-size:inherit;line-height:inherit;color:inherit;margin:inherit;padding:inherit;font-family:inherit}.rtl .wprm-recipe{text-align:right}.rtl .wprm-recipe li{margin:0 32px 0 0}.wprm-screen-reader-text{border:0;clip:rect(1px, 1px, 1px, 1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute !important;width:1px;word-wrap:normal !important}
4