WP Recipe Maker - Version 8.6.0

Version Description

  • Feature: Add Recipe Roundup Item widgets in Elementor
  • Improvement: Match exact ID when searching for recipes
  • Improvement: Setting to only display roundup items for published recipes
  • Improvement: Better consistency for print URLs
  • Fix: Creating template with some special characters breaking the CSS styling
  • Fix: URL in metadata for some Mediavine videos not working
  • Fix: Ignore caption when putting snippets after first image
  • Fix: Better matching for range keyword during import
  • Fix: Use correct text-domain for block text translations
Download this release

Release Info

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

Code changes from version 8.5.0 to 8.6.0

assets/css/admin/manage/taxonomies.scss CHANGED
@@ -27,6 +27,15 @@
27
  }
28
  }
29
 
 
 
 
 
 
 
 
 
 
30
  .wprm-manage-image-preview {
31
  display: flex;
32
 
27
  }
28
  }
29
 
30
+ .wprm-manage-product-container {
31
+ display: flex;
32
+ align-items: center;
33
+
34
+ a {
35
+ margin-left: 5px;
36
+ }
37
+ }
38
+
39
  .wprm-manage-image-preview {
40
  display: flex;
41
 
assets/css/admin/template/manage.scss CHANGED
@@ -72,6 +72,12 @@
72
  color: darkred;
73
  border-color: darkred;
74
  }
 
 
 
 
 
 
75
  }
76
 
77
  .wprm-manage-templates-template-fields {
72
  color: darkred;
73
  border-color: darkred;
74
  }
75
+
76
+ &.wprm-manage-templates-template-broken {
77
+ border-color: darkred;
78
+ background-color: darkred;
79
+ color: white;
80
+ }
81
  }
82
 
83
  .wprm-manage-templates-template-fields {
assets/css/shortcodes/_ingredients.scss CHANGED
@@ -15,6 +15,8 @@
15
  }
16
 
17
  .wprm-recipe-ingredient-image {
 
 
18
  .wprm-recipe-ingredient-no-image-placeholder {
19
  display: inline-block;
20
  }
15
  }
16
 
17
  .wprm-recipe-ingredient-image {
18
+ flex-shrink: 0;
19
+
20
  .wprm-recipe-ingredient-no-image-placeholder {
21
  display: inline-block;
22
  }
assets/js/admin-manage/taxonomies/Columns.js CHANGED
@@ -485,6 +485,56 @@ export default {
485
  });
486
  }
487
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
488
  if ( window.hasOwnProperty( 'wpupg_admin' ) ) {
489
  columns.push({
490
  Header: __wprm( 'Grid Link' ),
485
  });
486
  }
487
 
488
+ // TODO Products.
489
+ if ( false && wprm_admin.addons.elite && ( 'ingredient' === datatable.props.options.id || 'equipment' === datatable.props.options.id ) ) {
490
+ columns.push({
491
+ Header: __wprm( 'Product' ),
492
+ id: 'product',
493
+ accessor: 'product',
494
+ width: 300,
495
+ sortable: false,
496
+ Filter: ({ filter, onChange }) => (
497
+ <select
498
+ onChange={event => onChange(event.target.value)}
499
+ style={{ width: '100%', fontSize: '1em' }}
500
+ value={filter ? filter.value : 'all'}
501
+ >
502
+ <option value="all">{ __wprm( 'Show All' ) }</option>
503
+ <option value="yes">{ __wprm( 'Has Product' ) }</option>
504
+ <option value="no">{ __wprm( 'Does not have Product' ) }</option>
505
+ </select>
506
+ ),
507
+ Cell: row => {
508
+ console.log( row.value );
509
+
510
+ return (
511
+ <div className="wprm-manage-product-container">
512
+ <Icon
513
+ type="pencil"
514
+ title={ __wprm( 'Change Product' ) }
515
+ onClick={() => {
516
+ WPRM_Modal.open( 'product', {
517
+ label: row.original.name,
518
+ taxonomy: datatable.props.options.id,
519
+ term: row.original.term_id,
520
+ product: row.value,
521
+ saveCallback: () => datatable.refreshData(),
522
+ } );
523
+ }}
524
+ />
525
+ {
526
+ row.value
527
+ ?
528
+ <a href={ row.value.url } target="_blank">{ row.value.name } (#{ row.value.id })</a>
529
+ :
530
+ null
531
+ }
532
+ </div>
533
+ )
534
+ },
535
+ });
536
+ }
537
+
538
  if ( window.hasOwnProperty( 'wpupg_admin' ) ) {
539
  columns.push({
540
  Header: __wprm( 'Grid Link' ),
assets/js/admin-modal/bulk-edit/ActionsRecipe.js CHANGED
@@ -65,6 +65,7 @@ const ActionsRecipe = (props) => {
65
 
66
  if ( wprm_admin.addons.premium ) {
67
  actionOptions.push(
 
68
  { value: 'custom-nutrition-ingredient', label: __wprm( 'Create Custom Nutrition Ingredient' ), default: false },
69
  );
70
  }
@@ -318,6 +319,30 @@ const ActionsRecipe = (props) => {
318
  />
319
  </FieldContainer>
320
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
321
  {
322
  ( 'add-terms' === selectedAction || 'remove-terms' === selectedAction )
323
  &&
65
 
66
  if ( wprm_admin.addons.premium ) {
67
  actionOptions.push(
68
+ { value: 'user-rating', label: __wprm( 'Set User Rating by Author' ), default: '5' },
69
  { value: 'custom-nutrition-ingredient', label: __wprm( 'Create Custom Nutrition Ingredient' ), default: false },
70
  );
71
  }
319
  />
320
  </FieldContainer>
321
  }
322
+ {
323
+ 'user-rating' === selectedAction
324
+ &&
325
+ <FieldRadio
326
+ id="type"
327
+ options={ [
328
+ { value: '0', label: __wprm( 'Remove rating by author' ) },
329
+ { value: '1', label: __wprm( '1 star' ) },
330
+ { value: '2', label: __wprm( '2 stars' ) },
331
+ { value: '3', label: __wprm( '3 stars' ) },
332
+ { value: '4', label: __wprm( '4 stars' ) },
333
+ { value: '5', label: __wprm( '5 stars' ) },
334
+ ] }
335
+ value={props.action.options}
336
+ onChange={(value) => {
337
+ const newAction = {
338
+ ...props.action,
339
+ options: value,
340
+ }
341
+
342
+ props.onActionChange(newAction);
343
+ }}
344
+ />
345
+ }
346
  {
347
  ( 'add-terms' === selectedAction || 'remove-terms' === selectedAction )
348
  &&
assets/js/admin-modal/recipe/edit/RecipeEquipment/index.js CHANGED
@@ -33,6 +33,10 @@ export default class RecipeEquipment extends Component {
33
  label: __wprm( 'Equipment Affiliate Fields' ),
34
  block: () => ( <p>{ __wprm( 'This feature is only available in' ) } <a href="https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/" target="_blank">WP Recipe Maker Premium</a>.</p> ),
35
  },
 
 
 
 
36
  };
37
 
38
  const allModes = hooks.applyFilters( 'modalRecipeEquipment', modes );
@@ -44,6 +48,19 @@ export default class RecipeEquipment extends Component {
44
 
45
  let mode = null;
46
  switch ( this.state.mode ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  default:
48
  mode = (
49
  <Content
33
  label: __wprm( 'Equipment Affiliate Fields' ),
34
  block: () => ( <p>{ __wprm( 'This feature is only available in' ) } <a href="https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/" target="_blank">WP Recipe Maker Premium</a>.</p> ),
35
  },
36
+ // 'products': { // TODO Products
37
+ // label: __wprm( 'Products' ),
38
+ // block: () => ( <p>{ __wprm( 'This feature is only available in' ) } <a href="https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/" target="_blank">WP Recipe Maker Elite Bundle</a>.</p> ),
39
+ // },
40
  };
41
 
42
  const allModes = hooks.applyFilters( 'modalRecipeEquipment', modes );
48
 
49
  let mode = null;
50
  switch ( this.state.mode ) {
51
+ case 'products':
52
+ mode = (
53
+ <Content
54
+ taxonomy="wprm_equipment"
55
+ items={ this.props.equipment.filter((field) => field.name ) }
56
+ onItemsChange={ ( equipment ) => {
57
+ this.props.onRecipeChange({
58
+ equipment,
59
+ });
60
+ }}
61
+ />
62
+ );
63
+ break;
64
  default:
65
  mode = (
66
  <Content
assets/js/admin-modal/recipe/edit/RecipeIngredients/index.js CHANGED
@@ -42,6 +42,10 @@ export default class RecipeIngredients extends Component {
42
  label: __wprm( 'Unit Conversion' ),
43
  block: () => ( <p>{ __wprm( 'This feature is only available in' ) } <a href="https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/" target="_blank">WP Recipe Maker Pro Bundle</a>.</p> ),
44
  },
 
 
 
 
45
  };
46
 
47
  // TODO: Doing it here because of invariant hook error others.
@@ -58,6 +62,19 @@ export default class RecipeIngredients extends Component {
58
 
59
  let mode = null;
60
  switch ( this.state.mode ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
61
  case 'unit-conversion':
62
  mode = (
63
  <Content
42
  label: __wprm( 'Unit Conversion' ),
43
  block: () => ( <p>{ __wprm( 'This feature is only available in' ) } <a href="https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/" target="_blank">WP Recipe Maker Pro Bundle</a>.</p> ),
44
  },
45
+ // 'products': { // TODO Products
46
+ // label: __wprm( 'Products' ),
47
+ // block: () => ( <p>{ __wprm( 'This feature is only available in' ) } <a href="https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/" target="_blank">WP Recipe Maker Elite Bundle</a>.</p> ),
48
+ // },
49
  };
50
 
51
  // TODO: Doing it here because of invariant hook error others.
62
 
63
  let mode = null;
64
  switch ( this.state.mode ) {
65
+ case 'products':
66
+ mode = (
67
+ <Content
68
+ taxonomy="wprm_ingredient"
69
+ items={ this.props.ingredients.filter((field) => 'ingredient' === field.type && field.name ) }
70
+ onItemsChange={ ( ingredients_flat ) => {
71
+ this.props.onRecipeChange({
72
+ ingredients_flat,
73
+ });
74
+ }}
75
+ />
76
+ );
77
+ break;
78
  case 'unit-conversion':
79
  mode = (
80
  <Content
assets/js/admin-template/main/manage-templates/ManageTemplate.js CHANGED
@@ -13,6 +13,11 @@ const ManageTemplate = (props) => {
13
  <span>Slug: { props.template.slug }</span> | <span>Name: { props.template.name }</span>
14
  </div>
15
  <div className="wprm-manage-templates-template-actions">
 
 
 
 
 
16
  {
17
  props.template.premium && ! wprm_admin.addons.premium
18
  ?
13
  <span>Slug: { props.template.slug }</span> | <span>Name: { props.template.name }</span>
14
  </div>
15
  <div className="wprm-manage-templates-template-actions">
16
+ {
17
+ props.template.hasOwnProperty( 'brokenSlug' ) && props.template.brokenSlug
18
+ &&
19
+ <p style={{ color: 'darkred', fontWeight: 'bold' }}>This template was created with a slug that might be breaking the CSS styling. That bug has since been fixed, but this template will need to get recreated. Simply cloning might be enough. Contact support@bootstrapped.ventures if you need more help!</p>
20
+ }
21
  {
22
  props.template.premium && ! wprm_admin.addons.premium
23
  ?
assets/js/admin-template/main/manage-templates/index.js CHANGED
@@ -146,6 +146,10 @@ export default class ManageTemplates extends Component {
146
  let classes = 'wprm-manage-templates-template';
147
  classes += props.template.slug === template.slug ? ' wprm-manage-templates-template-selected' : '';
148
  classes += template.premium && ! wprm_admin.addons.premium ? ' wprm-manage-templates-template-premium' : '';
 
 
 
 
149
 
150
  return (
151
  <div
146
  let classes = 'wprm-manage-templates-template';
147
  classes += props.template.slug === template.slug ? ' wprm-manage-templates-template-selected' : '';
148
  classes += template.premium && ! wprm_admin.addons.premium ? ' wprm-manage-templates-template-premium' : '';
149
+
150
+ if ( template.hasOwnProperty( 'brokenSlug' ) && template.brokenSlug ) {
151
+ classes += ' wprm-manage-templates-template-broken';
152
+ }
153
 
154
  return (
155
  <div
assets/js/blocks/jump-to-recipe/index.js CHANGED
@@ -12,8 +12,8 @@ if ( wp.hasOwnProperty( 'blockEditor' ) ) {
12
  import '../../../css/public/snippets.scss';
13
 
14
  registerBlockType( 'wp-recipe-maker/jump-to-recipe', {
15
- title: __( 'Jump to Recipe' ),
16
- description: __( 'A button to jump to a WPRM Recipe on the same page.' ),
17
  icon: 'button',
18
  keywords: [ 'wprm' ],
19
  category: 'wp-recipe-maker',
12
  import '../../../css/public/snippets.scss';
13
 
14
  registerBlockType( 'wp-recipe-maker/jump-to-recipe', {
15
+ title: __( 'Jump to Recipe', 'wp-recipe-maker' ),
16
+ description: __( 'A button to jump to a WPRM Recipe on the same page.', 'wp-recipe-maker' ),
17
  icon: 'button',
18
  keywords: [ 'wprm' ],
19
  category: 'wp-recipe-maker',
assets/js/blocks/jump-to-video/index.js CHANGED
@@ -12,8 +12,8 @@ if ( wp.hasOwnProperty( 'blockEditor' ) ) {
12
  import '../../../css/public/snippets.scss';
13
 
14
  registerBlockType( 'wp-recipe-maker/jump-to-video', {
15
- title: __( 'Jump to Video' ),
16
- description: __( 'A button to jump to a WPRM Recipe Video on the same page.' ),
17
  icon: 'button',
18
  keywords: [ 'wprm' ],
19
  example: {
12
  import '../../../css/public/snippets.scss';
13
 
14
  registerBlockType( 'wp-recipe-maker/jump-to-video', {
15
+ title: __( 'Jump to Video', 'wp-recipe-maker' ),
16
+ description: __( 'A button to jump to a WPRM Recipe Video on the same page.', 'wp-recipe-maker' ),
17
  icon: 'button',
18
  keywords: [ 'wprm' ],
19
  example: {
assets/js/blocks/nutrition-label/index.js CHANGED
@@ -16,8 +16,8 @@ if ( wp.hasOwnProperty( 'blockEditor' ) ) {
16
  import '../../../css/blocks/nutrition-label.scss';
17
 
18
  registerBlockType( 'wp-recipe-maker/nutrition-label', {
19
- title: __( 'Nutrition Label' ),
20
- description: __( 'The nutrition label for a WPRM Recipe.' ),
21
  icon: 'analytics',
22
  keywords: [ 'wprm' ],
23
  example: {
16
  import '../../../css/blocks/nutrition-label.scss';
17
 
18
  registerBlockType( 'wp-recipe-maker/nutrition-label', {
19
+ title: __( 'Nutrition Label', 'wp-recipe-maker' ),
20
+ description: __( 'The nutrition label for a WPRM Recipe.', 'wp-recipe-maker' ),
21
  icon: 'analytics',
22
  keywords: [ 'wprm' ],
23
  example: {
assets/js/blocks/print-recipe/index.js CHANGED
@@ -12,8 +12,8 @@ if ( wp.hasOwnProperty( 'blockEditor' ) ) {
12
  import '../../../css/public/snippets.scss';
13
 
14
  registerBlockType( 'wp-recipe-maker/print-recipe', {
15
- title: __( 'Print Recipe' ),
16
- description: __( 'A button to print a WPRM Recipe.' ),
17
  icon: 'button',
18
  keywords: [ 'wprm' ],
19
  example: {
12
  import '../../../css/public/snippets.scss';
13
 
14
  registerBlockType( 'wp-recipe-maker/print-recipe', {
15
+ title: __( 'Print Recipe', 'wp-recipe-maker' ),
16
+ description: __( 'A button to print a WPRM Recipe.', 'wp-recipe-maker' ),
17
  icon: 'button',
18
  keywords: [ 'wprm' ],
19
  example: {
assets/js/blocks/recipe-part/index.js CHANGED
@@ -28,8 +28,8 @@ if ( wp.hasOwnProperty( 'serverSideRender' ) ) {
28
  }
29
 
30
  registerBlockType( 'wp-recipe-maker/recipe-part', {
31
- title: __( 'Recipe Part' ),
32
- description: __( 'Display a specific recipe part' ),
33
  icon: 'shortcode',
34
  keywords: [],
35
  example: {
@@ -73,10 +73,10 @@ registerBlockType( 'wp-recipe-maker/recipe-part', {
73
  return (
74
  <div className={ className }>
75
  <InspectorControls>
76
- <PanelBody title={ __( 'Recipe Part Details' ) }>
77
  <TextControl
78
- label={ __( 'Recipe ID' ) }
79
- help={ __( 'Leave blank to use the first recipe on the page' ) }
80
  value={ attributes.id }
81
  onChange={ (id) => {
82
  let newId = parseInt( id );
@@ -91,7 +91,7 @@ registerBlockType( 'wp-recipe-maker/recipe-part', {
91
  } }
92
  />
93
  <SelectControl
94
- label={ __( 'Recipe Part' ) }
95
  value={ attributes.part }
96
  options={ partOptions }
97
  onChange={ (part) => setAttributes({
28
  }
29
 
30
  registerBlockType( 'wp-recipe-maker/recipe-part', {
31
+ title: __( 'Recipe Part', 'wp-recipe-maker' ),
32
+ description: __( 'Display a specific recipe part', 'wp-recipe-maker' ),
33
  icon: 'shortcode',
34
  keywords: [],
35
  example: {
73
  return (
74
  <div className={ className }>
75
  <InspectorControls>
76
+ <PanelBody title={ __( 'Recipe Part Details', 'wp-recipe-maker' ) }>
77
  <TextControl
78
+ label={ __( 'Recipe ID', 'wp-recipe-maker' ) }
79
+ help={ __( 'Leave blank to use the first recipe on the page', 'wp-recipe-maker' ) }
80
  value={ attributes.id }
81
  onChange={ (id) => {
82
  let newId = parseInt( id );
91
  } }
92
  />
93
  <SelectControl
94
+ label={ __( 'Recipe Part', 'wp-recipe-maker' ) }
95
  value={ attributes.part }
96
  options={ partOptions }
97
  onChange={ (part) => setAttributes({
assets/js/blocks/recipe-roundup/Sidebar.js CHANGED
@@ -37,32 +37,32 @@ function Sidebar( props ) {
37
  return (
38
  <InspectorControls>
39
  <p>
40
- <a href="https://help.bootstrapped.ventures/article/182-itemlist-metadata-for-recipe-roundup-posts" target="_blank">{ __( 'Learn more' ) }</a>
41
  </p>
42
- <PanelBody title={ __( 'Recipe Roundup' ) }>
43
  <TextControl
44
- label={ __( 'Name' ) }
45
  value={ name }
46
  onChange={ onChangeName }
47
  />
48
  <TextareaControl
49
- label={ __( 'Description' ) }
50
  value={ description }
51
  onChange={ onChangeDescription }
52
  />
53
  <TextControl
54
- label={ __( 'Number of Roundup Recipes' ) }
55
  value={ recipeRoundupCount }
56
  disabled
57
  />
58
 
59
  </PanelBody>
60
- <PanelBody title={ __( 'Recipe Details' ) }>
61
  {
62
  attributes.id
63
  ?
64
  <TextControl
65
- label={ __( 'Recipe ID' ) }
66
  value={ attributes.id }
67
  disabled
68
  />
@@ -73,7 +73,7 @@ function Sidebar( props ) {
73
  attributes.link
74
  ?
75
  <TextControl
76
- label={ __( 'Recipe Link' ) }
77
  value={ attributes.link }
78
  disabled
79
  />
@@ -81,7 +81,7 @@ function Sidebar( props ) {
81
  null
82
  }
83
  <SelectControl
84
- label={ __( 'Recipe Template' ) }
85
  value={ attributes.template }
86
  options={ templateOptions }
87
  onChange={ (template) => setAttributes({
37
  return (
38
  <InspectorControls>
39
  <p>
40
+ <a href="https://help.bootstrapped.ventures/article/182-itemlist-metadata-for-recipe-roundup-posts" target="_blank">{ __( 'Learn more', 'wp-recipe-maker' ) }</a>
41
  </p>
42
+ <PanelBody title={ __( 'Recipe Roundup', 'wp-recipe-maker' ) }>
43
  <TextControl
44
+ label={ __( 'Name', 'wp-recipe-maker' ) }
45
  value={ name }
46
  onChange={ onChangeName }
47
  />
48
  <TextareaControl
49
+ label={ __( 'Description', 'wp-recipe-maker' ) }
50
  value={ description }
51
  onChange={ onChangeDescription }
52
  />
53
  <TextControl
54
+ label={ __( 'Number of Roundup Recipes', 'wp-recipe-maker' ) }
55
  value={ recipeRoundupCount }
56
  disabled
57
  />
58
 
59
  </PanelBody>
60
+ <PanelBody title={ __( 'Recipe Details', 'wp-recipe-maker' ) }>
61
  {
62
  attributes.id
63
  ?
64
  <TextControl
65
+ label={ __( 'Recipe ID', 'wp-recipe-maker' ) }
66
  value={ attributes.id }
67
  disabled
68
  />
73
  attributes.link
74
  ?
75
  <TextControl
76
+ label={ __( 'Recipe Link', 'wp-recipe-maker' ) }
77
  value={ attributes.link }
78
  disabled
79
  />
81
  null
82
  }
83
  <SelectControl
84
+ label={ __( 'Recipe Template', 'wp-recipe-maker' ) }
85
  value={ attributes.template }
86
  options={ templateOptions }
87
  onChange={ (template) => setAttributes({
assets/js/blocks/recipe-roundup/index.js CHANGED
@@ -35,8 +35,8 @@ const cleanUpShortcodeAttribute = (value) => {
35
  }
36
 
37
  registerBlockType( 'wp-recipe-maker/recipe-roundup-item', {
38
- title: __( 'WPRM Recipe Roundup Item' ),
39
- description: __( 'Output your Recipe Roundup as ItemList metadata.' ),
40
  icon: 'media-document',
41
  keywords: [ 'wprm', 'wp recipe maker' ],
42
  example: {
@@ -151,7 +151,7 @@ registerBlockType( 'wp-recipe-maker/recipe-roundup-item', {
151
  <ToolbarGroup>
152
  <ToolbarButton
153
  icon="edit"
154
- label={ __( 'Edit Recipe' ) }
155
  onClick={ () => {
156
  WPRM_Modal.open( 'roundup', {
157
  fields: {
@@ -172,7 +172,7 @@ registerBlockType( 'wp-recipe-maker/recipe-roundup-item', {
172
  </Fragment>
173
  :
174
  <Fragment>
175
- <h2>WPRM { __( 'Recipe Roundup Item' ) }</h2>
176
  <Button
177
  isLarge
178
  onClick={ () => {
@@ -182,7 +182,7 @@ registerBlockType( 'wp-recipe-maker/recipe-roundup-item', {
182
  },
183
  } );
184
  }}>
185
- { __( 'Select Recipe' ) }
186
  </Button>
187
  </Fragment>
188
  }</div>
35
  }
36
 
37
  registerBlockType( 'wp-recipe-maker/recipe-roundup-item', {
38
+ title: __( 'WPRM Recipe Roundup Item', 'wp-recipe-maker' ),
39
+ description: __( 'Output your Recipe Roundup as ItemList metadata.', 'wp-recipe-maker' ),
40
  icon: 'media-document',
41
  keywords: [ 'wprm', 'wp recipe maker' ],
42
  example: {
151
  <ToolbarGroup>
152
  <ToolbarButton
153
  icon="edit"
154
+ label={ __( 'Edit Recipe', 'wp-recipe-maker' ) }
155
  onClick={ () => {
156
  WPRM_Modal.open( 'roundup', {
157
  fields: {
172
  </Fragment>
173
  :
174
  <Fragment>
175
+ <h2>WPRM { __( 'Recipe Roundup Item', 'wp-recipe-maker' ) }</h2>
176
  <Button
177
  isLarge
178
  onClick={ () => {
182
  },
183
  } );
184
  }}>
185
+ { __( 'Select Recipe', 'wp-recipe-maker' ) }
186
  </Button>
187
  </Fragment>
188
  }</div>
assets/js/blocks/recipe-snippet/index.js CHANGED
@@ -28,8 +28,8 @@ if ( wp.hasOwnProperty( 'serverSideRender' ) ) {
28
  }
29
 
30
  registerBlockType( 'wp-recipe-maker/recipe-snippet', {
31
- title: __( 'Recipe Snippet' ),
32
- description: __( 'Displays the recipe snippet template. Usually used for a Jump to Recipe button at the top of the post content.' ),
33
  icon: 'button',
34
  keywords: [],
35
  example: {
@@ -78,9 +78,9 @@ registerBlockType( 'wp-recipe-maker/recipe-snippet', {
78
  return (
79
  <div className={ className }>
80
  <InspectorControls>
81
- <PanelBody title={ __( 'Recipe Snippet Details' ) }>
82
  <SelectControl
83
- label={ __( 'Recipe Snippet Template' ) }
84
  value={ attributes.template }
85
  options={ templateOptions }
86
  onChange={ (template) => setAttributes({
28
  }
29
 
30
  registerBlockType( 'wp-recipe-maker/recipe-snippet', {
31
+ title: __( 'Recipe Snippet', 'wp-recipe-maker' ),
32
+ description: __( 'Displays the recipe snippet template. Usually used for a Jump to Recipe button at the top of the post content.', 'wp-recipe-maker' ),
33
  icon: 'button',
34
  keywords: [],
35
  example: {
78
  return (
79
  <div className={ className }>
80
  <InspectorControls>
81
+ <PanelBody title={ __( 'Recipe Snippet Details', 'wp-recipe-maker' ) }>
82
  <SelectControl
83
+ label={ __( 'Recipe Snippet Template', 'wp-recipe-maker' ) }
84
  value={ attributes.template }
85
  options={ templateOptions }
86
  onChange={ (template) => setAttributes({
assets/js/blocks/recipe/index.js CHANGED
@@ -33,8 +33,8 @@ if ( wp.hasOwnProperty( 'serverSideRender' ) ) {
33
  import '../../../css/blocks/recipe.scss';
34
 
35
  registerBlockType( 'wp-recipe-maker/recipe', {
36
- title: __( 'WPRM Recipe' ),
37
- description: __( 'Display a recipe box with recipe metadata.' ),
38
  icon: 'media-document',
39
  keywords: [ 'wprm', 'wp recipe maker' ],
40
  example: {
@@ -80,7 +80,7 @@ registerBlockType( 'wp-recipe-maker/recipe', {
80
  };
81
 
82
  let templateOptions = [
83
- { label: 'Use default from settings', value: '' },
84
  ];
85
  const templates = wprm_admin.recipe_templates.modern;
86
 
@@ -103,7 +103,7 @@ registerBlockType( 'wp-recipe-maker/recipe', {
103
  <ToolbarGroup>
104
  <ToolbarButton
105
  icon="edit"
106
- label={ __( 'Edit Recipe' ) }
107
  onClick={
108
  () => {
109
  WPRM_Modal.open( 'recipe', {
@@ -116,14 +116,14 @@ registerBlockType( 'wp-recipe-maker/recipe', {
116
  </ToolbarGroup>
117
  </BlockControls>
118
  <InspectorControls>
119
- <PanelBody title={ __( 'Recipe Details' ) }>
120
  <TextControl
121
- label={ __( 'Recipe ID' ) }
122
  value={ attributes.id }
123
  disabled
124
  />
125
  <SelectControl
126
- label={ __( 'Recipe Template' ) }
127
  value={ attributes.template }
128
  options={ templateOptions }
129
  onChange={ (template) => setAttributes({
@@ -140,7 +140,7 @@ registerBlockType( 'wp-recipe-maker/recipe', {
140
  saveCallback: modalCallback,
141
  } );
142
  }}>
143
- { __( 'Edit Recipe' ) }
144
  </Button>
145
  </PanelRow>
146
  </PanelBody>
@@ -152,7 +152,7 @@ registerBlockType( 'wp-recipe-maker/recipe', {
152
  </Fragment>
153
  :
154
  <Fragment>
155
- <h2>WPRM { __( 'Recipe' ) }</h2>
156
  <Button
157
  isPrimary
158
  isLarge
@@ -171,13 +171,13 @@ registerBlockType( 'wp-recipe-maker/recipe', {
171
 
172
  WPRM_Modal.open( 'recipe', args );
173
  }}>
174
- { __( 'Create new Recipe' ) }
175
  </Button> <Button
176
  isLarge
177
  onClick={ () => {
178
  WPRM_Modal.open( 'select', {
179
- title: 'Insert existing Recipe',
180
- button: 'Insert',
181
  fields: {
182
  recipe: {},
183
  },
@@ -186,7 +186,7 @@ registerBlockType( 'wp-recipe-maker/recipe', {
186
  },
187
  } );
188
  }}>
189
- { __( 'Insert existing Recipe' ) }
190
  </Button> {
191
  wprm_admin.addons.premium
192
  &&
@@ -194,8 +194,8 @@ registerBlockType( 'wp-recipe-maker/recipe', {
194
  isLarge
195
  onClick={ () => {
196
  WPRM_Modal.open( 'select', {
197
- title: 'Create new from existing Recipe',
198
- button: 'Clone Recipe',
199
  fields: {
200
  recipe: {},
201
  },
@@ -208,7 +208,7 @@ registerBlockType( 'wp-recipe-maker/recipe', {
208
  },
209
  } );
210
  }}>
211
- { __( 'Create new from existing Recipe' ) }
212
  </Button>
213
  }
214
  </Fragment>
33
  import '../../../css/blocks/recipe.scss';
34
 
35
  registerBlockType( 'wp-recipe-maker/recipe', {
36
+ title: __( 'WPRM Recipe', 'wp-recipe-maker' ),
37
+ description: __( 'Display a recipe box with recipe metadata.', 'wp-recipe-maker' ),
38
  icon: 'media-document',
39
  keywords: [ 'wprm', 'wp recipe maker' ],
40
  example: {
80
  };
81
 
82
  let templateOptions = [
83
+ { label: __( 'Use default from settings', 'wp-recipe-maker' ), value: '' },
84
  ];
85
  const templates = wprm_admin.recipe_templates.modern;
86
 
103
  <ToolbarGroup>
104
  <ToolbarButton
105
  icon="edit"
106
+ label={ __( 'Edit Recipe', 'wp-recipe-maker' ) }
107
  onClick={
108
  () => {
109
  WPRM_Modal.open( 'recipe', {
116
  </ToolbarGroup>
117
  </BlockControls>
118
  <InspectorControls>
119
+ <PanelBody title={ __( 'Recipe Details', 'wp-recipe-maker' ) }>
120
  <TextControl
121
+ label={ __( 'Recipe ID', 'wp-recipe-maker' ) }
122
  value={ attributes.id }
123
  disabled
124
  />
125
  <SelectControl
126
+ label={ __( 'Recipe Template', 'wp-recipe-maker' ) }
127
  value={ attributes.template }
128
  options={ templateOptions }
129
  onChange={ (template) => setAttributes({
140
  saveCallback: modalCallback,
141
  } );
142
  }}>
143
+ { __( 'Edit Recipe', 'wp-recipe-maker' ) }
144
  </Button>
145
  </PanelRow>
146
  </PanelBody>
152
  </Fragment>
153
  :
154
  <Fragment>
155
+ <h2>WPRM { __( 'Recipe', 'wp-recipe-maker' ) }</h2>
156
  <Button
157
  isPrimary
158
  isLarge
171
 
172
  WPRM_Modal.open( 'recipe', args );
173
  }}>
174
+ { __( 'Create new Recipe', 'wp-recipe-maker' ) }
175
  </Button> <Button
176
  isLarge
177
  onClick={ () => {
178
  WPRM_Modal.open( 'select', {
179
+ title: __( 'Insert existing Recipe', 'wp-recipe-maker' ),
180
+ button: __( 'Insert', 'wp-recipe-maker' ),
181
  fields: {
182
  recipe: {},
183
  },
186
  },
187
  } );
188
  }}>
189
+ { __( 'Insert existing Recipe', 'wp-recipe-maker' ) }
190
  </Button> {
191
  wprm_admin.addons.premium
192
  &&
194
  isLarge
195
  onClick={ () => {
196
  WPRM_Modal.open( 'select', {
197
+ title: __( 'Create new from existing Recipe', 'wp-recipe-maker' ),
198
+ button: __( 'Clone Recipe', 'wp-recipe-maker' ),
199
  fields: {
200
  recipe: {},
201
  },
208
  },
209
  } );
210
  }}>
211
+ { __( 'Create new from existing Recipe', 'wp-recipe-maker' ) }
212
  </Button>
213
  }
214
  </Fragment>
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}.wprm-container-columns-spaced.wprm-container-columns-gutter>*.wprm-recipe-grow-container,.wprm-container-columns-spaced-middle.wprm-container-columns-gutter>*.wprm-recipe-grow-container{margin-left:0 !important;margin-right:0 !important}.wprm-container-columns-spaced.wprm-container-columns-gutter>*.wprm-recipe-grow-container a,.wprm-container-columns-spaced-middle.wprm-container-columns-gutter>*.wprm-recipe-grow-container a{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-columns-spaced.wprm-container-columns-gutter>*.wprm-recipe-grow-container,.wprm-container-columns-spaced-middle.wprm-container-columns-gutter>*.wprm-recipe-grow-container{margin-bottom:0 !important}.wprm-container-columns-spaced.wprm-container-columns-gutter>*.wprm-recipe-grow-container a,.wprm-container-columns-spaced-middle.wprm-container-columns-gutter>*.wprm-recipe-grow-container a{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-recipe-equipment-container .wprm-recipe-equipment-notes-faded{opacity:0.7}.wprm-recipe-equipment-container .wprm-recipe-equipment-notes-smaller{font-size:0.8em}.wprm-recipe-equipment-container .wprm-recipe-equipment-notes-smaller-faded{opacity:0.7;font-size:0.8em}.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-images-before .wprm-recipe-ingredient-image{margin-right:10px}.wprm-recipe-ingredients-container.wprm-recipe-images-after .wprm-recipe-ingredient-image{margin-left:10px}.wprm-recipe-ingredients-container .wprm-recipe-ingredient-image .wprm-recipe-ingredient-no-image-placeholder{display:inline-block}.wprm-recipe-ingredients-container .wprm-recipe-ingredient-image img{vertical-align:middle}.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-grouped ul.wprm-recipe-ingredients{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center}.wprm-ingredient-style-grouped ul.wprm-recipe-ingredients li.wprm-recipe-ingredient{padding-right:10px}.wprm-ingredient-style-grouped .wprm-recipe-ingredient-details-container{display:flex;align-items:center}.wprm-ingredient-style-grouped .wprm-recipe-ingredient-details-container .wprm-recipe-ingredient-notes{display:block}.rtl .wprm-ingredient-style-grouped ul.wprm-recipe-ingredients li.wprm-recipe-ingredient{padding-left:10px;padding-right:0}.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.wprm-recipe-ingredients-has-images li.wprm-recipe-ingredient,.wprm-ingredient-style-table-2-align.wprm-recipe-ingredients-has-images li.wprm-recipe-ingredient,.wprm-ingredient-style-table-3.wprm-recipe-ingredients-has-images li.wprm-recipe-ingredient,.wprm-ingredient-style-table-3-align.wprm-recipe-ingredients-has-images li.wprm-recipe-ingredient{align-items:center}.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;padding-right:5px}.wprm-recipe-instruction-ingredients-inline .wprm-recipe-instruction-ingredient:last-child{padding-right:0}.rtl .wprm-recipe-instruction-ingredients-inline .wprm-recipe-instruction-ingredient{display:inline-block;padding-right:0;padding-left:5px}.rtl .wprm-recipe-instruction-ingredients-inline .wprm-recipe-instruction-ingredient:first-child{padding-left:5px}.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-temperature-container .wprm-temperature-icon img{display:inline-block;width:1.6em;height:auto;vertical-align:text-bottom;margin-bottom:-0.2em}.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-toggle-switch{position:relative;display:inline-block;width:40px;height:20px}.wprm-toggle-switch input{opacity:0;width:0;height:0;margin:0;padding:0}.wprm-toggle-switch .wprm-toggle-switch-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#cccccc;-webkit-transition:.4s;transition:.4s}.wprm-toggle-switch .wprm-toggle-switch-slider:before{position:absolute;content:"";height:80%;left:7%;right:50%;bottom:10%;background-color:white;-webkit-transition:.4s;transition:.4s}.wprm-toggle-switch input:checked+.wprm-toggle-switch-slider{background-color:#333333 !important}.wprm-toggle-switch input:focus+.wprm-toggle-switch-slider{box-shadow:0 0 0 3px rgba(0,0,0,0.12)}.wprm-toggle-switch input:checked+.wprm-toggle-switch-slider:before{left:50%;right:7%}.wprm-toggle-switch-rounded .wprm-toggle-switch-slider:before{border-radius:50%}.wprm-toggle-container{display:inline-flex;align-items:stretch;border:1px solid #333333;flex-shrink:0;overflow:hidden}.wprm-toggle-container button.wprm-toggle{display:inline-block;padding:5px 10px;font-size:inherit;line-height:inherit;font-weight:inherit;text-transform:inherit;letter-spacing:inherit;text-decoration:none;white-space:nowrap;border:none;border-radius:0;box-shadow:none}.wprm-toggle-container button.wprm-toggle.wprm-toggle-active .wprm-toggle-icon-inactive{display:none}.wprm-toggle-container button.wprm-toggle:not(.wprm-toggle-active){background:none !important;color:inherit !important}.wprm-toggle-container button.wprm-toggle:not(.wprm-toggle-active) .wprm-toggle-icon-active{display:none}.wprm-toggle-container button.wprm-toggle .wprm-toggle-icon{margin:0}.wprm-toggle-container button.wprm-toggle .wprm-toggle-icon svg{margin-top:-0.3em}.wprm-toggle-container button.wprm-toggle .wprm-toggle-icon+.wprm-toggle-text{margin-left:10px}.wprm-recipe-header+.wprm-recipe-video{margin-top:10px}
6
 
7
  .wprm-recipe-advanced-servings-container{margin:5px 0;display:flex;align-items:center;flex-wrap:wrap}.wprm-recipe-advanced-servings-container a.wprm-recipe-advanced-servings-input,.wprm-recipe-advanced-servings-container a.wprm-recipe-advanced-servings-reset{text-decoration:none}.wprm-recipe-advanced-servings-container .wprm-recipe-advanced-servings-input-unit{margin-left:3px}.wprm-recipe-advanced-servings-container .wprm-recipe-advanced-servings-input-shape{margin-left:5px}.wprm-recipe-advanced-servings-container .wprm-recipe-advanced-servings-reset{font-size:0.8em}.wprm-main-container-preview .wprm-recipe-advanced-servings-container a{cursor:pointer}.wprm-recipe-equipment-container,.wprm-recipe-ingredients-container,.wprm-recipe-instructions-container{counter-reset:wprm-advanced-list-counter}ul.wprm-advanced-list.wprm-advanced-list-reset{counter-reset:wprm-advanced-list-counter}ul.wprm-advanced-list li{list-style-type:none}ul.wprm-advanced-list li:before{counter-increment:wprm-advanced-list-counter;content:counter(wprm-advanced-list-counter);display:flex;align-items:center;justify-content:center;float:left;font-weight:bold;margin:2px 0 0 -32px;border-radius:100%;border:0}.rtl ul.wprm-advanced-list li:before{float:right;margin:2px -32px 0 0}.wprm-checkbox-container{margin-left:-16px}.rtl .wprm-checkbox-container{margin-left:0;margin-right:-16px}.wprm-checkbox-container input[type="checkbox"]{width:16px !important;margin:0 !important;opacity:0}.wprm-checkbox-container label.wprm-checkbox-label{position:relative;display:inline !important;margin:0 !important;left:0;padding-left:26px}.wprm-checkbox-container label::before,.wprm-checkbox-container label::after{position:absolute;content:"";display:inline-block}.rtl ​.wprm-checkbox-container label::before{right:0}.rtl .wprm-checkbox-container label::after{right:5px}.wprm-checkbox-container label::before{height:18px;width:18px;border:1px solid;left:0;top:0}.wprm-checkbox-container label::after{height:5px;width:9px;border-left:2px solid;border-bottom:2px solid;transform:rotate(-45deg);left:5px;top:5px}.wprm-checkbox-container input[type="checkbox"]+label::after{content:none}.wprm-checkbox-container input[type="checkbox"]:checked+label::after{content:""}.wprm-checkbox-container input[type="checkbox"]:focus+label::before{outline:#3b99fc auto 5px}.wprm-recipe-equipment li,.wprm-recipe-ingredients li,.wprm-recipe-instructions li{position:relative}.wprm-recipe-equipment li .wprm-checkbox-container,.wprm-recipe-ingredients li .wprm-checkbox-container,.wprm-recipe-instructions li .wprm-checkbox-container{display:inline-block;position:absolute;left:-32px;top:0.25em;line-height:0.9em}.wprm-recipe-equipment li.wprm-checkbox-is-checked,.wprm-recipe-ingredients li.wprm-checkbox-is-checked,.wprm-recipe-instructions li.wprm-checkbox-is-checked{text-decoration:line-through}.wprm-recipe-equipment li.wprm-checkbox-is-checked .wprm-recipe-instruction-ingredient,.wprm-recipe-ingredients li.wprm-checkbox-is-checked .wprm-recipe-instruction-ingredient,.wprm-recipe-instructions li.wprm-checkbox-is-checked .wprm-recipe-instruction-ingredient{text-decoration:line-through}.rtl .wprm-recipe-equipment li .wprm-checkbox-container,.rtl .wprm-recipe-ingredients li .wprm-checkbox-container,.rtl .wprm-recipe-instructions li .wprm-checkbox-container{left:inherit;right:-32px}.wprm-list-checkbox-container:before{display:none !important}.wprm-list-checkbox-container.wprm-list-checkbox-checked{text-decoration:line-through}.wprm-list-checkbox-container .wprm-list-checkbox:hover{cursor:pointer}.wprm-recipe-equipment-images .eafl-disclaimer,.wprm-recipe-equipment-grid .eafl-disclaimer{display:none}.wprm-recipe-equipment-images{margin:5px -5px;display:flex;flex-wrap:wrap}.wprm-recipe-equipment-images.wprm-recipe-equipment-images-align-center{justify-content:center}.wprm-recipe-equipment-images.wprm-recipe-equipment-images-align-right{justify-content:flex-end}.wprm-recipe-equipment-images.wprm-recipe-equipment-images-align-spaced{justify-content:space-evenly}.wprm-recipe-equipment-images a{border:0 !important;background:0 !important;box-shadow:none !important;float:none !important;margin:0 !important;padding:0 !important;opacity:1 !important}.wprm-recipe-equipment-images .wprm-recipe-equipment-item{margin:5px}.wprm-recipe-equipment-images .wprm-recipe-equipment-item img{margin:0}.wprm-recipe-equipment-images .wprm-recipe-equipment-item .wprm-recipe-equipment-name{text-align:center}.wprm-recipe-equipment-grid{margin:5px -5px}.wprm-recipe-equipment-grid .wprm-recipe-equipment-item{margin:5px;text-align:center;max-width:100%;overflow:hidden}.wprm-recipe-equipment-grid .wprm-recipe-equipment-item img{margin:0 auto;max-width:100%}.wprm-recipe-equipment-grid .wprm-recipe-equipment-item .wprm-recipe-equipment-name{text-align:center}@media screen and (min-width: 400px){.wprm-recipe-equipment-grid .wprm-recipe-equipment-grid-row{display:flex}.wprm-recipe-equipment-grid .wprm-recipe-equipment-item{flex:1 1 50%}.wprm-recipe-equipment-grid.wprm-recipe-equipment-grid-columns-1 .wprm-recipe-equipment-item{flex:1 1 100%}}@media screen and (min-width: 550px){.wprm-recipe-equipment-grid .wprm-recipe-equipment-item{flex:1 1 33.33%}.wprm-recipe-equipment-grid.wprm-recipe-equipment-grid-columns-1 .wprm-recipe-equipment-item{flex:1 1 100%}.wprm-recipe-equipment-grid.wprm-recipe-equipment-grid-columns-2 .wprm-recipe-equipment-item{flex:1 1 50%}.wprm-recipe-equipment-grid.wprm-recipe-equipment-grid-columns-3 .wprm-recipe-equipment-item{flex:1 1 33.33%}}@media screen and (min-width: 650px){.wprm-recipe-equipment-grid.wprm-recipe-equipment-grid-columns-1 .wprm-recipe-equipment-item{flex:1 1 100%}.wprm-recipe-equipment-grid.wprm-recipe-equipment-grid-columns-2 .wprm-recipe-equipment-item{flex:1 1 50%}.wprm-recipe-equipment-grid.wprm-recipe-equipment-grid-columns-3 .wprm-recipe-equipment-item{flex:1 1 33.33%}.wprm-recipe-equipment-grid.wprm-recipe-equipment-grid-columns-4 .wprm-recipe-equipment-item{flex:1 1 25%}}.wprm-nutrition-label,html body .wprm-recipe-container .wprm-nutrition-label{display:inline-block;max-width:250px;border:1px solid #333;padding:5px;font-family:Arial, Helvetica, sans-serif;font-size:12px;line-height:16px;text-align:left !important;color:black}.wprm-nutrition-label .nutrition-title,html body .wprm-recipe-container .wprm-nutrition-label .nutrition-title{font-weight:bold;font-size:24px;line-height:24px}.wprm-nutrition-label .nutrition-serving,html body .wprm-recipe-container .wprm-nutrition-label .nutrition-serving{font-size:10px;line-height:14px;font-weight:bold}.wprm-nutrition-label .nutrition-item,.wprm-nutrition-label .nutrition-sub-item,html body .wprm-recipe-container .wprm-nutrition-label .nutrition-item,html body .wprm-recipe-container .wprm-nutrition-label .nutrition-sub-item{border-top:1px solid #333;clear:both}.wprm-nutrition-label .nutrition-sub-item,html body .wprm-recipe-container .wprm-nutrition-label .nutrition-sub-item{margin-left:14px}.wprm-nutrition-label .nutrition-percentage,html body .wprm-recipe-container .wprm-nutrition-label .nutrition-percentage{float:right}.wprm-nutrition-label .nutrition-line,html body .wprm-recipe-container .wprm-nutrition-label .nutrition-line{background-color:#333;height:5px;font-size:1px}.wprm-nutrition-label .nutrition-line.nutrition-line-big,html body .wprm-recipe-container .wprm-nutrition-label .nutrition-line.nutrition-line-big{height:10px}.wprm-nutrition-label .nutrition-warning,html body .wprm-recipe-container .wprm-nutrition-label .nutrition-warning{border-top:1px solid #333;clear:both;padding-top:5px;font-size:10px;color:#999}.rtl .wprm-nutrition-label,html body.rtl .wprm-recipe-container .wprm-nutrition-label{text-align:right !important}.rtl .wprm-nutrition-label .nutrition-sub-item,html body.rtl .wprm-recipe-container .wprm-nutrition-label .nutrition-sub-item{margin-left:0;margin-right:14px}.rtl .wprm-nutrition-label .nutrition-percentage,html body.rtl .wprm-recipe-container .wprm-nutrition-label .nutrition-percentage{float:left}.no-js .wprm-recipe-private-notes-header,.no-js .wprm-private-notes-container{display:none}.wprm-private-notes-container:not(.wprm-private-notes-container-disabled){cursor:pointer}.wprm-private-notes-container .wprm-private-notes-user,.wprm-private-notes-container .wprm-private-notes-input{display:none}.wprm-private-notes-container.wprm-private-notes-has-notes .wprm-private-notes-placeholder{display:none}.wprm-private-notes-container.wprm-private-notes-has-notes .wprm-private-notes-user{display:block}.wprm-private-notes-container.wprm-private-notes-editing .wprm-private-notes-placeholder,.wprm-private-notes-container.wprm-private-notes-editing .wprm-private-notes-user{display:none}.wprm-private-notes-container.wprm-private-notes-editing .wprm-private-notes-input{display:block}.wprm-private-notes-container .wprm-private-notes-user{white-space:pre-wrap}.wprm-private-notes-container .wprm-private-notes-input{resize:none;width:100%;height:100px;padding:5px;overflow:hidden;box-sizing:border-box}.wprm-print .wprm-private-notes-container{cursor:default}.wprm-print .wprm-private-notes-container .wprm-private-notes-placeholder,.wprm-print .wprm-private-notes-container .wprm-private-notes-input{display:none !important}.wprm-print .wprm-private-notes-container .wprm-private-notes-user{display:block !important}input[type=number].wprm-recipe-servings{display:inline;width:60px;margin:0;padding:5px}.wprm-recipe-servings-text-buttons-container{display:inline-flex}.wprm-recipe-servings-text-buttons-container input[type=text].wprm-recipe-servings{display:inline;width:40px;margin:0;padding:0;vertical-align:top;text-align:center;outline:none;border-radius:0 !important}.wprm-recipe-servings-text-buttons-container input[type=text].wprm-recipe-servings,.wprm-recipe-servings-text-buttons-container .wprm-recipe-servings-change{border:1px solid #333333;height:30px;user-select:none;font-size:16px}.wprm-recipe-servings-text-buttons-container .wprm-recipe-servings-change{display:inline-block;width:20px;line-height:26px;background:#333333;color:white;text-align:center;cursor:pointer;border-radius:3px}.wprm-recipe-servings-text-buttons-container .wprm-recipe-servings-change:active{font-weight:bold}.wprm-recipe-servings-text-buttons-container .wprm-recipe-servings-change.wprm-recipe-servings-decrement{border-right:none;border-top-right-radius:0 !important;border-bottom-right-radius:0 !important}.wprm-recipe-servings-text-buttons-container .wprm-recipe-servings-change.wprm-recipe-servings-increment{border-left:none;border-top-left-radius:0 !important;border-bottom-left-radius:0 !important}.wprm-recipe-servings-container .tippy-box{padding:5px 10px}input[type=range].wprm-recipe-servings-slider{-webkit-appearance:none;width:100%;min-width:150px;margin:0;background:none;border:0}input[type=range].wprm-recipe-servings-slider:focus{outline:none}input[type=range].wprm-recipe-servings-slider::-webkit-slider-runnable-track{width:100%;height:9.2px;cursor:pointer;box-shadow:0.5px 0.5px 1px #000000, 0px 0px 0.5px #0d0d0d;background:#aaaaaa;border-radius:1.3px;border:0.5px solid #010101}input[type=range].wprm-recipe-servings-slider::-webkit-slider-thumb{box-shadow:1px 1px 1px #000000, 0px 0px 1px #0d0d0d;border:0.7px solid #000000;height:22px;width:10px;border-radius:3px;background:#ffffff;cursor:pointer;-webkit-appearance:none;margin-top:-6.9px}input[type=range].wprm-recipe-servings-slider:focus::-webkit-slider-runnable-track{background:#bcbcbc}input[type=range].wprm-recipe-servings-slider::-moz-range-track{width:100%;height:9.2px;cursor:pointer;box-shadow:0.5px 0.5px 1px #000000, 0px 0px 0.5px #0d0d0d;background:#aaaaaa;border-radius:1.3px;border:0.5px solid #010101}input[type=range].wprm-recipe-servings-slider::-moz-range-thumb{box-shadow:1px 1px 1px #000000, 0px 0px 1px #0d0d0d;border:0.7px solid #000000;height:22px;width:10px;border-radius:3px;background:#ffffff;cursor:pointer}input[type=range].wprm-recipe-servings-slider::-ms-track{width:100%;height:9.2px;cursor:pointer;background:transparent;border-color:transparent;color:transparent}input[type=range].wprm-recipe-servings-slider::-ms-fill-lower{background:#989898;border:0.5px solid #010101;border-radius:2.6px;box-shadow:0.5px 0.5px 1px #000000, 0px 0px 0.5px #0d0d0d}input[type=range].wprm-recipe-servings-slider::-ms-fill-upper{background:#aaaaaa;border:0.5px solid #010101;border-radius:2.6px;box-shadow:0.5px 0.5px 1px #000000, 0px 0px 0.5px #0d0d0d}input[type=range].wprm-recipe-servings-slider::-ms-thumb{box-shadow:1px 1px 1px #000000, 0px 0px 1px #0d0d0d;border:0.7px solid #000000;height:22px;width:10px;border-radius:3px;background:#ffffff;cursor:pointer;height:9.2px}input[type=range].wprm-recipe-servings-slider:focus::-ms-fill-lower{background:#aaaaaa}input[type=range].wprm-recipe-servings-slider:focus::-ms-fill-upper{background:#bcbcbc}.wprm-recipe-tag-term{display:inline-flex;align-items:center;margin:5px}.wprm-recipe-tag-term .wprm-recipe-tag-term-image{display:flex}.wprm-recipe-tag-term.wprm-recipe-tag-image-align-left{flex-direction:row}.wprm-recipe-tag-term.wprm-recipe-tag-image-align-left .wprm-recipe-tag-term-image{margin-right:5px}.wprm-recipe-tag-term.wprm-recipe-tag-image-align-right{flex-direction:row-reverse}.wprm-recipe-tag-term.wprm-recipe-tag-image-align-right .wprm-recipe-tag-term-image{margin-left:5px}.wprm-recipe-tag-term.wprm-recipe-tag-image-align-top{flex-direction:column}.wprm-recipe-tag-term.wprm-recipe-tag-image-align-top .wprm-recipe-tag-term-image{margin-bottom:5px}.wprm-recipe-tag-term.wprm-recipe-tag-image-align-bottom{flex-direction:column-reverse}.wprm-recipe-tag-term.wprm-recipe-tag-image-align-bottom .wprm-recipe-tag-term-image{margin-top:5px}
8
 
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}.wprm-container-columns-spaced.wprm-container-columns-gutter>*.wprm-recipe-grow-container,.wprm-container-columns-spaced-middle.wprm-container-columns-gutter>*.wprm-recipe-grow-container{margin-left:0 !important;margin-right:0 !important}.wprm-container-columns-spaced.wprm-container-columns-gutter>*.wprm-recipe-grow-container a,.wprm-container-columns-spaced-middle.wprm-container-columns-gutter>*.wprm-recipe-grow-container a{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-columns-spaced.wprm-container-columns-gutter>*.wprm-recipe-grow-container,.wprm-container-columns-spaced-middle.wprm-container-columns-gutter>*.wprm-recipe-grow-container{margin-bottom:0 !important}.wprm-container-columns-spaced.wprm-container-columns-gutter>*.wprm-recipe-grow-container a,.wprm-container-columns-spaced-middle.wprm-container-columns-gutter>*.wprm-recipe-grow-container a{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-recipe-equipment-container .wprm-recipe-equipment-notes-faded{opacity:0.7}.wprm-recipe-equipment-container .wprm-recipe-equipment-notes-smaller{font-size:0.8em}.wprm-recipe-equipment-container .wprm-recipe-equipment-notes-smaller-faded{opacity:0.7;font-size:0.8em}.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-images-before .wprm-recipe-ingredient-image{margin-right:10px}.wprm-recipe-ingredients-container.wprm-recipe-images-after .wprm-recipe-ingredient-image{margin-left:10px}.wprm-recipe-ingredients-container .wprm-recipe-ingredient-image{flex-shrink:0}.wprm-recipe-ingredients-container .wprm-recipe-ingredient-image .wprm-recipe-ingredient-no-image-placeholder{display:inline-block}.wprm-recipe-ingredients-container .wprm-recipe-ingredient-image img{vertical-align:middle}.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-grouped ul.wprm-recipe-ingredients{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center}.wprm-ingredient-style-grouped ul.wprm-recipe-ingredients li.wprm-recipe-ingredient{padding-right:10px}.wprm-ingredient-style-grouped .wprm-recipe-ingredient-details-container{display:flex;align-items:center}.wprm-ingredient-style-grouped .wprm-recipe-ingredient-details-container .wprm-recipe-ingredient-notes{display:block}.rtl .wprm-ingredient-style-grouped ul.wprm-recipe-ingredients li.wprm-recipe-ingredient{padding-left:10px;padding-right:0}.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.wprm-recipe-ingredients-has-images li.wprm-recipe-ingredient,.wprm-ingredient-style-table-2-align.wprm-recipe-ingredients-has-images li.wprm-recipe-ingredient,.wprm-ingredient-style-table-3.wprm-recipe-ingredients-has-images li.wprm-recipe-ingredient,.wprm-ingredient-style-table-3-align.wprm-recipe-ingredients-has-images li.wprm-recipe-ingredient{align-items:center}.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;padding-right:5px}.wprm-recipe-instruction-ingredients-inline .wprm-recipe-instruction-ingredient:last-child{padding-right:0}.rtl .wprm-recipe-instruction-ingredients-inline .wprm-recipe-instruction-ingredient{display:inline-block;padding-right:0;padding-left:5px}.rtl .wprm-recipe-instruction-ingredients-inline .wprm-recipe-instruction-ingredient:first-child{padding-left:5px}.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-temperature-container .wprm-temperature-icon img{display:inline-block;width:1.6em;height:auto;vertical-align:text-bottom;margin-bottom:-0.2em}.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-toggle-switch{position:relative;display:inline-block;width:40px;height:20px}.wprm-toggle-switch input{opacity:0;width:0;height:0;margin:0;padding:0}.wprm-toggle-switch .wprm-toggle-switch-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#cccccc;-webkit-transition:.4s;transition:.4s}.wprm-toggle-switch .wprm-toggle-switch-slider:before{position:absolute;content:"";height:80%;left:7%;right:50%;bottom:10%;background-color:white;-webkit-transition:.4s;transition:.4s}.wprm-toggle-switch input:checked+.wprm-toggle-switch-slider{background-color:#333333 !important}.wprm-toggle-switch input:focus+.wprm-toggle-switch-slider{box-shadow:0 0 0 3px rgba(0,0,0,0.12)}.wprm-toggle-switch input:checked+.wprm-toggle-switch-slider:before{left:50%;right:7%}.wprm-toggle-switch-rounded .wprm-toggle-switch-slider:before{border-radius:50%}.wprm-toggle-container{display:inline-flex;align-items:stretch;border:1px solid #333333;flex-shrink:0;overflow:hidden}.wprm-toggle-container button.wprm-toggle{display:inline-block;padding:5px 10px;font-size:inherit;line-height:inherit;font-weight:inherit;text-transform:inherit;letter-spacing:inherit;text-decoration:none;white-space:nowrap;border:none;border-radius:0;box-shadow:none}.wprm-toggle-container button.wprm-toggle.wprm-toggle-active .wprm-toggle-icon-inactive{display:none}.wprm-toggle-container button.wprm-toggle:not(.wprm-toggle-active){background:none !important;color:inherit !important}.wprm-toggle-container button.wprm-toggle:not(.wprm-toggle-active) .wprm-toggle-icon-active{display:none}.wprm-toggle-container button.wprm-toggle .wprm-toggle-icon{margin:0}.wprm-toggle-container button.wprm-toggle .wprm-toggle-icon svg{margin-top:-0.3em}.wprm-toggle-container button.wprm-toggle .wprm-toggle-icon+.wprm-toggle-text{margin-left:10px}.wprm-recipe-header+.wprm-recipe-video{margin-top:10px}
6
 
7
  .wprm-recipe-advanced-servings-container{margin:5px 0;display:flex;align-items:center;flex-wrap:wrap}.wprm-recipe-advanced-servings-container a.wprm-recipe-advanced-servings-input,.wprm-recipe-advanced-servings-container a.wprm-recipe-advanced-servings-reset{text-decoration:none}.wprm-recipe-advanced-servings-container .wprm-recipe-advanced-servings-input-unit{margin-left:3px}.wprm-recipe-advanced-servings-container .wprm-recipe-advanced-servings-input-shape{margin-left:5px}.wprm-recipe-advanced-servings-container .wprm-recipe-advanced-servings-reset{font-size:0.8em}.wprm-main-container-preview .wprm-recipe-advanced-servings-container a{cursor:pointer}.wprm-recipe-equipment-container,.wprm-recipe-ingredients-container,.wprm-recipe-instructions-container{counter-reset:wprm-advanced-list-counter}ul.wprm-advanced-list.wprm-advanced-list-reset{counter-reset:wprm-advanced-list-counter}ul.wprm-advanced-list li{list-style-type:none}ul.wprm-advanced-list li:before{counter-increment:wprm-advanced-list-counter;content:counter(wprm-advanced-list-counter);display:flex;align-items:center;justify-content:center;float:left;font-weight:bold;margin:2px 0 0 -32px;border-radius:100%;border:0}.rtl ul.wprm-advanced-list li:before{float:right;margin:2px -32px 0 0}.wprm-checkbox-container{margin-left:-16px}.rtl .wprm-checkbox-container{margin-left:0;margin-right:-16px}.wprm-checkbox-container input[type="checkbox"]{width:16px !important;margin:0 !important;opacity:0}.wprm-checkbox-container label.wprm-checkbox-label{position:relative;display:inline !important;margin:0 !important;left:0;padding-left:26px}.wprm-checkbox-container label::before,.wprm-checkbox-container label::after{position:absolute;content:"";display:inline-block}.rtl ​.wprm-checkbox-container label::before{right:0}.rtl .wprm-checkbox-container label::after{right:5px}.wprm-checkbox-container label::before{height:18px;width:18px;border:1px solid;left:0;top:0}.wprm-checkbox-container label::after{height:5px;width:9px;border-left:2px solid;border-bottom:2px solid;transform:rotate(-45deg);left:5px;top:5px}.wprm-checkbox-container input[type="checkbox"]+label::after{content:none}.wprm-checkbox-container input[type="checkbox"]:checked+label::after{content:""}.wprm-checkbox-container input[type="checkbox"]:focus+label::before{outline:#3b99fc auto 5px}.wprm-recipe-equipment li,.wprm-recipe-ingredients li,.wprm-recipe-instructions li{position:relative}.wprm-recipe-equipment li .wprm-checkbox-container,.wprm-recipe-ingredients li .wprm-checkbox-container,.wprm-recipe-instructions li .wprm-checkbox-container{display:inline-block;position:absolute;left:-32px;top:0.25em;line-height:0.9em}.wprm-recipe-equipment li.wprm-checkbox-is-checked,.wprm-recipe-ingredients li.wprm-checkbox-is-checked,.wprm-recipe-instructions li.wprm-checkbox-is-checked{text-decoration:line-through}.wprm-recipe-equipment li.wprm-checkbox-is-checked .wprm-recipe-instruction-ingredient,.wprm-recipe-ingredients li.wprm-checkbox-is-checked .wprm-recipe-instruction-ingredient,.wprm-recipe-instructions li.wprm-checkbox-is-checked .wprm-recipe-instruction-ingredient{text-decoration:line-through}.rtl .wprm-recipe-equipment li .wprm-checkbox-container,.rtl .wprm-recipe-ingredients li .wprm-checkbox-container,.rtl .wprm-recipe-instructions li .wprm-checkbox-container{left:inherit;right:-32px}.wprm-list-checkbox-container:before{display:none !important}.wprm-list-checkbox-container.wprm-list-checkbox-checked{text-decoration:line-through}.wprm-list-checkbox-container .wprm-list-checkbox:hover{cursor:pointer}.wprm-recipe-equipment-images .eafl-disclaimer,.wprm-recipe-equipment-grid .eafl-disclaimer{display:none}.wprm-recipe-equipment-images{margin:5px -5px;display:flex;flex-wrap:wrap}.wprm-recipe-equipment-images.wprm-recipe-equipment-images-align-center{justify-content:center}.wprm-recipe-equipment-images.wprm-recipe-equipment-images-align-right{justify-content:flex-end}.wprm-recipe-equipment-images.wprm-recipe-equipment-images-align-spaced{justify-content:space-evenly}.wprm-recipe-equipment-images a{border:0 !important;background:0 !important;box-shadow:none !important;float:none !important;margin:0 !important;padding:0 !important;opacity:1 !important}.wprm-recipe-equipment-images .wprm-recipe-equipment-item{margin:5px}.wprm-recipe-equipment-images .wprm-recipe-equipment-item img{margin:0}.wprm-recipe-equipment-images .wprm-recipe-equipment-item .wprm-recipe-equipment-name{text-align:center}.wprm-recipe-equipment-grid{margin:5px -5px}.wprm-recipe-equipment-grid .wprm-recipe-equipment-item{margin:5px;text-align:center;max-width:100%;overflow:hidden}.wprm-recipe-equipment-grid .wprm-recipe-equipment-item img{margin:0 auto;max-width:100%}.wprm-recipe-equipment-grid .wprm-recipe-equipment-item .wprm-recipe-equipment-name{text-align:center}@media screen and (min-width: 400px){.wprm-recipe-equipment-grid .wprm-recipe-equipment-grid-row{display:flex}.wprm-recipe-equipment-grid .wprm-recipe-equipment-item{flex:1 1 50%}.wprm-recipe-equipment-grid.wprm-recipe-equipment-grid-columns-1 .wprm-recipe-equipment-item{flex:1 1 100%}}@media screen and (min-width: 550px){.wprm-recipe-equipment-grid .wprm-recipe-equipment-item{flex:1 1 33.33%}.wprm-recipe-equipment-grid.wprm-recipe-equipment-grid-columns-1 .wprm-recipe-equipment-item{flex:1 1 100%}.wprm-recipe-equipment-grid.wprm-recipe-equipment-grid-columns-2 .wprm-recipe-equipment-item{flex:1 1 50%}.wprm-recipe-equipment-grid.wprm-recipe-equipment-grid-columns-3 .wprm-recipe-equipment-item{flex:1 1 33.33%}}@media screen and (min-width: 650px){.wprm-recipe-equipment-grid.wprm-recipe-equipment-grid-columns-1 .wprm-recipe-equipment-item{flex:1 1 100%}.wprm-recipe-equipment-grid.wprm-recipe-equipment-grid-columns-2 .wprm-recipe-equipment-item{flex:1 1 50%}.wprm-recipe-equipment-grid.wprm-recipe-equipment-grid-columns-3 .wprm-recipe-equipment-item{flex:1 1 33.33%}.wprm-recipe-equipment-grid.wprm-recipe-equipment-grid-columns-4 .wprm-recipe-equipment-item{flex:1 1 25%}}.wprm-nutrition-label,html body .wprm-recipe-container .wprm-nutrition-label{display:inline-block;max-width:250px;border:1px solid #333;padding:5px;font-family:Arial, Helvetica, sans-serif;font-size:12px;line-height:16px;text-align:left !important;color:black}.wprm-nutrition-label .nutrition-title,html body .wprm-recipe-container .wprm-nutrition-label .nutrition-title{font-weight:bold;font-size:24px;line-height:24px}.wprm-nutrition-label .nutrition-serving,html body .wprm-recipe-container .wprm-nutrition-label .nutrition-serving{font-size:10px;line-height:14px;font-weight:bold}.wprm-nutrition-label .nutrition-item,.wprm-nutrition-label .nutrition-sub-item,html body .wprm-recipe-container .wprm-nutrition-label .nutrition-item,html body .wprm-recipe-container .wprm-nutrition-label .nutrition-sub-item{border-top:1px solid #333;clear:both}.wprm-nutrition-label .nutrition-sub-item,html body .wprm-recipe-container .wprm-nutrition-label .nutrition-sub-item{margin-left:14px}.wprm-nutrition-label .nutrition-percentage,html body .wprm-recipe-container .wprm-nutrition-label .nutrition-percentage{float:right}.wprm-nutrition-label .nutrition-line,html body .wprm-recipe-container .wprm-nutrition-label .nutrition-line{background-color:#333;height:5px;font-size:1px}.wprm-nutrition-label .nutrition-line.nutrition-line-big,html body .wprm-recipe-container .wprm-nutrition-label .nutrition-line.nutrition-line-big{height:10px}.wprm-nutrition-label .nutrition-warning,html body .wprm-recipe-container .wprm-nutrition-label .nutrition-warning{border-top:1px solid #333;clear:both;padding-top:5px;font-size:10px;color:#999}.rtl .wprm-nutrition-label,html body.rtl .wprm-recipe-container .wprm-nutrition-label{text-align:right !important}.rtl .wprm-nutrition-label .nutrition-sub-item,html body.rtl .wprm-recipe-container .wprm-nutrition-label .nutrition-sub-item{margin-left:0;margin-right:14px}.rtl .wprm-nutrition-label .nutrition-percentage,html body.rtl .wprm-recipe-container .wprm-nutrition-label .nutrition-percentage{float:left}.no-js .wprm-recipe-private-notes-header,.no-js .wprm-private-notes-container{display:none}.wprm-private-notes-container:not(.wprm-private-notes-container-disabled){cursor:pointer}.wprm-private-notes-container .wprm-private-notes-user,.wprm-private-notes-container .wprm-private-notes-input{display:none}.wprm-private-notes-container.wprm-private-notes-has-notes .wprm-private-notes-placeholder{display:none}.wprm-private-notes-container.wprm-private-notes-has-notes .wprm-private-notes-user{display:block}.wprm-private-notes-container.wprm-private-notes-editing .wprm-private-notes-placeholder,.wprm-private-notes-container.wprm-private-notes-editing .wprm-private-notes-user{display:none}.wprm-private-notes-container.wprm-private-notes-editing .wprm-private-notes-input{display:block}.wprm-private-notes-container .wprm-private-notes-user{white-space:pre-wrap}.wprm-private-notes-container .wprm-private-notes-input{resize:none;width:100%;height:100px;padding:5px;overflow:hidden;box-sizing:border-box}.wprm-print .wprm-private-notes-container{cursor:default}.wprm-print .wprm-private-notes-container .wprm-private-notes-placeholder,.wprm-print .wprm-private-notes-container .wprm-private-notes-input{display:none !important}.wprm-print .wprm-private-notes-container .wprm-private-notes-user{display:block !important}input[type=number].wprm-recipe-servings{display:inline;width:60px;margin:0;padding:5px}.wprm-recipe-servings-text-buttons-container{display:inline-flex}.wprm-recipe-servings-text-buttons-container input[type=text].wprm-recipe-servings{display:inline;width:40px;margin:0;padding:0;vertical-align:top;text-align:center;outline:none;border-radius:0 !important}.wprm-recipe-servings-text-buttons-container input[type=text].wprm-recipe-servings,.wprm-recipe-servings-text-buttons-container .wprm-recipe-servings-change{border:1px solid #333333;height:30px;user-select:none;font-size:16px}.wprm-recipe-servings-text-buttons-container .wprm-recipe-servings-change{display:inline-block;width:20px;line-height:26px;background:#333333;color:white;text-align:center;cursor:pointer;border-radius:3px}.wprm-recipe-servings-text-buttons-container .wprm-recipe-servings-change:active{font-weight:bold}.wprm-recipe-servings-text-buttons-container .wprm-recipe-servings-change.wprm-recipe-servings-decrement{border-right:none;border-top-right-radius:0 !important;border-bottom-right-radius:0 !important}.wprm-recipe-servings-text-buttons-container .wprm-recipe-servings-change.wprm-recipe-servings-increment{border-left:none;border-top-left-radius:0 !important;border-bottom-left-radius:0 !important}.wprm-recipe-servings-container .tippy-box{padding:5px 10px}input[type=range].wprm-recipe-servings-slider{-webkit-appearance:none;width:100%;min-width:150px;margin:0;background:none;border:0}input[type=range].wprm-recipe-servings-slider:focus{outline:none}input[type=range].wprm-recipe-servings-slider::-webkit-slider-runnable-track{width:100%;height:9.2px;cursor:pointer;box-shadow:0.5px 0.5px 1px #000000, 0px 0px 0.5px #0d0d0d;background:#aaaaaa;border-radius:1.3px;border:0.5px solid #010101}input[type=range].wprm-recipe-servings-slider::-webkit-slider-thumb{box-shadow:1px 1px 1px #000000, 0px 0px 1px #0d0d0d;border:0.7px solid #000000;height:22px;width:10px;border-radius:3px;background:#ffffff;cursor:pointer;-webkit-appearance:none;margin-top:-6.9px}input[type=range].wprm-recipe-servings-slider:focus::-webkit-slider-runnable-track{background:#bcbcbc}input[type=range].wprm-recipe-servings-slider::-moz-range-track{width:100%;height:9.2px;cursor:pointer;box-shadow:0.5px 0.5px 1px #000000, 0px 0px 0.5px #0d0d0d;background:#aaaaaa;border-radius:1.3px;border:0.5px solid #010101}input[type=range].wprm-recipe-servings-slider::-moz-range-thumb{box-shadow:1px 1px 1px #000000, 0px 0px 1px #0d0d0d;border:0.7px solid #000000;height:22px;width:10px;border-radius:3px;background:#ffffff;cursor:pointer}input[type=range].wprm-recipe-servings-slider::-ms-track{width:100%;height:9.2px;cursor:pointer;background:transparent;border-color:transparent;color:transparent}input[type=range].wprm-recipe-servings-slider::-ms-fill-lower{background:#989898;border:0.5px solid #010101;border-radius:2.6px;box-shadow:0.5px 0.5px 1px #000000, 0px 0px 0.5px #0d0d0d}input[type=range].wprm-recipe-servings-slider::-ms-fill-upper{background:#aaaaaa;border:0.5px solid #010101;border-radius:2.6px;box-shadow:0.5px 0.5px 1px #000000, 0px 0px 0.5px #0d0d0d}input[type=range].wprm-recipe-servings-slider::-ms-thumb{box-shadow:1px 1px 1px #000000, 0px 0px 1px #0d0d0d;border:0.7px solid #000000;height:22px;width:10px;border-radius:3px;background:#ffffff;cursor:pointer;height:9.2px}input[type=range].wprm-recipe-servings-slider:focus::-ms-fill-lower{background:#aaaaaa}input[type=range].wprm-recipe-servings-slider:focus::-ms-fill-upper{background:#bcbcbc}.wprm-recipe-tag-term{display:inline-flex;align-items:center;margin:5px}.wprm-recipe-tag-term .wprm-recipe-tag-term-image{display:flex}.wprm-recipe-tag-term.wprm-recipe-tag-image-align-left{flex-direction:row}.wprm-recipe-tag-term.wprm-recipe-tag-image-align-left .wprm-recipe-tag-term-image{margin-right:5px}.wprm-recipe-tag-term.wprm-recipe-tag-image-align-right{flex-direction:row-reverse}.wprm-recipe-tag-term.wprm-recipe-tag-image-align-right .wprm-recipe-tag-term-image{margin-left:5px}.wprm-recipe-tag-term.wprm-recipe-tag-image-align-top{flex-direction:column}.wprm-recipe-tag-term.wprm-recipe-tag-image-align-top .wprm-recipe-tag-term-image{margin-bottom:5px}.wprm-recipe-tag-term.wprm-recipe-tag-image-align-bottom{flex-direction:column-reverse}.wprm-recipe-tag-term.wprm-recipe-tag-image-align-bottom .wprm-recipe-tag-term-image{margin-top:5px}
8
 
dist/admin-manage.css CHANGED
@@ -20,5 +20,5 @@
20
 
21
  .wprm-admin-manage-shortcode-container{display:flex;align-items:center}.wprm-manage-recipes-nutrition-container{width:100%}.wprm-manage-recipes-nutrition-container .wprm-manage-recipes-nutrition{display:flex;width:100%}.wprm-manage-recipes-nutrition-container .wprm-manage-recipes-nutrition .wprm-manage-recipes-nutrition-label{flex:auto;margin-right:5px}.wprm-manage-recipes-nutrition-container .wprm-manage-recipes-nutrition .wprm-manage-recipes-nutrition-value-unit{flex:0 0 75px}.wprm-manage-recipes-nutrition-container .wprm-manage-recipes-nutrition .wprm-manage-recipes-nutrition-value-unit .wprm-manage-recipes-nutrition-unit{margin-left:2px;font-size:10px}.wprm-admin-manage-image{display:block;max-width:75px;max-height:75px;margin:0 auto}.wprm-admin-manage-seo-indicator{width:100%;height:14px;border:1px solid #23282d;border-radius:4px;background-color:white;display:flex;cursor:pointer}.wprm-admin-manage-seo-indicator .wprm-admin-manage-seo-indicator-block{flex:0 0 25%;height:100%}.wprm-admin-manage-seo-indicator .wprm-admin-manage-seo-indicator-block:nth-child(1){border-top-left-radius:3px;border-bottom-left-radius:3px}.wprm-admin-manage-seo-indicator .wprm-admin-manage-seo-indicator-block:nth-child(4){border-top-right-radius:3px;border-bottom-right-radius:3px}.wprm-admin-manage-seo-indicator.wprm-admin-manage-seo-indicator-other,.wprm-admin-manage-seo-indicator.wprm-admin-manage-seo-indicator-missing{display:block;font-size:10px;line-height:10px;text-align:center}.wprm-admin-manage-seo-indicator.wprm-admin-manage-seo-indicator-missing{border-color:#921e12;color:#921e12}.wprm-admin-manage-seo-indicator.wprm-admin-manage-seo-indicator-bad{border-color:#921e12}.wprm-admin-manage-seo-indicator.wprm-admin-manage-seo-indicator-bad .wprm-admin-manage-seo-indicator-block:nth-child(1){background-color:#e74c3c}.wprm-admin-manage-seo-indicator.wprm-admin-manage-seo-indicator-warning{border-color:#7b410e}.wprm-admin-manage-seo-indicator.wprm-admin-manage-seo-indicator-warning .wprm-admin-manage-seo-indicator-block:nth-child(1),.wprm-admin-manage-seo-indicator.wprm-admin-manage-seo-indicator-warning .wprm-admin-manage-seo-indicator-block:nth-child(2){background-color:#e67e22}.wprm-admin-manage-seo-indicator.wprm-admin-manage-seo-indicator-rating{border-color:#796307}.wprm-admin-manage-seo-indicator.wprm-admin-manage-seo-indicator-rating .wprm-admin-manage-seo-indicator-block:nth-child(1),.wprm-admin-manage-seo-indicator.wprm-admin-manage-seo-indicator-rating .wprm-admin-manage-seo-indicator-block:nth-child(2),.wprm-admin-manage-seo-indicator.wprm-admin-manage-seo-indicator-rating .wprm-admin-manage-seo-indicator-block:nth-child(3){background-color:#f1c40f}.wprm-admin-manage-seo-indicator.wprm-admin-manage-seo-indicator-good{border-color:#104627}.wprm-admin-manage-seo-indicator.wprm-admin-manage-seo-indicator-good .wprm-admin-manage-seo-indicator-block{background-color:#27ae60}.wprm-admin-manage-recipes-parent-post-container{width:100%;display:flex;align-items:center}.wprm-admin-manage-recipes-parent-post-container .wprm-admin-icon{margin-right:5px}.wprm-admin-manage-recipes-ratings-container{width:100%;display:flex;align-items:center}.wprm-admin-manage-recipes-ratings-container .wprm-admin-manage-recipes-ratings-average{flex:0 0 40px;margin-right:10px;text-align:right;font-weight:bold}.wprm-admin-manage-recipes-ratings-container .wprm-admin-manage-recipes-ratings-details{font-size:10px;display:flex;flex-direction:column}.wprm-admin-manage-recipes-ratings-container .wprm-admin-manage-recipes-ratings-details .wprm-admin-manage-recipes-ratings-details-none{opacity:0.5}.wprm-admin-manage-recipes-ratings-container .wprm-admin-manage-recipes-ratings-details a{margin-left:2px;opacity:0.7;text-decoration:none}.wprm-admin-manage-recipes-ratings-container .wprm-admin-manage-recipes-ratings-details a:hover{opacity:1}
22
 
23
- .wprm-manage-ingredients-group-container{display:flex;align-items:center}.wprm-manage-ingredients-group-container span{margin-left:5px}.wprm-manage-ingredients-eafl-container{display:flex;align-items:center}.wprm-manage-ingredients-eafl-container .wprm-manage-ingredients-eafl-details{margin-left:5px;font-size:11px}.wprm-manage-ingredients-link-container{display:flex;align-items:center}.wprm-manage-ingredients-link-container a{margin-left:5px;font-size:11px}.wprm-manage-image-preview{display:flex}.wprm-manage-image-preview img{max-width:80px;height:auto;cursor:pointer;margin-right:2px}.wprm-manage-equipment-affiliate-html-container{display:flex;align-items:center}.wprm-manage-equipment-affiliate-html-container .wprm-manage-equipment-affiliate-html{margin-left:5px;font-size:12px;line-height:12px;overflow-wrap:break-word;word-break:break-all;white-space:normal}
24
 
20
 
21
  .wprm-admin-manage-shortcode-container{display:flex;align-items:center}.wprm-manage-recipes-nutrition-container{width:100%}.wprm-manage-recipes-nutrition-container .wprm-manage-recipes-nutrition{display:flex;width:100%}.wprm-manage-recipes-nutrition-container .wprm-manage-recipes-nutrition .wprm-manage-recipes-nutrition-label{flex:auto;margin-right:5px}.wprm-manage-recipes-nutrition-container .wprm-manage-recipes-nutrition .wprm-manage-recipes-nutrition-value-unit{flex:0 0 75px}.wprm-manage-recipes-nutrition-container .wprm-manage-recipes-nutrition .wprm-manage-recipes-nutrition-value-unit .wprm-manage-recipes-nutrition-unit{margin-left:2px;font-size:10px}.wprm-admin-manage-image{display:block;max-width:75px;max-height:75px;margin:0 auto}.wprm-admin-manage-seo-indicator{width:100%;height:14px;border:1px solid #23282d;border-radius:4px;background-color:white;display:flex;cursor:pointer}.wprm-admin-manage-seo-indicator .wprm-admin-manage-seo-indicator-block{flex:0 0 25%;height:100%}.wprm-admin-manage-seo-indicator .wprm-admin-manage-seo-indicator-block:nth-child(1){border-top-left-radius:3px;border-bottom-left-radius:3px}.wprm-admin-manage-seo-indicator .wprm-admin-manage-seo-indicator-block:nth-child(4){border-top-right-radius:3px;border-bottom-right-radius:3px}.wprm-admin-manage-seo-indicator.wprm-admin-manage-seo-indicator-other,.wprm-admin-manage-seo-indicator.wprm-admin-manage-seo-indicator-missing{display:block;font-size:10px;line-height:10px;text-align:center}.wprm-admin-manage-seo-indicator.wprm-admin-manage-seo-indicator-missing{border-color:#921e12;color:#921e12}.wprm-admin-manage-seo-indicator.wprm-admin-manage-seo-indicator-bad{border-color:#921e12}.wprm-admin-manage-seo-indicator.wprm-admin-manage-seo-indicator-bad .wprm-admin-manage-seo-indicator-block:nth-child(1){background-color:#e74c3c}.wprm-admin-manage-seo-indicator.wprm-admin-manage-seo-indicator-warning{border-color:#7b410e}.wprm-admin-manage-seo-indicator.wprm-admin-manage-seo-indicator-warning .wprm-admin-manage-seo-indicator-block:nth-child(1),.wprm-admin-manage-seo-indicator.wprm-admin-manage-seo-indicator-warning .wprm-admin-manage-seo-indicator-block:nth-child(2){background-color:#e67e22}.wprm-admin-manage-seo-indicator.wprm-admin-manage-seo-indicator-rating{border-color:#796307}.wprm-admin-manage-seo-indicator.wprm-admin-manage-seo-indicator-rating .wprm-admin-manage-seo-indicator-block:nth-child(1),.wprm-admin-manage-seo-indicator.wprm-admin-manage-seo-indicator-rating .wprm-admin-manage-seo-indicator-block:nth-child(2),.wprm-admin-manage-seo-indicator.wprm-admin-manage-seo-indicator-rating .wprm-admin-manage-seo-indicator-block:nth-child(3){background-color:#f1c40f}.wprm-admin-manage-seo-indicator.wprm-admin-manage-seo-indicator-good{border-color:#104627}.wprm-admin-manage-seo-indicator.wprm-admin-manage-seo-indicator-good .wprm-admin-manage-seo-indicator-block{background-color:#27ae60}.wprm-admin-manage-recipes-parent-post-container{width:100%;display:flex;align-items:center}.wprm-admin-manage-recipes-parent-post-container .wprm-admin-icon{margin-right:5px}.wprm-admin-manage-recipes-ratings-container{width:100%;display:flex;align-items:center}.wprm-admin-manage-recipes-ratings-container .wprm-admin-manage-recipes-ratings-average{flex:0 0 40px;margin-right:10px;text-align:right;font-weight:bold}.wprm-admin-manage-recipes-ratings-container .wprm-admin-manage-recipes-ratings-details{font-size:10px;display:flex;flex-direction:column}.wprm-admin-manage-recipes-ratings-container .wprm-admin-manage-recipes-ratings-details .wprm-admin-manage-recipes-ratings-details-none{opacity:0.5}.wprm-admin-manage-recipes-ratings-container .wprm-admin-manage-recipes-ratings-details a{margin-left:2px;opacity:0.7;text-decoration:none}.wprm-admin-manage-recipes-ratings-container .wprm-admin-manage-recipes-ratings-details a:hover{opacity:1}
22
 
23
+ .wprm-manage-ingredients-group-container{display:flex;align-items:center}.wprm-manage-ingredients-group-container span{margin-left:5px}.wprm-manage-ingredients-eafl-container{display:flex;align-items:center}.wprm-manage-ingredients-eafl-container .wprm-manage-ingredients-eafl-details{margin-left:5px;font-size:11px}.wprm-manage-ingredients-link-container{display:flex;align-items:center}.wprm-manage-ingredients-link-container a{margin-left:5px;font-size:11px}.wprm-manage-product-container{display:flex;align-items:center}.wprm-manage-product-container a{margin-left:5px}.wprm-manage-image-preview{display:flex}.wprm-manage-image-preview img{max-width:80px;height:auto;cursor:pointer;margin-right:2px}.wprm-manage-equipment-affiliate-html-container{display:flex;align-items:center}.wprm-manage-equipment-affiliate-html-container .wprm-manage-equipment-affiliate-html{margin-left:5px;font-size:12px;line-height:12px;overflow-wrap:break-word;word-break:break-all;white-space:normal}
24
 
dist/admin-modal.js CHANGED
@@ -1,11 +1,11 @@
1
- var WPRecipeMaker;(self.webpackChunkWPRecipeMaker=self.webpackChunkWPRecipeMaker||[]).push([[97],{5831:function(e,t,r){"use strict";r.d(t,{L:function(){return s},o:function(){return a}});r(38472),r(54883),r(68995),r(39275),r(22321),r(29897),r(11592),r(12798),r(67838);var n=r(6),i=r.n(n),o={"¼":"1/4","½":"1/2","¾":"3/4","⅐":"1/7","⅑":"1/9","⅒":"1/10","⅓":"1/3","⅔":"2/3","⅕":"1/5","⅖":"2/5","⅗":"3/5","⅘":"4/5","⅙":"1/6","⅚":"5/6","⅛":"1/8","⅜":"3/8","⅝":"5/8","⅞":"7/8"};function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=e,a=!1;if(r){var s=void 0!==window.wprmp_public?wprmp_public.settings.fractions_enabled:wprmp_admin.settings.fractions_enabled;if(s){var u=void 0!==window.wprmp_public?wprmp_public.settings.fractions_use_mixed:wprmp_admin.settings.fractions_use_mixed,l=void 0!==window.wprmp_public?wprmp_public.settings.fractions_use_symbols:wprmp_admin.settings.fractions_use_symbols,c=parseInt(void 0!==window.wprmp_public?wprmp_public.settings.fractions_max_denominator:wprmp_admin.settings.fractions_max_denominator);c=c>1?c:8;var d=i()(e,c,u);if(d&&3===d.length&&!isNaN(d[0])&&!isNaN(d[1])&&!isNaN(d[2])){var p="";if(0<d[0]&&(p+="".concat(d[0]," ")),0<d[1]?0<d[2]&&(p+=1===d[2]?d[1]:"".concat(d[1],"/").concat(d[2])):0===d[0]&&(p+="1/".concat(c)),p){if(l)for(var f of(p=" "+p+" ",Object.keys(o))){var m=o[f];p=p.replace(" ".concat(m," ")," ".concat(f," "))}n=p.trim(),a=!0}}}}if(!a){t=parseInt(t),(isNaN(t)||t<0)&&(t=0);do{if(n=parseFloat(parseFloat(e).toFixed(t)),3<++t)break}while(0==n);n=""+n;var h=void 0!==window.wprmp_public?wprmp_public.settings.decimal_separator:wprmp_admin.settings.decimal_separator;"comma"===h&&(n=n.replace(".",","))}return n}function s(e){var t=(e=(e=(e=(e=(e=((e=(e=(e=""+e).replace(",",".")).replace(" to ","-"))+"").replace(/(\u00BC|\u00BD|\u00BE|\u2150|\u2151|\u2152|\u2153|\u2154|\u2155|\u2156|\u2157|\u2158|\u2159|\u215A|\u215B|\u215C|\u215D|\u215E)/,(function(e,t){return" "+o[t]}))).replace(/(<([^>]+)>)/gi,"")).replace(/(\[([^\]]+)\])/gi,"")).replace(/[^\d\s\.\/-]/gi,"")).trim()).split(" "),r=!1;if(""!==e){r=0;for(var n=0;n<t.length;n++)if(""!==t[n].trim()){var i=t[n].split("/",2),a=parseFloat(i[0]);if(void 0!==i[1]){var s=parseFloat(i[1]);0!==s&&(a/=s)}isNaN(a)||(r+=a)}}return r}},80202:function(e,t,r){"use strict";r.r(t);var n=r(73961),i=r(89526),o=r(34823),a=r.n(o),s=r(48618),u=r(52082),l=r(99237),c=r(95075),d=e=>{var t=!1,r=!!e.help&&e.help,n="button";if(e.required&&(!wprm_admin.addons.hasOwnProperty(e.required)||!0!==wprm_admin.addons[e.required]))if(t=!0,"premium"!==e.required){var o=e.required[0].toUpperCase()+e.required.substring(1);r="WP Recipe Maker ".concat(o," Bundle Only")}else r="WP Recipe Maker Premium Only";return e.isPrimary&&(n+=" button-primary"),t&&(n+=" wprm-button-required"),i.createElement(c.Z,{content:r},i.createElement("button",{className:n,tabIndex:e.disableTab?"-1":null,onClick:t?()=>{confirm("Want to learn more about the version required for this feature?")&&window.open("https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/","_blank")}:e.onClick},e.children))},p=r(96005),f=r(86605),m=e=>{var t=!!e.action&&e.action.type,r=[{value:"delete",label:(0,u.S)("Delete Actions"),default:!1}];return i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-bulk-edit-label"},(0,u.S)("Select an action to perform:")),i.createElement("div",{className:"wprm-admin-modal-bulk-edit-actions"},r.map((r=>i.createElement("div",{className:"wprm-admin-modal-bulk-edit-action",key:r.value},i.createElement("input",{type:"radio",value:r.value,name:"wprm-admin-radio-bulk-edit-action",id:"wprm-admin-radio-bulk-edit-action-".concat(r.value),checked:t===r.value,onChange:()=>{var t={type:r.value,options:r.default};e.onActionChange(t)}}),i.createElement("label",{htmlFor:"wprm-admin-radio-bulk-edit-action-".concat(r.value)},r.label))))))},h=e=>{var t=!!e.action&&e.action.type,r=[{value:"reload",label:(0,u.S)("Reload Recipes"),default:!1},{value:"delete",label:(0,u.S)("Delete Saved Collections"),default:!1}];return i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-bulk-edit-label"},(0,u.S)("Select an action to perform:")),i.createElement("div",{className:"wprm-admin-modal-bulk-edit-actions"},r.map((r=>i.createElement("div",{className:"wprm-admin-modal-bulk-edit-action",key:r.value},i.createElement("input",{type:"radio",value:r.value,name:"wprm-admin-radio-bulk-edit-action",id:"wprm-admin-radio-bulk-edit-action-".concat(r.value),checked:t===r.value,onChange:()=>{var t={type:r.value,options:r.default};e.onActionChange(t)}}),i.createElement("label",{htmlFor:"wprm-admin-radio-bulk-edit-action-".concat(r.value)},r.label))))))},g=r(59905),v=r(24207);function b(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 y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){w(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function w(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var D=e=>{var t=!!e.action&&e.action.type,r=[{value:"change-link",label:(0,u.S)("Change Link"),default:""},{value:"change-nofollow",label:(0,u.S)("Change Link Nofollow"),default:"default"},{value:"change-html",label:(0,u.S)("Change Affiliate HTML"),default:""},{value:"export",label:(0,u.S)("Export Equipment"),default:!1,required:"premium"},{value:"delete",label:(0,u.S)("Delete Equipment"),default:!1}];return i.createElement("form",null,i.createElement("div",{className:"wprm-admin-modal-bulk-edit-label"},(0,u.S)("Select an action to perform:")),i.createElement("div",{className:"wprm-admin-modal-bulk-edit-actions"},r.map((r=>i.createElement("div",{className:"wprm-admin-modal-bulk-edit-action",key:r.value},i.createElement("input",{type:"radio",value:r.value,name:"wprm-admin-radio-bulk-edit-action",id:"wprm-admin-radio-bulk-edit-action-".concat(r.value),checked:t===r.value,onChange:()=>{var t={type:r.value,options:r.default};e.onActionChange(t)}}),i.createElement("label",{htmlFor:"wprm-admin-radio-bulk-edit-action-".concat(r.value)},r.label))))),t&&!1!==e.action.options&&i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-bulk-edit-label"},(0,u.S)("Action options:")),i.createElement("div",{className:"wprm-admin-modal-bulk-edit-options"},"change-link"===t&&i.createElement(g.Z,{name:"equipment-link",value:e.action.options,placeholder:(0,u.S)("Equipment Link"),onChange:t=>{var r=y(y({},e.action),{},{options:t});e.onActionChange(r)}}),"change-nofollow"===t&&i.createElement(v.Z,{id:"nofollow",options:wprm_admin_modal.options.equipment_link_nofollow,value:e.action.options,onChange:t=>{var r=y(y({},e.action),{},{options:t});e.onActionChange(r)}}),"change-html"===t&&i.createElement(g.Z,{name:"equipment-html",value:e.action.options,placeholder:(0,u.S)("Affiliate HTML"),onChange:t=>{var r=y(y({},e.action),{},{options:t});e.onActionChange(r)}}))))};function E(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){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){S(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function S(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var I=e=>{var t=!!e.action&&e.action.type,r=[{value:"change-group",label:(0,u.S)("Change Shopping List Group"),default:""},{value:"change-link",label:(0,u.S)("Change Link"),default:""},{value:"change-nofollow",label:(0,u.S)("Change Link Nofollow"),default:"default"},{value:"create-nutrition",label:(0,u.S)("Add as Custom Nutrition Ingredient"),default:!1},{value:"export",label:(0,u.S)("Export Ingredients"),default:!1,required:"premium"},{value:"delete",label:(0,u.S)("Delete Ingredients"),default:!1}];return i.createElement("form",null,i.createElement("div",{className:"wprm-admin-modal-bulk-edit-label"},(0,u.S)("Select an action to perform:")),i.createElement("div",{className:"wprm-admin-modal-bulk-edit-actions"},r.map((r=>i.createElement("div",{className:"wprm-admin-modal-bulk-edit-action",key:r.value},i.createElement("input",{type:"radio",value:r.value,name:"wprm-admin-radio-bulk-edit-action",id:"wprm-admin-radio-bulk-edit-action-".concat(r.value),checked:t===r.value,onChange:()=>{var t={type:r.value,options:r.default};e.onActionChange(t)}}),i.createElement("label",{htmlFor:"wprm-admin-radio-bulk-edit-action-".concat(r.value)},r.label))))),t&&!1!==e.action.options&&i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-bulk-edit-label"},(0,u.S)("Action options:")),i.createElement("div",{className:"wprm-admin-modal-bulk-edit-options"},"change-group"===t&&i.createElement(g.Z,{name:"shopping-list-group",value:e.action.options,placeholder:(0,u.S)("Shopping List Group"),onChange:t=>{var r=C(C({},e.action),{},{options:t});e.onActionChange(r)}}),"change-link"===t&&i.createElement(g.Z,{name:"ingredient-link",value:e.action.options,placeholder:(0,u.S)("Ingredient Link"),onChange:t=>{var r=C(C({},e.action),{},{options:t});e.onActionChange(r)}}),"change-nofollow"===t&&i.createElement(v.Z,{id:"nofollow",options:wprm_admin_modal.options.ingredient_link_nofollow,value:e.action.options,onChange:t=>{var r=C(C({},e.action),{},{options:t});e.onActionChange(r)}}))))},x=e=>{var t=!!e.action&&e.action.type,r=[{value:"delete",label:(0,u.S)("Delete Units"),default:!1}];return i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-bulk-edit-label"},(0,u.S)("Select an action to perform:")),i.createElement("div",{className:"wprm-admin-modal-bulk-edit-actions"},r.map((r=>i.createElement("div",{className:"wprm-admin-modal-bulk-edit-action",key:r.value},i.createElement("input",{type:"radio",value:r.value,name:"wprm-admin-radio-bulk-edit-action",id:"wprm-admin-radio-bulk-edit-action-".concat(r.value),checked:t===r.value,onChange:()=>{var t={type:r.value,options:r.default};e.onActionChange(t)}}),i.createElement("label",{htmlFor:"wprm-admin-radio-bulk-edit-action-".concat(r.value)},r.label))))),t&&!1!==e.action.options&&i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-bulk-edit-label"},(0,u.S)("Action options:")),i.createElement("div",{className:"wprm-admin-modal-bulk-edit-options"})))},O=e=>{var t=!!e.action&&e.action.type,r=[{value:"delete",label:(0,u.S)("Delete Ratings"),default:!1}];return i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-bulk-edit-label"},(0,u.S)("Select an action to perform:")),i.createElement("div",{className:"wprm-admin-modal-bulk-edit-actions"},r.map((r=>i.createElement("div",{className:"wprm-admin-modal-bulk-edit-action",key:r.value},i.createElement("input",{type:"radio",value:r.value,name:"wprm-admin-radio-bulk-edit-action",id:"wprm-admin-radio-bulk-edit-action-".concat(r.value),checked:t===r.value,onChange:()=>{var t={type:r.value,options:r.default};e.onActionChange(t)}}),i.createElement("label",{htmlFor:"wprm-admin-radio-bulk-edit-action-".concat(r.value)},r.label))))))},A=(r(38472),r(43636)),M=r(69347),P=(r(54883),r(68995),r(33130),r(2778)),B=r.n(P),N=r(844),k=r(17692),T=r(63661),j=r(20240),L=r(47061),F=r(59900),R=r(24269),_=r(24593),Z=r(70886),H=(r(12821),r(39874)),W=r(23554),U=(r(72144),r(72638),r(51916));function G(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,Z.Z)(e);if(t){var i=(0,Z.Z)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,_.Z)(this,r)}}function z(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}var q,V,J,Y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r=String(e).toLowerCase(),n=String(t.value).toLowerCase(),i=String(t.label).toLowerCase();return n===r||i===r},Q=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?z(Object(r),!0).forEach((function(t){(0,j.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):z(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({allowCreateWhileLoading:!1,createOptionPosition:"last"},{formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,r){return!(!e||t.some((function(t){return Y(e,t)}))||r.some((function(t){return Y(e,t)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}}),X=(q=W.S,J=V=function(e){(0,R.Z)(r,e);var t=G(r);function r(e){var n;(0,L.Z)(this,r),(n=t.call(this,e)).select=void 0,n.onChange=function(e,t){var r=n.props,i=r.getNewOptionData,o=r.inputValue,a=r.isMulti,s=r.onChange,u=r.onCreateOption,l=r.value,c=r.name;if("select-option"!==t.action)return s(e,t);var d=n.state.newOption,p=Array.isArray(e)?e:[e];if(p[p.length-1]!==d)s(e,t);else if(u)u(o);else{var f=i(o,o),m={action:"create-option",name:c};s(a?[].concat((0,T.Z)((0,H.C)(l)),[f]):f,m)}};var i=e.options||[];return n.state={newOption:void 0,options:i},n}return(0,F.Z)(r,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=e.allowCreateWhileLoading,r=e.createOptionPosition,n=e.formatCreateLabel,i=e.getNewOptionData,o=e.inputValue,a=e.isLoading,s=e.isValidNewOption,u=e.value,l=e.options||[],c=this.state.newOption;c=s(o,(0,H.C)(u),l)?i(o,n(o)):void 0,this.setState({newOption:c,options:!t&&a||!c?l:"first"===r?[c].concat((0,T.Z)(l)):[].concat((0,T.Z)(l),[c])})}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"render",value:function(){var e=this,t=this.state.options;return i.createElement(q,(0,k.Z)({},this.props,{ref:function(t){e.select=t},options:t,onChange:this.onChange}))}}]),r}(i.Component),V.defaultProps=Q,J),K=(0,U.m)(X);function $(){return $=Object.assign?Object.assign.bind():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 ee(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 te(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(r),!0).forEach((function(t){re(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ee(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function re(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class ne extends i.Component{shouldComponentUpdate(e){return this.props.id!==e.id||JSON.stringify(this.props.value)!==JSON.stringify(e.value)}render(){var e=this,t=wprm_admin_modal.categories[this.props.id].terms,r=[],n=[],o=function(t){var i={value:t.term_id,label:B().decode(t.name)};r.push(i),e.props.value.find((e=>e.term_id===t.term_id||e.name===t.term_id))&&n.push(i)};for(var a of t)o(a);var s=this.props.custom?this.props.custom:{},l=this.props.creatable?K:N.ZP;return i.createElement(l,$({isMulti:!0,options:r,value:n,placeholder:this.props.creatable?(0,u.S)("Select from list or type to create..."):(0,u.S)("Select from list..."),onChange:t=>{var r=[];if(t){var n=function(t){t.hasOwnProperty("__isNew__")&&t.__isNew__&&wprm_admin_modal.categories[e.props.id].terms.push({term_id:t.label,name:t.label});var n=wprm_admin_modal.categories[e.props.id].terms.find((e=>e.term_id===t.value));n&&r.push(n)};for(var i of t)n(i)}this.props.onChange(r)},styles:{placeholder:e=>te(te({},e),{},{color:"#444",opacity:"0.333"}),control:e=>te(te({},e),{},{backgroundColor:"white"}),container:e=>te(te({},e),{},{width:"100%",maxWidth:this.props.width?this.props.width:"100%"})}},s))}}function ie(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 oe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(r),!0).forEach((function(t){ae(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ie(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ae(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var se=e=>{var t=!!e.action&&e.action.type,r=!1,n=[];Object.keys(wprm_admin_manage.taxonomies).map(((e,t)=>{var i=e.substr(5);r||(r=i),n.push({value:i,label:wprm_admin_manage.taxonomies[e].name})}));var o=[];return 0<n.length&&o.push({value:"add-terms",label:(0,u.S)("Add Terms"),default:{taxonomy:r,terms:[]}},{value:"remove-terms",label:(0,u.S)("Remove Terms"),default:{taxonomy:r,terms:[]}}),"public"===wprm_admin.settings.post_type_structure&&(o.push({value:"change-status",label:(0,u.S)("Change Recipe Status"),default:"draft"},{value:"change-password",label:(0,u.S)("Change Password"),default:""}),wprm_admin_manage.multilingual&&"wpml"===wprm_admin_manage.multilingual.plugin&&o.push({value:"change-language",label:(0,u.S)("Change Language"),default:wprm_admin_manage.multilingual.default})),"public"!==wprm_admin.settings.post_type_structure&&"manual"!==wprm_admin.settings.recipe_use_author||o.push({value:"change-post-author",label:(0,u.S)("Change Post Author"),default:"parent"}),o.push({value:"change-type",label:(0,u.S)("Change Recipe Type"),default:"food"},{value:"change-author",label:(0,u.S)("Change Display Author"),default:{author:"default",author_name:"",author_link:""}},{value:"change-servings",label:(0,u.S)("Change Servings"),default:{servings:"",servings_unit:""}},{value:"recalculate-time",label:(0,u.S)("Recalculate Total Time"),default:!1}),wprm_admin.addons.premium&&o.push({value:"custom-nutrition-ingredient",label:(0,u.S)("Create Custom Nutrition Ingredient"),default:!1}),wprm_admin.addons.pro&&o.push({value:"switch-unit-system",label:(0,u.S)("Switch ingredient units with converted ones (does not change label)"),default:!1},{value:"change-unit-system",label:(0,u.S)("Change unit system label (does not change ingredients)"),default:"default"}),o.push({value:"print",label:(0,u.S)("Print Recipes"),default:!1},{value:"export",label:(0,u.S)("Export Recipes"),default:"recipe",required:"premium"},{value:"delete",label:(0,u.S)("Delete Recipes"),default:!1}),i.createElement("form",null,i.createElement("div",{className:"wprm-admin-modal-bulk-edit-label"},(0,u.S)("Select an action to perform:")),i.createElement("div",{className:"wprm-admin-modal-bulk-edit-actions"},o.map((r=>i.createElement("div",{className:"wprm-admin-modal-bulk-edit-action",key:r.value},i.createElement("input",{type:"radio",value:r.value,name:"wprm-admin-radio-bulk-edit-action",id:"wprm-admin-radio-bulk-edit-action-".concat(r.value),checked:t===r.value,onChange:()=>{var t={type:r.value,options:r.default};r.hasOwnProperty("required")&&(t.required=r.required),e.onActionChange(t)}}),i.createElement("label",{htmlFor:"wprm-admin-radio-bulk-edit-action-".concat(r.value)},r.label))))),t&&!1!==e.action.options&&i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-bulk-edit-label"},(0,u.S)("Action options:")),i.createElement("div",{className:"wprm-admin-modal-bulk-edit-options"},"change-status"===t&&i.createElement(v.Z,{id:"status",options:wprm_admin_modal.options.post_status,value:e.action.options,onChange:t=>{var r=oe(oe({},e.action),{},{options:t});e.onActionChange(r)}}),"change-password"===t&&i.createElement(g.Z,{name:"password",placeholder:(0,u.S)("Password"),value:e.action.options,onChange:t=>{var r=oe(oe({},e.action),{},{options:t});e.onActionChange(r)}}),"change-language"===t&&i.createElement(v.Z,{id:"language",options:Object.values(wprm_admin_manage.multilingual.languages),value:e.action.options,onChange:t=>{var r=oe(oe({},e.action),{},{options:t});e.onActionChange(r)}}),"change-post-author"===t&&i.createElement(M.Z,{options:wprm_admin_manage.authors.map((e=>({value:e.data.ID,label:"".concat(e.data.ID).concat(e.data.display_name?" - ".concat(e.data.display_name):"")}))),value:e.action.options,onChange:t=>{var r=oe(oe({},e.action),{},{options:t});e.onActionChange(r)},width:300,custom:{menuPlacement:"top",maxMenuHeight:150}}),"change-type"===t&&i.createElement(v.Z,{id:"type",options:[{value:"food",label:(0,u.S)("Food Recipe")},{value:"howto",label:(0,u.S)("How-to Instructions")},{value:"other",label:(0,u.S)("Other (no metadata)")}],value:e.action.options,onChange:t=>{var r=oe(oe({},e.action),{},{options:t});e.onActionChange(r)}}),"change-author"===t&&i.createElement(i.Fragment,null,i.createElement(M.Z,{options:wprm_admin_modal.options.author.filter((e=>"same"!==e.actual)),value:e.action.options.author,onChange:t=>{var r=oe(oe({},e.action),{},{options:{author:t,author_name:"",author_link:""}});e.onActionChange(r)},width:300,custom:{menuPlacement:"top",maxMenuHeight:150}}),"custom"===wprm_admin_modal.options.author.find((t=>t.value===e.action.options.author)).actual&&i.createElement(i.Fragment,null," ",i.createElement(g.Z,{name:"author-name",placeholder:(0,u.S)("Author Name"),value:e.action.options.author_name,onChange:t=>{var r=oe(oe({},e.action),{},{options:oe(oe({},e.action.options),{},{author_name:t})});e.onActionChange(r)}})," ",i.createElement(g.Z,{name:"author-link",placeholder:"https://bootstrapped.ventures",type:"url",value:e.action.options.author_link,onChange:t=>{var r=oe(oe({},e.action),{},{options:oe(oe({},e.action.options),{},{author_link:t})});e.onActionChange(r)}}))),"change-servings"===t&&i.createElement(A.Z,{id:"servings"},i.createElement(g.Z,{placeholder:"4",type:"number",value:0!=e.action.options.servings?e.action.options.servings:"",onChange:t=>{var r=oe(oe({},e.action),{},{options:oe(oe({},e.action.options),{},{servings:t})});e.onActionChange(r)}}),i.createElement(g.Z,{name:"servings-unit",placeholder:(0,u.S)("people"),value:e.servings_unit,onChange:t=>{var r=oe(oe({},e.action),{},{options:oe(oe({},e.action.options),{},{servings_unit:t})});e.onActionChange(r)}})),("add-terms"===t||"remove-terms"===t)&&i.createElement(i.Fragment,null,i.createElement(M.Z,{options:n,value:e.action.options.taxonomy,onChange:t=>{var r=oe(oe({},e.action),{},{options:{taxonomy:t,terms:[]}});e.onActionChange(r)},width:200,custom:{menuPlacement:"top",maxMenuHeight:150}})," ",i.createElement(ne,{id:e.action.options.taxonomy,value:e.action.options.terms,onChange:t=>{var r=oe(oe({},e.action),{},{options:{taxonomy:e.action.options.taxonomy,terms:t}});e.onActionChange(r)},custom:{menuPlacement:"top",maxMenuHeight:200}})),"change-unit-system"===t&&i.createElement(v.Z,{id:"type",options:[{value:"default",label:"".concat((0,u.S)("Use Default")," (").concat(wprm_admin_modal.unit_conversion.systems[parseInt(wprm_admin_modal.unit_conversion.default_system)].label,")")},{value:"1",label:"".concat((0,u.S)("First Unit System")," (").concat(wprm_admin_modal.unit_conversion.systems[1].label,")")},{value:"2",label:"".concat((0,u.S)("Second Unit System")," (").concat(wprm_admin_modal.unit_conversion.systems[2].label,")")}],value:e.action.options,onChange:t=>{var r=oe(oe({},e.action),{},{options:t});e.onActionChange(r)}}),"export"===t&&i.createElement(v.Z,{id:"type",options:[{value:"recipe",label:(0,u.S)("Recipes only")},{value:"with_parent",label:(0,u.S)("Recipes with their parent post")}],value:e.action.options,onChange:t=>{var r=oe(oe({},e.action),{},{options:t});e.onActionChange(r)}}))))},ue=e=>{var t=!!e.action&&e.action.type,r=[{value:"delete",label:(0,u.S)("Delete Revisions"),default:!1}];return i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-bulk-edit-label"},(0,u.S)("Select an action to perform:")),i.createElement("div",{className:"wprm-admin-modal-bulk-edit-actions"},r.map((r=>i.createElement("div",{className:"wprm-admin-modal-bulk-edit-action",key:r.value},i.createElement("input",{type:"radio",value:r.value,name:"wprm-admin-radio-bulk-edit-action",id:"wprm-admin-radio-bulk-edit-action-".concat(r.value),checked:t===r.value,onChange:()=>{var t={type:r.value,options:r.default};e.onActionChange(t)}}),i.createElement("label",{htmlFor:"wprm-admin-radio-bulk-edit-action-".concat(r.value)},r.label))))))},le=e=>{var t=!!e.action&&e.action.type,r=[{value:"export",label:(0,u.S)("Export Terms"),default:!1,required:"premium"},{value:"delete",label:(0,u.S)("Delete Terms"),default:!1}];return i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-bulk-edit-label"},(0,u.S)("Select an action to perform:")),i.createElement("div",{className:"wprm-admin-modal-bulk-edit-actions"},r.map((r=>i.createElement("div",{className:"wprm-admin-modal-bulk-edit-action",key:r.value},i.createElement("input",{type:"radio",value:r.value,name:"wprm-admin-radio-bulk-edit-action",id:"wprm-admin-radio-bulk-edit-action-".concat(r.value),checked:t===r.value,onChange:()=>{var t={type:r.value,options:r.default};e.onActionChange(t)}}),i.createElement("label",{htmlFor:"wprm-admin-radio-bulk-edit-action-".concat(r.value)},r.label))))),t&&!1!==e.action.options&&i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-bulk-edit-label"},(0,u.S)("Action options:")),i.createElement("div",{className:"wprm-admin-modal-bulk-edit-options"})))},ce=e=>{var t=!!e.action&&e.action.type,r=[{value:"delete",label:(0,u.S)("Permanently Delete Recipes"),default:!1}];return i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-bulk-edit-label"},(0,u.S)("Select an action to perform:")),i.createElement("div",{className:"wprm-admin-modal-bulk-edit-actions"},r.map((r=>i.createElement("div",{className:"wprm-admin-modal-bulk-edit-action",key:r.value},i.createElement("input",{type:"radio",value:r.value,name:"wprm-admin-radio-bulk-edit-action",id:"wprm-admin-radio-bulk-edit-action-".concat(r.value),checked:t===r.value,onChange:()=>{var t={type:r.value,options:r.default};e.onActionChange(t)}}),i.createElement("label",{htmlFor:"wprm-admin-radio-bulk-edit-action-".concat(r.value)},r.label))))))},de={analytics:{label:(0,u.S)("Actions"),elem:m},rating:{label:(0,u.S)("Ratings"),elem:O},recipe:{label:(0,u.S)("Recipes"),elem:se},revision:{label:(0,u.S)("Revisions"),elem:ue},ingredient:{label:(0,u.S)("Ingredients"),elem:I},ingredient_unit:{label:(0,u.S)("Ingredient Units"),elem:x},equipment:{label:(0,u.S)("Equipment"),elem:D},trash:{label:(0,u.S)("Recipes"),elem:ce},nutrition_ingredient:{label:(0,u.S)("Custom Nutrition Ingredients"),elem:le},collection:{label:(0,u.S)("Saved Collections"),elem:h}};Object.keys(wprm_admin_modal.categories).map((e=>{var t=wprm_admin_modal.categories[e];de[e]={label:t.label,elem:le}}));class pe extends i.Component{constructor(e){super(e),this.state={route:e.args.hasOwnProperty("route")?e.args.route:"recipe",type:e.args.hasOwnProperty("type")?e.args.type:"recipe",ids:e.args.hasOwnProperty("ids")?e.args.ids:[],action:!1,savingChanges:!1,result:!1},this.onBulkEdit=this.onBulkEdit.bind(this),this.allowCloseModal=this.allowCloseModal.bind(this)}onBulkEdit(){this.state.action&&this.setState({savingChanges:!0},(()=>{l.Z.manage.bulkEdit(this.state.route,this.state.type,this.state.ids,this.state.action).then((e=>{var t=!1;e.hasOwnProperty("result")&&(t=e.result),this.setState({savingChanges:!1,result:t},(()=>{"function"==typeof this.props.args.saveCallback&&this.props.args.saveCallback(),t||this.props.maybeCloseModal()}))}))}))}allowCloseModal(){return!this.state.savingChanges}changesMade(){return!(!this.state.action||!this.state.action.type)&&(!Array.isArray(this.state.action.options)||0!==this.state.action.options.length)}render(){var e=!!de.hasOwnProperty(this.state.type)&&de[this.state.type];if(!e)return null;var t=e.elem,r="".concat((0,u.S)("Bulk Edit")," ").concat(this.state.ids.length," ").concat(e.label);return i.createElement(i.Fragment,null,i.createElement(p.Z,{onCloseModal:this.props.maybeCloseModal},r),i.createElement("div",{className:"wprm-admin-modal-bulk-edit-container"},!1===this.state.result?i.createElement(t,{action:this.state.action,onActionChange:e=>{this.setState({action:e})}}):i.createElement("div",{dangerouslySetInnerHTML:{__html:this.state.result}})),i.createElement(f.Z,{savingChanges:this.state.savingChanges},!1===this.state.result?i.createElement(d,{isPrimary:!0,required:this.state.action&&this.state.action.hasOwnProperty("required")?this.state.action.required:null,onClick:this.onBulkEdit,disabled:!this.changesMade()},r):i.createElement(d,{isPrimary:!0,onClick:this.props.maybeCloseModal},(0,u.S)("Close"))))}}var fe=r(59612);class me extends i.Component{constructor(e){super(e),this.state={fields:e.args.fields}}render(){return i.createElement(i.Fragment,null,i.createElement(p.Z,{onCloseModal:this.props.maybeCloseModal},this.props.args.header),i.createElement("div",{className:"wprm-admin-modal-input-fields-container"},this.state.fields.map(((e,t)=>{var r=g.Z;if("textarea"===(e.hasOwnProperty("type")?e.type:"text"))r=fe.Z;return i.createElement(i.Fragment,{key:t},e.hasOwnProperty("label")&&i.createElement("div",{className:"wprm-admin-modal-input-fields-field-label"},e.label),i.createElement(r,{value:e.value,onChange:e=>{var r=[...this.state.fields];r[t].value=e,this.setState({fields:r})}}))}))),i.createElement(f.Z,{savingChanges:!1},i.createElement("button",{className:"button button-primary",onClick:()=>{"function"==typeof this.props.args.insertCallback&&this.props.args.insertCallback(this.state),this.props.maybeCloseModal()}},(0,u.S)("Change"))))}}r(39275),r(22321);function he(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 ge(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?he(Object(r),!0).forEach((function(t){ve(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):he(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ve(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var be=e=>e=(e=(e=(e=e.replace(/"/gm,"%22")).replace(/\[/gm,"%5B")).replace(/\]/gm,"%5D")).replace(/\r?\n|\r/gm,"%0A");class ye extends i.Component{render(){return i.createElement(i.Fragment,null,i.createElement(p.Z,{onCloseModal:this.props.maybeCloseModal},"WP Recipe Maker"),i.createElement("div",{className:"wprm-admin-modal-menu-container"},i.createElement("h2",null,(0,u.S)("Recipes")),i.createElement("div",{className:"wprm-admin-modal-menu-buttons"},i.createElement(d,{isPrimary:!0,onClick:()=>{var e=this.props.args;if(wprm_admin.settings.hasOwnProperty("recipe_name_from_post_title")&&wprm_admin.settings.recipe_name_from_post_title){var t=document.querySelector("#title[name=post_title]");if(t){var r=JSON.parse(JSON.stringify(wprm_admin_modal.recipe));r.name=t.value,e.recipe=r}}WPRM_Modal.open("recipe",e,!0)}},(0,u.S)("Create new Recipe")),i.createElement(d,{onClick:()=>{WPRM_Modal.open("select",{title:(0,u.S)("Insert existing Recipe"),button:(0,u.S)("Insert"),fields:{recipe:{}},insertCallback:e=>{"function"==typeof this.props.args.insertCallback&&this.props.args.insertCallback('[wprm-recipe id="'.concat(e.recipe.id,'"]'))}},!0)}},(0,u.S)("Insert existing Recipe")),i.createElement(d,{required:"premium",onClick:()=>{WPRM_Modal.open("select",{title:(0,u.S)("Create new from existing Recipe"),button:(0,u.S)("Clone Recipe"),fields:{recipe:{}},nextStepCallback:e=>{WPRM_Modal.open("recipe",ge(ge({},this.props.args),{},{recipeId:e.recipe.id,cloneRecipe:!0}),!0)}},!0)}},(0,u.S)("Create new from existing Recipe"))),i.createElement("h2",null,(0,u.S)("Recipe Snippets")),i.createElement("div",{className:"wprm-admin-modal-menu-buttons"},i.createElement(d,{help:(0,u.S)("Displays default snippet template as set in the WPRM Settings"),onClick:()=>{WPRM_Modal.open("select",{title:(0,u.S)("Full Snippet Template"),button:(0,u.S)("Insert"),fields:{recipe:{showFirst:!0}},insertCallback:e=>{if("function"==typeof this.props.args.insertCallback){var t="[wprm-recipe-snippet";t+=e.recipe&&e.recipe.id?' id="'.concat(e.recipe.id,'"]'):"]",this.props.args.insertCallback(t)}}},!0)}},(0,u.S)("Full Snippet Template")),i.createElement(d,{onClick:()=>{WPRM_Modal.open("select",{title:(0,u.S)("Jump to Recipe"),button:(0,u.S)("Insert"),fields:{recipe:{showFirst:!0}},insertCallback:e=>{if("function"==typeof this.props.args.insertCallback){var t="[wprm-recipe-jump";t+=e.recipe&&e.recipe.id?' id="'.concat(e.recipe.id,'"]'):"]",this.props.args.insertCallback(t)}}},!0)}},(0,u.S)("Jump to Recipe")),i.createElement(d,{onClick:()=>{WPRM_Modal.open("select",{title:(0,u.S)("Jump to Video"),button:(0,u.S)("Insert"),fields:{recipe:{showFirst:!0}},insertCallback:e=>{if("function"==typeof this.props.args.insertCallback){var t="[wprm-recipe-jump-video";t+=e.recipe&&e.recipe.id?' id="'.concat(e.recipe.id,'"]'):"]",this.props.args.insertCallback(t)}}},!0)}},(0,u.S)("Jump to Video")),i.createElement(d,{onClick:()=>{WPRM_Modal.open("select",{title:(0,u.S)("Print Recipe"),button:(0,u.S)("Insert"),fields:{recipe:{showFirst:!0}},insertCallback:e=>{if("function"==typeof this.props.args.insertCallback){var t="[wprm-recipe-print";t+=e.recipe&&e.recipe.id?' id="'.concat(e.recipe.id,'"]'):"]",this.props.args.insertCallback(t)}}},!0)}},(0,u.S)("Print Recipe"))),i.createElement("h2",null,(0,u.S)("Recipe Parts")),i.createElement("div",{className:"wprm-admin-modal-menu-buttons"},i.createElement(d,{required:"premium",onClick:()=>{WPRM_Modal.open("select",{title:(0,u.S)("Nutrition Label"),button:(0,u.S)("Insert"),fields:{recipe:{showFirst:!0}},insertCallback:e=>{if("function"==typeof this.props.args.insertCallback){var t="[wprm-nutrition-label";t+=e.recipe&&e.recipe.id?' id="'.concat(e.recipe.id,'"]'):"]",this.props.args.insertCallback(t)}}},!0)}},(0,u.S)("Nutrition Label")),i.createElement(d,{onClick:()=>{WPRM_Modal.open("select",{title:(0,u.S)("Recipe Video"),button:(0,u.S)("Insert"),fields:{recipe:{showFirst:!0}},insertCallback:e=>{if("function"==typeof this.props.args.insertCallback){var t="[wprm-recipe-video";t+=e.recipe&&e.recipe.id?' id="'.concat(e.recipe.id,'"]'):"]",this.props.args.insertCallback(t)}}},!0)}},(0,u.S)("Recipe Video"))),i.createElement("h2",null,(0,u.S)("Other Features")),i.createElement("div",{className:"wprm-admin-modal-menu-buttons"},i.createElement(d,{help:(0,u.S)("Use for a list of existing recipes on your website"),onClick:()=>{WPRM_Modal.open("roundup",{insertCallback:e=>{if("function"==typeof this.props.args.insertCallback){var t="[wprm-recipe-roundup-item";e.hasOwnProperty("type")&&"external"===e.type?(t+=' link="'.concat(be(e.link),'"'),t+=e.nofollow?' nofollow="1"':"",t+=e.newtab?"":' newtab="0"',t+=' name="'.concat(be(e.name),'"'),t+=' summary="'.concat(be(e.summary),'"'),t+=e.image.id?' image="'.concat(e.image.id,'"'):"",-1===e.image.id&&e.image.url&&(t+=e.image.url?' image_url="'.concat(e.image.url,'"'):"")):(t+=' id="'.concat(e.recipe.id,'"'),e.name&&(t+=' name="'.concat(be(e.name),'"')),e.summary&&(t+=' summary="'.concat(be(e.summary),'"'))),e.button&&(t+=' button="'.concat(be(e.button),'"')),t+="]",this.props.args.insertCallback(t)}}},!0)}},(0,u.S)("Recipe Roundup Item")),i.createElement(d,{required:"elite",onClick:()=>{"function"==typeof this.props.args.insertCallback&&this.props.args.insertCallback("[wprm-recipe-submission]"),this.props.maybeCloseModal()}},(0,u.S)("Recipe Submission Form")),i.createElement(d,{required:"elite",onClick:()=>{"function"==typeof this.props.args.insertCallback&&this.props.args.insertCallback("[wprm-recipe-collections]"),this.props.maybeCloseModal()}},(0,u.S)("Recipe Collections")),i.createElement(d,{required:"elite",help:(0,u.S)("Find the saved collection ID on the WP Recipe Maker > Manage > Saved Collections page"),onClick:()=>{"function"==typeof this.props.args.insertCallback&&this.props.args.insertCallback('[wprm-saved-collection id=""]'),this.props.maybeCloseModal()}},(0,u.S)("Saved Recipe Collection")))))}}var we=r(68470),De=r(55565),Ee=r.n(De),Ce=r(34133),Se=e=>{var t=null;return e.id&&(t="wprm-admin-modal-fields-group-".concat(e.id)),i.createElement(we.W_,{className:"wprm-admin-modal-fields-group",id:t,name:t},e.header?i.createElement("div",{className:"wprm-admin-modal-fields-group-header"},e.header):null,i.createElement("div",{className:"wprm-admin-modal-fields"},e.children))},Ie=e=>i.createElement(i.Fragment,null,i.createElement(A.Z,{label:(0,u.S)("Import from Text")},i.createElement(fe.Z,{placeholder:(0,u.S)("Paste or type recipe to start..."),value:"",onChange:t=>{t&&e.onModeChange("text-import",t)}})),i.createElement(A.Z,{label:(0,u.S)("Import from JSON")},i.createElement(fe.Z,{placeholder:(0,u.S)("Paste the recipe JSON data to import"),value:"",onChange:t=>{if(t)try{var r=JSON.parse(t);e.onImportJSON(r),alert((0,u.S)("The recipe has been imported."))}catch(n){alert((0,u.S)("No valid recipe found."))}}}))),xe=r(5308),Oe=e=>{var t=e.id>0,r=t=>{t.preventDefault(),xe.Z.selectImage((t=>{if(e.hasOwnProperty("requirements")){var r=[];e.requirements.hasOwnProperty("width")&&t.width&&t.width<e.requirements.width&&r.push("".concat((0,u.S)("The image should have at least this width:")," ").concat(e.requirements.width,"px")),e.requirements.hasOwnProperty("height")&&t.height&&t.height<e.requirements.height&&r.push("".concat((0,u.S)("The image should have at least this height:")," ").concat(e.requirements.width,"px")),r.length&&alert("".concat((0,u.S)("Warning! We recommend making sure the image meets the following requirements:"),"\n\n").concat(r.join("\n")))}e.onChange(t.id,t.url)}))};return i.createElement("div",{className:"wprm-admin-modal-field-image"},t?i.createElement("div",{className:"wprm-admin-modal-field-image-preview"},i.createElement("img",{onClick:r,src:e.url}),i.createElement("a",{href:"#",tabIndex:e.disableTab?"-1":null,onClick:t=>{t.preventDefault(),e.onChange(0,"")}},(0,u.S)("Remove Image"))):i.createElement(d,{required:e.required,disableTab:e.disableTab,onClick:r},(0,u.S)("Select Image")))},Ae=e=>{var t=e.id>0,r=!t&&(-1==e.id||e.repin),n=t||r,o=t=>{t.preventDefault(),xe.Z.selectImage((t=>{if(e.hasOwnProperty("requirements")){var r=[];e.requirements.hasOwnProperty("width")&&t.width&&t.width<e.requirements.width&&r.push("".concat((0,u.S)("The image should have at least this width:")," ").concat(e.requirements.width,"px")),e.requirements.hasOwnProperty("height")&&t.height&&t.height<e.requirements.height&&r.push("".concat((0,u.S)("The image should have at least this height:")," ").concat(e.requirements.width,"px")),r.length&&alert("".concat((0,u.S)("Warning! We recommend making sure the image meets the following requirements:"),"\n\n").concat(r.join("\n")))}e.onChange(t.id,t.url)}))};return i.createElement("div",{className:"wprm-admin-modal-field-image"},n?i.createElement(i.Fragment,null,t?i.createElement("div",{className:"wprm-admin-modal-field-image-preview"},i.createElement("img",{onClick:o,src:e.url}),i.createElement("a",{href:"#",tabIndex:e.disableTab?"-1":null,onClick:t=>{t.preventDefault(),e.onChange(0,"")}},(0,u.S)("Remove Image"))):i.createElement(i.Fragment,null,i.createElement(g.Z,{value:e.repin,onChange:t=>{e.onChange(-1,"",t)},placeholder:"123455679"}),i.createElement("a",{href:"#",onClick:t=>{t.preventDefault(),e.onChange(0,"","")}},(0,u.S)("Remove Repin ID")))):i.createElement(i.Fragment,null,i.createElement(d,{required:e.required,disableTab:e.disableTab,onClick:o},(0,u.S)("Select Image")),i.createElement(d,{required:e.required,disableTab:e.disableTab,onClick:t=>{t.preventDefault(),e.onChange(-1,"")}},(0,u.S)("Use Repin ID"))))},Me=e=>{var t=e.id>0,r=!t&&(-1==e.id||e.embed),n=t||r,o=t=>{t.preventDefault(),xe.Z.selectVideo((t=>{e.onChange(t.attributes.id,t.attributes.thumb.src)}))};return i.createElement("div",{className:"wprm-admin-modal-field-video"},n?i.createElement(i.Fragment,null,t?i.createElement("div",{className:"wprm-admin-modal-field-video-preview"},i.createElement("img",{onClick:o,src:e.thumb||wprm_admin_modal.images.video}),i.createElement("a",{href:"#",onClick:t=>{t.preventDefault(),e.onChange(0,"")}},(0,u.S)("Remove Video"))):i.createElement(i.Fragment,null,i.createElement(fe.Z,{value:e.embed,onChange:t=>{e.onChange(-1,"",t)},placeholder:(0,u.S)("Use URL to the video (e.g. https://www.youtube.com/watch?v=dQw4w9WgXcQ) or the full embed code.")}),i.createElement("a",{href:"#",onClick:t=>{t.preventDefault(),e.onChange(0,"","")}},(0,u.S)("Remove Video")))):i.createElement(i.Fragment,null,i.createElement("button",{className:"button",onClick:o},(0,u.S)("Upload Video")),i.createElement("button",{className:"button",onClick:t=>{t.preventDefault(),e.onChange(-1,"")}},(0,u.S)("Embed Video"))))},Pe=e=>i.createElement(i.Fragment,null,i.createElement(A.Z,{label:(0,u.S)("Image"),help:(0,u.S)("Used in the recipe metadata. Should be an image of the completed dish.")},i.createElement(Oe,{requirements:{width:500,height:500},id:e.image.id,url:e.image.url,onChange:(t,r)=>{e.onRecipeChange({image_id:t,image_url:r})}})),"recipe_image"!==wprm_admin.settings.pinterest_use_for_image?i.createElement(A.Z,{label:(0,u.S)("Pin Image"),help:(0,u.S)('Optionally set a different image to use for the "Pin Recipe" button.')},i.createElement(Ae,{required:"premium",id:e.pinImage.id,url:e.pinImage.url,repin:e.pinImage.repin,onChange:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i={pin_image_id:t,pin_image_url:r};!1!==n&&(i.pin_image_repin_id=n),e.onRecipeChange(i)}})):null,i.createElement(A.Z,{label:(0,u.S)("Video"),help:(0,u.S)("Used in the recipe metadata. Can be displayed elsewhere on the page using the [wprm-recipe-video] shortcode.")},i.createElement(Me,{id:e.video.id,thumb:e.video.thumb,embed:e.video.embed,onChange:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i={video_id:t,video_thumb_url:r};!1!==n&&(i.video_embed=n),e.onRecipeChange(i)}}))),Be=e=>{var t="public"===wprm_admin.settings.post_type_structure,r=[{value:!1,label:(0,u.S)("No language set")}];return"wpml"===wprm_admin_modal.multilingual.plugin&&(r=r.concat(Object.values(wprm_admin_modal.multilingual.languages))),i.createElement(i.Fragment,null,t&&i.createElement(A.Z,{id:"slug",label:(0,u.S)("Slug")},i.createElement(g.Z,{name:"recipe-slug",placeholder:(0,u.S)("recipe-slug"),value:e.slug,onChange:t=>{e.onRecipeChange({slug:t})}})),t&&i.createElement(A.Z,{id:"post_status",label:(0,u.S)("Status")},i.createElement(M.Z,{options:wprm_admin_modal.options.post_status,value:e.post_status,onChange:t=>{e.onRecipeChange({post_status:t})},width:300})),t&&i.createElement(A.Z,{id:"post_password",label:(0,u.S)("Password"),help:(0,u.S)("Optionally set a password to restrict access to the recipe post.")},i.createElement(g.Z,{name:"post-password",value:e.post_password,onChange:t=>{e.onRecipeChange({post_password:t})}})),i.createElement(A.Z,{id:"post_author",label:(0,u.S)("Post Author")},i.createElement(M.Z,{options:wprm_admin_modal.options.post_author,value:parseInt(e.post_author),onChange:t=>{e.onRecipeChange({post_author:t})},width:300})),t&&1<r.length&&i.createElement(A.Z,{id:"language",label:(0,u.S)("Language")},i.createElement(M.Z,{options:r,value:e.language,onChange:t=>{e.onRecipeChange({language:t})},width:300})))},Ne=r(38974),ke=r.n(Ne);function Te(){return ke().getParser(window.navigator.userAgent).satisfies({edge:"<80",ie:">0"})}var je=e=>{var t=!!e.hasOwnProperty("disabled")&&e.disabled;return i.createElement("input",{type:"checkbox",className:"wprm-admin-modal-field-checkbox",disabled:t,name:e.name,checked:e.value,onChange:t=>{e.onChange(t.target.checked)}})};r(18183),r(72975),r(33290),r(9968);
2
  /*!
3
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
4
  *
5
  * Copyright (c) 2014-2017, Jon Schlinkert.
6
  * Released under the MIT License.
7
  */
8
- function Le(e){return"[object Object]"===Object.prototype.toString.call(e)}function Fe(e){var t,r;return!1!==Le(e)&&(void 0===(t=e.constructor)||!1!==Le(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}function Re(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function _e(e){return!!e&&!!e[xt]}function Ze(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===Ot}(e)||Array.isArray(e)||!!e[It]||!!e.constructor[It]||Ve(e)||Je(e))}function He(e,t,r){void 0===r&&(r=!1),0===We(e)?(r?Object.keys:At)(e).forEach((function(n){r&&"symbol"==typeof n||t(n,e[n],e)})):e.forEach((function(r,n){return t(n,r,e)}))}function We(e){var t=e[xt];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Ve(e)?2:Je(e)?3:0}function Ue(e,t){return 2===We(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ge(e,t){return 2===We(e)?e.get(t):e[t]}function ze(e,t,r){var n=We(e);2===n?e.set(t,r):3===n?(e.delete(t),e.add(r)):e[t]=r}function qe(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function Ve(e){return Dt&&e instanceof Map}function Je(e){return Et&&e instanceof Set}function Ye(e){return e.o||e.t}function Qe(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Mt(e);delete t[xt];for(var r=At(t),n=0;n<r.length;n++){var i=r[n],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Xe(e,t){return void 0===t&&(t=!1),$e(e)||_e(e)||!Ze(e)||(We(e)>1&&(e.set=e.add=e.clear=e.delete=Ke),Object.freeze(e),t&&He(e,(function(e,t){return Xe(t,!0)}),!0)),e}function Ke(){Re(2)}function $e(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function et(e){var t=Pt[e];return t||Re(18,e),t}function tt(){return yt}function rt(e,t){t&&(et("Patches"),e.u=[],e.s=[],e.v=t)}function nt(e){it(e),e.p.forEach(at),e.p=null}function it(e){e===yt&&(yt=e.l)}function ot(e){return yt={p:[],l:yt,h:e,m:!0,_:0}}function at(e){var t=e[xt];0===t.i||1===t.i?t.j():t.O=!0}function st(e,t){t._=t.p.length;var r=t.p[0],n=void 0!==e&&e!==r;return t.h.g||et("ES5").S(t,e,n),n?(r[xt].P&&(nt(t),Re(4)),Ze(e)&&(e=ut(t,e),t.l||ct(t,e)),t.u&&et("Patches").M(r[xt].t,e,t.u,t.s)):e=ut(t,r,[]),nt(t),t.u&&t.v(t.u,t.s),e!==St?e:void 0}function ut(e,t,r){if($e(t))return t;var n=t[xt];if(!n)return He(t,(function(i,o){return lt(e,n,t,i,o,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return ct(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=4===n.i||5===n.i?n.o=Qe(n.k):n.o;He(3===n.i?new Set(i):i,(function(t,o){return lt(e,n,i,t,o,r)})),ct(e,i,!1),r&&e.u&&et("Patches").R(n,r,e.u,e.s)}return n.o}function lt(e,t,r,n,i,o){if(_e(i)){var a=ut(e,i,o&&t&&3!==t.i&&!Ue(t.D,n)?o.concat(n):void 0);if(ze(r,n,a),!_e(a))return;e.m=!1}if(Ze(i)&&!$e(i)){if(!e.h.F&&e._<1)return;ut(e,i),t&&t.A.l||ct(e,i)}}function ct(e,t,r){void 0===r&&(r=!1),e.h.F&&e.m&&Xe(t,r)}function dt(e,t){var r=e[xt];return(r?Ye(r):e)[t]}function pt(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function ft(e){e.P||(e.P=!0,e.l&&ft(e.l))}function mt(e){e.o||(e.o=Qe(e.t))}function ht(e,t,r){var n=Ve(t)?et("MapSet").N(t,r):Je(t)?et("MapSet").T(t,r):e.g?function(e,t){var r=Array.isArray(e),n={i:r?1:0,A:t?t.A:tt(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=n,o=Bt;r&&(i=[n],o=Nt);var a=Proxy.revocable(i,o),s=a.revoke,u=a.proxy;return n.k=u,n.j=s,u}(t,r):et("ES5").J(t,r);return(r?r.A:tt()).p.push(n),n}function gt(e){return _e(e)||Re(22,e),function e(t){if(!Ze(t))return t;var r,n=t[xt],i=We(t);if(n){if(!n.P&&(n.i<4||!et("ES5").K(n)))return n.t;n.I=!0,r=vt(t,i),n.I=!1}else r=vt(t,i);return He(r,(function(t,i){n&&Ge(n.t,t)===i||ze(r,t,e(i))})),3===i?new Set(r):r}(e)}function vt(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Qe(e)}var bt,yt,wt="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Dt="undefined"!=typeof Map,Et="undefined"!=typeof Set,Ct="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,St=wt?Symbol.for("immer-nothing"):((bt={})["immer-nothing"]=!0,bt),It=wt?Symbol.for("immer-draftable"):"__$immer_draftable",xt=wt?Symbol.for("immer-state"):"__$immer_state",Ot=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),At="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Mt=Object.getOwnPropertyDescriptors||function(e){var t={};return At(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},Pt={},Bt={get:function(e,t){if(t===xt)return e;var r=Ye(e);if(!Ue(r,t))return function(e,t,r){var n,i=pt(t,r);return i?"value"in i?i.value:null===(n=i.get)||void 0===n?void 0:n.call(e.k):void 0}(e,r,t);var n=r[t];return e.I||!Ze(n)?n:n===dt(e.t,t)?(mt(e),e.o[t]=ht(e.A.h,n,e)):n},has:function(e,t){return t in Ye(e)},ownKeys:function(e){return Reflect.ownKeys(Ye(e))},set:function(e,t,r){var n=pt(Ye(e),t);if(null==n?void 0:n.set)return n.set.call(e.k,r),!0;if(!e.P){var i=dt(Ye(e),t),o=null==i?void 0:i[xt];if(o&&o.t===r)return e.o[t]=r,e.D[t]=!1,!0;if(qe(r,i)&&(void 0!==r||Ue(e.t,t)))return!0;mt(e),ft(e)}return e.o[t]===r&&"number"!=typeof r&&(void 0!==r||t in e.o)||(e.o[t]=r,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==dt(e.t,t)||t in e.t?(e.D[t]=!1,mt(e),ft(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Ye(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty:function(){Re(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Re(12)}},Nt={};He(Bt,(function(e,t){Nt[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Nt.deleteProperty=function(e,t){return Nt.set.call(this,e,t,void 0)},Nt.set=function(e,t,r){return Bt.set.call(this,e[0],t,r,e[0])};var kt=function(){function e(e){var t=this;this.g=Ct,this.F=!0,this.produce=function(e,r,n){if("function"==typeof e&&"function"!=typeof r){var i=r;r=e;var o=t;return function(e){var t=this;void 0===e&&(e=i);for(var n=arguments.length,a=Array(n>1?n-1:0),s=1;s<n;s++)a[s-1]=arguments[s];return o.produce(e,(function(e){var n;return(n=r).call.apply(n,[t,e].concat(a))}))}}var a;if("function"!=typeof r&&Re(6),void 0!==n&&"function"!=typeof n&&Re(7),Ze(e)){var s=ot(t),u=ht(t,e,void 0),l=!0;try{a=r(u),l=!1}finally{l?nt(s):it(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return rt(s,n),st(e,s)}),(function(e){throw nt(s),e})):(rt(s,n),st(a,s))}if(!e||"object"!=typeof e){if(void 0===(a=r(e))&&(a=e),a===St&&(a=void 0),t.F&&Xe(a,!0),n){var c=[],d=[];et("Patches").M(e,a,c,d),n(c,d)}return a}Re(21,e)},this.produceWithPatches=function(e,r){if("function"==typeof e)return function(r){for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return t.produceWithPatches(r,(function(t){return e.apply(void 0,[t].concat(i))}))};var n,i,o=t.produce(e,r,(function(e,t){n=e,i=t}));return"undefined"!=typeof Promise&&o instanceof Promise?o.then((function(e){return[e,n,i]})):[o,n,i]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){Ze(e)||Re(8),_e(e)&&(e=gt(e));var t=ot(this),r=ht(this,e,void 0);return r[xt].C=!0,it(t),r},t.finishDraft=function(e,t){var r=(e&&e[xt]).A;return rt(r,t),st(void 0,r)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!Ct&&Re(20),this.g=e},t.applyPatches=function(e,t){var r;for(r=t.length-1;r>=0;r--){var n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));var i=et("Patches").$;return _e(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}(),Tt=new kt,jt=Tt.produce,Lt=(Tt.produceWithPatches.bind(Tt),Tt.setAutoFreeze.bind(Tt),Tt.setUseProxies.bind(Tt),Tt.applyPatches.bind(Tt),Tt.createDraft.bind(Tt)),Ft=Tt.finishDraft.bind(Tt);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}var _t=new WeakMap,Zt=new WeakMap,Ht=new WeakMap,Wt=new WeakMap,Ut=new WeakMap,Gt=new WeakMap,zt=new WeakMap;function qt(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 Vt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qt(Object(r),!0).forEach((function(t){Rt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Jt=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var r of Br.pathRefs(e))Hr.transform(r,t);for(var n of Br.pointRefs(e))zr.transform(n,t);for(var i of Br.rangeRefs(e))Yr.transform(i,t);var o,a,s=_t.get(e)||[],u=Zt.get(e)||new Set,l=e=>{if(e){var t=e.join(",");a.has(t)||(a.add(t),o.push(e))}};if(Zr.operationCanTransformPath(t))for(var c of(o=[],a=new Set,s)){l(Zr.transform(c,t))}else o=s,a=u;var d=Yt(t);for(var p of d)l(p);_t.set(e,o),Zt.set(e,a),wn.transform(e,t),e.operations.push(t),Br.normalize(e),"set_selection"===t.type&&(e.marks=null),Ht.get(e)||(Ht.set(e,!0),Promise.resolve().then((()=>{Ht.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,r)=>{var{selection:n}=e;if(n)if(Jr.isExpanded(n))wn.setNodes(e,{[t]:r},{match:tn.isText,split:!0});else{var i=Vt(Vt({},Br.marks(e)||{}),{},{[t]:r});e.marks=i,Ht.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:r}=e;r&&Jr.isCollapsed(r)&&wn.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:r}=e;r&&Jr.isCollapsed(r)&&wn.delete(e,{unit:t})},deleteFragment:t=>{var{selection:r}=e;r&&Jr.isExpanded(r)&&wn.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?Lr.fragment(e,t):[]},insertBreak:()=>{wn.splitNodes(e,{always:!0})},insertSoftBreak:()=>{wn.splitNodes(e,{always:!0})},insertFragment:t=>{wn.insertFragment(e,t)},insertNode:t=>{wn.insertNodes(e,t)},insertText:t=>{var{selection:r,marks:n}=e;if(r){if(n){var i=Vt({text:t},n);wn.insertNodes(e,i)}else wn.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[r,n]=t;if(!tn.isText(r))if(Ir.isElement(r)&&0===r.children.length){wn.insertNodes(e,{text:""},{at:n.concat(0),voids:!0})}else for(var i=!Br.isEditor(r)&&(Ir.isElement(r)&&(e.isInline(r)||0===r.children.length||tn.isText(r.children[0])||e.isInline(r.children[0]))),o=0,a=0;a<r.children.length;a++,o++){var s=Lr.get(e,n);if(!tn.isText(s)){var u=r.children[a],l=s.children[o-1],c=a===r.children.length-1;if((tn.isText(u)||Ir.isElement(u)&&e.isInline(u))!==i)wn.removeNodes(e,{at:n.concat(o),voids:!0}),o--;else if(Ir.isElement(u)){if(e.isInline(u))if(null!=l&&tn.isText(l)){if(c){wn.insertNodes(e,{text:""},{at:n.concat(o+1),voids:!0}),o++}}else{wn.insertNodes(e,{text:""},{at:n.concat(o),voids:!0}),o++}}else null!=l&&tn.isText(l)&&(tn.equals(u,l,{loose:!0})?(wn.mergeNodes(e,{at:n.concat(o),voids:!0}),o--):""===l.text?(wn.removeNodes(e,{at:n.concat(o-1),voids:!0}),o--):""===u.text&&(wn.removeNodes(e,{at:n.concat(o),voids:!0}),o--))}}},removeMark:t=>{var{selection:r}=e;if(r)if(Jr.isExpanded(r))wn.unsetNodes(e,t,{match:tn.isText,split:!0});else{var n=Vt({},Br.marks(e)||{});delete n[t],e.marks=n,Ht.get(e)||e.onChange()}}};return e},Yt=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return Zr.levels(t);case"insert_node":var{node:r,path:n}=e,i=Zr.levels(n),o=tn.isText(r)?[]:Array.from(Lr.nodes(r),(e=>{var[,t]=e;return n.concat(t)}));return[...i,...o];case"merge_node":var{path:a}=e;return[...Zr.ancestors(a),Zr.previous(a)];case"move_node":var{path:s,newPath:u}=e;if(Zr.equals(s,u))return[];var l=[],c=[];for(var d of Zr.ancestors(s)){var p=Zr.transform(d,e);l.push(p)}for(var f of Zr.ancestors(u)){var m=Zr.transform(f,e);c.push(m)}var h=c[c.length-1],g=u[u.length-1],v=h.concat(g);return[...l,...c,v];case"remove_node":var{path:b}=e;return[...Zr.ancestors(b)];case"split_node":var{path:y}=e;return[...Zr.levels(y),Zr.next(y)];default:return[]}};function Qt(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 Xt,Kt=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!t,n=t?ir(e):e,i=Xt.None,o=Xt.None,a=0,s=null;for(var u of n){var l=u.codePointAt(0);if(!l)break;var c=gr(u,l);if([i,o]=r?[o,c]:[c,i],vr(i,Xt.ZWJ)&&vr(o,Xt.ExtPict)&&!Dr(r?e.substring(0,a):e.substring(0,e.length-a)))break;if(vr(i,Xt.RI)&&vr(o,Xt.RI)&&!(s=null!==s?!s:!!r||Cr(e.substring(0,e.length-a))))break;if(i!==Xt.None&&o!==Xt.None&&yr(i,o))break;a+=u.length}return a||1},$t=/\s/,er=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,tr=/['\u2018\u2019]/,rr=(e,t,r)=>{if(r){var n=e.length-t;return[e.slice(n,e.length),e.slice(0,n)]}return[e.slice(0,t),e.slice(t)]},nr=function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if($t.test(t))return!1;if(tr.test(t)){var i=Kt(r,n),[o,a]=rr(r,i,n);if(e(o,a,n))return!0}return!er.test(t)},ir=function*(e){for(var t=e.length-1,r=0;r<e.length;r++){var n=e.charAt(t-r);if(ar(n.charCodeAt(0))){var i=e.charAt(t-r-1);if(or(i.charCodeAt(0))){yield i+n,r++;continue}}yield n}},or=e=>e>=55296&&e<=56319,ar=e=>e>=56320&&e<=57343;!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(Xt||(Xt={}));var sr=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,ur=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,lr=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,cr=/^[\u1100-\u115F\uA960-\uA97C]$/,dr=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,pr=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,fr=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,mr=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,hr=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,gr=(e,t)=>{var r=Xt.Any;return-1!==e.search(sr)&&(r|=Xt.Extend),8205===t&&(r|=Xt.ZWJ),t>=127462&&t<=127487&&(r|=Xt.RI),-1!==e.search(ur)&&(r|=Xt.Prepend),-1!==e.search(lr)&&(r|=Xt.SpacingMark),-1!==e.search(cr)&&(r|=Xt.L),-1!==e.search(dr)&&(r|=Xt.V),-1!==e.search(pr)&&(r|=Xt.T),-1!==e.search(fr)&&(r|=Xt.LV),-1!==e.search(mr)&&(r|=Xt.LVT),-1!==e.search(hr)&&(r|=Xt.ExtPict),r};function vr(e,t){return 0!=(e&t)}var br=[[Xt.L,Xt.L|Xt.V|Xt.LV|Xt.LVT],[Xt.LV|Xt.V,Xt.V|Xt.T],[Xt.LVT|Xt.T,Xt.T],[Xt.Any,Xt.Extend|Xt.ZWJ],[Xt.Any,Xt.SpacingMark],[Xt.Prepend,Xt.Any],[Xt.ZWJ,Xt.ExtPict],[Xt.RI,Xt.RI]];function yr(e,t){return-1===br.findIndex((r=>vr(e,r[0])&&vr(t,r[1])))}var wr=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,Dr=e=>-1!==e.search(wr),Er=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,Cr=e=>{var t=e.match(Er);return null!==t&&t[0].length/2%2==1},Sr=e=>Fe(e)&&Lr.isNodeList(e.children)&&!Br.isEditor(e),Ir={isAncestor:e=>Fe(e)&&Lr.isNodeList(e.children),isElement:Sr,isElementList:e=>Array.isArray(e)&&e.every((e=>Ir.isElement(e))),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return Sr(e)&&e[r]===t},matches(e,t){for(var r in t)if("children"!==r&&e[r]!==t[r])return!1;return!0}},xr=["text"],Or=["text"];function Ar(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 Mr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ar(Object(r),!0).forEach((function(t){Rt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ar(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Pr=new WeakMap,Br={above(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:r=!1,mode:n="lowest",at:i=e.selection,match:o}=t;if(i){var a=Br.path(e,i),s="lowest"===n;for(var[u,l]of Br.levels(e,{at:a,voids:r,match:o,reverse:s}))if(!tn.isText(u)&&!Zr.equals(a,l))return[u,l]}},addMark(e,t,r){e.addMark(t,r)},after(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i={anchor:Br.point(e,t,{edge:"end"}),focus:Br.end(e,[])},{distance:o=1}=n,a=0;for(var s of Br.positions(e,Mr(Mr({},n),{},{at:i}))){if(a>o)break;0!==a&&(r=s),a++}return r},before(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i={anchor:Br.start(e,[]),focus:Br.point(e,t,{edge:"start"})},{distance:o=1}=n,a=0;for(var s of Br.positions(e,Mr(Mr({},n),{},{at:i,reverse:!0}))){if(a>o)break;0!==a&&(r=s),a++}return r},deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:r="character"}=t;e.deleteBackward(r)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:r="character"}=t;e.deleteForward(r)},deleteFragment(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:r="forward"}=t;e.deleteFragment(r)},edges:(e,t)=>[Br.start(e,t),Br.end(e,t)],end:(e,t)=>Br.point(e,t,{edge:"end"}),first(e,t){var r=Br.path(e,t,{edge:"start"});return Br.node(e,r)},fragment(e,t){var r=Br.range(e,t);return Lr.fragment(e,r)},hasBlocks:(e,t)=>t.children.some((t=>Br.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>tn.isText(t)||Br.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>tn.isText(e))),insertBreak(e){e.insertBreak()},insertSoftBreak(e){e.insertSoftBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>Ir.isElement(t)&&!e.isInline(t),isEditor(e){if(!Fe(e))return!1;var t=Pr.get(e);if(void 0!==t)return t;var r="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteBackward&&"function"==typeof e.deleteForward&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertSoftBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isInline&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&(null===e.marks||Fe(e.marks))&&(null===e.selection||Jr.isRange(e.selection))&&Lr.isNodeList(e.children)&&_r.isOperationList(e.operations);return Pr.set(e,r),r},isEnd(e,t,r){var n=Br.end(e,r);return Gr.equals(t,n)},isEdge:(e,t,r)=>Br.isStart(e,t,r)||Br.isEnd(e,t,r),isEmpty(e,t){var{children:r}=t,[n]=r;return 0===r.length||1===r.length&&tn.isText(n)&&""===n.text&&!e.isVoid(t)},isInline:(e,t)=>Ir.isElement(t)&&e.isInline(t),isNormalizing(e){var t=Wt.get(e);return void 0===t||t},isStart(e,t,r){if(0!==t.offset)return!1;var n=Br.start(e,r);return Gr.equals(t,n)},isVoid:(e,t)=>Ir.isElement(t)&&e.isVoid(t),last(e,t){var r=Br.path(e,t,{edge:"end"});return Br.node(e,r)},leaf(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Br.path(e,t,r);return[Lr.leaf(e,n),n]},*levels(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:r=e.selection,reverse:n=!1,voids:i=!1}=t,{match:o}=t;if(null==o&&(o=()=>!0),r){var a=[],s=Br.path(e,r);for(var[u,l]of Lr.levels(e,s))if(o(u,l)&&(a.push([u,l]),!i&&Br.isVoid(e,u)))break;n&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:r}=e;if(!r)return null;if(t)return t;if(Jr.isExpanded(r)){var[n]=Br.nodes(e,{match:tn.isText});if(n){var[i]=n;return Qt(i,xr)}return{}}var{anchor:o}=r,{path:a}=o,[s]=Br.leaf(e,a);if(0===o.offset){var u=Br.previous(e,{at:a,match:tn.isText}),l=Br.above(e,{match:t=>Br.isBlock(e,t)});if(u&&l){var[c,d]=u,[,p]=l;Zr.isAncestor(p,d)&&(s=c)}}return Qt(s,Or)},next(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:r="lowest",voids:n=!1}=t,{match:i,at:o=e.selection}=t;if(o){var a=Br.after(e,o,{voids:n});if(a){var[,s]=Br.last(e,[]),u=[a.path,s];if(Zr.isPath(o)&&0===o.length)throw new Error("Cannot get the next node from the root node!");if(null==i)if(Zr.isPath(o)){var[l]=Br.parent(e,o);i=e=>l.children.includes(e)}else i=()=>!0;var[c]=Br.nodes(e,{at:u,match:i,mode:r,voids:n});return c}}},node(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Br.path(e,t,r);return[Lr.get(e,n),n]},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:r=e.selection,mode:n="all",universal:i=!1,reverse:o=!1,voids:a=!1}=t,{match:s}=t;if(s||(s=()=>!0),r){var u,l;if(Nr.isSpan(r))u=r[0],l=r[1];else{var c=Br.path(e,r,{edge:"start"}),d=Br.path(e,r,{edge:"end"});u=o?d:c,l=o?c:d}var p,f=Lr.nodes(e,{reverse:o,from:u,to:l,pass:t=>{var[r]=t;return!a&&Br.isVoid(e,r)}}),m=[];for(var[h,g]of f){var v=p&&0===Zr.compare(g,p[1]);if("highest"!==n||!v)if(s(h,g))if("lowest"===n&&v)p=[h,g];else{var b="lowest"===n?p:[h,g];b&&(i?m.push(b):yield b),p=[h,g]}else if(i&&!v&&tn.isText(h))return}"lowest"===n&&p&&(i?m.push(p):yield p),i&&(yield*m)}},normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:r=!1}=t,n=e=>_t.get(e)||[],i=e=>{var t=n(e).pop(),r=t.join(",");return(e=>Zt.get(e)||new Set)(e).delete(r),t};if(Br.isNormalizing(e)){if(r){var o=Array.from(Lr.nodes(e),(e=>{var[,t]=e;return t})),a=new Set(o.map((e=>e.join(","))));_t.set(e,o),Zt.set(e,a)}0!==n(e).length&&Br.withoutNormalizing(e,(()=>{for(var t of n(e))if(Lr.has(e,t)){var r=Br.node(e,t),[o,a]=r;Ir.isElement(o)&&0===o.children.length&&e.normalizeNode(r)}for(var s=42*n(e).length,u=0;0!==n(e).length;){if(u>s)throw new Error("\n Could not completely normalize the editor after ".concat(s," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var l=i(e);if(Lr.has(e,l)){var c=Br.node(e,l);e.normalizeNode(c)}u++}}))}},parent(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Br.path(e,t,r),i=Zr.parent(n);return Br.node(e,i)},path(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:n,edge:i}=r;if(Zr.isPath(t))if("start"===i){var[,o]=Lr.first(e,t);t=o}else if("end"===i){var[,a]=Lr.last(e,t);t=a}return Jr.isRange(t)&&(t="start"===i?Jr.start(t):"end"===i?Jr.end(t):Zr.common(t.anchor.path,t.focus.path)),Gr.isPoint(t)&&(t=t.path),null!=n&&(t=t.slice(0,n)),t},hasPath:(e,t)=>Lr.has(e,t),pathRef(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:n="forward"}=r,i={current:t,affinity:n,unref(){var{current:t}=i;return Br.pathRefs(e).delete(i),i.current=null,t}};return Br.pathRefs(e).add(i),i},pathRefs(e){var t=Ut.get(e);return t||(t=new Set,Ut.set(e,t)),t},point(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:n="start"}=r;if(Zr.isPath(t)){var i;if("end"===n){var[,o]=Lr.last(e,t);i=o}else{var[,a]=Lr.first(e,t);i=a}var s=Lr.get(e,i);if(!tn.isText(s))throw new Error("Cannot get the ".concat(n," point in the node at path [").concat(t,"] because it has no ").concat(n," text node."));return{path:i,offset:"end"===n?s.text.length:0}}if(Jr.isRange(t)){var[u,l]=Jr.edges(t);return"start"===n?u:l}return t},pointRef(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:n="forward"}=r,i={current:t,affinity:n,unref(){var{current:t}=i;return Br.pointRefs(e).delete(i),i.current=null,t}};return Br.pointRefs(e).add(i),i},pointRefs(e){var t=Gt.get(e);return t||(t=new Set,Gt.set(e,t)),t},*positions(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:r=e.selection,unit:n="offset",reverse:i=!1,voids:o=!1}=t;if(r){var a=Br.range(e,r),[s,u]=Jr.edges(a),l=i?u:s,c=!1,d="",p=0,f=0,m=0;for(var[h,g]of Br.nodes(e,{at:r,reverse:i,voids:o})){if(Ir.isElement(h)){if(!o&&e.isVoid(h)){yield Br.start(e,g);continue}if(e.isInline(h))continue;if(Br.hasInlines(e,h)){var v=Zr.isAncestor(g,u.path)?u:Br.end(e,g),b=Zr.isAncestor(g,s.path)?s:Br.start(e,g);d=Br.string(e,{anchor:b,focus:v},{voids:o}),c=!0}}if(tn.isText(h)){var y=Zr.equals(g,l.path);for(y?(f=i?l.offset:h.text.length-l.offset,m=l.offset):(f=h.text.length,m=i?f:0),(y||c||"offset"===n)&&(yield{path:g,offset:m},c=!1);;){if(0===p){if(""===d)break;p=w(d,n,i),d=rr(d,p,i)[1]}if(m=i?m-p:m+p,(f-=p)<0){p=-f;break}p=0,yield{path:g,offset:m}}}}}function w(e,t,r){return"character"===t?Kt(e,r):"word"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=0,n=!1;e.length>0;){var i=Kt(e,t),[o,a]=rr(e,i,t);if(nr(o,a,t))n=!0,r+=i;else{if(n)break;r+=i}e=a}return r}(e,r):"line"===t||"block"===t?e.length:1}},previous(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:r="lowest",voids:n=!1}=t,{match:i,at:o=e.selection}=t;if(o){var a=Br.before(e,o,{voids:n});if(a){var[,s]=Br.first(e,[]),u=[a.path,s];if(Zr.isPath(o)&&0===o.length)throw new Error("Cannot get the previous node from the root node!");if(null==i)if(Zr.isPath(o)){var[l]=Br.parent(e,o);i=e=>l.children.includes(e)}else i=()=>!0;var[c]=Br.nodes(e,{reverse:!0,at:u,match:i,mode:r,voids:n});return c}}},range:(e,t,r)=>Jr.isRange(t)&&!r?t:{anchor:Br.start(e,t),focus:Br.end(e,r||t)},rangeRef(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:n="forward"}=r,i={current:t,affinity:n,unref(){var{current:t}=i;return Br.rangeRefs(e).delete(i),i.current=null,t}};return Br.rangeRefs(e).add(i),i},rangeRefs(e){var t=zt.get(e);return t||(t=new Set,zt.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){Wt.set(e,t)},start:(e,t)=>Br.point(e,t,{edge:"start"}),string(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:n=!1}=r,i=Br.range(e,t),[o,a]=Jr.edges(i),s="";for(var[u,l]of Br.nodes(e,{at:i,match:tn.isText,voids:n})){var c=u.text;Zr.equals(l,a.path)&&(c=c.slice(0,a.offset)),Zr.equals(l,o.path)&&(c=c.slice(o.offset)),s+=c}return s},unhangRange(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:n=!1}=r,[i,o]=Jr.edges(t);if(0!==i.offset||0!==o.offset||Jr.isCollapsed(t))return t;var a=Br.above(e,{at:o,match:t=>Br.isBlock(e,t)}),s=a?a[1]:[],u={anchor:Br.start(e,i),focus:o},l=!0;for(var[c,d]of Br.nodes(e,{at:u,match:tn.isText,reverse:!0,voids:n}))if(l)l=!1;else if(""!==c.text||Zr.isBefore(d,s)){o={path:d,offset:c.text.length};break}return{anchor:i,focus:o}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Br.above(e,Mr(Mr({},t),{},{match:t=>Br.isVoid(e,t)}))},withoutNormalizing(e,t){var r=Br.isNormalizing(e);Br.setNormalizing(e,!1);try{t()}finally{Br.setNormalizing(e,r)}Br.normalize(e)}},Nr={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(Zr.isPath)},kr=["children"],Tr=["text"],jr=new WeakMap,Lr={ancestor(e,t){var r=Lr.get(e,t);if(tn.isText(r))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(r));return r},*ancestors(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var n of Zr.ancestors(t,r)){var i=[Lr.ancestor(e,n),n];yield i}},child(e,t){if(tn.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var r=e.children[t];if(null==r)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return r},*children(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:n=!1}=r,i=Lr.ancestor(e,t),{children:o}=i,a=n?o.length-1:0;n?a>=0:a<o.length;){var s=Lr.child(i,a),u=t.concat(a);yield[s,u],a=n?a-1:a+1}},common(e,t,r){var n=Zr.common(t,r);return[Lr.get(e,n),n]},descendant(e,t){var r=Lr.get(e,t);if(Br.isEditor(r))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(r));return r},*descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[r,n]of Lr.nodes(e,t))0!==n.length&&(yield[r,n])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[r,n]of Lr.nodes(e,t))Ir.isElement(r)&&(yield[r,n])},extractProps:e=>Ir.isAncestor(e)?Qt(e,kr):Qt(e,Tr),first(e,t){for(var r=t.slice(),n=Lr.get(e,r);n&&!tn.isText(n)&&0!==n.children.length;)n=n.children[0],r.push(0);return[n,r]},fragment(e,t){if(tn.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var r=jt({children:e.children},(e=>{var[r,n]=Jr.edges(t),i=Lr.nodes(e,{reverse:!0,pass:e=>{var[,r]=e;return!Jr.includes(t,r)}});for(var[,o]of i){if(!Jr.includes(t,o)){var a=Lr.parent(e,o),s=o[o.length-1];a.children.splice(s,1)}if(Zr.equals(o,n.path)){var u=Lr.leaf(e,o);u.text=u.text.slice(0,n.offset)}if(Zr.equals(o,r.path)){var l=Lr.leaf(e,o);l.text=l.text.slice(r.offset)}}Br.isEditor(e)&&(e.selection=null)}));return r.children},get(e,t){for(var r=e,n=0;n<t.length;n++){var i=t[n];if(tn.isText(r)||!r.children[i])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));r=r.children[i]}return r},has(e,t){for(var r=e,n=0;n<t.length;n++){var i=t[n];if(tn.isText(r)||!r.children[i])return!1;r=r.children[i]}return!0},isNode:e=>tn.isText(e)||Ir.isElement(e)||Br.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=jr.get(e);if(void 0!==t)return t;var r=e.every((e=>Lr.isNode(e)));return jr.set(e,r),r},last(e,t){for(var r=t.slice(),n=Lr.get(e,r);n&&!tn.isText(n)&&0!==n.children.length;){var i=n.children.length-1;n=n.children[i],r.push(i)}return[n,r]},leaf(e,t){var r=Lr.get(e,t);if(!tn.isText(r))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(r));return r},*levels(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var n of Zr.levels(t,r)){var i=Lr.get(e,n);yield[i,n]}},matches:(e,t)=>Ir.isElement(e)&&Ir.isElementProps(t)&&Ir.matches(e,t)||tn.isText(e)&&tn.isTextProps(t)&&tn.matches(e,t),*nodes(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:r,reverse:n=!1}=t,{from:i=[],to:o}=t,a=new Set,s=[],u=e;!o||!(n?Zr.isBefore(s,o):Zr.isAfter(s,o));)if(a.has(u)||(yield[u,s]),a.has(u)||tn.isText(u)||0===u.children.length||null!=r&&!1!==r([u,s])){if(0===s.length)break;if(!n){var l=Zr.next(s);if(Lr.has(e,l)){s=l,u=Lr.get(e,s);continue}}if(n&&0!==s[s.length-1])s=Zr.previous(s),u=Lr.get(e,s);else s=Zr.parent(s),u=Lr.get(e,s),a.add(u)}else{a.add(u);var c=n?u.children.length-1:0;Zr.isAncestor(s,i)&&(c=i[s.length]),s=s.concat(c),u=Lr.get(e,s)}},parent(e,t){var r=Zr.parent(t),n=Lr.get(e,r);if(tn.isText(n))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return n},string:e=>tn.isText(e)?e.text:e.children.map(Lr.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[r,n]of Lr.nodes(e,t))tn.isText(r)&&(yield[r,n])}};function Fr(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 Rr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fr(Object(r),!0).forEach((function(t){Rt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var _r={isNodeOperation:e=>_r.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!Fe(e))return!1;switch(e.type){case"insert_node":case"remove_node":return Zr.isPath(e.path)&&Lr.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&Zr.isPath(e.path);case"merge_node":return"number"==typeof e.position&&Zr.isPath(e.path)&&Fe(e.properties);case"move_node":return Zr.isPath(e.path)&&Zr.isPath(e.newPath);case"set_node":return Zr.isPath(e.path)&&Fe(e.properties)&&Fe(e.newProperties);case"set_selection":return null===e.properties&&Jr.isRange(e.newProperties)||null===e.newProperties&&Jr.isRange(e.properties)||Fe(e.properties)&&Fe(e.newProperties);case"split_node":return Zr.isPath(e.path)&&"number"==typeof e.position&&Fe(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>_r.isOperation(e))),isSelectionOperation:e=>_r.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>_r.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return Rr(Rr({},e),{},{type:"remove_node"});case"insert_text":return Rr(Rr({},e),{},{type:"remove_text"});case"merge_node":return Rr(Rr({},e),{},{type:"split_node",path:Zr.previous(e.path)});case"move_node":var{newPath:t,path:r}=e;if(Zr.equals(t,r))return e;if(Zr.isSibling(r,t))return Rr(Rr({},e),{},{path:t,newPath:r});var n=Zr.transform(r,e),i=Zr.transform(Zr.next(r),e);return Rr(Rr({},e),{},{path:n,newPath:i});case"remove_node":return Rr(Rr({},e),{},{type:"insert_node"});case"remove_text":return Rr(Rr({},e),{},{type:"insert_text"});case"set_node":var{properties:o,newProperties:a}=e;return Rr(Rr({},e),{},{properties:a,newProperties:o});case"set_selection":var{properties:s,newProperties:u}=e;return Rr(Rr({},e),{},null==s?{properties:u,newProperties:null}:null==u?{properties:null,newProperties:s}:{properties:u,newProperties:s});case"split_node":return Rr(Rr({},e),{},{type:"merge_node",path:Zr.next(e.path)})}}},Zr={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:r=!1}=t,n=Zr.levels(e,t);return n=r?n.slice(1):n.slice(0,-1)},common(e,t){for(var r=[],n=0;n<e.length&&n<t.length;n++){var i=e[n];if(i!==t[n])break;r.push(i)}return r},compare(e,t){for(var r=Math.min(e.length,t.length),n=0;n<r;n++){if(e[n]<t[n])return-1;if(e[n]>t[n])return 1}return 0},endsAfter(e,t){var r=e.length-1,n=e.slice(0,r),i=t.slice(0,r),o=e[r],a=t[r];return Zr.equals(n,i)&&o>a},endsAt(e,t){var r=e.length,n=e.slice(0,r),i=t.slice(0,r);return Zr.equals(n,i)},endsBefore(e,t){var r=e.length-1,n=e.slice(0,r),i=t.slice(0,r),o=e[r],a=t[r];return Zr.equals(n,i)&&o<a},equals:(e,t)=>e.length===t.length&&e.every(((e,r)=>e===t[r])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===Zr.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===Zr.compare(e,t),isBefore:(e,t)=>-1===Zr.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===Zr.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===Zr.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===Zr.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===Zr.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var r=e.slice(0,-1),n=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&Zr.equals(r,n)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:r=!1}=t,n=[],i=0;i<=e.length;i++)n.push(e.slice(0,i));return r&&n.reverse(),n},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},operationCanTransformPath(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!Zr.isAncestor(t,e)&&!Zr.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return jt(e,(n=>{var{affinity:i="forward"}=r;if(e&&0!==(null==e?void 0:e.length)){if(null===n)return null;switch(t.type){case"insert_node":var{path:o}=t;(Zr.equals(o,n)||Zr.endsBefore(o,n)||Zr.isAncestor(o,n))&&(n[o.length-1]+=1);break;case"remove_node":var{path:a}=t;if(Zr.equals(a,n)||Zr.isAncestor(a,n))return null;Zr.endsBefore(a,n)&&(n[a.length-1]-=1);break;case"merge_node":var{path:s,position:u}=t;Zr.equals(s,n)||Zr.endsBefore(s,n)?n[s.length-1]-=1:Zr.isAncestor(s,n)&&(n[s.length-1]-=1,n[s.length]+=u);break;case"split_node":var{path:l,position:c}=t;if(Zr.equals(l,n)){if("forward"===i)n[n.length-1]+=1;else if("backward"!==i)return null}else Zr.endsBefore(l,n)?n[l.length-1]+=1:Zr.isAncestor(l,n)&&e[l.length]>=c&&(n[l.length-1]+=1,n[l.length]-=c);break;case"move_node":var{path:d,newPath:p}=t;if(Zr.equals(d,p))return;if(Zr.isAncestor(d,n)||Zr.equals(d,n)){var f=p.slice();return Zr.endsBefore(d,p)&&d.length<p.length&&(f[d.length-1]-=1),f.concat(n.slice(d.length))}Zr.isSibling(d,p)&&(Zr.isAncestor(p,n)||Zr.equals(p,n))?Zr.endsBefore(d,n)?n[d.length-1]-=1:n[d.length-1]+=1:Zr.endsBefore(p,n)||Zr.equals(p,n)||Zr.isAncestor(p,n)?(Zr.endsBefore(d,n)&&(n[d.length-1]-=1),n[p.length-1]+=1):Zr.endsBefore(d,n)&&(Zr.equals(p,n)&&(n[p.length-1]+=1),n[d.length-1]-=1)}}}))}},Hr={transform(e,t){var{current:r,affinity:n}=e;if(null!=r){var i=Zr.transform(r,t,{affinity:n});e.current=i,null==i&&e.unref()}}};function Wr(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 Ur(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Wr(Object(r),!0).forEach((function(t){Rt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Gr={compare(e,t){var r=Zr.compare(e.path,t.path);return 0===r?e.offset<t.offset?-1:e.offset>t.offset?1:0:r},isAfter:(e,t)=>1===Gr.compare(e,t),isBefore:(e,t)=>-1===Gr.compare(e,t),equals:(e,t)=>e.offset===t.offset&&Zr.equals(e.path,t.path),isPoint:e=>Fe(e)&&"number"==typeof e.offset&&Zr.isPath(e.path),transform(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return jt(e,(e=>{if(null===e)return null;var{affinity:n="forward"}=r,{path:i,offset:o}=e;switch(t.type){case"insert_node":case"move_node":e.path=Zr.transform(i,t,r);break;case"insert_text":Zr.equals(t.path,i)&&(t.offset<o||t.offset===o&&"forward"===n)&&(e.offset+=t.text.length);break;case"merge_node":Zr.equals(t.path,i)&&(e.offset+=t.position),e.path=Zr.transform(i,t,r);break;case"remove_text":Zr.equals(t.path,i)&&t.offset<=o&&(e.offset-=Math.min(o-t.offset,t.text.length));break;case"remove_node":if(Zr.equals(t.path,i)||Zr.isAncestor(t.path,i))return null;e.path=Zr.transform(i,t,r);break;case"split_node":if(Zr.equals(t.path,i)){if(t.position===o&&null==n)return null;(t.position<o||t.position===o&&"forward"===n)&&(e.offset-=t.position,e.path=Zr.transform(i,t,Ur(Ur({},r),{},{affinity:"forward"})))}else e.path=Zr.transform(i,t,r)}}))}},zr={transform(e,t){var{current:r,affinity:n}=e;if(null!=r){var i=Gr.transform(r,t,{affinity:n});e.current=i,null==i&&e.unref()}}},qr=["anchor","focus"];function Vr(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}var Jr={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:r=!1}=t,{anchor:n,focus:i}=e;return Jr.isBackward(e)===r?[n,i]:[i,n]},end(e){var[,t]=Jr.edges(e);return t},equals:(e,t)=>Gr.equals(e.anchor,t.anchor)&&Gr.equals(e.focus,t.focus),includes(e,t){if(Jr.isRange(t)){if(Jr.includes(e,t.anchor)||Jr.includes(e,t.focus))return!0;var[r,n]=Jr.edges(e),[i,o]=Jr.edges(t);return Gr.isBefore(r,i)&&Gr.isAfter(n,o)}var[a,s]=Jr.edges(e),u=!1,l=!1;return Gr.isPoint(t)?(u=Gr.compare(t,a)>=0,l=Gr.compare(t,s)<=0):(u=Zr.compare(t,a.path)>=0,l=Zr.compare(t,s.path)<=0),u&&l},intersection(e,t){var r=Qt(e,qr),[n,i]=Jr.edges(e),[o,a]=Jr.edges(t),s=Gr.isBefore(n,o)?o:n,u=Gr.isBefore(i,a)?i:a;return Gr.isBefore(u,s)?null:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vr(Object(r),!0).forEach((function(t){Rt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({anchor:s,focus:u},r)},isBackward(e){var{anchor:t,focus:r}=e;return Gr.isAfter(t,r)},isCollapsed(e){var{anchor:t,focus:r}=e;return Gr.equals(t,r)},isExpanded:e=>!Jr.isCollapsed(e),isForward:e=>!Jr.isBackward(e),isRange:e=>Fe(e)&&Gr.isPoint(e.anchor)&&Gr.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=Jr.edges(e);return t},transform(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return jt(e,(e=>{if(null===e)return null;var n,i,{affinity:o="inward"}=r;if("inward"===o){var a=Jr.isCollapsed(e);Jr.isForward(e)?(n="forward",i=a?n:"backward"):(n="backward",i=a?n:"forward")}else"outward"===o?Jr.isForward(e)?(n="backward",i="forward"):(n="forward",i="backward"):(n=o,i=o);var s=Gr.transform(e.anchor,t,{affinity:n}),u=Gr.transform(e.focus,t,{affinity:i});if(!s||!u)return null;e.anchor=s,e.focus=u}))}},Yr={transform(e,t){var{current:r,affinity:n}=e;if(null!=r){var i=Jr.transform(r,t,{affinity:n});e.current=i,null==i&&e.unref()}}},Qr=(e,t)=>{for(var r in e){var n=e[r],i=t[r];if(Fe(n)&&Fe(i)){if(!Qr(n,i))return!1}else if(Array.isArray(n)&&Array.isArray(i)){if(n.length!==i.length)return!1;for(var o=0;o<n.length;o++)if(n[o]!==i[o])return!1}else if(n!==i)return!1}for(var a in t)if(void 0===e[a]&&void 0!==t[a])return!1;return!0},Xr=["text"],Kr=["anchor","focus"];function $r(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 en(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$r(Object(r),!0).forEach((function(t){Rt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$r(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var tn={equals(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:n=!1}=r;function i(e){return Qt(e,Xr)}return Qr(n?i(e):e,n?i(t):t)},isText:e=>Fe(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>tn.isText(e))),isTextProps:e=>void 0!==e.text,matches(e,t){for(var r in t)if("text"!==r&&(!e.hasOwnProperty(r)||e[r]!==t[r]))return!1;return!0},decorations(e,t){var r=[en({},e)];for(var n of t){var i=Qt(n,Kr),[o,a]=Jr.edges(n),s=[],u=0;for(var l of r){var{length:c}=l.text,d=u;if(u+=c,o.offset<=d&&a.offset>=u)Object.assign(l,i),s.push(l);else if(o.offset!==a.offset&&(o.offset===u||a.offset===d)||o.offset>u||a.offset<d||a.offset===d&&0!==d)s.push(l);else{var p=l,f=void 0,m=void 0;if(a.offset<u){var h=a.offset-d;m=en(en({},p),{},{text:p.text.slice(h)}),p=en(en({},p),{},{text:p.text.slice(0,h)})}if(o.offset>d){var g=o.offset-d;f=en(en({},p),{},{text:p.text.slice(0,g)}),p=en(en({},p),{},{text:p.text.slice(g)})}Object.assign(p,i),f&&s.push(f),s.push(p),m&&s.push(m)}}r=s}return r}};function rn(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 nn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rn(Object(r),!0).forEach((function(t){Rt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var on={transform(e,t){e.children=Lt(e.children);var r=e.selection&&Lt(e.selection);try{r=((e,t,r)=>{switch(r.type){case"insert_node":var{path:n,node:i}=r,o=Lr.parent(e,n),a=n[n.length-1];if(a>o.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(n,"] because the destination is past the end of the node."));if(o.children.splice(a,0,i),t)for(var[s,u]of Jr.points(t))t[u]=Gr.transform(s,r);break;case"insert_text":var{path:l,offset:c,text:d}=r;if(0===d.length)break;var p=Lr.leaf(e,l),f=p.text.slice(0,c),m=p.text.slice(c);if(p.text=f+d+m,t)for(var[h,g]of Jr.points(t))t[g]=Gr.transform(h,r);break;case"merge_node":var{path:v}=r,b=Lr.get(e,v),y=Zr.previous(v),w=Lr.get(e,y),D=Lr.parent(e,v),E=v[v.length-1];if(tn.isText(b)&&tn.isText(w))w.text+=b.text;else{if(tn.isText(b)||tn.isText(w))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(v,"] to nodes of different interfaces: ").concat(b," ").concat(w));w.children.push(...b.children)}if(D.children.splice(E,1),t)for(var[C,S]of Jr.points(t))t[S]=Gr.transform(C,r);break;case"move_node":var{path:I,newPath:x}=r;if(Zr.isAncestor(I,x))throw new Error("Cannot move a path [".concat(I,"] to new path [").concat(x,"] because the destination is inside itself."));var O=Lr.get(e,I),A=Lr.parent(e,I),M=I[I.length-1];A.children.splice(M,1);var P=Zr.transform(I,r),B=Lr.get(e,Zr.parent(P)),N=P[P.length-1];if(B.children.splice(N,0,O),t)for(var[k,T]of Jr.points(t))t[T]=Gr.transform(k,r);break;case"remove_node":var{path:j}=r,L=j[j.length-1];if(Lr.parent(e,j).children.splice(L,1),t)for(var[F,R]of Jr.points(t)){var _=Gr.transform(F,r);if(null!=t&&null!=_)t[R]=_;else{var Z=void 0,H=void 0;for(var[W,U]of Lr.texts(e)){if(-1!==Zr.compare(U,j)){H=[W,U];break}Z=[W,U]}var G=!1;Z&&H&&(G=Zr.equals(H[1],j)?!Zr.hasPrevious(H[1]):Zr.common(Z[1],j).length<Zr.common(H[1],j).length),Z&&!G?(F.path=Z[1],F.offset=Z[0].text.length):H?(F.path=H[1],F.offset=0):t=null}}break;case"remove_text":var{path:z,offset:q,text:V}=r;if(0===V.length)break;var J=Lr.leaf(e,z),Y=J.text.slice(0,q),Q=J.text.slice(q+V.length);if(J.text=Y+Q,t)for(var[X,K]of Jr.points(t))t[K]=Gr.transform(X,r);break;case"set_node":var{path:$,properties:ee,newProperties:te}=r;if(0===$.length)throw new Error("Cannot set properties on the root node!");var re=Lr.get(e,$);for(var ne in te){if("children"===ne||"text"===ne)throw new Error('Cannot set the "'.concat(ne,'" property of nodes!'));var ie=te[ne];null==ie?delete re[ne]:re[ne]=ie}for(var oe in ee)te.hasOwnProperty(oe)||delete re[oe];break;case"set_selection":var{newProperties:ae}=r;if(null==ae)t=ae;else{if(null==t){if(!Jr.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(ae)," when there is no current selection."));t=nn({},ae)}for(var se in ae){var ue=ae[se];if(null==ue){if("anchor"===se||"focus"===se)throw new Error('Cannot remove the "'.concat(se,'" selection property'));delete t[se]}else t[se]=ue}}break;case"split_node":var{path:le,position:ce,properties:de}=r;if(0===le.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(le,"] because the root node cannot be split."));var pe,fe=Lr.get(e,le),me=Lr.parent(e,le),he=le[le.length-1];if(tn.isText(fe)){var ge=fe.text.slice(0,ce),ve=fe.text.slice(ce);fe.text=ge,pe=nn(nn({},de),{},{text:ve})}else{var be=fe.children.slice(0,ce),ye=fe.children.slice(ce);fe.children=be,pe=nn(nn({},de),{},{children:ye})}if(me.children.splice(he+1,0,pe),t)for(var[we,De]of Jr.points(t))t[De]=Gr.transform(we,r)}return t})(e,r,t)}finally{e.children=Ft(e.children),e.selection=r?_e(r)?Ft(r):r:null}}},an=["text"],sn=["children"];function un(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 ln(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?un(Object(r),!0).forEach((function(t){Rt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):un(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var cn={insertNodes(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Br.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:i=!1,mode:o="lowest"}=r,{at:a,match:s,select:u}=r;if(Lr.isNode(t)&&(t=[t]),0!==t.length){var[l]=t;if(a||(a=e.selection?e.selection:e.children.length>0?Br.end(e,[]):[0],u=!0),null==u&&(u=!1),Jr.isRange(a))if(n||(a=Br.unhangRange(e,a)),Jr.isCollapsed(a))a=a.anchor;else{var[,c]=Jr.edges(a),d=Br.pointRef(e,c);wn.delete(e,{at:a}),a=d.unref()}if(Gr.isPoint(a)){null==s&&(s=tn.isText(l)?e=>tn.isText(e):e.isInline(l)?t=>tn.isText(t)||Br.isInline(e,t):t=>Br.isBlock(e,t));var[p]=Br.nodes(e,{at:a.path,match:s,mode:o,voids:i});if(!p)return;var[,f]=p,m=Br.pathRef(e,f),h=Br.isEnd(e,a,f);wn.splitNodes(e,{at:a,match:s,mode:o,voids:i});var g=m.unref();a=h?Zr.next(g):g}var v=Zr.parent(a),b=a[a.length-1];if(i||!Br.void(e,{at:v})){for(var y of t){var w=v.concat(b);b++,e.apply({type:"insert_node",path:w,node:y}),a=Zr.next(a)}if(a=Zr.previous(a),u){var D=Br.end(e,a);D&&wn.select(e,D)}}}}))},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Br.withoutNormalizing(e,(()=>{var{at:r=e.selection,mode:n="lowest",voids:i=!1}=t,{match:o}=t;if(null==o&&(o=Zr.isPath(r)?fn(e,r):t=>Br.isBlock(e,t)),r){var a=Br.nodes(e,{at:r,match:o,mode:n,voids:i}),s=Array.from(a,(t=>{var[,r]=t;return Br.pathRef(e,r)}));for(var u of s){var l=u.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=Br.node(e,Zr.parent(l)),[d,p]=c,f=l[l.length-1],{length:m}=d.children;if(1===m){var h=Zr.next(p);wn.moveNodes(e,{at:l,to:h,voids:i}),wn.removeNodes(e,{at:p,voids:i})}else if(0===f)wn.moveNodes(e,{at:l,to:p,voids:i});else if(f===m-1){var g=Zr.next(p);wn.moveNodes(e,{at:l,to:g,voids:i})}else{var v=Zr.next(l),b=Zr.next(p);wn.splitNodes(e,{at:v,voids:i}),wn.moveNodes(e,{at:l,to:b,voids:i})}}}}))},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Br.withoutNormalizing(e,(()=>{var{match:r,at:n=e.selection}=t,{hanging:i=!1,voids:o=!1,mode:a="lowest"}=t;if(n){if(null==r)if(Zr.isPath(n)){var[s]=Br.parent(e,n);r=e=>s.children.includes(e)}else r=t=>Br.isBlock(e,t);if(!i&&Jr.isRange(n)&&(n=Br.unhangRange(e,n)),Jr.isRange(n))if(Jr.isCollapsed(n))n=n.anchor;else{var[,u]=Jr.edges(n),l=Br.pointRef(e,u);wn.delete(e,{at:n}),n=l.unref(),null==t.at&&wn.select(e,n)}var[c]=Br.nodes(e,{at:n,match:r,voids:o,mode:a}),d=Br.previous(e,{at:n,match:r,voids:o,mode:a});if(c&&d){var[p,f]=c,[m,h]=d;if(0!==f.length&&0!==h.length){var g,v,b=Zr.next(h),y=Zr.common(f,h),w=Zr.isSibling(f,h),D=Array.from(Br.levels(e,{at:f}),(e=>{var[t]=e;return t})).slice(y.length).slice(0,-1),E=Br.above(e,{at:f,mode:"highest",match:t=>D.includes(t)&&dn(e,t)}),C=E&&Br.pathRef(e,E[1]);if(tn.isText(p)&&tn.isText(m)){var S=Qt(p,an);v=m.text.length,g=S}else{if(!Ir.isElement(p)||!Ir.isElement(m))throw new Error("Cannot merge the node at path [".concat(f,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(p)," ").concat(JSON.stringify(m)));S=Qt(p,sn);v=m.children.length,g=S}w||wn.moveNodes(e,{at:f,to:b,voids:o}),C&&wn.removeNodes(e,{at:C.current,voids:o}),Ir.isElement(m)&&Br.isEmpty(e,m)||tn.isText(m)&&""===m.text&&0!==h[h.length-1]?wn.removeNodes(e,{at:h,voids:o}):e.apply({type:"merge_node",path:b,position:v,properties:g}),C&&C.unref()}}}}))},moveNodes(e,t){Br.withoutNormalizing(e,(()=>{var{to:r,at:n=e.selection,mode:i="lowest",voids:o=!1}=t,{match:a}=t;if(n){null==a&&(a=Zr.isPath(n)?fn(e,n):t=>Br.isBlock(e,t));var s=Br.pathRef(e,r),u=Br.nodes(e,{at:n,match:a,mode:i,voids:o}),l=Array.from(u,(t=>{var[,r]=t;return Br.pathRef(e,r)}));for(var c of l){var d=c.unref(),p=s.current;0!==d.length&&e.apply({type:"move_node",path:d,newPath:p}),s.current&&Zr.isSibling(p,d)&&Zr.isAfter(p,d)&&(s.current=Zr.next(s.current))}s.unref()}}))},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Br.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:n=!1,mode:i="lowest"}=t,{at:o=e.selection,match:a}=t;if(o){null==a&&(a=Zr.isPath(o)?fn(e,o):t=>Br.isBlock(e,t)),!r&&Jr.isRange(o)&&(o=Br.unhangRange(e,o));var s=Br.nodes(e,{at:o,match:a,mode:i,voids:n}),u=Array.from(s,(t=>{var[,r]=t;return Br.pathRef(e,r)}));for(var l of u){var c=l.unref();if(c){var[d]=Br.node(e,c);e.apply({type:"remove_node",path:c,node:d})}}}}))},setNodes(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Br.withoutNormalizing(e,(()=>{var{match:n,at:i=e.selection,compare:o,merge:a}=r,{hanging:s=!1,mode:u="lowest",split:l=!1,voids:c=!1}=r;if(i){if(null==n&&(n=Zr.isPath(i)?fn(e,i):t=>Br.isBlock(e,t)),!s&&Jr.isRange(i)&&(i=Br.unhangRange(e,i)),l&&Jr.isRange(i)){if(Jr.isCollapsed(i)&&Br.leaf(e,i.anchor)[0].text.length>0)return;var d=Br.rangeRef(e,i,{affinity:"inward"}),[p,f]=Jr.edges(i),m="lowest"===u?"lowest":"highest",h=Br.isEnd(e,f,f.path);wn.splitNodes(e,{at:f,match:n,mode:m,voids:c,always:!h});var g=Br.isStart(e,p,p.path);wn.splitNodes(e,{at:p,match:n,mode:m,voids:c,always:!g}),i=d.unref(),null==r.at&&wn.select(e,i)}for(var[v,b]of(o||(o=(e,t)=>e!==t),Br.nodes(e,{at:i,match:n,mode:u,voids:c}))){var y={},w={};if(0!==b.length){var D=!1;for(var E in t)"children"!==E&&"text"!==E&&o(t[E],v[E])&&(D=!0,v.hasOwnProperty(E)&&(y[E]=v[E]),a?null!=t[E]&&(w[E]=a(v[E],t[E])):null!=t[E]&&(w[E]=t[E]));D&&e.apply({type:"set_node",path:b,properties:y,newProperties:w})}}}}))},splitNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Br.withoutNormalizing(e,(()=>{var{mode:r="lowest",voids:n=!1}=t,{match:i,at:o=e.selection,height:a=0,always:s=!1}=t;if(null==i&&(i=t=>Br.isBlock(e,t)),Jr.isRange(o)&&(o=pn(e,o)),Zr.isPath(o)){var u=o,l=Br.point(e,u),[c]=Br.parent(e,u);i=e=>e===c,a=l.path.length-u.length+1,o=l,s=!0}if(o){var d=Br.pointRef(e,o,{affinity:"backward"}),[p]=Br.nodes(e,{at:o,match:i,mode:r,voids:n});if(p){var f=Br.void(e,{at:o,mode:"highest"});if(!n&&f){var[m,h]=f;if(Ir.isElement(m)&&e.isInline(m)){var g=Br.after(e,h);if(!g){var v=Zr.next(h);wn.insertNodes(e,{text:""},{at:v,voids:n}),g=Br.point(e,v)}o=g,s=!0}a=o.path.length-h.length+1,s=!0}var b=Br.pointRef(e,o),y=o.path.length-a,[,w]=p,D=o.path.slice(0,y),E=0===a?o.offset:o.path[y]+0;for(var[C,S]of Br.levels(e,{at:D,reverse:!0,voids:n})){var I=!1;if(S.length<w.length||0===S.length||!n&&Br.isVoid(e,C))break;var x=d.current,O=Br.isEnd(e,x,S);if(s||!d||!Br.isEdge(e,x,S)){I=!0;var A=Lr.extractProps(C);e.apply({type:"split_node",path:S,position:E,properties:A})}E=S[S.length-1]+(I||O?1:0)}if(null==t.at){var M=b.current||Br.end(e,[]);wn.select(e,M)}d.unref(),b.unref()}}}))},unsetNodes(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var n={};for(var i of t)n[i]=null;wn.setNodes(e,n,r)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Br.withoutNormalizing(e,(()=>{var{mode:r="lowest",split:n=!1,voids:i=!1}=t,{at:o=e.selection,match:a}=t;if(o){null==a&&(a=Zr.isPath(o)?fn(e,o):t=>Br.isBlock(e,t)),Zr.isPath(o)&&(o=Br.range(e,o));var s=Jr.isRange(o)?Br.rangeRef(e,o):null,u=Br.nodes(e,{at:o,match:a,mode:r,voids:i}),l=Array.from(u,(t=>{var[,r]=t;return Br.pathRef(e,r)})).reverse(),c=function(t){var r=t.unref(),[o]=Br.node(e,r),a=Br.range(e,r);n&&s&&(a=Jr.intersection(s.current,a)),wn.liftNodes(e,{at:a,match:e=>Ir.isAncestor(o)&&o.children.includes(e),voids:i})};for(var d of l)c(d);s&&s.unref()}}))},wrapNodes(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Br.withoutNormalizing(e,(()=>{var{mode:n="lowest",split:i=!1,voids:o=!1}=r,{match:a,at:s=e.selection}=r;if(s){if(null==a&&(a=Zr.isPath(s)?fn(e,s):e.isInline(t)?t=>Br.isInline(e,t)||tn.isText(t):t=>Br.isBlock(e,t)),i&&Jr.isRange(s)){var[u,l]=Jr.edges(s),c=Br.rangeRef(e,s,{affinity:"inward"});wn.splitNodes(e,{at:l,match:a,voids:o}),wn.splitNodes(e,{at:u,match:a,voids:o}),s=c.unref(),null==r.at&&wn.select(e,s)}var d=Array.from(Br.nodes(e,{at:s,match:e.isInline(t)?t=>Br.isBlock(e,t):e=>Br.isEditor(e),mode:"lowest",voids:o}));for(var[,p]of d){var f=Jr.isRange(s)?Jr.intersection(s,Br.range(e,p)):s;if(f){var m=Array.from(Br.nodes(e,{at:f,match:a,mode:n,voids:o}));if(m.length>0){var h=function(){var[r]=m,n=m[m.length-1],[,i]=r,[,a]=n;if(0===i.length&&0===a.length)return"continue";var s=Zr.equals(i,a)?Zr.parent(i):Zr.common(i,a),u=Br.range(e,i,a),l=Br.node(e,s),[c]=l,d=s.length+1,p=Zr.next(a.slice(0,d)),f=ln(ln({},t),{},{children:[]});wn.insertNodes(e,f,{at:p,voids:o}),wn.moveNodes(e,{at:u,match:e=>Ir.isAncestor(c)&&c.children.includes(e),to:p.concat(0),voids:o})}();if("continue"===h)continue}}}}}))}},dn=(e,t)=>{if(Ir.isElement(t)){var r=t;return!!Br.isVoid(e,t)||1===r.children.length&&dn(e,r.children[0])}return!Br.isEditor(t)},pn=(e,t)=>{if(Jr.isCollapsed(t))return t.anchor;var[,r]=Jr.edges(t),n=Br.pointRef(e,r);return wn.delete(e,{at:t}),n.unref()},fn=(e,t)=>{var[r]=Br.node(e,t);return e=>e===r};function mn(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 hn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mn(Object(r),!0).forEach((function(t){Rt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var gn={collapse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:r="anchor"}=t,{selection:n}=e;if(n)if("anchor"===r)wn.select(e,n.anchor);else if("focus"===r)wn.select(e,n.focus);else if("start"===r){var[i]=Jr.edges(n);wn.select(e,i)}else if("end"===r){var[,o]=Jr.edges(n);wn.select(e,o)}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:r}=e,{distance:n=1,unit:i="character",reverse:o=!1}=t,{edge:a=null}=t;if(r){"start"===a&&(a=Jr.isBackward(r)?"focus":"anchor"),"end"===a&&(a=Jr.isBackward(r)?"anchor":"focus");var{anchor:s,focus:u}=r,l={distance:n,unit:i},c={};if(null==a||"anchor"===a){var d=o?Br.before(e,s,l):Br.after(e,s,l);d&&(c.anchor=d)}if(null==a||"focus"===a){var p=o?Br.before(e,u,l):Br.after(e,u,l);p&&(c.focus=p)}wn.setSelection(e,c)}},select(e,t){var{selection:r}=e;if(t=Br.range(e,t),r)wn.setSelection(e,t);else{if(!Jr.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:r,newProperties:t})}},setPoint(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:n}=e,{edge:i="both"}=r;if(n){"start"===i&&(i=Jr.isBackward(n)?"focus":"anchor"),"end"===i&&(i=Jr.isBackward(n)?"anchor":"focus");var{anchor:o,focus:a}=n,s="anchor"===i?o:a;wn.setSelection(e,{["anchor"===i?"anchor":"focus"]:hn(hn({},s),t)})}},setSelection(e,t){var{selection:r}=e,n={},i={};if(r){for(var o in t)("anchor"===o&&null!=t.anchor&&!Gr.equals(t.anchor,r.anchor)||"focus"===o&&null!=t.focus&&!Gr.equals(t.focus,r.focus)||"anchor"!==o&&"focus"!==o&&t[o]!==r[o])&&(n[o]=r[o],i[o]=t[o]);Object.keys(n).length>0&&e.apply({type:"set_selection",properties:n,newProperties:i})}}},vn={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Br.withoutNormalizing(e,(()=>{var{reverse:r=!1,unit:n="character",distance:i=1,voids:o=!1}=t,{at:a=e.selection,hanging:s=!1}=t;if(a){if(Jr.isRange(a)&&Jr.isCollapsed(a)&&(a=a.anchor),Gr.isPoint(a)){var u=Br.void(e,{at:a,mode:"highest"});if(!o&&u){var[,l]=u;a=l}else{var c={unit:n,distance:i};a={anchor:a,focus:r?Br.before(e,a,c)||Br.start(e,[]):Br.after(e,a,c)||Br.end(e,[])},s=!0}}if(Zr.isPath(a))wn.removeNodes(e,{at:a,voids:o});else if(!Jr.isCollapsed(a)){if(!s){var[,d]=Jr.edges(a),p=Br.end(e,[]);Gr.equals(d,p)||(a=Br.unhangRange(e,a,{voids:o}))}var[f,m]=Jr.edges(a),h=Br.above(e,{match:t=>Br.isBlock(e,t),at:f,voids:o}),g=Br.above(e,{match:t=>Br.isBlock(e,t),at:m,voids:o}),v=h&&g&&!Zr.equals(h[1],g[1]),b=Zr.equals(f.path,m.path),y=o?null:Br.void(e,{at:f,mode:"highest"}),w=o?null:Br.void(e,{at:m,mode:"highest"});if(y){var D=Br.before(e,f);D&&h&&Zr.isAncestor(h[1],D.path)&&(f=D)}if(w){var E=Br.after(e,m);E&&g&&Zr.isAncestor(g[1],E.path)&&(m=E)}var C,S=[];for(var I of Br.nodes(e,{at:a,voids:o})){var[x,O]=I;C&&0===Zr.compare(O,C)||(!o&&Br.isVoid(e,x)||!Zr.isCommon(O,f.path)&&!Zr.isCommon(O,m.path))&&(S.push(I),C=O)}var A=Array.from(S,(t=>{var[,r]=t;return Br.pathRef(e,r)})),M=Br.pointRef(e,f),P=Br.pointRef(e,m);if(!b&&!y){var B=M.current,[N]=Br.leaf(e,B),{path:k}=B,{offset:T}=f,j=N.text.slice(T);j.length>0&&e.apply({type:"remove_text",path:k,offset:T,text:j})}for(var L of A){var F=L.unref();wn.removeNodes(e,{at:F,voids:o})}if(!w){var R=P.current,[_]=Br.leaf(e,R),{path:Z}=R,H=b?f.offset:0,W=_.text.slice(H,m.offset);W.length>0&&e.apply({type:"remove_text",path:Z,offset:H,text:W})}!b&&v&&P.current&&M.current&&wn.mergeNodes(e,{at:P.current,hanging:!0,voids:o});var U=r?M.unref()||P.unref():P.unref()||M.unref();null==t.at&&U&&wn.select(e,U)}}}))},insertFragment(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Br.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:i=!1}=r,{at:o=e.selection}=r;if(t.length&&o){if(Jr.isRange(o))if(n||(o=Br.unhangRange(e,o)),Jr.isCollapsed(o))o=o.anchor;else{var[,a]=Jr.edges(o);if(!i&&Br.void(e,{at:a}))return;var s=Br.pointRef(e,a);wn.delete(e,{at:o}),o=s.unref()}else Zr.isPath(o)&&(o=Br.start(e,o));if(i||!Br.void(e,{at:o})){var u=Br.above(e,{at:o,match:t=>Br.isInline(e,t),mode:"highest",voids:i});if(u){var[,l]=u;if(Br.isEnd(e,o,l))o=Br.after(e,l);else if(Br.isStart(e,o,l)){o=Br.before(e,l)}}var c=Br.above(e,{match:t=>Br.isBlock(e,t),at:o,voids:i}),[,d]=c,p=Br.isStart(e,o,d),f=Br.isEnd(e,o,d),m=p&&f,h=!p||p&&f,g=!f,[,v]=Lr.first({children:t},[]),[,b]=Lr.last({children:t},[]),y=[],w=t=>{var[r,n]=t;return!(0===n.length)&&(!!m||!(h&&Zr.isAncestor(n,v)&&Ir.isElement(r)&&!e.isVoid(r)&&!e.isInline(r))&&!(g&&Zr.isAncestor(n,b)&&Ir.isElement(r)&&!e.isVoid(r)&&!e.isInline(r)))};for(var D of Lr.nodes({children:t},{pass:w}))w(D)&&y.push(D);var E=[],C=[],S=[],I=!0,x=!1;for(var[O]of y)Ir.isElement(O)&&!e.isInline(O)?(I=!1,x=!0,C.push(O)):I?E.push(O):S.push(O);var[A]=Br.nodes(e,{at:o,match:t=>tn.isText(t)||Br.isInline(e,t),mode:"highest",voids:i}),[,M]=A,P=Br.isStart(e,o,M),B=Br.isEnd(e,o,M),N=Br.pathRef(e,f?Zr.next(d):d),k=Br.pathRef(e,B?Zr.next(M):M),T=Br.pathRef(e,d);wn.splitNodes(e,{at:o,match:t=>x?Br.isBlock(e,t):tn.isText(t)||Br.isInline(e,t),mode:x?"lowest":"highest",voids:i});var j=Br.pathRef(e,!P||P&&B?Zr.next(M):M);if(wn.insertNodes(e,E,{at:j.current,match:t=>tn.isText(t)||Br.isInline(e,t),mode:"highest",voids:i}),m&&C.length&&wn.delete(e,{at:T.unref(),voids:i}),wn.insertNodes(e,C,{at:N.current,match:t=>Br.isBlock(e,t),mode:"lowest",voids:i}),wn.insertNodes(e,S,{at:k.current,match:t=>tn.isText(t)||Br.isInline(e,t),mode:"highest",voids:i}),!r.at){var L;L=S.length>0?Zr.previous(k.current):C.length>0?Zr.previous(N.current):Zr.previous(j.current);var F=Br.end(e,L);wn.select(e,F)}j.unref(),N.unref(),k.unref()}}}))},insertText(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Br.withoutNormalizing(e,(()=>{var{voids:n=!1}=r,{at:i=e.selection}=r;if(i){if(Zr.isPath(i)&&(i=Br.range(e,i)),Jr.isRange(i))if(Jr.isCollapsed(i))i=i.anchor;else{var o=Jr.end(i);if(!n&&Br.void(e,{at:o}))return;var a=Br.pointRef(e,o);wn.delete(e,{at:i,voids:n}),i=a.unref(),wn.setSelection(e,{anchor:i,focus:i})}if(n||!Br.void(e,{at:i})){var{path:s,offset:u}=i;t.length>0&&e.apply({type:"insert_text",path:s,offset:u,text:t})}}}))}};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 yn(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){Rt(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}var wn=yn(yn(yn(yn({},on),cn),gn),vn),Dn=r(19141),En=r.n(Dn),Cn=r(76897),Sn=r.n(Cn),In=r(38172),xn=r.n(In);function On(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function An(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function Mn(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var r=getComputedStyle(e,null);return An(r.overflowY,t)||An(r.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function Pn(e,t,r,n,i,o,a,s){return o<e&&a>t||o>e&&a<t?0:o<=e&&s<=r||a>=t&&s>=r?o-e-n:a>t&&s<r||o<e&&s>r?a-t+i:0}function Bn(e,t){var r=window,n=t.scrollMode,i=t.block,o=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,u="function"==typeof a?a:function(e){return e!==a};if(!On(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],d=e;On(d)&&u(d);){if((d=d.parentElement)===l){c.push(d);break}null!=d&&d===document.body&&Mn(d)&&!Mn(document.documentElement)||null!=d&&Mn(d,s)&&c.push(d)}for(var p=r.visualViewport?r.visualViewport.width:innerWidth,f=r.visualViewport?r.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),v=g.height,b=g.width,y=g.top,w=g.right,D=g.bottom,E=g.left,C="start"===i||"nearest"===i?y:"end"===i?D:y+v/2,S="center"===o?E+b/2:"end"===o?w:E,I=[],x=0;x<c.length;x++){var O=c[x],A=O.getBoundingClientRect(),M=A.height,P=A.width,B=A.top,N=A.right,k=A.bottom,T=A.left;if("if-needed"===n&&y>=0&&E>=0&&D<=f&&w<=p&&y>=B&&D<=k&&E>=T&&w<=N)return I;var j=getComputedStyle(O),L=parseInt(j.borderLeftWidth,10),F=parseInt(j.borderTopWidth,10),R=parseInt(j.borderRightWidth,10),_=parseInt(j.borderBottomWidth,10),Z=0,H=0,W="offsetWidth"in O?O.offsetWidth-O.clientWidth-L-R:0,U="offsetHeight"in O?O.offsetHeight-O.clientHeight-F-_:0;if(l===O)Z="start"===i?C:"end"===i?C-f:"nearest"===i?Pn(h,h+f,f,F,_,h+C,h+C+v,v):C-f/2,H="start"===o?S:"center"===o?S-p/2:"end"===o?S-p:Pn(m,m+p,p,L,R,m+S,m+S+b,b),Z=Math.max(0,Z+h),H=Math.max(0,H+m);else{Z="start"===i?C-B-F:"end"===i?C-k+_+U:"nearest"===i?Pn(B,k,M,F,_+U,C,C+v,v):C-(B+M/2)+U/2,H="start"===o?S-T-L:"center"===o?S-(T+P/2)+W/2:"end"===o?S-N+R+W:Pn(T,N,P,L,R+W,S,S+b,b);var G=O.scrollLeft,z=O.scrollTop;C+=z-(Z=Math.max(0,Math.min(z+Z,O.scrollHeight-M+U))),S+=G-(H=Math.max(0,Math.min(G+H,O.scrollWidth-P+W)))}I.push({el:O,top:Z,left:H})}return I}function Nn(e){return e===Object(e)&&0!==Object.keys(e).length}var kn=function(e,t){var r=e.isConnected||e.ownerDocument.documentElement.contains(e);if(Nn(t)&&"function"==typeof t.behavior)return t.behavior(r?Bn(e,t):[]);if(r){var n=function(e){return!1===e?{block:"end",inline:"nearest"}:Nn(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var r="scrollBehavior"in document.body.style;e.forEach((function(e){var n=e.el,i=e.top,o=e.left;n.scroll&&r?n.scroll({top:i,left:o,behavior:t}):(n.scrollTop=i,n.scrollLeft=o)}))}(Bn(e,n),n.behavior)}},Tn=r(45350);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 Ln(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 Fn=parseInt(i.version.split(".")[0],10)>=17,Rn="undefined"!=typeof navigator&&"undefined"!=typeof window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,_n="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),Zn="undefined"!=typeof navigator&&/Android/.test(navigator.userAgent),Hn="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Wn="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),Un="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(\.)/i.test(navigator.userAgent),Gn="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),zn="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(\.)/i.test(navigator.userAgent),qn="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])).*/i.test(navigator.userAgent),Vn="undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent),Jn="undefined"!=typeof navigator&&/.*UCBrowser/.test(navigator.userAgent),Yn="undefined"!=typeof navigator&&/.*Wechat/.test(navigator.userAgent),Qn=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Xn=!zn&&!Un&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,Kn=Qn?i.useLayoutEffect:i.useEffect,$n=e=>{var{isLast:t,leaf:r,parent:n,text:o}=e,a=ki(),s=Do.findPath(a,o),u=Zr.parent(s);return a.isVoid(n)?i.createElement(ti,{length:Lr.string(n).length}):""!==r.text||n.children[n.children.length-1]!==o||a.isInline(n)||""!==Br.string(a,u)?""===r.text?i.createElement(ti,null):t&&"\n"===r.text.slice(-1)?i.createElement(ei,{isTrailing:!0,text:r.text}):i.createElement(ei,{text:r.text}):i.createElement(ti,{isLineBreak:!0})},ei=e=>{var{text:t,isTrailing:r=!1}=e,n=(0,i.useRef)(null),o=()=>"".concat(null!=t?t:"").concat(r?"\n":"");return Kn((()=>{var e=o();n.current&&n.current.textContent!==e&&(n.current.textContent=e)})),n.current?i.createElement("span",{"data-slate-string":!0,ref:n}):i.createElement("span",{"data-slate-string":!0,ref:n},o())},ti=e=>{var{length:t=0,isLineBreak:r=!1}=e;return i.createElement("span",{"data-slate-zero-width":r?"n":"z","data-slate-length":t},"\ufeff",r?i.createElement("br",null):null)},ri=new WeakMap,ni=new WeakMap,ii=new WeakMap,oi=new WeakMap,ai=new WeakMap,si=new WeakMap,ui=new WeakMap,li=new WeakMap,ci=new WeakMap,di=new WeakMap,pi=new WeakMap,fi=new WeakMap,mi=new WeakMap,hi=new WeakMap,gi=new WeakMap,vi=new WeakMap,bi=Symbol("placeholder"),yi=e=>{var{leaf:t,isLast:r,text:n,parent:o,renderPlaceholder:a,renderLeaf:s=(e=>i.createElement(Di,Object.assign({},e)))}=e,u=(0,i.useRef)(null);(0,i.useEffect)((()=>{var e=null==u?void 0:u.current,t=document.querySelector('[data-slate-editor="true"]');if(e&&t)return t.style.minHeight="".concat(e.clientHeight,"px"),()=>{t.style.minHeight="auto"}}),[u,t]);var l=i.createElement($n,{isLast:r,leaf:t,parent:o,text:n});if(t[bi]){var c={children:t.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none"},contentEditable:!1,ref:u}};l=i.createElement(i.Fragment,null,a(c),l)}return s({attributes:{"data-slate-leaf":!0},children:l,leaf:t,text:n})},wi=i.memo(yi,((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&tn.equals(t.leaf,e.leaf)&&t.leaf[bi]===e.leaf[bi])),Di=e=>{var{attributes:t,children:r}=e;return i.createElement("span",Object.assign({},t),r)},Ei=["anchor","focus"],Ci=["anchor","focus"],Si=(e,t)=>Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every((r=>t.hasOwnProperty(r)&&e[r]===t[r])),Ii=(e,t)=>{if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++){var n=e[r],i=t[r],o=Ln(n,Ei),a=Ln(i,Ci);if(!Jr.equals(n,i)||n[bi]!==i[bi]||!Si(o,a))return!1}return!0};function xi(e){var t=(0,i.useRef)(0),r=(0,i.useRef)(null),[,n]=(0,i.useState)(0);return(0,i.useEffect)((()=>(vi.set(e,(()=>{r.current||(r.current=requestAnimationFrame((()=>{n((e=>e+1)),r.current=null})),t.current++)})),()=>{vi.delete(e)})),[e]),r.current&&(cancelAnimationFrame(r.current),r.current=null),t.current}var Oi=e=>{for(var{decorations:t,isLast:r,parent:n,renderPlaceholder:o,renderLeaf:a,text:s}=e,u=ki(),l=(0,i.useRef)(null),c=tn.decorations(s,t),d=Do.findKey(u,s),p=[],f=0;f<c.length;f++){var m=c[f];p.push(i.createElement(wi,{isLast:r&&f===c.length-1,key:"".concat(d.id,"-").concat(f),renderPlaceholder:o,leaf:m,text:s,parent:n,renderLeaf:a}))}Kn((()=>{var e=li.get(u);l.current?(null==e||e.set(d,l.current),si.set(s,l.current),ai.set(l.current,s)):(null==e||e.delete(d),si.delete(s))}));var h=Zn?xi(s):void 0;return i.createElement("span",{"data-slate-node":"text",ref:l,key:h},p)},Ai=i.memo(Oi,((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.text===e.text&&Ii(t.decorations,e.decorations))),Mi=e=>{var{decorations:t,element:r,renderElement:n=(e=>i.createElement(Bi,Object.assign({},e))),renderPlaceholder:o,renderLeaf:a,selection:s}=e,u=(0,i.useRef)(null),l=ki(),c=Wi(),d=l.isInline(r),p=Do.findKey(l,r),f=ji({decorations:t,node:r,renderElement:n,renderPlaceholder:o,renderLeaf:a,selection:s}),m={"data-slate-node":"element",ref:u};if(d&&(m["data-slate-inline"]=!0),!d&&Br.hasInlines(l,r)){var h=Lr.string(r),g=En()(h);"rtl"===g&&(m.dir=g)}if(Br.isVoid(l,r)){m["data-slate-void"]=!0,!c&&d&&(m.contentEditable=!1);var v=d?"span":"div",[[b]]=Lr.texts(r);f=i.createElement(v,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},i.createElement(Ai,{renderPlaceholder:o,decorations:[],isLast:!1,parent:r,text:b})),ri.set(b,0),ni.set(b,r)}Kn((()=>{var e=li.get(l);u.current?(null==e||e.set(p,u.current),si.set(r,u.current),ai.set(u.current,r)):(null==e||e.delete(p),si.delete(r))}));var y=n({attributes:m,children:f,element:r});if(Zn){var w=xi(r);return i.createElement(i.Fragment,{key:w},y)}return y},Pi=i.memo(Mi,((e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&Ii(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&Jr.equals(e.selection,t.selection)))),Bi=e=>{var{attributes:t,children:r,element:n}=e,o=ki().isInline(n)?"span":"div";return i.createElement(o,Object.assign({},t,{style:{position:"relative"}}),r)},Ni=(0,i.createContext)(null),ki=()=>{var e=(0,i.useContext)(Ni);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e},Ti=(0,i.createContext)(!1),ji=e=>{for(var{decorations:t,node:r,renderElement:n,renderPlaceholder:o,renderLeaf:a,selection:s}=e,u=ki(),l=Do.findPath(u,r),c=[],d=Ir.isElement(r)&&!u.isInline(r)&&Br.hasInlines(u,r),p=function(e){var p=l.concat(e),f=r.children[e],m=Do.findKey(u,f),h=Br.range(u,p),g=s&&Jr.intersection(h,s),v=t.reduce(((e,t)=>{var r=Jr.intersection(t,h);return r&&e.push(r),e}),[]);Ir.isElement(f)?c.push(i.createElement(Ti.Provider,{key:"provider-".concat(m.id),value:!!g},i.createElement(Pi,{decorations:v,element:f,key:m.id,renderElement:n,renderPlaceholder:o,renderLeaf:a,selection:g}))):c.push(i.createElement(Ai,{decorations:v,key:m.id,isLast:d&&e===r.children.length-1,parent:r,renderPlaceholder:o,renderLeaf:a,text:f})),ri.set(f,e),ni.set(f,r)},f=0;f<r.children.length;f++)p(f);return c},Li={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",insertSoftBreak:"shift+enter",splitBlock:"enter",undo:"mod+z"},Fi={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},Ri={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},_i=e=>{var t=Li[e],r=Fi[e],n=Ri[e],i=t&&(0,Tn.TB)(t),o=r&&(0,Tn.TB)(r),a=n&&(0,Tn.TB)(n);return e=>!(!i||!i(e))||(!!(_n&&o&&o(e))||!(_n||!a||!a(e)))},Zi={isBold:_i("bold"),isCompose:_i("compose"),isMoveBackward:_i("moveBackward"),isMoveForward:_i("moveForward"),isDeleteBackward:_i("deleteBackward"),isDeleteForward:_i("deleteForward"),isDeleteLineBackward:_i("deleteLineBackward"),isDeleteLineForward:_i("deleteLineForward"),isDeleteWordBackward:_i("deleteWordBackward"),isDeleteWordForward:_i("deleteWordForward"),isExtendBackward:_i("extendBackward"),isExtendForward:_i("extendForward"),isExtendLineBackward:_i("extendLineBackward"),isExtendLineForward:_i("extendLineForward"),isItalic:_i("italic"),isMoveLineBackward:_i("moveLineBackward"),isMoveLineForward:_i("moveLineForward"),isMoveWordBackward:_i("moveWordBackward"),isMoveWordForward:_i("moveWordForward"),isRedo:_i("redo"),isSoftBreak:_i("insertSoftBreak"),isSplitBlock:_i("splitBlock"),isTransposeCharacter:_i("transposeCharacter"),isUndo:_i("undo")},Hi=(0,i.createContext)(!1),Wi=()=>(0,i.useContext)(Hi),Ui=(0,i.createContext)(null),Gi=()=>{var e=(0,i.useContext)(Ui);if(!e)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");var[t]=e;return t},zi=(0,i.createContext)((()=>[])),qi=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,Vi=e=>Ji(e)&&1===e.nodeType,Ji=e=>{var t=qi(e);return!!t&&e instanceof t.Node},Yi=e=>{var t=e&&e.anchorNode&&qi(e.anchorNode);return!!t&&e instanceof t.Selection},Qi=e=>Ji(e)&&3===e.nodeType,Xi=(e,t,r)=>{for(var n,{childNodes:i}=e,o=i[t],a=t,s=!1,u=!1;(Ji(n=o)&&8===n.nodeType||Vi(o)&&0===o.childNodes.length||Vi(o)&&"false"===o.getAttribute("contenteditable"))&&(!s||!u);)a>=i.length?(s=!0,a=t-1,r="backward"):a<0?(u=!0,a=t+1,r="forward"):(o=i[a],t=a,a+="forward"===r?1:-1);return[o,t]},Ki=(e,t,r)=>{var[n]=Xi(e,t,r);return n},$i=e=>{var t="";if(Qi(e)&&e.nodeValue)return e.nodeValue;if(Vi(e)){for(var r of Array.from(e.childNodes))t+=$i(r);var n=getComputedStyle(e).getPropertyValue("display");"block"!==n&&"list"!==n&&"BR"!==e.tagName||(t+="\n")}return t},eo=/data-slate-fragment="(.+?)"/m,to=e=>{var t=e.getData("text/html"),[,r]=t.match(eo)||[];return r},ro=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as"];function no(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 io(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?no(Object(r),!0).forEach((function(t){jn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):no(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var oo=e=>i.createElement(i.Fragment,null,ji(e)),ao=e=>{var{attributes:t,children:r}=e;return i.createElement("span",Object.assign({},t),r)},so=()=>[],uo=(e,t)=>{if(!e.selection||e.selection&&Jr.isCollapsed(e.selection)){var r=t.startContainer.parentElement;r.getBoundingClientRect=t.getBoundingClientRect.bind(t),kn(r,{scrollMode:"if-needed"}),delete r.getBoundingClientRect}},lo=(e,t)=>Ji(t)&&Do.hasDOMNode(e,t),co=(e,t)=>Ji(t)&&Do.hasDOMNode(e,t,{editable:!0}),po=(e,t)=>{if(ci.get(e))return!1;var r=lo(e,t)&&Do.toSlateNode(e,t);return Br.isVoid(e,r)},fo=(e,t)=>{if(!t)return!1;var r=t(e);return null!=r?r:e.isDefaultPrevented()||e.isPropagationStopped()},mo=(e,t)=>{if(!t)return!1;var r=t(e);return null!=r?r:e.defaultPrevented};function ho(e,t){if(e===t)return null;var r=function(e,t){for(var r=Math.min(e.length,t.length),n=0;n<r;n++)if(e.charAt(n)!==t.charAt(n))return n;return e.length!==t.length?r:null}(e,t);if(null===r)return null;var n=function(e,t,r){for(var n=e.length,i=t.length,o=Math.min(n,i,r),a=0;a<o;a++)if(e.charAt(n-a-1)!==t.charAt(i-a-1))return a;return e.length!==t.length?o:null}(e,t,Math.min(e.length-r,t.length-r));return null===n?null:{start:r,end:n}}function go(e,t){return e.slice(t.start,e.length-t.end)}function vo(e,t){var r=Do.toSlateNode(e,t);if(tn.isText(r)){var n=r.text,i=t.textContent;if(i.endsWith("\n")&&(i=i.slice(0,i.length-1)),i!==n){var o=function(e,t){if(void 0===e||void 0===t)return null;var r=ho(e,t);if(null==r)return null;var n=go(t,r),i=go(e,r);return{start:r.start,end:e.length-r.end,insertText:n,removeText:i}}(n,i);if(null!==o)return{text:o,path:Do.findPath(e,r)}}}}function bo(e,t,r){var{path:n,text:i}=r,o={anchor:{path:n,offset:i.start},focus:{path:n,offset:i.end}};if(!t||!Jr.isCollapsed(t))return o;var{insertText:a,removeText:s}=i;if((1===a.length||1===s.length)&&Zr.equals(t.anchor.path,n)){var[u]=Array.from(Br.nodes(e,{at:t,match:tn.isText}));if(u){var[l]=u,{anchor:c}=t,d=l.text[c.offset-1],p=l.text[c.offset];if(1===a.length&&a===p)return t;if(1===s.length&&s===d)return{anchor:{path:n,offset:c.offset-1},focus:{path:n,offset:c.offset}}}}return o}var yo=0;class wo{constructor(){this.id="".concat(yo++)}}var Do={getWindow(e){var t=ii.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey(e,t){var r=ui.get(t);return r||(r=new wo,ui.set(t,r)),r},findPath(e,t){for(var r=[],n=t;;){var i=ni.get(n);if(null==i){if(Br.isEditor(n))return r;break}var o=ri.get(n);if(null==o)break;r.unshift(o),n=i}throw new Error("Unable to find the path for Slate node: ".concat(JSON.stringify(t)))},findDocumentOrShadowRoot(e){var t=Do.toDOMNode(e,e),r=t.getRootNode();return(r instanceof Document||r instanceof ShadowRoot)&&null!=r.getSelection?r:t.ownerDocument},isFocused:e=>!!di.get(e),isReadOnly:e=>!!ci.get(e),blur(e){var t=Do.toDOMNode(e,e),r=Do.findDocumentOrShadowRoot(e);di.set(e,!1),r.activeElement===t&&t.blur()},focus(e){var t=Do.toDOMNode(e,e),r=Do.findDocumentOrShadowRoot(e);di.set(e,!0),r.activeElement!==t&&t.focus({preventScroll:!0})},deselect(e){Do.toDOMNode(e,e);var{selection:t}=e,r=Do.findDocumentOrShadowRoot(e).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),t&&wn.deselect(e)},hasDOMNode(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{editable:i=!1}=n,o=Do.toDOMNode(e,e);try{r=Vi(t)?t:t.parentElement}catch(a){if(!a.message.includes('Permission denied to access property "nodeType"'))throw a}return!!r&&!(r.closest("[data-slate-editor]")!==o||i&&!r.isContentEditable&&("boolean"!=typeof r.isContentEditable||r.closest('[contenteditable="false"]')!==o)&&!r.getAttribute("data-slate-zero-width"))},insertData(e,t){e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),setFragmentData(e,t,r){e.setFragmentData(t,r)},toDOMNode(e,t){var r=li.get(e),n=Br.isEditor(t)?oi.get(e):null==r?void 0:r.get(Do.findKey(e,t));if(!n)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(JSON.stringify(t)));return n},toDOMPoint(e,t){var r,[n]=Br.node(e,t.path),i=Do.toDOMNode(e,n);Br.void(e,{at:t})&&(t={path:t.path,offset:0});var o=Array.from(i.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),a=0;for(var s of o){var u=s.childNodes[0];if(null!=u&&null!=u.textContent){var{length:l}=u.textContent,c=s.getAttribute("data-slate-length"),d=a+(null==c?l:parseInt(c,10));if(t.offset<=d){r=[u,Math.min(l,Math.max(0,t.offset-a))];break}a=d}}if(!r)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(JSON.stringify(t)));return r},toDOMRange(e,t){var{anchor:r,focus:n}=t,i=Jr.isBackward(t),o=Do.toDOMPoint(e,r),a=Jr.isCollapsed(t)?o:Do.toDOMPoint(e,n),s=Do.getWindow(e).document.createRange(),[u,l]=i?a:o,[c,d]=i?o:a,p=!!(Vi(u)?u:u.parentElement).getAttribute("data-slate-zero-width"),f=!!(Vi(c)?c:c.parentElement).getAttribute("data-slate-zero-width");return s.setStart(u,p?1:l),s.setEnd(c,f?1:d),s},toSlateNode(e,t){var r=Vi(t)?t:t.parentElement;r&&!r.hasAttribute("data-slate-node")&&(r=r.closest("[data-slate-node]"));var n=r?ai.get(r):null;if(!n)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(r));return n},findEventRange(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var{clientX:r,clientY:n,target:i}=t;if(null==r||null==n)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var o,a=Do.toSlateNode(e,t.target),s=Do.findPath(e,a);if(Br.isVoid(e,a)){var u=i.getBoundingClientRect(),l=e.isInline(a)?r-u.left<u.left+u.width-r:n-u.top<u.top+u.height-n,c=Br.point(e,s,{edge:l?"start":"end"}),d=l?Br.before(e,c):Br.after(e,c);if(d)return Br.range(e,d)}var{document:p}=Do.getWindow(e);if(p.caretRangeFromPoint)o=p.caretRangeFromPoint(r,n);else{var f=p.caretPositionFromPoint(r,n);f&&((o=p.createRange()).setStart(f.offsetNode,f.offset),o.setEnd(f.offsetNode,f.offset))}if(!o)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));return Do.toSlateRange(e,o,{exactMatch:!1,suppressThrow:!1})},toSlatePoint(e,t,r){var{exactMatch:n,suppressThrow:i}=r,[o,a]=n?t:(e=>{var[t,r]=e;if(Vi(t)&&t.childNodes.length){var n=r===t.childNodes.length,i=n?r-1:r;for([t,i]=Xi(t,i,n?"backward":"forward"),n=i<r;Vi(t)&&t.childNodes.length;){var o=n?t.childNodes.length-1:0;t=Ki(t,o,n?"backward":"forward")}r=n&&null!=t.textContent?t.textContent.length:0}return[t,r]})(t),s=o.parentNode,u=null,l=0;if(s){var c,d=Do.toDOMNode(e,e),p=s.closest('[data-slate-void="true"]'),f=p&&d.contains(p)?p:null,m=s.closest("[data-slate-leaf]"),h=null;if(m){if(u=m.closest('[data-slate-node="text"]')){var g=Do.getWindow(e).document.createRange();g.setStart(u,0),g.setEnd(o,a);var v=g.cloneContents();[...Array.prototype.slice.call(v.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(v.querySelectorAll("[contenteditable=false]"))].forEach((e=>{e.parentNode.removeChild(e)})),l=v.textContent.length,h=u}}else f&&((m=f.querySelector("[data-slate-leaf]"))?(u=m.closest('[data-slate-node="text"]'),l=(h=m).textContent.length,h.querySelectorAll("[data-slate-zero-width]").forEach((e=>{l-=e.textContent.length}))):l=1);h&&l===h.textContent.length&&(s.hasAttribute("data-slate-zero-width")||Hn&&null!==(c=h.textContent)&&void 0!==c&&c.endsWith("\n\n"))&&l--}if(!u){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var b=Do.toSlateNode(e,u);return{path:Do.findPath(e,b),offset:l}},toSlateRange(e,t,r){var n,i,o,a,s,{exactMatch:u,suppressThrow:l}=r;if((Yi(t)?t.anchorNode:t.startContainer)&&(Yi(t)?(n=t.anchorNode,i=t.anchorOffset,o=t.focusNode,a=t.focusOffset,s=Gn&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(n=t.startContainer,i=t.startOffset,o=t.endContainer,a=t.endOffset,s=t.collapsed)),null==n||null==o||null==i||null==a)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));var c=Do.toSlatePoint(e,[n,i],{exactMatch:u,suppressThrow:l});if(!c)return null;var d=s?c:Do.toSlatePoint(e,[o,a],{exactMatch:u,suppressThrow:l});if(!d)return null;var p={anchor:c,focus:d};return Jr.isExpanded(p)&&Jr.isForward(p)&&Vi(o)&&Br.void(e,{at:p.focus,mode:"highest"})&&(p=Br.unhangRange(e,p,{voids:!0})),p},hasRange(e,t){var{anchor:r,focus:n}=t;return Br.hasPath(e,r.path)&&Br.hasPath(e,n.path)}};class Eo{constructor(e,t){this.editor=e,this.restoreDOM=t,this.flush=e=>{try{this.reconcileMutations(e)}catch(t){console.error(t),this.restoreDOM()}},this.reconcileMutations=e=>{var t=function(e,t){var r=[],n=[],i=[],o=[];return t.forEach((t=>{switch(t.type){case"childList":t.addedNodes.length&&t.addedNodes.forEach((e=>{r.push(e)})),t.removedNodes.forEach((e=>{n.push(e)}));break;case"characterData":o.push(t);var{parentNode:a}=t.target;if(!a)return;var s=vo(e,a);if(!s)return;if(i.some((e=>{var{path:t}=e;return Zr.equals(t,s.path)})))return;i.push(s)}})),{addedNodes:r,removedNodes:n,insertedText:i,characterDataMutations:o}}(this.editor,e),{insertedText:r,removedNodes:n}=t;if(((e,t)=>{var{selection:r}=e,{removedNodes:n}=t;return!!r&&Jr.isExpanded(r)&&n.length>0})(this.editor,t)){var i=function(e){return e.reduce(((e,t)=>{var{text:r}=t;return"".concat(e).concat(r.insertText)}),"")}(r);this.replaceExpandedSelection(i)}else((e,t)=>{var{addedNodes:r}=t,{selection:n}=e,i=n?Lr.parent(e,n.anchor.path):null,o=i?Do.toDOMNode(e,i):null;return!!o&&r.some((e=>e instanceof HTMLElement&&e.tagName===(null==o?void 0:o.tagName)))})(this.editor,t)?this.insertBreak():((e,t)=>{var{addedNodes:r,characterDataMutations:n,removedNodes:i}=t;return i.length>0&&0===r.length&&n.length>0})(this.editor,t)?this.removeLeafNodes(n):((e,t)=>{var{removedNodes:r}=t;return r.length>0})(this.editor,t)?this.deleteBackward():((e,t)=>{var{insertedText:r}=t;return r.length>0})(this.editor,t)&&this.insertText(r)},this.insertText=e=>{var{selection:t}=this.editor;if(pi.get(this.editor)||fi.get(this.editor))return hi.set(this.editor,e),void fi.set(this.editor,!1);e.forEach((e=>{var r=e.text.insertText,n=bo(this.editor,t,e);wn.setSelection(this.editor,n),Br.insertText(this.editor,r)}))},this.insertBreak=()=>{var{selection:e}=this.editor;Br.insertBreak(this.editor),this.restoreDOM(),e&&setTimeout((()=>{this.editor.selection&&Jr.equals(e,this.editor.selection)&&wn.move(this.editor)}),100)},this.replaceExpandedSelection=e=>{Br.deleteFragment(this.editor),e.length&&Br.insertText(this.editor,e),this.restoreDOM()},this.deleteBackward=()=>{Br.deleteBackward(this.editor),Do.focus(this.editor),this.restoreDOM()},this.removeLeafNodes=e=>{for(var t of e){var r=Do.toSlateNode(this.editor,t);if(r){var n=Do.findPath(this.editor,r);wn.delete(this.editor,{at:n}),this.restoreDOM()}}},this.editor=e,this.restoreDOM=t}}function Co(e,t,r){var[n]=(0,i.useState)((()=>new MutationObserver(t)));Kn((()=>{n.disconnect()})),(0,i.useEffect)((()=>{if(!e.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");return n.observe(e.current,r),n.disconnect.bind(n)}))}var So={childList:!0,characterData:!0,subtree:!0};function Io(e){var t,r=Vi(e)?e:e.parentElement;r&&!r.hasAttribute("data-slate-node")&&(r=r.closest("[data-slate-node]"));var n=r&&ai.get(r);return n||(null!==(t=r)&&void 0!==t&&t.parentElement?Io(r.parentElement):null)}function xo(e,t){var r=ki(),n=(0,i.useRef)(new Set);Co(e,(0,i.useCallback)((e=>{t.current&&e.forEach((e=>{var{target:t}=e,r=Io(t);if(r)return n.current.add(r)}))}),[]),So),n.current.clear();var o=(0,i.useCallback)((()=>{var e=Array.from(n.current.values()),t=e.filter((t=>!e.some((e=>Zr.isParent(Do.findPath(r,e),Do.findPath(r,t))))));t.forEach((e=>{var t;null===(t=vi.get(e))||void 0===t||t()})),n.current.clear()}),[]);return o}var Oo={childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0};function Ao(e){var t=ki(),{receivedUserInput:r,onUserInput:n}=function(){var e=ki(),t=(0,i.useRef)(!1),r=(0,i.useRef)(null),n=(0,i.useCallback)((()=>{if(!1===t.current){var n=Do.getWindow(e);t.current=!0,r.current&&n.cancelAnimationFrame(r.current),r.current=n.requestAnimationFrame((()=>{t.current=!1,r.current=null}))}}),[]);return(0,i.useEffect)((()=>{t.current&&(t.current=!1)})),{receivedUserInput:t,onUserInput:n}}(),o=xo(e,r),a=(0,i.useMemo)((()=>new Eo(t,o)),[o,t]),s=(0,i.useRef)(null),u=(0,i.useRef)(!1);return Co(e,(0,i.useCallback)((e=>{r.current&&(u.current=!0,a.flush(e),s.current&&clearTimeout(s.current),s.current=setTimeout((()=>{u.current=!1,s.current=null}),250))}),[]),Oo),{isReconciling:u,onUserInput:n}}var Mo=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","style","as"];function Po(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 Bo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Po(Object(r),!0).forEach((function(t){jn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Po(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var No=(0,i.createContext)(!1);var ko=(0,i.createContext)({});var To=["editor","children","onChange","value"],jo=e=>{var{editor:t,children:r,onChange:n,value:o}=e,a=Ln(e,To),s=(0,i.useRef)(!1),[u,l]=i.useState((()=>{if(!Lr.isNodeList(o))throw new Error("[Slate] value is invalid! Expected a list of elements"+"but got: ".concat(JSON.stringify(o)));if(!Br.isEditor(t))throw new Error("[Slate] editor is invalid! you passed:"+"".concat(JSON.stringify(t)));return t.children=o,Object.assign(t,a),[t]})),{selectorContext:c,onChange:d}=function(e){var t=(0,i.useRef)([]).current,r=(0,i.useRef)({editor:e}).current,n=(0,i.useCallback)((e=>{r.editor=e,t.forEach((t=>t(e)))}),[]);return{selectorContext:(0,i.useMemo)((()=>({getSlate:()=>r.editor,addEventListener:e=>(t.push(e),()=>{t.splice(t.indexOf(e),1)})})),[t,r]),onChange:n}}(t),p=(0,i.useCallback)((()=>{n&&n(t.children),l([t]),d(t)}),[n]);gi.set(t,p),(0,i.useEffect)((()=>()=>{gi.set(t,(()=>{})),s.current=!0}),[]);var[f,m]=(0,i.useState)(Do.isFocused(t));return(0,i.useEffect)((()=>{m(Do.isFocused(t))})),Kn((()=>{var e=()=>m(Do.isFocused(t));return Fn?(document.addEventListener("focusin",e),document.addEventListener("focusout",e),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",e)}):(document.addEventListener("focus",e,!0),document.addEventListener("blur",e,!0),()=>{document.removeEventListener("focus",e,!0),document.removeEventListener("blur",e,!0)})}),[]),i.createElement(ko.Provider,{value:c},i.createElement(Ui.Provider,{value:u},i.createElement(Ni.Provider,{value:t},i.createElement(No.Provider,{value:f},r))))},Lo=(e,t)=>{var r=(t.top+t.bottom)/2;return e.top<=r&&e.bottom>=r},Fo=(e,t,r)=>{var n=Do.toDOMRange(e,t).getBoundingClientRect(),i=Do.toDOMRange(e,r).getBoundingClientRect();return Lo(n,i)&&Lo(i,n)},Ro=e=>{var t=e,{apply:r,onChange:i,deleteBackward:o}=t;return li.set(t,new WeakMap),t.deleteBackward=r=>{if("line"!==r)return o(r);if(e.selection&&Jr.isCollapsed(e.selection)){var n=Br.above(e,{match:t=>Br.isBlock(e,t),at:e.selection});if(n){var[,i]=n,a=Br.range(e,i,e.selection.anchor),s=((e,t)=>{var r=Br.range(e,Jr.end(t)),n=Array.from(Br.positions(e,{at:t})),i=0,o=n.length,a=Math.floor(o/2);if(Fo(e,Br.range(e,n[i]),r))return Br.range(e,n[i],r);if(n.length<2)return Br.range(e,n[n.length-1],r);for(;a!==n.length&&a!==i;)Fo(e,Br.range(e,n[a]),r)?o=a:i=a,a=Math.floor((i+o)/2);return Br.range(e,n[o],r)})(t,a);Jr.isCollapsed(s)||wn.delete(e,{at:s})}}},t.apply=n=>{var i=[];switch(n.type){case"insert_text":case"remove_text":case"set_node":case"split_node":i.push(..._o(t,n.path));break;case"set_selection":var o;null===(o=mi.get(e))||void 0===o||o.unref(),mi.delete(e);break;case"insert_node":case"remove_node":i.push(..._o(t,Zr.parent(n.path)));break;case"merge_node":var a=Zr.previous(n.path);i.push(..._o(t,a));break;case"move_node":var s=Zr.common(Zr.parent(n.path),Zr.parent(n.newPath));i.push(..._o(t,s))}for(var[u,l]of(r(n),i)){var[c]=Br.node(t,u);ui.set(c,l)}},t.setFragmentData=e=>{var{selection:r}=t;if(r){var[n,i]=Jr.edges(r),o=Br.void(t,{at:n.path}),a=Br.void(t,{at:i.path});if(!Jr.isCollapsed(r)||o){var s=Do.toDOMRange(t,r),u=s.cloneContents(),l=u.childNodes[0];if(u.childNodes.forEach((e=>{e.textContent&&""!==e.textContent.trim()&&(l=e)})),a){var[c]=a,d=s.cloneRange(),p=Do.toDOMNode(t,c);d.setEndAfter(p),u=d.cloneContents()}if(o&&(l=u.querySelector("[data-slate-spacer]")),Array.from(u.querySelectorAll("[data-slate-zero-width]")).forEach((e=>{var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),Qi(l)){var f=l.ownerDocument.createElement("span");f.style.whiteSpace="pre",f.appendChild(l),u.appendChild(f),l=f}var m=t.getFragment(),h=JSON.stringify(m),g=window.btoa(encodeURIComponent(h));l.setAttribute("data-slate-fragment",g),e.setData("application/x-slate-fragment",g);var v=u.ownerDocument.createElement("div");return v.appendChild(u),v.setAttribute("hidden","true"),u.ownerDocument.body.appendChild(v),e.setData("text/html",v.innerHTML),e.setData("text/plain",$i(v)),u.ownerDocument.body.removeChild(v),e}}},t.insertData=e=>{t.insertFragmentData(e)||t.insertTextData(e)},t.insertFragmentData=e=>{var r=e.getData("application/x-slate-fragment")||to(e);if(r){var n=decodeURIComponent(window.atob(r)),i=JSON.parse(n);return t.insertFragment(i),!0}return!1},t.insertTextData=e=>{var r=e.getData("text/plain");if(r){var n=r.split(/\r\n|\r|\n/),i=!1;for(var o of n)i&&wn.splitNodes(t,{always:!0}),t.insertText(o),i=!0;return!0}return!1},t.onChange=()=>{n.unstable_batchedUpdates((()=>{var e=gi.get(t);e&&e(),i()}))},t},_o=(e,t)=>{var r=[];for(var[n,i]of Br.levels(e,{at:t})){var o=Do.findKey(e,n);r.push([i,o])}return r},Zo=Zn?e=>{var{autoFocus:t,decorate:r=so,onDOMBeforeInput:n,placeholder:o,readOnly:a=!1,renderElement:s,renderLeaf:u,renderPlaceholder:l=(e=>i.createElement(ao,Object.assign({},e))),style:c={},as:d="div"}=e,p=Ln(e,Mo),f=Gi(),[m,h]=(0,i.useState)(!1),g=(0,i.useRef)(null),v=Ao(g);ci.set(f,a);var b=(0,i.useMemo)((()=>({isComposing:!1,isUpdatingSelection:!1,latestElement:null})),[]),y=xi(f);Kn((()=>{var e;g.current&&(e=qi(g.current))?(ii.set(f,e),oi.set(f,g.current),si.set(f,g.current),ai.set(g.current,f)):si.delete(f);try{var{selection:t}=f,r=Do.findDocumentOrShadowRoot(f).getSelection();if(b.isComposing||!r||!Do.isFocused(f))return;var n="None"!==r.type;if(!t&&!n)return;var i=oi.get(f),o=!1;if(i.contains(r.anchorNode)&&i.contains(r.focusNode)&&(o=!0),n&&o&&t){var a=Do.toSlateRange(f,r,{exactMatch:!0,suppressThrow:!0});if(a&&Jr.equals(a,t))return}if(t&&!Do.hasRange(f,t))return void(f.selection=Do.toSlateRange(f,r,{exactMatch:!1,suppressThrow:!1}));var s=Do.toDOMNode(f,f);b.isUpdatingSelection=!0;var u=t&&Do.toDOMRange(f,t);if(u){Jr.isBackward(t)?r.setBaseAndExtent(u.endContainer,u.endOffset,u.startContainer,u.startOffset):r.setBaseAndExtent(u.startContainer,u.startOffset,u.endContainer,u.endOffset);var l=u.startContainer.parentElement;l.getBoundingClientRect=u.getBoundingClientRect.bind(u),kn(l,{scrollMode:"if-needed",boundary:s}),delete l.getBoundingClientRect}else r.removeAllRanges();setTimeout((()=>{b.isUpdatingSelection=!1}))}catch(c){b.isUpdatingSelection=!1}})),(0,i.useEffect)((()=>{g.current&&t&&g.current.focus()}),[t]);var w=(0,i.useCallback)(xn()((()=>{try{if(!b.isComposing&&!b.isUpdatingSelection&&!v.isReconciling.current){var e=Do.findDocumentOrShadowRoot(f),{activeElement:t}=e,r=Do.toDOMNode(f,f),n=e.getSelection();if(t===r?(b.latestElement=t,di.set(f,!0)):di.delete(f),!n)return wn.deselect(f);var{anchorNode:i,focusNode:o}=n,a=co(f,i)||po(f,i),s=co(f,o)||po(f,o);if(a&&s){var u=Do.toSlateRange(f,n,{exactMatch:!1,suppressThrow:!1});wn.select(f,u)}else wn.deselect(f)}}catch(l){}}),100),[a]),D=(0,i.useMemo)((()=>Sn()(w,0)),[w]),E=(0,i.useCallback)((e=>{a||!co(f,e.target)||mo(e,n)||(D.flush(),v.onUserInput())}),[a,n]);Kn((()=>{var e=g.current;return null==e||e.addEventListener("beforeinput",E),()=>null==e?void 0:e.removeEventListener("beforeinput",E)}),[y,n]),Kn((()=>{var e=Do.getWindow(f);return e.document.addEventListener("selectionchange",D),()=>{e.document.removeEventListener("selectionchange",D)}}),[D]);var C=r([f,[]]);if(o&&1===f.children.length&&1===Array.from(Lr.texts(f)).length&&""===Lr.string(f)&&!m){var S=Br.start(f,[]);C.push({[bi]:!0,placeholder:o,anchor:S,focus:S})}return i.createElement(Hi.Provider,{value:a},i.createElement(zi.Provider,{value:r},i.createElement(d,Object.assign({key:y,role:a?void 0:"textbox"},p,{spellCheck:p.spellCheck,autoCorrect:p.autoCorrect,autoCapitalize:p.autoCapitalize,"data-slate-editor":!0,"data-slate-node":"value",contentEditable:!a||void 0,suppressContentEditableWarning:!0,ref:g,style:Bo({position:"relative",outline:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},c),onCopy:(0,i.useCallback)((e=>{co(f,e.target)&&!fo(e,p.onCopy)&&(e.preventDefault(),Do.setFragmentData(f,e.clipboardData,"copy"))}),[p.onCopy]),onCut:(0,i.useCallback)((e=>{if(!a&&co(f,e.target)&&!fo(e,p.onCut)){e.preventDefault(),Do.setFragmentData(f,e.clipboardData,"cut");var{selection:t}=f;if(t)if(Jr.isExpanded(t))Br.deleteFragment(f);else{var r=Lr.parent(f,t.anchor.path);Br.isVoid(f,r)&&wn.delete(f)}}}),[a,p.onCut]),onFocus:(0,i.useCallback)((e=>{if(!a&&!b.isUpdatingSelection&&co(f,e.target)&&!fo(e,p.onFocus)){var t=Do.findDocumentOrShadowRoot(f);b.latestElement=t.activeElement,di.set(f,!0)}}),[a,p.onFocus]),onBlur:(0,i.useCallback)((e=>{if(!a&&!b.isUpdatingSelection&&co(f,e.target)&&!fo(e,p.onBlur)){var t=Do.findDocumentOrShadowRoot(f);if(b.latestElement!==t.activeElement){var{relatedTarget:r}=e;if(!(r===Do.toDOMNode(f,f)||Vi(r)&&r.hasAttribute("data-slate-spacer"))){if(null!=r&&Ji(r)&&Do.hasDOMNode(f,r)){var n=Do.toSlateNode(f,r);if(Ir.isElement(n)&&!f.isVoid(n))return}di.delete(f)}}}}),[a,p.onBlur]),onClick:(0,i.useCallback)((e=>{if(!a&&lo(f,e.target)&&!fo(e,p.onClick)&&Ji(e.target)){var t=Do.toSlateNode(f,e.target),r=Do.findPath(f,t);if(Br.hasPath(f,r))if(Lr.get(f,r)===t){var n=Br.start(f,r),i=Br.end(f,r),o=Br.void(f,{at:n}),s=Br.void(f,{at:i});if(o&&s&&Zr.equals(o[1],s[1])){var u=Br.range(f,n);wn.select(f,u)}}}}),[a,p.onClick]),onCompositionEnd:(0,i.useCallback)((e=>{co(f,e.target)&&!fo(e,p.onCompositionEnd)&&(D.flush(),setTimeout((()=>{b.isComposing&&h(!1),b.isComposing=!1,pi.set(f,!1),fi.set(f,!0);var e=hi.get(f)||[];if(e.length){hi.set(f,[]);var{selection:t}=f;e.forEach((e=>{var r=e.text.insertText,n=bo(f,t,e);wn.setSelection(f,n),Br.insertText(f,r)}))}}),20))}),[p.onCompositionEnd]),onCompositionUpdate:(0,i.useCallback)((e=>{co(f,e.target)&&!fo(e,p.onCompositionUpdate)&&(!b.isComposing&&h(!0),b.isComposing=!0,pi.set(f,!0))}),[p.onCompositionUpdate]),onCompositionStart:(0,i.useCallback)((e=>{co(f,e.target)&&!fo(e,p.onCompositionStart)&&(!b.isComposing&&h(!0),b.isComposing=!0,pi.set(f,!0))}),[p.onCompositionStart]),onPaste:(0,i.useCallback)((e=>{e.clipboardData=(e=>{if(!e.getData("application/x-slate-fragment")){var t=to(e);if(t){var r=new DataTransfer;return e.types.forEach((t=>{r.setData(t,e.getData(t))})),r.setData("application/x-slate-fragment",t),r}}return e})(e.clipboardData),!co(f,e.target)||fo(e,p.onPaste)||a||(e.preventDefault(),Do.insertData(f,e.clipboardData))}),[a,p.onPaste])}),ji({decorations:C,node:f,renderElement:s,renderPlaceholder:l,renderLeaf:u,selection:f.selection}))))}:e=>{var{autoFocus:t,decorate:r=so,onDOMBeforeInput:n,placeholder:o,readOnly:a=!1,renderElement:s,renderLeaf:u,renderPlaceholder:l=(e=>i.createElement(ao,Object.assign({},e))),scrollSelectionIntoView:c=uo,style:d={},as:p="div"}=e,f=Ln(e,ro),m=Gi(),[h,g]=(0,i.useState)(!1),v=(0,i.useRef)(null),b=(0,i.useRef)([]);ci.set(m,a);var y=(0,i.useMemo)((()=>({isComposing:!1,hasInsertPrefixInCompositon:!1,isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null})),[]);Kn((()=>{var e;v.current&&(e=qi(v.current))?(ii.set(m,e),oi.set(m,v.current),si.set(m,v.current),ai.set(v.current,m)):si.delete(m);var{selection:t}=m,r=Do.findDocumentOrShadowRoot(m).getSelection();if(!y.isComposing&&r&&Do.isFocused(m)){var n="None"!==r.type;if(t||n){var i=oi.get(m),o=!1;if(i.contains(r.anchorNode)&&i.contains(r.focusNode)&&(o=!0),n&&o&&t){var a=Do.toSlateRange(m,r,{exactMatch:!0,suppressThrow:!0});if(a&&Jr.equals(a,t))return}if(!t||Do.hasRange(m,t)){y.isUpdatingSelection=!0;var s=t&&Do.toDOMRange(m,t);s?(Jr.isBackward(t)?r.setBaseAndExtent(s.endContainer,s.endOffset,s.startContainer,s.startOffset):r.setBaseAndExtent(s.startContainer,s.startOffset,s.endContainer,s.endOffset),c(m,s)):r.removeAllRanges(),setTimeout((()=>{s&&Hn&&Do.toDOMNode(m,m).focus();y.isUpdatingSelection=!1}))}else m.selection=Do.toSlateRange(m,r,{exactMatch:!1,suppressThrow:!1})}}})),(0,i.useEffect)((()=>{v.current&&t&&v.current.focus()}),[t]);var w=(0,i.useCallback)(xn()((()=>{if(!y.isComposing&&!y.isUpdatingSelection&&!y.isDraggingInternally){var e=Do.findDocumentOrShadowRoot(m),{activeElement:t}=e,r=Do.toDOMNode(m,m),n=e.getSelection();if(t===r?(y.latestElement=t,di.set(m,!0)):di.delete(m),!n)return wn.deselect(m);var{anchorNode:i,focusNode:o}=n,a=co(m,i)||po(m,i),s=co(m,o)||po(m,o);if(a&&s){var u=Do.toSlateRange(m,n,{exactMatch:!1,suppressThrow:!1});wn.select(m,u)}}}),100),[a]),D=(0,i.useMemo)((()=>Sn()(w,0)),[w]),E=(0,i.useCallback)((e=>{if(!a&&co(m,e.target)&&!mo(e,n)){var t;D.flush(),w.flush();var{selection:r}=m,{inputType:i}=e,o=e.dataTransfer||e.data||void 0;if("insertCompositionText"===i||"deleteCompositionText"===i)return;var s=!1;if("insertText"===i&&r&&Jr.isCollapsed(r)&&e.data&&1===e.data.length&&/[a-z ]/i.test(e.data)&&0!==r.anchor.offset){s=!0,m.marks&&(s=!1);var{anchor:u}=r,l=Br.above(m,{at:u,match:e=>Br.isInline(m,e),mode:"highest"});if(l){var[,c]=l;Br.isEnd(m,r.anchor,c)&&(s=!1)}}if(s||e.preventDefault(),!i.startsWith("delete")||i.startsWith("deleteBy")){var[d]=e.getTargetRanges();if(d){var p=Do.toSlateRange(m,d,{exactMatch:!1,suppressThrow:!1});if(!r||!Jr.equals(r,p)){var f=m.selection&&Br.rangeRef(m,m.selection);wn.select(m,p),f&&mi.set(m,f)}}}if(r&&Jr.isExpanded(r)&&i.startsWith("delete")){var h=i.endsWith("Backward")?"backward":"forward";return void Br.deleteFragment(m,{direction:h})}switch(i){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":Br.deleteFragment(m);break;case"deleteContent":case"deleteContentForward":Br.deleteForward(m);break;case"deleteContentBackward":Br.deleteBackward(m);break;case"deleteEntireSoftLine":Br.deleteBackward(m,{unit:"line"}),Br.deleteForward(m,{unit:"line"});break;case"deleteHardLineBackward":Br.deleteBackward(m,{unit:"block"});break;case"deleteSoftLineBackward":Br.deleteBackward(m,{unit:"line"});break;case"deleteHardLineForward":Br.deleteForward(m,{unit:"block"});break;case"deleteSoftLineForward":Br.deleteForward(m,{unit:"line"});break;case"deleteWordBackward":Br.deleteBackward(m,{unit:"word"});break;case"deleteWordForward":Br.deleteForward(m,{unit:"word"});break;case"insertLineBreak":Br.insertSoftBreak(m);break;case"insertParagraph":Br.insertBreak(m);break;case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":var{selection:v}=m;v&&Jr.isExpanded(v)&&Br.deleteFragment(m),"insertFromComposition"===i&&(y.isComposing&&g(!1),y.isComposing=!1),"DataTransfer"===(null==o?void 0:o.constructor.name)?Do.insertData(m,o):"string"==typeof o&&(s?b.current.push((()=>Br.insertText(m,o))):Br.insertText(m,o))}var E=null===(t=mi.get(m))||void 0===t?void 0:t.unref();mi.delete(m),!E||m.selection&&Jr.equals(m.selection,E)||wn.select(m,E)}}),[a,n]);Kn((()=>(v.current&&Xn&&v.current.addEventListener("beforeinput",E),()=>{v.current&&Xn&&v.current.removeEventListener("beforeinput",E)})),[E]),Kn((()=>{var e=Do.getWindow(m);return e.document.addEventListener("selectionchange",D),()=>{e.document.removeEventListener("selectionchange",D)}}),[D]);var C=[...Lr.nodes(m)].flatMap((e=>{var[t,n]=e;return r([t,n])}));if(o&&1===m.children.length&&1===Array.from(Lr.texts(m)).length&&""===Lr.string(m)&&!h){var S=Br.start(m,[]);C.push({[bi]:!0,placeholder:o,anchor:S,focus:S})}return i.createElement(Hi.Provider,{value:a},i.createElement(zi.Provider,{value:r},i.createElement(p,Object.assign({role:a?void 0:"textbox"},f,{spellCheck:!(!Xn&&Qn)&&f.spellCheck,autoCorrect:Xn||!Qn?f.autoCorrect:"false",autoCapitalize:Xn||!Qn?f.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!a,zindex:-1,suppressContentEditableWarning:!0,ref:v,style:io({position:"relative",outline:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},d),onBeforeInput:(0,i.useCallback)((e=>{if(!Xn&&!a&&!fo(e,f.onBeforeInput)&&co(m,e.target)&&(e.preventDefault(),!y.isComposing)){var t=e.data;Br.insertText(m,t)}}),[a]),onInput:(0,i.useCallback)((e=>{for(var t of b.current)t();b.current=[]}),[]),onBlur:(0,i.useCallback)((e=>{if(!a&&!y.isUpdatingSelection&&co(m,e.target)&&!fo(e,f.onBlur)){var t=Do.findDocumentOrShadowRoot(m);if(y.latestElement!==t.activeElement){var{relatedTarget:r}=e;if(!(r===Do.toDOMNode(m,m)||Vi(r)&&r.hasAttribute("data-slate-spacer"))){if(null!=r&&Ji(r)&&Do.hasDOMNode(m,r)){var n=Do.toSlateNode(m,r);if(Ir.isElement(n)&&!m.isVoid(n))return}if(Wn){var i=t.getSelection();null==i||i.removeAllRanges()}di.delete(m)}}}}),[a,f.onBlur]),onClick:(0,i.useCallback)((e=>{if(lo(m,e.target)&&!fo(e,f.onClick)&&Ji(e.target)){var t=Do.toSlateNode(m,e.target),r=Do.findPath(m,t);if(3===e.detail){var n=Br.start(m,[r[0]]),i=Br.end(m,[r[0]]),o=Br.range(m,n,i);return void wn.select(m,o)}if(a)return;if(Br.hasPath(m,r))if(Lr.get(m,r)===t){var s=Br.start(m,r),u=Br.end(m,r),l=Br.void(m,{at:s}),c=Br.void(m,{at:u});if(l&&c&&Zr.equals(l[1],c[1])){var d=Br.range(m,s);wn.select(m,d)}}}}),[a,f.onClick]),onCompositionEnd:(0,i.useCallback)((e=>{if(co(m,e.target)&&!fo(e,f.onCompositionEnd)&&(y.isComposing&&g(!1),y.isComposing=!1,Wn||qn||Rn||Vn||Yn||Jn||!e.data||Br.insertText(m,e.data),m.selection&&Jr.isCollapsed(m.selection))){var t=m.selection.anchor.path,r=Lr.leaf(m,t);y.hasInsertPrefixInCompositon&&(y.hasInsertPrefixInCompositon=!1,Br.withoutNormalizing(m,(()=>{var e=r.text.replace(/^\uFEFF/,"");wn.delete(m,{distance:r.text.length,reverse:!0}),Br.insertText(m,e)})))}}),[f.onCompositionEnd]),onCompositionUpdate:(0,i.useCallback)((e=>{co(m,e.target)&&!fo(e,f.onCompositionUpdate)&&(!y.isComposing&&g(!0),y.isComposing=!0)}),[f.onCompositionUpdate]),onCompositionStart:(0,i.useCallback)((e=>{if(co(m,e.target)&&!fo(e,f.onCompositionStart)){var{selection:t,marks:r}=m;if(t){if(Jr.isExpanded(t))return void Br.deleteFragment(m);var n=Br.above(m,{match:e=>Br.isInline(m,e),mode:"highest"});if(n){var[,i]=n;if(Br.isEnd(m,t.anchor,i)){var o=Br.after(m,i);wn.setSelection(m,{anchor:o,focus:o})}}r&&(y.hasInsertPrefixInCompositon=!0,wn.insertNodes(m,io({text:"\ufeff"},r),{select:!0}))}}}),[f.onCompositionStart]),onCopy:(0,i.useCallback)((e=>{co(m,e.target)&&!fo(e,f.onCopy)&&(e.preventDefault(),Do.setFragmentData(m,e.clipboardData,"copy"))}),[f.onCopy]),onCut:(0,i.useCallback)((e=>{if(!a&&co(m,e.target)&&!fo(e,f.onCut)){e.preventDefault(),Do.setFragmentData(m,e.clipboardData,"cut");var{selection:t}=m;if(t)if(Jr.isExpanded(t))Br.deleteFragment(m);else{var r=Lr.parent(m,t.anchor.path);Br.isVoid(m,r)&&wn.delete(m)}}}),[a,f.onCut]),onDragOver:(0,i.useCallback)((e=>{if(lo(m,e.target)&&!fo(e,f.onDragOver)){var t=Do.toSlateNode(m,e.target);Br.isVoid(m,t)&&e.preventDefault()}}),[f.onDragOver]),onDragStart:(0,i.useCallback)((e=>{if(!a&&lo(m,e.target)&&!fo(e,f.onDragStart)){var t=Do.toSlateNode(m,e.target),r=Do.findPath(m,t);if(Br.isVoid(m,t)||Br.void(m,{at:r,voids:!0})){var n=Br.range(m,r);wn.select(m,n)}y.isDraggingInternally=!0,Do.setFragmentData(m,e.dataTransfer,"drag")}}),[a,f.onDragStart]),onDrop:(0,i.useCallback)((e=>{if(!a&&lo(m,e.target)&&!fo(e,f.onDrop)){e.preventDefault();var t=m.selection,r=Do.findEventRange(m,e),n=e.dataTransfer;wn.select(m,r),y.isDraggingInternally&&(!t||Jr.equals(t,r)||Br.void(m,{at:r,voids:!0})||wn.delete(m,{at:t})),Do.insertData(m,n),Do.isFocused(m)||Do.focus(m)}y.isDraggingInternally=!1}),[a,f.onDrop]),onDragEnd:(0,i.useCallback)((e=>{!a&&y.isDraggingInternally&&f.onDragEnd&&lo(m,e.target)&&f.onDragEnd(e),y.isDraggingInternally=!1}),[a,f.onDragEnd]),onFocus:(0,i.useCallback)((e=>{if(!a&&!y.isUpdatingSelection&&co(m,e.target)&&!fo(e,f.onFocus)){var t=Do.toDOMNode(m,m),r=Do.findDocumentOrShadowRoot(m);if(y.latestElement=r.activeElement,Hn&&e.target!==t)return void t.focus();di.set(m,!0)}}),[a,f.onFocus]),onKeyDown:(0,i.useCallback)((e=>{if(!a&&co(m,e.target)&&!fo(e,f.onKeyDown)&&!y.isComposing){var{nativeEvent:t}=e,{selection:r}=m,n=m.children[null!==r?r.focus.path[0]:0],i="rtl"===En()(Lr.string(n));if(Zi.isRedo(t)){e.preventDefault();var o=m;return void("function"==typeof o.redo&&o.redo())}if(Zi.isUndo(t)){e.preventDefault();var s=m;return void("function"==typeof s.undo&&s.undo())}if(Zi.isMoveLineBackward(t))return e.preventDefault(),void wn.move(m,{unit:"line",reverse:!0});if(Zi.isMoveLineForward(t))return e.preventDefault(),void wn.move(m,{unit:"line"});if(Zi.isExtendLineBackward(t))return e.preventDefault(),void wn.move(m,{unit:"line",edge:"focus",reverse:!0});if(Zi.isExtendLineForward(t))return e.preventDefault(),void wn.move(m,{unit:"line",edge:"focus"});if(Zi.isMoveBackward(t))return e.preventDefault(),void(r&&Jr.isCollapsed(r)?wn.move(m,{reverse:!i}):wn.collapse(m,{edge:"start"}));if(Zi.isMoveForward(t))return e.preventDefault(),void(r&&Jr.isCollapsed(r)?wn.move(m,{reverse:i}):wn.collapse(m,{edge:"end"}));if(Zi.isMoveWordBackward(t))return e.preventDefault(),r&&Jr.isExpanded(r)&&wn.collapse(m,{edge:"focus"}),void wn.move(m,{unit:"word",reverse:!i});if(Zi.isMoveWordForward(t))return e.preventDefault(),r&&Jr.isExpanded(r)&&wn.collapse(m,{edge:"focus"}),void wn.move(m,{unit:"word",reverse:i});if(Xn){if((Gn||Wn)&&r&&(Zi.isDeleteBackward(t)||Zi.isDeleteForward(t))&&Jr.isCollapsed(r)){var u=Lr.parent(m,r.anchor.path);if(Ir.isElement(u)&&Br.isVoid(m,u)&&Br.isInline(m,u))return e.preventDefault(),void Br.deleteBackward(m,{unit:"block"})}}else{if(Zi.isBold(t)||Zi.isItalic(t)||Zi.isTransposeCharacter(t))return void e.preventDefault();if(Zi.isSoftBreak(t))return e.preventDefault(),void Br.insertSoftBreak(m);if(Zi.isSplitBlock(t))return e.preventDefault(),void Br.insertBreak(m);if(Zi.isDeleteBackward(t))return e.preventDefault(),void(r&&Jr.isExpanded(r)?Br.deleteFragment(m,{direction:"backward"}):Br.deleteBackward(m));if(Zi.isDeleteForward(t))return e.preventDefault(),void(r&&Jr.isExpanded(r)?Br.deleteFragment(m,{direction:"forward"}):Br.deleteForward(m));if(Zi.isDeleteLineBackward(t))return e.preventDefault(),void(r&&Jr.isExpanded(r)?Br.deleteFragment(m,{direction:"backward"}):Br.deleteBackward(m,{unit:"line"}));if(Zi.isDeleteLineForward(t))return e.preventDefault(),void(r&&Jr.isExpanded(r)?Br.deleteFragment(m,{direction:"forward"}):Br.deleteForward(m,{unit:"line"}));if(Zi.isDeleteWordBackward(t))return e.preventDefault(),void(r&&Jr.isExpanded(r)?Br.deleteFragment(m,{direction:"backward"}):Br.deleteBackward(m,{unit:"word"}));if(Zi.isDeleteWordForward(t))return e.preventDefault(),void(r&&Jr.isExpanded(r)?Br.deleteFragment(m,{direction:"forward"}):Br.deleteForward(m,{unit:"word"}))}}}),[a,f.onKeyDown]),onPaste:(0,i.useCallback)((e=>{a||!co(m,e.target)||fo(e,f.onPaste)||Xn&&!(e=>e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length)(e.nativeEvent)||(e.preventDefault(),Do.insertData(m,e.clipboardData))}),[a,f.onPaste])}),i.createElement(oo,{decorations:C,node:m,renderElement:s,renderPlaceholder:l,renderLeaf:u,selection:m.selection}))))},Ho={isHistory:e=>Fe(e)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||_r.isOperationList(e.redos[0]))&&(0===e.undos.length||_r.isOperationList(e.undos[0]))},Wo=(new WeakMap,new WeakMap),Uo=new WeakMap,Go={isHistoryEditor:e=>Ho.isHistory(e.history)&&Br.isEditor(e),isMerging:e=>Uo.get(e),isSaving:e=>Wo.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var r=Go.isMerging(e);Uo.set(e,!1),t(),Uo.set(e,r)},withoutSaving(e,t){var r=Go.isSaving(e);Wo.set(e,!1),t(),Wo.set(e,r)}},zo=(e,t)=>"set_selection"===e.type||(!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!Zr.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!Zr.equals(e.path,t.path))),qo=(e,t)=>"set_selection"!==e.type||null!=e.properties&&null!=e.newProperties,Vo=(e,t)=>!(!t||"set_selection"!==e.type||"set_selection"!==t.type),Jo=e=>"set_selection"!==e.type;r(19985),r(193);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}var Qo=new WeakMap,Xo=new WeakMap;class Ko{}class $o extends Ko{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();var{offset:t,path:r}=e;this.offset=t,this.path=r}}class ea extends Ko{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();var{offset:t,path:r}=e;this.offset=t,this.path=r}}var ta=e=>Xo.get(e);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 na(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){Yo(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}var ia=new WeakSet,oa=e=>{var t=[],r=e=>{if(null!=e){var n=t[t.length-1];if("string"==typeof e){var i={text:e};ia.add(i),e=i}if(tn.isText(e)){var o=e;tn.isText(n)&&ia.has(n)&&ia.has(o)&&tn.equals(n,o,{loose:!0})?n.text+=o.text:t.push(o)}else if(Ir.isElement(e))t.push(e);else{if(!(e instanceof Ko))throw new Error("Unexpected hyperscript child object: ".concat(e));var a=t[t.length-1];tn.isText(a)||(r(""),a=t[t.length-1]),e instanceof $o?((e,t)=>{var r=e.text.length;Qo.set(e,[r,t])})(a,e):e instanceof ea&&((e,t)=>{var r=e.text.length;Xo.set(e,[r,t])})(a,e)}}};for(var n of e.flat(1/0))r(n);return t};function aa(e,t,r){return na(na({},t),{},{children:oa(r)})}function sa(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 ua(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?sa(Object(r),!0).forEach((function(t){Yo(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var la,ca={anchor:function(e,t,r){return new $o(t)},cursor:function(e,t,r){return[new $o(t),new ea(t)]},editor:(la=Jt,(e,t,r)=>{var n,i=[];for(var o of r)Jr.isRange(o)?n=o:i.push(o);var a,s=oa(i),u={},l=la();for(var[c,d]of(Object.assign(l,t),l.children=s,Lr.texts(l))){var p=(a=c,Qo.get(a)),f=ta(c);if(null!=p){var[m]=p;u.anchor={path:d,offset:m}}if(null!=f){var[h]=f;u.focus={path:d,offset:h}}}if(u.anchor&&!u.focus)throw new Error("Slate hyperscript ranges must have both `<anchor />` and `<focus />` defined if one is defined, but you only defined `<anchor />`. For collapsed selections, use `<cursor />` instead.");if(!u.anchor&&u.focus)throw new Error("Slate hyperscript ranges must have both `<anchor />` and `<focus />` defined if one is defined, but you only defined `<focus />`. For collapsed selections, use `<cursor />` instead.");return null!=n?l.selection=n:Jr.isRange(u)&&(l.selection=u),l}),element:aa,focus:function(e,t,r){return new ea(t)},fragment:function(e,t,r){return oa(r)},selection:function(e,t,r){var n=r.find((e=>e instanceof $o)),i=r.find((e=>e instanceof ea));if(!n||null==n.offset||null==n.path)throw new Error("The <selection> hyperscript tag must have an <anchor> tag as a child with `path` and `offset` attributes defined.");if(!i||null==i.offset||null==i.path)throw new Error("The <selection> hyperscript tag must have a <focus> tag as a child with `path` and `offset` attributes defined.");return na({anchor:{offset:n.offset,path:n.path},focus:{offset:i.offset,path:i.path}},t)},text:function(e,t,r){var n=oa(r);if(n.length>1)throw new Error("The <text> hyperscript tag must only contain a single node's worth of children.");var[i]=n;if(null==i&&(i={text:""}),!tn.isText(i))throw new Error("\n The <text> hyperscript tag can only contain text content as children.");return ia.delete(i),Object.assign(i,t),i}},da=e=>function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];var a=e[t];if(!a)throw new Error("No hyperscript creator found for tag: <".concat(t,">"));null==r&&(r={}),Fe(r)||(i=[r].concat(i),r={});var s=a(t,r,i=i.filter((e=>Boolean(e))).flat());return s},pa=e=>{var t={},r=function(r){var n=e[r];if("object"!=typeof n)throw new Error("Properties specified for a hyperscript shorthand should be an object, but for the custom element <".concat(r,"> tag you passed: ").concat(n));t[r]=(e,t,r)=>aa(0,ua(ua({},n),t),r)};for(var n in e)r(n);return t},fa=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{elements:t={}}=e,r=pa(t),n=ua(ua(ua({},ca),r),e.creators),i=da(n);return i}(),ma=r(43613),ha=r.n(ma),ga={A:e=>({type:"link",url:e.getAttribute("href"),newTab:"_blank"===e.getAttribute("target"),noFollow:!(!e.getAttribute("rel")||!e.getAttribute("rel").includes("nofollow")),sponsored:!(!e.getAttribute("rel")||!e.getAttribute("rel").includes("sponsored"))}),P:()=>({type:"paragraph"}),"WPRM-CODE":e=>({type:"code"}),"WPRM-TEMPERATURE":e=>({type:"temperature",icon:e.getAttribute("icon"),unit:e.getAttribute("unit"),help:e.getAttribute("help")})},va={EM:()=>({italic:!0}),I:()=>({italic:!0}),STRONG:()=>({bold:!0}),B:()=>({bold:!0}),U:()=>({underline:!0}),SUB:()=>({subscript:!0}),SUP:()=>({superscript:!0})},ba=function e(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(3===t.nodeType)return t.textContent.replace(/\r?\n|\r/g,"");if(1!==t.nodeType)return null;if("BR"===t.nodeName)return"";var{nodeName:n}=t,i=t;"PRE"===n&&t.childNodes[0]&&"CODE"===t.childNodes[0].nodeName&&(i=t.childNodes[0]);var o=Array.from(i.childNodes).map((t=>e(t,r))).reduce(((e,t)=>e.concat(t)),[]);if("BODY"===t.nodeName)return fa("fragment",{},o);if(r&&"P"===n)return o;if(ga[n]){var a=ga[n](t);"A"===n&&t.hasAttribute("data-eafl-id")&&(a={type:"affiliate-link",url:t.getAttribute("href"),id:parseInt(t.getAttribute("data-eafl-id"))});var s=fa("element",a,o);return"WPRM-CODE"===n&&(s.children=[{text:t.innerHTML}]),0===s.children.length&&(s.children=[{text:""}]),s}if(va[n]){var u=va[n](t);return(o=o.map((e=>"string"==typeof e||tn.isText(e)?e:e.hasOwnProperty("type")&&"link"===e.type&&(console.log("Information Lost",e),e.hasOwnProperty("children")&&1===e.children.length&&e.children[0].hasOwnProperty("text"))?e.children[0].text:""))).map((e=>fa("text",u,e)))}return o},ya=e=>{if(tn.isText(e)){var t=ha()(e.text);return e.bold&&(t="<strong>".concat(t,"</strong>")),e.italic&&(t="<em>".concat(t,"</em>")),e.underline&&(t="<u>".concat(t,"</u>")),e.subscript&&(t="<sub>".concat(t,"</sub>")),e.superscript&&(t="<sup>".concat(t,"</sup>")),t}var r=e.children.map((e=>ya(e))).join("");switch(e.type){case"paragraph":return"<p>".concat(r,"</p>");case"link":var n=[];return e.noFollow&&n.push("nofollow"),e.sponsored&&n.push("sponsored"),'<a href="'.concat(ha()(e.url),'"').concat(e.newTab?' target="_blank"':"").concat(n.length>0?' rel="'.concat(n.join(" "),'"'):"",">").concat(r,"</a>");case"affiliate-link":return'<a href="'.concat(ha()(e.url),'" data-eafl-id="').concat(ha()(e.id),'" class="eafl-link">').concat(r,"</a>");case"code":return"<wprm-code>".concat(r,"</wprm-code>");case"temperature":var i=e.help;return i=(i=(i=i.replace(/"/gm,"&quot;")).replace(/\]/gm,"&#93;")).replace(/>/gm,"&gt;"),'<wprm-temperature icon="'.concat(e.icon,'" unit="').concat(e.unit,'" help="').concat(i,'">').concat(r,"</wprm-temperature>");default:return r}},wa=r(26612),Da=e=>{var t=document.getElementById("wprm-admin-modal-toolbar-container");return t?n.createPortal(i.createElement("div",{className:"wprm-admin-modal-toolbar",onMouseDown:e=>{e.preventDefault()}},e.children),t):null},Ea=()=>{if(!window.hasOwnProperty("EAFL_Modal"))return null;var e=Gi(),[t]=Br.nodes(e,{match:e=>"affiliate-link"===e.type}),r=!!t;return i.createElement(i.Fragment,null,i.createElement("span",{className:"wprm-admin-modal-toolbar-button".concat(r?" wprm-admin-modal-toolbar-button-active":""),onMouseDown:n=>{n.preventDefault();var{selection:i}=e,o=i&&Jr.isCollapsed(i),a="";if(o||(window.getSelection?a=window.getSelection().toString():document.selection&&"Control"!=document.selection.type&&(a=document.selection.createRange().text)),r){var s=t[0];EAFL_Modal.open("edit",{linkId:s.id,saveCallback:r=>{s.url!==r.url&&((e,t,r,n)=>{var i=t[0],o=t[1],a={[r]:i[r]},s={[r]:n};e.apply({type:"set_node",path:o,properties:a,newProperties:s})})(e,t,"url",r.url)}})}else EAFL_Modal.open("insert",{insertCallback:(t,r)=>{r||(r="affiliate link");var n={type:"affiliate-link",children:o?[{text:r}]:[],url:t.url,id:t.id};o?wn.insertNodes(e,n):(wn.select(e,i),wn.wrapNodes(e,n,{split:!0}),wn.collapse(e,{edge:"end"}))},selectedText:a})}},i.createElement(wa.Z,{type:"eafl-link",title:r?(0,u.S)("Edit Affiliate Link"):(0,u.S)("Add Affiliate Link")})),r&&i.createElement("span",{className:"wprm-admin-modal-toolbar-button wprm-admin-modal-toolbar-button-active",onMouseDown:t=>{t.preventDefault(),wn.unwrapNodes(e,{match:e=>"affiliate-link"===e.type})}},i.createElement(wa.Z,{type:"eafl-unlink",title:(0,u.S)("Remove Affiliate Link")})))},Ca=e=>{var t=Gi(),r=((e,t)=>{var[r]=Br.nodes(e,{match:e=>e.type===t});return!!r})(t,e.type);return i.createElement(i.Fragment,null,r?i.createElement("span",{className:"wprm-admin-modal-toolbar-button wprm-admin-modal-toolbar-button-active",onMouseDown:r=>{r.preventDefault(),wn.unwrapNodes(t,{match:t=>t.type===e.type})}},e.IconRemove()):i.createElement("span",{className:"wprm-admin-modal-toolbar-button",onMouseDown:r=>{r.preventDefault();var{selection:n}=t,i=n&&Jr.isCollapsed(n),o=!0;if("link"===e.type&&(o=window.prompt((0,u.S)("Enter the URL of the link:"))),"code"===e.type&&i&&(o=window.prompt((0,u.S)("HTML or Shortcode:"))),"temperature"===e.type&&(i||(wn.collapse(t,{edge:"end"}),i=!0),o=window.prompt((0,u.S)("Temperature value (e.g. 350):"))),o){var a={type:e.type,children:i?[{text:""}]:[]};switch(e.type){case"link":a.url=o,i&&(a.children=[{text:o}]);break;case"code":i&&(a.children=[{text:o}]);break;case"temperature":a.icon="",a.unit=wprm_admin.temperature.default_unit,a.help="",a.children=[{text:o}];break;default:i&&(a.children=[{text:e.type}])}i?wn.insertNodes(t,a):(wn.wrapNodes(t,a,{split:!0}),wn.collapse(t,{edge:"end"}))}}},e.IconAdd()))},Sa=e=>{var t=Gi();return i.createElement("span",{className:"wprm-admin-modal-toolbar-button",onMouseDown:r=>{r.preventDefault(),Br.insertText(t,e.character)}},i.createElement(c.Z,{content:e.title},i.createElement("span",{className:"wprm-admin-modal-toolbar-button-character"},e.character)))},Ia=e=>{var t=Gi(),r=e.isMarkActive(t,e.type);return i.createElement("span",{className:"wprm-admin-modal-toolbar-button".concat(r?" wprm-admin-modal-toolbar-button-active":""),onMouseDown:r=>{r.preventDefault(),e.toggleMark(t,e.type)}},i.createElement(wa.Z,{type:e.type,title:e.title}))};function xa(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 Oa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xa(Object(r),!0).forEach((function(t){Aa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Aa(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ma=e=>{var t=Gi();return i.createElement("span",{className:"wprm-admin-modal-toolbar-button",onMouseDown:r=>{r.preventDefault();var n=e.hasOwnProperty("before")?e.before:"",i=e.hasOwnProperty("after")?e.after:"",{selection:o}=t;if(o&&Jr.isCollapsed(o))t.insertText("".concat(n).concat(i)),wn.move(t,{distance:i.length,reverse:!0});else{var[a,s]=Jr.edges(o);JSON.stringify(a.path)===JSON.stringify(s.path)&&(s=Oa(Oa({},s),{},{offset:s.offset+n.length})),wn.insertText(t,n,{at:a}),wn.insertText(t,i,{at:s}),wn.collapse(t,{edge:"end"})}}},e.Icon())},Pa=e=>i.createElement("span",{className:"wprm-admin-modal-toolbar-spacer"}),Ba=()=>{var e=Gi(),[t]=Br.nodes(e,{match:e=>"affiliate-link"===e.type});if(!t)return null;var r=t[0];return i.createElement("div",{className:"wprm-admin-modal-toolbar-link"},i.createElement(wa.Z,{type:"eafl-link"}),i.createElement("span",null,"#",r.id),i.createElement(Pa,null),i.createElement(wa.Z,{type:"link"}),i.createElement("span",null,r.url))},Na=(e,t)=>{var r=t[0],n=window.prompt((0,u.S)("Enter the URL of the link:"),r.url);n?Ta(e,t,"url",n):""===n&&wn.unwrapNodes(e,{match:e=>"link"===e.type})},ka=(e,t,r)=>{var n=t[0],i=!!n.hasOwnProperty(r)&&n[r];Ta(e,t,r,!i)},Ta=(e,t,r,n)=>{var i=t[0],o=t[1],a={[r]:i[r]},s={[r]:n};e.apply({type:"set_node",path:o,properties:a,newProperties:s})},ja=e=>{var t=Gi(),[r]=Br.nodes(t,{match:e=>"link"===e.type});if(!r)return null;var n=r[0];return i.createElement("div",{className:"wprm-admin-modal-toolbar-link"},i.createElement(wa.Z,{type:"link",onClick:()=>Na(t,r)}),i.createElement("span",{className:"wprm-admin-modal-toolbar-link-value",onMouseDown:()=>Na(t,r)},n.url),i.createElement(Pa,null),i.createElement(wa.Z,{type:n.newTab?"checkbox-checked":"checkbox-empty",onClick:()=>ka(t,r,"newTab")}),i.createElement("span",{className:"wprm-admin-modal-toolbar-link-value",onMouseDown:()=>ka(t,r,"newTab")},(0,u.S)("Open in new tab")),i.createElement(Pa,null),i.createElement(wa.Z,{type:n.noFollow?"checkbox-checked":"checkbox-empty",onClick:()=>ka(t,r,"noFollow")}),i.createElement("span",{className:"wprm-admin-modal-toolbar-link-value",onMouseDown:()=>ka(t,r,"noFollow")},(0,u.S)("Use nofollow")),i.createElement(Pa,null),i.createElement(wa.Z,{type:n.sponsored?"checkbox-checked":"checkbox-empty",onClick:()=>ka(t,r,"sponsored")}),i.createElement("span",{className:"wprm-admin-modal-toolbar-link-value",onMouseDown:()=>ka(t,r,"sponsored")},(0,u.S)("Use sponsored")))},La=(e,t,r,n)=>{var i=t[0],o=t[1],a={[r]:i[r]},s={[r]:n};e.apply({type:"set_node",path:o,properties:a,newProperties:s})},Fa=e=>{var t=Gi(),[r]=Br.nodes(t,{match:e=>"temperature"===e.type});if(!r)return null;var n=r[0];return i.createElement("div",{className:"wprm-admin-modal-toolbar-temperature"},i.createElement("span",{className:"wprm-admin-modal-toolbar-temperature-label"},"Icon:"),Object.keys(wprm_admin.temperature.icons).map(((e,o)=>{var a=!!wprm_admin.temperature.icons.hasOwnProperty(e)&&wprm_admin.temperature.icons[e];return a?i.createElement("img",{src:a.url,key:o,className:"wprm-admin-modal-toolbar-temperature-icon".concat(n.icon===e?" wprm-admin-modal-toolbar-temperature-icon-selected":""),onClick:()=>{n.icon===e?La(t,r,"icon",""):La(t,r,"icon",e)}}):null})),i.createElement(Pa,null),i.createElement("span",{className:"wprm-admin-modal-toolbar-temperature-label"},"Unit:"),i.createElement(wa.Z,{type:"F"===n.unit?"checkbox-checked":"checkbox-empty",onClick:()=>La(t,r,"unit","F")}),i.createElement("span",{className:"wprm-admin-modal-toolbar-temperature-value",onMouseDown:()=>La(t,r,"unit","F")}," °F"),i.createElement(Pa,null),i.createElement(wa.Z,{type:"C"===n.unit?"checkbox-checked":"checkbox-empty",onClick:()=>La(t,r,"unit","C")}),i.createElement("span",{className:"wprm-admin-modal-toolbar-temperature-value",onMouseDown:()=>La(t,r,"unit","C")}," °C"),i.createElement(Pa,null),i.createElement("span",{className:"wprm-admin-modal-toolbar-temperature-label"},"Tooltip:"),i.createElement("span",{className:"wprm-admin-modal-toolbar-temperature-value",onMouseDown:()=>{var e=window.prompt((0,u.S)("Temperature tooltip (e.g. Fan Assisted Heating):"),n.help);La(t,r,"help",e||"")}},n.help?n.help:(0,u.S)("Click to set an optional tooltip")))};r(23528);class Ra extends i.Component{constructor(e){super(e),window.wprm_admin_modal_suggestions=window.wprm_admin_modal_suggestions||{},window.wprm_admin_modal_suggestions.hasOwnProperty(e.type)||(window.wprm_admin_modal_suggestions[e.type]={}),this.state={search:"",suggestions:[],loading:!1}}componentDidMount(){this.updateSuggestions(this.props.value)}componentDidUpdate(){this.props.value!==this.state.search&&this.updateSuggestions(this.props.value)}updateSuggestions(e){window.wprm_admin_modal_suggestions[this.props.type].hasOwnProperty(e)?this.setState({suggestions:window.wprm_admin_modal_suggestions[this.props.type][e],search:e}):(this.setState({loading:!0,search:e}),l.Z.modal.getSuggestions({type:this.props.type,search:e}).then((t=>{t&&(window.wprm_admin_modal_suggestions[this.props.type][e]=t.suggestions,this.setState({suggestions:t.suggestions,loading:!1}))})))}render(){return i.createElement("div",{className:"wprm-admin-modal-toolbar-suggest"},this.state.loading||0!==this.state.suggestions.length?i.createElement(i.Fragment,null,i.createElement("strong",null,(0,u.S)("Suggestions:")),this.state.loading?i.createElement(Ce.Z,null):i.createElement(i.Fragment,null,this.state.suggestions.map(((e,t)=>i.createElement("span",{className:"wprm-admin-modal-toolbar-suggestion",onMouseDown:t=>{t.preventDefault(),this.props.onSelect(e.name)},key:t},i.createElement("span",{className:"wprm-admin-modal-toolbar-suggestion-text"},B().decode(e.name)," (",e.count,")")))))):i.createElement("strong",null,(0,u.S)("No suggestions found.")))}}function _a(){return _a=Object.assign?Object.assign.bind():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},_a.apply(this,arguments)}var Za=e=>{var t,r="";if("ingredient"!==e.type&&"equipment"!==e.type||(t=Gi(),r=ya(t)),!(0,i.useContext)(No))return null;var n={visibility:"hidden"},o=!1,a=!1;if("none"===e.type)return null;switch(e.type){case"no-styling":o=!0;break;case"no-link":case"equipment":case"ingredient":a=!0}return i.createElement(Da,null,i.createElement(Ba,null),i.createElement(ja,null),i.createElement(Fa,null),("ingredient"===e.type||"equipment"===e.type)&&i.createElement(Ra,{value:r,onSelect:e=>{wn.deselect(t),wn.select(t,{path:[0,0],offset:0}),wn.move(t,{unit:"line",edge:"end"}),wn.delete(t),Br.insertText(t,e)},type:e.type}),i.createElement("div",{className:"wprm-admin-modal-toolbar-buttons"},i.createElement("span",{style:o?n:null},i.createElement(Ia,_a({},e,{type:"bold",title:(0,u.S)("Bold")})),i.createElement(Ia,_a({},e,{type:"italic",title:(0,u.S)("Italic")})),i.createElement(Ia,_a({},e,{type:"underline",title:(0,u.S)("Underline")})),i.createElement(Pa,null),i.createElement(Ia,_a({},e,{type:"subscript",title:(0,u.S)("Subscript")})),i.createElement(Ia,_a({},e,{type:"superscript",title:(0,u.S)("Superscript")}))),i.createElement(Pa,null),i.createElement("span",{style:a?n:null},i.createElement(Ca,{type:"link",IconAdd:()=>i.createElement(wa.Z,{type:"link",title:(0,u.S)("Add Link")}),IconRemove:()=>i.createElement(wa.Z,{type:"unlink",title:(0,u.S)("Remove Link")})}),i.createElement(Ea,null)),i.createElement(Pa,null),i.createElement(Ca,{type:"code",IconAdd:()=>i.createElement(wa.Z,{type:"code",title:(0,u.S)("Add HTML or Shortcode")}),IconRemove:()=>i.createElement(wa.Z,{type:"code",title:(0,u.S)("Remove HTML or Shortcode")})}),"roundup"!==e.type&&i.createElement(i.Fragment,null,i.createElement(Ma,{before:"[adjustable]",after:"[/adjustable]",Icon:()=>i.createElement(wa.Z,{type:"adjustable",title:(0,u.S)("Add Adjustable Shortcode")})}),i.createElement(Ma,{before:"[timer minutes=0]",after:"[/timer]",Icon:()=>i.createElement(wa.Z,{type:"clock",title:(0,u.S)("Add Timer Shortcode")})}),i.createElement(Ca,{type:"temperature",IconAdd:()=>i.createElement(wa.Z,{type:"temperature",title:(0,u.S)("Add Temperature")}),IconRemove:()=>i.createElement(wa.Z,{type:"temperature",title:(0,u.S)("Remove Temperature")})}),i.createElement(Pa,null),i.createElement(Sa,{character:"½"}),i.createElement(Sa,{character:"⅓"}),i.createElement(Sa,{character:"⅔"}),i.createElement(Sa,{character:"¼"}),i.createElement(Sa,{character:"¾"}),i.createElement(Sa,{character:"⅕"}),i.createElement(Sa,{character:"⅖"}),i.createElement(Sa,{character:"⅗"}),i.createElement(Sa,{character:"⅘"}),i.createElement(Sa,{character:"⅙"}),i.createElement(Sa,{character:"⅚"}),i.createElement(Sa,{character:"⅐"}),i.createElement(Sa,{character:"⅛"}),i.createElement(Sa,{character:"⅜"}),i.createElement(Sa,{character:"⅝"}),i.createElement(Sa,{character:"⅞"}),i.createElement(Pa,null),i.createElement(Sa,{character:"°"}),i.createElement(Sa,{character:"Ø"}))))};function Ha(){return Ha=Object.assign?Object.assign.bind():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},Ha.apply(this,arguments)}var Wa=e=>{var{attributes:t,children:r,element:n}=e;switch(n.type){case"link":var o=[];return n.noFollow&&o.push("nofollow"),n.sponsored&&o.push("sponsored"),i.createElement("a",Ha({href:n.url,target:n.newTab?"_blank":null,rel:o.length>0?o.join(" "):null},t),r);case"affiliate-link":return i.createElement("a",Ha({href:n.url,"data-eafl-id":n.id,className:"eafl-link"},t),r);case"code":return i.createElement("wprm-code",null,r);case"temperature":var a=null;n.icon&&wprm_admin.temperature.icons.hasOwnProperty(n.icon)&&(a=i.createElement("img",{src:wprm_admin.temperature.icons[n.icon].url,className:"wprm-temperature-icon",contentEditable:!1}));var s=null;return n.unit&&(s=i.createElement("span",{contentEditable:!1}," °",n.unit)),i.createElement("wprm-temperature",{icon:n.icon,unit:n.unit,help:n.help},a,r,s);default:return i.createElement("p",t,r)}},Ua=e=>{var{attributes:t,children:r,leaf:n}=e;return n.bold&&(r=i.createElement("strong",null,r)),n.italic&&(r=i.createElement("em",null,r)),n.underline&&(r=i.createElement("u",null,r)),n.subscript&&(r=i.createElement("sub",null,r)),n.superscript&&(r=i.createElement("sup",null,r)),i.createElement("span",t,r)},Ga={"mod+b":"bold","mod+i":"italic","mod+u":"underline"},za=["link","affiliate-link","code","temperature"],qa=e=>{var{isInline:t}=e;return e.isInline=e=>!!za.includes(e.type)||t(e),e},Va=(e,t)=>{var{insertData:r}=e;return e.insertData=n=>{var i=n.getData("text/html");if(i){var o=(new DOMParser).parseFromString(i,"text/html"),a=ba(o.body,t.singleLine);wn.insertFragment(e,a)}else r(n)},e},Ja=e=>{for(var t,r=/\[wprm-temperature(\s.*?)]/gm;null!==(t=r.exec(e));){var n=void 0,i=(n=new RegExp(' value=\\"(.*?)"',"gm").exec(t[1]))?n[1]:"",o=(n=new RegExp(' unit=\\"(.*?)"',"gm").exec(t[1]))?n[1]:"",a=(n=new RegExp(' icon=\\"(.*?)"',"gm").exec(t[1]))?n[1]:"",s=(n=new RegExp(' help=\\"(.*?)"',"gm").exec(t[1]))?n[1]:"",u='<wprm-temperature unit="'.concat(o,'" icon="').concat(a,'" help="').concat(s,'">').concat(i,"</wprm-temperature>");e=e.replace(t[0],u)}for(var l=(new DOMParser).parseFromString(e,"text/html"),c=ba(l.body),d=0;d<c.length;d++){var p=c[d];p.hasOwnProperty("text")&&(c[d]={type:"paragraph",children:[p]})}return c},Ya=(e,t)=>{Qa(e,t)?Br.removeMark(e,t):Br.addMark(e,t,!0)},Qa=(e,t)=>{var r=Br.marks(e);return!!r&&!0===r[t]},Xa=e=>{if(Te())return e.singleLine?i.createElement("div",{className:"wprm-admin-modal-field-richtext-legacy"},i.createElement(g.Z,e)):i.createElement("div",{className:"wprm-admin-modal-field-richtext-legacy"},i.createElement(fe.Z,e));var t=(0,i.useMemo)((()=>Va(qa((e=>{var t=e,{apply:r}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:r}=e;if(r.length>0){var n=r[r.length-1];Go.withoutSaving(t,(()=>{Br.withoutNormalizing(t,(()=>{for(var e of n)t.apply(e)}))})),e.redos.pop(),e.undos.push(n)}},t.undo=()=>{var{history:e}=t,{undos:r}=e;if(r.length>0){var n=r[r.length-1];Go.withoutSaving(t,(()=>{Br.withoutNormalizing(t,(()=>{var e=n.map(_r.inverse).reverse();for(var r of e)t.apply(r)}))})),e.redos.push(n),e.undos.pop()}},t.apply=e=>{var{operations:n,history:i}=t,{undos:o}=i,a=o[o.length-1],s=a&&a[a.length-1],u=Vo(e,s),l=Go.isSaving(t),c=Go.isMerging(t);if(null==l&&(l=qo(e)),l){if(null==c&&(c=null!=a&&(0!==n.length||zo(e,s)||u)),a&&c)u&&a.pop(),a.push(e);else{var d=[e];o.push(d)}for(;o.length>100;)o.shift();Jo(e)&&(i.redos=[])}r(e)},t})(Ro(Jt()))),e)),[]),r=e.value;e.value&&e.singleLine&&(r=(r=(r=""+e.value).replace("<p>","")).replace("</p>",""),r="<p>".concat(r,"</p>"));var n,o=[{type:"paragraph",children:[{text:""}]}];try{n=e.value?Ja(r):o}catch(u){alert("Error loading one of the rich text fields. Some information may be lost. Please check the summary, equipment, ingredients and instructions before saving. Make sure your browser is updated to the latest version if you keep getting this message."),console.log("Text Value",r),console.log("FieldRichText Error",u),n=o}var[a,s]=(0,i.useState)(n);return i.createElement(jo,{spellCheck:!0,editor:t,value:a,onChange:r=>{s(r);var n=ya(t);e.singleLine&&(n=n.replace(/^<p>(.*)<\/p>$/gm,"$1")),e.onChange(n)}},i.createElement(Za,{type:e.toolbar?e.toolbar:"all",isMarkActive:Qa,toggleMark:Ya}),i.createElement(Zo,{className:"wprm-admin-modal-field-richtext".concat(e.className?" ".concat(e.className):"").concat(e.singleLine?" wprm-admin-modal-field-richtext-singleline":""),placeholder:e.placeholder,renderElement:(0,i.useCallback)((e=>i.createElement(Wa,e)),[]),renderLeaf:(0,i.useCallback)((e=>i.createElement(Ua,e)),[]),onFocus:()=>{"Firefox"===ke().getParser(window.navigator.userAgent).parsedResult.browser.name&&""!==e.value&&"<p></p>"!==e.value||(wn.deselect(t),wn.select(t,{anchor:Br.start(t,[]),focus:Br.end(t,[])}),wn.collapse(t,{edge:"end"}))},onKeyDown:r=>{if(e.singleLine&&(0,Tn.ZP)("enter",r))r.preventDefault();else{for(var n in Ga){if((0,Tn.ZP)(n,r))r.preventDefault(),Ya(t,Ga[n])}e.onKeyDown&&e.onKeyDown(r)}},tabIndex:0}))};class Ka extends i.Component{constructor(e){super(e),this.state={errors:0}}componentDidCatch(e,t){this.setState({errors:this.state.errors+1})}render(){return i.createElement(Xa,this.props)}}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 es(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){ts(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}function ts(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var rs=e=>{var t=es({shape:"round",unit:"inch",diameter:0,width:0,length:0,height:0},e.servings);return i.createElement("div",{className:"wprm-admin-modal-field-advanced-servings"},i.createElement(je,{name:"advanced-servings",value:e.enabled,onChange:t=>{e.onChangeEnabled(t)}}),e.enabled&&i.createElement(i.Fragment,null,!wprm_admin.addons.premium&&i.createElement("p",null,(0,u.S)("This feature is only available in")," ",i.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Premium"),". ",(0,u.S)("You can already fill in the values, but the adjustable changer will not show up yet.")),i.createElement("div",{className:"wprm-admin-modal-field-advanced-servings-details"},i.createElement(M.Z,{options:[{value:"round",label:(0,u.S)("Round")},{value:"rectangle",label:(0,u.S)("Rectangle")}],value:t.shape,onChange:r=>{e.onChangeServings(es(es({},t),{},{shape:r}))},width:147}),i.createElement("div",{className:"wprm-admin-modal-field-advanced-servings-details-text"},(0,u.S)("measured in")),i.createElement(M.Z,{options:[{value:"inch",label:(0,u.S)("inch")},{value:"cm",label:(0,u.S)("cm")}],value:t.unit,onChange:r=>{e.onChangeServings(es(es({},t),{},{unit:r}))},width:100})),i.createElement("div",{className:"wprm-admin-modal-field-advanced-servings-details"},"round"===t.shape?i.createElement(i.Fragment,null,i.createElement(g.Z,{placeholder:"6",type:"number",min:"0",step:"any",value:0!=t.diameter?t.diameter:"",onChange:r=>{e.onChangeServings(es(es({},t),{},{diameter:r}))}}),i.createElement("div",{className:"wprm-admin-modal-field-advanced-servings-details-text"},t.unit," ",(0,u.S)("diameter"))):i.createElement(i.Fragment,null,i.createElement(g.Z,{placeholder:"6",type:"number",min:"0",step:"any",value:0!=t.width?t.width:"",onChange:r=>{e.onChangeServings(es(es({},t),{},{width:r}))}}),i.createElement("div",{className:"wprm-admin-modal-field-advanced-servings-details-text"},"x"),i.createElement(g.Z,{placeholder:"6",type:"number",min:"0",step:"any",value:0!=t.length?t.length:"",onChange:r=>{e.onChangeServings(es(es({},t),{},{length:r}))}}),i.createElement("div",{className:"wprm-admin-modal-field-advanced-servings-details-text"},t.unit," ",(0,u.S)("area")))),i.createElement("div",{className:"wprm-admin-modal-field-advanced-servings-details"},i.createElement(g.Z,{placeholder:"",type:"number",min:"0",step:"any",value:0!=t.height?t.height:"",onChange:r=>{e.onChangeServings(es(es({},t),{},{height:r}))}}),i.createElement("div",{className:"wprm-admin-modal-field-advanced-servings-details-text"},t.unit," ",(0,u.S)("height")," (",(0,u.S)("optional"),")"))))},ns=e=>{var t=wprm_admin_modal.options.author.find((t=>t.value===e.author.display));return i.createElement(i.Fragment,null,Te()&&i.createElement(A.Z,{id:"warning",label:(0,u.S)("Warning!")},i.createElement("p",null,"Looks like you're using an older browser like ",i.createElement("strong",null,"Legacy Microsoft Edge")," or ",i.createElement("strong",null,"Internet Explorer")," which does not support all of our advanced features."),i.createElement("p",null,"We highly recommend using ",i.createElement("a",{href:"https://www.google.com/chrome/",target:"_blank"},"Google Chrome"),", ",i.createElement("a",{href:"https://www.mozilla.org/en-US/firefox/new/",target:"_blank"},"Firefox"),", ",i.createElement("a",{href:"https://support.apple.com/downloads/safari",target:"_blank"},"Safari")," or ",i.createElement("a",{href:"https://www.microsoft.com/en-us/edge",target:"_blank"},"Microsoft Edge"),".")),i.createElement(A.Z,{id:"type",label:(0,u.S)("Recipe Type"),help:(0,u.S)("Make sure to pick the right recipe type to ensure we include the correct metadata.")},i.createElement(v.Z,{id:"type",options:[{value:"food",label:(0,u.S)("Food Recipe")},{value:"howto",label:(0,u.S)("How-to Instructions")},{value:"other",label:(0,u.S)("Other (no metadata)")}],value:e.type,onChange:t=>{e.onRecipeChange({type:t})}})),i.createElement(A.Z,{id:"name",label:(0,u.S)("Name")},i.createElement(g.Z,{name:"recipe-name",placeholder:(0,u.S)("Recipe Name"),value:e.name,onChange:t=>{e.onRecipeChange({name:t})}})),i.createElement(A.Z,{id:"summary",label:"howto"===e.type?(0,u.S)("Description"):(0,u.S)("Summary")},i.createElement(Ka,{placeholder:(0,u.S)("Short description of this recipe..."),value:e.summary,onChange:t=>{e.onRecipeChange({summary:t})}})),t&&"same"===t.actual?null:i.createElement(A.Z,{id:"author",label:(0,u.S)("Author")},i.createElement(M.Z,{options:wprm_admin_modal.options.author.filter((e=>"same"!==e.actual)),value:e.author.display,onChange:t=>{e.onRecipeChange({author_display:t})},width:300})),t&&"custom"===t.actual&&i.createElement(i.Fragment,null,i.createElement(A.Z,{id:"author-name",label:(0,u.S)("Name")},i.createElement(g.Z,{name:"author-name",placeholder:(0,u.S)("Author Name"),value:e.author.name,onChange:t=>{e.onRecipeChange({author_name:t})}})),i.createElement(A.Z,{id:"author-link",label:(0,u.S)("Link")},i.createElement(g.Z,{name:"author-link",placeholder:"https://bootstrapped.ventures",type:"url",value:e.author.link,onChange:t=>{e.onRecipeChange({author_link:t})}}))),i.createElement(A.Z,{id:"servings",label:"howto"===e.type?(0,u.S)("Yield"):(0,u.S)("Servings")},i.createElement(g.Z,{placeholder:"4",type:"number",min:"0",step:"any",value:0!=e.servings.amount?e.servings.amount:"",onChange:t=>{e.onRecipeChange({servings:t})}}),i.createElement(g.Z,{name:"servings-unit",placeholder:"howto"===e.type?(0,u.S)("candles"):(0,u.S)("people"),value:e.servings.unit,onChange:t=>{e.onRecipeChange({servings_unit:t})}})),i.createElement(A.Z,{id:"advanced-servings",label:(0,u.S)("Advanced Servings"),help:(0,u.S)("Enable to have an advanced servings calculator, useful for different baking forms")},i.createElement(rs,{enabled:e.servings_advanced_enabled,onChangeEnabled:t=>{e.onRecipeChange({servings_advanced_enabled:t})},servings:e.servings_advanced,onChangeServings:t=>{e.onRecipeChange({servings_advanced:t})}})),i.createElement(A.Z,{id:"cost",label:(0,u.S)("Estimated Cost"),help:"howto"===e.type?(0,u.S)("The estimated cost of the materials consumed when performing instructions. Used in the metadata."):null},i.createElement(g.Z,{name:"cost",placeholder:"$5",value:e.cost,onChange:t=>{e.onRecipeChange({cost:t})}})),wprm_admin_modal.integrations.my_emissions_checkbox&&i.createElement(A.Z,{id:"my-emissions",label:(0,u.S)("My Emissions Label")},i.createElement(je,{name:"my-emissions",value:e.my_emissions,onChange:t=>{e.onRecipeChange({my_emissions:t})}})))},is=e=>{var t=parseInt(e.value.time),r=0,n=0,o=0;return t>0&&(r=Math.floor(t/24/60),n=Math.floor(t/60%24),o=Math.floor(t%60)),i.createElement("div",{className:"wprm-admin-modal-field-time"},i.createElement("div",{className:"wprm-admin-modal-field-time-parts"},i.createElement("input",{type:"number",value:0<r?""+r:"",onChange:t=>{var r=parseInt(t.target.value);r=isNaN(r)?0:r;var i=1440*Math.max(0,r)+60*n+o;e.onChange(i)}})," ",(0,u.S)("days"),i.createElement("input",{type:"number",value:0<n?""+n:"",onChange:t=>{var n=parseInt(t.target.value);n=isNaN(n)?0:n;var i=1440*r+60*Math.max(0,n)+o;e.onChange(i)}})," ",(0,u.S)("hours"),i.createElement("input",{type:"number",value:0<o?""+o:e.value.zero?"0":"",onChange:t=>{var i=parseInt(t.target.value);i=isNaN(i)?0:i;var o=1440*r+60*n+Math.max(0,i);e.onChange(o)}})," ",(0,u.S)("minutes")),0===t&&e.hasOwnProperty("onChangeZero")&&i.createElement("div",{className:"wprm-admin-modal-field-time-none"},i.createElement("input",{id:"wprm-admin-modal-field-time-none-".concat(e.id),type:"checkbox",checked:e.value.zero,onChange:t=>{e.onChangeZero(t.target.checked)}})," ",i.createElement("label",{htmlFor:"wprm-admin-modal-field-time-none-".concat(e.id)},(0,u.S)('Show "0" in template'))))},os=e=>{var t=Math.max(0,parseInt(e.prep.time))+Math.max(0,parseInt(e.cook.time))+Math.max(0,parseInt(e.custom.time));return i.createElement(i.Fragment,null,i.createElement(A.Z,{id:"prep-time",label:(0,u.S)("Prep Time")},i.createElement(is,{id:"prep",value:e.prep,onChange:t=>{e.onRecipeChange({prep_time:t})},onChangeZero:t=>{e.onRecipeChange({prep_time_zero:t})}})),i.createElement(A.Z,{id:"cook-time",label:"howto"===e.type?(0,u.S)("Active Time"):(0,u.S)("Cook Time")},i.createElement(is,{id:"cook",value:e.cook,onChange:t=>{e.onRecipeChange({cook_time:t})},onChangeZero:t=>{e.onRecipeChange({cook_time_zero:t})}})),i.createElement(A.Z,{id:"custom-time-label",label:(0,u.S)("Custom Time Label"),help:(0,u.S)("Optional extra time field that you can label yourself. Examples: Resting Time, Baking Time")},i.createElement(g.Z,{name:"custom-time-label",placeholder:(0,u.S)("Resting Time"),value:e.customLabel,onChange:t=>{e.onRecipeChange({custom_time_label:t})}})),i.createElement(A.Z,{id:"custom-time",label:(0,u.S)("Custom Time")},i.createElement(is,{id:"custom",value:e.custom,onChange:t=>{e.onRecipeChange({custom_time:t})},onChangeZero:t=>{e.onRecipeChange({custom_time_zero:t})}})),i.createElement(A.Z,{id:"total-time",label:(0,u.S)("Total Time")},i.createElement(is,{id:"total",value:e.total,onChange:t=>{e.onRecipeChange({total_time:t})}}),t!==parseInt(e.total.time)&&i.createElement("div",null,i.createElement("a",{href:"#",onClick:r=>{r.preventDefault(),e.onRecipeChange({total_time:t})}},(0,u.S)("Recalculate Total Time")))))};function as(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 ss(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class us extends i.Component{shouldComponentUpdate(e){return JSON.stringify(this.props.tags)!==JSON.stringify(e.tags)}render(){var e=Object.keys(wprm_admin_modal.categories);return i.createElement(i.Fragment,null,e.map(((e,t)=>{var r=wprm_admin_modal.categories[e],n=this.props.tags.hasOwnProperty(e)?this.props.tags[e]:[];return i.createElement(A.Z,{id:e,label:r.label,help:r.hasOwnProperty("help")?r.help:null,key:t},i.createElement(ne,{id:e,value:n,onChange:t=>{var r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?as(Object(r),!0).forEach((function(t){ss(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):as(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},this.props.tags);r[e]=t,this.props.onRecipeChange({tags:r})},creatable:r.creatable,width:"450px"}))})))}}var ls=e=>e.modes?i.createElement("div",{className:"wprm-admin-modal-field-edit-mode-container"},Object.keys(e.modes).map(((t,r)=>{var n=e.modes[t],o=null;return n.hasOwnProperty("help")&&(o=i.createElement(wa.Z,{type:"question",title:n.help,className:"wprm-admin-icon-help"})),i.createElement("a",{href:"#",className:"wprm-admin-modal-field-edit-mode".concat(t===e.mode?" wprm-admin-modal-field-edit-mode-selected":""),onClick:r=>{r.preventDefault(),e.onModeChange(t)},key:r},n.label,o)}))):null,cs=r(34916);function ds(){return ds=Object.assign?Object.assign.bind():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},ds.apply(this,arguments)}var ps=(0,Tn.TB)("tab"),fs=e=>i.createElement("div",ds({className:"wprm-admin-modal-field-ingredient-handle"},e.dragHandleProps,{tabIndex:"-1"}),i.createElement(wa.Z,{type:"drag"}));class ms extends i.Component{shouldComponentUpdate(e){return JSON.stringify(this.props)!==JSON.stringify(e)}render(){return i.createElement(cs._l,{draggableId:"ingredient-".concat(this.props.uid),index:this.props.index},((e,t)=>"group"===this.props.type?((e,t)=>i.createElement("div",ds({className:"wprm-admin-modal-field-ingredient-group",ref:t.innerRef},t.draggableProps),fs(t),i.createElement("div",{className:"wprm-admin-modal-field-ingredient-group-name-container"},i.createElement(Ka,{singleLine:!0,className:"wprm-admin-modal-field-ingredient-group-name",toolbar:"no-styling",value:e.name,placeholder:"howto"===e.recipeType?(0,u.S)("Material Group Header"):(0,u.S)("Ingredient Group Header"),onChange:t=>e.onChangeName(t),onKeyDown:t=>{ps(t)&&e.onTab(t)}})),i.createElement("div",{className:"wprm-admin-modal-field-ingredient-after-container"},i.createElement("div",{className:"wprm-admin-modal-field-ingredient-after-container-icons"},i.createElement(wa.Z,{type:"trash",title:(0,u.S)("Remove"),onClick:e.onDelete}),i.createElement(wa.Z,{type:"plus-text",title:(0,u.S)("Insert Group After"),onClick:e.onAddGroup}),i.createElement(wa.Z,{type:"plus",title:(0,u.S)("Insert Ingredient After"),onClick:e.onAdd})))))(this.props,e):((e,t)=>{var r=e.amount,n=e.unit;return i.createElement("div",ds({className:"wprm-admin-modal-field-ingredient",ref:t.innerRef},t.draggableProps),fs(t),i.createElement("div",{className:"wprm-admin-modal-field-ingredient-text-container"},i.createElement(Ka,{singleLine:!0,toolbar:wprm_admin.addons.premium?"all":"no-link",className:"wprm-admin-modal-field-ingredient-amount",value:r,placeholder:"1",onChange:t=>{e.onChangeIngredient({amount:t})}}),i.createElement(Ka,{singleLine:!0,toolbar:wprm_admin.addons.premium?"all":"no-link",value:n,placeholder:"howto"===e.recipeType?(0,u.S)("piece"):(0,u.S)("tbsp"),onChange:t=>{e.onChangeIngredient({unit:t})}}),i.createElement(Ka,{singleLine:!0,toolbar:"ingredient",value:e.name,placeholder:"howto"===e.recipeType?(0,u.S)("paper"):(0,u.S)("olive oil"),onChange:t=>{e.onChangeIngredient({name:t,globalLink:!1})}}),i.createElement(Ka,{singleLine:!0,toolbar:wprm_admin.addons.premium?"all":"no-link",value:e.notes,placeholder:"howto"===e.recipeType?(0,u.S)("any color"):(0,u.S)("extra virgin"),onChange:t=>e.onChangeIngredient({notes:t}),onKeyDown:t=>{ps(t)&&e.onTab(t)}})),i.createElement("div",{className:"wprm-admin-modal-field-ingredient-after-container"},i.createElement("div",{className:"wprm-admin-modal-field-ingredient-after-container-icons"},i.createElement(wa.Z,{type:"trash",title:(0,u.S)("Remove"),onClick:e.onDelete}),i.createElement(wa.Z,{type:"plus-text",title:(0,u.S)("Insert Group After"),onClick:e.onAddGroup}),i.createElement(wa.Z,{type:"plus",title:(0,u.S)("Insert Ingredient After"),onClick:e.onAdd}))))})(this.props,e)))}}function hs(){return hs=Object.assign?Object.assign.bind():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},hs.apply(this,arguments)}function gs(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 vs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gs(Object(r),!0).forEach((function(t){bs(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gs(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function bs(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class ys extends i.Component{constructor(e){super(e),this.container=i.createRef(),this.lastAddedIndex=0}shouldComponentUpdate(e,t){return this.props.type!==e.type||JSON.stringify(this.props.ingredients)!==JSON.stringify(e.ingredients)}componentDidUpdate(e){if(this.props.ingredients.length>e.ingredients.length){var t=this.container.current.querySelectorAll(".wprm-admin-modal-field-ingredient-group-name, .wprm-admin-modal-field-ingredient-amount");t.length&&t[this.lastAddedIndex]&&t[this.lastAddedIndex].focus()}}onDragEnd(e){if(e.destination){var t=JSON.parse(JSON.stringify(this.props.ingredients)),r=e.source.index,n=e.destination.index,i=t.splice(r,1)[0];t.splice(n,0,i),this.props.onRecipeChange({ingredients_flat:t})}}addField(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=JSON.parse(JSON.stringify(this.props.ingredients));t="group"===e?{type:"group",name:""}:{type:"ingredient",amount:"",unit:"",name:"",notes:""};var i=Math.max.apply(Math,n.map((function(e){return e.uid})));i=i<0?-1:i,t.uid=i+1,!1===r?(n.push(t),this.lastAddedIndex=n.length-1):(n.splice(r+1,0,t),this.lastAddedIndex=r+1),this.props.onRecipeChange({ingredients_flat:n})}render(){return i.createElement("div",{className:"wprm-admin-modal-field-ingredient-edit-container",ref:this.container},i.createElement(cs.Z5,{onDragEnd:this.onDragEnd.bind(this)},i.createElement(cs.bK,{droppableId:"wprm-ingredients"},((e,t)=>i.createElement("div",hs({className:"".concat(t.isDraggingOver?" wprm-admin-modal-field-ingredient-container-draggingover":""),ref:e.innerRef},e.droppableProps),i.createElement("div",{className:"wprm-admin-modal-field-ingredient-header-container"},i.createElement("div",{className:"wprm-admin-modal-field-ingredient-header"},(0,u.S)("Amount")),i.createElement("div",{className:"wprm-admin-modal-field-ingredient-header"},(0,u.S)("Unit")),i.createElement("div",{className:"wprm-admin-modal-field-ingredient-header"},(0,u.S)("Name")," ",i.createElement("span",{className:"wprm-admin-modal-field-ingredient-header-required"},"(",(0,u.S)("required"),")")),i.createElement("div",{className:"wprm-admin-modal-field-ingredient-header"},(0,u.S)("Notes"))),this.props.ingredients.map(((e,t)=>i.createElement(ms,hs({},e,{recipeType:this.props.type,index:t,key:"ingredient-".concat(e.uid),onTab:e=>{t===this.props.ingredients.length-1&&(e.preventDefault(),setTimeout((()=>{this.addField("ingredient")})))},onChangeName:e=>{var r=JSON.parse(JSON.stringify(this.props.ingredients));r[t].name=e,this.props.onRecipeChange({ingredients_flat:r})},onChangeIngredient:e=>{var r=JSON.parse(JSON.stringify(this.props.ingredients));r[t]=vs(vs({},r[t]),e),this.props.onRecipeChange({ingredients_flat:r})},onDelete:()=>{var e=JSON.parse(JSON.stringify(this.props.ingredients)),r=JSON.parse(JSON.stringify(this.props.instructions)),n=e.splice(t,1);n[0]&&n[0].hasOwnProperty("uid")&&function(){var e=n[0].uid;for(var t of r)t.hasOwnProperty("ingredients")&&(t.ingredients=t.ingredients.filter((t=>t!==e)))}(),this.props.onRecipeChange({ingredients_flat:e,instructions_flat:r})},onAdd:()=>{this.addField("ingredient",t)},onAddGroup:()=>{this.addField("group",t)}})))),e.placeholder)))),i.createElement("div",{className:"wprm-admin-modal-field-ingredient-actions"},i.createElement("button",{className:"button",onClick:e=>{e.preventDefault(),this.addField("ingredient")}},"howto"===this.props.type?(0,u.S)("Add Material"):(0,u.S)("Add Ingredient")),i.createElement("button",{className:"button",onClick:e=>{e.preventDefault(),this.addField("group")}},"howto"===this.props.type?(0,u.S)("Add Material Group"):(0,u.S)("Add Ingredient Group")),i.createElement("p",null,(0,u.S)("Tip: use the TAB key to move from field to field and easily add ingredients."))))}}var ws=r(5831),Ds=(r(29897),r(38328)),Es=r.n(Ds),Cs=e=>{var{ingredient:t,isConverting:r,method:n}=e,o=t.converted?t.converted:{2:{amount:"",unit:""}},a=(e=>{var t=[{label:(0,u.S)("Convert"),options:[{value:"none",label:(0,u.S)("Keep Unit")},{value:"automatic",label:(0,u.S)("Automatically")}]}],r=[];wprm_admin_modal.unit_conversion.systems[e].weight.map((e=>{r.push({value:e,label:wprm_admin_modal.unit_conversion.units.data[e].label})})),0<r.length&&t.push({label:(0,u.S)("Weight Units"),options:r});var n=[];return wprm_admin_modal.unit_conversion.systems[e].volume.map((e=>{n.push({value:e,label:wprm_admin_modal.unit_conversion.units.data[e].label})})),0<n.length&&t.push({label:(0,u.S)("Volume Units"),options:n}),t})(e.convertedUnitSystem),s="".concat(t.amount," ").concat(t.unit).trim();return s="".concat(s," ").concat(t.name).trim(),t.notes&&(s+=" (".concat(t.notes,")")),i.createElement("tr",null,i.createElement("td",null,i.createElement(M.Z,{isDisabled:r,options:a,placeholder:(0,u.S)("Convert..."),value:n,onChange:t=>{e.onMethodChange(t)},width:150})),i.createElement("td",{style:"failed"===n?{color:"darkred"}:null},r?i.createElement(Ce.Z,null):i.createElement("div",{className:"wprm-admin-modal-field-ingredient-unit-conversion-fields"},i.createElement(Ka,{singleLine:!0,value:""+o[2].amount,onChange:t=>{var r=o;r[2].amount=t,e.onConvertedChange(r)}}),i.createElement(Ka,{singleLine:!0,value:""+o[2].unit,onChange:t=>{var r=o;r[2].unit=t,e.onConvertedChange(r)}}))),i.createElement("td",null,Es()(s)))};class Ss extends i.Component{constructor(e){super(e),this.state={isConverting:{},methods:{}},this.convert=this.convert.bind(this),this.convertAll=this.convertAll.bind(this)}convertAll(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",r=[],n=0;n<this.props.ingredients.length;n++){"ingredient"===this.props.ingredients[n].type&&r.push(n)}r&&this.convert(r,e,t)}convert(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"default",n=this.state.isConverting,i=this.state.methods;if("none"===t){var o=JSON.parse(JSON.stringify(this.props.ingredients));for(var a of e){var s=this.props.ingredients[a];s.hasOwnProperty("converted")||(o[a].converted={2:{}}),o[a].converted[2].amount=s.amount,o[a].converted[2].unit=s.unit,n[a]=!1,i[a]=t}this.props.onIngredientsChange(o)}else{var u={};for(var c of e){var d=this.props.ingredients[c];u[c]={index:c,amount:(0,ws.L)(d.amount),unit:d.unit,name:d.name},"automatic"!==t&&(u[c].units_to=[t]),n[c]=!0,i[c]=t}l.Z.unitConversion.get(u,r).then((e=>{if(e&&e.conversions){var r=JSON.parse(JSON.stringify(this.props.ingredients)),n=this.state.isConverting,i=this.state.methods;for(var o in e.conversions){var a=this.props.ingredients[parseInt(o)],s=e.conversions[o];a.hasOwnProperty("converted")||(r[o].converted={2:{}}),"failed"===s.type?(r[o].converted[2].amount=a.amount,r[o].converted[2].unit=a.unit,i[o]=s.type):(r[o].converted[2].amount=(0,ws.o)(s.amount,wprmp_admin.settings.unit_conversion_round_to_decimals,!0),r[o].converted[2].unit=s.alias,i[o]="none"===s.type?"none":t),n[o]=!1}this.props.onIngredientsChange(r),this.setState({isConverting:n,methods:i})}}))}this.setState({isConverting:n,methods:i})}render(){if(!wprm_admin.addons.pro)return i.createElement("p",null,(0,u.S)("This feature is only available in")," ",i.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Pro Bundle"),".");if(!wprm_admin_modal.unit_conversion)return i.createElement("p",null,(0,u.S)("You need to set up this feature on the WP Recipe Maker > Settings > Unit Conversion page first."));if(!this.props.ingredients.filter((e=>"ingredient"===e.type&&e.name)).length)return i.createElement("p",null,(0,u.S)("No ingredients set for this recipe."));var e="default"===this.props.system?wprm_admin_modal.unit_conversion.default_system:this.props.system;1!==(e=parseInt(e))&&2!==e&&(e=1);var t=2===e?1:2;return i.createElement("div",{className:"wprm-admin-modal-field-ingredient-unit-conversion-container"},i.createElement("div",{className:"wprm-admin-modal-field-ingredient-unit-conversion-system"},i.createElement("label",null,(0,u.S)("Original Unit System for this recipe"),":"),i.createElement(M.Z,{options:[{value:"default",label:"".concat((0,u.S)("Use Default")," (").concat(wprm_admin_modal.unit_conversion.systems[parseInt(wprm_admin_modal.unit_conversion.default_system)].label,")")},{value:"1",label:"".concat((0,u.S)("First Unit System")," (").concat(wprm_admin_modal.unit_conversion.systems[1].label,")")},{value:"2",label:"".concat((0,u.S)("Second Unit System")," (").concat(wprm_admin_modal.unit_conversion.systems[2].label,")")}],value:this.props.system,onChange:e=>{this.props.onSystemChange(e)},width:255})),i.createElement("table",{className:"wprm-admin-modal-field-ingredient-unit-conversion"},i.createElement("thead",null,i.createElement("tr",null,i.createElement("th",null,(0,u.S)("Conversion")),i.createElement("th",null,(0,u.S)("Converted")," (",wprm_admin_modal.unit_conversion.systems[t].label,")"),i.createElement("th",null,(0,u.S)("Original")," (",wprm_admin_modal.unit_conversion.systems[e].label,")"))),i.createElement("tbody",null,this.props.ingredients.map(((e,r)=>"group"!==e.type&&e.name?i.createElement(Cs,{ingredient:e,isConverting:this.state.isConverting[r],method:this.state.methods[r],onMethodChange:e=>{this.state.isConverting[r]||this.convert([r],e,t)},onConvertedChange:e=>{var t=JSON.parse(JSON.stringify(this.props.ingredients));t[r].converted=e,this.props.onIngredientsChange(t)},convertedUnitSystem:t,key:r}):null)))),i.createElement("button",{className:"button button-primary",onClick:e=>{e.preventDefault(),this.convertAll("automatic",t)}},(0,u.S)("Convert All Automatically")))}}var{hooks:Is}=WPRecipeMaker["wp-recipe-maker/dist/shared"];class xs extends i.Component{constructor(e){super(e),this.state={mode:"edit"}}shouldComponentUpdate(e,t){return this.state.mode!==t.mode||this.props.type!==e.type||this.props.linkType!==e.linkType||this.props.system!==e.system||JSON.stringify(this.props.ingredients)!==JSON.stringify(e.ingredients)}render(){var e={edit:{label:"howto"===this.props.type?(0,u.S)("Edit Materials"):(0,u.S)("Edit Ingredients"),block:ys},"ingredient-links":{label:"howto"===this.props.type?(0,u.S)("Material Links"):(0,u.S)("Ingredient Links"),block:()=>i.createElement("p",null,(0,u.S)("This feature is only available in")," ",i.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Premium"),".")},"unit-conversion":{label:(0,u.S)("Unit Conversion"),block:()=>i.createElement("p",null,(0,u.S)("This feature is only available in")," ",i.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Pro Bundle"),".")}};wprm_admin.addons.pro&&(e["unit-conversion"].block=Ss);var t=Is.applyFilters("modalRecipeIngredients",e),r=!!t.hasOwnProperty(this.state.mode)&&t[this.state.mode].block;if(!r)return null;var n=null;switch(this.state.mode){case"unit-conversion":n=i.createElement(r,{ingredients:this.props.ingredients,onIngredientsChange:e=>{this.props.onRecipeChange({ingredients_flat:e})},system:this.props.system,onSystemChange:e=>{this.props.onRecipeChange({unit_system:e})}});break;case"ingredient-links":n=i.createElement(r,{ingredients:this.props.ingredients,onIngredientsChange:e=>{this.props.onRecipeChange({ingredients_flat:e})},type:this.props.linkType,onTypeChange:e=>{this.props.onRecipeChange({ingredient_links_type:e})},onModeChange:this.props.onModeChange});break;case"preview":n=i.createElement(r,{ingredients:this.props.ingredients});break;default:n=i.createElement(r,{type:this.props.type,ingredients:this.props.ingredients,instructions:this.props.instructions,onRecipeChange:this.props.onRecipeChange})}return i.createElement("div",{className:"wprm-admin-modal-field-ingredient-container"},i.createElement(ls,{modes:e,mode:this.state.mode,onModeChange:e=>{this.setState({mode:e})}}),n)}}function Os(){return Os=Object.assign?Object.assign.bind():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},Os.apply(this,arguments)}var As=(0,Tn.TB)("tab");class Ms extends i.Component{shouldComponentUpdate(e){return JSON.stringify(this.props)!==JSON.stringify(e)}render(){var e=this.props.amount?this.props.amount:"",t=this.props.notes?this.props.notes:"";return i.createElement(cs._l,{draggableId:"equipment-".concat(this.props.uid),index:this.props.index},((r,n)=>i.createElement("div",Os({className:"wprm-admin-modal-field-equipment",ref:r.innerRef},r.draggableProps),(e=>i.createElement("div",Os({className:"wprm-admin-modal-field-equipment-handle"},e.dragHandleProps,{tabIndex:"-1"}),i.createElement(wa.Z,{type:"drag"})))(r),i.createElement("div",{className:"wprm-admin-modal-field-equipment-text-container"},i.createElement(Ka,{singleLine:!0,toolbar:wprm_admin.addons.premium?"all":"no-link",className:"wprm-admin-modal-field-equipment-amount",value:e,placeholder:"1",onChange:e=>this.props.onChangeEquipment({amount:e})}),i.createElement(Ka,{singleLine:!0,toolbar:"equipment",value:this.props.name,placeholder:"howto"===this.props.recipeType?(0,u.S)("Pair of scissors"):(0,u.S)("Pressure cooker"),onChange:e=>this.props.onChangeEquipment({name:e})}),i.createElement(Ka,{singleLine:!0,toolbar:wprm_admin.addons.premium?"all":"no-link",value:t,placeholder:(0,u.S)("optional"),onChange:e=>this.props.onChangeEquipment({notes:e}),onKeyDown:e=>{As(e)&&this.props.onTab(e)}})),i.createElement("div",{className:"wprm-admin-modal-field-equipment-after-container"},i.createElement("div",{className:"wprm-admin-modal-field-equipment-after-container-icons"},i.createElement(wa.Z,{type:"trash",onClick:this.props.onDelete}),i.createElement(wa.Z,{type:"plus",title:(0,u.S)("Insert After"),onClick:this.props.onAdd}))))))}}function Ps(){return Ps=Object.assign?Object.assign.bind():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},Ps.apply(this,arguments)}function Bs(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 Ns(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Bs(Object(r),!0).forEach((function(t){ks(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bs(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ks(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Ts extends i.Component{constructor(e){super(e),this.container=i.createRef(),this.lastAddedIndex=0}shouldComponentUpdate(e){return this.props.type!==e.type||JSON.stringify(this.props.equipment)!==JSON.stringify(e.equipment)}componentDidUpdate(e){if(this.props.equipment.length>e.equipment.length){var t=this.container.current.querySelectorAll(".wprm-admin-modal-field-equipment-amount");t.length&&t[this.lastAddedIndex]&&t[this.lastAddedIndex].focus()}}onDragEnd(e){if(e.destination){var t=JSON.parse(JSON.stringify(this.props.equipment)),r=e.source.index,n=e.destination.index,i=t.splice(r,1)[0];t.splice(n,0,i),this.props.onRecipeChange({equipment:t})}}addField(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=JSON.parse(JSON.stringify(this.props.equipment)),r={name:""},n=Math.max.apply(Math,t.map((function(e){return e.uid})));n=n<0?-1:n,r.uid=n+1,!1===e?(t.push(r),this.lastAddedIndex=t.length-1):(t.splice(e+1,0,r),this.lastAddedIndex=e+1),this.props.onRecipeChange({equipment:t})}render(){return i.createElement("div",{className:"wprm-admin-modal-field-equipment-edit-container",ref:this.container},i.createElement(cs.Z5,{onDragEnd:this.onDragEnd.bind(this)},i.createElement(cs.bK,{droppableId:"wprm-equipment"},((e,t)=>i.createElement("div",Ps({className:"".concat(t.isDraggingOver?" wprm-admin-modal-field-equipment-container-draggingover":""),ref:e.innerRef},e.droppableProps),i.createElement("div",{className:"wprm-admin-modal-field-equipment-header-container"},i.createElement("div",{className:"wprm-admin-modal-field-equipment-header"},(0,u.S)("Amount")),i.createElement("div",{className:"wprm-admin-modal-field-equipment-header"},(0,u.S)("Name")," ",i.createElement("span",{className:"wprm-admin-modal-field-equipment-header-required"},"(",(0,u.S)("required"),")")),i.createElement("div",{className:"wprm-admin-modal-field-equipment-header"},(0,u.S)("Notes"))),this.props.equipment.map(((e,t)=>i.createElement(Ms,Ps({},e,{recipeType:this.props.type,index:t,key:"equipment-".concat(e.uid),onTab:e=>{t===this.props.equipment.length-1&&(e.preventDefault(),setTimeout((()=>{this.addField()})))},onAdd:()=>{this.addField(t)},onChangeEquipment:e=>{var r=JSON.parse(JSON.stringify(this.props.equipment));r[t]=Ns(Ns({},r[t]),e),this.props.onRecipeChange({equipment:r})},onDelete:()=>{var e=JSON.parse(JSON.stringify(this.props.equipment));e.splice(t,1),this.props.onRecipeChange({equipment:e})}})))),e.placeholder)))),i.createElement("div",{className:"wprm-admin-modal-field-equipment-actions"},i.createElement("button",{className:"button",onClick:e=>{e.preventDefault(),this.addField()}},(0,u.S)("Add Equipment")),i.createElement("p",null,(0,u.S)("Tip: use the TAB key to move from field to field and easily add equipment."))))}}var{hooks:js}=WPRecipeMaker["wp-recipe-maker/dist/shared"];class Ls extends i.Component{constructor(e){super(e),this.state={mode:"edit"}}shouldComponentUpdate(e,t){return this.state.mode!==t.mode||this.props.type!==e.type||JSON.stringify(this.props.equipment)!==JSON.stringify(e.equipment)}render(){var e={edit:{label:(0,u.S)("Edit Equipment"),block:Ts},"equipment-affiliate":{label:(0,u.S)("Equipment Affiliate Fields"),block:()=>i.createElement("p",null,(0,u.S)("This feature is only available in")," ",i.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Premium"),".")}},t=js.applyFilters("modalRecipeEquipment",e),r=!!t.hasOwnProperty(this.state.mode)&&t[this.state.mode].block;if(!r)return null;var n=null;return this.state.mode,n=i.createElement(r,{type:this.props.type,equipment:this.props.equipment,instructions:this.props.instructions,onRecipeChange:this.props.onRecipeChange,onModeChange:this.props.onModeChange}),i.createElement("div",{className:"wprm-admin-modal-field-equipment-container"},i.createElement(ls,{modes:e,mode:this.state.mode,onModeChange:e=>{this.setState({mode:e})}}),n)}}var Fs={getIngredientString(e){var t="",r=[];return e.amount&&r.push(e.amount),e.unit&&r.push(e.unit),e.name&&r.push(e.name),e.notes&&r.push(e.notes),r.length&&(t=r.join(" ").replace(/(<([^>]+)>)/gi,"").trim()),t}};function Rs(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?Rs(Object(r),!0).forEach((function(t){Zs(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rs(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Zs(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Hs=e=>{var{video:t}=e,r=e.image>0;return i.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container-media"},i.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container-media-icons"},i.createElement(wa.Z,{type:"photo",title:r?(0,u.S)("Remove Image"):(0,u.S)("Add Instruction Image"),onClick:()=>{r?e.onChangeImage(0,""):xe.Z.selectImage((t=>{e.onChangeImage(t.id,t.url)}))},hidden:"none"!==t.type&&"part"!==t.type}),i.createElement("div",{className:"wprm-icon-spacer"}),i.createElement(wa.Z,{type:"movie",title:"upload"===t.type?(0,u.S)("Remove Video"):(0,u.S)("Upload Instruction Video"),onClick:()=>{"upload"===t.type?e.onChangeVideo(_s(_s({},t),{},{type:"none",id:0,thumb:""})):xe.Z.selectVideo((r=>{e.onChangeVideo(_s(_s({},t),{},{type:"upload",id:r.attributes.id,thumb:r.attributes.thumb.src}))}))},hidden:r||"none"!==t.type&&"upload"!==t.type}),i.createElement(wa.Z,{type:"code",title:"embed"===t.type?(0,u.S)("Remove Video"):(0,u.S)("Embed Instruction Video"),onClick:()=>{"embed"===t.type?e.onChangeVideo(_s(_s({},t),{},{type:"none",embed:""})):e.onChangeVideo(_s(_s({},t),{},{type:"embed"}))},hidden:r||"none"!==t.type&&"embed"!==t.type}),i.createElement(wa.Z,{type:"videoplayer",title:"part"===t.type?(0,u.S)("Remove Video Part"):(0,u.S)("Instruction is part of the main video"),onClick:()=>{e.onChangeVideo(_s(_s({},t),{},{type:"part"===t.type?"none":"part",start:"",end:"",name:""}))},hidden:!e.allowVideo||"none"!==t.type&&"part"!==t.type})),(r||"upload"===t.type||"embed"===t.type)&&i.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container-media-preview"},r?i.createElement("div",{className:"wprm-admin-modal-field-image-preview"},i.createElement("img",{src:e.image_url,onClick:()=>{xe.Z.selectImage((t=>{e.onChangeImage(t.id,t.url)}))}})):i.createElement(i.Fragment,null,"upload"===t.type&&i.createElement("div",{className:"wprm-admin-modal-field-video-preview"},i.createElement("img",{src:t.thumb,onClick:()=>{xe.Z.selectVideo((r=>{e.onChangeVideo(_s(_s({},t),{},{id:r.attributes.id,thumb:r.attributes.thumb.src}))}))}})),"embed"===t.type&&i.createElement(fe.Z,{value:t.embed,onChange:r=>{e.onChangeVideo(_s(_s({},t),{},{embed:r}))},placeholder:(0,u.S)("Instruction video URL or embed code")}))))};function Ws(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 Us(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ws(Object(r),!0).forEach((function(t){Gs(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ws(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Gs(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var zs=e=>{var t=e.hasOwnProperty("ingredients")?e.ingredients:[],r=[],n=[],o=[];for(var a of e.allIngredients)if("ingredient"===a.type){var s=Fs.getIngredientString(a);if(s){var l={value:a.uid,label:B().decode(s)};e.usedIngredients.includes(a.uid)?r.push(l):n.push(l),t.includes(a.uid)&&o.push(l)}}var c=[{label:(0,u.S)("Not associated yet"),options:n},{label:(0,u.S)("Already Associated"),options:r}];return i.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container-ingredient"},i.createElement(N.ZP,{isMulti:!0,options:c,value:o,placeholder:(0,u.S)("Select ingredients..."),onChange:t=>{var r=[];if(t)for(var n of t)r.push(n.value);e.onChangeIngredients(r)},styles:{placeholder:e=>Us(Us({},e),{},{color:"#444",opacity:"0.333"}),control:e=>Us(Us({},e),{},{backgroundColor:"white"}),container:e=>Us(Us({},e),{},{width:"100%",maxWidth:"100%"})}}))},qs=(r(67838),e=>{var t=!!e.hasOwnProperty("disabled")&&e.disabled;return i.createElement("input",{type:"text",disabled:t,name:e.name,value:e.value,placeholder:"0:00",onChange:t=>{(e=>{var[t,r]=e.split(":");if(!/^\d*:?\d{0,2}$/.test(e))return!1;var n,i=Number(t),o=Number(r);if(n=i,!(Number.isInteger(n)&&n>=0&&(e=>Number.isInteger(e)&&e>=0||Number.isNaN(e))(o)))return!1;if(o<10&&Number(r[0])>5)return!1;var a=-1!==e.indexOf(":")?e.split(":"):[e];return!(a[0]&&a[0].length&&parseInt(a[0],10)<0||a[1]&&a[1].length&&(parseInt(a[1],10)<0||parseInt(a[1],10)>59))})(t.target.value)&&e.onChange(t.target.value)}})});function Vs(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 Js(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vs(Object(r),!0).forEach((function(t){Ys(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vs(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ys(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qs(){return Qs=Object.assign?Object.assign.bind():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},Qs.apply(this,arguments)}var Xs=(0,Tn.TB)("tab"),Ks=e=>i.createElement("div",Qs({className:"wprm-admin-modal-field-instruction-handle"},e.dragHandleProps,{tabIndex:"-1"}),i.createElement(wa.Z,{type:"drag"}));class $s extends i.Component{shouldComponentUpdate(e){return JSON.stringify(this.props)!==JSON.stringify(e)}render(){return i.createElement(cs._l,{draggableId:"instruction-".concat(this.props.uid),index:this.props.index},((e,t)=>"group"===this.props.type?((e,t)=>i.createElement("div",Qs({className:"wprm-admin-modal-field-instruction-group",ref:t.innerRef},t.draggableProps),i.createElement("div",{className:"wprm-admin-modal-field-instruction-main-container"},Ks(t),i.createElement("div",{className:"wprm-admin-modal-field-instruction-group-name-container"},i.createElement(Ka,{singleLine:!0,toolbar:"no-styling",value:e.name,placeholder:(0,u.S)("Instruction Group Header"),onChange:t=>e.onChangeName(t),onKeyDown:t=>{Xs(t)&&e.onTab(t)}}))),i.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container"},i.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container-icons"},i.createElement(wa.Z,{type:"trash",title:(0,u.S)("Delete"),onClick:e.onDelete}),i.createElement(wa.Z,{type:"plus-text",title:(0,u.S)("Insert Group After"),onClick:e.onAddGroup}),i.createElement(wa.Z,{type:"plus",title:(0,u.S)("Insert Instruction After"),onClick:e.onAdd})))))(this.props,e):((e,t)=>{var r={type:"none",embed:"",id:"",thumb:"",start:"",end:"",name:""};return e.video&&"none"===(r=Js(Js({},r),e.video)).type&&(r.start||r.end)&&(r.type="part"),i.createElement("div",Qs({className:"wprm-admin-modal-field-instruction",ref:t.innerRef},t.draggableProps),i.createElement("div",{className:"wprm-admin-modal-field-instruction-main-container"},Ks(t),i.createElement("div",{className:"wprm-admin-modal-field-instruction-text-container"},i.createElement("div",{className:"wprm-admin-modal-field-instruction-text-name-container"},i.createElement(Ka,{className:"wprm-admin-modal-field-instruction-text",value:e.text,placeholder:(0,u.S)("This is one step of the instructions."),onChange:t=>e.onChangeText(t),onKeyDown:t=>{Xs(t)&&e.onTab(t)}})),e.allowVideo&&"part"===r.type&&"media"===e.editMode&&i.createElement("div",{className:"wprm-admin-modal-field-instruction-video-container"},i.createElement(qs,{value:r.start,onChange:t=>{e.onChangeVideo(Js(Js({},r),{},{start:t}))}}),i.createElement(qs,{value:r.end,onChange:t=>{e.onChangeVideo(Js(Js({},r),{},{end:t}))}}),r.start&&r.end?i.createElement(g.Z,{placeholder:(0,u.S)("Name for this video part"),value:r.name,onChange:t=>{e.onChangeVideo(Js(Js({},r),{},{name:t}))}}):i.createElement(wa.Z,{type:"movie",title:(0,u.S)("Add video start and end time (in seconds or minutes:seconds format) if this instruction step is part of the recipe video.")})))),i.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container"},i.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container-icons"},i.createElement(wa.Z,{type:"trash",title:(0,u.S)("Delete"),onClick:e.onDelete}),i.createElement(wa.Z,{type:"plus-text",title:(0,u.S)("Insert Group After"),onClick:e.onAddGroup}),i.createElement(wa.Z,{type:"plus",title:(0,u.S)("Insert Instruction After"),onClick:e.onAdd})),"summary"===e.editMode&&i.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container-summary"},i.createElement(Ka,{singleLine:!0,className:"wprm-admin-modal-field-instruction-name",toolbar:"none",value:e.hasOwnProperty("name")?e.name:"",placeholder:(0,u.S)("Step Summary"),onChange:t=>e.onChangeName(t)})),"media"===e.editMode&&i.createElement(Hs,Qs({},e,{video:r})),"ingredients"===e.editMode&&i.createElement(zs,e)))})(this.props,e)))}}function eu(){return eu=Object.assign?Object.assign.bind():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},eu.apply(this,arguments)}class tu extends i.Component{constructor(e){super(e);var t="media",r=localStorage.getItem("wprm-modal-edit-mode");r&&(t=r),this.state={editMode:t},this.container=i.createRef(),this.lastAddedIndex=0}shouldComponentUpdate(e,t){return this.state.editMode!==t.editMode||this.props.type!==e.type||this.props.allowVideo!==e.allowVideo||JSON.stringify(this.props.instructions)!==JSON.stringify(e.instructions)||JSON.stringify(this.props.ingredients)!==JSON.stringify(e.ingredients)}componentDidUpdate(e){if(this.props.instructions.length>e.instructions.length){var t=this.container.current.querySelectorAll(".wprm-admin-modal-field-richtext:not(.wprm-admin-modal-field-instruction-name)");t.length&&t[this.lastAddedIndex]&&t[this.lastAddedIndex].focus()}}onDragEnd(e){if(e.destination){var t=JSON.parse(JSON.stringify(this.props.instructions)),r=e.source.index,n=e.destination.index,i=t.splice(r,1)[0];t.splice(n,0,i),this.props.onRecipeChange({instructions_flat:t})}}addField(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=JSON.parse(JSON.stringify(this.props.instructions));t="group"===e?{type:"group",name:""}:{type:"instruction",name:"",text:"",image:0,image_url:"",ingredients:[]};var i=Math.max.apply(Math,n.map((function(e){return e.uid})));i=i<0?-1:i,t.uid=i+1,!1===r?(n.push(t),this.lastAddedIndex=n.length-1):(n.splice(r+1,0,t),this.lastAddedIndex=r+1),this.props.onRecipeChange({instructions_flat:n})}render(){var e={media:{label:(0,u.S)("Instruction Media")}};"ignore"!==wprm_admin.settings.metadata_instruction_name&&"other"!==this.props.type&&(e.summary={label:(0,u.S)("Metadata"),help:(0,u.S)('For guided recipes, Google wants a short (usually 1 word) summary for each instruction step. This will be the "name" in the HowToStep metadata. This is not shown in the recipe template.')}),e.ingredients={label:(0,u.S)("Associated Ingredients")};var t=this.props.ingredients.filter((e=>"ingredient"===e.type&&""!==e.name)),r=[];for(var n of this.props.instructions)n.hasOwnProperty("ingredients")&&(r=r.concat(n.ingredients));var o=[];for(var a of this.props.ingredients)if("ingredient"===a.type&&!r.includes(a.uid)){var s=Fs.getIngredientString(a);s&&o.push(s)}return i.createElement(i.Fragment,null,i.createElement(ls,{modes:e,mode:this.state.editMode,onModeChange:e=>{localStorage.setItem("wprm-modal-edit-mode",e),this.setState({editMode:e})}}),i.createElement("div",{className:"wprm-admin-modal-field-instruction-container",ref:this.container},i.createElement(cs.Z5,{onDragEnd:this.onDragEnd.bind(this)},i.createElement(cs.bK,{droppableId:"wprm-instructions"},((e,n)=>i.createElement("div",eu({className:"".concat(n.isDraggingOver?" wprm-admin-modal-field-instruction-container-draggingover":""),ref:e.innerRef},e.droppableProps),this.props.instructions.map(((e,n)=>i.createElement($s,eu({},e,{index:n,key:"instruction-".concat(e.uid),onTab:e=>{n===this.props.instructions.length-1&&(e.preventDefault(),setTimeout((()=>{this.addField("instruction")})))},editMode:this.state.editMode,onChangeName:e=>{var t=JSON.parse(JSON.stringify(this.props.instructions));t[n].name=e,this.props.onRecipeChange({instructions_flat:t})},onChangeText:e=>{var t=JSON.parse(JSON.stringify(this.props.instructions));t[n].text=e,this.props.onRecipeChange({instructions_flat:t})},onChangeImage:(e,t)=>{var r=JSON.parse(JSON.stringify(this.props.instructions));r[n].image=e,r[n].image_url=t,this.props.onRecipeChange({instructions_flat:r})},onDelete:()=>{var e=JSON.parse(JSON.stringify(this.props.instructions));e.splice(n,1),this.props.onRecipeChange({instructions_flat:e})},onAdd:()=>{this.addField("instruction",n)},onAddGroup:()=>{this.addField("group",n)},allowVideo:this.props.allowVideo,onChangeVideo:e=>{var t=JSON.parse(JSON.stringify(this.props.instructions));t[n].video=e,this.props.onRecipeChange({instructions_flat:t})},allIngredients:t,usedIngredients:r,onChangeIngredients:e=>{var t=JSON.parse(JSON.stringify(this.props.instructions));t[n].ingredients=e,this.props.onRecipeChange({instructions_flat:t})}})))),e.placeholder)))),"ingredients"===this.state.editMode&&i.createElement("div",{className:"wprm-admin-modal-field-instruction-unused-ingredients"},0===t.length?i.createElement("div",{className:"wprm-admin-modal-field-instruction-unused-ingredients-info"},(0,u.S)("This recipe doesn't have any ingredients.")):i.createElement(i.Fragment,null,0===o.length?i.createElement("div",{className:"wprm-admin-modal-field-instruction-unused-ingredients-info"},(0,u.S)("All ingredients are associated with a step!")):i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-field-instruction-unused-ingredients-info"},(0,u.S)("Unused ingredients:")),o.map(((e,t)=>i.createElement("div",{className:"wprm-admin-modal-field-instruction-unused-ingredients-ingredient",key:t},B().decode(e))))))),i.createElement("div",{className:"wprm-admin-modal-field-instruction-actions"},i.createElement("button",{className:"button",onClick:e=>{e.preventDefault(),this.addField("instruction")}},(0,u.S)("Add Instruction")),i.createElement("button",{className:"button",onClick:e=>{e.preventDefault(),this.addField("group")}},(0,u.S)("Add Instruction Group")),i.createElement("p",null,(0,u.S)("Tip: use the TAB key to move from field to field and easily add instructions.")))))}}function ru(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 nu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ru(Object(r),!0).forEach((function(t){iu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ru(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function iu(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ou=-1!==Object.values(wprm_admin_modal.nutrition).findIndex((e=>"calculated"===e.type));class au extends i.Component{constructor(e){super(e),this.state={calculating:!1}}shouldComponentUpdate(e,t){return this.state.calculing!==t.calculating||JSON.stringify(this.props.servings)!==JSON.stringify(e.servings)||JSON.stringify(this.props.nutrition)!==JSON.stringify(e.nutrition)}componentDidMount(){this.calculateNutrients()}componentDidUpdate(e){JSON.stringify(this.props.nutrition)!==JSON.stringify(e.nutrition)&&this.calculateNutrients()}calculateNutrients(){ou&&wprm_admin.addons.pro&&this.setState({calculating:!0},(()=>{l.Z.nutrition.getCalculated(this.props.nutrition).then((e=>{e&&Object.keys(e.calculated).length>0&&this.props.onRecipeChange({nutrition:nu(nu({},this.props.nutrition),e.calculated)}),this.setState({calculating:!1})}))}))}render(){var e=this.props,t=e.nutrition.hasOwnProperty("serving_size")&&e.nutrition.serving_size?e.nutrition.serving_size:"",r=e.nutrition.hasOwnProperty("serving_unit")&&e.nutrition.serving_unit?e.nutrition.serving_unit:"";return i.createElement(i.Fragment,null,i.createElement("p",null,(0,u.S)("These should be the nutrition facts for 1 serving of your recipe."),i.createElement("br",null),e.servings.amount?i.createElement(i.Fragment,null,(0,u.S)("Total servings for this recipe:")," ","".concat(e.servings.amount," ").concat(e.servings.unit)):i.createElement(i.Fragment,null,(0,u.S)('You don\'t have the servings field set for your recipe under "General".'))),i.createElement("div",{className:"wprm-admin-modal-field-nutrition-container"},wprm_admin.addons.premium?i.createElement(A.Z,{id:"nutrition_serving_size",label:(0,u.S)("Serving Size"),help:(0,u.S)("The weight of 1 serving. Does not affect the calculation.")},i.createElement(g.Z,{type:"number",value:t,onChange:t=>{var r=nu(nu({},e.nutrition),{},{serving_size:t});e.onRecipeChange({nutrition:r})}}),i.createElement(g.Z,{name:"serving-unit",placeholder:wprm_admin.settings.nutrition_default_serving_unit,value:r,onChange:t=>{var r=nu(nu({},e.nutrition),{},{serving_unit:t});e.onRecipeChange({nutrition:r})}})):null,Object.keys(wprm_admin_modal.nutrition).map(((t,r)=>{var n=wprm_admin_modal.nutrition[t],o=e.nutrition.hasOwnProperty(t)?e.nutrition[t]:"";return"serving_size"===t?null:"calories"===t||wprm_admin.addons.premium?i.createElement(A.Z,{id:"nutrition_".concat(t),label:n.label,key:r},"calculated"===n.type&&this.state.calculating?i.createElement(Ce.Z,null):i.createElement(i.Fragment,null,i.createElement(g.Z,{type:"number",value:o,onChange:r=>{var n=nu(nu({},e.nutrition),{},{[t]:r});e.onRecipeChange({nutrition:n})},disabled:"calculated"===n.type}),i.createElement("span",{className:"wprm-admin-modal-field-nutrition-unit"},n.unit))):null}))),wprm_admin.addons.premium?null:i.createElement("p",null,(0,u.S)("More nutrients are available in")," ",i.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Premium"),"."),i.createElement(d,{isPrimary:!0,required:"pro",onClick:()=>{e.onModeChange("nutrition-calculation")}},(0,u.S)("Calculate Nutrition Facts")))}}class su extends i.Component{constructor(e){super(e);var t=parseInt(wprm_admin_modal.editor_uid);wprm_admin_modal.editor_uid=t+1,this.state={editorHtml:!1,addedListeners:!1,editorId:"wprm-admin-modal-notes-editor-".concat(t)},this.initEditor=this.initEditor.bind(this),this.initTinyMCE=this.initTinyMCE.bind(this)}componentDidMount(){var e=document.getElementById("wprm-admin-modal-notes-placeholder").innerHTML;e=e.replace(/wprm-admin-modal-notes-editor/g,this.state.editorId),this.setState({editorHtml:e})}componentDidUpdate(e,t){this.state.editorHtml&&!t.editorHtml&&this.initEditor()}initEditor(){void 0!==window.tinymce?this.initTinyMCE():this.initTextarea()}initTextarea(){var e=document.getElementById(this.state.editorId);if(void 0!==window.quicktags)try{window.quicktags({id:this.state.editorId})}catch(t){}e&&(e.value=this.props.value,["input","blur"].forEach((t=>{e.addEventListener(t,(()=>{this.props.onChange(e.value)}))})))}initTinyMCE(){document.getElementById("wp-".concat(this.state.editorId,"-editor-container")).outerHTML='<textarea id="'.concat(this.state.editorId,'"></textarea>');var e=tinymce.$("#wp-".concat(this.state.editorId,"-wrap"));e.removeClass("tmce-active").addClass("html-active"),this.initTextarea(),e.removeClass("html-active").addClass("tmce-active");var t={};void 0!==window.tinyMCEPreInit&&tinyMCEPreInit.hasOwnProperty("mceInit")&&tinyMCEPreInit.mceInit.hasOwnProperty("wprm-admin-modal-notes-editor")&&(t=tinyMCEPreInit.mceInit["wprm-admin-modal-notes-editor"]),t.hasOwnProperty("body_class")&&(t.body_class=t.body_class.replace(/wprm-admin-modal-notes-editor/g,this.state.editorId)),t.selector="#".concat(this.state.editorId),window.tinymce.init(t);var r=window.tinymce.get(this.state.editorId);r&&r.on("change",(()=>{this.props.onChange(r.getContent())}))}componentWillUnmount(){void 0!==window.tinyMCE&&window.tinyMCE.remove("#".concat(this.state.editorId))}render(){return this.state.editorHtml?i.createElement("div",{id:"wprm-admin-modal-field-tinymce-container",dangerouslySetInnerHTML:{__html:this.state.editorHtml}}):i.createElement(Ce.Z,null)}}var uu=wprm_admin_modal.custom_fields&&wprm_admin_modal.custom_fields.fields?Object.values(wprm_admin_modal.custom_fields.fields):[],lu=e=>i.createElement(i.Fragment,null,uu.map(((t,r)=>{var n=!!e.fields.hasOwnProperty(t.key)&&e.fields[t.key];switch(t.type){case"text":case"link":case"email":var o="link"===t.type?"url":t.type;return i.createElement(A.Z,{label:t.name,key:r},i.createElement(g.Z,{type:o,name:"recipe-custom-".concat(t.key),value:n||"",onChange:r=>{e.onFieldChange(t.key,r)}}));case"textarea":return i.createElement(A.Z,{label:t.name,key:r},i.createElement(Ka,{value:n||"",onChange:r=>{e.onFieldChange(t.key,r)}}));case"classic":return i.createElement(A.Z,{label:t.name,key:r},i.createElement(su,{value:n||"",onChange:r=>{e.onFieldChange(t.key,r)}}));case"image":return i.createElement(A.Z,{label:t.name,key:r},i.createElement(Oe,{id:n?n.id:0,url:n?n.url:"",onChange:(r,n)=>{e.onFieldChange(t.key,{id:r,url:n})}}))}}))),cu=e=>i.createElement(A.Z,{label:(0,u.S)("Recipe Notes")},i.createElement(su,{id:"recipe-notes",value:e.notes,onChange:t=>{e.onRecipeChange({notes:t})}})),du=e=>{var t=e.recipe.video_id>0,r=!t&&(-1==e.recipe.video_id||e.recipe.video_embed),n=t||r,o=[{id:"import",name:(0,u.S)("Import"),elem:i.createElement(Ie,{onModeChange:e.onModeChange,onImportJSON:e.onImportJSON})},{id:"media",name:(0,u.S)("Media"),elem:i.createElement(Pe,{image:{id:e.recipe.image_id,url:e.recipe.image_url},pinImage:{id:e.recipe.pin_image_id,url:e.recipe.pin_image_url,repin:e.recipe.pin_image_repin_id},video:{id:e.recipe.video_id,thumb:e.recipe.video_thumb_url,embed:e.recipe.video_embed},onRecipeChange:e.onRecipeChange})}];return"public"!==wprm_admin.settings.post_type_structure&&"manual"!==wprm_admin.settings.recipe_use_author||o.push({id:"postType",name:(0,u.S)("Post Type"),elem:i.createElement(Be,{slug:e.recipe.slug,post_status:e.recipe.post_status,post_password:e.recipe.post_password,post_author:e.recipe.post_author,language:e.recipe.language,onRecipeChange:e.onRecipeChange})}),o.push({id:"general",name:(0,u.S)("General"),elem:i.createElement(ns,{type:e.recipe.type,name:e.recipe.name,summary:e.recipe.summary,author:{display:e.recipe.author_display,name:e.recipe.author_name,link:e.recipe.author_link},servings:{amount:e.recipe.servings,unit:e.recipe.servings_unit},servings_advanced_enabled:e.recipe.servings_advanced_enabled,servings_advanced:e.recipe.servings_advanced,cost:e.recipe.cost,my_emissions:e.recipe.my_emissions,onRecipeChange:e.onRecipeChange})}),o.push({id:"times",name:(0,u.S)("Times"),elem:i.createElement(os,{type:e.recipe.type,prep:{time:e.recipe.prep_time,zero:e.recipe.prep_time_zero},cook:{time:e.recipe.cook_time,zero:e.recipe.cook_time_zero},custom:{time:e.recipe.custom_time,zero:e.recipe.custom_time_zero},customLabel:e.recipe.custom_time_label,total:{time:e.recipe.total_time,zero:!1},onRecipeChange:e.onRecipeChange})}),o.push({id:"categories",name:(0,u.S)("Categories"),elem:i.createElement(us,{tags:e.recipe.tags,onRecipeChange:e.onRecipeChange})}),o.push({id:"equipment",name:(0,u.S)("Equipment"),elem:i.createElement(Ls,{type:e.recipe.type,equipment:e.recipe.equipment,onRecipeChange:e.onRecipeChange,onModeChange:e.onModeChange})}),o.push({id:"ingredients",name:"howto"===e.recipe.type?(0,u.S)("Materials"):(0,u.S)("Ingredients"),elem:i.createElement(xs,{type:e.recipe.type,ingredients:e.recipe.ingredients_flat,instructions:e.recipe.instructions_flat,linkType:e.recipe.ingredient_links_type,system:e.recipe.unit_system,onRecipeChange:e.onRecipeChange,onModeChange:e.onModeChange})}),o.push({id:"instructions",name:(0,u.S)("Instructions"),elem:i.createElement(tu,{type:e.recipe.type,ingredients:e.recipe.ingredients_flat,instructions:e.recipe.instructions_flat,onRecipeChange:e.onRecipeChange,allowVideo:n&&"other"!==e.recipe.type})}),"howto"!==e.recipe.type&&o.push({id:"nutrition",name:(0,u.S)("Nutrition"),elem:i.createElement(au,{nutrition:e.recipe.nutrition,servings:{amount:e.recipe.servings,unit:e.recipe.servings_unit},onRecipeChange:e.onRecipeChange,onModeChange:e.onModeChange})}),wprm_admin_modal.custom_fields&&wprm_admin_modal.custom_fields.fields&&0<Object.keys(wprm_admin_modal.custom_fields.fields).length&&o.push({id:"custom-fields",name:(0,u.S)("Custom Fields"),elem:i.createElement(lu,{fields:e.recipe.custom_fields,onFieldChange:(t,r)=>{var n=Object.assign({},JSON.parse(JSON.stringify(e.recipe.custom_fields)));n[t]=r,e.onRecipeChange({custom_fields:n})}})}),o.push({id:"notes",name:(0,u.S)("Notes"),elem:i.createElement(cu,{notes:e.recipe.notes,onRecipeChange:e.onRecipeChange})}),i.createElement(i.Fragment,null,i.createElement(p.Z,{onCloseModal:e.onCloseModal},e.loadingRecipe?(0,u.S)("Loading Recipe..."):i.createElement(i.Fragment,null,e.recipe.id?"".concat((0,u.S)("Editing Recipe")," #").concat(e.recipe.id).concat(e.recipe.name?" - ".concat(e.recipe.name):""):"".concat((0,u.S)("Creating new Recipe")).concat(e.recipe.name?" - ".concat(e.recipe.name):""))),i.createElement("div",{className:"wprm-admin-modal-recipe-quicklinks"},o.map(((e,t)=>i.createElement(we.rU,{to:"wprm-admin-modal-fields-group-".concat(e.id),containerId:"wprm-admin-modal-recipe-content",className:"wprm-admin-modal-recipe-quicklink",activeClass:"active",spy:!0,offset:-10,smooth:!0,duration:400,key:t},e.name)))),i.createElement(we.W_,{className:"wprm-admin-modal-content",id:"wprm-admin-modal-recipe-content"},e.loadingRecipe?i.createElement(Ce.Z,null):i.createElement("form",{className:"wprm-admin-modal-recipe-fields"},o.map(((t,r)=>i.createElement(Se,{header:t.name,id:t.id,key:100*e.forceRerender+r},t.elem))))),i.createElement("div",{id:"wprm-admin-modal-toolbar-container"}),"waiting"===e.saveResult?i.createElement(f.Z,{savingChanges:!1},i.createElement(Ee(),{text:JSON.stringify(e.recipe),onCopy:(e,t)=>{t?alert((0,u.S)('The recipe has been copied and can be used in the "Import from JSON" feature.')):alert((0,u.S)("Something went wrong. Please contact support."))}},i.createElement("a",{href:"#",onClick:e=>{e.preventDefault()}},(0,u.S)("This is taking a long time. Maybe something went wrong?")," ",(0,u.S)("Click to copy the recipe to your clipboard.")))," ",i.createElement(Ce.Z,null)):i.createElement(f.Z,{savingChanges:e.savingChanges},"failed"===e.saveResult&&i.createElement(Ee(),{text:JSON.stringify(e.recipe),onCopy:(e,t)=>{t?alert((0,u.S)('The recipe has been copied and can be used in the "Import from JSON" feature.')):alert((0,u.S)("Something went wrong. Please contact support."))}},i.createElement("a",{href:"#",onClick:e=>{e.preventDefault()}},(0,u.S)("Something went wrong during saving.")," ",(0,u.S)("Click to copy the recipe to your clipboard."))),"ok"===e.saveResult?i.createElement("span",null,(0,u.S)("Saved successfully")):null,i.createElement("button",{className:"button button-primary",onClick:()=>{e.saveRecipe(!1)},disabled:!e.changesMade},(0,u.S)("Save")),i.createElement("button",{className:"button button-primary",onClick:()=>{e.changesMade?e.saveRecipe(!0):e.onCloseModal()}},e.changesMade?(0,u.S)("Save & Close"):(0,u.S)("Close"))))},pu=e=>i.createElement("div",{className:"wprm-admin-modal-field-text-import-groups"},i.createElement("p",null,(0,u.S)("All of these will be imported. Use the checkbox to indicate group headers.")," "),e.value.map(((t,r)=>i.createElement("div",{className:"wprm-admin-modal-field-text-import-groups-field",key:r},i.createElement("input",{type:"checkbox",checked:t.group,onChange:t=>{var n=JSON.parse(JSON.stringify(e.value));n[r].group=t.target.checked,e.onChange(n)}}),i.createElement("input",{type:"text",value:t.text,style:t.group?{fontWeight:"bold"}:null,onChange:t=>{var n=JSON.parse(JSON.stringify(e.value));n[r].text=t.target.value,e.onChange(n)}})))));function fu(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 mu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fu(Object(r),!0).forEach((function(t){hu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function hu(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class gu extends i.Component{constructor(e){super(e),this.textInput=i.createRef();var t="";e.text&&(t=this.cleanUpText(e.text)),this.state={text:t,name:!1,summary:!1,equipment:!1,ingredients:!1,instructions:!1,notes:!1,isParsing:!1},this.cleanUpText=this.cleanUpText.bind(this),this.setSelection=this.setSelection.bind(this),this.useValues=this.useValues.bind(this)}componentDidMount(){this.textInput.current.focus()}cleanUpText(e){return e=e.replace(/(<([^>]+)>)/gi,""),e=B().decode(e)}setSelection(e){var t=this.textInput.current,r=t.value.substring(t.selectionStart,t.selectionEnd);if(r=r||!1,"equipment"!==e&&"ingredients"!==e&&"instructions"!==e||(r=this.getSeperateFields(r,e)),r!==this.state[e]){var n={};n[e]=r,this.setState(n)}}getSeperateFields(e,t){if(!1===e)return!1;"instructions"===t&&"punctuation"===wprm_admin_modal.settings.import_instructions_split&&(e=e.replace(/([!\.\?]+)/gm,"$1\n"));var r=[],n=e.split(/[\r\n]+/);for(var i of n)(i=(i=i.trim()).replace(/^(\d+\)\s+|\d+\.\s+|[a-z]+\)\s+|•\s+|[A-Z]+\.\s+|[IVX]+\.\s+)/,""))&&r.push({group:!1,text:i});return!!r.length&&r}useValues(){var e={};if(!1!==this.state.name&&(e.name=this.state.name),!1!==this.state.summary&&(e.summary=this.state.summary),!1!==this.state.notes&&(e.notes=this.state.notes),!1!==this.state.equipment){var t=[];this.state.equipment.map(((e,r)=>{t.push({uid:r,name:e.text})})),e.equipment=t}if(!1!==this.state.instructions){var r=[];this.state.instructions.map(((e,t)=>{e.group?r.push({uid:t,type:"group",name:e.text}):r.push({uid:t,type:"instruction",text:e.text,image:0,image_url:""})})),e.instructions_flat=r}var n=[],i={};!1!==this.state.ingredients&&(this.state.ingredients.map(((e,t)=>{e.group?n.push({uid:t,type:"group",name:e.text}):(n.push({uid:t,type:"ingredient",amount:"",unit:"",name:"",notes:""}),i[t]=e.text)})),e.ingredients_flat=n),0<Object.keys(i).length?this.setState({isParsing:!0},(()=>{l.Z.import.parseIngredients(i).then((t=>{if(t){for(var r in t.parsed){var n=t.parsed[r];e.ingredients_flat[r]=mu(mu({},e.ingredients_flat[r]),n)}this.props.onImportValues(e)}else this.setState({isParsing:!1})}))})):this.props.onImportValues(e)}render(){var e=!1!==this.state.name||!1!==this.state.summary||!1!==this.state.equipment||!1!==this.state.ingredients||!1!==this.state.instructions||!1!==this.state.notes;return i.createElement(i.Fragment,null,i.createElement(p.Z,{onCloseModal:this.props.onCloseModal},this.props.recipe.name?"".concat(this.props.recipe.name," - ").concat((0,u.S)("Import from Text")):"".concat((0,u.S)("Recipe")," - ").concat((0,u.S)("Import from Text"))),i.createElement("div",{className:"wprm-admin-modal-field-text-import-container"},i.createElement("h2",null,(0,u.S)("1. Highlight text and click the corresponding button")),i.createElement("div",{className:"wprm-admin-modal-field-text-import-selection"},i.createElement("div",{className:"wprm-admin-modal-field-text-import-buttons"},i.createElement("button",{className:!1!==this.state.name?"button wprm-selection-made":"button",onClick:()=>this.setSelection("name")},(0,u.S)("Name")),i.createElement("button",{className:!1!==this.state.summary?"button wprm-selection-made":"button",onClick:()=>this.setSelection("summary")},(0,u.S)("Summary")),i.createElement("button",{className:!1!==this.state.equipment?"button wprm-selection-made":"button",onClick:()=>this.setSelection("equipment")},(0,u.S)("Equipment")),i.createElement("button",{className:!1!==this.state.ingredients?"button wprm-selection-made":"button",onClick:()=>this.setSelection("ingredients")},(0,u.S)("Ingredients")),i.createElement("button",{className:!1!==this.state.instructions?"button wprm-selection-made":"button",onClick:()=>this.setSelection("instructions")},(0,u.S)("Instructions")),i.createElement("button",{className:!1!==this.state.notes?"button wprm-selection-made":"button",onClick:()=>this.setSelection("notes")},(0,u.S)("Notes"))),i.createElement("textarea",{ref:this.textInput,value:this.state.text,placeholder:(0,u.S)("Paste or type recipe"),onChange:e=>{this.setState({text:this.cleanUpText(e.target.value)})}})),i.createElement("h2",null,(0,u.S)("2. Fine-tune selections")),i.createElement("div",{className:"wprm-admin-modal-field-text-import-finetune"},e?i.createElement(i.Fragment,null,!1!==this.state.name&&i.createElement(A.Z,{label:(0,u.S)("Name")},i.createElement(g.Z,{name:"recipe-name",value:this.state.name,onChange:e=>{this.setState({name:e})}})),!1!==this.state.summary&&i.createElement(A.Z,{label:(0,u.S)("Summary")},i.createElement(fe.Z,{value:this.state.summary,onChange:e=>{this.setState({summary:e})}})),!1!==this.state.equipment&&i.createElement(A.Z,{label:(0,u.S)("Equipment")},this.state.equipment.map(((e,t)=>i.createElement("div",{className:"wprm-admin-modal-field-text-import-equipment-field",key:t},i.createElement(g.Z,{value:e.text,onChange:e=>{var r=JSON.parse(JSON.stringify(this.state.equipment));r[t].text=e,this.setState({equipment:r})}}))))),!1!==this.state.ingredients&&i.createElement(A.Z,{label:(0,u.S)("Ingredients"),help:(0,u.S)("Use the checkboxes to indicate group headers (like Frosting and Cake)")},i.createElement(pu,{value:this.state.ingredients,onChange:e=>{this.setState({ingredients:e})}})),!1!==this.state.instructions&&i.createElement(A.Z,{label:(0,u.S)("Instructions"),help:(0,u.S)("Use the checkboxes to indicate group headers (like Frosting and Cake)")},i.createElement(pu,{value:this.state.instructions,onChange:e=>{this.setState({instructions:e})}})),!1!==this.state.notes&&i.createElement(A.Z,{label:(0,u.S)("Notes")},i.createElement(fe.Z,{value:this.state.notes,onChange:e=>{this.setState({notes:e})}}))):i.createElement("p",null,(0,u.S)("Make a selection using the buttons above first.")))),i.createElement(f.Z,{savingChanges:this.state.isParsing},i.createElement("button",{className:"button",onClick:this.props.onCancel},(0,u.S)("Cancel")),i.createElement("button",{className:"button button-primary",onClick:this.useValues,disabled:!e},(0,u.S)("Use these Values"))))}}function vu(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 bu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vu(Object(r),!0).forEach((function(t){yu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function yu(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var{hooks:wu}=WPRecipeMaker["wp-recipe-maker/dist/shared"],Du={"text-import":gu,recipe:du};class Eu extends i.Component{constructor(e){super(e);var t=JSON.parse(JSON.stringify(wprm_admin_modal.recipe)),r=!1;e.args.hasOwnProperty("recipe")?t=JSON.parse(JSON.stringify(e.args.recipe)):e.args.hasOwnProperty("recipeId")&&(r=!0,l.Z.recipe.get(e.args.recipeId).then((t=>{if(t){var r=JSON.parse(JSON.stringify(t.recipe));e.args.cloneRecipe&&delete r.id,this.setState({recipe:r,originalRecipe:e.args.cloneRecipe||e.args.restoreRevision?{}:JSON.parse(JSON.stringify(r)),loadingRecipe:!1,mode:"recipe"}),this.scrollToGroup()}else this.setState({loadingRecipe:!1})}))),this.state={recipe:t,originalRecipe:e.args.cloneRecipe||e.args.restoreRevision?{}:JSON.parse(JSON.stringify(t)),savingChanges:!1,saveResult:!1,loadingRecipe:r,forceRerender:0,mode:"recipe"},this.scrollToGroup=this.scrollToGroup.bind(this),this.onModeChange=this.onModeChange.bind(this),this.onRecipeChange=this.onRecipeChange.bind(this),this.onImportJSON=this.onImportJSON.bind(this),this.saveRecipe=this.saveRecipe.bind(this),this.allowCloseModal=this.allowCloseModal.bind(this),this.changesMade=this.changesMade.bind(this)}componentDidMount(){"recipe"!==this.state.mode||this.state.loadingRecipe||this.scrollToGroup()}onModeChange(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={mode:e};"text-import"===e&&(r.textImportText=t),this.setState(r,(()=>{"recipe"===e&&(t=t||"media",this.scrollToGroup(t))}))}scrollToGroup(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"media";we.OK.scrollTo("wprm-admin-modal-fields-group-".concat(e),{containerId:"wprm-admin-modal-recipe-content",offset:-10})}onRecipeChange(e){this.setState((t=>({recipe:bu(bu({},t.recipe),e)})))}onImportJSON(e){delete e.id,this.setState((t=>({recipe:bu(bu({},t.recipe),e),forceRerender:t.forceRerender+1})))}saveRecipe(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.state.savingChanges){var t=setTimeout((()=>{this.setState({saveResult:"waiting"})}),5e3);this.setState({savingChanges:!0,saveResult:!1},(()=>{l.Z.recipe.save(this.state.recipe).then((r=>{if(clearTimeout(t),r&&r.recipe){var n=JSON.parse(JSON.stringify(r.recipe));this.setState((e=>({recipe:n,originalRecipe:JSON.parse(JSON.stringify(n)),savingChanges:!1,saveResult:"ok",forceRerender:e.forceRerender+1})),(()=>{"function"==typeof this.props.args.saveCallback&&this.props.args.saveCallback(n),e&&this.props.maybeCloseModal(),setTimeout((()=>{"ok"===this.state.saveResult&&this.setState({saveResult:!1})}),3e3)}))}else this.setState({savingChanges:!1,saveResult:"failed"})}))}))}}allowCloseModal(){switch(this.state.mode){case"nutrition-calculation":return confirm((0,u.S)("Are you sure you want to stop calculating the nutrition facts?"))&&this.onModeChange("recipe","nutrition"),!1;case"equipment-affiliate":return this.onModeChange("recipe","equipment"),!1;case"ingredient-links":return this.onModeChange("recipe","ingredients"),!1;case"text-import":return this.onModeChange("recipe"),!1}return!this.state.savingChanges&&(!this.changesMade()||confirm((0,u.S)("Are you sure you want to close without saving changes?")))}changesMade(){return void 0!==window.lodash?!window.lodash.isEqual(this.state.recipe,this.state.originalRecipe):JSON.stringify(this.state.recipe)!==JSON.stringify(this.state.originalRecipe)}render(){var e=wu.applyFilters("modalRecipe",Du),t=!!e.hasOwnProperty(this.state.mode)&&e[this.state.mode];if(!t)return null;switch(this.state.mode){case"nutrition-calculation":return i.createElement(t,{onCloseModal:this.props.maybeCloseModal,name:this.state.recipe.name,servings:this.state.recipe.servings,ingredients:this.state.recipe.ingredients_flat,onCancel:()=>{this.onModeChange("recipe","nutrition")},onNutritionChange:e=>{var t={};Object.keys(wprm_admin_modal.nutrition).map(((r,n)=>{e.hasOwnProperty(r)?t[r]=e[r]:t[r]=!1})),t.serving_size=!(!this.state.recipe.hasOwnProperty("nutrition")||!this.state.recipe.nutrition.hasOwnProperty("serving_size"))&&this.state.recipe.nutrition.serving_size,t.serving_unit=!(!this.state.recipe.hasOwnProperty("nutrition")||!this.state.recipe.nutrition.hasOwnProperty("serving_unit"))&&this.state.recipe.nutrition.serving_unit,this.onRecipeChange({nutrition:t}),this.onModeChange("recipe","nutrition")}});case"equipment-affiliate":return i.createElement(t,{onCloseModal:this.props.maybeCloseModal,onCancel:()=>{this.onModeChange("recipe","equipment")},equipment:this.state.recipe.equipment,onEquipmentChange:e=>{this.onRecipeChange({equipment:e}),this.onModeChange("recipe","equipment")}});case"ingredient-links":return i.createElement(t,{onCloseModal:this.props.maybeCloseModal,onCancel:()=>{this.onModeChange("recipe","ingredients")},ingredients:this.state.recipe.ingredients_flat,onIngredientsChange:e=>{this.onRecipeChange({ingredients_flat:e}),this.onModeChange("recipe","ingredients")}});case"text-import":return i.createElement(t,{onCloseModal:this.props.maybeCloseModal,onCancel:()=>{this.onModeChange("recipe")},text:this.state.textImportText,recipe:this.state.recipe,onImportValues:e=>{this.onRecipeChange(e),this.onModeChange("recipe")}});default:return i.createElement(t,{onCloseModal:this.props.maybeCloseModal,changesMade:this.changesMade(),savingChanges:this.state.savingChanges,saveResult:this.state.saveResult,loadingRecipe:this.state.loadingRecipe,recipe:this.state.recipe,onRecipeChange:this.onRecipeChange,onImportJSON:this.onImportJSON,saveRecipe:this.saveRecipe,forceRerender:this.state.forceRerender,onModeChange:this.onModeChange})}}}r(75405),r(35054),r(86632);var Cu=r(96463);class Su extends i.Component{constructor(e){super(e);var t="internal",r=!1,n="",i=!1,o=!0,a="",s="",l="",c={id:0,url:""},d=!1;if(e.args.fields&&e.args.fields.roundup){var p=e.args.fields.roundup;p.id?(t="internal",r={id:p.id,text:"".concat((0,u.S)("Recipe")," #").concat(p.id)},a=p.name,s=p.summary.replaceAll("%0A","\n"),l=p.button):p.link&&(t="external",n=p.link,i=!!p.nofollow,o=!!p.newtab,a=p.name,s=p.summary.replaceAll("%0A","\n"),l=p.button,c.id=p.image,c.url=p.image_url,s&&"<p>"!==s.substr(0,3)&&(d=!0))}this.state={type:t,recipe:r,link:n,nofollow:i,newtab:o,name:a,summary:s,image:c,button:l,loading:!1,saving:!1,fallbackToTextarea:d},this.loadDetailsFromURL=this.loadDetailsFromURL.bind(this),this.saveImage=this.saveImage.bind(this)}selectionsMade(){return"external"===this.state.type?""!==this.state.link:!1!==this.state.recipe}loadDetailsFromURL(){var e=this.state.link;new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e)&&this.setState({loading:!0},(()=>{fetch("https://api.microlink.io?url="+encodeURIComponent(e)).then((e=>e.json())).then((e=>{var t={loading:!1};"success"===e.status&&(e.data.title&&(t.name=e.data.title),e.data.description&&(t.summary=e.data.description),e.data.image&&e.data.image.url&&(t.image={id:-1,url:e.data.image.url})),this.setState(t)})).catch((e=>{console.log("Fetch Error",e);this.setState({loading:!1})}))}))}saveImage(){var e=this.state.image.url;e&&this.setState({saving:!0},(()=>{l.Z.utilities.saveImage(e).then((e=>{var t={saving:!1};e&&e.id&&(t.image=e),this.setState(t)}))}))}render(){return i.createElement(i.Fragment,null,i.createElement(p.Z,{onCloseModal:this.props.maybeCloseModal},(0,u.S)("Select Roundup Recipe")),i.createElement("div",{className:"wprm-admin-modal-roundup-container wprm-admin-modal-roundup-container-".concat(this.state.type)},i.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Type")),i.createElement(v.Z,{id:"type",options:[{value:"internal",label:(0,u.S)("Use one of your own recipes")},{value:"external",label:(0,u.S)("Use external recipe from a different website")}],value:this.state.type,onChange:e=>{this.setState({type:e})}}),"internal"===this.state.type?i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Recipe")),i.createElement(Cu.Z,{options:[],value:this.state.recipe,onValueChange:e=>{this.setState({recipe:e})}})):i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Link")),i.createElement(g.Z,{name:"roundup-link",placeholder:"https://demo.wprecipemaker.com/amazing-vegetable-pizza/",type:"url",value:this.state.link,onChange:e=>{this.setState({link:e})},disabled:this.state.loading}),this.state.loading?i.createElement(Ce.Z,null):i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-roundup-field-load-details-container",style:this.state.link?{}:{visibility:"hidden"}},i.createElement("a",{href:"#",onClick:e=>{e.preventDefault(),this.loadDetailsFromURL()}},(0,u.S)("Try to load details from URL"))),i.createElement("div",{className:"wprm-admin-modal-roundup-field-nofollow-container"},i.createElement("input",{id:"wprm-admin-modal-roundup-field-nofollow",type:"checkbox",checked:this.state.nofollow,onChange:e=>{this.setState({nofollow:e.target.checked})}})," ",i.createElement("label",{htmlFor:"wprm-admin-modal-roundup-field-nofollow"},(0,u.S)('Add rel="nofollow" to link'))),i.createElement("div",{className:"wprm-admin-modal-roundup-field-new-tab-container"},i.createElement("input",{id:"wprm-admin-modal-roundup-field-new-tab",type:"checkbox",checked:this.state.newtab,onChange:e=>{this.setState({newtab:e.target.checked})}})," ",i.createElement("label",{htmlFor:"wprm-admin-modal-roundup-field-new-tab"},(0,u.S)("Open link in new tab"))),i.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Image")),this.state.saving?i.createElement(Ce.Z,null):i.createElement(i.Fragment,null,-1===this.state.image.id&&""!==this.state.image.url?i.createElement("div",{className:"wprm-admin-modal-field-image"},i.createElement("p",null,(0,u.S)("External image. Recommended:")," ",i.createElement("a",{href:"#",onClick:e=>{e.preventDefault(),this.saveImage()}},(0,u.S)("Save image locally"))),i.createElement("div",{className:"wprm-admin-modal-field-image-preview"},i.createElement("img",{src:this.state.image.url}),i.createElement("a",{href:"#",onClick:e=>{e.preventDefault(),this.setState({image:{id:0,url:""}})}},(0,u.S)("Remove Image")))):i.createElement(Oe,{id:this.state.image.id,url:this.state.image.url,onChange:(e,t)=>{this.setState({image:{id:e,url:t}})}})))),"internal"===this.state.type&&i.createElement("p",{className:"wprm-admin-modal-roundup-override"},(0,u.S)("Optionally fill in these fields to use instead of the recipe values:")),!this.state.loading&&i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Name")),i.createElement(g.Z,{name:"recipe-name",placeholder:(0,u.S)("Recipe Name"),value:this.state.name,onChange:e=>{this.setState({name:e})}}),i.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Summary")),this.state.fallbackToTextarea?i.createElement(fe.Z,{placeholder:(0,u.S)("Short description of this recipe..."),value:this.state.summary,onChange:e=>{this.setState({summary:e})}}):i.createElement(Ka,{toolbar:"roundup",placeholder:(0,u.S)("Short description of this recipe..."),value:this.state.summary,onChange:e=>{e=(e=(e=e.replaceAll("<p></p>","")).replaceAll("<p><br></p>","")).replaceAll("<p><br/></p>",""),this.setState({summary:e})}}),i.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Custom Button Text")),i.createElement(g.Z,{placeholder:(0,u.S)("Leave blank to use default from template"),value:this.state.button,onChange:e=>{this.setState({button:e})}}))),i.createElement("div",{id:"wprm-admin-modal-toolbar-container"}),i.createElement(f.Z,{savingChanges:this.state.loading||this.state.saving},i.createElement("button",{className:"button button-primary",onClick:()=>{"function"==typeof this.props.args.insertCallback&&this.props.args.insertCallback(this.state),this.props.maybeCloseModal()},disabled:!this.selectionsMade()},(0,u.S)("Use"))))}}var Iu={id:0,text:(0,u.S)("First recipe on page")};class xu extends i.Component{constructor(e){super(e);var t=!1;e.args.fields.recipe.showFirst&&(t=Iu),this.state={recipe:t}}selectionsMade(){return!1!==this.state.recipe}render(){return i.createElement(i.Fragment,null,i.createElement(p.Z,{onCloseModal:this.props.maybeCloseModal},this.props.args.title?this.props.args.title:"WP Recipe Maker"),i.createElement("div",{className:"wprm-admin-modal-select-container"},this.props.args.fields.recipe?i.createElement(Cu.Z,{options:this.props.args.fields.recipe.showFirst?[Iu]:[],value:this.state.recipe,onValueChange:e=>{this.setState({recipe:e})}}):null),i.createElement(f.Z,{savingChanges:!1},i.createElement("button",{className:"button button-primary",onClick:()=>{"function"==typeof this.props.args.nextStepCallback?this.props.args.nextStepCallback(this.state):("function"==typeof this.props.args.insertCallback&&this.props.args.insertCallback(this.state),this.props.maybeCloseModal())},disabled:!this.selectionsMade()},this.props.args.button?this.props.args.button:(0,u.S)("Select"))))}}function Ou(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 Au(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ou(Object(r),!0).forEach((function(t){Mu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ou(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Mu(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Pu extends i.Component{constructor(e){super(e);var t={key:"",singular_name:"",name:"",slug:"",archive:!1},r=!1;e.args.hasOwnProperty("taxonomy")&&(r=!0,t=JSON.parse(JSON.stringify(e.args.taxonomy))),this.state={editing:r,taxonomy:t,originalTaxonomy:JSON.parse(JSON.stringify(t)),savingChanges:!1},this.changesMade=this.changesMade.bind(this),this.saveChanges=this.saveChanges.bind(this)}sanitizeSlug(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e=(e=e.trim()).toLowerCase();var r="àáäâèéëêìíïîòóöôùúüûñçěščřžýúůďťň·/,:;",n="aaaaeeeeiiiioooouuuuncescrzyuudtn_____";t&&(r+="-",n+="_");for(var i=0,o=r.length;i<o;i++)e=e.replace(new RegExp(r.charAt(i),"g"),n.charAt(i));return e=e.replace(".","-").replace(/[^a-z0-9\s_\-]/g,"").replace(/\s+/g,"_").replace(/_+/g,"_")}saveChanges(){this.state.taxonomy.key.trim()&&this.state.taxonomy.singular_name.trim()&&this.state.taxonomy.name.trim()&&this.state.taxonomy.slug.trim()?this.setState({savingChanges:!0},(()=>{l.Z.customTaxonomy.save(this.state.editing,this.state.taxonomy).then((e=>{e?this.setState({originalTaxonomy:JSON.parse(JSON.stringify(this.state.taxonomy)),savingChanges:!1},(()=>{"function"==typeof this.props.args.saveCallback&&this.props.args.saveCallback(this.state.taxonomy),this.props.maybeCloseModal()})):(this.state.editing||!1!==e||alert((0,u.S)("Something went wrong. Make sure this key does not exist yet.")),this.setState({savingChanges:!1}))}))})):alert((0,u.S)("All fields are required."))}allowCloseModal(){return!this.state.savingChanges&&(!this.changesMade()||confirm((0,u.S)("Are you sure you want to close without saving changes?")))}changesMade(){return JSON.stringify(this.state.taxonomy)!==JSON.stringify(this.state.originalTaxonomy)}render(){return i.createElement(i.Fragment,null,i.createElement(p.Z,{onCloseModal:this.props.maybeCloseModal},this.state.editing?"".concat((0,u.S)("Editing Custom Taxonomy")).concat(this.state.taxonomy.key?" - wprm_".concat(this.state.taxonomy.key):""):"".concat((0,u.S)("Creating new Custom Taxonomy")).concat(this.state.taxonomy.key?" - wprm_".concat(this.state.taxonomy.key):"")),i.createElement("div",{className:"wprm-admin-modal-taxonomy-container"},i.createElement(A.Z,{id:"key",label:(0,u.S)("Key")},i.createElement(g.Z,{placeholder:(0,u.S)("course"),value:"wprm_".concat(this.state.taxonomy.key),onChange:e=>{var t=e.substr(5);t=this.sanitizeSlug(t,!0),this.setState({taxonomy:Au(Au({},this.state.taxonomy),{},{key:t})})},disabled:this.state.editing})),i.createElement(A.Z,{id:"singular_name",label:(0,u.S)("Singular Name")},i.createElement(g.Z,{placeholder:(0,u.S)("Course"),value:this.state.taxonomy.singular_name,onChange:e=>{this.setState({taxonomy:Au(Au({},this.state.taxonomy),{},{singular_name:e})})}})),i.createElement(A.Z,{id:"name",label:(0,u.S)("Plural Name")},i.createElement(g.Z,{placeholder:(0,u.S)("Courses"),value:this.state.taxonomy.name,onChange:e=>{this.setState({taxonomy:Au(Au({},this.state.taxonomy),{},{name:e})})}})),i.createElement(A.Z,{id:"archive",label:(0,u.S)("Has Archive Pages")},i.createElement(je,{value:this.state.taxonomy.archive,onChange:e=>{this.setState({taxonomy:Au(Au({},this.state.taxonomy),{},{archive:e})})}})),i.createElement(A.Z,{id:"slug",label:(0,u.S)("Slug")},i.createElement(g.Z,{placeholder:(0,u.S)("course"),value:this.state.taxonomy.slug,onChange:e=>{var t=this.sanitizeSlug(e);this.setState({taxonomy:Au(Au({},this.state.taxonomy),{},{slug:t})})}}))),i.createElement(f.Z,{savingChanges:this.state.savingChanges},i.createElement("button",{className:"button button-primary",onClick:this.saveChanges,disabled:!this.changesMade()},(0,u.S)("Save"))))}}var Bu=r(96073);document.getElementById("wprm-admin-modal")&&a().setAppElement("#wprm-admin-modal");var{hooks:Nu}=WPRecipeMaker["wp-recipe-maker/dist/shared"],ku={"bulk-edit":pe,"input-fields":me,menu:ye,recipe:Eu,roundup:Su,select:xu,taxonomy:Pu};class Tu extends i.Component{constructor(){super(),this.state={modalIsOpen:!1,mode:"",args:{}},this.content=i.createRef(),this.close=this.close.bind(this),this.closeIfAllowed=this.closeIfAllowed.bind(this)}open(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&this.state.modalIsOpen||this.setState({modalIsOpen:!0,mode:e,args:t},(()=>{window.onbeforeunload=()=>(0,u.S)("Are you sure you want to leave this page?")}))}close(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.setState({modalIsOpen:!1},(()=>{window.onbeforeunload=null,"function"==typeof e&&e()}))}closeIfAllowed(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(!this.content.current||!this.content.current.hasOwnProperty("allowCloseModal"))&&this.content.current.allowCloseModal;t&&!t()||this.close(e)}addTextToEditor(e,t){if("undefined"==typeof tinyMCE||!tinyMCE.get(t)||tinyMCE.get(t).isHidden()){var r=Bu("textarea#"+t).val();Bu("textarea#"+t).val(r+e)}else tinyMCE.get(t).focus(!0),tinyMCE.activeEditor.selection.collapse(!1),tinyMCE.activeEditor.execCommand("mceInsertContent",!1,e)}refreshEditor(e){"undefined"!=typeof tinyMCE&&tinyMCE.get(e)&&!tinyMCE.get(e).isHidden()&&(tinyMCE.get(e).focus(!0),tinyMCE.activeEditor.setContent(tinyMCE.activeEditor.getContent()))}render(){var e=Nu.applyFilters("modal",ku),t=!!e.hasOwnProperty(this.state.mode)&&e[this.state.mode];return t?i.createElement(a(),{isOpen:this.state.modalIsOpen,onRequestClose:this.closeIfAllowed,overlayClassName:"wprm-admin-modal-overlay",className:"wprm-admin-modal wprm-admin-modal-".concat(this.state.mode)},i.createElement(s.Z,{module:"Modal"},i.createElement(t,{ref:this.content,mode:this.state.mode,args:this.state.args,maybeCloseModal:this.closeIfAllowed}))):null}}var ju=document.getElementById("wprm-admin-modal");ju&&n.render(i.createElement(Tu,{ref:e=>{window.WPRM_Modal=e}}),ju)},43636:function(e,t,r){"use strict";var n=r(89526),i=r(26612);t.Z=e=>{var t="wprm-admin-modal-field-container";e.id&&(t+=" wprm-admin-modal-field-container-".concat(e.id));var r=null;return e.help&&(r=n.createElement(i.Z,{type:"question",title:e.help,className:"wprm-admin-icon-help"})),n.createElement("div",{className:t},e.label?n.createElement(n.Fragment,null,n.createElement("div",{className:"wprm-admin-modal-field-label"},e.label,r),n.createElement("div",{className:"wprm-admin-modal-field"},e.children)):e.children)}},69347:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});r(193),r(33130);var n=r(89526),i=r(844);function o(){return o=Object.assign?Object.assign.bind():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},o.apply(this,arguments)}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 s(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){u(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}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class l extends n.Component{shouldComponentUpdate(e){return JSON.stringify(this.props.options)!==JSON.stringify(e.options)||this.props.value!==e.value||this.props.isDisabled!==e.isDisabled}render(){var e=!1;this.props.options&&(e=this.props.options.reduce(((e,t)=>(t.hasOwnProperty("options")?e=e.concat(t.options):e.push(t),e)),[]).find((e=>e.value===this.props.value)));var t=this.props.custom?this.props.custom:{};return n.createElement(i.ZP,o({isDisabled:this.props.isDisabled,options:this.props.options,value:e,placeholder:this.props.placeholder,onChange:e=>{this.props.onChange(e.value)},styles:{control:e=>s(s({},e),{},{backgroundColor:"white"}),container:e=>s(s({},e),{},{width:"100%",maxWidth:this.props.width?this.props.width:"100%"})}},t))}}},24207:function(e,t,r){"use strict";var n=r(89526);t.Z=e=>n.createElement(n.Fragment,null,e.options.map((t=>n.createElement("div",{className:"wprm-admin-modal-field-radio-option",key:t.value},n.createElement("input",{type:"radio",value:t.value,name:"wprm-admin-radio-".concat(e.id),id:"wprm-admin-radio-".concat(e.id,"-").concat(t.value),checked:e.value==t.value,onChange:t=>{e.onChange(t.target.value)}}),n.createElement("label",{htmlFor:"wprm-admin-radio-".concat(e.id,"-").concat(t.value)},t.label)))))},59905:function(e,t,r){"use strict";var n=r(89526);t.Z=e=>{var t=!!e.hasOwnProperty("disabled")&&e.disabled,r=e.hasOwnProperty("type")?e.type:"text";return n.createElement("input",{type:r,min:e.hasOwnProperty("min")?e.min:null,max:e.hasOwnProperty("max")?e.max:null,step:e.hasOwnProperty("step")?e.step:null,disabled:t,name:e.name,value:e.value,placeholder:e.placeholder,onChange:t=>{e.onChange(t.target.value)},onKeyDown:t=>{"number"===e.type&&"-"===t.key&&t.preventDefault(),e.onKeyDown&&e.onKeyDown(t)}})}},59612:function(e,t,r){"use strict";var n=r(89526);t.Z=e=>n.createElement("textarea",{value:e.value,placeholder:e.placeholder,onChange:t=>{e.onChange(t.target.value)}})},86605:function(e,t,r){"use strict";var n=r(89526),i=r(34133);t.Z=e=>n.createElement("div",{className:"wprm-admin-modal-footer"},e.savingChanges?n.createElement(i.Z,null):n.createElement(n.Fragment,null,e.children))},96005:function(e,t,r){"use strict";var n=r(89526),i=r(52082),o=r(26612);t.Z=e=>n.createElement("div",{className:"wprm-admin-modal-header"},n.createElement("h2",null,e.children),n.createElement("div",{className:"wprm-admin-modal-close",onClick:e.onCloseModal},n.createElement(o.Z,{type:"close",title:(0,i.S)("Close")})))},5308:function(e,t,r){"use strict";r(87191);var n=r(52082),i={selectImage(e){this.select("image",e)},selectVideo(e){this.select("video",e)},select(e,t){var r={title:(0,n.S)("Select Media"),button:{text:(0,n.S)("Select")},multiple:!1};"video"===e?(r.frame="video",r.state="video-details"):r.library={type:"image"};var i=wp.media(r);i.on("select",(function(){var e=i.state().get("selection").first().toJSON();t(e)})),i.on("update",(function(){var e=i.state().media.attachment;e&&t(e)})),i.open()}};t.Z=i},96463:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});r(35054);var n=r(89526),i=r(45624),o=r(52082);class a extends n.Component{getOptions(e){return 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())).then((e=>e.data.recipes_with_id)):Promise.resolve({options:[]})}render(){return n.createElement(i.ZP,{placeholder:(0,o.S)("Select or search a recipe"),value:this.props.value,onChange:this.props.onValueChange,getOptionValue:e=>{var{id:t}=e;return t},getOptionLabel:e=>{var{text:t}=e;return t},defaultOptions:this.props.options.concat(wprm_admin.latest_recipes),loadOptions:this.getOptions.bind(this),noOptionsMessage:()=>(0,o.S)("No recipes found"),clearable:!1})}}},99237:function(e,t,r){"use strict";r.d(t,{Z:function(){return W}});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 s(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,l={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){s(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)}},c=wprm_admin.endpoints.dashboard,d={getAnalytics:()=>n.Z.call("".concat(c,"/analytics"))},p=wprm_admin.endpoints.notices,f={dismissNotice(e){var t={id:e};return n.Z.call(p,"DELETE",t)}},m=wprm_admin.endpoints.modal,h={parseIngredients(e){var t={ingredients:e};return n.Z.call("".concat(m,"/ingredient/parse"),"POST",t)}},g=(r(35054),wprm_admin.endpoints.manage),v=wprm_admin.endpoints.rating,b=wprm_admin.endpoints.taxonomy,y=!1,w=!1,D={getData(e){return y?(w=e,new Promise((e=>e(!1)))):this.getDataDebounced(e)},getDataDebounced(e){return y=!0,n.Z.call("".concat(g,"/").concat(e.route),"POST",e).then((e=>{if(w){var t=w;return w=!1,this.getDataDebounced(t)}return y=!1,e}))},deleteUserRatings:e=>n.Z.call("".concat(v,"/recipe/").concat(e),"DELETE"),getTerm:(e,t)=>n.Z.call("".concat(b).concat(e,"/").concat(t)),createTerm(e,t){var r={name:t};return n.Z.call("".concat(b).concat(e),"POST",r)},deleteTerm:(e,t)=>n.Z.call("".concat(b).concat(e,"/").concat(t,"?force=true"),"DELETE"),renameTerm(e,t,r){var i={name:r};return n.Z.call("".concat(b).concat(e,"/").concat(t),"POST",i)},changeTermSlug(e,t,r){var i={slug:r};return n.Z.call("".concat(b).concat(e,"/").concat(t),"POST",i)},renameTermLabel(e,t,r){var i={type:e,id:t,label:r};return n.Z.call("".concat(g,"/taxonomy/label"),"POST",i)},mergeTerm(e,t,r){var i={type:e,oldId:t,newId:r};return n.Z.call("".concat(g,"/taxonomy/merge"),"POST",i)},updateTaxonomyMeta(e,t,r){var i={};return i[e]=r,n.Z.call("".concat(b).concat(e,"/").concat(t),"POST",i)},bulkEdit(e,t,r,i){var o={type:t,ids:r,action:i};return n.Z.call("".concat(g,"/").concat(e,"/bulk"),"POST",o)}},E=wprm_admin.endpoints.modal,C=!1,S=!1,I=!1,x={getSuggestions(e){return C?(I=e,new Promise((e=>e(!1)))):this.getSuggestionsDebounced(e)},getSuggestionsDebounced(e){C=!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(I){var t=I;return I=!1,this.getSuggestionsDebounced(t)}return C=!1,e})))}},O=wprm_admin.endpoints.rating,A={update(e){var t={rating:e};return n.Z.call("".concat(O),"POST",t)},updateComment(e,t){var r={rating:t};return n.Z.call("".concat(O,"/comment/").concat(e),"POST",r)},delete:e=>n.Z.call("".concat(O,"/").concat(e),"DELETE")},M=(r(38472),wprm_admin.endpoints.recipe),P=wprm_admin.endpoints.manage,B={get:e=>n.Z.call("".concat(M,"/").concat(e,"?t=").concat(Date.now())),save(e){var t={recipe:e},r=M,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(M,"/").concat(e),"PUT",r)},delete(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r="".concat(M,"/").concat(e);return t&&(r+="?force=true"),n.Z.call(r,"DELETE")},deleteRevision:e=>n.Z.call("".concat(P,"/revision/").concat(e),"DELETE")},N=wprm_admin.endpoints.setting,k={save(e){var t={settings:e};return n.Z.call(N,"POST",t)}},T=wprm_admin.endpoints.template,j=[],L={},F=null,R={previewShortcode(e,t,r){return L[e]=t,clearTimeout(F),F=setTimeout((()=>{this.previewShortcodes(r)}),500),new Promise((e=>j.push(e)))},previewShortcodes(e){var t=j,r=L;j=[],L={};var n={recipeId:e,shortcodes:r};fetch("".concat(T,"/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(T,"POST",t)},delete(e){var t={slug:e};return n.Z.call(T,"DELETE",t)}},_=wprm_admin.endpoints.utilities,Z={saveImage(e){var t={url:e};return n.Z.call("".concat(_,"/save_image"),"POST",t)},giveFeedback(e){var t={feedback:e};return n.Z.call("".concat(_,"/feedback"),"POST",t)}},{hooks:H}=WPRecipeMaker["wp-recipe-maker/dist/shared"],W=H.applyFilters("api",{analytics:o,customTaxonomy:l,dashboard:d,general:f,import:h,manage:D,modal:x,rating:A,recipe:B,settings:k,template:R,utilities:Z})},46087:function(e,t,r){"use strict";r(39275),r(22321),r(35054),r(38472);function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(l){return void r(l)}s.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 s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(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 s=!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."),s=!1):n+="\r\n\r\n".concat(e)}))}catch(l){console.log(l),n+="\r\n\r\n".concat(l)}if(s&&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)}))}}},48618:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});r(33290);var n=r(89526);class i extends n.Component{constructor(e){super(e),this.state={hasError:!1,error:!1,info:!1}}componentDidCatch(e,t){this.setState({hasError:!0,error:e,info:t})}render(){return n.createElement(n.Fragment,null,this.state.hasError?n.createElement("div",{className:"wprm-error-boundary"},n.createElement("p",null,n.createElement("strong",null,"Something went wrong"),n.createElement("br",null),"Please contact ",n.createElement("a",{href:"mailto:support@bootstrapped.ventures"},"support@bootstrapped.ventures")," and send along the following information:"),n.createElement("pre",null,this.props.module?"Module: ".concat(this.props.module,"\n"):null,this.state.error?"Error: ".concat(this.state.error.toString(),"\n"):null,this.state.info?"Stack: ".concat(this.state.info.componentStack):null)):this.props.children)}}},26612:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});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==","plus-text":"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48cmVjdCBkYXRhLWVsZW1lbnQ9ImZyYW1lIiB4PSIwIiB5PSIwIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHJ4PSI0IiByeT0iNCIgc3Ryb2tlPSJub25lIiBmaWxsPSIjZmZmZmZmIj48L3JlY3Q+PGcgY2xhc3M9Im5jLWljb24td3JhcHBlciIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMS41OTk5OTk5OTk5OTk5OTk2IDEuNTk5OTk5OTk5OTk5OTk5Nikgc2NhbGUoMC44KSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBvbHlsaW5lIHBvaW50cz0iMC41IDIuNSAwLjUgMC41IDE0LjUgMC41IDE0LjUgMi41Ij48L3BvbHlsaW5lPjxsaW5lIHgxPSI3LjUiIHkxPSIwLjUiIHgyPSI3LjUiIHkyPSIxNS41Ij48L2xpbmU+PGxpbmUgeDE9IjQuNSIgeTE9IjE1LjUiIHgyPSIxMC41IiB5Mj0iMTUuNSI+PC9saW5lPjxsaW5lIHgxPSIxMyIgeTE9IjYiIHgyPSIxMyIgeTI9IjExIiBzdHJva2U9IiMxMTExMTEiPjwvbGluZT48bGluZSB4MT0iMTAuNSIgeTE9IjguNSIgeDI9IjE1LjUiIHkyPSI4LjUiIHN0cm9rZT0iIzExMTExMSI+PC9saW5lPjwvZz48L3N2Zz4=",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+",temperature:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cGF0aCBkPSJNMTAsOC4wNDVWMi40OWEyLDIsMCwwLDAtNCwwVjguMDQ1YTQsNCwwLDEsMCw0LDBaIj48L3BhdGg+PGNpcmNsZSBjeD0iOCIgY3k9IjExLjQ5IiByPSIyIiBzdHJva2U9IiMxMTExMTEiPjwvY2lyY2xlPjxsaW5lIHgxPSI4IiB5MT0iNC40OSIgeDI9IjgiIHkyPSI5LjQ5IiBzdHJva2U9IiMxMTExMTEiPjwvbGluZT48L2c+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="},s=e=>{var t=!!a.hasOwnProperty(e.type)&&a[e.type];if(!t)return null;var r=e.title,s=e.className?"wprm-admin-icon ".concat(e.className):"wprm-admin-icon",u=!!e.hasOwnProperty("hidden")&&e.hidden;return u&&(r="",s+=" wprm-admin-icon-hidden"),n.createElement(o.Z,{content:r},n.createElement("span",{className:s,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){s(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 s(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 s}});var a={};function s(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))},71236:function(e,t,r){"use strict";var n=r(59833),i=r(24697),o="/*|*/";function a(e){e&&s.current.insert(e+"}")}var s={current:null},u=function(e,t,r,n,i,u,l,c,d,p){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return s.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===c)return t+o;break;case 3:switch(c){case 102:case 112:return s.current.insert(r[0]+t),"";default:return t+(0===p?o:"")}case-2:t.split("/*|*/}").forEach(a)}};t.Z=function(e){void 0===e&&(e={});var t,r=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var o=new i.Z(t);var a,l={};a=e.container||document.head;var c,d=document.querySelectorAll("style[data-emotion-"+r+"]");Array.prototype.forEach.call(d,(function(e){e.getAttribute("data-emotion-"+r).split(" ").forEach((function(e){l[e]=!0})),e.parentNode!==a&&a.appendChild(e)})),o.use(e.stylisPlugins)(u),c=function(e,t,r,n){var i=t.name;s.current=r,o(e,t.styles),n&&(p.inserted[i]=!0)};var p={key:r,sheet:new n.m({key:r,container:a,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:l,registered:{},insert:c};return p}},12821:function(e,t,r){"use strict";r.d(t,{F4:function(){return d},ms:function(){return h},nq:function(){return o.C},tZ:function(){return c}});var n=r(74289),i=r(89526),o=(r(71236),r(97838)),a=r(56002),s=r(26794),u=r(59833),l=r(72144),c=function(e,t){var r=arguments;if(null==t||!o.h.call(t,"css"))return i.createElement.apply(void 0,r);var n=r.length,a=new Array(n);a[0]=o.E,a[1]=(0,o.c)(e,t);for(var s=2;s<n;s++)a[s]=r[s];return i.createElement.apply(null,a)},d=(i.Component,function(){var e=l.Z.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}),p=function e(t){for(var r=t.length,n=0,i="";n<r;n++){var o=t[n];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var s in a="",o)o[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};function f(e,t,r){var n=[],i=(0,a.f)(e,n,r);return n.length<2?r:i+t(n)}var m=function(){return null},h=(0,o.w)((function(e,t){return(0,i.createElement)(o.T.Consumer,null,(function(r){var n=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i=(0,s.O)(r,t.registered);return(0,a.M)(t,i,!1),t.key+"-"+i.name},o={css:n,cx:function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return f(t.registered,n,p(r))},theme:r},u=e.children(o);var l=(0,i.createElement)(m,null);return(0,i.createElement)(i.Fragment,null,l,u)}))}))},97838:function(e,t,r){"use strict";r.d(t,{C:function(){return c},E:function(){return g},T:function(){return l},c:function(){return f},h:function(){return s},w:function(){return d}});var n=r(89526),i=r(71236),o=r(56002),a=r(26794),s=Object.prototype.hasOwnProperty,u=(0,n.createContext)("undefined"!=typeof HTMLElement?(0,i.Z)():null),l=(0,n.createContext)({}),c=u.Provider,d=function(e){var t=function(t,r){return(0,n.createElement)(u.Consumer,null,(function(n){return e(t,n,r)}))};return(0,n.forwardRef)(t)},p="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",f=function(e,t){var r={};for(var n in t)s.call(t,n)&&(r[n]=t[n]);return r[p]=e,r},m=function(){return null},h=function(e,t,r,i){var u=null===r?t.css:t.css(r);"string"==typeof u&&void 0!==e.registered[u]&&(u=e.registered[u]);var l=t[p],c=[u],d="";"string"==typeof t.className?d=(0,o.f)(e.registered,c,t.className):null!=t.className&&(d=t.className+" ");var f=(0,a.O)(c);(0,o.M)(e,f,"string"==typeof l);d+=e.key+"-"+f.name;var h={};for(var g in t)s.call(t,g)&&"css"!==g&&g!==p&&(h[g]=t[g]);h.ref=i,h.className=d;var v=(0,n.createElement)(l,h),b=(0,n.createElement)(m,null);return(0,n.createElement)(n.Fragment,null,b,v)},g=d((function(e,t,r){return"function"==typeof e.css?(0,n.createElement)(l.Consumer,null,(function(n){return h(t,e,n,r)})):h(t,e,null,r)}))},72144:function(e,t,r){"use strict";var n=r(26794);t.Z=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.O)(t)}},95862:function(e,t){"use strict";t.Z=function(e){for(var t,r=0,n=0,i=e.length;i>=4;++n,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}},93059:function(e,t){"use strict";t.Z=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}},26794:function(e,t,r){"use strict";r.d(t,{O:function(){return h}});var n=r(95862),i=r(8560),o=r(93059),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,u=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!=typeof e},c=(0,o.Z)((function(e){return u(e)?e:e.replace(a,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,(function(e,t,r){return f={name:t,styles:r,next:f},t}))}return 1===i.Z[e]||u(e)||"number"!=typeof t||0===t?t:t+"px"};function p(e,t,r,n){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return f={name:r.name,styles:r.styles,next:f},r.name;if(void 0!==r.styles){var i=r.next;if(void 0!==i)for(;void 0!==i;)f={name:i.name,styles:i.styles,next:f},i=i.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=p(e,t,r[i],!1);else for(var o in r){var a=r[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?n+=o+"{"+t[a]+"}":l(a)&&(n+=c(o)+":"+d(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=p(e,t,a,!1);switch(o){case"animation":case"animationName":n+=c(o)+":"+s+";";break;default:n+=o+"{"+s+"}"}}else for(var u=0;u<a.length;u++)l(a[u])&&(n+=c(o)+":"+d(o,a[u])+";")}return n}(e,t,r);case"function":if(void 0!==e){var o=f,a=r(e);return f=o,p(e,t,a,n)}}if(null==t)return r;var s=t[r];return void 0===s||n?r:s}var f,m=/label:\s*([^\s;\n{]+)\s*;/g;var h=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i=!0,o="";f=void 0;var a=e[0];null==a||void 0===a.raw?(i=!1,o+=p(r,t,a,!1)):o+=a[0];for(var s=1;s<e.length;s++)o+=p(r,t,e[s],46===o.charCodeAt(o.length-1)),i&&(o+=a[s]);m.lastIndex=0;for(var u,l="";null!==(u=m.exec(o));)l+="-"+u[1];return{name:(0,n.Z)(o)+l,styles:o,next:f}}},59833:function(e,t,r){"use strict";r.d(t,{m:function(){return n}});var n=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,r=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(r,t),this.tags.push(r)}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(n);try{var o=105===e.charCodeAt(1)&&64===e.charCodeAt(0);i.insertRule(e,o?0:i.cssRules.length)}catch(a){0}}else n.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}()},24697:function(e,t){"use strict";t.Z=function(e){function t(e,n,u,l,p){for(var f,m,h,g,w,E=0,C=0,S=0,I=0,x=0,N=0,T=h=f=0,L=0,F=0,R=0,_=0,Z=u.length,H=Z-1,W="",U="",G="",z="";L<Z;){if(m=u.charCodeAt(L),L===H&&0!==C+I+S+E&&(0!==C&&(m=47===C?10:47),I=S=E=0,Z++,H++),0===C+I+S+E){if(L===H&&(0<F&&(W=W.replace(d,"")),0<W.trim().length)){switch(m){case 32:case 9:case 59:case 13:case 10:break;default:W+=u.charAt(L)}m=59}switch(m){case 123:for(f=(W=W.trim()).charCodeAt(0),h=1,_=++L;L<Z;){switch(m=u.charCodeAt(L)){case 123:h++;break;case 125:h--;break;case 47:switch(m=u.charCodeAt(L+1)){case 42:case 47:e:{for(T=L+1;T<H;++T)switch(u.charCodeAt(T)){case 47:if(42===m&&42===u.charCodeAt(T-1)&&L+2!==T){L=T+1;break e}break;case 10:if(47===m){L=T+1;break e}}L=T}}break;case 91:m++;case 40:m++;case 34:case 39:for(;L++<H&&u.charCodeAt(L)!==m;);}if(0===h)break;L++}if(h=u.substring(_,L),0===f&&(f=(W=W.replace(c,"").trim()).charCodeAt(0)),64===f){switch(0<F&&(W=W.replace(d,"")),m=W.charCodeAt(1)){case 100:case 109:case 115:case 45:F=n;break;default:F=B}if(_=(h=t(n,F,h,m,p+1)).length,0<k&&(w=s(3,h,F=r(B,W,R),n,A,O,_,m,p,l),W=F.join(""),void 0!==w&&0===(_=(h=w.trim()).length)&&(m=0,h="")),0<_)switch(m){case 115:W=W.replace(D,a);case 100:case 109:case 45:h=W+"{"+h+"}";break;case 107:h=(W=W.replace(v,"$1 $2"))+"{"+h+"}",h=1===P||2===P&&o("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=W+h,112===l&&(U+=h,h="")}else h=""}else h=t(n,r(n,W,R),h,l,p+1);G+=h,h=R=F=T=f=0,W="",m=u.charCodeAt(++L);break;case 125:case 59:if(1<(_=(W=(0<F?W.replace(d,""):W).trim()).length))switch(0===T&&(f=W.charCodeAt(0),45===f||96<f&&123>f)&&(_=(W=W.replace(" ",":")).length),0<k&&void 0!==(w=s(1,W,n,e,A,O,U.length,l,p,l))&&0===(_=(W=w.trim()).length)&&(W="\0\0"),f=W.charCodeAt(0),m=W.charCodeAt(1),f){case 0:break;case 64:if(105===m||99===m){z+=W+u.charAt(L);break}default:58!==W.charCodeAt(_-1)&&(U+=i(W,f,m,W.charCodeAt(2)))}R=F=T=f=0,W="",m=u.charCodeAt(++L)}}switch(m){case 13:case 10:47===C?C=0:0===1+f&&107!==l&&0<W.length&&(F=1,W+="\0"),0<k*j&&s(0,W,n,e,A,O,U.length,l,p,l),O=1,A++;break;case 59:case 125:if(0===C+I+S+E){O++;break}default:switch(O++,g=u.charAt(L),m){case 9:case 32:if(0===I+E+C)switch(x){case 44:case 58:case 9:case 32:g="";break;default:32!==m&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===I+C+E&&(F=R=1,g="\f"+g);break;case 108:if(0===I+C+E+M&&0<T)switch(L-T){case 2:112===x&&58===u.charCodeAt(L-3)&&(M=x);case 8:111===N&&(M=N)}break;case 58:0===I+C+E&&(T=L);break;case 44:0===C+S+I+E&&(F=1,g+="\r");break;case 34:case 39:0===C&&(I=I===m?0:0===I?m:I);break;case 91:0===I+C+S&&E++;break;case 93:0===I+C+S&&E--;break;case 41:0===I+C+E&&S--;break;case 40:if(0===I+C+E){if(0===f)if(2*x+3*N==533);else f=1;S++}break;case 64:0===C+S+I+E+T+h&&(h=1);break;case 42:case 47:if(!(0<I+E+S))switch(C){case 0:switch(2*m+3*u.charCodeAt(L+1)){case 235:C=47;break;case 220:_=L,C=42}break;case 42:47===m&&42===x&&_+2!==L&&(33===u.charCodeAt(_+2)&&(U+=u.substring(_,L+1)),g="",C=0)}}0===C&&(W+=g)}N=x,x=m,L++}if(0<(_=U.length)){if(F=n,0<k&&(void 0!==(w=s(2,U,F,e,A,O,_,l,p,l))&&0===(U=w).length))return z+U+G;if(U=F.join(",")+"{"+U+"}",0!=P*M){switch(2!==P||o(U,2)||(M=0),M){case 111:U=U.replace(y,":-moz-$1")+U;break;case 112:U=U.replace(b,"::-webkit-input-$1")+U.replace(b,"::-moz-$1")+U.replace(b,":-ms-input-$1")+U}M=0}}return z+U+G}function r(e,t,r){var i=t.trim().split(h);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<o;++s)t[s]=n(e,t[s],r).trim();break;default:var u=s=0;for(t=[];s<o;++s)for(var l=0;l<a;++l)t[u++]=n(e[l]+" ",i[s],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,r,n){var a=e+";",s=2*t+3*r+4*n;if(944===s){e=a.indexOf(":",9)+1;var u=a.substring(e,a.length-1).trim();return u=a.substring(0,e).trim()+u+";",1===P||2===P&&o(u,1)?"-webkit-"+u+u:u}if(0===P||2===P&&!o(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(x,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(u=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+u+a;case 1005:return f.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(u=a.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=a.replace(w,"tb");break;case 232:u=a.replace(w,"tb-rl");break;case 220:u=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+u+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(u=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(u,"-webkit-"+u)+";"+a.replace(u,"-ms-"+u+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return u=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+u+"-ms-flex-"+u+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(C,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(C,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===I.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):a.replace(u,"-webkit-"+u)+a.replace(u,"-moz-"+u.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+n&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(m,"$1-webkit-$2")+a}return a}function o(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),T(2!==t?n:n.replace(S,"$1"),r,t)}function a(e,t){var r=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(E," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,i,o,a,s,u,c){for(var d,p=0,f=t;p<k;++p)switch(d=N[p].call(l,e,f,r,n,i,o,a,s,u,c)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==t)return f}function u(e){return void 0!==(e=e.prefix)&&(T=null,e?"function"!=typeof e?P=1:(P=2,T=e):P=0),u}function l(e,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<k){var i=s(-1,r,n,n,A,O,0,0,0,0);void 0!==i&&"string"==typeof i&&(r=i)}var o=t(B,n,r,0,0);return 0<k&&(void 0!==(i=s(-2,o,n,n,A,O,o.length,0,0,0))&&(o=i)),"",M=0,O=A=1,o}var c=/^\0+/g,d=/[\0\r\f]/g,p=/: */g,f=/zoo|gra/,m=/([,: ])(transform)/g,h=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,y=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,D=/\(\s*(.*)\s*\)/g,E=/([\s\S]*?);/g,C=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,I=/stretch|:\s*\w+\-(?:conte|avail)/,x=/([^-])(image-set\()/,O=1,A=1,M=0,P=1,B=[],N=[],k=0,T=null,j=0;return l.use=function e(t){switch(t){case void 0:case null:k=N.length=0;break;default:if("function"==typeof t)N[k++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else j=0|!!t}return e},l.set=u,void 0!==e&&u(e),l}},8560:function(e,t){"use strict";t.Z={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},56002:function(e,t,r){"use strict";r.d(t,{M:function(){return i},f:function(){return n}});function n(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]):n+=r+" "})),n}var i=function(e,t,r){var n=e.key+"-"+t.name;if(!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles),void 0===e.inserted[t.name]){var i=t;do{e.insert("."+n,i,e.sheet,!0);i=i.next}while(void 0!==i)}}},38974:function(e){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=90)}({17:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=r(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var r=t.match(e);return r&&r.length>0&&r[1]||""},e.getSecondMatch=function(e,t){var r=t.match(e);return r&&r.length>1&&r[2]||""},e.matchAndReturnConst=function(e,t,r){if(e.test(t))return r},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,r,n){void 0===n&&(n=!1);var i=e.getVersionPrecision(t),o=e.getVersionPrecision(r),a=Math.max(i,o),s=0,u=e.map([t,r],(function(t){var r=a-e.getVersionPrecision(t),n=t+new Array(r+1).join(".0");return e.map(n.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(n&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(u[0][a]>u[1][a])return 1;if(u[0][a]===u[1][a]){if(a===s)return 0;a-=1}else if(u[0][a]<u[1][a])return-1}},e.map=function(e,t){var r,n=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(r=0;r<e.length;r+=1)n.push(t(e[r]));return n},e.find=function(e,t){var r,n;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(r=0,n=e.length;r<n;r+=1){var i=e[r];if(t(i,r))return i}},e.assign=function(e){for(var t,r,n=e,i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];if(Object.assign)return Object.assign.apply(Object,[e].concat(o));var s=function(){var e=o[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach((function(t){n[t]=e[t]}))};for(t=0,r=o.length;t<r;t+=1)s();return e},e.getBrowserAlias=function(e){return n.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return n.BROWSER_MAP[e]||""},e}();t.default=i,e.exports=t.default},18:function(e,t,r){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(91))&&n.__esModule?n:{default:n},o=r(18);function a(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)}}var s=function(){function e(){}var t,r,n;return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new i.default(e,t)},e.parse=function(e){return new i.default(e).getResult()},t=e,n=[{key:"BROWSER_MAP",get:function(){return o.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return o.ENGINE_MAP}},{key:"OS_MAP",get:function(){return o.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return o.PLATFORMS_MAP}}],(r=null)&&a(t.prototype,r),n&&a(t,n),e}();t.default=s,e.exports=t.default},91:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=u(r(92)),i=u(r(93)),o=u(r(94)),a=u(r(95)),s=u(r(17));function u(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=s.default.find(n.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=s.default.find(i.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=s.default.find(o.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=s.default.find(a.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return s.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,r={},n=0,i={},o=0;if(Object.keys(e).forEach((function(t){var a=e[t];"string"==typeof a?(i[t]=a,o+=1):"object"==typeof a&&(r[t]=a,n+=1)})),n>0){var a=Object.keys(r),u=s.default.find(a,(function(e){return t.isOS(e)}));if(u){var l=this.satisfies(r[u]);if(void 0!==l)return l}var c=s.default.find(a,(function(e){return t.isPlatform(e)}));if(c){var d=this.satisfies(r[c]);if(void 0!==d)return d}}if(o>0){var p=Object.keys(i),f=s.default.find(p,(function(e){return t.isBrowser(e,!0)}));if(void 0!==f)return this.compareVersion(i[f])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var r=this.getBrowserName().toLowerCase(),n=e.toLowerCase(),i=s.default.getBrowserTypeByAlias(n);return t&&i&&(n=i.toLowerCase()),n===r},t.compareVersion=function(e){var t=[0],r=e,n=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(r=e.substr(1),"="===e[1]?(n=!0,r=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?r=e.substr(1):"~"===e[0]&&(n=!0,r=e.substr(1)),t.indexOf(s.default.compareVersions(i,r,n))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=l,e.exports=t.default},92:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},r=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},r=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},r=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},r=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},r=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},r=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},r=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},r=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},r=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},r=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},r=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},r=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},r=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},r=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},r=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},r=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},r=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},r=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},r=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},r=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},r=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},r=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},r=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},r=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},r=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},r=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t={name:"Android Browser"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:o.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=i.default.getWindowsVersionName(t);return{name:o.OS_MAP.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:o.OS_MAP.iOS},r=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=i.default.getMacOSVersionName(t),n={name:o.OS_MAP.MacOS,version:t};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=i.default.getAndroidVersionName(t),n={name:o.OS_MAP.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:o.OS_MAP.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:o.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:o.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:o.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:o.ENGINE_MAP.Trident},r=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:o.ENGINE_MAP.Presto},r=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe:function(e){var t={name:o.ENGINE_MAP.Gecko},r=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:o.ENGINE_MAP.WebKit},r=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}];t.default=a,e.exports=t.default}})},77447:function(e,t,r){"use strict";var n=r(12817),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var r,o,a,s,u,l,c=!1;t||(t={}),r=t.debug||!1;try{if(a=n(),s=document.createRange(),u=document.getSelection(),(l=document.createElement("span")).textContent=e,l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",(function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=i[t.format]||i.default;window.clipboardData.setData(o,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))})),document.body.appendChild(l),s.selectNodeContents(l),u.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");c=!0}catch(d){r&&console.error("unable to copy using execCommand: ",d),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(d){r&&console.error("unable to copy using clipboardData: ",d),r&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(s):u.removeAllRanges()),l&&document.body.removeChild(l),a()}return c}},8049:function(e,t,r){var n=r(63719);e.exports=n},22020:function(e,t,r){r(59789),r(68502);var n=r(13145);e.exports=n("Array","flat")},9968:function(e,t,r){r(89919)},89919:function(e,t,r){var n=r(8049);e.exports=n},97676:function(e,t,r){var n=r(75277),i=r(28768),o=TypeError;e.exports=function(e){if(n(e))return e;throw o(i(e)+" is not a function")}},43327:function(e,t,r){var n=r(31536),i=r(28768),o=TypeError;e.exports=function(e){if(n(e))return e;throw o(i(e)+" is not a constructor")}},75017:function(e,t,r){var n=r(75277),i=String,o=TypeError;e.exports=function(e){if("object"==typeof e||n(e))return e;throw o("Can't set "+i(e)+" as a prototype")}},6677:function(e,t,r){var n=r(52280),i=r(51569),o=r(86385).f,a=n("unscopables"),s=Array.prototype;null==s[a]&&o(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},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,t,r){var n=r(32010),i=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw i("Incorrect invocation")}},83875:function(e,t,r){var n=r(52786),i=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw o(i(e)+" is not an object")}},37190:function(e,t,r){var n=r(29580),i=r(32565),o=r(47046),a=function(e){return function(t,r,a){var s,u=n(t),l=o(u),c=i(a,l);if(e&&r!=r){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===r)return e||c||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(){return 1},1)}))}},86596:function(e,t,r){var n=r(97676),i=r(30744),o=r(78609),a=r(47046),s=TypeError,u=function(e){return function(t,r,u,l){n(r);var c=i(t),d=o(c),p=a(c),f=e?p-1:0,m=e?-1:1;if(u<2)for(;;){if(f in d){l=d[f],f+=m;break}if(f+=m,e?f<0:p<=f)throw s("Reduce of empty array with no initial value")}for(;e?f>=0:p>f;f+=m)f in d&&(l=r(l,d[f],f,c));return l}};e.exports={left:u(!1),right:u(!0)}},58990:function(e,t,r){var n=r(32565),i=r(47046),o=r(35039),a=Array,s=Math.max;e.exports=function(e,t,r){for(var u=i(e),l=n(t,u),c=n(void 0===r?u:r,u),d=a(s(c-l,0)),p=0;l<c;l++,p++)o(d,p,e[l]);return d.length=p,d}},15629:function(e,t,r){var n=r(88697);e.exports=n([].slice)},30765:function(e,t,r){var n=r(71982),i=r(31536),o=r(52786),a=r(52280)("species"),s=Array;e.exports=function(e){var t;return n(e)&&(t=e.constructor,(i(t)&&(t===s||n(t.prototype))||o(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},80150:function(e,t,r){var n=r(30765);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},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(s){}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(s){}return r}},79159:function(e,t,r){var n=r(88697),i=n({}.toString),o=n("".slice);e.exports=function(e){return o(i(e),8,-1)}},36994:function(e,t,r){var n=r(57301),i=r(75277),o=r(79159),a=r(52280)("toStringTag"),s=Object,u="Arguments"==o(function(){return arguments}());e.exports=n?o: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=s(e),a))?r:u?o(t):"Object"==(n=o(t))&&i(t.callee)?"Arguments":n}},73870:function(e,t,r){var n=r(24792),i=r(31561),o=r(66012),a=r(86385);e.exports=function(e,t,r){for(var s=i(t),u=a.f,l=o.f,c=0;c<s.length;c++){var d=s[c];n(e,d)||r&&n(r,d)||u(e,d,l(t,d))}}},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}},25115:function(e,t,r){var n=r(79044);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},6181:function(e,t,r){"use strict";var n=r(97022).IteratorPrototype,i=r(51569),o=r(69199),a=r(60878),s=r(44818),u=function(){return this};e.exports=function(e,t,r,l){var c=t+" Iterator";return e.prototype=i(n,{next:o(+!l,r)}),a(e,c,!1,!0),s[c]=u,e}},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}}},35039:function(e,t,r){"use strict";var n=r(383),i=r(86385),o=r(69199);e.exports=function(e,t,r){var a=n(t);a in e?i.f(e,a,o(0,r)):e[a]=r}},50403:function(e,t,r){var n=r(75277),i=r(86385),o=r(20833),a=r(62359);e.exports=function(e,t,r,s){s||(s={});var u=s.enumerable,l=void 0!==s.name?s.name:t;return n(r)&&o(r,l,s),s.global?u?e[t]=r:a(t,r):(s.unsafe?e[t]&&(u=!0):delete e[t],u?e[t]=r:i.f(e,t,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})),e}},62359:function(e,t,r){var n=r(98363),i=Object.defineProperty;e.exports=function(e,t){try{i(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},61495:function(e,t,r){"use strict";var n=r(19882),i=r(79611),o=r(21178),a=r(55316),s=r(75277),u=r(6181),l=r(12654),c=r(22412),d=r(60878),p=r(45899),f=r(50403),m=r(52280),h=r(44818),g=r(97022),v=a.PROPER,b=a.CONFIGURABLE,y=g.IteratorPrototype,w=g.BUGGY_SAFARI_ITERATORS,D=m("iterator"),E="keys",C="values",S="entries",I=function(){return this};e.exports=function(e,t,r,a,m,g,x){u(r,t,a);var O,A,M,P=function(e){if(e===m&&j)return j;if(!w&&e in k)return k[e];switch(e){case E:case C:case S:return function(){return new r(this,e)}}return function(){return new r(this)}},B=t+" Iterator",N=!1,k=e.prototype,T=k[D]||k["@@iterator"]||m&&k[m],j=!w&&T||P(m),L="Array"==t&&k.entries||T;if(L&&(O=l(L.call(new e)))!==Object.prototype&&O.next&&(o||l(O)===y||(c?c(O,y):s(O[D])||f(O,D,I)),d(O,B,!0,!0),o&&(h[B]=I)),v&&m==C&&T&&T.name!==C&&(!o&&b?p(k,"name",C):(N=!0,j=function(){return i(T,this)})),m)if(A={values:P(C),keys:g?j:P(E),entries:P(S)},x)for(M in A)(w||N||!(M in k))&&f(k,M,A[M]);else n({target:t,proto:!0,forced:w||N},A);return o&&!x||k[D]===j||f(k,D,j,{name:m}),h[t]=j,A}},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):{}}},94758:function(e){var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},12848:function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},79189:function(e,t,r){var n=r(92750)("span").classList,i=n&&n.constructor&&n.constructor.prototype;e.exports=i===Object.prototype?void 0:i},47923:function(e){e.exports="object"==typeof window&&"object"!=typeof Deno},55357:function(e,t,r){var n=r(82647),i=r(98363);e.exports=/ipad|iphone|ipod/i.test(n)&&void 0!==i.Pebble},53121:function(e,t,r){var n=r(82647);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},93921:function(e,t,r){var n=r(79159),i=r(98363);e.exports="process"==n(i.process)},14402:function(e,t,r){var n=r(82647);e.exports=/web0s(?!.*chrome)/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),s=o.process,u=o.Deno,l=s&&s.versions||u&&u.version,c=l&&l.v8;c&&(i=(n=c.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=+n[1]),e.exports=i},13145:function(e,t,r){var n=r(98363),i=r(88697);e.exports=function(e,t){return i(n[e].prototype[t])}},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(50403),s=r(62359),u=r(73870),l=r(86291);e.exports=function(e,t){var r,c,d,p,f,m=e.target,h=e.global,g=e.stat;if(r=h?n:g?n[m]||s(m,{}):(n[m]||{}).prototype)for(c in t){if(p=t[c],d=e.dontCallGetSet?(f=i(r,c))&&f.value:r[c],!l(h?c:m+(g?".":"#")+c,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;u(p,d)}(e.sham||d&&d.sham)&&o(p,"sham",!0),a(r,c,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(88697),i=r(50403),o=r(99749),a=r(79044),s=r(52280),u=r(45899),l=s("species"),c=RegExp.prototype;e.exports=function(e,t,r,d){var p=s(e),f=!a((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),m=f&&!a((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[l]=function(){return r},r.flags="",r[p]=/./[p]),r.exec=function(){return t=!0,null},r[p](""),!t}));if(!f||!m||r){var h=n(/./[p]),g=t(p,""[e],(function(e,t,r,i,a){var s=n(e),u=t.exec;return u===o||u===c.exec?f&&!a?{done:!0,value:h(t,r,i)}:{done:!0,value:s(r,t,i)}:{done:!1}}));i(String.prototype,e,g[0]),i(c,p,g[1])}d&&u(c[p],"sham",!0)}},92613:function(e,t,r){"use strict";var n=r(71982),i=r(47046),o=r(94758),a=r(98166),s=function(e,t,r,u,l,c,d,p){for(var f,m,h=l,g=0,v=!!d&&a(d,p);g<u;)g in r&&(f=v?v(r[g],g,t):r[g],c>0&&n(f)?(m=i(f),h=s(e,t,f,m,h,c-1)-1):(o(h+1),e[h]=f),h++),g++;return h};e.exports=s},63530:function(e,t,r){var n=r(23996),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(o):function(){return a.apply(o,arguments)})},98166:function(e,t,r){var n=r(88697),i=r(97676),o=r(23996),a=n(n.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},23996:function(e,t,r){var n=r(79044);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},79611:function(e,t,r){var n=r(23996),i=Function.prototype.call;e.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},55316:function(e,t,r){var n=r(7493),i=r(24792),o=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=i(o,"name"),u=s&&"something"===function(){}.name,l=s&&(!n||n&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:u,CONFIGURABLE:l}},88697:function(e,t,r){var n=r(23996),i=Function.prototype,o=i.bind,a=i.call,s=n&&o.bind(a,a);e.exports=n?function(e){return e&&s(e)}:function(e){return e&&function(){return a.apply(e,arguments)}}},22773:function(e,t,r){var n=r(98363),i=r(75277),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e]):n[e]&&n[e][t]}},77193:function(e,t,r){var n=r(36994),i=r(97219),o=r(44818),a=r(52280)("iterator");e.exports=function(e){if(null!=e)return i(e,a)||i(e,"@@iterator")||o[n(e)]}},11805:function(e,t,r){var n=r(79611),i=r(97676),o=r(83875),a=r(28768),s=r(77193),u=TypeError;e.exports=function(e,t){var r=arguments.length<2?s(e):t;if(i(r))return o(n(r,e));throw u(a(e)+" is not iterable")}},97219:function(e,t,r){var n=r(97676);e.exports=function(e,t){var r=e[t];return null==r?void 0:n(r)}},81373:function(e,t,r){var n=r(88697),i=r(30744),o=Math.floor,a=n("".charAt),s=n("".replace),u=n("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,r,n,d,p){var f=r+e.length,m=n.length,h=c;return void 0!==d&&(d=i(d),h=l),s(p,h,(function(i,s){var l;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return u(t,0,r);case"'":return u(t,f);case"<":l=d[u(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>m){var p=o(c/10);return 0===p?i:p<=m?void 0===n[p-1]?a(s,1):n[p-1]+a(s,1):i}l=n[c-1]}return void 0===l?"":l}))}},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}()||Function("return this")()},24792:function(e,t,r){var n=r(88697),i=r(30744),o=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},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(88697),i=r(79044),o=r(79159),a=Object,s=n("".split);e.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?s(e,""):a(e)}:a},59250:function(e,t,r){var n=r(75277),i=r(52786),o=r(22412);e.exports=function(e,t,r){var a,s;return o&&n(a=t.constructor)&&a!==r&&i(s=a.prototype)&&s!==r.prototype&&o(e,s),e}},56429:function(e,t,r){var n=r(88697),i=r(75277),o=r(49415),a=n(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},20821:function(e,t,r){var n,i,o,a=r(36830),s=r(98363),u=r(88697),l=r(52786),c=r(45899),d=r(24792),p=r(49415),f=r(50466),m=r(47505),h="Object already initialized",g=s.TypeError,v=s.WeakMap;if(a||p.state){var b=p.state||(p.state=new v),y=u(b.get),w=u(b.has),D=u(b.set);n=function(e,t){if(w(b,e))throw new g(h);return t.facade=e,D(b,e,t),t},i=function(e){return y(b,e)||{}},o=function(e){return w(b,e)}}else{var E=f("state");m[E]=!0,n=function(e,t){if(d(e,E))throw new g(h);return t.facade=e,c(e,E,t),t},i=function(e){return d(e,E)?e[E]:{}},o=function(e){return d(e,E)}}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(!l(t)||(r=i(t)).type!==e)throw g("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)}},71982:function(e,t,r){var n=r(79159);e.exports=Array.isArray||function(e){return"Array"==n(e)}},75277:function(e){e.exports=function(e){return"function"==typeof e}},31536:function(e,t,r){var n=r(88697),i=r(79044),o=r(75277),a=r(36994),s=r(22773),u=r(56429),l=function(){},c=[],d=s("Reflect","construct"),p=/^\s*(?:class|function)\b/,f=n(p.exec),m=!p.exec(l),h=function(e){if(!o(e))return!1;try{return d(l,c,e),!0}catch(t){return!1}},g=function(e){if(!o(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return m||!!f(p,u(e))}catch(t){return!0}};g.sham=!0,e.exports=!d||i((function(){var e;return h(h.call)||!h(Object)||!h((function(){e=!0}))||e}))?g:h},86291:function(e,t,r){var n=r(79044),i=r(75277),o=/#|\.prototype\./,a=function(e,t){var r=u[s(e)];return r==c||r!=l&&(i(t)?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},u=a.data={},l=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},52786:function(e,t,r){var n=r(75277);e.exports=function(e){return"object"==typeof e?null!==e:n(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))}},66681:function(e,t,r){var n=r(22773),i=r(75277),o=r(32010),a=r(189),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return i(t)&&o(t.prototype,s(e))}},5166:function(e,t,r){var n=r(98166),i=r(79611),o=r(83875),a=r(28768),s=r(68089),u=r(47046),l=r(32010),c=r(11805),d=r(77193),p=r(18744),f=TypeError,m=function(e,t){this.stopped=e,this.result=t},h=m.prototype;e.exports=function(e,t,r){var g,v,b,y,w,D,E,C=r&&r.that,S=!(!r||!r.AS_ENTRIES),I=!(!r||!r.IS_ITERATOR),x=!(!r||!r.INTERRUPTED),O=n(t,C),A=function(e){return g&&p(g,"normal",e),new m(!0,e)},M=function(e){return S?(o(e),x?O(e[0],e[1],A):O(e[0],e[1])):x?O(e,A):O(e)};if(I)g=e;else{if(!(v=d(e)))throw f(a(e)+" is not iterable");if(s(v)){for(b=0,y=u(e);y>b;b++)if((w=M(e[b]))&&l(h,w))return w;return new m(!1)}g=c(e,v)}for(D=g.next;!(E=i(D,g)).done;){try{w=M(E.value)}catch(P){p(g,"throw",P)}if("object"==typeof w&&w&&l(h,w))return w}return new m(!1)}},18744:function(e,t,r){var n=r(79611),i=r(83875),o=r(97219);e.exports=function(e,t,r){var a,s;i(e);try{if(!(a=o(e,"return"))){if("throw"===t)throw r;return r}a=n(a,e)}catch(u){s=!0,a=u}if("throw"===t)throw r;if(s)throw a;return i(a),r}},97022:function(e,t,r){"use strict";var n,i,o,a=r(79044),s=r(75277),u=r(51569),l=r(12654),c=r(50403),d=r(52280),p=r(21178),f=d("iterator"),m=!1;[].keys&&("next"in(o=[].keys())?(i=l(l(o)))!==Object.prototype&&(n=i):m=!0),null==n||a((function(){var e={};return n[f].call(e)!==e}))?n={}:p&&(n=u(n)),s(n[f])||c(n,f,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},44818:function(e){e.exports={}},47046:function(e,t,r){var n=r(35108);e.exports=function(e){return n(e.length)}},20833:function(e,t,r){var n=r(79044),i=r(75277),o=r(24792),a=r(7493),s=r(55316).CONFIGURABLE,u=r(56429),l=r(20821),c=l.enforce,d=l.get,p=Object.defineProperty,f=a&&!n((function(){return 8!==p((function(){}),"length",{value:8}).length})),m=String(String).split("String"),h=e.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!o(e,"name")||s&&e.name!==t)&&p(e,"name",{value:t,configurable:!0}),f&&r&&o(r,"arity")&&e.length!==r.arity&&p(e,"length",{value:r.arity});try{r&&o(r,"constructor")&&r.constructor?a&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var n=c(e);return o(n,"source")||(n.source=m.join("string"==typeof t?t:"")),e};Function.prototype.toString=h((function(){return i(this)&&d(this).source||u(this)}),"toString")},78300:function(e){var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},71800:function(e,t,r){var n,i,o,a,s,u,l,c,d=r(98363),p=r(98166),f=r(66012).f,m=r(84643).set,h=r(53121),g=r(55357),v=r(14402),b=r(93921),y=d.MutationObserver||d.WebKitMutationObserver,w=d.document,D=d.process,E=d.Promise,C=f(d,"queueMicrotask"),S=C&&C.value;S||(n=function(){var e,t;for(b&&(e=D.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()},h||b||v||!y||!w?!g&&E&&E.resolve?((l=E.resolve(void 0)).constructor=E,c=p(l.then,l),a=function(){c(n)}):b?a=function(){D.nextTick(n)}:(m=p(m,d),a=function(){m(n)}):(s=!0,u=w.createTextNode(""),new y(n).observe(u,{characterData:!0}),a=function(){u.data=s=!s})),e.exports=S||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},3850:function(e,t,r){var n=r(11197),i=r(79044);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},36830:function(e,t,r){var n=r(98363),i=r(75277),o=r(56429),a=n.WeakMap;e.exports=i(a)&&/native code/.test(o(a))},29269:function(e,t,r){"use strict";var n=r(97676),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),i=TypeError;e.exports=function(e){if(n(e))throw i("The method doesn't accept regular expressions");return e}},44762:function(e,t,r){var n=r(98363),i=r(79044),o=r(88697),a=r(28967),s=r(10287).trim,u=r(2569),l=o("".charAt),c=n.parseFloat,d=n.Symbol,p=d&&d.iterator,f=1/c(u+"-0")!=-1/0||p&&!i((function(){c(Object(p))}));e.exports=f?function(e){var t=s(a(e)),r=c(t);return 0===r&&"-"==l(t,0)?-0:r}:c},35399:function(e,t,r){var n=r(98363),i=r(79044),o=r(88697),a=r(28967),s=r(10287).trim,u=r(2569),l=n.parseInt,c=n.Symbol,d=c&&c.iterator,p=/^[+-]?0x/i,f=o(p.exec),m=8!==l(u+"08")||22!==l(u+"0x16")||d&&!i((function(){l(Object(d))}));e.exports=m?function(e,t){var r=s(a(e));return l(r,t>>>0||(f(p,r)?16:10))}:l},45856:function(e,t,r){"use strict";var n=r(7493),i=r(88697),o=r(79611),a=r(79044),s=r(60667),u=r(89612),l=r(81513),c=r(30744),d=r(78609),p=Object.assign,f=Object.defineProperty,m=i([].concat);e.exports=!p||a((function(){if(n&&1!==p({b:1},p(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),i="abcdefghijklmnopqrst";return e[r]=7,i.split("").forEach((function(e){t[e]=e})),7!=p({},e)[r]||s(p({},t)).join("")!=i}))?function(e,t){for(var r=c(e),i=arguments.length,a=1,p=u.f,f=l.f;i>a;)for(var h,g=d(arguments[a++]),v=p?m(s(g),p(g)):s(g),b=v.length,y=0;b>y;)h=v[y++],n&&!o(f,g,h)||(r[h]=g[h]);return r}:p},51569:function(e,t,r){var n,i=r(83875),o=r(17840),a=r(48869),s=r(47505),u=r(47055),l=r(92750),c=r(50466),d=c("IE_PROTO"),p=function(){},f=function(e){return"<script>"+e+"</"+"script>"},m=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},h=function(){try{n=new ActiveXObject("htmlfile")}catch(i){}var e,t;h="undefined"!=typeof document?document.domain&&n?m(n):((t=l("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):m(n);for(var r=a.length;r--;)delete h.prototype[a[r]];return h()};s[d]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(p.prototype=i(e),r=new p,p.prototype=null,r[d]=e):r=h(),void 0===t?r:o.f(r,t)}},17840:function(e,t,r){var n=r(7493),i=r(51010),o=r(86385),a=r(83875),s=r(29580),u=r(60667);t.f=n&&!i?Object.defineProperties:function(e,t){a(e);for(var r,n=s(t),i=u(t),l=i.length,c=0;l>c;)o.f(e,r=i[c++],n[r]);return e}},86385:function(e,t,r){var n=r(7493),i=r(67548),o=r(51010),a=r(83875),s=r(383),u=TypeError,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",p="configurable",f="writable";t.f=n?o?function(e,t,r){if(a(e),t=s(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&f in r&&!r.writable){var n=c(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:p in r?r.configurable:n.configurable,enumerable:d in r?r.enumerable:n.enumerable,writable:!1})}return l(e,t,r)}:l:function(e,t,r){if(a(e),t=s(t),a(r),i)try{return l(e,t,r)}catch(n){}if("get"in r||"set"in r)throw u("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},66012:function(e,t,r){var n=r(7493),i=r(79611),o=r(81513),a=r(69199),s=r(29580),u=r(383),l=r(24792),c=r(67548),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=s(e),t=u(t),c)try{return d(e,t)}catch(r){}if(l(e,t))return a(!i(o.f,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},12654:function(e,t,r){var n=r(24792),i=r(75277),o=r(30744),a=r(50466),s=r(25115),u=a("IE_PROTO"),l=Object,c=l.prototype;e.exports=s?l.getPrototypeOf:function(e){var t=o(e);if(n(t,u))return t[u];var r=t.constructor;return i(r)&&t instanceof r?r.prototype:t instanceof l?c:null}},32010:function(e,t,r){var n=r(88697);e.exports=n({}.isPrototypeOf)},18794:function(e,t,r){var n=r(88697),i=r(24792),o=r(29580),a=r(37190).indexOf,s=r(47505),u=n([].push);e.exports=function(e,t){var r,n=o(e),l=0,c=[];for(r in n)!i(s,r)&&i(n,r)&&u(c,r);for(;t.length>l;)i(n,r=t[l++])&&(~a(c,r)||u(c,r));return c}},60667:function(e,t,r){var n=r(18794),i=r(48869);e.exports=Object.keys||function(e){return n(e,i)}},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},22412:function(e,t,r){var n=r(88697),i=r(83875),o=r(75017);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(a){}return function(r,n){return i(r),o(n),t?e(r,n):r.__proto__=n,r}}():void 0)},17141:function(e,t,r){var n=r(79611),i=r(75277),o=r(52786),a=TypeError;e.exports=function(e,t){var r,s;if("string"===t&&i(r=e.toString)&&!o(s=n(r,e)))return s;if(i(r=e.valueOf)&&!o(s=n(r,e)))return s;if("string"!==t&&i(r=e.toString)&&!o(s=n(r,e)))return s;throw a("Can't convert object to primitive value")}},31561:function(e,t,r){var n=r(22773),i=r(88697),o=r(87994),a=r(89612),s=r(83875),u=i([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(s(e)),r=a.f;return r?u(t,r(e)):t}},74443:function(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},35182:function(e,t,r){var n=r(98363),i=r(25988),o=r(75277),a=r(86291),s=r(56429),u=r(52280),l=r(47923),c=r(21178),d=r(11197),p=i&&i.prototype,f=u("species"),m=!1,h=o(n.PromiseRejectionEvent),g=a("Promise",(function(){var e=s(i),t=e!==String(i);if(!t&&66===d)return!0;if(c&&(!p.catch||!p.finally))return!0;if(d>=51&&/native code/.test(e))return!1;var r=new i((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};return(r.constructor={})[f]=n,!(m=r.then((function(){}))instanceof n)||!t&&l&&!h}));e.exports={CONSTRUCTOR:g,REJECTION_EVENT:h,SUBCLASSING:m}},25988:function(e,t,r){var n=r(98363);e.exports=n.Promise},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}},99581:function(e,t,r){var n=r(25988),i=r(8662),o=r(35182).CONSTRUCTOR;e.exports=o||!i((function(e){n.all(e).then(void 0,(function(){}))}))},79557:function(e,t,r){var n=r(86385).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},12423:function(e){var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},e.exports=t},94088:function(e,t,r){var n=r(79611),i=r(83875),o=r(75277),a=r(79159),s=r(99749),u=TypeError;e.exports=function(e,t){var r=e.exec;if(o(r)){var l=n(r,e,t);return null!==l&&i(l),l}if("RegExp"===a(e))return n(s,e,t);throw u("RegExp#exec called on incompatible receiver")}},99749:function(e,t,r){"use strict";var n,i,o=r(79611),a=r(88697),s=r(28967),u=r(58083),l=r(97047),c=r(53580),d=r(51569),p=r(20821).get,f=r(41669),m=r(1638),h=c("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,v=g,b=a("".charAt),y=a("".indexOf),w=a("".replace),D=a("".slice),E=(i=/b*/g,o(g,n=/a/,"a"),o(g,i,"a"),0!==n.lastIndex||0!==i.lastIndex),C=l.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];(E||S||C||f||m)&&(v=function(e){var t,r,n,i,a,l,c,f=this,m=p(f),I=s(e),x=m.raw;if(x)return x.lastIndex=f.lastIndex,t=o(v,x,I),f.lastIndex=x.lastIndex,t;var O=m.groups,A=C&&f.sticky,M=o(u,f),P=f.source,B=0,N=I;if(A&&(M=w(M,"y",""),-1===y(M,"g")&&(M+="g"),N=D(I,f.lastIndex),f.lastIndex>0&&(!f.multiline||f.multiline&&"\n"!==b(I,f.lastIndex-1))&&(P="(?: "+P+")",N=" "+N,B++),r=new RegExp("^(?:"+P+")",M)),S&&(r=new RegExp("^"+P+"$(?!\\s)",M)),E&&(n=f.lastIndex),i=o(g,A?r:f,N),A?i?(i.input=D(i.input,B),i[0]=D(i[0],B),i.index=f.lastIndex,f.lastIndex+=i[0].length):f.lastIndex=0:E&&i&&(f.lastIndex=f.global?i.index+i[0].length:n),S&&i&&i.length>1&&o(h,i[0],r,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(i[a]=void 0)})),i&&O)for(i.groups=l=d(null),a=0;a<O.length;a++)l[(c=O[a])[0]]=i[c[1]];return i}),e.exports=v},58083:function(e,t,r){"use strict";var n=r(83875);e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},22511:function(e,t,r){var n=r(79611),i=r(24792),o=r(32010),a=r(58083),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||i(e,"flags")||!o(s,e)?t:n(a,e)}},97047:function(e,t,r){var n=r(79044),i=r(98363).RegExp,o=n((function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),a=o||n((function(){return!i("a","y").sticky})),s=o||n((function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:o}},41669:function(e,t,r){var n=r(79044),i=r(98363).RegExp;e.exports=n((function(){var e=i(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},1638:function(e,t,r){var n=r(79044),i=r(98363).RegExp;e.exports=n((function(){var e=i("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},96411:function(e){var t=TypeError;e.exports=function(e){if(null==e)throw t("Can't call method on "+e);return e}},10420:function(e){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},57323:function(e,t,r){"use strict";var n=r(22773),i=r(86385),o=r(52280),a=r(7493),s=o("species");e.exports=function(e){var t=n(e),r=i.f;a&&t&&!t[s]&&r(t,s,{configurable:!0,get:function(){return this}})}},60878:function(e,t,r){var n=r(86385).f,i=r(24792),o=r(52280)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!i(e,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(62359),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.23.1",mode:n?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.1/LICENSE",source:"https://github.com/zloirock/core-js"})},7270:function(e,t,r){var n=r(83875),i=r(43327),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(88697),i=r(14229),o=r(28967),a=r(96411),s=n("".charAt),u=n("".charCodeAt),l=n("".slice),c=function(e){return function(t,r){var n,c,d=o(a(t)),p=i(r),f=d.length;return p<0||p>=f?e?"":void 0:(n=u(d,p))<55296||n>56319||p+1===f||(c=u(d,p+1))<56320||c>57343?e?s(d,p):n:e?l(d,p,p+2):c-56320+(n-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},26031:function(e,t,r){"use strict";var n=r(14229),i=r(28967),o=r(96411),a=RangeError;e.exports=function(e){var t=i(o(this)),r="",s=n(e);if(s<0||s==1/0)throw a("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(t+=t))1&s&&(r+=t);return r}},68487:function(e,t,r){var n=r(55316).PROPER,i=r(79044),o=r(2569);e.exports=function(e){return i((function(){return!!o[e]()||"​…᠎"!=="​…᠎"[e]()||n&&o[e].name!==e}))}},10287:function(e,t,r){var n=r(88697),i=r(96411),o=r(28967),a=r(2569),s=n("".replace),u="["+a+"]",l=RegExp("^"+u+u+"*"),c=RegExp(u+u+"*$"),d=function(e){return function(t){var r=o(i(t));return 1&e&&(r=s(r,l,"")),2&e&&(r=s(r,c,"")),r}};e.exports={start:d(1),end:d(2),trim:d(3)}},84643:function(e,t,r){var n,i,o,a,s=r(98363),u=r(63530),l=r(98166),c=r(75277),d=r(24792),p=r(79044),f=r(47055),m=r(15629),h=r(92750),g=r(27687),v=r(53121),b=r(93921),y=s.setImmediate,w=s.clearImmediate,D=s.process,E=s.Dispatch,C=s.Function,S=s.MessageChannel,I=s.String,x=0,O={},A="onreadystatechange";try{n=s.location}catch(k){}var M=function(e){if(d(O,e)){var t=O[e];delete O[e],t()}},P=function(e){return function(){M(e)}},B=function(e){M(e.data)},N=function(e){s.postMessage(I(e),n.protocol+"//"+n.host)};y&&w||(y=function(e){g(arguments.length,1);var t=c(e)?e:C(e),r=m(arguments,1);return O[++x]=function(){u(t,void 0,r)},i(x),x},w=function(e){delete O[e]},b?i=function(e){D.nextTick(P(e))}:E&&E.now?i=function(e){E.now(P(e))}:S&&!v?(a=(o=new S).port2,o.port1.onmessage=B,i=l(a.postMessage,a)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&n&&"file:"!==n.protocol&&!p(N)?(i=N,s.addEventListener("message",B,!1)):i=A in h("script")?function(e){f.appendChild(h("script")).onreadystatechange=function(){f.removeChild(this),M(e)}}:function(e){setTimeout(P(e),0)}),e.exports={set:y,clear:w}},41655:function(e,t,r){var n=r(88697);e.exports=n(1..valueOf)},32565:function(e,t,r){var n=r(14229),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))}},14229:function(e,t,r){var n=r(78300);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},35108:function(e,t,r){var n=r(14229),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},30744:function(e,t,r){var n=r(96411),i=Object;e.exports=function(e){return i(n(e))}},21893:function(e,t,r){var n=r(79611),i=r(52786),o=r(66681),a=r(97219),s=r(17141),u=r(52280),l=TypeError,c=u("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var r,u=a(e,c);if(u){if(void 0===t&&(t="default"),r=n(u,e,t),!i(r)||o(r))return r;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},383:function(e,t,r){var n=r(21893),i=r(66681);e.exports=function(e){var t=n(e,"string");return i(t)?t:t+""}},57301:function(e,t,r){var n={};n[r(52280)("toStringTag")]="z",e.exports="[object z]"===String(n)},28967:function(e,t,r){var n=r(36994),i=String;e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return i(e)}},28768:function(e){var t=String;e.exports=function(e){try{return t(e)}catch(r){return"Object"}}},34524:function(e,t,r){var n=r(88697),i=0,o=Math.random(),a=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},189:function(e,t,r){var n=r(3850);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},51010:function(e,t,r){var n=r(7493),i=r(79044);e.exports=n&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},27687:function(e){var t=TypeError;e.exports=function(e,r){if(e<r)throw t("Not enough arguments");return e}},52280:function(e,t,r){var n=r(98363),i=r(53580),o=r(24792),a=r(34524),s=r(3850),u=r(189),l=i("wks"),c=n.Symbol,d=c&&c.for,p=u?c:c&&c.withoutSetter||a;e.exports=function(e){if(!o(l,e)||!s&&"string"!=typeof l[e]){var t="Symbol."+e;s&&o(c,e)?l[e]=c[e]:l[e]=u&&d?d(t):p(t)}return l[e]}},2569:function(e){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},59789:function(e,t,r){"use strict";var n=r(19882),i=r(92613),o=r(30744),a=r(47046),s=r(14229),u=r(80150);n({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=o(this),r=a(t),n=u(t,0);return n.length=i(n,t,t,r,0,void 0===e?1:s(e)),n}})},18183:function(e,t,r){"use strict";var n=r(19882),i=r(37190).includes,o=r(79044),a=r(6677);n({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},54883:function(e,t,r){"use strict";var n=r(29580),i=r(6677),o=r(44818),a=r(20821),s=r(86385).f,u=r(61495),l=r(21178),c=r(7493),d="Array Iterator",p=a.set,f=a.getterFor(d);e.exports=u(Array,"Array",(function(e,t){p(this,{type:d,target:n(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values");var m=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!l&&c&&"values"!==m.name)try{s(m,"name",{value:"values"})}catch(h){}},193:function(e,t,r){"use strict";var n=r(19882),i=r(86596).left,o=r(54324),a=r(11197),s=r(93921);n({target:"Array",proto:!0,forced:!o("reduce")||!s&&a>79&&a<83},{reduce:function(e){var t=arguments.length;return i(this,e,t,t>1?arguments[1]:void 0)}})},68502:function(e,t,r){r(6677)("flat")},12798:function(e,t,r){"use strict";var n=r(19882),i=r(88697),o=r(14229),a=r(41655),s=r(26031),u=r(79044),l=RangeError,c=String,d=Math.floor,p=i(s),f=i("".slice),m=i(1..toFixed),h=function(e,t,r){return 0===t?r:t%2==1?h(e,t-1,r*e):h(e*e,t/2,r)},g=function(e,t,r){for(var n=-1,i=r;++n<6;)i+=t*e[n],e[n]=i%1e7,i=d(i/1e7)},v=function(e,t){for(var r=6,n=0;--r>=0;)n+=e[r],e[r]=d(n/t),n=n%t*1e7},b=function(e){for(var t=6,r="";--t>=0;)if(""!==r||0===t||0!==e[t]){var n=c(e[t]);r=""===r?n:r+p("0",7-n.length)+n}return r};n({target:"Number",proto:!0,forced:u((function(){return"0.000"!==m(8e-5,3)||"1"!==m(.9,0)||"1.25"!==m(1.255,2)||"1000000000000000128"!==m(0xde0b6b3a7640080,0)}))||!u((function(){m({})}))},{toFixed:function(e){var t,r,n,i,s=a(this),u=o(e),d=[0,0,0,0,0,0],m="",y="0";if(u<0||u>20)throw l("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return c(s);if(s<0&&(m="-",s=-s),s>1e-21)if(r=(t=function(e){for(var t=0,r=e;r>=4096;)t+=12,r/=4096;for(;r>=2;)t+=1,r/=2;return t}(s*h(2,69,1))-69)<0?s*h(2,-t,1):s/h(2,t,1),r*=4503599627370496,(t=52-t)>0){for(g(d,0,r),n=u;n>=7;)g(d,1e7,0),n-=7;for(g(d,h(10,n,1),0),n=t-1;n>=23;)v(d,1<<23),n-=23;v(d,1<<n),g(d,1,1),v(d,2),y=b(d)}else g(d,0,r),g(d,1<<-t,0),y=b(d)+p("0",u);return y=u>0?m+((i=y.length)<=u?"0."+p("0",u-i)+y:f(y,0,i-u)+"."+f(y,i-u)):m+y}})},33130:function(e,t,r){var n=r(19882),i=r(45856);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},11592:function(e,t,r){var n=r(19882),i=r(44762);n({global:!0,forced:parseFloat!=i},{parseFloat:i})},38472:function(e,t,r){var n=r(19882),i=r(35399);n({global:!0,forced:parseInt!=i},{parseInt:i})},1321:function(e,t,r){"use strict";var n=r(19882),i=r(79611),o=r(97676),a=r(29269),s=r(74443),u=r(5166);n({target:"Promise",stat:!0,forced:r(99581)},{all:function(e){var t=this,r=a.f(t),n=r.resolve,l=r.reject,c=s((function(){var r=o(t.resolve),a=[],s=0,c=1;u(e,(function(e){var o=s++,u=!1;c++,i(r,t,e).then((function(e){u||(u=!0,a[o]=e,--c||n(a))}),l)})),--c||n(a)}));return c.error&&l(c.value),r.promise}})},10865:function(e,t,r){"use strict";var n=r(19882),i=r(21178),o=r(35182).CONSTRUCTOR,a=r(25988),s=r(22773),u=r(75277),l=r(50403),c=a&&a.prototype;if(n({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&u(a)){var d=s("Promise").prototype.catch;c.catch!==d&&l(c,"catch",d,{unsafe:!0})}},95999:function(e,t,r){"use strict";var n,i,o,a=r(19882),s=r(21178),u=r(93921),l=r(98363),c=r(79611),d=r(50403),p=r(22412),f=r(60878),m=r(57323),h=r(97676),g=r(75277),v=r(52786),b=r(9519),y=r(7270),w=r(84643).set,D=r(71800),E=r(46271),C=r(74443),S=r(12423),I=r(20821),x=r(25988),O=r(35182),A=r(29269),M="Promise",P=O.CONSTRUCTOR,B=O.REJECTION_EVENT,N=O.SUBCLASSING,k=I.getterFor(M),T=I.set,j=x&&x.prototype,L=x,F=j,R=l.TypeError,_=l.document,Z=l.process,H=A.f,W=H,U=!!(_&&_.createEvent&&l.dispatchEvent),G="unhandledrejection",z=function(e){var t;return!(!v(e)||!g(t=e.then))&&t},q=function(e,t){var r,n,i,o=t.value,a=1==t.state,s=a?e.ok:e.fail,u=e.resolve,l=e.reject,d=e.domain;try{s?(a||(2===t.rejection&&X(t),t.rejection=1),!0===s?r=o:(d&&d.enter(),r=s(o),d&&(d.exit(),i=!0)),r===e.promise?l(R("Promise-chain cycle")):(n=z(r))?c(n,r,u,l):u(r)):l(o)}catch(p){d&&!i&&d.exit(),l(p)}},V=function(e,t){e.notified||(e.notified=!0,D((function(){for(var r,n=e.reactions;r=n.get();)q(r,e);e.notified=!1,t&&!e.rejection&&Y(e)})))},J=function(e,t,r){var n,i;U?((n=_.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),l.dispatchEvent(n)):n={promise:t,reason:r},!B&&(i=l["on"+e])?i(n):e===G&&E("Unhandled promise rejection",r)},Y=function(e){c(w,l,(function(){var t,r=e.facade,n=e.value;if(Q(e)&&(t=C((function(){u?Z.emit("unhandledRejection",n,r):J(G,r,n)})),e.rejection=u||Q(e)?2:1,t.error))throw t.value}))},Q=function(e){return 1!==e.rejection&&!e.parent},X=function(e){c(w,l,(function(){var t=e.facade;u?Z.emit("rejectionHandled",t):J("rejectionhandled",t,e.value)}))},K=function(e,t,r){return function(n){e(t,n,r)}},$=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,V(e,!0))},ee=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw R("Promise can't be resolved itself");var n=z(t);n?D((function(){var r={done:!1};try{c(n,t,K(ee,r,e),K($,r,e))}catch(i){$(r,i,e)}})):(e.value=t,e.state=1,V(e,!1))}catch(i){$({done:!1},i,e)}}};if(P&&(F=(L=function(e){b(this,F),h(e),c(n,this);var t=k(this);try{e(K(ee,t),K($,t))}catch(r){$(t,r)}}).prototype,(n=function(e){T(this,{type:M,done:!1,notified:!1,parent:!1,reactions:new S,rejection:!1,state:0,value:void 0})}).prototype=d(F,"then",(function(e,t){var r=k(this),n=H(y(this,L));return r.parent=!0,n.ok=!g(e)||e,n.fail=g(t)&&t,n.domain=u?Z.domain:void 0,0==r.state?r.reactions.add(n):D((function(){q(n,r)})),n.promise})),i=function(){var e=new n,t=k(e);this.promise=e,this.resolve=K(ee,t),this.reject=K($,t)},A.f=H=function(e){return e===L||undefined===e?new i(e):W(e)},!s&&g(x)&&j!==Object.prototype)){o=j.then,N||d(j,"then",(function(e,t){var r=this;return new L((function(e,t){c(o,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete j.constructor}catch(te){}p&&p(j,F)}a({global:!0,constructor:!0,wrap:!0,forced:P},{Promise:L}),f(L,M,!1,!0),m(M)},35054:function(e,t,r){r(95999),r(1321),r(10865),r(77688),r(36055),r(9240)},77688:function(e,t,r){"use strict";var n=r(19882),i=r(79611),o=r(97676),a=r(29269),s=r(74443),u=r(5166);n({target:"Promise",stat:!0,forced:r(99581)},{race:function(e){var t=this,r=a.f(t),n=r.reject,l=s((function(){var a=o(t.resolve);u(e,(function(e){i(a,t,e).then(r.resolve,n)}))}));return l.error&&n(l.value),r.promise}})},36055:function(e,t,r){"use strict";var n=r(19882),i=r(79611),o=r(29269);n({target:"Promise",stat:!0,forced:r(35182).CONSTRUCTOR},{reject:function(e){var t=o.f(this);return i(t.reject,void 0,e),t.promise}})},9240:function(e,t,r){"use strict";var n=r(19882),i=r(22773),o=r(21178),a=r(25988),s=r(35182).CONSTRUCTOR,u=r(11621),l=i("Promise"),c=o&&!s;n({target:"Promise",stat:!0,forced:o||s},{resolve:function(e){return u(c&&this===l?a:this,e)}})},72975:function(e,t,r){var n=r(7493),i=r(98363),o=r(88697),a=r(86291),s=r(59250),u=r(45899),l=r(87994).f,c=r(32010),d=r(42622),p=r(28967),f=r(22511),m=r(97047),h=r(79557),g=r(50403),v=r(79044),b=r(24792),y=r(20821).enforce,w=r(57323),D=r(52280),E=r(41669),C=r(1638),S=D("match"),I=i.RegExp,x=I.prototype,O=i.SyntaxError,A=o(x.exec),M=o("".charAt),P=o("".replace),B=o("".indexOf),N=o("".slice),k=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,T=/a/g,j=/a/g,L=new I(T)!==T,F=m.MISSED_STICKY,R=m.UNSUPPORTED_Y,_=n&&(!L||F||E||C||v((function(){return j[S]=!1,I(T)!=T||I(j)==j||"/a/i"!=I(T,"i")})));if(a("RegExp",_)){for(var Z=function(e,t){var r,n,i,o,a,l,m=c(x,this),h=d(e),g=void 0===t,v=[],w=e;if(!m&&h&&g&&e.constructor===Z)return e;if((h||c(x,e))&&(e=e.source,g&&(t=f(w))),e=void 0===e?"":p(e),t=void 0===t?"":p(t),w=e,E&&"dotAll"in T&&(n=!!t&&B(t,"s")>-1)&&(t=P(t,/s/g,"")),r=t,F&&"sticky"in T&&(i=!!t&&B(t,"y")>-1)&&R&&(t=P(t,/y/g,"")),C&&(o=function(e){for(var t,r=e.length,n=0,i="",o=[],a={},s=!1,u=!1,l=0,c="";n<=r;n++){if("\\"===(t=M(e,n)))t+=M(e,++n);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:A(k,N(e,n+1))&&(n+=2,u=!0),i+=t,l++;continue;case">"===t&&u:if(""===c||b(a,c))throw new O("Invalid capture group name");a[c]=!0,o[o.length]=[c,l],u=!1,c="";continue}u?c+=t:i+=t}return[i,o]}(e),e=o[0],v=o[1]),a=s(I(e,t),m?this:x,Z),(n||i||v.length)&&(l=y(a),n&&(l.dotAll=!0,l.raw=Z(function(e){for(var t,r=e.length,n=0,i="",o=!1;n<=r;n++)"\\"!==(t=M(e,n))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+M(e,++n);return i}(e),r)),i&&(l.sticky=!0),v.length&&(l.groups=v)),e!==w)try{u(a,"source",""===w?"(?:)":w)}catch(D){}return a},H=l(I),W=0;H.length>W;)h(Z,I,H[W++]);x.constructor=Z,Z.prototype=x,g(i,"RegExp",Z,{constructor:!0})}w("RegExp")},39275:function(e,t,r){"use strict";var n=r(19882),i=r(99749);n({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},33290:function(e,t,r){"use strict";var n=r(55316).PROPER,i=r(50403),o=r(83875),a=r(28967),s=r(79044),u=r(22511),l="toString",c=RegExp.prototype.toString,d=s((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),p=n&&c.name!=l;(d||p)&&i(RegExp.prototype,l,(function(){var e=o(this);return"/"+a(e.source)+"/"+a(u(e))}),{unsafe:!0})},19985:function(e,t,r){"use strict";var n=r(19882),i=r(88697),o=r(21049),a=r(96411),s=r(28967),u=r(15454),l=i("".indexOf);n({target:"String",proto:!0,forced:!u("includes")},{includes:function(e){return!!~l(s(a(this)),s(o(e)),arguments.length>1?arguments[1]:void 0)}})},49379:function(e,t,r){"use strict";var n=r(19882),i=r(79611),o=r(88697),a=r(96411),s=r(75277),u=r(42622),l=r(28967),c=r(97219),d=r(22511),p=r(81373),f=r(52280),m=r(21178),h=f("replace"),g=TypeError,v=o("".indexOf),b=o("".replace),y=o("".slice),w=Math.max,D=function(e,t,r){return r>e.length?-1:""===t?r:v(e,t,r)};n({target:"String",proto:!0},{replaceAll:function(e,t){var r,n,o,f,E,C,S,I,x,O=a(this),A=0,M=0,P="";if(null!=e){if((r=u(e))&&(n=l(a(d(e))),!~v(n,"g")))throw g("`.replaceAll` does not allow non-global regexes");if(o=c(e,h))return i(o,e,O,t);if(m&&r)return b(l(O),e,t)}for(f=l(O),E=l(e),(C=s(t))||(t=l(t)),S=E.length,I=w(1,S),A=D(f,E,0);-1!==A;)x=C?l(t(E,A,f)):p(E,f,A,[],void 0,t),P+=y(f,M,A)+x,M=A+S,A=D(f,E,A+I);return M<f.length&&(P+=y(f,M)),P}})},22321:function(e,t,r){"use strict";var n=r(63530),i=r(79611),o=r(88697),a=r(81492),s=r(79044),u=r(83875),l=r(75277),c=r(14229),d=r(35108),p=r(28967),f=r(96411),m=r(13350),h=r(97219),g=r(81373),v=r(94088),b=r(52280)("replace"),y=Math.max,w=Math.min,D=o([].concat),E=o([].push),C=o("".indexOf),S=o("".slice),I="$0"==="a".replace(/./,"$0"),x=!!/./[b]&&""===/./[b]("a","$0");a("replace",(function(e,t,r){var o=x?"$":"$0";return[function(e,r){var n=f(this),o=null==e?void 0:h(e,b);return o?i(o,e,n,r):i(t,p(n),e,r)},function(e,i){var a=u(this),s=p(e);if("string"==typeof i&&-1===C(i,o)&&-1===C(i,"$<")){var f=r(t,a,s,i);if(f.done)return f.value}var h=l(i);h||(i=p(i));var b=a.global;if(b){var I=a.unicode;a.lastIndex=0}for(var x=[];;){var O=v(a,s);if(null===O)break;if(E(x,O),!b)break;""===p(O[0])&&(a.lastIndex=m(s,d(a.lastIndex),I))}for(var A,M="",P=0,B=0;B<x.length;B++){for(var N=p((O=x[B])[0]),k=y(w(c(O.index),s.length),0),T=[],j=1;j<O.length;j++)E(T,void 0===(A=O[j])?A:String(A));var L=O.groups;if(h){var F=D([N],T,k,s);void 0!==L&&E(F,L);var R=p(n(i,void 0,F))}else R=g(N,s,k,T,L,i);k>=P&&(M+=S(s,P,k)+R,P=k+N.length)}return M+S(s,P)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!I||x)},23528:function(e,t,r){"use strict";var n=r(79611),i=r(81492),o=r(83875),a=r(96411),s=r(10420),u=r(28967),l=r(97219),c=r(94088);i("search",(function(e,t,r){return[function(t){var r=a(this),i=null==t?void 0:l(t,e);return i?n(i,t,r):new RegExp(t)[e](u(r))},function(e){var n=o(this),i=u(e),a=r(t,n,i);if(a.done)return a.value;var l=n.lastIndex;s(l,0)||(n.lastIndex=0);var d=c(n,i);return s(n.lastIndex,l)||(n.lastIndex=l),null===d?-1:d.index}]}))},67838:function(e,t,r){"use strict";var n=r(63530),i=r(79611),o=r(88697),a=r(81492),s=r(42622),u=r(83875),l=r(96411),c=r(7270),d=r(13350),p=r(35108),f=r(28967),m=r(97219),h=r(58990),g=r(94088),v=r(99749),b=r(97047),y=r(79044),w=b.UNSUPPORTED_Y,D=4294967295,E=Math.min,C=[].push,S=o(/./.exec),I=o(C),x=o("".slice),O=!y((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]}));a("split",(function(e,t,r){var o;return o="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,r){var o=f(l(this)),a=void 0===r?D:r>>>0;if(0===a)return[];if(void 0===e)return[o];if(!s(e))return i(t,o,e,a);for(var u,c,d,p=[],m=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),g=0,b=new RegExp(e.source,m+"g");(u=i(v,b,o))&&!((c=b.lastIndex)>g&&(I(p,x(o,g,u.index)),u.length>1&&u.index<o.length&&n(C,p,h(u,1)),d=u[0].length,g=c,p.length>=a));)b.lastIndex===u.index&&b.lastIndex++;return g===o.length?!d&&S(b,"")||I(p,""):I(p,x(o,g)),p.length>a?h(p,0,a):p}:"0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:i(t,this,e,r)}:t,[function(t,r){var n=l(this),a=null==t?void 0:m(t,e);return a?i(a,t,n,r):i(o,f(n),t,r)},function(e,n){var i=u(this),a=f(e),s=r(o,i,a,n,o!==t);if(s.done)return s.value;var l=c(i,RegExp),m=i.unicode,h=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(w?"g":"y"),v=new l(w?"^(?:"+i.source+")":i,h),b=void 0===n?D:n>>>0;if(0===b)return[];if(0===a.length)return null===g(v,a)?[a]:[];for(var y=0,C=0,S=[];C<a.length;){v.lastIndex=w?0:C;var O,A=g(v,w?x(a,C):a);if(null===A||(O=E(p(v.lastIndex+(w?C:0)),a.length))===y)C=d(a,C,m);else{if(I(S,x(a,y,C)),S.length===b)return S;for(var M=1;M<=A.length-1;M++)if(I(S,A[M]),S.length===b)return S;C=y=O}}return I(S,x(a,y)),S}]}),!O,w)},29897:function(e,t,r){"use strict";var n=r(19882),i=r(10287).trim;n({target:"String",proto:!0,forced:r(68487)("trim")},{trim:function(){return i(this)}})},86632:function(e,t,r){"use strict";var n=r(19882),i=r(7493),o=r(98363),a=r(88697),s=r(24792),u=r(75277),l=r(32010),c=r(28967),d=r(86385).f,p=r(73870),f=o.Symbol,m=f&&f.prototype;if(i&&u(f)&&(!("description"in m)||void 0!==f().description)){var h={},g=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),t=l(m,this)?new f(e):void 0===e?f():f(e);return""===e&&(h[t]=!0),t};p(g,f),g.prototype=m,m.constructor=g;var v="Symbol(test)"==String(f("test")),b=a(m.toString),y=a(m.valueOf),w=/^Symbol\((.*)\)[^)]+$/,D=a("".replace),E=a("".slice);d(m,"description",{configurable:!0,get:function(){var e=y(this),t=b(e);if(s(h,e))return"";var r=v?E(t,7,-1):D(t,w,"$1");return""===r?void 0:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:g})}},75405:function(e,t,r){r(49379)},68995:function(e,t,r){var n=r(98363),i=r(12848),o=r(79189),a=r(54883),s=r(45899),u=r(52280),l=u("iterator"),c=u("toStringTag"),d=a.values,p=function(e,t){if(e){if(e[l]!==d)try{s(e,l,d)}catch(n){e[l]=d}if(e[c]||s(e,c,t),i[t])for(var r in a)if(e[r]!==a[r])try{s(e,r,a[r])}catch(n){e[r]=a[r]}}};for(var f in i)p(n[f]&&n[f].prototype,f);p(o,"DOMTokenList")},87191:function(e,t,r){"use strict";var n=r(19882),i=r(79611);n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})},63719:function(e,t,r){var n=r(22020);e.exports=n},97759:function(e,t,r){"use strict";r.d(t,{Dz:function(){return i},Oq:function(){return p},cv:function(){return c},dO:function(){return u},iz:function(){return f},jn:function(){return o},oc:function(){return d}});var n=r(53499),i=function(e){var t=e.top,r=e.right,n=e.bottom,i=e.left;return{top:t,right:r,bottom:n,left:i,width:r-i,height:n-t,x:i,y:t,center:{x:(r+i)/2,y:(n+t)/2}}},o=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},a=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},s={top:0,right:0,bottom:0,left:0},u=function(e){var t=e.borderBox,r=e.margin,n=void 0===r?s:r,u=e.border,l=void 0===u?s:u,c=e.padding,d=void 0===c?s:c,p=i(o(t,n)),f=i(a(t,l)),m=i(a(f,d));return{marginBox:p,borderBox:i(t),paddingBox:f,contentBox:m,margin:n,border:l,padding:d}},l=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var r=Number(t);return isNaN(r)&&(0,n.Z)(!1),r},c=function(e,t){var r,n,i=e.borderBox,o=e.border,a=e.margin,s=e.padding,l=(n=t,{top:(r=i).top+n.y,left:r.left+n.x,bottom:r.bottom+n.y,right:r.right+n.x});return u({borderBox:l,border:o,margin:a,padding:s})},d=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),c(e,t)},p=function(e,t){var r={top:l(t.marginTop),right:l(t.marginRight),bottom:l(t.marginBottom),left:l(t.marginLeft)},n={top:l(t.paddingTop),right:l(t.paddingRight),bottom:l(t.paddingBottom),left:l(t.paddingLeft)},i={top:l(t.borderTopWidth),right:l(t.borderRightWidth),bottom:l(t.borderBottomWidth),left:l(t.borderLeftWidth)};return u({borderBox:e,margin:r,padding:n,border:i})},f=function(e){var t=e.getBoundingClientRect(),r=window.getComputedStyle(e);return p(t,r)}},19141:function(e){"use strict";e.exports=function(e){if(e=String(e||""),n.test(e))return"rtl";if(i.test(e))return"ltr";return"neutral"};var t="֑-߿יִ-﷽ﹰ-ﻼ",r="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-",n=new RegExp("^[^"+r+"]*["+t+"]"),i=new RegExp("^[^"+t+"]*["+r+"]")},43613:function(e){"use strict";
9
  /*!
10
  * escape-html
11
  * Copyright(c) 2012-2013 TJ Holowaychuk
@@ -70,4 +70,4 @@ var r=/input|select|textarea|button|object|iframe/;function n(e){var t=e.offsetW
70
  *
71
  * This source code is licensed under the MIT license found in the
72
  * LICENSE file in the root directory of this source tree.
73
- */if("function"==typeof Symbol&&Symbol.for){var y=Symbol.for;r=y("react.element"),n=y("react.portal"),i=y("react.fragment"),o=y("react.strict_mode"),a=y("react.profiler"),s=y("react.provider"),u=y("react.context"),l=y("react.forward_ref"),c=y("react.suspense"),d=y("react.suspense_list"),p=y("react.memo"),f=y("react.lazy"),m=y("react.block"),h=y("react.server.block"),g=y("react.fundamental"),v=y("react.debug_trace_mode"),b=y("react.legacy_hidden")}function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case a:case o:case c:case d:return e;default:switch(e=e&&e.$$typeof){case u:case l:case f:case p:case s:return e;default:return t}}case n:return t}}}t.isContextConsumer=function(e){return w(e)===u}},8206:function(e,t,r){"use strict";e.exports=r(7913)},77887: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=a(r(89526)),o=a(r(86919));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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 s(this,t),u(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(){return i.default.createElement("input",this.props,this.props.children)}}]),t}(i.default.Component);t.default=(0,o.default)(l)},77197:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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},i=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}}(),o=u(r(89526)),a=u(r(55337)),s=u(r(2652));function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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 d=function(e){function t(){return l(this,t),c(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),i(t,[{key:"render",value:function(){var e=this,t=n({},this.props);return t.parentBindings&&delete t.parentBindings,o.default.createElement("div",n({},t,{ref:function(t){e.props.parentBindings.domNode=t}}),this.props.children)}}]),t}(o.default.Component);d.propTypes={name:s.default.string,id:s.default.string},t.default=(0,a.default)(d)},76234:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(89526)),i=o(r(86919));function o(e){return e&&e.__esModule?e:{default:e}}function a(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 u=function(e){function t(){var e,r,i;a(this,t);for(var o=arguments.length,u=Array(o),l=0;l<o;l++)u[l]=arguments[l];return r=i=s(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),i.render=function(){return n.default.createElement("a",i.props,i.props.children)},s(i,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),t}(n.default.Component);t.default=(0,i.default)(u)},68470:function(e,t,r){"use strict";t.NY=t.OK=t.W_=t.rU=void 0;var n=f(r(76234)),i=f(r(77887)),o=f(r(77197)),a=f(r(73356)),s=f(r(84923)),u=f(r(89342)),l=f(r(71304)),c=f(r(86919)),d=f(r(55337)),p=f(r(7659));function f(e){return e&&e.__esModule?e:{default:e}}t.rU=n.default,i.default,t.W_=o.default,t.OK=a.default,s.default,u.default,t.NY=l.default,c.default,d.default,p.default,n.default,i.default,o.default,a.default,s.default,u.default,l.default,c.default,d.default,p.default},7659:function(e,t,r){"use strict";var n=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},i=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}}();function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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}function s(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)}var u=r(89526),l=(r(73961),r(40515),r(89342)),c=r(73356),d=r(2652),p=r(27656),f={to:d.string.isRequired,containerId:d.string,container:d.object,activeClass:d.string,spy:d.bool,smooth:d.oneOfType([d.bool,d.string]),offset:d.number,delay:d.number,isDynamic:d.bool,onClick:d.func,duration:d.oneOfType([d.number,d.func]),absolute:d.bool,onSetActive:d.func,onSetInactive:d.func,ignoreCancelEvents:d.bool,hashSpy:d.bool,spyThrottle:d.number},m={Scroll:function(e,t){console.warn("Helpers.Scroll is deprecated since v1.7.0");var r=t||c,d=function(t){function c(e){o(this,c);var t=a(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,e));return m.call(t),t.state={active:!1},t}return s(c,t),i(c,[{key:"getScrollSpyContainer",value:function(){var e=this.props.containerId,t=this.props.container;return e?document.getElementById(e):t&&t.nodeType?t:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var e=this.getScrollSpyContainer();l.isMounted(e)||l.mount(e,this.props.spyThrottle),this.props.hashSpy&&(p.isMounted()||p.mount(r),p.mapContainer(this.props.to,e)),this.props.spy&&l.addStateHandler(this.stateHandler),l.addSpyHandler(this.spyHandler,e),this.setState({container:e})}}},{key:"componentWillUnmount",value:function(){l.unmount(this.stateHandler,this.spyHandler)}},{key:"render",value:function(){var t="";t=this.state&&this.state.active?((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():this.props.className;var r=n({},this.props);for(var i in f)r.hasOwnProperty(i)&&delete r[i];return r.className=t,r.onClick=this.handleClick,u.createElement(e,r)}}]),c}(u.Component),m=function(){var e=this;this.scrollTo=function(t,i){r.scrollTo(t,n({},e.state,i))},this.handleClick=function(t){e.props.onClick&&e.props.onClick(t),t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),e.scrollTo(e.props.to,e.props)},this.stateHandler=function(){r.getActiveLink()!==e.props.to&&(null!==e.state&&e.state.active&&e.props.onSetInactive&&e.props.onSetInactive(),e.setState({active:!1}))},this.spyHandler=function(t){var n=e.getScrollSpyContainer();if(!p.isMounted()||p.isInitialized()){var i=e.props.to,o=null,a=0,s=0,u=0;if(n.getBoundingClientRect)u=n.getBoundingClientRect().top;if(!o||e.props.isDynamic){if(!(o=r.get(i)))return;var c=o.getBoundingClientRect();s=(a=c.top-u+t)+c.height}var d=t-e.props.offset,f=d>=Math.floor(a)&&d<Math.floor(s),m=d<Math.floor(a)||d>=Math.floor(s),h=r.getActiveLink();return m?(i===h&&r.setActiveLink(void 0),e.props.hashSpy&&p.getHash()===i&&p.changeHash(),e.props.spy&&e.state.active&&(e.setState({active:!1}),e.props.onSetInactive&&e.props.onSetInactive()),l.updateStates()):f&&h!==i?(r.setActiveLink(i),e.props.hashSpy&&p.changeHash(i),e.props.spy&&(e.setState({active:!0}),e.props.onSetActive&&e.props.onSetActive(i)),l.updateStates()):void 0}}};return d.propTypes=f,d.defaultProps={offset:0},d},Element:function(e){console.warn("Helpers.Element is deprecated since v1.7.0");var t=function(t){function r(e){o(this,r);var t=a(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));return t.childBindings={domNode:null},t}return s(r,t),i(r,[{key:"componentDidMount",value:function(){if("undefined"==typeof window)return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(e){this.props.name!==e.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if("undefined"==typeof window)return!1;c.unregister(this.props.name)}},{key:"registerElems",value:function(e){c.register(e,this.childBindings.domNode)}},{key:"render",value:function(){return u.createElement(e,n({},this.props,{parentBindings:this.childBindings}))}}]),r}(u.Component);return t.propTypes={name:d.string,id:d.string},t}};e.exports=m},71304:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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},i=(s(r(40515)),s(r(53315))),o=s(r(3465)),a=s(r(84923));function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return i.default[e.smooth]||i.default.defaultEasing},l=function(){if("undefined"!=typeof window)return window.requestAnimationFrame||window.webkitRequestAnimationFrame}()||function(e,t,r){window.setTimeout(e,r||1e3/60,(new Date).getTime())},c=function(e){var t=e.data.containerElement;if(t&&t!==document&&t!==document.body)return t.scrollLeft;var r=void 0!==window.pageXOffset,n="CSS1Compat"===(document.compatMode||"");return r?window.pageXOffset:n?document.documentElement.scrollLeft:document.body.scrollLeft},d=function(e){var t=e.data.containerElement;if(t&&t!==document&&t!==document.body)return t.scrollTop;var r=void 0!==window.pageXOffset,n="CSS1Compat"===(document.compatMode||"");return r?window.pageYOffset:n?document.documentElement.scrollTop:document.body.scrollTop},p=function e(t,r,n){var i=r.data;if(r.ignoreCancelEvents||!i.cancel)if(i.delta=Math.round(i.targetPosition-i.startPosition),null===i.start&&(i.start=n),i.progress=n-i.start,i.percent=i.progress>=i.duration?1:t(i.progress/i.duration),i.currentPosition=i.startPosition+Math.ceil(i.delta*i.percent),i.containerElement&&i.containerElement!==document&&i.containerElement!==document.body?r.horizontal?i.containerElement.scrollLeft=i.currentPosition:i.containerElement.scrollTop=i.currentPosition:r.horizontal?window.scrollTo(i.currentPosition,0):window.scrollTo(0,i.currentPosition),i.percent<1){var o=e.bind(null,t,r);l.call(window,o)}else a.default.registered.end&&a.default.registered.end(i.to,i.target,i.currentPosition);else a.default.registered.end&&a.default.registered.end(i.to,i.target,i.currentPositionY)},f=function(e){e.data.containerElement=e?e.containerId?document.getElementById(e.containerId):e.container&&e.container.nodeType?e.container:document:null},m=function(e,t,r,n){if(t.data=t.data||{currentPosition:0,startPosition:0,targetPosition:0,progress:0,duration:0,cancel:!1,target:null,containerElement:null,to:null,start:null,delta:null,percent:null,delayTimeout:null},window.clearTimeout(t.data.delayTimeout),o.default.subscribe((function(){t.data.cancel=!0})),f(t),t.data.start=null,t.data.cancel=!1,t.data.startPosition=t.horizontal?c(t):d(t),t.data.targetPosition=t.absolute?e:e+t.data.startPosition,t.data.startPosition!==t.data.targetPosition){var i;t.data.delta=Math.round(t.data.targetPosition-t.data.startPosition),t.data.duration=("function"==typeof(i=t.duration)?i:function(){return i})(t.data.delta),t.data.duration=isNaN(parseFloat(t.data.duration))?1e3:parseFloat(t.data.duration),t.data.to=r,t.data.target=n;var s=u(t),m=p.bind(null,s,t);t&&t.delay>0?t.data.delayTimeout=window.setTimeout((function(){a.default.registered.begin&&a.default.registered.begin(t.data.to,t.data.target),l.call(window,m)}),t.delay):(a.default.registered.begin&&a.default.registered.begin(t.data.to,t.data.target),l.call(window,m))}else a.default.registered.end&&a.default.registered.end(t.data.to,t.data.target,t.data.currentPosition)},h=function(e){return(e=n({},e)).data=e.data||{currentPosition:0,startPosition:0,targetPosition:0,progress:0,duration:0,cancel:!1,target:null,containerElement:null,to:null,start:null,delta:null,percent:null,delayTimeout:null},e.absolute=!0,e};t.default={animateTopScroll:m,getAnimationType:u,scrollToTop:function(e){m(0,h(e))},scrollToBottom:function(e){e=h(e),f(e),m(e.horizontal?function(e){var t=e.data.containerElement;if(t&&t!==document&&t!==document.body)return t.scrollWidth-t.offsetWidth;var r=document.body,n=document.documentElement;return Math.max(r.scrollWidth,r.offsetWidth,n.clientWidth,n.scrollWidth,n.offsetWidth)}(e):function(e){var t=e.data.containerElement;if(t&&t!==document&&t!==document.body)return t.scrollHeight-t.offsetHeight;var r=document.body,n=document.documentElement;return Math.max(r.scrollHeight,r.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}(e),e)},scrollTo:function(e,t){m(e,h(t))},scrollMore:function(e,t){t=h(t),f(t);var r=t.horizontal?c(t):d(t);m(e+r,t)}}},3465:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(55942),i=["mousedown","mousewheel","touchmove","keydown"];t.default={subscribe:function(e){return"undefined"!=typeof document&&i.forEach((function(t){return(0,n.addPassiveEventListener)(document,t,e)}))}}},55942:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.addPassiveEventListener=function(e,t,r){var n=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(r){}return e}();e.addEventListener(t,r,!!n&&{passive:!0})},t.removePassiveEventListener=function(e,t,r){e.removeEventListener(t,r)}},55337:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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},i=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}}(),o=u(r(89526)),a=(u(r(73961)),u(r(73356))),s=u(r(2652));function u(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=function(t){function r(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var t=function(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}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));return t.childBindings={domNode:null},t}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)}(r,t),i(r,[{key:"componentDidMount",value:function(){if("undefined"==typeof window)return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(e){this.props.name!==e.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if("undefined"==typeof window)return!1;a.default.unregister(this.props.name)}},{key:"registerElems",value:function(e){a.default.register(e,this.childBindings.domNode)}},{key:"render",value:function(){return o.default.createElement(e,n({},this.props,{parentBindings:this.childBindings}))}}]),r}(o.default.Component);return t.propTypes={name:s.default.string,id:s.default.string},t}},84923:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={registered:{},scrollEvent:{register:function(e,t){r.registered[e]=t},remove:function(e){r.registered[e]=null}}};t.default=r},27656:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});r(55942);var n,i=r(40515),o=(n=i)&&n.__esModule?n:{default:n};var a={mountFlag:!1,initialized:!1,scroller:null,containers:{},mount:function(e){this.scroller=e,this.handleHashChange=this.handleHashChange.bind(this),window.addEventListener("hashchange",this.handleHashChange),this.initStateFromHash(),this.mountFlag=!0},mapContainer:function(e,t){this.containers[e]=t},isMounted:function(){return this.mountFlag},isInitialized:function(){return this.initialized},initStateFromHash:function(){var e=this,t=this.getHash();t?window.setTimeout((function(){e.scrollTo(t,!0),e.initialized=!0}),10):this.initialized=!0},scrollTo:function(e,t){var r=this.scroller;if(r.get(e)&&(t||e!==r.getActiveLink())){var n=this.containers[e]||document;r.scrollTo(e,{container:n})}},getHash:function(){return o.default.getHash()},changeHash:function(e,t){this.isInitialized()&&o.default.getHash()!==e&&o.default.updateHash(e,t)},handleHashChange:function(){this.scrollTo(this.getHash())},unmount:function(){this.scroller=null,this.containers=null,window.removeEventListener("hashchange",this.handleHashChange)}};t.default=a},86919:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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},i=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}}(),o=c(r(89526)),a=c(r(89342)),s=c(r(73356)),u=c(r(2652)),l=c(r(27656));function c(e){return e&&e.__esModule?e:{default:e}}var d={to:u.default.string.isRequired,containerId:u.default.string,container:u.default.object,activeClass:u.default.string,spy:u.default.bool,horizontal:u.default.bool,smooth:u.default.oneOfType([u.default.bool,u.default.string]),offset:u.default.number,delay:u.default.number,isDynamic:u.default.bool,onClick:u.default.func,duration:u.default.oneOfType([u.default.number,u.default.func]),absolute:u.default.bool,onSetActive:u.default.func,onSetInactive:u.default.func,ignoreCancelEvents:u.default.bool,hashSpy:u.default.bool,saveHashHistory:u.default.bool,spyThrottle:u.default.number};t.default=function(e,t){var r=t||s.default,u=function(t){function s(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);var t=function(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}(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,e));return c.call(t),t.state={active:!1},t}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)}(s,t),i(s,[{key:"getScrollSpyContainer",value:function(){var e=this.props.containerId,t=this.props.container;return e&&!t?document.getElementById(e):t&&t.nodeType?t:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var e=this.getScrollSpyContainer();a.default.isMounted(e)||a.default.mount(e,this.props.spyThrottle),this.props.hashSpy&&(l.default.isMounted()||l.default.mount(r),l.default.mapContainer(this.props.to,e)),a.default.addSpyHandler(this.spyHandler,e),this.setState({container:e})}}},{key:"componentWillUnmount",value:function(){a.default.unmount(this.stateHandler,this.spyHandler)}},{key:"render",value:function(){var t="";t=this.state&&this.state.active?((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():this.props.className;var r=n({},this.props);for(var i in d)r.hasOwnProperty(i)&&delete r[i];return r.className=t,r.onClick=this.handleClick,o.default.createElement(e,r)}}]),s}(o.default.PureComponent),c=function(){var e=this;this.scrollTo=function(t,i){r.scrollTo(t,n({},e.state,i))},this.handleClick=function(t){e.props.onClick&&e.props.onClick(t),t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),e.scrollTo(e.props.to,e.props)},this.spyHandler=function(t,n){var i=e.getScrollSpyContainer();if(!l.default.isMounted()||l.default.isInitialized()){var o=e.props.horizontal,a=e.props.to,s=null,u=void 0,c=void 0;if(o){var d=0,p=0,f=0;if(i.getBoundingClientRect)f=i.getBoundingClientRect().left;if(!s||e.props.isDynamic){if(!(s=r.get(a)))return;var m=s.getBoundingClientRect();p=(d=m.left-f+t)+m.width}var h=t-e.props.offset;u=h>=Math.floor(d)&&h<Math.floor(p),c=h<Math.floor(d)||h>=Math.floor(p)}else{var g=0,v=0,b=0;if(i.getBoundingClientRect)b=i.getBoundingClientRect().top;if(!s||e.props.isDynamic){if(!(s=r.get(a)))return;var y=s.getBoundingClientRect();v=(g=y.top-b+n)+y.height}var w=n-e.props.offset;u=w>=Math.floor(g)&&w<Math.floor(v),c=w<Math.floor(g)||w>=Math.floor(v)}var D=r.getActiveLink();if(c){if(a===D&&r.setActiveLink(void 0),e.props.hashSpy&&l.default.getHash()===a){var E=e.props.saveHashHistory,C=void 0!==E&&E;l.default.changeHash("",C)}e.props.spy&&e.state.active&&(e.setState({active:!1}),e.props.onSetInactive&&e.props.onSetInactive(a,s))}if(u&&(D!==a||!1===e.state.active)){r.setActiveLink(a);var S=e.props.saveHashHistory,I=void 0!==S&&S;e.props.hashSpy&&l.default.changeHash(a,I),e.props.spy&&(e.setState({active:!0}),e.props.onSetActive&&e.props.onSetActive(a,s))}}}};return u.propTypes=d,u.defaultProps={offset:0},u}},89342:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=r(7362),o=(n=i)&&n.__esModule?n:{default:n},a=r(55942);var s={spyCallbacks:[],spySetState:[],scrollSpyContainers:[],mount:function(e,t){if(e){var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:66;return(0,o.default)(e,t)}((function(t){s.scrollHandler(e)}),t);s.scrollSpyContainers.push(e),(0,a.addPassiveEventListener)(e,"scroll",r)}},isMounted:function(e){return-1!==s.scrollSpyContainers.indexOf(e)},currentPositionX:function(e){if(e===document){var t=void 0!==window.pageYOffset,r="CSS1Compat"===(document.compatMode||"");return t?window.pageXOffset:r?document.documentElement.scrollLeft:document.body.scrollLeft}return e.scrollLeft},currentPositionY:function(e){if(e===document){var t=void 0!==window.pageXOffset,r="CSS1Compat"===(document.compatMode||"");return t?window.pageYOffset:r?document.documentElement.scrollTop:document.body.scrollTop}return e.scrollTop},scrollHandler:function(e){(s.scrollSpyContainers[s.scrollSpyContainers.indexOf(e)].spyCallbacks||[]).forEach((function(t){return t(s.currentPositionX(e),s.currentPositionY(e))}))},addStateHandler:function(e){s.spySetState.push(e)},addSpyHandler:function(e,t){var r=s.scrollSpyContainers[s.scrollSpyContainers.indexOf(t)];r.spyCallbacks||(r.spyCallbacks=[]),r.spyCallbacks.push(e),e(s.currentPositionX(t),s.currentPositionY(t))},updateStates:function(){s.spySetState.forEach((function(e){return e()}))},unmount:function(e,t){s.scrollSpyContainers.forEach((function(e){return e.spyCallbacks&&e.spyCallbacks.length&&e.spyCallbacks.splice(e.spyCallbacks.indexOf(t),1)})),s.spySetState&&s.spySetState.length&&s.spySetState.splice(s.spySetState.indexOf(e),1),document.removeEventListener("scroll",s.scrollHandler)},update:function(){return s.scrollSpyContainers.forEach((function(e){return s.scrollHandler(e)}))}};t.default=s},73356:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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},i=s(r(40515)),o=s(r(71304)),a=s(r(84923));function s(e){return e&&e.__esModule?e:{default:e}}var u={},l=void 0;t.default={unmount:function(){u={}},register:function(e,t){u[e]=t},unregister:function(e){delete u[e]},get:function(e){return u[e]||document.getElementById(e)||document.getElementsByName(e)[0]||document.getElementsByClassName(e)[0]},setActiveLink:function(e){return l=e},getActiveLink:function(){return l},scrollTo:function(e,t){var r=this.get(e);if(r){var s=(t=n({},t,{absolute:!1})).containerId,u=t.container,l=void 0;l=s?document.getElementById(s):u&&u.nodeType?u:document,t.absolute=!0;var c=t.horizontal,d=i.default.scrollOffset(l,r,c)+(t.offset||0);if(!t.smooth)return a.default.registered.begin&&a.default.registered.begin(e,r),l===document?t.horizontal?window.scrollTo(d,0):window.scrollTo(0,d):l.scrollTop=d,void(a.default.registered.end&&a.default.registered.end(e,r));o.default.animateTopScroll(d,t,e,r)}else console.warn("target Element not found")}}},53315:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={defaultEasing:function(e){return e<.5?Math.pow(2*e,2)/2:1-Math.pow(2*(1-e),2)/2},linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:(4-2*e)*e-1},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}}},40515:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){for(var r=e.offsetTop,n=e.offsetParent;n&&!t(n);)r+=n.offsetTop,n=n.offsetParent;return{offsetTop:r,offsetParent:n}};t.default={updateHash:function(e,t){var r=0===e.indexOf("#")?e.substring(1):e,n=r?"#"+r:"",i=window&&window.location,o=n?i.pathname+i.search+n:i.pathname+i.search;t?history.pushState(history.state,"",o):history.replaceState(history.state,"",o)},getHash:function(){return window.location.hash.replace(/^#/,"")},filterElementInContainer:function(e){return function(t){return e.contains?e!=t&&e.contains(t):!!(16&e.compareDocumentPosition(t))}},scrollOffset:function(e,t,n){if(n)return e===document?t.getBoundingClientRect().left+(window.scrollX||window.pageXOffset):"static"!==getComputedStyle(e).position?t.offsetLeft:t.offsetLeft-e.offsetLeft;if(e===document)return t.getBoundingClientRect().top+(window.scrollY||window.pageYOffset);if("static"!==getComputedStyle(e).position){if(t.offsetParent!==e){var i=r(t,(function(t){return t===e||t===document})),o=i.offsetTop;if(i.offsetParent!==e)throw new Error("Seems containerElement is not an ancestor of the Element");return o}return t.offsetTop}if(t.offsetParent===e.offsetParent)return t.offsetTop-e.offsetTop;var a=function(e){return e===document};return r(t,a).offsetTop-r(e,a).offsetTop}}},45624:function(e,t,r){"use strict";var n=r(29382),i=r(17692),o=r(47061),a=r(59900),s=r(24269),u=r(24593),l=r(70886),c=r(89526),d=(r(12821),r(73961),r(39874)),p=r(23554),f=(r(72144),r(72638),r(51916));function m(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,l.Z)(e);if(t){var i=(0,l.Z)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,u.Z)(this,r)}}var h,g,v,b={cacheOptions:!1,defaultOptions:!1,filterOption:null,isLoading:!1},y=(0,f.m)(p.S),w=(h=y,v=g=function(e){(0,s.Z)(r,e);var t=m(r);function r(e){var n;return(0,o.Z)(this,r),(n=t.call(this)).select=void 0,n.lastRequest=void 0,n.mounted=!1,n.optionsCache={},n.handleInputChange=function(e,t){var r=n.props,i=r.cacheOptions,o=r.onInputChange,a=(0,d.G)(e,t,o);if(!a)return delete n.lastRequest,void n.setState({inputValue:"",loadedInputValue:"",loadedOptions:[],isLoading:!1,passEmptyOptions:!1});if(i&&n.optionsCache[a])n.setState({inputValue:a,loadedInputValue:a,loadedOptions:n.optionsCache[a],isLoading:!1,passEmptyOptions:!1});else{var s=n.lastRequest={};n.setState({inputValue:a,isLoading:!0,passEmptyOptions:!n.state.loadedInputValue},(function(){n.loadOptions(a,(function(e){n.mounted&&(e&&(n.optionsCache[a]=e),s===n.lastRequest&&(delete n.lastRequest,n.setState({isLoading:!1,loadedInputValue:a,loadedOptions:e||[],passEmptyOptions:!1})))}))}))}return a},n.state={defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0,inputValue:void 0!==e.inputValue?e.inputValue:"",isLoading:!0===e.defaultOptions,loadedOptions:[],passEmptyOptions:!1},n}return(0,a.Z)(r,[{key:"componentDidMount",value:function(){var e=this;this.mounted=!0;var t=this.props.defaultOptions,r=this.state.inputValue;!0===t&&this.loadOptions(r,(function(t){if(e.mounted){var r=!!e.lastRequest;e.setState({defaultOptions:t||[],isLoading:r})}}))}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.cacheOptions!==this.props.cacheOptions&&(this.optionsCache={}),e.defaultOptions!==this.props.defaultOptions&&this.setState({defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0})}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"loadOptions",value:function(e,t){var r=this.props.loadOptions;if(!r)return t();var n=r(e,t);n&&"function"==typeof n.then&&n.then(t,(function(){return t()}))}},{key:"render",value:function(){var e=this,t=this.props,r=(t.loadOptions,t.isLoading),o=(0,n.Z)(t,["loadOptions","isLoading"]),a=this.state,s=a.defaultOptions,u=a.inputValue,l=a.isLoading,d=a.loadedInputValue,p=a.loadedOptions,f=a.passEmptyOptions?[]:u&&d?p:s||[];return c.createElement(h,(0,i.Z)({},o,{ref:function(t){e.select=t},options:f,isLoading:l||r,onInputChange:this.handleInputChange}))}}]),r}(c.Component),g.defaultProps=b,v);t.ZP=w},23554:function(e,t,r){"use strict";r.d(t,{S:function(){return ue}});for(var n=r(29382),i=r(17692),o=r(57297),a=r(63661),s=r(20240),u=r(47061),l=r(59900),c=r(14771),d=r(24269),p=r(24593),f=r(70886),m=r(89526),h=r(21850),g=r(12821),v=r(73961),b=r(39874),y=r(72144),w=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],D=new RegExp("["+w.map((function(e){return e.letters})).join("")+"]","g"),E={},C=0;C<w.length;C++)for(var S=w[C],I=0;I<S.letters.length;I++)E[S.letters[I]]=S.base;var x=function(e){return e.replace(D,(function(e){return E[e]}))};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}var A=function(e){return e.replace(/^\s+|\s+$/g,"")},M=function(e){return"".concat(e.label," ").concat(e.value)};var P={name:"1laao21-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;"},B=function(e){return(0,g.tZ)("span",(0,i.Z)({css:P},e))};function N(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef,r=(e.emotion,(0,n.Z)(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return(0,g.tZ)("input",(0,i.Z)({ref:t},r,{css:(0,y.Z)({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"")}))}function k(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,f.Z)(e);if(t){var i=(0,f.Z)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,p.Z)(this,r)}}var T=function(e){(0,d.Z)(r,e);var t=k(r);function r(){return(0,u.Z)(this,r),t.apply(this,arguments)}return(0,l.Z)(r,[{key:"componentDidMount",value:function(){this.props.innerRef((0,v.findDOMNode)(this))}},{key:"componentWillUnmount",value:function(){this.props.innerRef(null)}},{key:"render",value:function(){return this.props.children}}]),r}(m.Component),j=["boxSizing","height","overflow","paddingRight","position"],L={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function F(e){e.preventDefault()}function R(e){e.stopPropagation()}function _(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;0===e?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function Z(){return"ontouchstart"in window||navigator.maxTouchPoints}function H(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,f.Z)(e);if(t){var i=(0,f.Z)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,p.Z)(this,r)}}var W=!(!window.document||!window.document.createElement),U=0,G=function(e){(0,d.Z)(r,e);var t=H(r);function r(){var e;(0,u.Z)(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i))).originalStyles={},e.listenerOptions={capture:!1,passive:!1},e}return(0,l.Z)(r,[{key:"componentDidMount",value:function(){var e=this;if(W){var t=this.props,r=t.accountForScrollbars,n=t.touchScrollTarget,i=document.body,o=i&&i.style;if(r&&j.forEach((function(t){var r=o&&o[t];e.originalStyles[t]=r})),r&&U<1){var a=parseInt(this.originalStyles.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,u=window.innerWidth-s+a||0;Object.keys(L).forEach((function(e){var t=L[e];o&&(o[e]=t)})),o&&(o.paddingRight="".concat(u,"px"))}i&&Z()&&(i.addEventListener("touchmove",F,this.listenerOptions),n&&(n.addEventListener("touchstart",_,this.listenerOptions),n.addEventListener("touchmove",R,this.listenerOptions))),U+=1}}},{key:"componentWillUnmount",value:function(){var e=this;if(W){var t=this.props,r=t.accountForScrollbars,n=t.touchScrollTarget,i=document.body,o=i&&i.style;U=Math.max(U-1,0),r&&U<1&&j.forEach((function(t){var r=e.originalStyles[t];o&&(o[t]=r)})),i&&Z()&&(i.removeEventListener("touchmove",F,this.listenerOptions),n&&(n.removeEventListener("touchstart",_,this.listenerOptions),n.removeEventListener("touchmove",R,this.listenerOptions)))}}},{key:"render",value:function(){return null}}]),r}(m.Component);function z(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,f.Z)(e);if(t){var i=(0,f.Z)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,p.Z)(this,r)}}G.defaultProps={accountForScrollbars:!0};var q={name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;"},V=function(e){(0,d.Z)(r,e);var t=z(r);function r(){var e;(0,u.Z)(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i))).state={touchScrollTarget:null},e.getScrollTarget=function(t){t!==e.state.touchScrollTarget&&e.setState({touchScrollTarget:t})},e.blurSelectInput=function(){document.activeElement&&document.activeElement.blur()},e}return(0,l.Z)(r,[{key:"render",value:function(){var e=this.props,t=e.children,r=e.isEnabled,n=this.state.touchScrollTarget;return r?(0,g.tZ)("div",null,(0,g.tZ)("div",{onClick:this.blurSelectInput,css:q}),(0,g.tZ)(T,{innerRef:this.getScrollTarget},t),n?(0,g.tZ)(G,{touchScrollTarget:n}):null):t}}]),r}(m.PureComponent);function J(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,f.Z)(e);if(t){var i=(0,f.Z)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,p.Z)(this,r)}}var Y=function(e){(0,d.Z)(r,e);var t=J(r);function r(){var e;(0,u.Z)(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i))).isBottom=!1,e.isTop=!1,e.scrollTarget=void 0,e.touchStart=void 0,e.cancelScroll=function(e){e.preventDefault(),e.stopPropagation()},e.handleEventDelta=function(t,r){var n=e.props,i=n.onBottomArrive,o=n.onBottomLeave,a=n.onTopArrive,s=n.onTopLeave,u=e.scrollTarget,l=u.scrollTop,c=u.scrollHeight,d=u.clientHeight,p=e.scrollTarget,f=r>0,m=c-d-l,h=!1;m>r&&e.isBottom&&(o&&o(t),e.isBottom=!1),f&&e.isTop&&(s&&s(t),e.isTop=!1),f&&r>m?(i&&!e.isBottom&&i(t),p.scrollTop=c,h=!0,e.isBottom=!0):!f&&-r>l&&(a&&!e.isTop&&a(t),p.scrollTop=0,h=!0,e.isTop=!0),h&&e.cancelScroll(t)},e.onWheel=function(t){e.handleEventDelta(t,t.deltaY)},e.onTouchStart=function(t){e.touchStart=t.changedTouches[0].clientY},e.onTouchMove=function(t){var r=e.touchStart-t.changedTouches[0].clientY;e.handleEventDelta(t,r)},e.getScrollTarget=function(t){e.scrollTarget=t},e}return(0,l.Z)(r,[{key:"componentDidMount",value:function(){this.startListening(this.scrollTarget)}},{key:"componentWillUnmount",value:function(){this.stopListening(this.scrollTarget)}},{key:"startListening",value:function(e){e&&("function"==typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1))}},{key:"stopListening",value:function(e){e&&("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1))}},{key:"render",value:function(){return m.createElement(T,{innerRef:this.getScrollTarget},this.props.children)}}]),r}(m.Component);function Q(e){var t=e.isEnabled,r=void 0===t||t,i=(0,n.Z)(e,["isEnabled"]);return r?m.createElement(Y,i):i.children}var X=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isSearchable,n=t.isMulti,i=t.label,o=t.isDisabled,a=t.tabSelectsValue;switch(e){case"menu":return"Use Up and Down to choose options".concat(o?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(a?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(i||"Select"," is focused ").concat(r?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},K=function(e,t){var r=t.value,n=t.isDisabled;if(r)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"select-option":return"option ".concat(r,n?" is disabled. Select another option.":", selected.")}},$=function(e){return!!e.isDisabled};var ee={clearIndicator:b.c,container:b.a,control:b.b,dropdownIndicator:b.d,group:b.g,groupHeading:b.e,indicatorsContainer:b.i,indicatorSeparator:b.f,input:b.h,loadingIndicator:b.l,loadingMessage:b.j,menu:b.m,menuList:b.k,menuPortal:b.n,multiValue:b.o,multiValueLabel:b.p,multiValueRemove:b.q,noOptionsMessage:b.r,option:b.s,placeholder:b.t,singleValue:b.u,valueContainer:b.v};var te={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}};function re(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 ne(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?re(Object(r),!0).forEach((function(t){(0,s.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):re(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ie(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,f.Z)(e);if(t){var i=(0,f.Z)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,p.Z)(this,r)}}var oe,ae={backspaceRemovesValue:!0,blurInputOnSelect:(0,b.w)(),captureMenuScroll:!(0,b.w)(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var r=function(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){(0,s.Z)(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}({ignoreCase:!0,ignoreAccents:!0,stringify:M,trim:!0,matchFrom:"any"},oe),n=r.ignoreCase,i=r.ignoreAccents,o=r.stringify,a=r.trim,u=r.matchFrom,l=a?A(t):t,c=a?A(o(e)):o(e);return n&&(l=l.toLowerCase(),c=c.toLowerCase()),i&&(l=x(l),c=x(c)),"start"===u?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:$,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!(0,b.x)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0},se=1,ue=function(e){(0,d.Z)(r,e);var t=ie(r);function r(e){var n;(0,u.Z)(this,r),(n=t.call(this,e)).state={ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]},n.blockOptionHover=!1,n.isComposing=!1,n.clearFocusValueOnUpdate=!1,n.commonProps=void 0,n.components=void 0,n.hasGroups=!1,n.initialTouchX=0,n.initialTouchY=0,n.inputIsHiddenAfterUpdate=void 0,n.instancePrefix="",n.openAfterFocus=!1,n.scrollToFocusedOptionOnUpdate=!1,n.userIsDragging=void 0,n.controlRef=null,n.getControlRef=function(e){n.controlRef=e},n.focusedOptionRef=null,n.getFocusedOptionRef=function(e){n.focusedOptionRef=e},n.menuListRef=null,n.getMenuListRef=function(e){n.menuListRef=e},n.inputRef=null,n.getInputRef=function(e){n.inputRef=e},n.cacheComponents=function(e){n.components=(0,b.y)({components:e})},n.focus=n.focusInput,n.blur=n.blurInput,n.onChange=function(e,t){var r=n.props,i=r.onChange,o=r.name;i(e,ne(ne({},t),{},{name:o}))},n.setValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",r=arguments.length>2?arguments[2]:void 0,i=n.props,o=i.closeMenuOnSelect,a=i.isMulti;n.onInputChange("",{action:"set-value"}),o&&(n.inputIsHiddenAfterUpdate=!a,n.onMenuClose()),n.clearFocusValueOnUpdate=!0,n.onChange(e,{action:t,option:r})},n.selectOption=function(e){var t=n.props,r=t.blurInputOnSelect,i=t.isMulti,o=n.state.selectValue;if(i)if(n.isOptionSelected(e,o)){var s=n.getOptionValue(e);n.setValue(o.filter((function(e){return n.getOptionValue(e)!==s})),"deselect-option",e),n.announceAriaLiveSelection({event:"deselect-option",context:{value:n.getOptionLabel(e)}})}else n.isOptionDisabled(e,o)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue([].concat((0,a.Z)(o),[e]),"select-option",e),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));else n.isOptionDisabled(e,o)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue(e,"select-option"),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));r&&n.blurInput()},n.removeValue=function(e){var t=n.state.selectValue,r=n.getOptionValue(e),i=t.filter((function(e){return n.getOptionValue(e)!==r}));n.onChange(i.length?i:null,{action:"remove-value",removedValue:e}),n.announceAriaLiveSelection({event:"remove-value",context:{value:e?n.getOptionLabel(e):""}}),n.focusInput()},n.clearValue=function(){n.onChange(null,{action:"clear"})},n.popValue=function(){var e=n.state.selectValue,t=e[e.length-1],r=e.slice(0,e.length-1);n.announceAriaLiveSelection({event:"pop-value",context:{value:t?n.getOptionLabel(t):""}}),n.onChange(r.length?r:null,{action:"pop-value",removedValue:t})},n.getValue=function(){return n.state.selectValue},n.cx=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return b.z.apply(void 0,[n.props.classNamePrefix].concat(t))},n.getOptionLabel=function(e){return n.props.getOptionLabel(e)},n.getOptionValue=function(e){return n.props.getOptionValue(e)},n.getStyles=function(e,t){var r=ee[e](t);r.boxSizing="border-box";var i=n.props.styles[e];return i?i(r,t):r},n.getElementId=function(e){return"".concat(n.instancePrefix,"-").concat(e)},n.getActiveDescendentId=function(){var e=n.props.menuIsOpen,t=n.state,r=t.menuOptions,i=t.focusedOption;if(i&&e){var o=r.focusable.indexOf(i),a=r.render[o];return a&&a.key}},n.announceAriaLiveSelection=function(e){var t=e.event,r=e.context;n.setState({ariaLiveSelection:K(t,r)})},n.announceAriaLiveContext=function(e){var t=e.event,r=e.context;n.setState({ariaLiveContext:X(t,ne(ne({},r),{},{label:n.props["aria-label"]}))})},n.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),n.focusInput())},n.onMenuMouseMove=function(e){n.blockOptionHover=!1},n.onControlMouseDown=function(e){var t=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&n.onMenuClose():t&&n.openMenu("first"):(t&&(n.openAfterFocus=!0),n.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},n.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||n.props.isDisabled)){var t=n.props,r=t.isMulti,i=t.menuIsOpen;n.focusInput(),i?(n.inputIsHiddenAfterUpdate=!r,n.onMenuClose()):n.openMenu("first"),e.preventDefault(),e.stopPropagation()}},n.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(n.clearValue(),e.stopPropagation(),n.openAfterFocus=!1,"touchend"===e.type?n.focusInput():setTimeout((function(){return n.focusInput()})))},n.onScroll=function(e){"boolean"==typeof n.props.closeMenuOnScroll?e.target instanceof HTMLElement&&(0,b.A)(e.target)&&n.props.onMenuClose():"function"==typeof n.props.closeMenuOnScroll&&n.props.closeMenuOnScroll(e)&&n.props.onMenuClose()},n.onCompositionStart=function(){n.isComposing=!0},n.onCompositionEnd=function(){n.isComposing=!1},n.onTouchStart=function(e){var t=e.touches,r=t&&t.item(0);r&&(n.initialTouchX=r.clientX,n.initialTouchY=r.clientY,n.userIsDragging=!1)},n.onTouchMove=function(e){var t=e.touches,r=t&&t.item(0);if(r){var i=Math.abs(r.clientX-n.initialTouchX),o=Math.abs(r.clientY-n.initialTouchY);n.userIsDragging=i>5||o>5}},n.onTouchEnd=function(e){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(e.target)&&n.menuListRef&&!n.menuListRef.contains(e.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)},n.onControlTouchEnd=function(e){n.userIsDragging||n.onControlMouseDown(e)},n.onClearIndicatorTouchEnd=function(e){n.userIsDragging||n.onClearIndicatorMouseDown(e)},n.onDropdownIndicatorTouchEnd=function(e){n.userIsDragging||n.onDropdownIndicatorMouseDown(e)},n.handleInputChange=function(e){var t=e.currentTarget.value;n.inputIsHiddenAfterUpdate=!1,n.onInputChange(t,{action:"input-change"}),n.props.menuIsOpen||n.onMenuOpen()},n.onInputFocus=function(e){var t=n.props,r=t.isSearchable,i=t.isMulti;n.props.onFocus&&n.props.onFocus(e),n.inputIsHiddenAfterUpdate=!1,n.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:i}}),n.setState({isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1},n.onInputBlur=function(e){n.menuListRef&&n.menuListRef.contains(document.activeElement)?n.inputRef.focus():(n.props.onBlur&&n.props.onBlur(e),n.onInputChange("",{action:"input-blur"}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1}))},n.onOptionHover=function(e){n.blockOptionHover||n.state.focusedOption===e||n.setState({focusedOption:e})},n.shouldHideSelectedOptions=function(){var e=n.props,t=e.hideSelectedOptions,r=e.isMulti;return void 0===t?r:t},n.onKeyDown=function(e){var t=n.props,r=t.isMulti,i=t.backspaceRemovesValue,o=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,u=t.isDisabled,l=t.menuIsOpen,c=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,f=n.state,m=f.focusedOption,h=f.focusedValue,g=f.selectValue;if(!(u||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(n.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;n.focusValue("previous");break;case"ArrowRight":if(!r||a)return;n.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(h)n.removeValue(h);else{if(!i)return;r?n.popValue():s&&n.clearValue()}break;case"Tab":if(n.isComposing)return;if(e.shiftKey||!l||!d||!m||p&&n.isOptionSelected(m,g))return;n.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(l){if(!m)return;if(n.isComposing)return;n.selectOption(m);break}return;case"Escape":l?(n.inputIsHiddenAfterUpdate=!1,n.onInputChange("",{action:"menu-close"}),n.onMenuClose()):s&&o&&n.clearValue();break;case" ":if(a)return;if(!l){n.openMenu("first");break}if(!m)return;n.selectOption(m);break;case"ArrowUp":l?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":l?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!l)return;n.focusOption("pageup");break;case"PageDown":if(!l)return;n.focusOption("pagedown");break;case"Home":if(!l)return;n.focusOption("first");break;case"End":if(!l)return;n.focusOption("last");break;default:return}e.preventDefault()}},n.buildMenuOptions=function(e,t){var r=e.inputValue,i=void 0===r?"":r,o=e.options,a=function(e,r){var o=n.isOptionDisabled(e,t),a=n.isOptionSelected(e,t),s=n.getOptionLabel(e),u=n.getOptionValue(e);if(!(n.shouldHideSelectedOptions()&&a||!n.filterOption({label:s,value:u,data:e},i))){var l=o?void 0:function(){return n.onOptionHover(e)},c=o?void 0:function(){return n.selectOption(e)},d="".concat(n.getElementId("option"),"-").concat(r);return{innerProps:{id:d,onClick:c,onMouseMove:l,onMouseOver:l,tabIndex:-1},data:e,isDisabled:o,isSelected:a,key:d,label:s,type:"option",value:u}}};return o.reduce((function(e,t,r){if(t.options){n.hasGroups||(n.hasGroups=!0);var i=t.options.map((function(t,n){var i=a(t,"".concat(r,"-").concat(n));return i&&e.focusable.push(t),i})).filter(Boolean);if(i.length){var o="".concat(n.getElementId("group"),"-").concat(r);e.render.push({type:"group",key:o,data:t,options:i})}}else{var s=a(t,"".concat(r));s&&(e.render.push(s),e.focusable.push(t))}return e}),{render:[],focusable:[]})};var i=e.value;n.cacheComponents=(0,h.Z)(n.cacheComponents,b.B).bind((0,c.Z)(n)),n.cacheComponents(e.components),n.instancePrefix="react-select-"+(n.props.instanceId||++se);var s=(0,b.C)(i);n.buildMenuOptions=(0,h.Z)(n.buildMenuOptions,(function(e,t){var r=e,n=(0,o.Z)(r,2),i=n[0],a=n[1],s=t,u=(0,o.Z)(s,2),l=u[0];return a===u[1]&&i.inputValue===l.inputValue&&i.options===l.options})).bind((0,c.Z)(n));var l=e.menuIsOpen?n.buildMenuOptions(e,s):{render:[],focusable:[]};return n.state.menuOptions=l,n.state.selectValue=s,n}return(0,l.Z)(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this.props,r=t.options,n=t.value,i=t.menuIsOpen,o=t.inputValue;if(this.cacheComponents(e.components),e.value!==n||e.options!==r||e.menuIsOpen!==i||e.inputValue!==o){var a=(0,b.C)(e.value),s=e.menuIsOpen?this.buildMenuOptions(e,a):{render:[],focusable:[]},u=this.getNextFocusedValue(a),l=this.getNextFocusedOption(s.focusable);this.setState({menuOptions:s,selectValue:a,focusedOption:l,focusedValue:u})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.isDisabled,n=t.menuIsOpen,i=this.state.isFocused;(i&&!r&&e.isDisabled||i&&n&&!e.menuIsOpen)&&this.focusInput(),i&&r&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&((0,b.D)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){var e=this.props,t=e.isSearchable,r=e.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:t,isMulti:r}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,r=this.state,n=r.selectValue,i=r.isFocused,o=this.buildMenuOptions(this.props,n),a=this.props,s=a.isMulti,u=a.tabSelectsValue,l="first"===e?0:o.focusable.length-1;if(!s){var c=o.focusable.indexOf(n[0]);c>-1&&(l=c)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.setState({menuOptions:o,focusedValue:null,focusedOption:o.focusable[l]},(function(){t.onMenuOpen(),t.announceAriaLiveContext({event:"menu",context:{tabSelectsValue:u}})}))}},{key:"focusValue",value:function(e){var t=this.props,r=t.isMulti,n=t.isSearchable,i=this.state,o=i.selectValue,a=i.focusedValue;if(r){this.setState({focusedOption:null});var s=o.indexOf(a);a||(s=-1,this.announceAriaLiveContext({event:"value"}));var u=o.length-1,l=-1;if(o.length){switch(e){case"previous":l=0===s?0:-1===s?u:s-1;break;case"next":s>-1&&s<u&&(l=s+1)}-1===l&&this.announceAriaLiveContext({event:"input",context:{isSearchable:n,isMulti:r}}),this.setState({inputIsHidden:-1!==l,focusedValue:o[l]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props,r=t.pageSize,n=t.tabSelectsValue,i=this.state,o=i.focusedOption,a=i.menuOptions,s=a.focusable;if(s.length){var u=0,l=s.indexOf(o);o||(l=-1,this.announceAriaLiveContext({event:"menu",context:{tabSelectsValue:n}})),"up"===e?u=l>0?l-1:s.length-1:"down"===e?u=(l+1)%s.length:"pageup"===e?(u=l-r)<0&&(u=0):"pagedown"===e?(u=l+r)>s.length-1&&(u=s.length-1):"last"===e&&(u=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[u],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:$(s[u]),tabSelectsValue:n}})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(te):ne(ne({},te),this.props.theme):te}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,r=this.getStyles,n=this.getValue,i=this.setValue,o=this.selectOption,a=this.props,s=a.isMulti,u=a.isRtl,l=a.options;return{cx:t,clearValue:e,getStyles:r,getValue:n,hasValue:this.hasValue(),isMulti:s,isRtl:u,options:l,selectOption:o,setValue:i,selectProps:a,theme:this.getTheme()}}},{key:"getNextFocusedValue",value:function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,r=t.focusedValue,n=t.selectValue.indexOf(r);if(n>-1){if(e.indexOf(r)>-1)return r;if(n<e.length)return e[n]}return null}},{key:"getNextFocusedOption",value:function(e){var t=this.state.focusedOption;return t&&e.indexOf(t)>-1?t:e[0]}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.state.menuOptions.render.length}},{key:"countOptions",value:function(){return this.state.menuOptions.focusable.length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,r=e.isMulti;return void 0===t?r:t}},{key:"isOptionDisabled",value:function(e,t){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)}},{key:"isOptionSelected",value:function(e,t){var r=this;if(t.indexOf(e)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(e,t);var n=this.getOptionValue(e);return t.some((function(e){return r.getOptionValue(e)===n}))}},{key:"filterOption",value:function(e,t){return!this.props.filterOption||this.props.filterOption(e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var r=this.props.inputValue,n=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:r,selectValue:n})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"constructAriaLiveMessage",value:function(){var e=this.state,t=e.ariaLiveContext,r=e.selectValue,n=e.focusedValue,i=e.focusedOption,o=this.props,a=o.options,s=o.menuIsOpen,u=o.inputValue,l=o.screenReaderStatus,c=n?function(e){var t=e.focusedValue,r=e.getOptionLabel,n=e.selectValue;return"value ".concat(r(t)," focused, ").concat(n.indexOf(t)+1," of ").concat(n.length,".")}({focusedValue:n,getOptionLabel:this.getOptionLabel,selectValue:r}):"",d=i&&s?function(e){var t=e.focusedOption,r=e.getOptionLabel,n=e.options;return"option ".concat(r(t)," focused").concat(t.isDisabled?" disabled":"",", ").concat(n.indexOf(t)+1," of ").concat(n.length,".")}({focusedOption:i,getOptionLabel:this.getOptionLabel,options:a}):"",p=function(e){var t=e.inputValue,r=e.screenReaderMessage;return"".concat(r).concat(t?" for search term "+t:"",".")}({inputValue:u,screenReaderMessage:l({count:this.countOptions()})});return"".concat(c," ").concat(d," ").concat(p," ").concat(t)}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,r=e.isSearchable,n=e.inputId,o=e.inputValue,a=e.tabIndex,s=e.form,u=this.components.Input,l=this.state.inputIsHidden,c=n||this.getElementId("input"),d={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};if(!r)return m.createElement(N,(0,i.Z)({id:c,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:b.E,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:a,form:s,value:""},d));var p=this.commonProps,f=p.cx,h=p.theme,g=p.selectProps;return m.createElement(u,(0,i.Z)({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:f,getStyles:this.getStyles,id:c,innerRef:this.getInputRef,isDisabled:t,isHidden:l,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:g,spellCheck:"false",tabIndex:a,form:s,theme:h,type:"text",value:o},d))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.components,r=t.MultiValue,n=t.MultiValueContainer,o=t.MultiValueLabel,a=t.MultiValueRemove,s=t.SingleValue,u=t.Placeholder,l=this.commonProps,c=this.props,d=c.controlShouldRenderValue,p=c.isDisabled,f=c.isMulti,h=c.inputValue,g=c.placeholder,v=this.state,b=v.selectValue,y=v.focusedValue,w=v.isFocused;if(!this.hasValue()||!d)return h?null:m.createElement(u,(0,i.Z)({},l,{key:"placeholder",isDisabled:p,isFocused:w}),g);if(f)return b.map((function(t,s){var u=t===y;return m.createElement(r,(0,i.Z)({},l,{components:{Container:n,Label:o,Remove:a},isFocused:u,isDisabled:p,key:"".concat(e.getOptionValue(t)).concat(s),index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var D=b[0];return m.createElement(s,(0,i.Z)({},l,{data:D,isDisabled:p}),this.formatOptionLabel(D,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.components.ClearIndicator,t=this.commonProps,r=this.props,n=r.isDisabled,o=r.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||n||!this.hasValue()||o)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return m.createElement(e,(0,i.Z)({},t,{innerProps:s,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.components.LoadingIndicator,t=this.commonProps,r=this.props,n=r.isDisabled,o=r.isLoading,a=this.state.isFocused;if(!e||!o)return null;return m.createElement(e,(0,i.Z)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:n,isFocused:a}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.components,t=e.DropdownIndicator,r=e.IndicatorSeparator;if(!t||!r)return null;var n=this.commonProps,o=this.props.isDisabled,a=this.state.isFocused;return m.createElement(r,(0,i.Z)({},n,{isDisabled:o,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.components.DropdownIndicator;if(!e)return null;var t=this.commonProps,r=this.props.isDisabled,n=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return m.createElement(e,(0,i.Z)({},t,{innerProps:o,isDisabled:r,isFocused:n}))}},{key:"renderMenu",value:function(){var e=this,t=this.components,r=t.Group,o=t.GroupHeading,a=t.Menu,s=t.MenuList,u=t.MenuPortal,l=t.LoadingMessage,c=t.NoOptionsMessage,d=t.Option,p=this.commonProps,f=this.state,h=f.focusedOption,g=f.menuOptions,v=this.props,y=v.captureMenuScroll,w=v.inputValue,D=v.isLoading,E=v.loadingMessage,C=v.minMenuHeight,S=v.maxMenuHeight,I=v.menuIsOpen,x=v.menuPlacement,O=v.menuPosition,A=v.menuPortalTarget,M=v.menuShouldBlockScroll,P=v.menuShouldScrollIntoView,B=v.noOptionsMessage,N=v.onMenuScrollToTop,k=v.onMenuScrollToBottom;if(!I)return null;var T,j=function(t){var r=h===t.data;return t.innerRef=r?e.getFocusedOptionRef:void 0,m.createElement(d,(0,i.Z)({},p,t,{isFocused:r}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())T=g.render.map((function(t){if("group"===t.type){t.type;var a=(0,n.Z)(t,["type"]),s="".concat(t.key,"-heading");return m.createElement(r,(0,i.Z)({},p,a,{Heading:o,headingProps:{id:s,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return j(e)})))}if("option"===t.type)return j(t)}));else if(D){var L=E({inputValue:w});if(null===L)return null;T=m.createElement(l,p,L)}else{var F=B({inputValue:w});if(null===F)return null;T=m.createElement(c,p,F)}var R={minMenuHeight:C,maxMenuHeight:S,menuPlacement:x,menuPosition:O,menuShouldScrollIntoView:P},_=m.createElement(b.M,(0,i.Z)({},p,R),(function(t){var r=t.ref,n=t.placerProps,o=n.placement,u=n.maxHeight;return m.createElement(a,(0,i.Z)({},p,R,{innerRef:r,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:D,placement:o}),m.createElement(Q,{isEnabled:y,onTopArrive:N,onBottomArrive:k},m.createElement(V,{isEnabled:M},m.createElement(s,(0,i.Z)({},p,{innerRef:e.getMenuListRef,isLoading:D,maxHeight:u}),T))))}));return A||"fixed"===O?m.createElement(u,(0,i.Z)({},p,{appendTo:A,controlElement:this.controlRef,menuPlacement:x,menuPosition:O}),_):_}},{key:"renderFormField",value:function(){var e=this,t=this.props,r=t.delimiter,n=t.isDisabled,i=t.isMulti,o=t.name,a=this.state.selectValue;if(o&&!n){if(i){if(r){var s=a.map((function(t){return e.getOptionValue(t)})).join(r);return m.createElement("input",{name:o,type:"hidden",value:s})}var u=a.length>0?a.map((function(t,r){return m.createElement("input",{key:"i-".concat(r),name:o,type:"hidden",value:e.getOptionValue(t)})})):m.createElement("input",{name:o,type:"hidden"});return m.createElement("div",null,u)}var l=a[0]?this.getOptionValue(a[0]):"";return m.createElement("input",{name:o,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?m.createElement(B,{"aria-live":"polite"},m.createElement("span",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),m.createElement("span",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var e=this.components,t=e.Control,r=e.IndicatorsContainer,n=e.SelectContainer,o=e.ValueContainer,a=this.props,s=a.className,u=a.id,l=a.isDisabled,c=a.menuIsOpen,d=this.state.isFocused,p=this.commonProps=this.getCommonProps();return m.createElement(n,(0,i.Z)({},p,{className:s,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:d}),this.renderLiveRegion(),m.createElement(t,(0,i.Z)({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:d,menuIsOpen:c}),m.createElement(o,(0,i.Z)({},p,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),m.createElement(r,(0,i.Z)({},p,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),r}(m.Component);ue.defaultProps=ae},39874:function(e,t,r){"use strict";r.d(t,{A:function(){return C},B:function(){return X},C:function(){return D},D:function(){return A},E:function(){return b},G:function(){return E},M:function(){return R},a:function(){return K},b:function(){return me},c:function(){return ue},d:function(){return se},e:function(){return be},f:function(){return le},g:function(){return ve},h:function(){return De},i:function(){return ee},j:function(){return W},k:function(){return _},l:function(){return de},m:function(){return L},n:function(){return z},o:function(){return Ie},p:function(){return xe},q:function(){return Oe},r:function(){return H},s:function(){return Ne},t:function(){return ke},u:function(){return Te},v:function(){return $},w:function(){return M},x:function(){return P},y:function(){return Re},z:function(){return w}});var n=r(29382),i=r(17692),o=r(20240),a=r(47061),s=r(59900),u=r(24269),l=r(24593),c=r(70886),d=r(89526),p=r(12821),f=r(73961),m=r(7209),h=r(72144),g=r(91806),v=r(72638),b=function(){};function y(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function w(e,t,r){var n=[r];if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&n.push("".concat(y(e,i)));return n.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var D=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===(0,m.Z)(e)&&null!==e?[e]:[]};function E(e,t,r){if(r){var n=r(e,t);if("string"==typeof n)return n}return e}function C(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function S(e){return C(e)?window.pageYOffset:e.scrollTop}function I(e,t){C(e)?window.scrollTo(0,t):e.scrollTop=t}function x(e,t,r,n){return r*((e=e/n-1)*e*e+1)+t}function O(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:b,i=S(e),o=t-i,a=10,s=0;function u(){var t=x(s+=a,i,o,r);I(e,t),s<r?window.requestAnimationFrame(u):n(e)}u()}function A(e,t){var r=e.getBoundingClientRect(),n=t.getBoundingClientRect(),i=t.offsetHeight/3;n.bottom+i>r.bottom?I(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):n.top-i<r.top&&I(e,Math.max(t.offsetTop-i,0))}function M(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function P(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}function B(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 N(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?B(Object(r),!0).forEach((function(t){(0,o.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function k(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,c.Z)(e);if(t){var i=(0,c.Z)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,l.Z)(this,r)}}function T(e){var t=e.maxHeight,r=e.menuEl,n=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,s=e.theme.spacing,u=function(e){var t=getComputedStyle(e),r="absolute"===t.position,n=/(auto|scroll)/,i=document.documentElement;if("fixed"===t.position)return i;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!r||"static"!==t.position)&&n.test(t.overflow+t.overflowY+t.overflowX))return o;return i}(r),l={placement:"bottom",maxHeight:t};if(!r||!r.offsetParent)return l;var c=u.getBoundingClientRect().height,d=r.getBoundingClientRect(),p=d.bottom,f=d.height,m=d.top,h=r.offsetParent.getBoundingClientRect().top,g=window.innerHeight,v=S(u),b=parseInt(getComputedStyle(r).marginBottom,10),y=parseInt(getComputedStyle(r).marginTop,10),w=h-y,D=g-m,E=w+v,C=c-v-m,x=p-g+v+b,A=v+m-y,M=160;switch(i){case"auto":case"bottom":if(D>=f)return{placement:"bottom",maxHeight:t};if(C>=f&&!a)return o&&O(u,x,M),{placement:"bottom",maxHeight:t};if(!a&&C>=n||a&&D>=n)return o&&O(u,x,M),{placement:"bottom",maxHeight:a?D-b:C-b};if("auto"===i||a){var P=t,B=a?w:E;return B>=n&&(P=Math.min(B-b-s.controlHeight,t)),{placement:"top",maxHeight:P}}if("bottom"===i)return I(u,x),{placement:"bottom",maxHeight:t};break;case"top":if(w>=f)return{placement:"top",maxHeight:t};if(E>=f&&!a)return o&&O(u,A,M),{placement:"top",maxHeight:t};if(!a&&E>=n||a&&w>=n){var N=t;return(!a&&E>=n||a&&w>=n)&&(N=a?w-y:E-y),o&&O(u,A,M),{placement:"top",maxHeight:N}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return l}var j=function(e){return"auto"===e?"bottom":e},L=function(e){var t,r=e.placement,n=e.theme,i=n.borderRadius,a=n.spacing,s=n.colors;return t={label:"menu"},(0,o.Z)(t,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),(0,o.Z)(t,"backgroundColor",s.neutral0),(0,o.Z)(t,"borderRadius",i),(0,o.Z)(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),(0,o.Z)(t,"marginBottom",a.menuGutter),(0,o.Z)(t,"marginTop",a.menuGutter),(0,o.Z)(t,"position","absolute"),(0,o.Z)(t,"width","100%"),(0,o.Z)(t,"zIndex",1),t},F=(0,d.createContext)({getPortalPlacement:null}),R=function(e){(0,u.Z)(r,e);var t=k(r);function r(){var e;(0,a.Z)(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.getPlacement=function(t){var r=e.props,n=r.minMenuHeight,i=r.maxMenuHeight,o=r.menuPlacement,a=r.menuPosition,s=r.menuShouldScrollIntoView,u=r.theme;if(t){var l="fixed"===a,c=T({maxHeight:i,menuEl:t,minHeight:n,placement:o,shouldScroll:s&&!l,isFixedPosition:l,theme:u}),d=e.context.getPortalPlacement;d&&d(c),e.setState(c)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,r=e.state.placement||j(t);return N(N({},e.props),{},{placement:r,maxHeight:e.state.maxHeight})},e}return(0,s.Z)(r,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),r}(d.Component);R.contextType=F;var _=function(e){var t=e.maxHeight,r=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:r,paddingTop:r,position:"relative",WebkitOverflowScrolling:"touch"}},Z=function(e){var t=e.theme,r=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px"),textAlign:"center"}},H=Z,W=Z,U=function(e){var t=e.children,r=e.className,n=e.cx,o=e.getStyles,a=e.innerProps;return(0,p.tZ)("div",(0,i.Z)({css:o("noOptionsMessage",e),className:n({"menu-notice":!0,"menu-notice--no-options":!0},r)},a),t)};U.defaultProps={children:"No options"};var G=function(e){var t=e.children,r=e.className,n=e.cx,o=e.getStyles,a=e.innerProps;return(0,p.tZ)("div",(0,i.Z)({css:o("loadingMessage",e),className:n({"menu-notice":!0,"menu-notice--loading":!0},r)},a),t)};G.defaultProps={children:"Loading..."};var z=function(e){var t=e.rect,r=e.offset,n=e.position;return{left:t.left,position:n,top:r,width:t.width,zIndex:1}},q=function(e){(0,u.Z)(r,e);var t=k(r);function r(){var e;(0,a.Z)(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i))).state={placement:null},e.getPortalPlacement=function(t){var r=t.placement;r!==j(e.props.menuPlacement)&&e.setState({placement:r})},e}return(0,s.Z)(r,[{key:"render",value:function(){var e=this.props,t=e.appendTo,r=e.children,n=e.controlElement,i=e.menuPlacement,o=e.menuPosition,a=e.getStyles,s="fixed"===o;if(!t&&!s||!n)return null;var u=this.state.placement||j(i),l=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(n),c=s?0:window.pageYOffset,d={offset:l[u]+c,position:o,rect:l},m=(0,p.tZ)("div",{css:a("menuPortal",d)},r);return(0,p.tZ)(F.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?(0,f.createPortal)(m,t):m)}}]),r}(d.Component),V=Array.isArray,J=Object.keys,Y=Object.prototype.hasOwnProperty;function Q(e,t){if(e===t)return!0;if(e&&t&&"object"==(0,m.Z)(e)&&"object"==(0,m.Z)(t)){var r,n,i,o=V(e),a=V(t);if(o&&a){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!Q(e[r],t[r]))return!1;return!0}if(o!=a)return!1;var s=e instanceof Date,u=t instanceof Date;if(s!=u)return!1;if(s&&u)return e.getTime()==t.getTime();var l=e instanceof RegExp,c=t instanceof RegExp;if(l!=c)return!1;if(l&&c)return e.toString()==t.toString();var d=J(e);if((n=d.length)!==J(t).length)return!1;for(r=n;0!=r--;)if(!Y.call(t,d[r]))return!1;for(r=n;0!=r--;)if(!("_owner"===(i=d[r])&&e.$$typeof||Q(e[i],t[i])))return!1;return!0}return e!=e&&t!=t}function X(e,t){try{return Q(e,t)}catch(r){if(r.message&&r.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",r.name,r.message),!1;throw r}}var K=function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},$=function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}},ee=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}};function te(){var e=(0,g.Z)(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]);return te=function(){return e},e}var re={name:"19bqh2r",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"},ne=function(e){var t=e.size,r=(0,n.Z)(e,["size"]);return(0,p.tZ)("svg",(0,i.Z)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:re},r))},ie=function(e){return(0,p.tZ)(ne,(0,i.Z)({size:20},e),(0,p.tZ)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},oe=function(e){return(0,p.tZ)(ne,(0,i.Z)({size:20},e),(0,p.tZ)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},ae=function(e){var t=e.isFocused,r=e.theme,n=r.spacing.baseUnit,i=r.colors;return{label:"indicatorContainer",color:t?i.neutral60:i.neutral20,display:"flex",padding:2*n,transition:"color 150ms",":hover":{color:t?i.neutral80:i.neutral40}}},se=ae,ue=ae,le=function(e){var t=e.isDisabled,r=e.theme,n=r.spacing.baseUnit,i=r.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?i.neutral10:i.neutral20,marginBottom:2*n,marginTop:2*n,width:1}},ce=(0,p.F4)(te()),de=function(e){var t=e.isFocused,r=e.size,n=e.theme,i=n.colors,o=n.spacing.baseUnit;return{label:"loadingIndicator",color:t?i.neutral60:i.neutral20,display:"flex",padding:2*o,transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"}},pe=function(e){var t=e.delay,r=e.offset;return(0,p.tZ)("span",{css:(0,h.Z)({animation:"".concat(ce," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"")})},fe=function(e){var t=e.className,r=e.cx,n=e.getStyles,o=e.innerProps,a=e.isRtl;return(0,p.tZ)("div",(0,i.Z)({},o,{css:n("loadingIndicator",e),className:r({indicator:!0,"loading-indicator":!0},t)}),(0,p.tZ)(pe,{delay:0,offset:a}),(0,p.tZ)(pe,{delay:160,offset:!0}),(0,p.tZ)(pe,{delay:320,offset:!a}))};fe.defaultProps={size:4};var me=function(e){var t=e.isDisabled,r=e.isFocused,n=e.theme,i=n.colors,o=n.borderRadius,a=n.spacing;return{label:"control",alignItems:"center",backgroundColor:t?i.neutral5:i.neutral0,borderColor:t?i.neutral10:r?i.primary:i.neutral20,borderRadius:o,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:r?i.primary:i.neutral30}}};function he(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 ge(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?he(Object(r),!0).forEach((function(t){(0,o.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):he(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ve=function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},be=function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}};function ye(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 we(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(r),!0).forEach((function(t){(0,o.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ye(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var De=function(e){var t=e.isDisabled,r=e.theme,n=r.spacing,i=r.colors;return{margin:n.baseUnit/2,paddingBottom:n.baseUnit/2,paddingTop:n.baseUnit/2,visibility:t?"hidden":"visible",color:i.neutral80}},Ee=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}};function Ce(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 Se(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ce(Object(r),!0).forEach((function(t){(0,o.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ce(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ie=function(e){var t=e.theme,r=t.spacing,n=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:n/2,display:"flex",margin:r.baseUnit/2,minWidth:0}},xe=function(e){var t=e.theme,r=t.borderRadius,n=t.colors,i=e.cropWithEllipsis;return{borderRadius:r/2,color:n.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:i?"ellipsis":null,whiteSpace:"nowrap"}},Oe=function(e){var t=e.theme,r=t.spacing,n=t.borderRadius,i=t.colors;return{alignItems:"center",borderRadius:n/2,backgroundColor:e.isFocused&&i.dangerLight,display:"flex",paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}}},Ae=function(e){var t=e.children,r=e.innerProps;return(0,p.tZ)("div",r,t)},Me=Ae,Pe=Ae;var Be=function(e){var t=e.children,r=e.className,n=e.components,i=e.cx,o=e.data,a=e.getStyles,s=e.innerProps,u=e.isDisabled,l=e.removeProps,c=e.selectProps,d=n.Container,f=n.Label,m=n.Remove;return(0,p.tZ)(p.ms,null,(function(n){var h=n.css,g=n.cx;return(0,p.tZ)(d,{data:o,innerProps:Se(Se({},s),{},{className:g(h(a("multiValue",e)),i({"multi-value":!0,"multi-value--is-disabled":u},r))}),selectProps:c},(0,p.tZ)(f,{data:o,innerProps:{className:g(h(a("multiValueLabel",e)),i({"multi-value__label":!0},r))},selectProps:c},t),(0,p.tZ)(m,{data:o,innerProps:Se({className:g(h(a("multiValueRemove",e)),i({"multi-value__remove":!0},r))},l),selectProps:c}))}))};Be.defaultProps={cropWithEllipsis:!0};var Ne=function(e){var t=e.isDisabled,r=e.isFocused,n=e.isSelected,i=e.theme,o=i.spacing,a=i.colors;return{label:"option",backgroundColor:n?a.primary:r?a.primary25:"transparent",color:t?a.neutral20:n?a.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*o.baseUnit,"px ").concat(3*o.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(n?a.primary:a.primary50)}}},ke=function(e){var t=e.theme,r=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},Te=function(e){var t=e.isDisabled,r=e.theme,n=r.spacing,i=r.colors;return{label:"singleValue",color:t?i.neutral40:i.neutral80,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,maxWidth:"calc(100% - ".concat(2*n.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}};function je(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 Le(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?je(Object(r),!0).forEach((function(t){(0,o.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):je(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Fe={ClearIndicator:function(e){var t=e.children,r=e.className,n=e.cx,o=e.getStyles,a=e.innerProps;return(0,p.tZ)("div",(0,i.Z)({},a,{css:o("clearIndicator",e),className:n({indicator:!0,"clear-indicator":!0},r)}),t||(0,p.tZ)(ie,null))},Control:function(e){var t=e.children,r=e.cx,n=e.getStyles,o=e.className,a=e.isDisabled,s=e.isFocused,u=e.innerRef,l=e.innerProps,c=e.menuIsOpen;return(0,p.tZ)("div",(0,i.Z)({ref:u,css:n("control",e),className:r({control:!0,"control--is-disabled":a,"control--is-focused":s,"control--menu-is-open":c},o)},l),t)},DropdownIndicator:function(e){var t=e.children,r=e.className,n=e.cx,o=e.getStyles,a=e.innerProps;return(0,p.tZ)("div",(0,i.Z)({},a,{css:o("dropdownIndicator",e),className:n({indicator:!0,"dropdown-indicator":!0},r)}),t||(0,p.tZ)(oe,null))},DownChevron:oe,CrossIcon:ie,Group:function(e){var t=e.children,r=e.className,n=e.cx,o=e.getStyles,a=e.Heading,s=e.headingProps,u=e.label,l=e.theme,c=e.selectProps;return(0,p.tZ)("div",{css:o("group",e),className:n({group:!0},r)},(0,p.tZ)(a,(0,i.Z)({},s,{selectProps:c,theme:l,getStyles:o,cx:n}),u),(0,p.tZ)("div",null,t))},GroupHeading:function(e){var t=e.className,r=e.cx,o=e.getStyles,a=e.theme,s=(e.selectProps,(0,n.Z)(e,["className","cx","getStyles","theme","selectProps"]));return(0,p.tZ)("div",(0,i.Z)({css:o("groupHeading",ge({theme:a},s)),className:r({"group-heading":!0},t)},s))},IndicatorsContainer:function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles;return(0,p.tZ)("div",{css:i("indicatorsContainer",e),className:n({indicators:!0},r)},t)},IndicatorSeparator:function(e){var t=e.className,r=e.cx,n=e.getStyles,o=e.innerProps;return(0,p.tZ)("span",(0,i.Z)({},o,{css:n("indicatorSeparator",e),className:r({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,r=e.cx,o=e.getStyles,a=e.innerRef,s=e.isHidden,u=e.isDisabled,l=e.theme,c=(e.selectProps,(0,n.Z)(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return(0,p.tZ)("div",{css:o("input",we({theme:l},c))},(0,p.tZ)(v.Z,(0,i.Z)({className:r({input:!0},t),inputRef:a,inputStyle:Ee(s),disabled:u},c)))},LoadingIndicator:fe,Menu:function(e){var t=e.children,r=e.className,n=e.cx,o=e.getStyles,a=e.innerRef,s=e.innerProps;return(0,p.tZ)("div",(0,i.Z)({css:o("menu",e),className:n({menu:!0},r)},s,{ref:a}),t)},MenuList:function(e){var t=e.children,r=e.className,n=e.cx,o=e.getStyles,a=e.isMulti,s=e.innerRef,u=e.innerProps;return(0,p.tZ)("div",(0,i.Z)({css:o("menuList",e),className:n({"menu-list":!0,"menu-list--is-multi":a},r),ref:s},u),t)},MenuPortal:q,LoadingMessage:G,NoOptionsMessage:U,MultiValue:Be,MultiValueContainer:Me,MultiValueLabel:Pe,MultiValueRemove:function(e){var t=e.children,r=e.innerProps;return(0,p.tZ)("div",r,t||(0,p.tZ)(ie,{size:14}))},Option:function(e){var t=e.children,r=e.className,n=e.cx,o=e.getStyles,a=e.isDisabled,s=e.isFocused,u=e.isSelected,l=e.innerRef,c=e.innerProps;return(0,p.tZ)("div",(0,i.Z)({css:o("option",e),className:n({option:!0,"option--is-disabled":a,"option--is-focused":s,"option--is-selected":u},r),ref:l},c),t)},Placeholder:function(e){var t=e.children,r=e.className,n=e.cx,o=e.getStyles,a=e.innerProps;return(0,p.tZ)("div",(0,i.Z)({css:o("placeholder",e),className:n({placeholder:!0},r)},a),t)},SelectContainer:function(e){var t=e.children,r=e.className,n=e.cx,o=e.getStyles,a=e.innerProps,s=e.isDisabled,u=e.isRtl;return(0,p.tZ)("div",(0,i.Z)({css:o("container",e),className:n({"--is-disabled":s,"--is-rtl":u},r)},a),t)},SingleValue:function(e){var t=e.children,r=e.className,n=e.cx,o=e.getStyles,a=e.isDisabled,s=e.innerProps;return(0,p.tZ)("div",(0,i.Z)({css:o("singleValue",e),className:n({"single-value":!0,"single-value--is-disabled":a},r)},s),t)},ValueContainer:function(e){var t=e.children,r=e.className,n=e.cx,i=e.isMulti,o=e.getStyles,a=e.hasValue;return(0,p.tZ)("div",{css:o("valueContainer",e),className:n({"value-container":!0,"value-container--is-multi":i,"value-container--has-value":a},r)},t)}},Re=function(e){return Le(Le({},Fe),e.components)}},844:function(e,t,r){"use strict";var n=r(47061),i=r(59900),o=r(24269),a=r(24593),s=r(70886),u=r(89526),l=r(21850),c=r(12821),d=(r(73961),r(23554)),p=(r(72144),r(72638),r(51916)),f=r(71236);function m(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,s.Z)(e);if(t){var i=(0,s.Z)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,a.Z)(this,r)}}u.Component;var h=(0,p.m)(d.S);t.ZP=h},51916:function(e,t,r){"use strict";r.d(t,{m:function(){return f}});var n=r(29382),i=r(17692),o=r(47061),a=r(59900),s=r(24269),u=r(24593),l=r(70886),c=r(89526);function d(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,l.Z)(e);if(t){var i=(0,l.Z)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,u.Z)(this,r)}}var p={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},f=function(e){var t,r;return r=t=function(t){(0,s.Z)(u,t);var r=d(u);function u(){var e;(0,o.Z)(this,u);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=r.call.apply(r,[this].concat(n))).select=void 0,e.state={inputValue:void 0!==e.props.inputValue?e.props.inputValue:e.props.defaultInputValue,menuIsOpen:void 0!==e.props.menuIsOpen?e.props.menuIsOpen:e.props.defaultMenuIsOpen,value:void 0!==e.props.value?e.props.value:e.props.defaultValue},e.onChange=function(t,r){e.callProp("onChange",t,r),e.setState({value:t})},e.onInputChange=function(t,r){var n=e.callProp("onInputChange",t,r);e.setState({inputValue:void 0!==n?n:t})},e.onMenuOpen=function(){e.callProp("onMenuOpen"),e.setState({menuIsOpen:!0})},e.onMenuClose=function(){e.callProp("onMenuClose"),e.setState({menuIsOpen:!1})},e}return(0,a.Z)(u,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"==typeof this.props[e]){for(var t,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return(t=this.props)[e].apply(t,n)}}},{key:"render",value:function(){var t=this,r=this.props,o=(r.defaultInputValue,r.defaultMenuIsOpen,r.defaultValue,(0,n.Z)(r,["defaultInputValue","defaultMenuIsOpen","defaultValue"]));return c.createElement(e,(0,i.Z)({},o,{ref:function(e){t.select=e},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),u}(c.Component),t.defaultProps=p,r}},20877:function(e,t,r){var n;n=function(e,t,r){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.i=function(e){return e},r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=15)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=t.Browser={};"undefined"!=typeof window&&(n.SUPPORTED="requestAnimationFrame"in window,n.SUPPORTS_TOUCH="ontouchstart"in window,n.touch=!1,n.dynamicInputDetection=!0,n.iOS=function(){return/iPhone|iPad|iPod/.test(navigator.userAgent)&&!window.MSStream}),t.Store=[],t.Selectors={POPPER:".tippy-popper",TOOLTIP:".tippy-tooltip",CONTENT:".tippy-tooltip-content",CIRCLE:"[x-circle]",ARROW:"[x-arrow]",TOOLTIPPED_EL:"[data-tooltipped]",CONTROLLER:"[data-tippy-controller]"};var i=t.Defaults={html:!1,position:"top",animation:"shift",animateFill:!0,arrow:!1,arrowSize:"regular",delay:0,trigger:"mouseenter focus",duration:350,interactive:!1,interactiveBorder:2,theme:"dark",size:"regular",distance:10,offset:0,hideOnClick:!0,multiple:!1,followCursor:!1,inertia:!1,flipDuration:350,sticky:!1,stickyDuration:200,appendTo:function(){return document.body},zIndex:9999,touchHold:!1,performance:!1,dynamicTitle:!1,useContext:!1,reactInstance:void 0,popperOptions:{},open:void 0,onRequestClose:function(){}};t.DefaultsKeys=n.SUPPORTED&&Object.keys(i)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t=[!1,"webkit"],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!==window.document.body.style[o])return o}return null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.replace(/-.+/,"")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(Element.prototype.closest||function(e){for(var t=this;t;){if(n.matches.call(t,e))return t;t=t.parentElement}}).call(e,t)};var n=r(8)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){window.requestAnimationFrame((function(){setTimeout(e,0)}))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return{tooltip:e.querySelector(n.Selectors.TOOLTIP),circle:e.querySelector(n.Selectors.CIRCLE),content:e.querySelector(n.Selectors.CONTENT)}};var n=r(0)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"visible"===e.style.visibility}},function(e,t,r){"use strict";function n(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),r=t.length;--r>=0&&t.item(r)!==this;);return r>-1}Object.defineProperty(t,"__esModule",{value:!0}),t.matches="undefined"==typeof window?n:Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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},i=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}}(),o=r(13),a=l(o),s=l(r(30)),u=r(0);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){return e.stopPropagation()},d={html:null,position:"top",animation:"shift",animateFill:!0,arrow:!1,delay:0,hideDelay:0,trigger:"mouseenter focus",duration:375,hideDuration:375,interactive:!1,interactiveBorder:2,theme:"dark",offset:0,hideOnClick:!0,multiple:!1,followCursor:!1,inertia:!1,popperOptions:{},onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){},disabled:!1,arrowSize:"regular",size:"regular",className:"",style:{},distance:10,onRequestClose:function(){},sticky:!1,stickyDuration:200,tag:"div",touchHold:!1,unmountHTMLWhenHide:!1,zIndex:9999},p=Object.keys(d),f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.initTippy=r._initTippy.bind(r),r.destroyTippy=r._destroyTippy.bind(r),r.updateTippy=r._updateTippy.bind(r),r.updateReactDom=r._updateReactDom.bind(r),r.showTooltip=r._showTooltip.bind(r),r.hideTooltip=r._hideTooltip.bind(r),r.updateSettings=r._updateSettings.bind(r),r.state={reactDOMValue:null},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),i(t,[{key:"componentDidMount",value:function(){"undefined"!=typeof window&&"undefined"!=typeof document&&this.initTippy()}},{key:"componentWillUnmount",value:function(){"undefined"!=typeof window&&"undefined"!=typeof document&&this.destroyTippy()}},{key:"componentDidUpdate",value:function(e){var t=this;if("undefined"!=typeof window&&"undefined"!=typeof document){if(!1===this.props.disabled&&!0===e.disabled)return this.updateSettings("disabled",!1),this.destroyTippy(),void this.initTippy();if(!0===this.props.disabled&&!1===e.disabled)return this.updateSettings("disabled",!0),void this.destroyTippy();!0!==this.props.open||e.open||(this.updateSettings("open",!0),setTimeout((function(){t.showTooltip()}),0)),!1===this.props.open&&!0===e.open&&(this.updateSettings("open",!1),this.hideTooltip()),this.props.html!==e.html&&this.updateReactDom(),this.props.title!==e.title&&this.updateTippy();var r=function(e,t){var r=[];return p.forEach((function(n){e[n]!==t[n]&&r.push(n)})),r}(this.props,e);r.forEach((function(e){t.updateSettings(e,t.props[e])}))}}},{key:"_showTooltip",value:function(){if("undefined"!=typeof window&&"undefined"!=typeof document&&this.tippy){var e=this.tippy.getPopperElement(this.tooltipDOM);this.tippy.show(e,this.props.duration)}}},{key:"_hideTooltip",value:function(){if("undefined"!=typeof window&&"undefined"!=typeof document&&this.tippy){var e=this.tippy.getPopperElement(this.tooltipDOM);this.tippy.hide(e,this.props.hideDuration)}}},{key:"_updateSettings",value:function(e,t){if("undefined"!=typeof window&&"undefined"!=typeof document&&this.tippy){var r=this.tippy.getPopperElement(this.tooltipDOM);this.tippy.updateSettings(r,e,t)}}},{key:"_updateReactDom",value:function(){if("undefined"!=typeof window&&"undefined"!=typeof document&&this.tippy){this.updateSettings("reactDOM",this.props.html);var e=this.tippy.getPopperElement(this.tooltipDOM);("visible"===e.style.visibility||this.props.open)&&this.tippy.updateForReact(e,this.props.html)}}},{key:"_updateTippy",value:function(){if("undefined"!=typeof window&&"undefined"!=typeof document&&this.tippy){var e=this.tippy.getPopperElement(this.tooltipDOM);this.tippy.update(e)}}},{key:"_initTippy",value:function(){var e=this;"undefined"!=typeof window&&"undefined"!=typeof document&&u.Browser.SUPPORTED&&(this.props.disabled?this.tippy=null:(this.props.title&&this.tooltipDOM.setAttribute("title",this.props.title),this.tippy=(0,s.default)(this.tooltipDOM,{disabled:this.props.disabled,position:this.props.position,animation:this.props.animation,animateFill:this.props.animateFill,arrow:this.props.arrow,arrowSize:this.props.arrowSize,delay:this.props.delay,hideDelay:this.props.hideDelay,trigger:this.props.trigger,duration:this.props.duration,hideDuration:this.props.hideDuration,interactive:this.props.interactive,interactiveBorder:this.props.interactiveBorder,theme:this.props.theme,offset:this.props.offset,hideOnClick:this.props.hideOnClick,multiple:this.props.multiple,size:this.props.size,followCursor:this.props.followCursor,inertia:this.props.inertia,popperOptions:this.props.popperOptions,onShow:this.props.onShow,onShown:this.props.onShown,onHide:this.props.onHide,onHidden:this.props.onHidden,distance:this.props.distance,reactDOM:this.props.html,setReactDOMValue:function(t){return e.setState({reactDOMValue:t})},unmountHTMLWhenHide:this.props.unmountHTMLWhenHide,open:this.props.open,sticky:this.props.sticky,stickyDuration:this.props.stickyDuration,tag:this.props.tag,touchHold:this.props.touchHold,onRequestClose:this.props.onRequestClose,useContext:this.props.useContext,reactInstance:this.props.useContext?this:void 0,performance:!0,html:this.props.rawTemplate?this.props.rawTemplate:void 0,zIndex:this.props.zIndex}),this.props.open&&this.showTooltip()))}},{key:"_destroyTippy",value:function(){if("undefined"!=typeof window&&"undefined"!=typeof document&&this.tippy){var e=this.tippy.getPopperElement(this.tooltipDOM);this.updateSettings("open",!1),this.tippy.hide(e,0),this.tippy.destroy(e),this.tippy=null}}},{key:"render",value:function(){var e=this,t=this.props.tag;return a.default.createElement(a.default.Fragment,null,a.default.createElement(t,{ref:function(t){e.tooltipDOM=t},title:this.props.title,className:this.props.className,tabIndex:this.props.tabIndex,style:n({display:"inline"},this.props.style)},this.props.children),this.state.reactDOMValue&&a.default.createElement("div",{onClick:c,onContextMenu:c,onDoubleClick:c,onDrag:c,onDragEnd:c,onDragEnter:c,onDragExit:c,onDragLeave:c,onDragOver:c,onDragStart:c,onDrop:c,onMouseDown:c,onMouseEnter:c,onMouseLeave:c,onMouseMove:c,onMouseOver:c,onMouseOut:c,onMouseUp:c,onKeyDown:c,onKeyPress:c,onKeyUp:c,onFocus:c,onBlur:c,onChange:c,onInput:c,onInvalid:c,onSubmit:c},this.state.reactDOMValue))}}]),t}(o.Component);f.defaultProps=d,t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=this,r=(0,o.default)(n.Store,(function(e){return e.el===t}));if(r){var s=r.popper,u=r.settings.offset,l=(0,i.default)(s.getAttribute("x-placement")),c=Math.round(s.offsetWidth/2),d=Math.round(s.offsetHeight/2),p=document.documentElement.offsetWidth||document.body.offsetWidth,f=e.pageX,m=e.pageY,h=void 0,g=void 0;switch(l){case"top":h=f-c+u,g=m-2.25*d;break;case"left":h=f-2*c-10,g=m-d+u;break;case"right":h=f+d,g=m-d+u;break;case"bottom":h=f-c+u,g=m+d/1.5}var v=f+5+c+u>p,b=f-5-c+u<0;"top"!==l&&"bottom"!==l||(v&&(h=p-5-2*c),b&&(h=5)),s.style[(0,a.default)("transform")]="translate3d("+h+"px, "+g+"px, 0)"}};var n=r(0),i=s(r(3)),o=s(r(2)),a=s(r(1));function s(e){return e&&e.__esModule?e:{default:e}}s(r(4))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return-(e-n.Defaults.distance)+"px"};var n=r(0)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.getAttribute("title");t&&e.setAttribute("data-original-title",t),e.removeAttribute("title")}},function(t,r){t.exports=e},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(13)),i=o(r(9));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(r){var o=a(r,[]);return n.default.createElement(i.default,t,n.default.createElement(e,o))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.withTooltip=t.Tooltip=void 0;var n=o(r(9)),i=o(r(14));function o(e){return e&&e.__esModule?e:{default:e}}t.Tooltip=n.default,t.withTooltip=i.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e,t=function(){n.Browser.touch=!0,n.Browser.iOS()&&document.body.classList.add("tippy-touch"),n.Browser.dynamicInputDetection&&window.performance&&document.addEventListener("mousemove",r)},r=(e=void 0,function(){var t=performance.now();t-e<20&&(n.Browser.touch=!1,document.removeEventListener("mousemove",r),n.Browser.iOS()||document.body.classList.remove("tippy-touch")),e=t});document.addEventListener("click",(function(e){if(!(e.target instanceof Element))return(0,i.default)();var t=(0,o.default)(e.target,n.Selectors.TOOLTIPPED_EL),r=(0,o.default)(e.target,n.Selectors.POPPER);if(r){var s=(0,a.default)(n.Store,(function(e){return e.popper===r}));if(!s)return;if(s.settings.interactive)return}if(t){var u=(0,a.default)(n.Store,(function(e){return e.el===t}));if(!u)return;var l=u.settings,c=l.hideOnClick,d=l.multiple,p=l.trigger;if(!d&&n.Browser.touch||!d&&-1!==p.indexOf("click"))return(0,i.default)(u);if(!0!==c||-1!==p.indexOf("click"))return}!(0,o.default)(e.target,n.Selectors.CONTROLLER)&&document.querySelector(n.Selectors.POPPER)&&(0,i.default)()})),document.addEventListener("touchstart",t),window.addEventListener("blur",(function(e){var t=document.activeElement;t&&t.blur&&s.matches.call(t,n.Selectors.TOOLTIPPED_EL)&&t.blur()})),!n.Browser.SUPPORTS_TOUCH&&(navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&document.addEventListener("pointerdown",t)};var n=r(0),i=u(r(25)),o=u(r(4)),a=u(r(2)),s=r(8);function u(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){var o=r.position,a=r.distance,s=r.arrow,u=r.animateFill,l=r.inertia,c=r.animation,d=r.arrowSize,p=r.size,f=r.theme,m=r.html,h=r.zIndex,g=r.interactive,v=document.createElement("div");v.setAttribute("class","tippy-popper"),v.setAttribute("role","tooltip"),v.setAttribute("aria-hidden","true"),v.setAttribute("id","tippy-tooltip-"+e),v.style.zIndex=h;var b=document.createElement("div");if(b.setAttribute("class","tippy-tooltip tippy-tooltip--"+p+" leave"),b.setAttribute("data-animation",c),f.split(" ").forEach((function(e){b.classList.add(e+"-theme")})),s){var y=document.createElement("div");y.setAttribute("class","arrow-"+d),y.setAttribute("x-arrow",""),b.appendChild(y)}if(u){b.setAttribute("data-animatefill","");var w=document.createElement("div");w.setAttribute("class","leave"),w.setAttribute("x-circle",""),b.appendChild(w)}l&&b.setAttribute("data-inertia",""),g&&b.setAttribute("data-interactive","");var D=document.createElement("div");if(D.setAttribute("class","tippy-tooltip-content"),m){var E=void 0;m instanceof Element?(D.appendChild(m),E="#"+m.id||0):(D.innerHTML=document.getElementById(m.replace("#","")).innerHTML,E=m),v.classList.add("html-template"),g&&v.setAttribute("tabindex","-1"),b.setAttribute("data-template-id",E)}else D.innerHTML=t;return b.style[(0,n.default)(o)]=(0,i.default)(a),b.appendChild(D),v.appendChild(b),v};var n=o(r(3)),i=o(r(11));function o(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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};t.default=function(e){var t=e.el,r=e.popper,c=e.settings,d=c.position,p=c.popperOptions,f=c.offset,m=c.distance,h=c.flipDuration,g=(0,u.default)(r).tooltip,v=n({placement:d},p||{},{modifiers:n({},p?p.modifiers:{},{flip:n({padding:m+5},p&&p.modifiers?p.modifiers.flip:{}),offset:n({offset:f},p&&p.modifiers?p.modifiers.offset:{})}),onUpdate:function(){var e=g.style;e.top="",e.bottom="",e.left="",e.right="",e[(0,s.default)(r.getAttribute("x-placement"))]=(0,l.default)(m)}});if(window.MutationObserver){var b=r.style,y=new MutationObserver((function(){b[(0,a.default)("transitionDuration")]="0ms",e.popperInstance.update(),(0,o.default)((function(){b[(0,a.default)("transitionDuration")]=h+"ms"}))}));y.observe(r,{childList:!0,subtree:!0,characterData:!0}),e._mutationObserver=y}return new i.default(t,r,v)};var i=c(r(38)),o=c(r(5)),a=c(r(1)),s=c(r(3)),u=c(r(6)),l=c(r(11));function c(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=this;return e.reduce((function(e,r){var l=c,d=(0,s.default)(t.settings.performance?t.settings:(0,n.default)(r,t.settings)),p=d.html,f=d.reactDOM,m=d.trigger,h=d.touchHold,g=r.getAttribute("title");if(!g&&!p&&!f)return e;r.setAttribute("data-tooltipped",""),r.setAttribute("aria-describedby","tippy-tooltip-"+l),(0,u.default)(r);var v=(0,i.default)(l,g,d),b=a.default.call(t,r,v,d),y=[];return m.trim().split(" ").forEach((function(e){return y=y.concat((0,o.default)(e,r,b,h))})),e.push({id:l,el:r,popper:v,settings:d,listeners:y,tippyInstance:t}),c++,e}),[])};var n=l(r(24)),i=l(r(17)),o=l(r(20)),a=l(r(23)),s=l(r(21)),u=l(r(12));function l(e){return e&&e.__esModule?e:{default:e}}r(0);var c=1},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,i){var o=[];return"manual"===e||(t.addEventListener(e,r.handleTrigger),o.push({event:e,handler:r.handleTrigger}),"mouseenter"===e&&(n.Browser.SUPPORTS_TOUCH&&i&&(t.addEventListener("touchstart",r.handleTrigger),o.push({event:"touchstart",handler:r.handleTrigger}),t.addEventListener("touchend",r.handleMouseleave),o.push({event:"touchend",handler:r.handleMouseleave})),t.addEventListener("mouseleave",r.handleMouseleave),o.push({event:"mouseleave",handler:r.handleMouseleave})),"focus"===e&&(t.addEventListener("blur",r.handleBlur),o.push({event:"blur",handler:r.handleBlur}))),o};var n=r(0)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.arrow&&(e.animateFill=!1),e.appendTo&&"function"==typeof e.appendTo&&(e.appendTo=e.appendTo()),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e instanceof Element?[e]:Array.isArray(e)?e:[].slice.call(document.querySelectorAll(e))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){var s=this,u=(r.position,r.delay),l=(r.duration,r.interactive),c=(r.interactiveBorder,r.distance,r.hideOnClick),d=r.trigger,p=r.touchHold,f=void r.touchWait,m=void 0,h=function(){clearTimeout(f),clearTimeout(m)},g=function(){if(h(),!(0,i.default)(t)){var e=Array.isArray(u)?u[0]:u;u?f=setTimeout((function(){return s.show(t)}),e):s.show(t)}},v=function(){h();var e=Array.isArray(u)?u[1]:u;u?m=setTimeout((function(){return s.hide(t)}),e):s.hide(t)};return{handleTrigger:function(r){var o="mouseenter"===r.type&&n.Browser.SUPPORTS_TOUCH&&n.Browser.touch;if(!o||!p){var a="click"===r.type,u="persistent"!==c;a&&(0,i.default)(t)&&u?v():function(e){s.callbacks.wait?s.callbacks.wait.call(t,g,e):g()}(r),o&&n.Browser.iOS()&&e.click&&e.click()}},handleMouseleave:function(i){if(!("mouseleave"===i.type&&n.Browser.SUPPORTS_TOUCH&&n.Browser.touch&&p)){if(l)return document.body.addEventListener("mouseleave",v),void document.addEventListener("mousemove",(function i(s){var u=function(){document.body.removeEventListener("mouseleave",v),document.removeEventListener("mousemove",i),v()},l=(0,o.default)(s.target,n.Selectors.TOOLTIPPED_EL),c=(0,o.default)(s.target,n.Selectors.POPPER)===t,p=l===e,f=-1!==d.indexOf("click");if(l&&l!==e)return u();c||p||f||(0,a.default)(s,t,r)&&u()}));v()}},handleBlur:function(e){e.relatedTarget&&!n.Browser.touch&&((0,o.default)(e.relatedTarget,n.Selectors.POPPER)||v())}}};var n=r(0),i=s(r(7)),o=s(r(4)),a=s(r(32));function s(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=n.DefaultsKeys.reduce((function(r,n){var i=e.getAttribute("data-"+n.toLowerCase())||t[n];return"false"===i&&(i=!1),"true"===i&&(i=!0),isFinite(i)&&!isNaN(parseFloat(i))&&(i=parseFloat(i)),"string"==typeof i&&"["===i.trim().charAt(0)&&(i=JSON.parse(i)),r[n]=i,r}),{});return Object.assign({},t,r)};var n=r(0)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){n.Store.forEach((function(t){var r=t.popper,n=t.tippyInstance,i=t.settings,o=i.appendTo,a=i.hideOnClick,s=i.trigger;if(o.contains(r)){var u=!0===a||-1!==s.indexOf("focus"),l=!e||r!==e.popper;u&&l&&(t.settings.onRequestClose(),n.hide(r))}}))};var n=r(0)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(){return!e.done&&(e.done=!0,(0,o.default)(),!0)};var n,i=r(16),o=(n=i)&&n.__esModule?n:{default:n}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.popper,r=e.popperInstance,a=e.settings.stickyDuration;(0,n.default)((function e(){r&&r.scheduleUpdate(),t.style[(0,i.default)("transitionDuration")]=a+"ms",(0,o.default)(t)?window.requestAnimationFrame(e):t.style[(0,i.default)("transitionDuration")]=""}))};var n=a(r(5)),i=a(r(1)),o=a(r(7));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.el,r=e.popper,a=e.settings,s=a.appendTo,u=a.followCursor;s.contains(r)||(s.appendChild(r),e.popperInstance?(e.popperInstance.update(),u&&!n.Browser.touch||e.popperInstance.enableEventListeners()):e.popperInstance=(0,o.default)(e),u&&!n.Browser.touch&&(t.addEventListener("mousemove",i.default),e.popperInstance.disableEventListeners()))};var n=r(0),i=a(r(10)),o=a(r(18));function a(e){return e&&e.__esModule?e:{default:e}}a(r(1))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if(!t)return r();var n=(0,o.default)(e.popper).tooltip,i=!1,a=function(e){e.target!==n||i||(i=!0,r())};n.addEventListener("webkitTransitionEnd",a),n.addEventListener("transitionend",a),clearTimeout(e._transitionendTimeout),e._transitionendTimeout=setTimeout((function(){i||r()}),t)},r(0);var n,i=r(6),o=(n=i)&&n.__esModule?n:{default:n}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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},i=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}}(),o=r(0),a=I(r(39)),s=I(r(26)),u=I(r(5)),l=(I(r(1)),I(r(2))),c=I(r(34)),d=I(r(12)),p=I(r(33)),f=I(r(37)),m=I(r(35)),h=I(r(6)),g=I(r(31)),v=I(r(7)),b=I(r(36)),y=I(r(10)),w=I(r(22)),D=I(r(29)),E=I(r(28)),C=I(r(27)),S=I(r(19));function I(e){return e&&e.__esModule?e:{default:e}}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var O=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};x(this,e),o.Browser.SUPPORTED&&((0,s.default)(),this.state={destroyed:!1},this.selector=t,this.settings=n({},o.Defaults,r),(r.show||r.shown||r.hide||r.hidden)&&console.warn("Callbacks without the `on` prefix are deprecated (with the exception of `wait`). Use onShow, onShown, onHide, and onHidden instead."),this.callbacks={wait:r.wait,show:r.onShow||r.show||b.default,shown:r.onShown||r.shown||b.default,hide:r.onHide||r.hide||b.default,hidden:r.onHidden||r.hidden||b.default},this.store=S.default.call(this,(0,w.default)(t)),o.Store.push.apply(o.Store,this.store))}return i(e,[{key:"getPopperElement",value:function(e){try{return(0,l.default)(this.store,(function(t){return t.el===e})).popper}catch(t){console.error("[getPopperElement]: Element passed as the argument does not exist in the instance")}}},{key:"getReferenceElement",value:function(e){try{return(0,l.default)(this.store,(function(t){return t.popper===e})).el}catch(t){console.error("[getReferenceElement]: Popper passed as the argument does not exist in the instance")}}},{key:"getReferenceData",value:function(e){return(0,l.default)(this.store,(function(t){return t.el===e||t.popper===e}))}},{key:"updateSettings",value:function(e,t,r){var i=(0,l.default)(this.store,(function(t){return t.popper===e}));if(i){var o=n({},i.settings,function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},t,r));i.settings=o}}},{key:"updateForReact",value:function(e,t){var r=e.querySelector(o.Selectors.CONTENT),n=(0,l.default)(this.store,(function(t){return t.popper===e}));if(n){var i=n.settings,s=i.useContext,u=i.setReactDOMValue;s?u(a.default.createPortal(t,r)):a.default.render(t,r)}}},{key:"show",value:function(e,t){var r=this;if(!this.state.destroyed){var n=(0,l.default)(this.store,(function(t){return t.popper===e}));if(n){var i=(0,h.default)(e),a=i.tooltip,s=i.circle,c=i.content;if(document.body.contains(n.el)){if(this.callbacks.show.call(e),!n.settings||!1!==n.settings.open){n.settings.reactDOM&&this.updateForReact(e,n.settings.reactDOM);var p=n.el,b=n.settings,y=(b.appendTo,b.sticky),w=b.interactive,S=b.followCursor,I=b.flipDuration,x=b.duration;if(b.dynamicTitle){var O=p.getAttribute("title");O&&(c.innerHTML=O,(0,d.default)(p))}var A=void 0!==t?t:Array.isArray(x)?x[0]:x;(0,g.default)([e,a,s],0),(0,E.default)(n),e.style.visibility="visible",e.setAttribute("aria-hidden","false"),(0,u.default)((function(){S&&!o.Browser.touch||(n.popperInstance.update(),(0,g.default)([e],I)),(0,g.default)([a,s],A),s&&(c.style.opacity=1),w&&p.classList.add("active"),y&&(0,C.default)(n),(0,f.default)(a,s),(0,m.default)([a,s],(function(e){e.contains("tippy-notransition")&&e.remove("tippy-notransition"),e.remove("leave"),e.add("enter")})),(0,D.default)(n,A,(function(){(0,v.default)(e)&&!n._onShownFired&&(w&&e.focus(),a.classList.add("tippy-notransition"),n._onShownFired=!0,r.callbacks.shown.call(e))}))}))}}else this.destroy(e)}}}},{key:"hide",value:function(e,t){var r=this;if(!this.state.destroyed){this.callbacks.hide.call(e);var n=(0,l.default)(this.store,(function(t){return t.popper===e}));if(n){var i=(0,h.default)(e),o=i.tooltip,s=i.circle,u=i.content;if(!1!==n.settings.disabled||!n||!n.settings.open){var c=n&&n.settings&&n.settings.unmountHTMLWhenHide&&n.settings.reactDOM,d=n.el,f=n.settings,b=f.appendTo,w=(f.sticky,f.interactive),E=(f.followCursor,f.html),C=f.trigger,S=f.duration,I=void 0!==t?t:Array.isArray(S)?S[1]:S;n._onShownFired=!1,w&&d.classList.remove("active"),e.style.visibility="hidden",e.setAttribute("aria-hidden","true"),(0,g.default)([o,s,s?u:null],I),s&&(u.style.opacity=0),(0,m.default)([o,s],(function(e){e.contains("tippy-tooltip")&&e.remove("tippy-notransition"),e.remove("enter"),e.add("leave")})),E&&-1!==C.indexOf("click")&&(0,p.default)(d)&&d.focus(),(0,D.default)(n,I,(function(){!(0,v.default)(e)&&b.contains(e)&&"1"!==getComputedStyle(o).opacity&&(d.removeEventListener("mousemove",y.default),n.popperInstance.disableEventListeners(),b.removeChild(e),r.callbacks.hidden.call(e),c&&a.default.unmountComponentAtNode(u))}))}}}}},{key:"update",value:function(e){if(!this.state.destroyed){var t=(0,l.default)(this.store,(function(t){return t.popper===e}));if(t){var r=(0,h.default)(e).content,n=t.el,i=t.settings.html;i instanceof Element?console.warn("Aborted: update() should not be used if `html` is a DOM element"):(r.innerHTML=i?document.getElementById(i.replace("#","")).innerHTML:n.getAttribute("title")||n.getAttribute("data-original-title"),i||(0,d.default)(n))}}}},{key:"destroy",value:function(e,t){var r=this;if(!this.state.destroyed){var n=(0,l.default)(this.store,(function(t){return t.popper===e}));if(n){var i=n.el,a=n.popperInstance,s=n.listeners,u=n._mutationObserver;(0,v.default)(e)&&this.hide(e,0),s.forEach((function(e){return i.removeEventListener(e.event,e.handler)})),i.setAttribute("title",i.getAttribute("data-original-title")),i.removeAttribute("data-original-title"),i.removeAttribute("data-tooltipped"),i.removeAttribute("aria-describedby"),a&&a.destroy(),u&&u.disconnect(),o.Store.splice((0,c.default)(o.Store,(function(t){return t.popper===e})),1),(void 0===t||t)&&(this.store=o.Store.filter((function(e){return e.tippyInstance===r})))}}}},{key:"destroyAll",value:function(){var e=this;if(!this.state.destroyed){var t=this.store.length;this.store.forEach((function(r,n){var i=r.popper;e.destroy(i,n===t-1)})),this.store=null,this.state.destroyed=!0}}}]),e}();function A(e,t){return new O(e,t)}A.Browser=o.Browser,A.Defaults=o.Defaults,A.disableDynamicInputDetection=function(){return o.Browser.dynamicInputDetection=!1},A.enableDynamicInputDetection=function(){return o.Browser.dynamicInputDetection=!0},t.default=A},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){e.forEach((function(e){if(e){var r=s.matches.call(e,i.Selectors.CONTENT)?Math.round(t/1.3):t;e.style[(0,a.default)("transitionDuration")]=r+"ms"}}))};var n,i=r(0),o=r(1),a=(n=o)&&n.__esModule?n:{default:n},s=r(8)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){if(!t.getAttribute("x-placement"))return!0;var n=e.clientX,i=e.clientY,a=r.interactiveBorder,s=r.distance,u=t.getBoundingClientRect(),l=(0,o.default)(t.getAttribute("x-placement")),c=a+s,d={top:u.top-i>a,bottom:i-u.bottom>a,left:u.left-n>a,right:n-u.right>a};switch(l){case"top":d.top=u.top-i>c;break;case"bottom":d.bottom=i-u.bottom>c;break;case"left":d.left=u.left-n>c;break;case"right":d.right=n-u.right>c}return d.top||d.bottom||d.left||d.right};var n,i=r(3),o=(n=i)&&n.__esModule?n:{default:n}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return Array.prototype.findIndex?e.findIndex(t):e.indexOf((0,o.default)(e,t))};var n,i=r(2),o=(n=i)&&n.__esModule?n:{default:n}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){e.forEach((function(e){e&&t(e.classList)}))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t?window.getComputedStyle(t)[(0,o.default)("transform")]:window.getComputedStyle(e).opacity};var n,i=r(1),o=(n=i)&&n.__esModule?n:{default:n}},function(e,r){e.exports=t},function(e,t){e.exports=r}])},e.exports=n(r(89526),r(65276),r(73961))},27670:function(e,t,r){"use strict";r.d(t,{DE:function(){return d},MT:function(){return l},md:function(){return f},qC:function(){return p}});var n=r(19677);function i(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var o="function"==typeof Symbol&&Symbol.observable||"@@observable",a=function(){return Math.random().toString(36).substring(7).split("").join(".")},s={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function u(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function l(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(i(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(i(1));return r(l)(e,t)}if("function"!=typeof e)throw new Error(i(2));var a=e,c=t,d=[],p=d,f=!1;function m(){p===d&&(p=d.slice())}function h(){if(f)throw new Error(i(3));return c}function g(e){if("function"!=typeof e)throw new Error(i(4));if(f)throw new Error(i(5));var t=!0;return m(),p.push(e),function(){if(t){if(f)throw new Error(i(6));t=!1,m();var r=p.indexOf(e);p.splice(r,1),d=null}}}function v(e){if(!u(e))throw new Error(i(7));if(void 0===e.type)throw new Error(i(8));if(f)throw new Error(i(9));try{f=!0,c=a(c,e)}finally{f=!1}for(var t=d=p,r=0;r<
1
+ var WPRecipeMaker;(self.webpackChunkWPRecipeMaker=self.webpackChunkWPRecipeMaker||[]).push([[97],{5831:function(e,t,r){"use strict";r.d(t,{L:function(){return s},o:function(){return a}});r(38472),r(54883),r(68995),r(39275),r(22321),r(29897),r(11592),r(12798),r(67838);var n=r(6),i=r.n(n),o={"¼":"1/4","½":"1/2","¾":"3/4","⅐":"1/7","⅑":"1/9","⅒":"1/10","⅓":"1/3","⅔":"2/3","⅕":"1/5","⅖":"2/5","⅗":"3/5","⅘":"4/5","⅙":"1/6","⅚":"5/6","⅛":"1/8","⅜":"3/8","⅝":"5/8","⅞":"7/8"};function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=e,a=!1;if(r){var s=void 0!==window.wprmp_public?wprmp_public.settings.fractions_enabled:wprmp_admin.settings.fractions_enabled;if(s){var u=void 0!==window.wprmp_public?wprmp_public.settings.fractions_use_mixed:wprmp_admin.settings.fractions_use_mixed,l=void 0!==window.wprmp_public?wprmp_public.settings.fractions_use_symbols:wprmp_admin.settings.fractions_use_symbols,c=parseInt(void 0!==window.wprmp_public?wprmp_public.settings.fractions_max_denominator:wprmp_admin.settings.fractions_max_denominator);c=c>1?c:8;var d=i()(e,c,u);if(d&&3===d.length&&!isNaN(d[0])&&!isNaN(d[1])&&!isNaN(d[2])){var p="";if(0<d[0]&&(p+="".concat(d[0]," ")),0<d[1]?0<d[2]&&(p+=1===d[2]?d[1]:"".concat(d[1],"/").concat(d[2])):0===d[0]&&(p+="1/".concat(c)),p){if(l)for(var f of(p=" "+p+" ",Object.keys(o))){var m=o[f];p=p.replace(" ".concat(m," ")," ".concat(f," "))}n=p.trim(),a=!0}}}}if(!a){t=parseInt(t),(isNaN(t)||t<0)&&(t=0);do{if(n=parseFloat(parseFloat(e).toFixed(t)),3<++t)break}while(0==n);n=""+n;var h=void 0!==window.wprmp_public?wprmp_public.settings.decimal_separator:wprmp_admin.settings.decimal_separator;"comma"===h&&(n=n.replace(".",","))}return n}function s(e){var t=(e=(e=(e=(e=(e=((e=(e=(e=""+e).replace(",",".")).replace(" to ","-"))+"").replace(/(\u00BC|\u00BD|\u00BE|\u2150|\u2151|\u2152|\u2153|\u2154|\u2155|\u2156|\u2157|\u2158|\u2159|\u215A|\u215B|\u215C|\u215D|\u215E)/,(function(e,t){return" "+o[t]}))).replace(/(<([^>]+)>)/gi,"")).replace(/(\[([^\]]+)\])/gi,"")).replace(/[^\d\s\.\/-]/gi,"")).trim()).split(" "),r=!1;if(""!==e){r=0;for(var n=0;n<t.length;n++)if(""!==t[n].trim()){var i=t[n].split("/",2),a=parseFloat(i[0]);if(void 0!==i[1]){var s=parseFloat(i[1]);0!==s&&(a/=s)}isNaN(a)||(r+=a)}}return r}},80926:function(e,t,r){"use strict";r.r(t);var n=r(73961),i=r(89526),o=r(34823),a=r.n(o),s=r(48618),u=r(52082),l=r(99237),c=r(95075),d=e=>{var t=!1,r=!!e.help&&e.help,n="button";if(e.required&&(!wprm_admin.addons.hasOwnProperty(e.required)||!0!==wprm_admin.addons[e.required]))if(t=!0,"premium"!==e.required){var o=e.required[0].toUpperCase()+e.required.substring(1);r="WP Recipe Maker ".concat(o," Bundle Only")}else r="WP Recipe Maker Premium Only";return e.isPrimary&&(n+=" button-primary"),t&&(n+=" wprm-button-required"),i.createElement(c.Z,{content:r},i.createElement("button",{className:n,tabIndex:e.disableTab?"-1":null,onClick:t?()=>{confirm("Want to learn more about the version required for this feature?")&&window.open("https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/","_blank")}:e.onClick},e.children))},p=r(96005),f=r(86605),m=e=>{var t=!!e.action&&e.action.type,r=[{value:"delete",label:(0,u.S)("Delete Actions"),default:!1}];return i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-bulk-edit-label"},(0,u.S)("Select an action to perform:")),i.createElement("div",{className:"wprm-admin-modal-bulk-edit-actions"},r.map((r=>i.createElement("div",{className:"wprm-admin-modal-bulk-edit-action",key:r.value},i.createElement("input",{type:"radio",value:r.value,name:"wprm-admin-radio-bulk-edit-action",id:"wprm-admin-radio-bulk-edit-action-".concat(r.value),checked:t===r.value,onChange:()=>{var t={type:r.value,options:r.default};e.onActionChange(t)}}),i.createElement("label",{htmlFor:"wprm-admin-radio-bulk-edit-action-".concat(r.value)},r.label))))))},h=e=>{var t=!!e.action&&e.action.type,r=[{value:"reload",label:(0,u.S)("Reload Recipes"),default:!1},{value:"delete",label:(0,u.S)("Delete Saved Collections"),default:!1}];return i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-bulk-edit-label"},(0,u.S)("Select an action to perform:")),i.createElement("div",{className:"wprm-admin-modal-bulk-edit-actions"},r.map((r=>i.createElement("div",{className:"wprm-admin-modal-bulk-edit-action",key:r.value},i.createElement("input",{type:"radio",value:r.value,name:"wprm-admin-radio-bulk-edit-action",id:"wprm-admin-radio-bulk-edit-action-".concat(r.value),checked:t===r.value,onChange:()=>{var t={type:r.value,options:r.default};e.onActionChange(t)}}),i.createElement("label",{htmlFor:"wprm-admin-radio-bulk-edit-action-".concat(r.value)},r.label))))))},g=r(59905),v=r(24207);function b(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 y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){w(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function w(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var D=e=>{var t=!!e.action&&e.action.type,r=[{value:"change-link",label:(0,u.S)("Change Link"),default:""},{value:"change-nofollow",label:(0,u.S)("Change Link Nofollow"),default:"default"},{value:"change-html",label:(0,u.S)("Change Affiliate HTML"),default:""},{value:"export",label:(0,u.S)("Export Equipment"),default:!1,required:"premium"},{value:"delete",label:(0,u.S)("Delete Equipment"),default:!1}];return i.createElement("form",null,i.createElement("div",{className:"wprm-admin-modal-bulk-edit-label"},(0,u.S)("Select an action to perform:")),i.createElement("div",{className:"wprm-admin-modal-bulk-edit-actions"},r.map((r=>i.createElement("div",{className:"wprm-admin-modal-bulk-edit-action",key:r.value},i.createElement("input",{type:"radio",value:r.value,name:"wprm-admin-radio-bulk-edit-action",id:"wprm-admin-radio-bulk-edit-action-".concat(r.value),checked:t===r.value,onChange:()=>{var t={type:r.value,options:r.default};e.onActionChange(t)}}),i.createElement("label",{htmlFor:"wprm-admin-radio-bulk-edit-action-".concat(r.value)},r.label))))),t&&!1!==e.action.options&&i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-bulk-edit-label"},(0,u.S)("Action options:")),i.createElement("div",{className:"wprm-admin-modal-bulk-edit-options"},"change-link"===t&&i.createElement(g.Z,{name:"equipment-link",value:e.action.options,placeholder:(0,u.S)("Equipment Link"),onChange:t=>{var r=y(y({},e.action),{},{options:t});e.onActionChange(r)}}),"change-nofollow"===t&&i.createElement(v.Z,{id:"nofollow",options:wprm_admin_modal.options.equipment_link_nofollow,value:e.action.options,onChange:t=>{var r=y(y({},e.action),{},{options:t});e.onActionChange(r)}}),"change-html"===t&&i.createElement(g.Z,{name:"equipment-html",value:e.action.options,placeholder:(0,u.S)("Affiliate HTML"),onChange:t=>{var r=y(y({},e.action),{},{options:t});e.onActionChange(r)}}))))};function E(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){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){S(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function S(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var I=e=>{var t=!!e.action&&e.action.type,r=[{value:"change-group",label:(0,u.S)("Change Shopping List Group"),default:""},{value:"change-link",label:(0,u.S)("Change Link"),default:""},{value:"change-nofollow",label:(0,u.S)("Change Link Nofollow"),default:"default"},{value:"create-nutrition",label:(0,u.S)("Add as Custom Nutrition Ingredient"),default:!1},{value:"export",label:(0,u.S)("Export Ingredients"),default:!1,required:"premium"},{value:"delete",label:(0,u.S)("Delete Ingredients"),default:!1}];return i.createElement("form",null,i.createElement("div",{className:"wprm-admin-modal-bulk-edit-label"},(0,u.S)("Select an action to perform:")),i.createElement("div",{className:"wprm-admin-modal-bulk-edit-actions"},r.map((r=>i.createElement("div",{className:"wprm-admin-modal-bulk-edit-action",key:r.value},i.createElement("input",{type:"radio",value:r.value,name:"wprm-admin-radio-bulk-edit-action",id:"wprm-admin-radio-bulk-edit-action-".concat(r.value),checked:t===r.value,onChange:()=>{var t={type:r.value,options:r.default};e.onActionChange(t)}}),i.createElement("label",{htmlFor:"wprm-admin-radio-bulk-edit-action-".concat(r.value)},r.label))))),t&&!1!==e.action.options&&i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-bulk-edit-label"},(0,u.S)("Action options:")),i.createElement("div",{className:"wprm-admin-modal-bulk-edit-options"},"change-group"===t&&i.createElement(g.Z,{name:"shopping-list-group",value:e.action.options,placeholder:(0,u.S)("Shopping List Group"),onChange:t=>{var r=C(C({},e.action),{},{options:t});e.onActionChange(r)}}),"change-link"===t&&i.createElement(g.Z,{name:"ingredient-link",value:e.action.options,placeholder:(0,u.S)("Ingredient Link"),onChange:t=>{var r=C(C({},e.action),{},{options:t});e.onActionChange(r)}}),"change-nofollow"===t&&i.createElement(v.Z,{id:"nofollow",options:wprm_admin_modal.options.ingredient_link_nofollow,value:e.action.options,onChange:t=>{var r=C(C({},e.action),{},{options:t});e.onActionChange(r)}}))))},x=e=>{var t=!!e.action&&e.action.type,r=[{value:"delete",label:(0,u.S)("Delete Units"),default:!1}];return i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-bulk-edit-label"},(0,u.S)("Select an action to perform:")),i.createElement("div",{className:"wprm-admin-modal-bulk-edit-actions"},r.map((r=>i.createElement("div",{className:"wprm-admin-modal-bulk-edit-action",key:r.value},i.createElement("input",{type:"radio",value:r.value,name:"wprm-admin-radio-bulk-edit-action",id:"wprm-admin-radio-bulk-edit-action-".concat(r.value),checked:t===r.value,onChange:()=>{var t={type:r.value,options:r.default};e.onActionChange(t)}}),i.createElement("label",{htmlFor:"wprm-admin-radio-bulk-edit-action-".concat(r.value)},r.label))))),t&&!1!==e.action.options&&i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-bulk-edit-label"},(0,u.S)("Action options:")),i.createElement("div",{className:"wprm-admin-modal-bulk-edit-options"})))},O=e=>{var t=!!e.action&&e.action.type,r=[{value:"delete",label:(0,u.S)("Delete Ratings"),default:!1}];return i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-bulk-edit-label"},(0,u.S)("Select an action to perform:")),i.createElement("div",{className:"wprm-admin-modal-bulk-edit-actions"},r.map((r=>i.createElement("div",{className:"wprm-admin-modal-bulk-edit-action",key:r.value},i.createElement("input",{type:"radio",value:r.value,name:"wprm-admin-radio-bulk-edit-action",id:"wprm-admin-radio-bulk-edit-action-".concat(r.value),checked:t===r.value,onChange:()=>{var t={type:r.value,options:r.default};e.onActionChange(t)}}),i.createElement("label",{htmlFor:"wprm-admin-radio-bulk-edit-action-".concat(r.value)},r.label))))))},A=(r(38472),r(43636)),M=r(69347),P=(r(54883),r(68995),r(33130),r(2778)),B=r.n(P),N=r(844),k=r(17692),T=r(63661),j=r(20240),L=r(47061),F=r(59900),R=r(24269),_=r(24593),Z=r(70886),H=(r(12821),r(39874)),W=r(23554),U=(r(72144),r(72638),r(51916));function G(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,Z.Z)(e);if(t){var i=(0,Z.Z)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,_.Z)(this,r)}}function z(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}var q,V,J,Y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r=String(e).toLowerCase(),n=String(t.value).toLowerCase(),i=String(t.label).toLowerCase();return n===r||i===r},Q=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?z(Object(r),!0).forEach((function(t){(0,j.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):z(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({allowCreateWhileLoading:!1,createOptionPosition:"last"},{formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,r){return!(!e||t.some((function(t){return Y(e,t)}))||r.some((function(t){return Y(e,t)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}}),X=(q=W.S,J=V=function(e){(0,R.Z)(r,e);var t=G(r);function r(e){var n;(0,L.Z)(this,r),(n=t.call(this,e)).select=void 0,n.onChange=function(e,t){var r=n.props,i=r.getNewOptionData,o=r.inputValue,a=r.isMulti,s=r.onChange,u=r.onCreateOption,l=r.value,c=r.name;if("select-option"!==t.action)return s(e,t);var d=n.state.newOption,p=Array.isArray(e)?e:[e];if(p[p.length-1]!==d)s(e,t);else if(u)u(o);else{var f=i(o,o),m={action:"create-option",name:c};s(a?[].concat((0,T.Z)((0,H.C)(l)),[f]):f,m)}};var i=e.options||[];return n.state={newOption:void 0,options:i},n}return(0,F.Z)(r,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=e.allowCreateWhileLoading,r=e.createOptionPosition,n=e.formatCreateLabel,i=e.getNewOptionData,o=e.inputValue,a=e.isLoading,s=e.isValidNewOption,u=e.value,l=e.options||[],c=this.state.newOption;c=s(o,(0,H.C)(u),l)?i(o,n(o)):void 0,this.setState({newOption:c,options:!t&&a||!c?l:"first"===r?[c].concat((0,T.Z)(l)):[].concat((0,T.Z)(l),[c])})}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"render",value:function(){var e=this,t=this.state.options;return i.createElement(q,(0,k.Z)({},this.props,{ref:function(t){e.select=t},options:t,onChange:this.onChange}))}}]),r}(i.Component),V.defaultProps=Q,J),K=(0,U.m)(X);function $(){return $=Object.assign?Object.assign.bind():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 ee(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 te(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(r),!0).forEach((function(t){re(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ee(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function re(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class ne extends i.Component{shouldComponentUpdate(e){return this.props.id!==e.id||JSON.stringify(this.props.value)!==JSON.stringify(e.value)}render(){var e=this,t=wprm_admin_modal.categories[this.props.id].terms,r=[],n=[],o=function(t){var i={value:t.term_id,label:B().decode(t.name)};r.push(i),e.props.value.find((e=>e.term_id===t.term_id||e.name===t.term_id))&&n.push(i)};for(var a of t)o(a);var s=this.props.custom?this.props.custom:{},l=this.props.creatable?K:N.ZP;return i.createElement(l,$({isMulti:!0,options:r,value:n,placeholder:this.props.creatable?(0,u.S)("Select from list or type to create..."):(0,u.S)("Select from list..."),onChange:t=>{var r=[];if(t){var n=function(t){t.hasOwnProperty("__isNew__")&&t.__isNew__&&wprm_admin_modal.categories[e.props.id].terms.push({term_id:t.label,name:t.label});var n=wprm_admin_modal.categories[e.props.id].terms.find((e=>e.term_id===t.value));n&&r.push(n)};for(var i of t)n(i)}this.props.onChange(r)},styles:{placeholder:e=>te(te({},e),{},{color:"#444",opacity:"0.333"}),control:e=>te(te({},e),{},{backgroundColor:"white"}),container:e=>te(te({},e),{},{width:"100%",maxWidth:this.props.width?this.props.width:"100%"})}},s))}}function ie(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 oe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(r),!0).forEach((function(t){ae(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ie(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ae(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var se=e=>{var t=!!e.action&&e.action.type,r=!1,n=[];Object.keys(wprm_admin_manage.taxonomies).map(((e,t)=>{var i=e.substr(5);r||(r=i),n.push({value:i,label:wprm_admin_manage.taxonomies[e].name})}));var o=[];return 0<n.length&&o.push({value:"add-terms",label:(0,u.S)("Add Terms"),default:{taxonomy:r,terms:[]}},{value:"remove-terms",label:(0,u.S)("Remove Terms"),default:{taxonomy:r,terms:[]}}),"public"===wprm_admin.settings.post_type_structure&&(o.push({value:"change-status",label:(0,u.S)("Change Recipe Status"),default:"draft"},{value:"change-password",label:(0,u.S)("Change Password"),default:""}),wprm_admin_manage.multilingual&&"wpml"===wprm_admin_manage.multilingual.plugin&&o.push({value:"change-language",label:(0,u.S)("Change Language"),default:wprm_admin_manage.multilingual.default})),"public"!==wprm_admin.settings.post_type_structure&&"manual"!==wprm_admin.settings.recipe_use_author||o.push({value:"change-post-author",label:(0,u.S)("Change Post Author"),default:"parent"}),o.push({value:"change-type",label:(0,u.S)("Change Recipe Type"),default:"food"},{value:"change-author",label:(0,u.S)("Change Display Author"),default:{author:"default",author_name:"",author_link:""}},{value:"change-servings",label:(0,u.S)("Change Servings"),default:{servings:"",servings_unit:""}},{value:"recalculate-time",label:(0,u.S)("Recalculate Total Time"),default:!1}),wprm_admin.addons.premium&&o.push({value:"user-rating",label:(0,u.S)("Set User Rating by Author"),default:"5"},{value:"custom-nutrition-ingredient",label:(0,u.S)("Create Custom Nutrition Ingredient"),default:!1}),wprm_admin.addons.pro&&o.push({value:"switch-unit-system",label:(0,u.S)("Switch ingredient units with converted ones (does not change label)"),default:!1},{value:"change-unit-system",label:(0,u.S)("Change unit system label (does not change ingredients)"),default:"default"}),o.push({value:"print",label:(0,u.S)("Print Recipes"),default:!1},{value:"export",label:(0,u.S)("Export Recipes"),default:"recipe",required:"premium"},{value:"delete",label:(0,u.S)("Delete Recipes"),default:!1}),i.createElement("form",null,i.createElement("div",{className:"wprm-admin-modal-bulk-edit-label"},(0,u.S)("Select an action to perform:")),i.createElement("div",{className:"wprm-admin-modal-bulk-edit-actions"},o.map((r=>i.createElement("div",{className:"wprm-admin-modal-bulk-edit-action",key:r.value},i.createElement("input",{type:"radio",value:r.value,name:"wprm-admin-radio-bulk-edit-action",id:"wprm-admin-radio-bulk-edit-action-".concat(r.value),checked:t===r.value,onChange:()=>{var t={type:r.value,options:r.default};r.hasOwnProperty("required")&&(t.required=r.required),e.onActionChange(t)}}),i.createElement("label",{htmlFor:"wprm-admin-radio-bulk-edit-action-".concat(r.value)},r.label))))),t&&!1!==e.action.options&&i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-bulk-edit-label"},(0,u.S)("Action options:")),i.createElement("div",{className:"wprm-admin-modal-bulk-edit-options"},"change-status"===t&&i.createElement(v.Z,{id:"status",options:wprm_admin_modal.options.post_status,value:e.action.options,onChange:t=>{var r=oe(oe({},e.action),{},{options:t});e.onActionChange(r)}}),"change-password"===t&&i.createElement(g.Z,{name:"password",placeholder:(0,u.S)("Password"),value:e.action.options,onChange:t=>{var r=oe(oe({},e.action),{},{options:t});e.onActionChange(r)}}),"change-language"===t&&i.createElement(v.Z,{id:"language",options:Object.values(wprm_admin_manage.multilingual.languages),value:e.action.options,onChange:t=>{var r=oe(oe({},e.action),{},{options:t});e.onActionChange(r)}}),"change-post-author"===t&&i.createElement(M.Z,{options:wprm_admin_manage.authors.map((e=>({value:e.data.ID,label:"".concat(e.data.ID).concat(e.data.display_name?" - ".concat(e.data.display_name):"")}))),value:e.action.options,onChange:t=>{var r=oe(oe({},e.action),{},{options:t});e.onActionChange(r)},width:300,custom:{menuPlacement:"top",maxMenuHeight:150}}),"change-type"===t&&i.createElement(v.Z,{id:"type",options:[{value:"food",label:(0,u.S)("Food Recipe")},{value:"howto",label:(0,u.S)("How-to Instructions")},{value:"other",label:(0,u.S)("Other (no metadata)")}],value:e.action.options,onChange:t=>{var r=oe(oe({},e.action),{},{options:t});e.onActionChange(r)}}),"change-author"===t&&i.createElement(i.Fragment,null,i.createElement(M.Z,{options:wprm_admin_modal.options.author.filter((e=>"same"!==e.actual)),value:e.action.options.author,onChange:t=>{var r=oe(oe({},e.action),{},{options:{author:t,author_name:"",author_link:""}});e.onActionChange(r)},width:300,custom:{menuPlacement:"top",maxMenuHeight:150}}),"custom"===wprm_admin_modal.options.author.find((t=>t.value===e.action.options.author)).actual&&i.createElement(i.Fragment,null," ",i.createElement(g.Z,{name:"author-name",placeholder:(0,u.S)("Author Name"),value:e.action.options.author_name,onChange:t=>{var r=oe(oe({},e.action),{},{options:oe(oe({},e.action.options),{},{author_name:t})});e.onActionChange(r)}})," ",i.createElement(g.Z,{name:"author-link",placeholder:"https://bootstrapped.ventures",type:"url",value:e.action.options.author_link,onChange:t=>{var r=oe(oe({},e.action),{},{options:oe(oe({},e.action.options),{},{author_link:t})});e.onActionChange(r)}}))),"change-servings"===t&&i.createElement(A.Z,{id:"servings"},i.createElement(g.Z,{placeholder:"4",type:"number",value:0!=e.action.options.servings?e.action.options.servings:"",onChange:t=>{var r=oe(oe({},e.action),{},{options:oe(oe({},e.action.options),{},{servings:t})});e.onActionChange(r)}}),i.createElement(g.Z,{name:"servings-unit",placeholder:(0,u.S)("people"),value:e.servings_unit,onChange:t=>{var r=oe(oe({},e.action),{},{options:oe(oe({},e.action.options),{},{servings_unit:t})});e.onActionChange(r)}})),"user-rating"===t&&i.createElement(v.Z,{id:"type",options:[{value:"0",label:(0,u.S)("Remove rating by author")},{value:"1",label:(0,u.S)("1 star")},{value:"2",label:(0,u.S)("2 stars")},{value:"3",label:(0,u.S)("3 stars")},{value:"4",label:(0,u.S)("4 stars")},{value:"5",label:(0,u.S)("5 stars")}],value:e.action.options,onChange:t=>{var r=oe(oe({},e.action),{},{options:t});e.onActionChange(r)}}),("add-terms"===t||"remove-terms"===t)&&i.createElement(i.Fragment,null,i.createElement(M.Z,{options:n,value:e.action.options.taxonomy,onChange:t=>{var r=oe(oe({},e.action),{},{options:{taxonomy:t,terms:[]}});e.onActionChange(r)},width:200,custom:{menuPlacement:"top",maxMenuHeight:150}})," ",i.createElement(ne,{id:e.action.options.taxonomy,value:e.action.options.terms,onChange:t=>{var r=oe(oe({},e.action),{},{options:{taxonomy:e.action.options.taxonomy,terms:t}});e.onActionChange(r)},custom:{menuPlacement:"top",maxMenuHeight:200}})),"change-unit-system"===t&&i.createElement(v.Z,{id:"type",options:[{value:"default",label:"".concat((0,u.S)("Use Default")," (").concat(wprm_admin_modal.unit_conversion.systems[parseInt(wprm_admin_modal.unit_conversion.default_system)].label,")")},{value:"1",label:"".concat((0,u.S)("First Unit System")," (").concat(wprm_admin_modal.unit_conversion.systems[1].label,")")},{value:"2",label:"".concat((0,u.S)("Second Unit System")," (").concat(wprm_admin_modal.unit_conversion.systems[2].label,")")}],value:e.action.options,onChange:t=>{var r=oe(oe({},e.action),{},{options:t});e.onActionChange(r)}}),"export"===t&&i.createElement(v.Z,{id:"type",options:[{value:"recipe",label:(0,u.S)("Recipes only")},{value:"with_parent",label:(0,u.S)("Recipes with their parent post")}],value:e.action.options,onChange:t=>{var r=oe(oe({},e.action),{},{options:t});e.onActionChange(r)}}))))},ue=e=>{var t=!!e.action&&e.action.type,r=[{value:"delete",label:(0,u.S)("Delete Revisions"),default:!1}];return i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-bulk-edit-label"},(0,u.S)("Select an action to perform:")),i.createElement("div",{className:"wprm-admin-modal-bulk-edit-actions"},r.map((r=>i.createElement("div",{className:"wprm-admin-modal-bulk-edit-action",key:r.value},i.createElement("input",{type:"radio",value:r.value,name:"wprm-admin-radio-bulk-edit-action",id:"wprm-admin-radio-bulk-edit-action-".concat(r.value),checked:t===r.value,onChange:()=>{var t={type:r.value,options:r.default};e.onActionChange(t)}}),i.createElement("label",{htmlFor:"wprm-admin-radio-bulk-edit-action-".concat(r.value)},r.label))))))},le=e=>{var t=!!e.action&&e.action.type,r=[{value:"export",label:(0,u.S)("Export Terms"),default:!1,required:"premium"},{value:"delete",label:(0,u.S)("Delete Terms"),default:!1}];return i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-bulk-edit-label"},(0,u.S)("Select an action to perform:")),i.createElement("div",{className:"wprm-admin-modal-bulk-edit-actions"},r.map((r=>i.createElement("div",{className:"wprm-admin-modal-bulk-edit-action",key:r.value},i.createElement("input",{type:"radio",value:r.value,name:"wprm-admin-radio-bulk-edit-action",id:"wprm-admin-radio-bulk-edit-action-".concat(r.value),checked:t===r.value,onChange:()=>{var t={type:r.value,options:r.default};e.onActionChange(t)}}),i.createElement("label",{htmlFor:"wprm-admin-radio-bulk-edit-action-".concat(r.value)},r.label))))),t&&!1!==e.action.options&&i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-bulk-edit-label"},(0,u.S)("Action options:")),i.createElement("div",{className:"wprm-admin-modal-bulk-edit-options"})))},ce=e=>{var t=!!e.action&&e.action.type,r=[{value:"delete",label:(0,u.S)("Permanently Delete Recipes"),default:!1}];return i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-bulk-edit-label"},(0,u.S)("Select an action to perform:")),i.createElement("div",{className:"wprm-admin-modal-bulk-edit-actions"},r.map((r=>i.createElement("div",{className:"wprm-admin-modal-bulk-edit-action",key:r.value},i.createElement("input",{type:"radio",value:r.value,name:"wprm-admin-radio-bulk-edit-action",id:"wprm-admin-radio-bulk-edit-action-".concat(r.value),checked:t===r.value,onChange:()=>{var t={type:r.value,options:r.default};e.onActionChange(t)}}),i.createElement("label",{htmlFor:"wprm-admin-radio-bulk-edit-action-".concat(r.value)},r.label))))))},de={analytics:{label:(0,u.S)("Actions"),elem:m},rating:{label:(0,u.S)("Ratings"),elem:O},recipe:{label:(0,u.S)("Recipes"),elem:se},revision:{label:(0,u.S)("Revisions"),elem:ue},ingredient:{label:(0,u.S)("Ingredients"),elem:I},ingredient_unit:{label:(0,u.S)("Ingredient Units"),elem:x},equipment:{label:(0,u.S)("Equipment"),elem:D},trash:{label:(0,u.S)("Recipes"),elem:ce},nutrition_ingredient:{label:(0,u.S)("Custom Nutrition Ingredients"),elem:le},collection:{label:(0,u.S)("Saved Collections"),elem:h}};Object.keys(wprm_admin_modal.categories).map((e=>{var t=wprm_admin_modal.categories[e];de[e]={label:t.label,elem:le}}));class pe extends i.Component{constructor(e){super(e),this.state={route:e.args.hasOwnProperty("route")?e.args.route:"recipe",type:e.args.hasOwnProperty("type")?e.args.type:"recipe",ids:e.args.hasOwnProperty("ids")?e.args.ids:[],action:!1,savingChanges:!1,result:!1},this.onBulkEdit=this.onBulkEdit.bind(this),this.allowCloseModal=this.allowCloseModal.bind(this)}onBulkEdit(){this.state.action&&this.setState({savingChanges:!0},(()=>{l.Z.manage.bulkEdit(this.state.route,this.state.type,this.state.ids,this.state.action).then((e=>{var t=!1;e.hasOwnProperty("result")&&(t=e.result),this.setState({savingChanges:!1,result:t},(()=>{"function"==typeof this.props.args.saveCallback&&this.props.args.saveCallback(),t||this.props.maybeCloseModal()}))}))}))}allowCloseModal(){return!this.state.savingChanges}changesMade(){return!(!this.state.action||!this.state.action.type)&&(!Array.isArray(this.state.action.options)||0!==this.state.action.options.length)}render(){var e=!!de.hasOwnProperty(this.state.type)&&de[this.state.type];if(!e)return null;var t=e.elem,r="".concat((0,u.S)("Bulk Edit")," ").concat(this.state.ids.length," ").concat(e.label);return i.createElement(i.Fragment,null,i.createElement(p.Z,{onCloseModal:this.props.maybeCloseModal},r),i.createElement("div",{className:"wprm-admin-modal-bulk-edit-container"},!1===this.state.result?i.createElement(t,{action:this.state.action,onActionChange:e=>{this.setState({action:e})}}):i.createElement("div",{dangerouslySetInnerHTML:{__html:this.state.result}})),i.createElement(f.Z,{savingChanges:this.state.savingChanges},!1===this.state.result?i.createElement(d,{isPrimary:!0,required:this.state.action&&this.state.action.hasOwnProperty("required")?this.state.action.required:null,onClick:this.onBulkEdit,disabled:!this.changesMade()},r):i.createElement(d,{isPrimary:!0,onClick:this.props.maybeCloseModal},(0,u.S)("Close"))))}}var fe=r(59612);class me extends i.Component{constructor(e){super(e),this.state={fields:e.args.fields}}render(){return i.createElement(i.Fragment,null,i.createElement(p.Z,{onCloseModal:this.props.maybeCloseModal},this.props.args.header),i.createElement("div",{className:"wprm-admin-modal-input-fields-container"},this.state.fields.map(((e,t)=>{var r=g.Z;if("textarea"===(e.hasOwnProperty("type")?e.type:"text"))r=fe.Z;return i.createElement(i.Fragment,{key:t},e.hasOwnProperty("label")&&i.createElement("div",{className:"wprm-admin-modal-input-fields-field-label"},e.label),i.createElement(r,{value:e.value,onChange:e=>{var r=[...this.state.fields];r[t].value=e,this.setState({fields:r})}}))}))),i.createElement(f.Z,{savingChanges:!1},i.createElement("button",{className:"button button-primary",onClick:()=>{"function"==typeof this.props.args.insertCallback&&this.props.args.insertCallback(this.state),this.props.maybeCloseModal()}},(0,u.S)("Change"))))}}r(39275),r(22321);function he(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 ge(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?he(Object(r),!0).forEach((function(t){ve(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):he(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ve(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var be=e=>e=(e=(e=(e=e.replace(/"/gm,"%22")).replace(/\[/gm,"%5B")).replace(/\]/gm,"%5D")).replace(/\r?\n|\r/gm,"%0A");class ye extends i.Component{render(){return i.createElement(i.Fragment,null,i.createElement(p.Z,{onCloseModal:this.props.maybeCloseModal},"WP Recipe Maker"),i.createElement("div",{className:"wprm-admin-modal-menu-container"},i.createElement("h2",null,(0,u.S)("Recipes")),i.createElement("div",{className:"wprm-admin-modal-menu-buttons"},i.createElement(d,{isPrimary:!0,onClick:()=>{var e=this.props.args;if(wprm_admin.settings.hasOwnProperty("recipe_name_from_post_title")&&wprm_admin.settings.recipe_name_from_post_title){var t=document.querySelector("#title[name=post_title]");if(t){var r=JSON.parse(JSON.stringify(wprm_admin_modal.recipe));r.name=t.value,e.recipe=r}}WPRM_Modal.open("recipe",e,!0)}},(0,u.S)("Create new Recipe")),i.createElement(d,{onClick:()=>{WPRM_Modal.open("select",{title:(0,u.S)("Insert existing Recipe"),button:(0,u.S)("Insert"),fields:{recipe:{}},insertCallback:e=>{"function"==typeof this.props.args.insertCallback&&this.props.args.insertCallback('[wprm-recipe id="'.concat(e.recipe.id,'"]'))}},!0)}},(0,u.S)("Insert existing Recipe")),i.createElement(d,{required:"premium",onClick:()=>{WPRM_Modal.open("select",{title:(0,u.S)("Create new from existing Recipe"),button:(0,u.S)("Clone Recipe"),fields:{recipe:{}},nextStepCallback:e=>{WPRM_Modal.open("recipe",ge(ge({},this.props.args),{},{recipeId:e.recipe.id,cloneRecipe:!0}),!0)}},!0)}},(0,u.S)("Create new from existing Recipe"))),i.createElement("h2",null,(0,u.S)("Recipe Snippets")),i.createElement("div",{className:"wprm-admin-modal-menu-buttons"},i.createElement(d,{help:(0,u.S)("Displays default snippet template as set in the WPRM Settings"),onClick:()=>{WPRM_Modal.open("select",{title:(0,u.S)("Full Snippet Template"),button:(0,u.S)("Insert"),fields:{recipe:{showFirst:!0}},insertCallback:e=>{if("function"==typeof this.props.args.insertCallback){var t="[wprm-recipe-snippet";t+=e.recipe&&e.recipe.id?' id="'.concat(e.recipe.id,'"]'):"]",this.props.args.insertCallback(t)}}},!0)}},(0,u.S)("Full Snippet Template")),i.createElement(d,{onClick:()=>{WPRM_Modal.open("select",{title:(0,u.S)("Jump to Recipe"),button:(0,u.S)("Insert"),fields:{recipe:{showFirst:!0}},insertCallback:e=>{if("function"==typeof this.props.args.insertCallback){var t="[wprm-recipe-jump";t+=e.recipe&&e.recipe.id?' id="'.concat(e.recipe.id,'"]'):"]",this.props.args.insertCallback(t)}}},!0)}},(0,u.S)("Jump to Recipe")),i.createElement(d,{onClick:()=>{WPRM_Modal.open("select",{title:(0,u.S)("Jump to Video"),button:(0,u.S)("Insert"),fields:{recipe:{showFirst:!0}},insertCallback:e=>{if("function"==typeof this.props.args.insertCallback){var t="[wprm-recipe-jump-video";t+=e.recipe&&e.recipe.id?' id="'.concat(e.recipe.id,'"]'):"]",this.props.args.insertCallback(t)}}},!0)}},(0,u.S)("Jump to Video")),i.createElement(d,{onClick:()=>{WPRM_Modal.open("select",{title:(0,u.S)("Print Recipe"),button:(0,u.S)("Insert"),fields:{recipe:{showFirst:!0}},insertCallback:e=>{if("function"==typeof this.props.args.insertCallback){var t="[wprm-recipe-print";t+=e.recipe&&e.recipe.id?' id="'.concat(e.recipe.id,'"]'):"]",this.props.args.insertCallback(t)}}},!0)}},(0,u.S)("Print Recipe"))),i.createElement("h2",null,(0,u.S)("Recipe Parts")),i.createElement("div",{className:"wprm-admin-modal-menu-buttons"},i.createElement(d,{required:"premium",onClick:()=>{WPRM_Modal.open("select",{title:(0,u.S)("Nutrition Label"),button:(0,u.S)("Insert"),fields:{recipe:{showFirst:!0}},insertCallback:e=>{if("function"==typeof this.props.args.insertCallback){var t="[wprm-nutrition-label";t+=e.recipe&&e.recipe.id?' id="'.concat(e.recipe.id,'"]'):"]",this.props.args.insertCallback(t)}}},!0)}},(0,u.S)("Nutrition Label")),i.createElement(d,{onClick:()=>{WPRM_Modal.open("select",{title:(0,u.S)("Recipe Video"),button:(0,u.S)("Insert"),fields:{recipe:{showFirst:!0}},insertCallback:e=>{if("function"==typeof this.props.args.insertCallback){var t="[wprm-recipe-video";t+=e.recipe&&e.recipe.id?' id="'.concat(e.recipe.id,'"]'):"]",this.props.args.insertCallback(t)}}},!0)}},(0,u.S)("Recipe Video"))),i.createElement("h2",null,(0,u.S)("Other Features")),i.createElement("div",{className:"wprm-admin-modal-menu-buttons"},i.createElement(d,{help:(0,u.S)("Use for a list of existing recipes on your website"),onClick:()=>{WPRM_Modal.open("roundup",{insertCallback:e=>{if("function"==typeof this.props.args.insertCallback){var t="[wprm-recipe-roundup-item";e.hasOwnProperty("type")&&"external"===e.type?(t+=' link="'.concat(be(e.link),'"'),t+=e.nofollow?' nofollow="1"':"",t+=e.newtab?"":' newtab="0"',t+=' name="'.concat(be(e.name),'"'),t+=' summary="'.concat(be(e.summary),'"'),t+=e.image.id?' image="'.concat(e.image.id,'"'):"",-1===e.image.id&&e.image.url&&(t+=e.image.url?' image_url="'.concat(e.image.url,'"'):"")):(t+=' id="'.concat(e.recipe.id,'"'),e.name&&(t+=' name="'.concat(be(e.name),'"')),e.summary&&(t+=' summary="'.concat(be(e.summary),'"'))),e.button&&(t+=' button="'.concat(be(e.button),'"')),t+="]",this.props.args.insertCallback(t)}}},!0)}},(0,u.S)("Recipe Roundup Item")),i.createElement(d,{required:"elite",onClick:()=>{"function"==typeof this.props.args.insertCallback&&this.props.args.insertCallback("[wprm-recipe-submission]"),this.props.maybeCloseModal()}},(0,u.S)("Recipe Submission Form")),i.createElement(d,{required:"elite",onClick:()=>{"function"==typeof this.props.args.insertCallback&&this.props.args.insertCallback("[wprm-recipe-collections]"),this.props.maybeCloseModal()}},(0,u.S)("Recipe Collections")),i.createElement(d,{required:"elite",help:(0,u.S)("Find the saved collection ID on the WP Recipe Maker > Manage > Saved Collections page"),onClick:()=>{"function"==typeof this.props.args.insertCallback&&this.props.args.insertCallback('[wprm-saved-collection id=""]'),this.props.maybeCloseModal()}},(0,u.S)("Saved Recipe Collection")))))}}var we=r(68470),De=r(55565),Ee=r.n(De),Ce=r(34133),Se=e=>{var t=null;return e.id&&(t="wprm-admin-modal-fields-group-".concat(e.id)),i.createElement(we.W_,{className:"wprm-admin-modal-fields-group",id:t,name:t},e.header?i.createElement("div",{className:"wprm-admin-modal-fields-group-header"},e.header):null,i.createElement("div",{className:"wprm-admin-modal-fields"},e.children))},Ie=e=>i.createElement(i.Fragment,null,i.createElement(A.Z,{label:(0,u.S)("Import from Text")},i.createElement(fe.Z,{placeholder:(0,u.S)("Paste or type recipe to start..."),value:"",onChange:t=>{t&&e.onModeChange("text-import",t)}})),i.createElement(A.Z,{label:(0,u.S)("Import from JSON")},i.createElement(fe.Z,{placeholder:(0,u.S)("Paste the recipe JSON data to import"),value:"",onChange:t=>{if(t)try{var r=JSON.parse(t);e.onImportJSON(r),alert((0,u.S)("The recipe has been imported."))}catch(n){alert((0,u.S)("No valid recipe found."))}}}))),xe=r(5308),Oe=e=>{var t=e.id>0,r=t=>{t.preventDefault(),xe.Z.selectImage((t=>{if(e.hasOwnProperty("requirements")){var r=[];e.requirements.hasOwnProperty("width")&&t.width&&t.width<e.requirements.width&&r.push("".concat((0,u.S)("The image should have at least this width:")," ").concat(e.requirements.width,"px")),e.requirements.hasOwnProperty("height")&&t.height&&t.height<e.requirements.height&&r.push("".concat((0,u.S)("The image should have at least this height:")," ").concat(e.requirements.width,"px")),r.length&&alert("".concat((0,u.S)("Warning! We recommend making sure the image meets the following requirements:"),"\n\n").concat(r.join("\n")))}e.onChange(t.id,t.url)}))};return i.createElement("div",{className:"wprm-admin-modal-field-image"},t?i.createElement("div",{className:"wprm-admin-modal-field-image-preview"},i.createElement("img",{onClick:r,src:e.url}),i.createElement("a",{href:"#",tabIndex:e.disableTab?"-1":null,onClick:t=>{t.preventDefault(),e.onChange(0,"")}},(0,u.S)("Remove Image"))):i.createElement(d,{required:e.required,disableTab:e.disableTab,onClick:r},(0,u.S)("Select Image")))},Ae=e=>{var t=e.id>0,r=!t&&(-1==e.id||e.repin),n=t||r,o=t=>{t.preventDefault(),xe.Z.selectImage((t=>{if(e.hasOwnProperty("requirements")){var r=[];e.requirements.hasOwnProperty("width")&&t.width&&t.width<e.requirements.width&&r.push("".concat((0,u.S)("The image should have at least this width:")," ").concat(e.requirements.width,"px")),e.requirements.hasOwnProperty("height")&&t.height&&t.height<e.requirements.height&&r.push("".concat((0,u.S)("The image should have at least this height:")," ").concat(e.requirements.width,"px")),r.length&&alert("".concat((0,u.S)("Warning! We recommend making sure the image meets the following requirements:"),"\n\n").concat(r.join("\n")))}e.onChange(t.id,t.url)}))};return i.createElement("div",{className:"wprm-admin-modal-field-image"},n?i.createElement(i.Fragment,null,t?i.createElement("div",{className:"wprm-admin-modal-field-image-preview"},i.createElement("img",{onClick:o,src:e.url}),i.createElement("a",{href:"#",tabIndex:e.disableTab?"-1":null,onClick:t=>{t.preventDefault(),e.onChange(0,"")}},(0,u.S)("Remove Image"))):i.createElement(i.Fragment,null,i.createElement(g.Z,{value:e.repin,onChange:t=>{e.onChange(-1,"",t)},placeholder:"123455679"}),i.createElement("a",{href:"#",onClick:t=>{t.preventDefault(),e.onChange(0,"","")}},(0,u.S)("Remove Repin ID")))):i.createElement(i.Fragment,null,i.createElement(d,{required:e.required,disableTab:e.disableTab,onClick:o},(0,u.S)("Select Image")),i.createElement(d,{required:e.required,disableTab:e.disableTab,onClick:t=>{t.preventDefault(),e.onChange(-1,"")}},(0,u.S)("Use Repin ID"))))},Me=e=>{var t=e.id>0,r=!t&&(-1==e.id||e.embed),n=t||r,o=t=>{t.preventDefault(),xe.Z.selectVideo((t=>{e.onChange(t.attributes.id,t.attributes.thumb.src)}))};return i.createElement("div",{className:"wprm-admin-modal-field-video"},n?i.createElement(i.Fragment,null,t?i.createElement("div",{className:"wprm-admin-modal-field-video-preview"},i.createElement("img",{onClick:o,src:e.thumb||wprm_admin_modal.images.video}),i.createElement("a",{href:"#",onClick:t=>{t.preventDefault(),e.onChange(0,"")}},(0,u.S)("Remove Video"))):i.createElement(i.Fragment,null,i.createElement(fe.Z,{value:e.embed,onChange:t=>{e.onChange(-1,"",t)},placeholder:(0,u.S)("Use URL to the video (e.g. https://www.youtube.com/watch?v=dQw4w9WgXcQ) or the full embed code.")}),i.createElement("a",{href:"#",onClick:t=>{t.preventDefault(),e.onChange(0,"","")}},(0,u.S)("Remove Video")))):i.createElement(i.Fragment,null,i.createElement("button",{className:"button",onClick:o},(0,u.S)("Upload Video")),i.createElement("button",{className:"button",onClick:t=>{t.preventDefault(),e.onChange(-1,"")}},(0,u.S)("Embed Video"))))},Pe=e=>i.createElement(i.Fragment,null,i.createElement(A.Z,{label:(0,u.S)("Image"),help:(0,u.S)("Used in the recipe metadata. Should be an image of the completed dish.")},i.createElement(Oe,{requirements:{width:500,height:500},id:e.image.id,url:e.image.url,onChange:(t,r)=>{e.onRecipeChange({image_id:t,image_url:r})}})),"recipe_image"!==wprm_admin.settings.pinterest_use_for_image?i.createElement(A.Z,{label:(0,u.S)("Pin Image"),help:(0,u.S)('Optionally set a different image to use for the "Pin Recipe" button.')},i.createElement(Ae,{required:"premium",id:e.pinImage.id,url:e.pinImage.url,repin:e.pinImage.repin,onChange:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i={pin_image_id:t,pin_image_url:r};!1!==n&&(i.pin_image_repin_id=n),e.onRecipeChange(i)}})):null,i.createElement(A.Z,{label:(0,u.S)("Video"),help:(0,u.S)("Used in the recipe metadata. Can be displayed elsewhere on the page using the [wprm-recipe-video] shortcode.")},i.createElement(Me,{id:e.video.id,thumb:e.video.thumb,embed:e.video.embed,onChange:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i={video_id:t,video_thumb_url:r};!1!==n&&(i.video_embed=n),e.onRecipeChange(i)}}))),Be=e=>{var t="public"===wprm_admin.settings.post_type_structure,r=[{value:!1,label:(0,u.S)("No language set")}];return"wpml"===wprm_admin_modal.multilingual.plugin&&(r=r.concat(Object.values(wprm_admin_modal.multilingual.languages))),i.createElement(i.Fragment,null,t&&i.createElement(A.Z,{id:"slug",label:(0,u.S)("Slug")},i.createElement(g.Z,{name:"recipe-slug",placeholder:(0,u.S)("recipe-slug"),value:e.slug,onChange:t=>{e.onRecipeChange({slug:t})}})),t&&i.createElement(A.Z,{id:"post_status",label:(0,u.S)("Status")},i.createElement(M.Z,{options:wprm_admin_modal.options.post_status,value:e.post_status,onChange:t=>{e.onRecipeChange({post_status:t})},width:300})),t&&i.createElement(A.Z,{id:"post_password",label:(0,u.S)("Password"),help:(0,u.S)("Optionally set a password to restrict access to the recipe post.")},i.createElement(g.Z,{name:"post-password",value:e.post_password,onChange:t=>{e.onRecipeChange({post_password:t})}})),i.createElement(A.Z,{id:"post_author",label:(0,u.S)("Post Author")},i.createElement(M.Z,{options:wprm_admin_modal.options.post_author,value:parseInt(e.post_author),onChange:t=>{e.onRecipeChange({post_author:t})},width:300})),t&&1<r.length&&i.createElement(A.Z,{id:"language",label:(0,u.S)("Language")},i.createElement(M.Z,{options:r,value:e.language,onChange:t=>{e.onRecipeChange({language:t})},width:300})))},Ne=r(34739),ke=e=>{var t=!!e.hasOwnProperty("disabled")&&e.disabled;return i.createElement("input",{type:"checkbox",className:"wprm-admin-modal-field-checkbox",disabled:t,name:e.name,checked:e.value,onChange:t=>{e.onChange(t.target.checked)}})},Te=r(22885);function je(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 Le(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?je(Object(r),!0).forEach((function(t){Fe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):je(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Fe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Re=e=>{var t=Le({shape:"round",unit:"inch",diameter:0,width:0,length:0,height:0},e.servings);return i.createElement("div",{className:"wprm-admin-modal-field-advanced-servings"},i.createElement(ke,{name:"advanced-servings",value:e.enabled,onChange:t=>{e.onChangeEnabled(t)}}),e.enabled&&i.createElement(i.Fragment,null,!wprm_admin.addons.premium&&i.createElement("p",null,(0,u.S)("This feature is only available in")," ",i.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Premium"),". ",(0,u.S)("You can already fill in the values, but the adjustable changer will not show up yet.")),i.createElement("div",{className:"wprm-admin-modal-field-advanced-servings-details"},i.createElement(M.Z,{options:[{value:"round",label:(0,u.S)("Round")},{value:"rectangle",label:(0,u.S)("Rectangle")}],value:t.shape,onChange:r=>{e.onChangeServings(Le(Le({},t),{},{shape:r}))},width:147}),i.createElement("div",{className:"wprm-admin-modal-field-advanced-servings-details-text"},(0,u.S)("measured in")),i.createElement(M.Z,{options:[{value:"inch",label:(0,u.S)("inch")},{value:"cm",label:(0,u.S)("cm")}],value:t.unit,onChange:r=>{e.onChangeServings(Le(Le({},t),{},{unit:r}))},width:100})),i.createElement("div",{className:"wprm-admin-modal-field-advanced-servings-details"},"round"===t.shape?i.createElement(i.Fragment,null,i.createElement(g.Z,{placeholder:"6",type:"number",min:"0",step:"any",value:0!=t.diameter?t.diameter:"",onChange:r=>{e.onChangeServings(Le(Le({},t),{},{diameter:r}))}}),i.createElement("div",{className:"wprm-admin-modal-field-advanced-servings-details-text"},t.unit," ",(0,u.S)("diameter"))):i.createElement(i.Fragment,null,i.createElement(g.Z,{placeholder:"6",type:"number",min:"0",step:"any",value:0!=t.width?t.width:"",onChange:r=>{e.onChangeServings(Le(Le({},t),{},{width:r}))}}),i.createElement("div",{className:"wprm-admin-modal-field-advanced-servings-details-text"},"x"),i.createElement(g.Z,{placeholder:"6",type:"number",min:"0",step:"any",value:0!=t.length?t.length:"",onChange:r=>{e.onChangeServings(Le(Le({},t),{},{length:r}))}}),i.createElement("div",{className:"wprm-admin-modal-field-advanced-servings-details-text"},t.unit," ",(0,u.S)("area")))),i.createElement("div",{className:"wprm-admin-modal-field-advanced-servings-details"},i.createElement(g.Z,{placeholder:"",type:"number",min:"0",step:"any",value:0!=t.height?t.height:"",onChange:r=>{e.onChangeServings(Le(Le({},t),{},{height:r}))}}),i.createElement("div",{className:"wprm-admin-modal-field-advanced-servings-details-text"},t.unit," ",(0,u.S)("height")," (",(0,u.S)("optional"),")"))))},_e=e=>{var t=wprm_admin_modal.options.author.find((t=>t.value===e.author.display));return i.createElement(i.Fragment,null,(0,Ne.O)()&&i.createElement(A.Z,{id:"warning",label:(0,u.S)("Warning!")},i.createElement("p",null,"Looks like you're using an older browser like ",i.createElement("strong",null,"Legacy Microsoft Edge")," or ",i.createElement("strong",null,"Internet Explorer")," which does not support all of our advanced features."),i.createElement("p",null,"We highly recommend using ",i.createElement("a",{href:"https://www.google.com/chrome/",target:"_blank"},"Google Chrome"),", ",i.createElement("a",{href:"https://www.mozilla.org/en-US/firefox/new/",target:"_blank"},"Firefox"),", ",i.createElement("a",{href:"https://support.apple.com/downloads/safari",target:"_blank"},"Safari")," or ",i.createElement("a",{href:"https://www.microsoft.com/en-us/edge",target:"_blank"},"Microsoft Edge"),".")),i.createElement(A.Z,{id:"type",label:(0,u.S)("Recipe Type"),help:(0,u.S)("Make sure to pick the right recipe type to ensure we include the correct metadata.")},i.createElement(v.Z,{id:"type",options:[{value:"food",label:(0,u.S)("Food Recipe")},{value:"howto",label:(0,u.S)("How-to Instructions")},{value:"other",label:(0,u.S)("Other (no metadata)")}],value:e.type,onChange:t=>{e.onRecipeChange({type:t})}})),i.createElement(A.Z,{id:"name",label:(0,u.S)("Name")},i.createElement(g.Z,{name:"recipe-name",placeholder:(0,u.S)("Recipe Name"),value:e.name,onChange:t=>{e.onRecipeChange({name:t})}})),i.createElement(A.Z,{id:"summary",label:"howto"===e.type?(0,u.S)("Description"):(0,u.S)("Summary")},i.createElement(Te.Z,{placeholder:(0,u.S)("Short description of this recipe..."),value:e.summary,onChange:t=>{e.onRecipeChange({summary:t})}})),t&&"same"===t.actual?null:i.createElement(A.Z,{id:"author",label:(0,u.S)("Author")},i.createElement(M.Z,{options:wprm_admin_modal.options.author.filter((e=>"same"!==e.actual)),value:e.author.display,onChange:t=>{e.onRecipeChange({author_display:t})},width:300})),t&&"custom"===t.actual&&i.createElement(i.Fragment,null,i.createElement(A.Z,{id:"author-name",label:(0,u.S)("Name")},i.createElement(g.Z,{name:"author-name",placeholder:(0,u.S)("Author Name"),value:e.author.name,onChange:t=>{e.onRecipeChange({author_name:t})}})),i.createElement(A.Z,{id:"author-link",label:(0,u.S)("Link")},i.createElement(g.Z,{name:"author-link",placeholder:"https://bootstrapped.ventures",type:"url",value:e.author.link,onChange:t=>{e.onRecipeChange({author_link:t})}}))),i.createElement(A.Z,{id:"servings",label:"howto"===e.type?(0,u.S)("Yield"):(0,u.S)("Servings")},i.createElement(g.Z,{placeholder:"4",type:"number",min:"0",step:"any",value:0!=e.servings.amount?e.servings.amount:"",onChange:t=>{e.onRecipeChange({servings:t})}}),i.createElement(g.Z,{name:"servings-unit",placeholder:"howto"===e.type?(0,u.S)("candles"):(0,u.S)("people"),value:e.servings.unit,onChange:t=>{e.onRecipeChange({servings_unit:t})}})),i.createElement(A.Z,{id:"advanced-servings",label:(0,u.S)("Advanced Servings"),help:(0,u.S)("Enable to have an advanced servings calculator, useful for different baking forms")},i.createElement(Re,{enabled:e.servings_advanced_enabled,onChangeEnabled:t=>{e.onRecipeChange({servings_advanced_enabled:t})},servings:e.servings_advanced,onChangeServings:t=>{e.onRecipeChange({servings_advanced:t})}})),i.createElement(A.Z,{id:"cost",label:(0,u.S)("Estimated Cost"),help:"howto"===e.type?(0,u.S)("The estimated cost of the materials consumed when performing instructions. Used in the metadata."):null},i.createElement(g.Z,{name:"cost",placeholder:"$5",value:e.cost,onChange:t=>{e.onRecipeChange({cost:t})}})),wprm_admin_modal.integrations.my_emissions_checkbox&&i.createElement(A.Z,{id:"my-emissions",label:(0,u.S)("My Emissions Label")},i.createElement(ke,{name:"my-emissions",value:e.my_emissions,onChange:t=>{e.onRecipeChange({my_emissions:t})}})))},Ze=e=>{var t=parseInt(e.value.time),r=0,n=0,o=0;return t>0&&(r=Math.floor(t/24/60),n=Math.floor(t/60%24),o=Math.floor(t%60)),i.createElement("div",{className:"wprm-admin-modal-field-time"},i.createElement("div",{className:"wprm-admin-modal-field-time-parts"},i.createElement("input",{type:"number",value:0<r?""+r:"",onChange:t=>{var r=parseInt(t.target.value);r=isNaN(r)?0:r;var i=1440*Math.max(0,r)+60*n+o;e.onChange(i)}})," ",(0,u.S)("days"),i.createElement("input",{type:"number",value:0<n?""+n:"",onChange:t=>{var n=parseInt(t.target.value);n=isNaN(n)?0:n;var i=1440*r+60*Math.max(0,n)+o;e.onChange(i)}})," ",(0,u.S)("hours"),i.createElement("input",{type:"number",value:0<o?""+o:e.value.zero?"0":"",onChange:t=>{var i=parseInt(t.target.value);i=isNaN(i)?0:i;var o=1440*r+60*n+Math.max(0,i);e.onChange(o)}})," ",(0,u.S)("minutes")),0===t&&e.hasOwnProperty("onChangeZero")&&i.createElement("div",{className:"wprm-admin-modal-field-time-none"},i.createElement("input",{id:"wprm-admin-modal-field-time-none-".concat(e.id),type:"checkbox",checked:e.value.zero,onChange:t=>{e.onChangeZero(t.target.checked)}})," ",i.createElement("label",{htmlFor:"wprm-admin-modal-field-time-none-".concat(e.id)},(0,u.S)('Show "0" in template'))))},He=e=>{var t=Math.max(0,parseInt(e.prep.time))+Math.max(0,parseInt(e.cook.time))+Math.max(0,parseInt(e.custom.time));return i.createElement(i.Fragment,null,i.createElement(A.Z,{id:"prep-time",label:(0,u.S)("Prep Time")},i.createElement(Ze,{id:"prep",value:e.prep,onChange:t=>{e.onRecipeChange({prep_time:t})},onChangeZero:t=>{e.onRecipeChange({prep_time_zero:t})}})),i.createElement(A.Z,{id:"cook-time",label:"howto"===e.type?(0,u.S)("Active Time"):(0,u.S)("Cook Time")},i.createElement(Ze,{id:"cook",value:e.cook,onChange:t=>{e.onRecipeChange({cook_time:t})},onChangeZero:t=>{e.onRecipeChange({cook_time_zero:t})}})),i.createElement(A.Z,{id:"custom-time-label",label:(0,u.S)("Custom Time Label"),help:(0,u.S)("Optional extra time field that you can label yourself. Examples: Resting Time, Baking Time")},i.createElement(g.Z,{name:"custom-time-label",placeholder:(0,u.S)("Resting Time"),value:e.customLabel,onChange:t=>{e.onRecipeChange({custom_time_label:t})}})),i.createElement(A.Z,{id:"custom-time",label:(0,u.S)("Custom Time")},i.createElement(Ze,{id:"custom",value:e.custom,onChange:t=>{e.onRecipeChange({custom_time:t})},onChangeZero:t=>{e.onRecipeChange({custom_time_zero:t})}})),i.createElement(A.Z,{id:"total-time",label:(0,u.S)("Total Time")},i.createElement(Ze,{id:"total",value:e.total,onChange:t=>{e.onRecipeChange({total_time:t})}}),t!==parseInt(e.total.time)&&i.createElement("div",null,i.createElement("a",{href:"#",onClick:r=>{r.preventDefault(),e.onRecipeChange({total_time:t})}},(0,u.S)("Recalculate Total Time")))))};function We(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 Ue(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Ge extends i.Component{shouldComponentUpdate(e){return JSON.stringify(this.props.tags)!==JSON.stringify(e.tags)}render(){var e=Object.keys(wprm_admin_modal.categories);return i.createElement(i.Fragment,null,e.map(((e,t)=>{var r=wprm_admin_modal.categories[e],n=this.props.tags.hasOwnProperty(e)?this.props.tags[e]:[];return i.createElement(A.Z,{id:e,label:r.label,help:r.hasOwnProperty("help")?r.help:null,key:t},i.createElement(ne,{id:e,value:n,onChange:t=>{var r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?We(Object(r),!0).forEach((function(t){Ue(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):We(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},this.props.tags);r[e]=t,this.props.onRecipeChange({tags:r})},creatable:r.creatable,width:"450px"}))})))}}var ze=r(26612),qe=e=>e.modes?i.createElement("div",{className:"wprm-admin-modal-field-edit-mode-container"},Object.keys(e.modes).map(((t,r)=>{var n=e.modes[t],o=null;return n.hasOwnProperty("help")&&(o=i.createElement(ze.Z,{type:"question",title:n.help,className:"wprm-admin-icon-help"})),i.createElement("a",{href:"#",className:"wprm-admin-modal-field-edit-mode".concat(t===e.mode?" wprm-admin-modal-field-edit-mode-selected":""),onClick:r=>{r.preventDefault(),e.onModeChange(t)},key:r},n.label,o)}))):null,Ve=r(34916),Je=r(45350);function Ye(){return Ye=Object.assign?Object.assign.bind():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},Ye.apply(this,arguments)}var Qe=(0,Je.TB)("tab"),Xe=e=>i.createElement("div",Ye({className:"wprm-admin-modal-field-ingredient-handle"},e.dragHandleProps,{tabIndex:"-1"}),i.createElement(ze.Z,{type:"drag"}));class Ke extends i.Component{shouldComponentUpdate(e){return JSON.stringify(this.props)!==JSON.stringify(e)}render(){return i.createElement(Ve._l,{draggableId:"ingredient-".concat(this.props.uid),index:this.props.index},((e,t)=>"group"===this.props.type?((e,t)=>i.createElement("div",Ye({className:"wprm-admin-modal-field-ingredient-group",ref:t.innerRef},t.draggableProps),Xe(t),i.createElement("div",{className:"wprm-admin-modal-field-ingredient-group-name-container"},i.createElement(Te.Z,{singleLine:!0,className:"wprm-admin-modal-field-ingredient-group-name",toolbar:"no-styling",value:e.name,placeholder:"howto"===e.recipeType?(0,u.S)("Material Group Header"):(0,u.S)("Ingredient Group Header"),onChange:t=>e.onChangeName(t),onKeyDown:t=>{Qe(t)&&e.onTab(t)}})),i.createElement("div",{className:"wprm-admin-modal-field-ingredient-after-container"},i.createElement("div",{className:"wprm-admin-modal-field-ingredient-after-container-icons"},i.createElement(ze.Z,{type:"trash",title:(0,u.S)("Remove"),onClick:e.onDelete}),i.createElement(ze.Z,{type:"plus-text",title:(0,u.S)("Insert Group After"),onClick:e.onAddGroup}),i.createElement(ze.Z,{type:"plus",title:(0,u.S)("Insert Ingredient After"),onClick:e.onAdd})))))(this.props,e):((e,t)=>{var r=e.amount,n=e.unit;return i.createElement("div",Ye({className:"wprm-admin-modal-field-ingredient",ref:t.innerRef},t.draggableProps),Xe(t),i.createElement("div",{className:"wprm-admin-modal-field-ingredient-text-container"},i.createElement(Te.Z,{singleLine:!0,toolbar:wprm_admin.addons.premium?"all":"no-link",className:"wprm-admin-modal-field-ingredient-amount",value:r,placeholder:"1",onChange:t=>{e.onChangeIngredient({amount:t})}}),i.createElement(Te.Z,{singleLine:!0,toolbar:wprm_admin.addons.premium?"all":"no-link",value:n,placeholder:"howto"===e.recipeType?(0,u.S)("piece"):(0,u.S)("tbsp"),onChange:t=>{e.onChangeIngredient({unit:t})}}),i.createElement(Te.Z,{singleLine:!0,toolbar:"ingredient",value:e.name,placeholder:"howto"===e.recipeType?(0,u.S)("paper"):(0,u.S)("olive oil"),onChange:t=>{e.onChangeIngredient({name:t,globalLink:!1})}}),i.createElement(Te.Z,{singleLine:!0,toolbar:wprm_admin.addons.premium?"all":"no-link",value:e.notes,placeholder:"howto"===e.recipeType?(0,u.S)("any color"):(0,u.S)("extra virgin"),onChange:t=>e.onChangeIngredient({notes:t}),onKeyDown:t=>{Qe(t)&&e.onTab(t)}})),i.createElement("div",{className:"wprm-admin-modal-field-ingredient-after-container"},i.createElement("div",{className:"wprm-admin-modal-field-ingredient-after-container-icons"},i.createElement(ze.Z,{type:"trash",title:(0,u.S)("Remove"),onClick:e.onDelete}),i.createElement(ze.Z,{type:"plus-text",title:(0,u.S)("Insert Group After"),onClick:e.onAddGroup}),i.createElement(ze.Z,{type:"plus",title:(0,u.S)("Insert Ingredient After"),onClick:e.onAdd}))))})(this.props,e)))}}function $e(){return $e=Object.assign?Object.assign.bind():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},$e.apply(this,arguments)}function et(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 tt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?et(Object(r),!0).forEach((function(t){rt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):et(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}class nt extends i.Component{constructor(e){super(e),this.container=i.createRef(),this.lastAddedIndex=0}shouldComponentUpdate(e,t){return this.props.type!==e.type||JSON.stringify(this.props.ingredients)!==JSON.stringify(e.ingredients)}componentDidUpdate(e){if(this.props.ingredients.length>e.ingredients.length){var t=this.container.current.querySelectorAll(".wprm-admin-modal-field-ingredient-group-name, .wprm-admin-modal-field-ingredient-amount");t.length&&t[this.lastAddedIndex]&&t[this.lastAddedIndex].focus()}}onDragEnd(e){if(e.destination){var t=JSON.parse(JSON.stringify(this.props.ingredients)),r=e.source.index,n=e.destination.index,i=t.splice(r,1)[0];t.splice(n,0,i),this.props.onRecipeChange({ingredients_flat:t})}}addField(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=JSON.parse(JSON.stringify(this.props.ingredients));t="group"===e?{type:"group",name:""}:{type:"ingredient",amount:"",unit:"",name:"",notes:""};var i=Math.max.apply(Math,n.map((function(e){return e.uid})));i=i<0?-1:i,t.uid=i+1,!1===r?(n.push(t),this.lastAddedIndex=n.length-1):(n.splice(r+1,0,t),this.lastAddedIndex=r+1),this.props.onRecipeChange({ingredients_flat:n})}render(){return i.createElement("div",{className:"wprm-admin-modal-field-ingredient-edit-container",ref:this.container},i.createElement(Ve.Z5,{onDragEnd:this.onDragEnd.bind(this)},i.createElement(Ve.bK,{droppableId:"wprm-ingredients"},((e,t)=>i.createElement("div",$e({className:"".concat(t.isDraggingOver?" wprm-admin-modal-field-ingredient-container-draggingover":""),ref:e.innerRef},e.droppableProps),i.createElement("div",{className:"wprm-admin-modal-field-ingredient-header-container"},i.createElement("div",{className:"wprm-admin-modal-field-ingredient-header"},(0,u.S)("Amount")),i.createElement("div",{className:"wprm-admin-modal-field-ingredient-header"},(0,u.S)("Unit")),i.createElement("div",{className:"wprm-admin-modal-field-ingredient-header"},(0,u.S)("Name")," ",i.createElement("span",{className:"wprm-admin-modal-field-ingredient-header-required"},"(",(0,u.S)("required"),")")),i.createElement("div",{className:"wprm-admin-modal-field-ingredient-header"},(0,u.S)("Notes"))),this.props.ingredients.map(((e,t)=>i.createElement(Ke,$e({},e,{recipeType:this.props.type,index:t,key:"ingredient-".concat(e.uid),onTab:e=>{t===this.props.ingredients.length-1&&(e.preventDefault(),setTimeout((()=>{this.addField("ingredient")})))},onChangeName:e=>{var r=JSON.parse(JSON.stringify(this.props.ingredients));r[t].name=e,this.props.onRecipeChange({ingredients_flat:r})},onChangeIngredient:e=>{var r=JSON.parse(JSON.stringify(this.props.ingredients));r[t]=tt(tt({},r[t]),e),this.props.onRecipeChange({ingredients_flat:r})},onDelete:()=>{var e=JSON.parse(JSON.stringify(this.props.ingredients)),r=JSON.parse(JSON.stringify(this.props.instructions)),n=e.splice(t,1);n[0]&&n[0].hasOwnProperty("uid")&&function(){var e=n[0].uid;for(var t of r)t.hasOwnProperty("ingredients")&&(t.ingredients=t.ingredients.filter((t=>t!==e)))}(),this.props.onRecipeChange({ingredients_flat:e,instructions_flat:r})},onAdd:()=>{this.addField("ingredient",t)},onAddGroup:()=>{this.addField("group",t)}})))),e.placeholder)))),i.createElement("div",{className:"wprm-admin-modal-field-ingredient-actions"},i.createElement("button",{className:"button",onClick:e=>{e.preventDefault(),this.addField("ingredient")}},"howto"===this.props.type?(0,u.S)("Add Material"):(0,u.S)("Add Ingredient")),i.createElement("button",{className:"button",onClick:e=>{e.preventDefault(),this.addField("group")}},"howto"===this.props.type?(0,u.S)("Add Material Group"):(0,u.S)("Add Ingredient Group")),i.createElement("p",null,(0,u.S)("Tip: use the TAB key to move from field to field and easily add ingredients."))))}}var it=r(5831),ot=(r(29897),r(38328)),at=r.n(ot),st=e=>{var{ingredient:t,isConverting:r,method:n}=e,o=t.converted?t.converted:{2:{amount:"",unit:""}},a=(e=>{var t=[{label:(0,u.S)("Convert"),options:[{value:"none",label:(0,u.S)("Keep Unit")},{value:"automatic",label:(0,u.S)("Automatically")}]}],r=[];wprm_admin_modal.unit_conversion.systems[e].weight.map((e=>{r.push({value:e,label:wprm_admin_modal.unit_conversion.units.data[e].label})})),0<r.length&&t.push({label:(0,u.S)("Weight Units"),options:r});var n=[];return wprm_admin_modal.unit_conversion.systems[e].volume.map((e=>{n.push({value:e,label:wprm_admin_modal.unit_conversion.units.data[e].label})})),0<n.length&&t.push({label:(0,u.S)("Volume Units"),options:n}),t})(e.convertedUnitSystem),s="".concat(t.amount," ").concat(t.unit).trim();return s="".concat(s," ").concat(t.name).trim(),t.notes&&(s+=" (".concat(t.notes,")")),i.createElement("tr",null,i.createElement("td",null,i.createElement(M.Z,{isDisabled:r,options:a,placeholder:(0,u.S)("Convert..."),value:n,onChange:t=>{e.onMethodChange(t)},width:150})),i.createElement("td",{style:"failed"===n?{color:"darkred"}:null},r?i.createElement(Ce.Z,null):i.createElement("div",{className:"wprm-admin-modal-field-ingredient-unit-conversion-fields"},i.createElement(Te.Z,{singleLine:!0,value:""+o[2].amount,onChange:t=>{var r=o;r[2].amount=t,e.onConvertedChange(r)}}),i.createElement(Te.Z,{singleLine:!0,value:""+o[2].unit,onChange:t=>{var r=o;r[2].unit=t,e.onConvertedChange(r)}}))),i.createElement("td",null,at()(s)))};class ut extends i.Component{constructor(e){super(e),this.state={isConverting:{},methods:{}},this.convert=this.convert.bind(this),this.convertAll=this.convertAll.bind(this)}convertAll(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",r=[],n=0;n<this.props.ingredients.length;n++){"ingredient"===this.props.ingredients[n].type&&r.push(n)}r&&this.convert(r,e,t)}convert(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"default",n=this.state.isConverting,i=this.state.methods;if("none"===t){var o=JSON.parse(JSON.stringify(this.props.ingredients));for(var a of e){var s=this.props.ingredients[a];s.hasOwnProperty("converted")||(o[a].converted={2:{}}),o[a].converted[2].amount=s.amount,o[a].converted[2].unit=s.unit,n[a]=!1,i[a]=t}this.props.onIngredientsChange(o)}else{var u={};for(var c of e){var d=this.props.ingredients[c];u[c]={index:c,amount:(0,it.L)(d.amount),unit:d.unit,name:d.name},"automatic"!==t&&(u[c].units_to=[t]),n[c]=!0,i[c]=t}l.Z.unitConversion.get(u,r).then((e=>{if(e&&e.conversions){var r=JSON.parse(JSON.stringify(this.props.ingredients)),n=this.state.isConverting,i=this.state.methods;for(var o in e.conversions){var a=this.props.ingredients[parseInt(o)],s=e.conversions[o];a.hasOwnProperty("converted")||(r[o].converted={2:{}}),"failed"===s.type?(r[o].converted[2].amount=a.amount,r[o].converted[2].unit=a.unit,i[o]=s.type):(r[o].converted[2].amount=(0,it.o)(s.amount,wprmp_admin.settings.unit_conversion_round_to_decimals,!0),r[o].converted[2].unit=s.alias,i[o]="none"===s.type?"none":t),n[o]=!1}this.props.onIngredientsChange(r),this.setState({isConverting:n,methods:i})}}))}this.setState({isConverting:n,methods:i})}render(){if(!wprm_admin.addons.pro)return i.createElement("p",null,(0,u.S)("This feature is only available in")," ",i.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Pro Bundle"),".");if(!wprm_admin_modal.unit_conversion)return i.createElement("p",null,(0,u.S)("You need to set up this feature on the WP Recipe Maker > Settings > Unit Conversion page first."));if(!this.props.ingredients.filter((e=>"ingredient"===e.type&&e.name)).length)return i.createElement("p",null,(0,u.S)("No ingredients set for this recipe."));var e="default"===this.props.system?wprm_admin_modal.unit_conversion.default_system:this.props.system;1!==(e=parseInt(e))&&2!==e&&(e=1);var t=2===e?1:2;return i.createElement("div",{className:"wprm-admin-modal-field-ingredient-unit-conversion-container"},i.createElement("div",{className:"wprm-admin-modal-field-ingredient-unit-conversion-system"},i.createElement("label",null,(0,u.S)("Original Unit System for this recipe"),":"),i.createElement(M.Z,{options:[{value:"default",label:"".concat((0,u.S)("Use Default")," (").concat(wprm_admin_modal.unit_conversion.systems[parseInt(wprm_admin_modal.unit_conversion.default_system)].label,")")},{value:"1",label:"".concat((0,u.S)("First Unit System")," (").concat(wprm_admin_modal.unit_conversion.systems[1].label,")")},{value:"2",label:"".concat((0,u.S)("Second Unit System")," (").concat(wprm_admin_modal.unit_conversion.systems[2].label,")")}],value:this.props.system,onChange:e=>{this.props.onSystemChange(e)},width:255})),i.createElement("table",{className:"wprm-admin-modal-field-ingredient-unit-conversion"},i.createElement("thead",null,i.createElement("tr",null,i.createElement("th",null,(0,u.S)("Conversion")),i.createElement("th",null,(0,u.S)("Converted")," (",wprm_admin_modal.unit_conversion.systems[t].label,")"),i.createElement("th",null,(0,u.S)("Original")," (",wprm_admin_modal.unit_conversion.systems[e].label,")"))),i.createElement("tbody",null,this.props.ingredients.map(((e,r)=>"group"!==e.type&&e.name?i.createElement(st,{ingredient:e,isConverting:this.state.isConverting[r],method:this.state.methods[r],onMethodChange:e=>{this.state.isConverting[r]||this.convert([r],e,t)},onConvertedChange:e=>{var t=JSON.parse(JSON.stringify(this.props.ingredients));t[r].converted=e,this.props.onIngredientsChange(t)},convertedUnitSystem:t,key:r}):null)))),i.createElement("button",{className:"button button-primary",onClick:e=>{e.preventDefault(),this.convertAll("automatic",t)}},(0,u.S)("Convert All Automatically")))}}var{hooks:lt}=WPRecipeMaker["wp-recipe-maker/dist/shared"];class ct extends i.Component{constructor(e){super(e),this.state={mode:"edit"}}shouldComponentUpdate(e,t){return this.state.mode!==t.mode||this.props.type!==e.type||this.props.linkType!==e.linkType||this.props.system!==e.system||JSON.stringify(this.props.ingredients)!==JSON.stringify(e.ingredients)}render(){var e={edit:{label:"howto"===this.props.type?(0,u.S)("Edit Materials"):(0,u.S)("Edit Ingredients"),block:nt},"ingredient-links":{label:"howto"===this.props.type?(0,u.S)("Material Links"):(0,u.S)("Ingredient Links"),block:()=>i.createElement("p",null,(0,u.S)("This feature is only available in")," ",i.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Premium"),".")},"unit-conversion":{label:(0,u.S)("Unit Conversion"),block:()=>i.createElement("p",null,(0,u.S)("This feature is only available in")," ",i.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Pro Bundle"),".")}};wprm_admin.addons.pro&&(e["unit-conversion"].block=ut);var t=lt.applyFilters("modalRecipeIngredients",e),r=!!t.hasOwnProperty(this.state.mode)&&t[this.state.mode].block;if(!r)return null;var n=null;switch(this.state.mode){case"products":n=i.createElement(r,{taxonomy:"wprm_ingredient",items:this.props.ingredients.filter((e=>"ingredient"===e.type&&e.name)),onItemsChange:e=>{this.props.onRecipeChange({ingredients_flat:e})}});break;case"unit-conversion":n=i.createElement(r,{ingredients:this.props.ingredients,onIngredientsChange:e=>{this.props.onRecipeChange({ingredients_flat:e})},system:this.props.system,onSystemChange:e=>{this.props.onRecipeChange({unit_system:e})}});break;case"ingredient-links":n=i.createElement(r,{ingredients:this.props.ingredients,onIngredientsChange:e=>{this.props.onRecipeChange({ingredients_flat:e})},type:this.props.linkType,onTypeChange:e=>{this.props.onRecipeChange({ingredient_links_type:e})},onModeChange:this.props.onModeChange});break;case"preview":n=i.createElement(r,{ingredients:this.props.ingredients});break;default:n=i.createElement(r,{type:this.props.type,ingredients:this.props.ingredients,instructions:this.props.instructions,onRecipeChange:this.props.onRecipeChange})}return i.createElement("div",{className:"wprm-admin-modal-field-ingredient-container"},i.createElement(qe,{modes:e,mode:this.state.mode,onModeChange:e=>{this.setState({mode:e})}}),n)}}function dt(){return dt=Object.assign?Object.assign.bind():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},dt.apply(this,arguments)}var pt=(0,Je.TB)("tab");class ft extends i.Component{shouldComponentUpdate(e){return JSON.stringify(this.props)!==JSON.stringify(e)}render(){var e=this.props.amount?this.props.amount:"",t=this.props.notes?this.props.notes:"";return i.createElement(Ve._l,{draggableId:"equipment-".concat(this.props.uid),index:this.props.index},((r,n)=>i.createElement("div",dt({className:"wprm-admin-modal-field-equipment",ref:r.innerRef},r.draggableProps),(e=>i.createElement("div",dt({className:"wprm-admin-modal-field-equipment-handle"},e.dragHandleProps,{tabIndex:"-1"}),i.createElement(ze.Z,{type:"drag"})))(r),i.createElement("div",{className:"wprm-admin-modal-field-equipment-text-container"},i.createElement(Te.Z,{singleLine:!0,toolbar:wprm_admin.addons.premium?"all":"no-link",className:"wprm-admin-modal-field-equipment-amount",value:e,placeholder:"1",onChange:e=>this.props.onChangeEquipment({amount:e})}),i.createElement(Te.Z,{singleLine:!0,toolbar:"equipment",value:this.props.name,placeholder:"howto"===this.props.recipeType?(0,u.S)("Pair of scissors"):(0,u.S)("Pressure cooker"),onChange:e=>this.props.onChangeEquipment({name:e})}),i.createElement(Te.Z,{singleLine:!0,toolbar:wprm_admin.addons.premium?"all":"no-link",value:t,placeholder:(0,u.S)("optional"),onChange:e=>this.props.onChangeEquipment({notes:e}),onKeyDown:e=>{pt(e)&&this.props.onTab(e)}})),i.createElement("div",{className:"wprm-admin-modal-field-equipment-after-container"},i.createElement("div",{className:"wprm-admin-modal-field-equipment-after-container-icons"},i.createElement(ze.Z,{type:"trash",onClick:this.props.onDelete}),i.createElement(ze.Z,{type:"plus",title:(0,u.S)("Insert After"),onClick:this.props.onAdd}))))))}}function mt(){return mt=Object.assign?Object.assign.bind():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},mt.apply(this,arguments)}function ht(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 gt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ht(Object(r),!0).forEach((function(t){vt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ht(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function vt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class bt extends i.Component{constructor(e){super(e),this.container=i.createRef(),this.lastAddedIndex=0}shouldComponentUpdate(e){return this.props.type!==e.type||JSON.stringify(this.props.equipment)!==JSON.stringify(e.equipment)}componentDidUpdate(e){if(this.props.equipment.length>e.equipment.length){var t=this.container.current.querySelectorAll(".wprm-admin-modal-field-equipment-amount");t.length&&t[this.lastAddedIndex]&&t[this.lastAddedIndex].focus()}}onDragEnd(e){if(e.destination){var t=JSON.parse(JSON.stringify(this.props.equipment)),r=e.source.index,n=e.destination.index,i=t.splice(r,1)[0];t.splice(n,0,i),this.props.onRecipeChange({equipment:t})}}addField(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=JSON.parse(JSON.stringify(this.props.equipment)),r={name:""},n=Math.max.apply(Math,t.map((function(e){return e.uid})));n=n<0?-1:n,r.uid=n+1,!1===e?(t.push(r),this.lastAddedIndex=t.length-1):(t.splice(e+1,0,r),this.lastAddedIndex=e+1),this.props.onRecipeChange({equipment:t})}render(){return i.createElement("div",{className:"wprm-admin-modal-field-equipment-edit-container",ref:this.container},i.createElement(Ve.Z5,{onDragEnd:this.onDragEnd.bind(this)},i.createElement(Ve.bK,{droppableId:"wprm-equipment"},((e,t)=>i.createElement("div",mt({className:"".concat(t.isDraggingOver?" wprm-admin-modal-field-equipment-container-draggingover":""),ref:e.innerRef},e.droppableProps),i.createElement("div",{className:"wprm-admin-modal-field-equipment-header-container"},i.createElement("div",{className:"wprm-admin-modal-field-equipment-header"},(0,u.S)("Amount")),i.createElement("div",{className:"wprm-admin-modal-field-equipment-header"},(0,u.S)("Name")," ",i.createElement("span",{className:"wprm-admin-modal-field-equipment-header-required"},"(",(0,u.S)("required"),")")),i.createElement("div",{className:"wprm-admin-modal-field-equipment-header"},(0,u.S)("Notes"))),this.props.equipment.map(((e,t)=>i.createElement(ft,mt({},e,{recipeType:this.props.type,index:t,key:"equipment-".concat(e.uid),onTab:e=>{t===this.props.equipment.length-1&&(e.preventDefault(),setTimeout((()=>{this.addField()})))},onAdd:()=>{this.addField(t)},onChangeEquipment:e=>{var r=JSON.parse(JSON.stringify(this.props.equipment));r[t]=gt(gt({},r[t]),e),this.props.onRecipeChange({equipment:r})},onDelete:()=>{var e=JSON.parse(JSON.stringify(this.props.equipment));e.splice(t,1),this.props.onRecipeChange({equipment:e})}})))),e.placeholder)))),i.createElement("div",{className:"wprm-admin-modal-field-equipment-actions"},i.createElement("button",{className:"button",onClick:e=>{e.preventDefault(),this.addField()}},(0,u.S)("Add Equipment")),i.createElement("p",null,(0,u.S)("Tip: use the TAB key to move from field to field and easily add equipment."))))}}var{hooks:yt}=WPRecipeMaker["wp-recipe-maker/dist/shared"];class wt extends i.Component{constructor(e){super(e),this.state={mode:"edit"}}shouldComponentUpdate(e,t){return this.state.mode!==t.mode||this.props.type!==e.type||JSON.stringify(this.props.equipment)!==JSON.stringify(e.equipment)}render(){var e={edit:{label:(0,u.S)("Edit Equipment"),block:bt},"equipment-affiliate":{label:(0,u.S)("Equipment Affiliate Fields"),block:()=>i.createElement("p",null,(0,u.S)("This feature is only available in")," ",i.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Premium"),".")}},t=yt.applyFilters("modalRecipeEquipment",e),r=!!t.hasOwnProperty(this.state.mode)&&t[this.state.mode].block;if(!r)return null;var n=null;if("products"===this.state.mode)n=i.createElement(r,{taxonomy:"wprm_equipment",items:this.props.equipment.filter((e=>e.name)),onItemsChange:e=>{this.props.onRecipeChange({equipment:e})}});else n=i.createElement(r,{type:this.props.type,equipment:this.props.equipment,instructions:this.props.instructions,onRecipeChange:this.props.onRecipeChange,onModeChange:this.props.onModeChange});return i.createElement("div",{className:"wprm-admin-modal-field-equipment-container"},i.createElement(qe,{modes:e,mode:this.state.mode,onModeChange:e=>{this.setState({mode:e})}}),n)}}r(18183),r(19985);var Dt={getIngredientString(e){var t="",r=[];return e.amount&&r.push(e.amount),e.unit&&r.push(e.unit),e.name&&r.push(e.name),e.notes&&r.push(e.notes),r.length&&(t=r.join(" ").replace(/(<([^>]+)>)/gi,"").trim()),t}};function Et(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 Ct(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Et(Object(r),!0).forEach((function(t){St(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Et(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function St(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var It=e=>{var{video:t}=e,r=e.image>0;return i.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container-media"},i.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container-media-icons"},i.createElement(ze.Z,{type:"photo",title:r?(0,u.S)("Remove Image"):(0,u.S)("Add Instruction Image"),onClick:()=>{r?e.onChangeImage(0,""):xe.Z.selectImage((t=>{e.onChangeImage(t.id,t.url)}))},hidden:"none"!==t.type&&"part"!==t.type}),i.createElement("div",{className:"wprm-icon-spacer"}),i.createElement(ze.Z,{type:"movie",title:"upload"===t.type?(0,u.S)("Remove Video"):(0,u.S)("Upload Instruction Video"),onClick:()=>{"upload"===t.type?e.onChangeVideo(Ct(Ct({},t),{},{type:"none",id:0,thumb:""})):xe.Z.selectVideo((r=>{e.onChangeVideo(Ct(Ct({},t),{},{type:"upload",id:r.attributes.id,thumb:r.attributes.thumb.src}))}))},hidden:r||"none"!==t.type&&"upload"!==t.type}),i.createElement(ze.Z,{type:"code",title:"embed"===t.type?(0,u.S)("Remove Video"):(0,u.S)("Embed Instruction Video"),onClick:()=>{"embed"===t.type?e.onChangeVideo(Ct(Ct({},t),{},{type:"none",embed:""})):e.onChangeVideo(Ct(Ct({},t),{},{type:"embed"}))},hidden:r||"none"!==t.type&&"embed"!==t.type}),i.createElement(ze.Z,{type:"videoplayer",title:"part"===t.type?(0,u.S)("Remove Video Part"):(0,u.S)("Instruction is part of the main video"),onClick:()=>{e.onChangeVideo(Ct(Ct({},t),{},{type:"part"===t.type?"none":"part",start:"",end:"",name:""}))},hidden:!e.allowVideo||"none"!==t.type&&"part"!==t.type})),(r||"upload"===t.type||"embed"===t.type)&&i.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container-media-preview"},r?i.createElement("div",{className:"wprm-admin-modal-field-image-preview"},i.createElement("img",{src:e.image_url,onClick:()=>{xe.Z.selectImage((t=>{e.onChangeImage(t.id,t.url)}))}})):i.createElement(i.Fragment,null,"upload"===t.type&&i.createElement("div",{className:"wprm-admin-modal-field-video-preview"},i.createElement("img",{src:t.thumb,onClick:()=>{xe.Z.selectVideo((r=>{e.onChangeVideo(Ct(Ct({},t),{},{id:r.attributes.id,thumb:r.attributes.thumb.src}))}))}})),"embed"===t.type&&i.createElement(fe.Z,{value:t.embed,onChange:r=>{e.onChangeVideo(Ct(Ct({},t),{},{embed:r}))},placeholder:(0,u.S)("Instruction video URL or embed code")}))))};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 Ot(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){At(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 At(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Mt=e=>{var t=e.hasOwnProperty("ingredients")?e.ingredients:[],r=[],n=[],o=[];for(var a of e.allIngredients)if("ingredient"===a.type){var s=Dt.getIngredientString(a);if(s){var l={value:a.uid,label:B().decode(s)};e.usedIngredients.includes(a.uid)?r.push(l):n.push(l),t.includes(a.uid)&&o.push(l)}}var c=[{label:(0,u.S)("Not associated yet"),options:n},{label:(0,u.S)("Already Associated"),options:r}];return i.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container-ingredient"},i.createElement(N.ZP,{isMulti:!0,options:c,value:o,placeholder:(0,u.S)("Select ingredients..."),onChange:t=>{var r=[];if(t)for(var n of t)r.push(n.value);e.onChangeIngredients(r)},styles:{placeholder:e=>Ot(Ot({},e),{},{color:"#444",opacity:"0.333"}),control:e=>Ot(Ot({},e),{},{backgroundColor:"white"}),container:e=>Ot(Ot({},e),{},{width:"100%",maxWidth:"100%"})}}))},Pt=(r(67838),e=>{var t=!!e.hasOwnProperty("disabled")&&e.disabled;return i.createElement("input",{type:"text",disabled:t,name:e.name,value:e.value,placeholder:"0:00",onChange:t=>{(e=>{var[t,r]=e.split(":");if(!/^\d*:?\d{0,2}$/.test(e))return!1;var n,i=Number(t),o=Number(r);if(n=i,!(Number.isInteger(n)&&n>=0&&(e=>Number.isInteger(e)&&e>=0||Number.isNaN(e))(o)))return!1;if(o<10&&Number(r[0])>5)return!1;var a=-1!==e.indexOf(":")?e.split(":"):[e];return!(a[0]&&a[0].length&&parseInt(a[0],10)<0||a[1]&&a[1].length&&(parseInt(a[1],10)<0||parseInt(a[1],10)>59))})(t.target.value)&&e.onChange(t.target.value)}})});function Bt(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 Nt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Bt(Object(r),!0).forEach((function(t){kt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function kt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tt(){return Tt=Object.assign?Object.assign.bind():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},Tt.apply(this,arguments)}var jt=(0,Je.TB)("tab"),Lt=e=>i.createElement("div",Tt({className:"wprm-admin-modal-field-instruction-handle"},e.dragHandleProps,{tabIndex:"-1"}),i.createElement(ze.Z,{type:"drag"}));class Ft extends i.Component{shouldComponentUpdate(e){return JSON.stringify(this.props)!==JSON.stringify(e)}render(){return i.createElement(Ve._l,{draggableId:"instruction-".concat(this.props.uid),index:this.props.index},((e,t)=>"group"===this.props.type?((e,t)=>i.createElement("div",Tt({className:"wprm-admin-modal-field-instruction-group",ref:t.innerRef},t.draggableProps),i.createElement("div",{className:"wprm-admin-modal-field-instruction-main-container"},Lt(t),i.createElement("div",{className:"wprm-admin-modal-field-instruction-group-name-container"},i.createElement(Te.Z,{singleLine:!0,toolbar:"no-styling",value:e.name,placeholder:(0,u.S)("Instruction Group Header"),onChange:t=>e.onChangeName(t),onKeyDown:t=>{jt(t)&&e.onTab(t)}}))),i.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container"},i.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container-icons"},i.createElement(ze.Z,{type:"trash",title:(0,u.S)("Delete"),onClick:e.onDelete}),i.createElement(ze.Z,{type:"plus-text",title:(0,u.S)("Insert Group After"),onClick:e.onAddGroup}),i.createElement(ze.Z,{type:"plus",title:(0,u.S)("Insert Instruction After"),onClick:e.onAdd})))))(this.props,e):((e,t)=>{var r={type:"none",embed:"",id:"",thumb:"",start:"",end:"",name:""};return e.video&&"none"===(r=Nt(Nt({},r),e.video)).type&&(r.start||r.end)&&(r.type="part"),i.createElement("div",Tt({className:"wprm-admin-modal-field-instruction",ref:t.innerRef},t.draggableProps),i.createElement("div",{className:"wprm-admin-modal-field-instruction-main-container"},Lt(t),i.createElement("div",{className:"wprm-admin-modal-field-instruction-text-container"},i.createElement("div",{className:"wprm-admin-modal-field-instruction-text-name-container"},i.createElement(Te.Z,{className:"wprm-admin-modal-field-instruction-text",value:e.text,placeholder:(0,u.S)("This is one step of the instructions."),onChange:t=>e.onChangeText(t),onKeyDown:t=>{jt(t)&&e.onTab(t)}})),e.allowVideo&&"part"===r.type&&"media"===e.editMode&&i.createElement("div",{className:"wprm-admin-modal-field-instruction-video-container"},i.createElement(Pt,{value:r.start,onChange:t=>{e.onChangeVideo(Nt(Nt({},r),{},{start:t}))}}),i.createElement(Pt,{value:r.end,onChange:t=>{e.onChangeVideo(Nt(Nt({},r),{},{end:t}))}}),r.start&&r.end?i.createElement(g.Z,{placeholder:(0,u.S)("Name for this video part"),value:r.name,onChange:t=>{e.onChangeVideo(Nt(Nt({},r),{},{name:t}))}}):i.createElement(ze.Z,{type:"movie",title:(0,u.S)("Add video start and end time (in seconds or minutes:seconds format) if this instruction step is part of the recipe video.")})))),i.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container"},i.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container-icons"},i.createElement(ze.Z,{type:"trash",title:(0,u.S)("Delete"),onClick:e.onDelete}),i.createElement(ze.Z,{type:"plus-text",title:(0,u.S)("Insert Group After"),onClick:e.onAddGroup}),i.createElement(ze.Z,{type:"plus",title:(0,u.S)("Insert Instruction After"),onClick:e.onAdd})),"summary"===e.editMode&&i.createElement("div",{className:"wprm-admin-modal-field-instruction-after-container-summary"},i.createElement(Te.Z,{singleLine:!0,className:"wprm-admin-modal-field-instruction-name",toolbar:"none",value:e.hasOwnProperty("name")?e.name:"",placeholder:(0,u.S)("Step Summary"),onChange:t=>e.onChangeName(t)})),"media"===e.editMode&&i.createElement(It,Tt({},e,{video:r})),"ingredients"===e.editMode&&i.createElement(Mt,e)))})(this.props,e)))}}function Rt(){return Rt=Object.assign?Object.assign.bind():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},Rt.apply(this,arguments)}class _t extends i.Component{constructor(e){super(e);var t="media",r=localStorage.getItem("wprm-modal-edit-mode");r&&(t=r),this.state={editMode:t},this.container=i.createRef(),this.lastAddedIndex=0}shouldComponentUpdate(e,t){return this.state.editMode!==t.editMode||this.props.type!==e.type||this.props.allowVideo!==e.allowVideo||JSON.stringify(this.props.instructions)!==JSON.stringify(e.instructions)||JSON.stringify(this.props.ingredients)!==JSON.stringify(e.ingredients)}componentDidUpdate(e){if(this.props.instructions.length>e.instructions.length){var t=this.container.current.querySelectorAll(".wprm-admin-modal-field-richtext:not(.wprm-admin-modal-field-instruction-name)");t.length&&t[this.lastAddedIndex]&&t[this.lastAddedIndex].focus()}}onDragEnd(e){if(e.destination){var t=JSON.parse(JSON.stringify(this.props.instructions)),r=e.source.index,n=e.destination.index,i=t.splice(r,1)[0];t.splice(n,0,i),this.props.onRecipeChange({instructions_flat:t})}}addField(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=JSON.parse(JSON.stringify(this.props.instructions));t="group"===e?{type:"group",name:""}:{type:"instruction",name:"",text:"",image:0,image_url:"",ingredients:[]};var i=Math.max.apply(Math,n.map((function(e){return e.uid})));i=i<0?-1:i,t.uid=i+1,!1===r?(n.push(t),this.lastAddedIndex=n.length-1):(n.splice(r+1,0,t),this.lastAddedIndex=r+1),this.props.onRecipeChange({instructions_flat:n})}render(){var e={media:{label:(0,u.S)("Instruction Media")}};"ignore"!==wprm_admin.settings.metadata_instruction_name&&"other"!==this.props.type&&(e.summary={label:(0,u.S)("Metadata"),help:(0,u.S)('For guided recipes, Google wants a short (usually 1 word) summary for each instruction step. This will be the "name" in the HowToStep metadata. This is not shown in the recipe template.')}),e.ingredients={label:(0,u.S)("Associated Ingredients")};var t=this.props.ingredients.filter((e=>"ingredient"===e.type&&""!==e.name)),r=[];for(var n of this.props.instructions)n.hasOwnProperty("ingredients")&&(r=r.concat(n.ingredients));var o=[];for(var a of this.props.ingredients)if("ingredient"===a.type&&!r.includes(a.uid)){var s=Dt.getIngredientString(a);s&&o.push(s)}return i.createElement(i.Fragment,null,i.createElement(qe,{modes:e,mode:this.state.editMode,onModeChange:e=>{localStorage.setItem("wprm-modal-edit-mode",e),this.setState({editMode:e})}}),i.createElement("div",{className:"wprm-admin-modal-field-instruction-container",ref:this.container},i.createElement(Ve.Z5,{onDragEnd:this.onDragEnd.bind(this)},i.createElement(Ve.bK,{droppableId:"wprm-instructions"},((e,n)=>i.createElement("div",Rt({className:"".concat(n.isDraggingOver?" wprm-admin-modal-field-instruction-container-draggingover":""),ref:e.innerRef},e.droppableProps),this.props.instructions.map(((e,n)=>i.createElement(Ft,Rt({},e,{index:n,key:"instruction-".concat(e.uid),onTab:e=>{n===this.props.instructions.length-1&&(e.preventDefault(),setTimeout((()=>{this.addField("instruction")})))},editMode:this.state.editMode,onChangeName:e=>{var t=JSON.parse(JSON.stringify(this.props.instructions));t[n].name=e,this.props.onRecipeChange({instructions_flat:t})},onChangeText:e=>{var t=JSON.parse(JSON.stringify(this.props.instructions));t[n].text=e,this.props.onRecipeChange({instructions_flat:t})},onChangeImage:(e,t)=>{var r=JSON.parse(JSON.stringify(this.props.instructions));r[n].image=e,r[n].image_url=t,this.props.onRecipeChange({instructions_flat:r})},onDelete:()=>{var e=JSON.parse(JSON.stringify(this.props.instructions));e.splice(n,1),this.props.onRecipeChange({instructions_flat:e})},onAdd:()=>{this.addField("instruction",n)},onAddGroup:()=>{this.addField("group",n)},allowVideo:this.props.allowVideo,onChangeVideo:e=>{var t=JSON.parse(JSON.stringify(this.props.instructions));t[n].video=e,this.props.onRecipeChange({instructions_flat:t})},allIngredients:t,usedIngredients:r,onChangeIngredients:e=>{var t=JSON.parse(JSON.stringify(this.props.instructions));t[n].ingredients=e,this.props.onRecipeChange({instructions_flat:t})}})))),e.placeholder)))),"ingredients"===this.state.editMode&&i.createElement("div",{className:"wprm-admin-modal-field-instruction-unused-ingredients"},0===t.length?i.createElement("div",{className:"wprm-admin-modal-field-instruction-unused-ingredients-info"},(0,u.S)("This recipe doesn't have any ingredients.")):i.createElement(i.Fragment,null,0===o.length?i.createElement("div",{className:"wprm-admin-modal-field-instruction-unused-ingredients-info"},(0,u.S)("All ingredients are associated with a step!")):i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-field-instruction-unused-ingredients-info"},(0,u.S)("Unused ingredients:")),o.map(((e,t)=>i.createElement("div",{className:"wprm-admin-modal-field-instruction-unused-ingredients-ingredient",key:t},B().decode(e))))))),i.createElement("div",{className:"wprm-admin-modal-field-instruction-actions"},i.createElement("button",{className:"button",onClick:e=>{e.preventDefault(),this.addField("instruction")}},(0,u.S)("Add Instruction")),i.createElement("button",{className:"button",onClick:e=>{e.preventDefault(),this.addField("group")}},(0,u.S)("Add Instruction Group")),i.createElement("p",null,(0,u.S)("Tip: use the TAB key to move from field to field and easily add instructions.")))))}}function Zt(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 Ht(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zt(Object(r),!0).forEach((function(t){Wt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Wt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ut=-1!==Object.values(wprm_admin_modal.nutrition).findIndex((e=>"calculated"===e.type));class Gt extends i.Component{constructor(e){super(e),this.state={calculating:!1}}shouldComponentUpdate(e,t){return this.state.calculing!==t.calculating||JSON.stringify(this.props.servings)!==JSON.stringify(e.servings)||JSON.stringify(this.props.nutrition)!==JSON.stringify(e.nutrition)}componentDidMount(){this.calculateNutrients()}componentDidUpdate(e){JSON.stringify(this.props.nutrition)!==JSON.stringify(e.nutrition)&&this.calculateNutrients()}calculateNutrients(){Ut&&wprm_admin.addons.pro&&this.setState({calculating:!0},(()=>{l.Z.nutrition.getCalculated(this.props.nutrition).then((e=>{e&&Object.keys(e.calculated).length>0&&this.props.onRecipeChange({nutrition:Ht(Ht({},this.props.nutrition),e.calculated)}),this.setState({calculating:!1})}))}))}render(){var e=this.props,t=e.nutrition.hasOwnProperty("serving_size")&&e.nutrition.serving_size?e.nutrition.serving_size:"",r=e.nutrition.hasOwnProperty("serving_unit")&&e.nutrition.serving_unit?e.nutrition.serving_unit:"";return i.createElement(i.Fragment,null,i.createElement("p",null,(0,u.S)("These should be the nutrition facts for 1 serving of your recipe."),i.createElement("br",null),e.servings.amount?i.createElement(i.Fragment,null,(0,u.S)("Total servings for this recipe:")," ","".concat(e.servings.amount," ").concat(e.servings.unit)):i.createElement(i.Fragment,null,(0,u.S)('You don\'t have the servings field set for your recipe under "General".'))),i.createElement("div",{className:"wprm-admin-modal-field-nutrition-container"},wprm_admin.addons.premium?i.createElement(A.Z,{id:"nutrition_serving_size",label:(0,u.S)("Serving Size"),help:(0,u.S)("The weight of 1 serving. Does not affect the calculation.")},i.createElement(g.Z,{type:"number",value:t,onChange:t=>{var r=Ht(Ht({},e.nutrition),{},{serving_size:t});e.onRecipeChange({nutrition:r})}}),i.createElement(g.Z,{name:"serving-unit",placeholder:wprm_admin.settings.nutrition_default_serving_unit,value:r,onChange:t=>{var r=Ht(Ht({},e.nutrition),{},{serving_unit:t});e.onRecipeChange({nutrition:r})}})):null,Object.keys(wprm_admin_modal.nutrition).map(((t,r)=>{var n=wprm_admin_modal.nutrition[t],o=e.nutrition.hasOwnProperty(t)?e.nutrition[t]:"";return"serving_size"===t?null:"calories"===t||wprm_admin.addons.premium?i.createElement(A.Z,{id:"nutrition_".concat(t),label:n.label,key:r},"calculated"===n.type&&this.state.calculating?i.createElement(Ce.Z,null):i.createElement(i.Fragment,null,i.createElement(g.Z,{type:"number",value:o,onChange:r=>{var n=Ht(Ht({},e.nutrition),{},{[t]:r});e.onRecipeChange({nutrition:n})},disabled:"calculated"===n.type}),i.createElement("span",{className:"wprm-admin-modal-field-nutrition-unit"},n.unit))):null}))),wprm_admin.addons.premium?null:i.createElement("p",null,(0,u.S)("More nutrients are available in")," ",i.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank"},"WP Recipe Maker Premium"),"."),i.createElement(d,{isPrimary:!0,required:"pro",onClick:()=>{e.onModeChange("nutrition-calculation")}},(0,u.S)("Calculate Nutrition Facts")))}}class zt extends i.Component{constructor(e){super(e);var t=parseInt(wprm_admin_modal.editor_uid);wprm_admin_modal.editor_uid=t+1,this.state={editorHtml:!1,addedListeners:!1,editorId:"wprm-admin-modal-notes-editor-".concat(t)},this.initEditor=this.initEditor.bind(this),this.initTinyMCE=this.initTinyMCE.bind(this)}componentDidMount(){var e=document.getElementById("wprm-admin-modal-notes-placeholder").innerHTML;e=e.replace(/wprm-admin-modal-notes-editor/g,this.state.editorId),this.setState({editorHtml:e})}componentDidUpdate(e,t){this.state.editorHtml&&!t.editorHtml&&this.initEditor()}initEditor(){void 0!==window.tinymce?this.initTinyMCE():this.initTextarea()}initTextarea(){var e=document.getElementById(this.state.editorId);if(void 0!==window.quicktags)try{window.quicktags({id:this.state.editorId})}catch(t){}e&&(e.value=this.props.value,["input","blur"].forEach((t=>{e.addEventListener(t,(()=>{this.props.onChange(e.value)}))})))}initTinyMCE(){document.getElementById("wp-".concat(this.state.editorId,"-editor-container")).outerHTML='<textarea id="'.concat(this.state.editorId,'"></textarea>');var e=tinymce.$("#wp-".concat(this.state.editorId,"-wrap"));e.removeClass("tmce-active").addClass("html-active"),this.initTextarea(),e.removeClass("html-active").addClass("tmce-active");var t={};void 0!==window.tinyMCEPreInit&&tinyMCEPreInit.hasOwnProperty("mceInit")&&tinyMCEPreInit.mceInit.hasOwnProperty("wprm-admin-modal-notes-editor")&&(t=tinyMCEPreInit.mceInit["wprm-admin-modal-notes-editor"]),t.hasOwnProperty("body_class")&&(t.body_class=t.body_class.replace(/wprm-admin-modal-notes-editor/g,this.state.editorId)),t.selector="#".concat(this.state.editorId),window.tinymce.init(t);var r=window.tinymce.get(this.state.editorId);r&&r.on("change",(()=>{this.props.onChange(r.getContent())}))}componentWillUnmount(){void 0!==window.tinyMCE&&window.tinyMCE.remove("#".concat(this.state.editorId))}render(){return this.state.editorHtml?i.createElement("div",{id:"wprm-admin-modal-field-tinymce-container",dangerouslySetInnerHTML:{__html:this.state.editorHtml}}):i.createElement(Ce.Z,null)}}var qt=wprm_admin_modal.custom_fields&&wprm_admin_modal.custom_fields.fields?Object.values(wprm_admin_modal.custom_fields.fields):[],Vt=e=>i.createElement(i.Fragment,null,qt.map(((t,r)=>{var n=!!e.fields.hasOwnProperty(t.key)&&e.fields[t.key];switch(t.type){case"text":case"link":case"email":var o="link"===t.type?"url":t.type;return i.createElement(A.Z,{label:t.name,key:r},i.createElement(g.Z,{type:o,name:"recipe-custom-".concat(t.key),value:n||"",onChange:r=>{e.onFieldChange(t.key,r)}}));case"textarea":return i.createElement(A.Z,{label:t.name,key:r},i.createElement(Te.Z,{value:n||"",onChange:r=>{e.onFieldChange(t.key,r)}}));case"classic":return i.createElement(A.Z,{label:t.name,key:r},i.createElement(zt,{value:n||"",onChange:r=>{e.onFieldChange(t.key,r)}}));case"image":return i.createElement(A.Z,{label:t.name,key:r},i.createElement(Oe,{id:n?n.id:0,url:n?n.url:"",onChange:(r,n)=>{e.onFieldChange(t.key,{id:r,url:n})}}))}}))),Jt=e=>i.createElement(A.Z,{label:(0,u.S)("Recipe Notes")},i.createElement(zt,{id:"recipe-notes",value:e.notes,onChange:t=>{e.onRecipeChange({notes:t})}})),Yt=e=>{var t=e.recipe.video_id>0,r=!t&&(-1==e.recipe.video_id||e.recipe.video_embed),n=t||r,o=[{id:"import",name:(0,u.S)("Import"),elem:i.createElement(Ie,{onModeChange:e.onModeChange,onImportJSON:e.onImportJSON})},{id:"media",name:(0,u.S)("Media"),elem:i.createElement(Pe,{image:{id:e.recipe.image_id,url:e.recipe.image_url},pinImage:{id:e.recipe.pin_image_id,url:e.recipe.pin_image_url,repin:e.recipe.pin_image_repin_id},video:{id:e.recipe.video_id,thumb:e.recipe.video_thumb_url,embed:e.recipe.video_embed},onRecipeChange:e.onRecipeChange})}];return"public"!==wprm_admin.settings.post_type_structure&&"manual"!==wprm_admin.settings.recipe_use_author||o.push({id:"postType",name:(0,u.S)("Post Type"),elem:i.createElement(Be,{slug:e.recipe.slug,post_status:e.recipe.post_status,post_password:e.recipe.post_password,post_author:e.recipe.post_author,language:e.recipe.language,onRecipeChange:e.onRecipeChange})}),o.push({id:"general",name:(0,u.S)("General"),elem:i.createElement(_e,{type:e.recipe.type,name:e.recipe.name,summary:e.recipe.summary,author:{display:e.recipe.author_display,name:e.recipe.author_name,link:e.recipe.author_link},servings:{amount:e.recipe.servings,unit:e.recipe.servings_unit},servings_advanced_enabled:e.recipe.servings_advanced_enabled,servings_advanced:e.recipe.servings_advanced,cost:e.recipe.cost,my_emissions:e.recipe.my_emissions,onRecipeChange:e.onRecipeChange})}),o.push({id:"times",name:(0,u.S)("Times"),elem:i.createElement(He,{type:e.recipe.type,prep:{time:e.recipe.prep_time,zero:e.recipe.prep_time_zero},cook:{time:e.recipe.cook_time,zero:e.recipe.cook_time_zero},custom:{time:e.recipe.custom_time,zero:e.recipe.custom_time_zero},customLabel:e.recipe.custom_time_label,total:{time:e.recipe.total_time,zero:!1},onRecipeChange:e.onRecipeChange})}),o.push({id:"categories",name:(0,u.S)("Categories"),elem:i.createElement(Ge,{tags:e.recipe.tags,onRecipeChange:e.onRecipeChange})}),o.push({id:"equipment",name:(0,u.S)("Equipment"),elem:i.createElement(wt,{type:e.recipe.type,equipment:e.recipe.equipment,onRecipeChange:e.onRecipeChange,onModeChange:e.onModeChange})}),o.push({id:"ingredients",name:"howto"===e.recipe.type?(0,u.S)("Materials"):(0,u.S)("Ingredients"),elem:i.createElement(ct,{type:e.recipe.type,ingredients:e.recipe.ingredients_flat,instructions:e.recipe.instructions_flat,linkType:e.recipe.ingredient_links_type,system:e.recipe.unit_system,onRecipeChange:e.onRecipeChange,onModeChange:e.onModeChange})}),o.push({id:"instructions",name:(0,u.S)("Instructions"),elem:i.createElement(_t,{type:e.recipe.type,ingredients:e.recipe.ingredients_flat,instructions:e.recipe.instructions_flat,onRecipeChange:e.onRecipeChange,allowVideo:n&&"other"!==e.recipe.type})}),"howto"!==e.recipe.type&&o.push({id:"nutrition",name:(0,u.S)("Nutrition"),elem:i.createElement(Gt,{nutrition:e.recipe.nutrition,servings:{amount:e.recipe.servings,unit:e.recipe.servings_unit},onRecipeChange:e.onRecipeChange,onModeChange:e.onModeChange})}),wprm_admin_modal.custom_fields&&wprm_admin_modal.custom_fields.fields&&0<Object.keys(wprm_admin_modal.custom_fields.fields).length&&o.push({id:"custom-fields",name:(0,u.S)("Custom Fields"),elem:i.createElement(Vt,{fields:e.recipe.custom_fields,onFieldChange:(t,r)=>{var n=Object.assign({},JSON.parse(JSON.stringify(e.recipe.custom_fields)));n[t]=r,e.onRecipeChange({custom_fields:n})}})}),o.push({id:"notes",name:(0,u.S)("Notes"),elem:i.createElement(Jt,{notes:e.recipe.notes,onRecipeChange:e.onRecipeChange})}),i.createElement(i.Fragment,null,i.createElement(p.Z,{onCloseModal:e.onCloseModal},e.loadingRecipe?(0,u.S)("Loading Recipe..."):i.createElement(i.Fragment,null,e.recipe.id?"".concat((0,u.S)("Editing Recipe")," #").concat(e.recipe.id).concat(e.recipe.name?" - ".concat(e.recipe.name):""):"".concat((0,u.S)("Creating new Recipe")).concat(e.recipe.name?" - ".concat(e.recipe.name):""))),i.createElement("div",{className:"wprm-admin-modal-recipe-quicklinks"},o.map(((e,t)=>i.createElement(we.rU,{to:"wprm-admin-modal-fields-group-".concat(e.id),containerId:"wprm-admin-modal-recipe-content",className:"wprm-admin-modal-recipe-quicklink",activeClass:"active",spy:!0,offset:-10,smooth:!0,duration:400,key:t},e.name)))),i.createElement(we.W_,{className:"wprm-admin-modal-content",id:"wprm-admin-modal-recipe-content"},e.loadingRecipe?i.createElement(Ce.Z,null):i.createElement("form",{className:"wprm-admin-modal-recipe-fields"},o.map(((t,r)=>i.createElement(Se,{header:t.name,id:t.id,key:100*e.forceRerender+r},t.elem))))),i.createElement("div",{id:"wprm-admin-modal-toolbar-container"}),"waiting"===e.saveResult?i.createElement(f.Z,{savingChanges:!1},i.createElement(Ee(),{text:JSON.stringify(e.recipe),onCopy:(e,t)=>{t?alert((0,u.S)('The recipe has been copied and can be used in the "Import from JSON" feature.')):alert((0,u.S)("Something went wrong. Please contact support."))}},i.createElement("a",{href:"#",onClick:e=>{e.preventDefault()}},(0,u.S)("This is taking a long time. Maybe something went wrong?")," ",(0,u.S)("Click to copy the recipe to your clipboard.")))," ",i.createElement(Ce.Z,null)):i.createElement(f.Z,{savingChanges:e.savingChanges},"failed"===e.saveResult&&i.createElement(Ee(),{text:JSON.stringify(e.recipe),onCopy:(e,t)=>{t?alert((0,u.S)('The recipe has been copied and can be used in the "Import from JSON" feature.')):alert((0,u.S)("Something went wrong. Please contact support."))}},i.createElement("a",{href:"#",onClick:e=>{e.preventDefault()}},(0,u.S)("Something went wrong during saving.")," ",(0,u.S)("Click to copy the recipe to your clipboard."))),"ok"===e.saveResult?i.createElement("span",null,(0,u.S)("Saved successfully")):null,i.createElement("button",{className:"button button-primary",onClick:()=>{e.saveRecipe(!1)},disabled:!e.changesMade},(0,u.S)("Save")),i.createElement("button",{className:"button button-primary",onClick:()=>{e.changesMade?e.saveRecipe(!0):e.onCloseModal()}},e.changesMade?(0,u.S)("Save & Close"):(0,u.S)("Close"))))},Qt=e=>i.createElement("div",{className:"wprm-admin-modal-field-text-import-groups"},i.createElement("p",null,(0,u.S)("All of these will be imported. Use the checkbox to indicate group headers.")," "),e.value.map(((t,r)=>i.createElement("div",{className:"wprm-admin-modal-field-text-import-groups-field",key:r},i.createElement("input",{type:"checkbox",checked:t.group,onChange:t=>{var n=JSON.parse(JSON.stringify(e.value));n[r].group=t.target.checked,e.onChange(n)}}),i.createElement("input",{type:"text",value:t.text,style:t.group?{fontWeight:"bold"}:null,onChange:t=>{var n=JSON.parse(JSON.stringify(e.value));n[r].text=t.target.value,e.onChange(n)}})))));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 Kt(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}class er extends i.Component{constructor(e){super(e),this.textInput=i.createRef();var t="";e.text&&(t=this.cleanUpText(e.text)),this.state={text:t,name:!1,summary:!1,equipment:!1,ingredients:!1,instructions:!1,notes:!1,isParsing:!1},this.cleanUpText=this.cleanUpText.bind(this),this.setSelection=this.setSelection.bind(this),this.useValues=this.useValues.bind(this)}componentDidMount(){this.textInput.current.focus()}cleanUpText(e){return e=e.replace(/(<([^>]+)>)/gi,""),e=B().decode(e)}setSelection(e){var t=this.textInput.current,r=t.value.substring(t.selectionStart,t.selectionEnd);if(r=r||!1,"equipment"!==e&&"ingredients"!==e&&"instructions"!==e||(r=this.getSeperateFields(r,e)),r!==this.state[e]){var n={};n[e]=r,this.setState(n)}}getSeperateFields(e,t){if(!1===e)return!1;"instructions"===t&&"punctuation"===wprm_admin_modal.settings.import_instructions_split&&(e=e.replace(/([!\.\?]+)/gm,"$1\n"));var r=[],n=e.split(/[\r\n]+/);for(var i of n)(i=(i=i.trim()).replace(/^(\d+\)\s+|\d+\.\s+|[a-z]+\)\s+|•\s+|[A-Z]+\.\s+|[IVX]+\.\s+)/,""))&&r.push({group:!1,text:i});return!!r.length&&r}useValues(){var e={};if(!1!==this.state.name&&(e.name=this.state.name),!1!==this.state.summary&&(e.summary=this.state.summary),!1!==this.state.notes&&(e.notes=this.state.notes),!1!==this.state.equipment){var t=[];this.state.equipment.map(((e,r)=>{t.push({uid:r,name:e.text})})),e.equipment=t}if(!1!==this.state.instructions){var r=[];this.state.instructions.map(((e,t)=>{e.group?r.push({uid:t,type:"group",name:e.text}):r.push({uid:t,type:"instruction",text:e.text,image:0,image_url:""})})),e.instructions_flat=r}var n=[],i={};!1!==this.state.ingredients&&(this.state.ingredients.map(((e,t)=>{e.group?n.push({uid:t,type:"group",name:e.text}):(n.push({uid:t,type:"ingredient",amount:"",unit:"",name:"",notes:""}),i[t]=e.text)})),e.ingredients_flat=n),0<Object.keys(i).length?this.setState({isParsing:!0},(()=>{l.Z.import.parseIngredients(i).then((t=>{if(t){for(var r in t.parsed){var n=t.parsed[r];e.ingredients_flat[r]=Kt(Kt({},e.ingredients_flat[r]),n)}this.props.onImportValues(e)}else this.setState({isParsing:!1})}))})):this.props.onImportValues(e)}render(){var e=!1!==this.state.name||!1!==this.state.summary||!1!==this.state.equipment||!1!==this.state.ingredients||!1!==this.state.instructions||!1!==this.state.notes;return i.createElement(i.Fragment,null,i.createElement(p.Z,{onCloseModal:this.props.onCloseModal},this.props.recipe.name?"".concat(this.props.recipe.name," - ").concat((0,u.S)("Import from Text")):"".concat((0,u.S)("Recipe")," - ").concat((0,u.S)("Import from Text"))),i.createElement("div",{className:"wprm-admin-modal-field-text-import-container"},i.createElement("h2",null,(0,u.S)("1. Highlight text and click the corresponding button")),i.createElement("div",{className:"wprm-admin-modal-field-text-import-selection"},i.createElement("div",{className:"wprm-admin-modal-field-text-import-buttons"},i.createElement("button",{className:!1!==this.state.name?"button wprm-selection-made":"button",onClick:()=>this.setSelection("name")},(0,u.S)("Name")),i.createElement("button",{className:!1!==this.state.summary?"button wprm-selection-made":"button",onClick:()=>this.setSelection("summary")},(0,u.S)("Summary")),i.createElement("button",{className:!1!==this.state.equipment?"button wprm-selection-made":"button",onClick:()=>this.setSelection("equipment")},(0,u.S)("Equipment")),i.createElement("button",{className:!1!==this.state.ingredients?"button wprm-selection-made":"button",onClick:()=>this.setSelection("ingredients")},(0,u.S)("Ingredients")),i.createElement("button",{className:!1!==this.state.instructions?"button wprm-selection-made":"button",onClick:()=>this.setSelection("instructions")},(0,u.S)("Instructions")),i.createElement("button",{className:!1!==this.state.notes?"button wprm-selection-made":"button",onClick:()=>this.setSelection("notes")},(0,u.S)("Notes"))),i.createElement("textarea",{ref:this.textInput,value:this.state.text,placeholder:(0,u.S)("Paste or type recipe"),onChange:e=>{this.setState({text:this.cleanUpText(e.target.value)})}})),i.createElement("h2",null,(0,u.S)("2. Fine-tune selections")),i.createElement("div",{className:"wprm-admin-modal-field-text-import-finetune"},e?i.createElement(i.Fragment,null,!1!==this.state.name&&i.createElement(A.Z,{label:(0,u.S)("Name")},i.createElement(g.Z,{name:"recipe-name",value:this.state.name,onChange:e=>{this.setState({name:e})}})),!1!==this.state.summary&&i.createElement(A.Z,{label:(0,u.S)("Summary")},i.createElement(fe.Z,{value:this.state.summary,onChange:e=>{this.setState({summary:e})}})),!1!==this.state.equipment&&i.createElement(A.Z,{label:(0,u.S)("Equipment")},this.state.equipment.map(((e,t)=>i.createElement("div",{className:"wprm-admin-modal-field-text-import-equipment-field",key:t},i.createElement(g.Z,{value:e.text,onChange:e=>{var r=JSON.parse(JSON.stringify(this.state.equipment));r[t].text=e,this.setState({equipment:r})}}))))),!1!==this.state.ingredients&&i.createElement(A.Z,{label:(0,u.S)("Ingredients"),help:(0,u.S)("Use the checkboxes to indicate group headers (like Frosting and Cake)")},i.createElement(Qt,{value:this.state.ingredients,onChange:e=>{this.setState({ingredients:e})}})),!1!==this.state.instructions&&i.createElement(A.Z,{label:(0,u.S)("Instructions"),help:(0,u.S)("Use the checkboxes to indicate group headers (like Frosting and Cake)")},i.createElement(Qt,{value:this.state.instructions,onChange:e=>{this.setState({instructions:e})}})),!1!==this.state.notes&&i.createElement(A.Z,{label:(0,u.S)("Notes")},i.createElement(fe.Z,{value:this.state.notes,onChange:e=>{this.setState({notes:e})}}))):i.createElement("p",null,(0,u.S)("Make a selection using the buttons above first.")))),i.createElement(f.Z,{savingChanges:this.state.isParsing},i.createElement("button",{className:"button",onClick:this.props.onCancel},(0,u.S)("Cancel")),i.createElement("button",{className:"button button-primary",onClick:this.useValues,disabled:!e},(0,u.S)("Use these Values"))))}}function tr(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 rr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tr(Object(r),!0).forEach((function(t){nr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function nr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var{hooks:ir}=WPRecipeMaker["wp-recipe-maker/dist/shared"],or={"text-import":er,recipe:Yt};class ar extends i.Component{constructor(e){super(e);var t=JSON.parse(JSON.stringify(wprm_admin_modal.recipe)),r=!1;e.args.hasOwnProperty("recipe")?t=JSON.parse(JSON.stringify(e.args.recipe)):e.args.hasOwnProperty("recipeId")&&(r=!0,l.Z.recipe.get(e.args.recipeId).then((t=>{if(t){var r=JSON.parse(JSON.stringify(t.recipe));e.args.cloneRecipe&&delete r.id,this.setState({recipe:r,originalRecipe:e.args.cloneRecipe||e.args.restoreRevision?{}:JSON.parse(JSON.stringify(r)),loadingRecipe:!1,mode:"recipe"}),this.scrollToGroup()}else this.setState({loadingRecipe:!1})}))),this.state={recipe:t,originalRecipe:e.args.cloneRecipe||e.args.restoreRevision?{}:JSON.parse(JSON.stringify(t)),savingChanges:!1,saveResult:!1,loadingRecipe:r,forceRerender:0,mode:"recipe"},this.scrollToGroup=this.scrollToGroup.bind(this),this.onModeChange=this.onModeChange.bind(this),this.onRecipeChange=this.onRecipeChange.bind(this),this.onImportJSON=this.onImportJSON.bind(this),this.saveRecipe=this.saveRecipe.bind(this),this.allowCloseModal=this.allowCloseModal.bind(this),this.changesMade=this.changesMade.bind(this)}componentDidMount(){"recipe"!==this.state.mode||this.state.loadingRecipe||this.scrollToGroup()}onModeChange(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={mode:e};"text-import"===e&&(r.textImportText=t),this.setState(r,(()=>{"recipe"===e&&(t=t||"media",this.scrollToGroup(t))}))}scrollToGroup(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"media";we.OK.scrollTo("wprm-admin-modal-fields-group-".concat(e),{containerId:"wprm-admin-modal-recipe-content",offset:-10})}onRecipeChange(e){this.setState((t=>({recipe:rr(rr({},t.recipe),e)})))}onImportJSON(e){delete e.id,this.setState((t=>({recipe:rr(rr({},t.recipe),e),forceRerender:t.forceRerender+1})))}saveRecipe(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.state.savingChanges){var t=setTimeout((()=>{this.setState({saveResult:"waiting"})}),5e3);this.setState({savingChanges:!0,saveResult:!1},(()=>{l.Z.recipe.save(this.state.recipe).then((r=>{if(clearTimeout(t),r&&r.recipe){var n=JSON.parse(JSON.stringify(r.recipe));this.setState((e=>({recipe:n,originalRecipe:JSON.parse(JSON.stringify(n)),savingChanges:!1,saveResult:"ok",forceRerender:e.forceRerender+1})),(()=>{"function"==typeof this.props.args.saveCallback&&this.props.args.saveCallback(n),e&&this.props.maybeCloseModal(),setTimeout((()=>{"ok"===this.state.saveResult&&this.setState({saveResult:!1})}),3e3)}))}else this.setState({savingChanges:!1,saveResult:"failed"})}))}))}}allowCloseModal(){switch(this.state.mode){case"nutrition-calculation":return confirm((0,u.S)("Are you sure you want to stop calculating the nutrition facts?"))&&this.onModeChange("recipe","nutrition"),!1;case"equipment-affiliate":return this.onModeChange("recipe","equipment"),!1;case"ingredient-links":return this.onModeChange("recipe","ingredients"),!1;case"text-import":return this.onModeChange("recipe"),!1}return!this.state.savingChanges&&(!this.changesMade()||confirm((0,u.S)("Are you sure you want to close without saving changes?")))}changesMade(){return void 0!==window.lodash?!window.lodash.isEqual(this.state.recipe,this.state.originalRecipe):JSON.stringify(this.state.recipe)!==JSON.stringify(this.state.originalRecipe)}render(){var e=ir.applyFilters("modalRecipe",or),t=!!e.hasOwnProperty(this.state.mode)&&e[this.state.mode];if(!t)return null;switch(this.state.mode){case"nutrition-calculation":return i.createElement(t,{onCloseModal:this.props.maybeCloseModal,name:this.state.recipe.name,servings:this.state.recipe.servings,ingredients:this.state.recipe.ingredients_flat,onCancel:()=>{this.onModeChange("recipe","nutrition")},onNutritionChange:e=>{var t={};Object.keys(wprm_admin_modal.nutrition).map(((r,n)=>{e.hasOwnProperty(r)?t[r]=e[r]:t[r]=!1})),t.serving_size=!(!this.state.recipe.hasOwnProperty("nutrition")||!this.state.recipe.nutrition.hasOwnProperty("serving_size"))&&this.state.recipe.nutrition.serving_size,t.serving_unit=!(!this.state.recipe.hasOwnProperty("nutrition")||!this.state.recipe.nutrition.hasOwnProperty("serving_unit"))&&this.state.recipe.nutrition.serving_unit,this.onRecipeChange({nutrition:t}),this.onModeChange("recipe","nutrition")}});case"equipment-affiliate":return i.createElement(t,{onCloseModal:this.props.maybeCloseModal,onCancel:()=>{this.onModeChange("recipe","equipment")},equipment:this.state.recipe.equipment,onEquipmentChange:e=>{this.onRecipeChange({equipment:e}),this.onModeChange("recipe","equipment")}});case"ingredient-links":return i.createElement(t,{onCloseModal:this.props.maybeCloseModal,onCancel:()=>{this.onModeChange("recipe","ingredients")},ingredients:this.state.recipe.ingredients_flat,onIngredientsChange:e=>{this.onRecipeChange({ingredients_flat:e}),this.onModeChange("recipe","ingredients")}});case"text-import":return i.createElement(t,{onCloseModal:this.props.maybeCloseModal,onCancel:()=>{this.onModeChange("recipe")},text:this.state.textImportText,recipe:this.state.recipe,onImportValues:e=>{this.onRecipeChange(e),this.onModeChange("recipe")}});default:return i.createElement(t,{onCloseModal:this.props.maybeCloseModal,changesMade:this.changesMade(),savingChanges:this.state.savingChanges,saveResult:this.state.saveResult,loadingRecipe:this.state.loadingRecipe,recipe:this.state.recipe,onRecipeChange:this.onRecipeChange,onImportJSON:this.onImportJSON,saveRecipe:this.saveRecipe,forceRerender:this.state.forceRerender,onModeChange:this.onModeChange})}}}r(75405),r(72975),r(33290),r(35054),r(86632);var sr=r(96463);class ur extends i.Component{constructor(e){super(e);var t="internal",r=!1,n="",i=!1,o=!0,a="",s="",l="",c={id:0,url:""},d=!1;if(e.args.fields&&e.args.fields.roundup){var p=e.args.fields.roundup;p.id?(t="internal",r={id:p.id,text:"".concat((0,u.S)("Recipe")," #").concat(p.id)},a=p.name,s=p.summary.replaceAll("%0A","\n"),l=p.button):p.link&&(t="external",n=p.link,i=!!p.nofollow,o=!!p.newtab,a=p.name,s=p.summary.replaceAll("%0A","\n"),l=p.button,c.id=p.image,c.url=p.image_url,s&&"<p>"!==s.substr(0,3)&&(d=!0))}this.state={type:t,recipe:r,link:n,nofollow:i,newtab:o,name:a,summary:s,image:c,button:l,loading:!1,saving:!1,fallbackToTextarea:d},this.loadDetailsFromURL=this.loadDetailsFromURL.bind(this),this.saveImage=this.saveImage.bind(this)}selectionsMade(){return"external"===this.state.type?""!==this.state.link:!1!==this.state.recipe}loadDetailsFromURL(){var e=this.state.link;new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e)&&this.setState({loading:!0},(()=>{fetch("https://api.microlink.io?url="+encodeURIComponent(e)).then((e=>e.json())).then((e=>{var t={loading:!1};"success"===e.status&&(e.data.title&&(t.name=e.data.title),e.data.description&&(t.summary=e.data.description),e.data.image&&e.data.image.url&&(t.image={id:-1,url:e.data.image.url})),this.setState(t)})).catch((e=>{console.log("Fetch Error",e);this.setState({loading:!1})}))}))}saveImage(){var e=this.state.image.url;e&&this.setState({saving:!0},(()=>{l.Z.utilities.saveImage(e).then((e=>{var t={saving:!1};e&&e.id&&(t.image=e),this.setState(t)}))}))}render(){return i.createElement(i.Fragment,null,i.createElement(p.Z,{onCloseModal:this.props.maybeCloseModal},(0,u.S)("Select Roundup Recipe")),i.createElement("div",{className:"wprm-admin-modal-roundup-container wprm-admin-modal-roundup-container-".concat(this.state.type)},i.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Type")),i.createElement(v.Z,{id:"type",options:[{value:"internal",label:(0,u.S)("Use one of your own recipes")},{value:"external",label:(0,u.S)("Use external recipe from a different website")}],value:this.state.type,onChange:e=>{this.setState({type:e})}}),"internal"===this.state.type?i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Recipe")),i.createElement(sr.Z,{options:[],value:this.state.recipe,onValueChange:e=>{this.setState({recipe:e})}})):i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Link")),i.createElement(g.Z,{name:"roundup-link",placeholder:"https://demo.wprecipemaker.com/amazing-vegetable-pizza/",type:"url",value:this.state.link,onChange:e=>{this.setState({link:e})},disabled:this.state.loading}),this.state.loading?i.createElement(Ce.Z,null):i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-roundup-field-load-details-container",style:this.state.link?{}:{visibility:"hidden"}},i.createElement("a",{href:"#",onClick:e=>{e.preventDefault(),this.loadDetailsFromURL()}},(0,u.S)("Try to load details from URL"))),i.createElement("div",{className:"wprm-admin-modal-roundup-field-nofollow-container"},i.createElement("input",{id:"wprm-admin-modal-roundup-field-nofollow",type:"checkbox",checked:this.state.nofollow,onChange:e=>{this.setState({nofollow:e.target.checked})}})," ",i.createElement("label",{htmlFor:"wprm-admin-modal-roundup-field-nofollow"},(0,u.S)('Add rel="nofollow" to link'))),i.createElement("div",{className:"wprm-admin-modal-roundup-field-new-tab-container"},i.createElement("input",{id:"wprm-admin-modal-roundup-field-new-tab",type:"checkbox",checked:this.state.newtab,onChange:e=>{this.setState({newtab:e.target.checked})}})," ",i.createElement("label",{htmlFor:"wprm-admin-modal-roundup-field-new-tab"},(0,u.S)("Open link in new tab"))),i.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Image")),this.state.saving?i.createElement(Ce.Z,null):i.createElement(i.Fragment,null,-1===this.state.image.id&&""!==this.state.image.url?i.createElement("div",{className:"wprm-admin-modal-field-image"},i.createElement("p",null,(0,u.S)("External image. Recommended:")," ",i.createElement("a",{href:"#",onClick:e=>{e.preventDefault(),this.saveImage()}},(0,u.S)("Save image locally"))),i.createElement("div",{className:"wprm-admin-modal-field-image-preview"},i.createElement("img",{src:this.state.image.url}),i.createElement("a",{href:"#",onClick:e=>{e.preventDefault(),this.setState({image:{id:0,url:""}})}},(0,u.S)("Remove Image")))):i.createElement(Oe,{id:this.state.image.id,url:this.state.image.url,onChange:(e,t)=>{this.setState({image:{id:e,url:t}})}})))),"internal"===this.state.type&&i.createElement("p",{className:"wprm-admin-modal-roundup-override"},(0,u.S)("Optionally fill in these fields to use instead of the recipe values:")),!this.state.loading&&i.createElement(i.Fragment,null,i.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Name")),i.createElement(g.Z,{name:"recipe-name",placeholder:(0,u.S)("Recipe Name"),value:this.state.name,onChange:e=>{this.setState({name:e})}}),i.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Summary")),this.state.fallbackToTextarea?i.createElement(fe.Z,{placeholder:(0,u.S)("Short description of this recipe..."),value:this.state.summary,onChange:e=>{this.setState({summary:e})}}):i.createElement(Te.Z,{toolbar:"roundup",placeholder:(0,u.S)("Short description of this recipe..."),value:this.state.summary,onChange:e=>{e=(e=(e=e.replaceAll("<p></p>","")).replaceAll("<p><br></p>","")).replaceAll("<p><br/></p>",""),this.setState({summary:e})}}),i.createElement("div",{className:"wprm-admin-modal-roundup-field-label"},(0,u.S)("Custom Button Text")),i.createElement(g.Z,{placeholder:(0,u.S)("Leave blank to use default from template"),value:this.state.button,onChange:e=>{this.setState({button:e})}}))),i.createElement("div",{id:"wprm-admin-modal-toolbar-container"}),i.createElement(f.Z,{savingChanges:this.state.loading||this.state.saving},i.createElement("button",{className:"button button-primary",onClick:()=>{"function"==typeof this.props.args.insertCallback&&this.props.args.insertCallback(this.state),this.props.maybeCloseModal()},disabled:!this.selectionsMade()},(0,u.S)("Use"))))}}var lr={id:0,text:(0,u.S)("First recipe on page")};class cr extends i.Component{constructor(e){super(e);var t=!1;e.args.fields.recipe.showFirst&&(t=lr),this.state={recipe:t}}selectionsMade(){return!1!==this.state.recipe}render(){return i.createElement(i.Fragment,null,i.createElement(p.Z,{onCloseModal:this.props.maybeCloseModal},this.props.args.title?this.props.args.title:"WP Recipe Maker"),i.createElement("div",{className:"wprm-admin-modal-select-container"},this.props.args.fields.recipe?i.createElement(sr.Z,{options:this.props.args.fields.recipe.showFirst?[lr]:[],value:this.state.recipe,onValueChange:e=>{this.setState({recipe:e})}}):null),i.createElement(f.Z,{savingChanges:!1},i.createElement("button",{className:"button button-primary",onClick:()=>{"function"==typeof this.props.args.nextStepCallback?this.props.args.nextStepCallback(this.state):("function"==typeof this.props.args.insertCallback&&this.props.args.insertCallback(this.state),this.props.maybeCloseModal())},disabled:!this.selectionsMade()},this.props.args.button?this.props.args.button:(0,u.S)("Select"))))}}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 pr(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){fr(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 fr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class mr extends i.Component{constructor(e){super(e);var t={key:"",singular_name:"",name:"",slug:"",archive:!1},r=!1;e.args.hasOwnProperty("taxonomy")&&(r=!0,t=JSON.parse(JSON.stringify(e.args.taxonomy))),this.state={editing:r,taxonomy:t,originalTaxonomy:JSON.parse(JSON.stringify(t)),savingChanges:!1},this.changesMade=this.changesMade.bind(this),this.saveChanges=this.saveChanges.bind(this)}sanitizeSlug(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e=(e=e.trim()).toLowerCase();var r="àáäâèéëêìíïîòóöôùúüûñçěščřžýúůďťň·/,:;",n="aaaaeeeeiiiioooouuuuncescrzyuudtn_____";t&&(r+="-",n+="_");for(var i=0,o=r.length;i<o;i++)e=e.replace(new RegExp(r.charAt(i),"g"),n.charAt(i));return e=e.replace(".","-").replace(/[^a-z0-9\s_\-]/g,"").replace(/\s+/g,"_").replace(/_+/g,"_")}saveChanges(){this.state.taxonomy.key.trim()&&this.state.taxonomy.singular_name.trim()&&this.state.taxonomy.name.trim()&&this.state.taxonomy.slug.trim()?this.setState({savingChanges:!0},(()=>{l.Z.customTaxonomy.save(this.state.editing,this.state.taxonomy).then((e=>{e?this.setState({originalTaxonomy:JSON.parse(JSON.stringify(this.state.taxonomy)),savingChanges:!1},(()=>{"function"==typeof this.props.args.saveCallback&&this.props.args.saveCallback(this.state.taxonomy),this.props.maybeCloseModal()})):(this.state.editing||!1!==e||alert((0,u.S)("Something went wrong. Make sure this key does not exist yet.")),this.setState({savingChanges:!1}))}))})):alert((0,u.S)("All fields are required."))}allowCloseModal(){return!this.state.savingChanges&&(!this.changesMade()||confirm((0,u.S)("Are you sure you want to close without saving changes?")))}changesMade(){return JSON.stringify(this.state.taxonomy)!==JSON.stringify(this.state.originalTaxonomy)}render(){return i.createElement(i.Fragment,null,i.createElement(p.Z,{onCloseModal:this.props.maybeCloseModal},this.state.editing?"".concat((0,u.S)("Editing Custom Taxonomy")).concat(this.state.taxonomy.key?" - wprm_".concat(this.state.taxonomy.key):""):"".concat((0,u.S)("Creating new Custom Taxonomy")).concat(this.state.taxonomy.key?" - wprm_".concat(this.state.taxonomy.key):"")),i.createElement("div",{className:"wprm-admin-modal-taxonomy-container"},i.createElement(A.Z,{id:"key",label:(0,u.S)("Key")},i.createElement(g.Z,{placeholder:(0,u.S)("course"),value:"wprm_".concat(this.state.taxonomy.key),onChange:e=>{var t=e.substr(5);t=this.sanitizeSlug(t,!0),this.setState({taxonomy:pr(pr({},this.state.taxonomy),{},{key:t})})},disabled:this.state.editing})),i.createElement(A.Z,{id:"singular_name",label:(0,u.S)("Singular Name")},i.createElement(g.Z,{placeholder:(0,u.S)("Course"),value:this.state.taxonomy.singular_name,onChange:e=>{this.setState({taxonomy:pr(pr({},this.state.taxonomy),{},{singular_name:e})})}})),i.createElement(A.Z,{id:"name",label:(0,u.S)("Plural Name")},i.createElement(g.Z,{placeholder:(0,u.S)("Courses"),value:this.state.taxonomy.name,onChange:e=>{this.setState({taxonomy:pr(pr({},this.state.taxonomy),{},{name:e})})}})),i.createElement(A.Z,{id:"archive",label:(0,u.S)("Has Archive Pages")},i.createElement(ke,{value:this.state.taxonomy.archive,onChange:e=>{this.setState({taxonomy:pr(pr({},this.state.taxonomy),{},{archive:e})})}})),i.createElement(A.Z,{id:"slug",label:(0,u.S)("Slug")},i.createElement(g.Z,{placeholder:(0,u.S)("course"),value:this.state.taxonomy.slug,onChange:e=>{var t=this.sanitizeSlug(e);this.setState({taxonomy:pr(pr({},this.state.taxonomy),{},{slug:t})})}}))),i.createElement(f.Z,{savingChanges:this.state.savingChanges},i.createElement("button",{className:"button button-primary",onClick:this.saveChanges,disabled:!this.changesMade()},(0,u.S)("Save"))))}}var hr=r(96073);document.getElementById("wprm-admin-modal")&&a().setAppElement("#wprm-admin-modal");var{hooks:gr}=WPRecipeMaker["wp-recipe-maker/dist/shared"],vr={"bulk-edit":pe,"input-fields":me,menu:ye,recipe:ar,roundup:ur,select:cr,taxonomy:mr};class br extends i.Component{constructor(){super(),this.state={modalIsOpen:!1,mode:"",args:{}},this.content=i.createRef(),this.close=this.close.bind(this),this.closeIfAllowed=this.closeIfAllowed.bind(this)}open(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&this.state.modalIsOpen||this.setState({modalIsOpen:!0,mode:e,args:t},(()=>{window.onbeforeunload=()=>(0,u.S)("Are you sure you want to leave this page?")}))}close(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.setState({modalIsOpen:!1},(()=>{window.onbeforeunload=null,"function"==typeof e&&e()}))}closeIfAllowed(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(!this.content.current||!this.content.current.hasOwnProperty("allowCloseModal"))&&this.content.current.allowCloseModal;t&&!t()||this.close(e)}addTextToEditor(e,t){if("undefined"==typeof tinyMCE||!tinyMCE.get(t)||tinyMCE.get(t).isHidden()){var r=hr("textarea#"+t).val();hr("textarea#"+t).val(r+e)}else tinyMCE.get(t).focus(!0),tinyMCE.activeEditor.selection.collapse(!1),tinyMCE.activeEditor.execCommand("mceInsertContent",!1,e)}refreshEditor(e){"undefined"!=typeof tinyMCE&&tinyMCE.get(e)&&!tinyMCE.get(e).isHidden()&&(tinyMCE.get(e).focus(!0),tinyMCE.activeEditor.setContent(tinyMCE.activeEditor.getContent()))}render(){var e=gr.applyFilters("modal",vr),t=!!e.hasOwnProperty(this.state.mode)&&e[this.state.mode];return t?i.createElement(a(),{isOpen:this.state.modalIsOpen,onRequestClose:this.closeIfAllowed,overlayClassName:"wprm-admin-modal-overlay",className:"wprm-admin-modal wprm-admin-modal-".concat(this.state.mode)},i.createElement(s.Z,{module:"Modal"},i.createElement(t,{ref:this.content,mode:this.state.mode,args:this.state.args,maybeCloseModal:this.closeIfAllowed}))):null}}var yr=document.getElementById("wprm-admin-modal");yr&&n.render(i.createElement(br,{ref:e=>{window.WPRM_Modal=e}}),yr)},43636:function(e,t,r){"use strict";var n=r(89526),i=r(26612);t.Z=e=>{var t="wprm-admin-modal-field-container";e.id&&(t+=" wprm-admin-modal-field-container-".concat(e.id));var r=null;return e.help&&(r=n.createElement(i.Z,{type:"question",title:e.help,className:"wprm-admin-icon-help"})),n.createElement("div",{className:t},e.label?n.createElement(n.Fragment,null,n.createElement("div",{className:"wprm-admin-modal-field-label"},e.label,r),n.createElement("div",{className:"wprm-admin-modal-field"},e.children)):e.children)}},69347:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});r(193),r(33130);var n=r(89526),i=r(844);function o(){return o=Object.assign?Object.assign.bind():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},o.apply(this,arguments)}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 s(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){u(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}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class l extends n.Component{shouldComponentUpdate(e){return JSON.stringify(this.props.options)!==JSON.stringify(e.options)||this.props.value!==e.value||this.props.isDisabled!==e.isDisabled}render(){var e=!1;this.props.options&&(e=this.props.options.reduce(((e,t)=>(t.hasOwnProperty("options")?e=e.concat(t.options):e.push(t),e)),[]).find((e=>e.value===this.props.value)));var t=this.props.custom?this.props.custom:{};return n.createElement(i.ZP,o({isDisabled:this.props.isDisabled,options:this.props.options,value:e,placeholder:this.props.placeholder,onChange:e=>{this.props.onChange(e.value)},styles:{control:e=>s(s({},e),{},{backgroundColor:"white"}),container:e=>s(s({},e),{},{width:"100%",maxWidth:this.props.width?this.props.width:"100%"})}},t))}}},24207:function(e,t,r){"use strict";var n=r(89526);t.Z=e=>n.createElement(n.Fragment,null,e.options.map((t=>n.createElement("div",{className:"wprm-admin-modal-field-radio-option",key:t.value},n.createElement("input",{type:"radio",value:t.value,name:"wprm-admin-radio-".concat(e.id),id:"wprm-admin-radio-".concat(e.id,"-").concat(t.value),checked:e.value==t.value,onChange:t=>{e.onChange(t.target.value)}}),n.createElement("label",{htmlFor:"wprm-admin-radio-".concat(e.id,"-").concat(t.value)},t.label)))))},22885:function(e,t,r){"use strict";r.d(t,{Z:function(){return Po}});var n=r(89526);r(39275),r(22321),r(54883),r(68995),r(18183),r(72975),r(33290),r(9968);
2
  /*!
3
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
4
  *
5
  * Copyright (c) 2014-2017, Jon Schlinkert.
6
  * Released under the MIT License.
7
  */
8
+ function i(e){return"[object Object]"===Object.prototype.toString.call(e)}function o(e){var t,r;return!1!==i(e)&&(void 0===(t=e.constructor)||!1!==i(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}function a(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function s(e){return!!e&&!!e[J]}function u(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===Y}(e)||Array.isArray(e)||!!e[V]||!!e.constructor[V]||h(e)||g(e))}function l(e,t,r){void 0===r&&(r=!1),0===c(e)?(r?Object.keys:Q)(e).forEach((function(n){r&&"symbol"==typeof n||t(n,e[n],e)})):e.forEach((function(r,n){return t(n,r,e)}))}function c(e){var t=e[J];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:h(e)?2:g(e)?3:0}function d(e,t){return 2===c(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function p(e,t){return 2===c(e)?e.get(t):e[t]}function f(e,t,r){var n=c(e);2===n?e.set(t,r):3===n?(e.delete(t),e.add(r)):e[t]=r}function m(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e){return U&&e instanceof Map}function g(e){return G&&e instanceof Set}function v(e){return e.o||e.t}function b(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=X(e);delete t[J];for(var r=Q(t),n=0;n<r.length;n++){var i=r[n],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function y(e,t){return void 0===t&&(t=!1),D(e)||s(e)||!u(e)||(c(e)>1&&(e.set=e.add=e.clear=e.delete=w),Object.freeze(e),t&&l(e,(function(e,t){return y(t,!0)}),!0)),e}function w(){a(2)}function D(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function E(e){var t=K[e];return t||a(18,e),t}function C(){return H}function S(e,t){t&&(E("Patches"),e.u=[],e.s=[],e.v=t)}function I(e){x(e),e.p.forEach(A),e.p=null}function x(e){e===H&&(H=e.l)}function O(e){return H={p:[],l:H,h:e,m:!0,_:0}}function A(e){var t=e[J];0===t.i||1===t.i?t.j():t.O=!0}function M(e,t){t._=t.p.length;var r=t.p[0],n=void 0!==e&&e!==r;return t.h.g||E("ES5").S(t,e,n),n?(r[J].P&&(I(t),a(4)),u(e)&&(e=P(t,e),t.l||N(t,e)),t.u&&E("Patches").M(r[J].t,e,t.u,t.s)):e=P(t,r,[]),I(t),t.u&&t.v(t.u,t.s),e!==q?e:void 0}function P(e,t,r){if(D(t))return t;var n=t[J];if(!n)return l(t,(function(i,o){return B(e,n,t,i,o,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return N(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=4===n.i||5===n.i?n.o=b(n.k):n.o;l(3===n.i?new Set(i):i,(function(t,o){return B(e,n,i,t,o,r)})),N(e,i,!1),r&&e.u&&E("Patches").R(n,r,e.u,e.s)}return n.o}function B(e,t,r,n,i,o){if(s(i)){var a=P(e,i,o&&t&&3!==t.i&&!d(t.D,n)?o.concat(n):void 0);if(f(r,n,a),!s(a))return;e.m=!1}if(u(i)&&!D(i)){if(!e.h.F&&e._<1)return;P(e,i),t&&t.A.l||N(e,i)}}function N(e,t,r){void 0===r&&(r=!1),e.h.F&&e.m&&y(t,r)}function k(e,t){var r=e[J];return(r?v(r):e)[t]}function T(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function j(e){e.P||(e.P=!0,e.l&&j(e.l))}function L(e){e.o||(e.o=b(e.t))}function F(e,t,r){var n=h(t)?E("MapSet").N(t,r):g(t)?E("MapSet").T(t,r):e.g?function(e,t){var r=Array.isArray(e),n={i:r?1:0,A:t?t.A:C(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=n,o=$;r&&(i=[n],o=ee);var a=Proxy.revocable(i,o),s=a.revoke,u=a.proxy;return n.k=u,n.j=s,u}(t,r):E("ES5").J(t,r);return(r?r.A:C()).p.push(n),n}function R(e){return s(e)||a(22,e),function e(t){if(!u(t))return t;var r,n=t[J],i=c(t);if(n){if(!n.P&&(n.i<4||!E("ES5").K(n)))return n.t;n.I=!0,r=_(t,i),n.I=!1}else r=_(t,i);return l(r,(function(t,i){n&&p(n.t,t)===i||f(r,t,e(i))})),3===i?new Set(r):r}(e)}function _(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return b(e)}var Z,H,W="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),U="undefined"!=typeof Map,G="undefined"!=typeof Set,z="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,q=W?Symbol.for("immer-nothing"):((Z={})["immer-nothing"]=!0,Z),V=W?Symbol.for("immer-draftable"):"__$immer_draftable",J=W?Symbol.for("immer-state"):"__$immer_state",Y=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),Q="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,X=Object.getOwnPropertyDescriptors||function(e){var t={};return Q(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},K={},$={get:function(e,t){if(t===J)return e;var r=v(e);if(!d(r,t))return function(e,t,r){var n,i=T(t,r);return i?"value"in i?i.value:null===(n=i.get)||void 0===n?void 0:n.call(e.k):void 0}(e,r,t);var n=r[t];return e.I||!u(n)?n:n===k(e.t,t)?(L(e),e.o[t]=F(e.A.h,n,e)):n},has:function(e,t){return t in v(e)},ownKeys:function(e){return Reflect.ownKeys(v(e))},set:function(e,t,r){var n=T(v(e),t);if(null==n?void 0:n.set)return n.set.call(e.k,r),!0;if(!e.P){var i=k(v(e),t),o=null==i?void 0:i[J];if(o&&o.t===r)return e.o[t]=r,e.D[t]=!1,!0;if(m(r,i)&&(void 0!==r||d(e.t,t)))return!0;L(e),j(e)}return e.o[t]===r&&"number"!=typeof r&&(void 0!==r||t in e.o)||(e.o[t]=r,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==k(e.t,t)||t in e.t?(e.D[t]=!1,L(e),j(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=v(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty:function(){a(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){a(12)}},ee={};l($,(function(e,t){ee[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),ee.deleteProperty=function(e,t){return ee.set.call(this,e,t,void 0)},ee.set=function(e,t,r){return $.set.call(this,e[0],t,r,e[0])};var te=function(){function e(e){var t=this;this.g=z,this.F=!0,this.produce=function(e,r,n){if("function"==typeof e&&"function"!=typeof r){var i=r;r=e;var o=t;return function(e){var t=this;void 0===e&&(e=i);for(var n=arguments.length,a=Array(n>1?n-1:0),s=1;s<n;s++)a[s-1]=arguments[s];return o.produce(e,(function(e){var n;return(n=r).call.apply(n,[t,e].concat(a))}))}}var s;if("function"!=typeof r&&a(6),void 0!==n&&"function"!=typeof n&&a(7),u(e)){var l=O(t),c=F(t,e,void 0),d=!0;try{s=r(c),d=!1}finally{d?I(l):x(l)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(e){return S(l,n),M(e,l)}),(function(e){throw I(l),e})):(S(l,n),M(s,l))}if(!e||"object"!=typeof e){if(void 0===(s=r(e))&&(s=e),s===q&&(s=void 0),t.F&&y(s,!0),n){var p=[],f=[];E("Patches").M(e,s,p,f),n(p,f)}return s}a(21,e)},this.produceWithPatches=function(e,r){if("function"==typeof e)return function(r){for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return t.produceWithPatches(r,(function(t){return e.apply(void 0,[t].concat(i))}))};var n,i,o=t.produce(e,r,(function(e,t){n=e,i=t}));return"undefined"!=typeof Promise&&o instanceof Promise?o.then((function(e){return[e,n,i]})):[o,n,i]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){u(e)||a(8),s(e)&&(e=R(e));var t=O(this),r=F(this,e,void 0);return r[J].C=!0,x(t),r},t.finishDraft=function(e,t){var r=(e&&e[J]).A;return S(r,t),M(void 0,r)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!z&&a(20),this.g=e},t.applyPatches=function(e,t){var r;for(r=t.length-1;r>=0;r--){var n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));var i=E("Patches").$;return s(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}(),re=new te,ne=re.produce,ie=(re.produceWithPatches.bind(re),re.setAutoFreeze.bind(re),re.setUseProxies.bind(re),re.applyPatches.bind(re),re.createDraft.bind(re)),oe=re.finishDraft.bind(re);function ae(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var se=new WeakMap,ue=new WeakMap,le=new WeakMap,ce=new WeakMap,de=new WeakMap,pe=new WeakMap,fe=new WeakMap;function me(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 he(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?me(Object(r),!0).forEach((function(t){ae(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):me(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ge=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var r of $e.pathRefs(e))lt.transform(r,t);for(var n of $e.pointRefs(e))ft.transform(n,t);for(var i of $e.rangeRefs(e))vt.transform(i,t);var o,a,s=se.get(e)||[],u=ue.get(e)||new Set,l=e=>{if(e){var t=e.join(",");a.has(t)||(a.add(t),o.push(e))}};if(ut.operationCanTransformPath(t))for(var c of(o=[],a=new Set,s)){l(ut.transform(c,t))}else o=s,a=u;var d=ve(t);for(var p of d)l(p);se.set(e,o),ue.set(e,a),Ht.transform(e,t),e.operations.push(t),$e.normalize(e),"set_selection"===t.type&&(e.marks=null),le.get(e)||(le.set(e,!0),Promise.resolve().then((()=>{le.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,r)=>{var{selection:n}=e;if(n)if(gt.isExpanded(n))Ht.setNodes(e,{[t]:r},{match:Ct.isText,split:!0});else{var i=he(he({},$e.marks(e)||{}),{},{[t]:r});e.marks=i,le.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:r}=e;r&&gt.isCollapsed(r)&&Ht.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:r}=e;r&&gt.isCollapsed(r)&&Ht.delete(e,{unit:t})},deleteFragment:t=>{var{selection:r}=e;r&&gt.isExpanded(r)&&Ht.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?it.fragment(e,t):[]},insertBreak:()=>{Ht.splitNodes(e,{always:!0})},insertSoftBreak:()=>{Ht.splitNodes(e,{always:!0})},insertFragment:t=>{Ht.insertFragment(e,t)},insertNode:t=>{Ht.insertNodes(e,t)},insertText:t=>{var{selection:r,marks:n}=e;if(r){if(n){var i=he({text:t},n);Ht.insertNodes(e,i)}else Ht.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[r,n]=t;if(!Ct.isText(r))if(Ve.isElement(r)&&0===r.children.length){Ht.insertNodes(e,{text:""},{at:n.concat(0),voids:!0})}else for(var i=!$e.isEditor(r)&&(Ve.isElement(r)&&(e.isInline(r)||0===r.children.length||Ct.isText(r.children[0])||e.isInline(r.children[0]))),o=0,a=0;a<r.children.length;a++,o++){var s=it.get(e,n);if(!Ct.isText(s)){var u=r.children[a],l=s.children[o-1],c=a===r.children.length-1;if((Ct.isText(u)||Ve.isElement(u)&&e.isInline(u))!==i)Ht.removeNodes(e,{at:n.concat(o),voids:!0}),o--;else if(Ve.isElement(u)){if(e.isInline(u))if(null!=l&&Ct.isText(l)){if(c){Ht.insertNodes(e,{text:""},{at:n.concat(o+1),voids:!0}),o++}}else{Ht.insertNodes(e,{text:""},{at:n.concat(o),voids:!0}),o++}}else null!=l&&Ct.isText(l)&&(Ct.equals(u,l,{loose:!0})?(Ht.mergeNodes(e,{at:n.concat(o),voids:!0}),o--):""===l.text?(Ht.removeNodes(e,{at:n.concat(o-1),voids:!0}),o--):""===u.text&&(Ht.removeNodes(e,{at:n.concat(o),voids:!0}),o--))}}},removeMark:t=>{var{selection:r}=e;if(r)if(gt.isExpanded(r))Ht.unsetNodes(e,t,{match:Ct.isText,split:!0});else{var n=he({},$e.marks(e)||{});delete n[t],e.marks=n,le.get(e)||e.onChange()}}};return e},ve=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return ut.levels(t);case"insert_node":var{node:r,path:n}=e,i=ut.levels(n),o=Ct.isText(r)?[]:Array.from(it.nodes(r),(e=>{var[,t]=e;return n.concat(t)}));return[...i,...o];case"merge_node":var{path:a}=e;return[...ut.ancestors(a),ut.previous(a)];case"move_node":var{path:s,newPath:u}=e;if(ut.equals(s,u))return[];var l=[],c=[];for(var d of ut.ancestors(s)){var p=ut.transform(d,e);l.push(p)}for(var f of ut.ancestors(u)){var m=ut.transform(f,e);c.push(m)}var h=c[c.length-1],g=u[u.length-1],v=h.concat(g);return[...l,...c,v];case"remove_node":var{path:b}=e;return[...ut.ancestors(b)];case"split_node":var{path:y}=e;return[...ut.levels(y),ut.next(y)];default:return[]}};function be(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 ye,we=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!t,n=t?xe(e):e,i=ye.None,o=ye.None,a=0,s=null;for(var u of n){var l=u.codePointAt(0);if(!l)break;var c=Re(u,l);if([i,o]=r?[o,c]:[c,i],_e(i,ye.ZWJ)&&_e(o,ye.ExtPict)&&!Ue(r?e.substring(0,a):e.substring(0,e.length-a)))break;if(_e(i,ye.RI)&&_e(o,ye.RI)&&!(s=null!==s?!s:!!r||ze(e.substring(0,e.length-a))))break;if(i!==ye.None&&o!==ye.None&&He(i,o))break;a+=u.length}return a||1},De=/\s/,Ee=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,Ce=/['\u2018\u2019]/,Se=(e,t,r)=>{if(r){var n=e.length-t;return[e.slice(n,e.length),e.slice(0,n)]}return[e.slice(0,t),e.slice(t)]},Ie=function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(De.test(t))return!1;if(Ce.test(t)){var i=we(r,n),[o,a]=Se(r,i,n);if(e(o,a,n))return!0}return!Ee.test(t)},xe=function*(e){for(var t=e.length-1,r=0;r<e.length;r++){var n=e.charAt(t-r);if(Ae(n.charCodeAt(0))){var i=e.charAt(t-r-1);if(Oe(i.charCodeAt(0))){yield i+n,r++;continue}}yield n}},Oe=e=>e>=55296&&e<=56319,Ae=e=>e>=56320&&e<=57343;!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(ye||(ye={}));var Me=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,Pe=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,Be=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,Ne=/^[\u1100-\u115F\uA960-\uA97C]$/,ke=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,Te=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,je=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,Le=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,Fe=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,Re=(e,t)=>{var r=ye.Any;return-1!==e.search(Me)&&(r|=ye.Extend),8205===t&&(r|=ye.ZWJ),t>=127462&&t<=127487&&(r|=ye.RI),-1!==e.search(Pe)&&(r|=ye.Prepend),-1!==e.search(Be)&&(r|=ye.SpacingMark),-1!==e.search(Ne)&&(r|=ye.L),-1!==e.search(ke)&&(r|=ye.V),-1!==e.search(Te)&&(r|=ye.T),-1!==e.search(je)&&(r|=ye.LV),-1!==e.search(Le)&&(r|=ye.LVT),-1!==e.search(Fe)&&(r|=ye.ExtPict),r};function _e(e,t){return 0!=(e&t)}var Ze=[[ye.L,ye.L|ye.V|ye.LV|ye.LVT],[ye.LV|ye.V,ye.V|ye.T],[ye.LVT|ye.T,ye.T],[ye.Any,ye.Extend|ye.ZWJ],[ye.Any,ye.SpacingMark],[ye.Prepend,ye.Any],[ye.ZWJ,ye.ExtPict],[ye.RI,ye.RI]];function He(e,t){return-1===Ze.findIndex((r=>_e(e,r[0])&&_e(t,r[1])))}var We=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,Ue=e=>-1!==e.search(We),Ge=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,ze=e=>{var t=e.match(Ge);return null!==t&&t[0].length/2%2==1},qe=e=>o(e)&&it.isNodeList(e.children)&&!$e.isEditor(e),Ve={isAncestor:e=>o(e)&&it.isNodeList(e.children),isElement:qe,isElementList:e=>Array.isArray(e)&&e.every((e=>Ve.isElement(e))),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return qe(e)&&e[r]===t},matches(e,t){for(var r in t)if("children"!==r&&e[r]!==t[r])return!1;return!0}},Je=["text"],Ye=["text"];function Qe(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 Xe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(r),!0).forEach((function(t){ae(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ke=new WeakMap,$e={above(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:r=!1,mode:n="lowest",at:i=e.selection,match:o}=t;if(i){var a=$e.path(e,i),s="lowest"===n;for(var[u,l]of $e.levels(e,{at:a,voids:r,match:o,reverse:s}))if(!Ct.isText(u)&&!ut.equals(a,l))return[u,l]}},addMark(e,t,r){e.addMark(t,r)},after(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i={anchor:$e.point(e,t,{edge:"end"}),focus:$e.end(e,[])},{distance:o=1}=n,a=0;for(var s of $e.positions(e,Xe(Xe({},n),{},{at:i}))){if(a>o)break;0!==a&&(r=s),a++}return r},before(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i={anchor:$e.start(e,[]),focus:$e.point(e,t,{edge:"start"})},{distance:o=1}=n,a=0;for(var s of $e.positions(e,Xe(Xe({},n),{},{at:i,reverse:!0}))){if(a>o)break;0!==a&&(r=s),a++}return r},deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:r="character"}=t;e.deleteBackward(r)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:r="character"}=t;e.deleteForward(r)},deleteFragment(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:r="forward"}=t;e.deleteFragment(r)},edges:(e,t)=>[$e.start(e,t),$e.end(e,t)],end:(e,t)=>$e.point(e,t,{edge:"end"}),first(e,t){var r=$e.path(e,t,{edge:"start"});return $e.node(e,r)},fragment(e,t){var r=$e.range(e,t);return it.fragment(e,r)},hasBlocks:(e,t)=>t.children.some((t=>$e.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>Ct.isText(t)||$e.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>Ct.isText(e))),insertBreak(e){e.insertBreak()},insertSoftBreak(e){e.insertSoftBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>Ve.isElement(t)&&!e.isInline(t),isEditor(e){if(!o(e))return!1;var t=Ke.get(e);if(void 0!==t)return t;var r="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteBackward&&"function"==typeof e.deleteForward&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertSoftBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isInline&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&(null===e.marks||o(e.marks))&&(null===e.selection||gt.isRange(e.selection))&&it.isNodeList(e.children)&&st.isOperationList(e.operations);return Ke.set(e,r),r},isEnd(e,t,r){var n=$e.end(e,r);return pt.equals(t,n)},isEdge:(e,t,r)=>$e.isStart(e,t,r)||$e.isEnd(e,t,r),isEmpty(e,t){var{children:r}=t,[n]=r;return 0===r.length||1===r.length&&Ct.isText(n)&&""===n.text&&!e.isVoid(t)},isInline:(e,t)=>Ve.isElement(t)&&e.isInline(t),isNormalizing(e){var t=ce.get(e);return void 0===t||t},isStart(e,t,r){if(0!==t.offset)return!1;var n=$e.start(e,r);return pt.equals(t,n)},isVoid:(e,t)=>Ve.isElement(t)&&e.isVoid(t),last(e,t){var r=$e.path(e,t,{edge:"end"});return $e.node(e,r)},leaf(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=$e.path(e,t,r);return[it.leaf(e,n),n]},*levels(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:r=e.selection,reverse:n=!1,voids:i=!1}=t,{match:o}=t;if(null==o&&(o=()=>!0),r){var a=[],s=$e.path(e,r);for(var[u,l]of it.levels(e,s))if(o(u,l)&&(a.push([u,l]),!i&&$e.isVoid(e,u)))break;n&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:r}=e;if(!r)return null;if(t)return t;if(gt.isExpanded(r)){var[n]=$e.nodes(e,{match:Ct.isText});if(n){var[i]=n;return be(i,Je)}return{}}var{anchor:o}=r,{path:a}=o,[s]=$e.leaf(e,a);if(0===o.offset){var u=$e.previous(e,{at:a,match:Ct.isText}),l=$e.above(e,{match:t=>$e.isBlock(e,t)});if(u&&l){var[c,d]=u,[,p]=l;ut.isAncestor(p,d)&&(s=c)}}return be(s,Ye)},next(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:r="lowest",voids:n=!1}=t,{match:i,at:o=e.selection}=t;if(o){var a=$e.after(e,o,{voids:n});if(a){var[,s]=$e.last(e,[]),u=[a.path,s];if(ut.isPath(o)&&0===o.length)throw new Error("Cannot get the next node from the root node!");if(null==i)if(ut.isPath(o)){var[l]=$e.parent(e,o);i=e=>l.children.includes(e)}else i=()=>!0;var[c]=$e.nodes(e,{at:u,match:i,mode:r,voids:n});return c}}},node(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=$e.path(e,t,r);return[it.get(e,n),n]},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:r=e.selection,mode:n="all",universal:i=!1,reverse:o=!1,voids:a=!1}=t,{match:s}=t;if(s||(s=()=>!0),r){var u,l;if(et.isSpan(r))u=r[0],l=r[1];else{var c=$e.path(e,r,{edge:"start"}),d=$e.path(e,r,{edge:"end"});u=o?d:c,l=o?c:d}var p,f=it.nodes(e,{reverse:o,from:u,to:l,pass:t=>{var[r]=t;return!a&&$e.isVoid(e,r)}}),m=[];for(var[h,g]of f){var v=p&&0===ut.compare(g,p[1]);if("highest"!==n||!v)if(s(h,g))if("lowest"===n&&v)p=[h,g];else{var b="lowest"===n?p:[h,g];b&&(i?m.push(b):yield b),p=[h,g]}else if(i&&!v&&Ct.isText(h))return}"lowest"===n&&p&&(i?m.push(p):yield p),i&&(yield*m)}},normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:r=!1}=t,n=e=>se.get(e)||[],i=e=>{var t=n(e).pop(),r=t.join(",");return(e=>ue.get(e)||new Set)(e).delete(r),t};if($e.isNormalizing(e)){if(r){var o=Array.from(it.nodes(e),(e=>{var[,t]=e;return t})),a=new Set(o.map((e=>e.join(","))));se.set(e,o),ue.set(e,a)}0!==n(e).length&&$e.withoutNormalizing(e,(()=>{for(var t of n(e))if(it.has(e,t)){var r=$e.node(e,t),[o,a]=r;Ve.isElement(o)&&0===o.children.length&&e.normalizeNode(r)}for(var s=42*n(e).length,u=0;0!==n(e).length;){if(u>s)throw new Error("\n Could not completely normalize the editor after ".concat(s," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var l=i(e);if(it.has(e,l)){var c=$e.node(e,l);e.normalizeNode(c)}u++}}))}},parent(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=$e.path(e,t,r),i=ut.parent(n);return $e.node(e,i)},path(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:n,edge:i}=r;if(ut.isPath(t))if("start"===i){var[,o]=it.first(e,t);t=o}else if("end"===i){var[,a]=it.last(e,t);t=a}return gt.isRange(t)&&(t="start"===i?gt.start(t):"end"===i?gt.end(t):ut.common(t.anchor.path,t.focus.path)),pt.isPoint(t)&&(t=t.path),null!=n&&(t=t.slice(0,n)),t},hasPath:(e,t)=>it.has(e,t),pathRef(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:n="forward"}=r,i={current:t,affinity:n,unref(){var{current:t}=i;return $e.pathRefs(e).delete(i),i.current=null,t}};return $e.pathRefs(e).add(i),i},pathRefs(e){var t=de.get(e);return t||(t=new Set,de.set(e,t)),t},point(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:n="start"}=r;if(ut.isPath(t)){var i;if("end"===n){var[,o]=it.last(e,t);i=o}else{var[,a]=it.first(e,t);i=a}var s=it.get(e,i);if(!Ct.isText(s))throw new Error("Cannot get the ".concat(n," point in the node at path [").concat(t,"] because it has no ").concat(n," text node."));return{path:i,offset:"end"===n?s.text.length:0}}if(gt.isRange(t)){var[u,l]=gt.edges(t);return"start"===n?u:l}return t},pointRef(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:n="forward"}=r,i={current:t,affinity:n,unref(){var{current:t}=i;return $e.pointRefs(e).delete(i),i.current=null,t}};return $e.pointRefs(e).add(i),i},pointRefs(e){var t=pe.get(e);return t||(t=new Set,pe.set(e,t)),t},*positions(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:r=e.selection,unit:n="offset",reverse:i=!1,voids:o=!1}=t;if(r){var a=$e.range(e,r),[s,u]=gt.edges(a),l=i?u:s,c=!1,d="",p=0,f=0,m=0;for(var[h,g]of $e.nodes(e,{at:r,reverse:i,voids:o})){if(Ve.isElement(h)){if(!o&&e.isVoid(h)){yield $e.start(e,g);continue}if(e.isInline(h))continue;if($e.hasInlines(e,h)){var v=ut.isAncestor(g,u.path)?u:$e.end(e,g),b=ut.isAncestor(g,s.path)?s:$e.start(e,g);d=$e.string(e,{anchor:b,focus:v},{voids:o}),c=!0}}if(Ct.isText(h)){var y=ut.equals(g,l.path);for(y?(f=i?l.offset:h.text.length-l.offset,m=l.offset):(f=h.text.length,m=i?f:0),(y||c||"offset"===n)&&(yield{path:g,offset:m},c=!1);;){if(0===p){if(""===d)break;p=w(d,n,i),d=Se(d,p,i)[1]}if(m=i?m-p:m+p,(f-=p)<0){p=-f;break}p=0,yield{path:g,offset:m}}}}}function w(e,t,r){return"character"===t?we(e,r):"word"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=0,n=!1;e.length>0;){var i=we(e,t),[o,a]=Se(e,i,t);if(Ie(o,a,t))n=!0,r+=i;else{if(n)break;r+=i}e=a}return r}(e,r):"line"===t||"block"===t?e.length:1}},previous(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:r="lowest",voids:n=!1}=t,{match:i,at:o=e.selection}=t;if(o){var a=$e.before(e,o,{voids:n});if(a){var[,s]=$e.first(e,[]),u=[a.path,s];if(ut.isPath(o)&&0===o.length)throw new Error("Cannot get the previous node from the root node!");if(null==i)if(ut.isPath(o)){var[l]=$e.parent(e,o);i=e=>l.children.includes(e)}else i=()=>!0;var[c]=$e.nodes(e,{reverse:!0,at:u,match:i,mode:r,voids:n});return c}}},range:(e,t,r)=>gt.isRange(t)&&!r?t:{anchor:$e.start(e,t),focus:$e.end(e,r||t)},rangeRef(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:n="forward"}=r,i={current:t,affinity:n,unref(){var{current:t}=i;return $e.rangeRefs(e).delete(i),i.current=null,t}};return $e.rangeRefs(e).add(i),i},rangeRefs(e){var t=fe.get(e);return t||(t=new Set,fe.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){ce.set(e,t)},start:(e,t)=>$e.point(e,t,{edge:"start"}),string(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:n=!1}=r,i=$e.range(e,t),[o,a]=gt.edges(i),s="";for(var[u,l]of $e.nodes(e,{at:i,match:Ct.isText,voids:n})){var c=u.text;ut.equals(l,a.path)&&(c=c.slice(0,a.offset)),ut.equals(l,o.path)&&(c=c.slice(o.offset)),s+=c}return s},unhangRange(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:n=!1}=r,[i,o]=gt.edges(t);if(0!==i.offset||0!==o.offset||gt.isCollapsed(t))return t;var a=$e.above(e,{at:o,match:t=>$e.isBlock(e,t)}),s=a?a[1]:[],u={anchor:$e.start(e,i),focus:o},l=!0;for(var[c,d]of $e.nodes(e,{at:u,match:Ct.isText,reverse:!0,voids:n}))if(l)l=!1;else if(""!==c.text||ut.isBefore(d,s)){o={path:d,offset:c.text.length};break}return{anchor:i,focus:o}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return $e.above(e,Xe(Xe({},t),{},{match:t=>$e.isVoid(e,t)}))},withoutNormalizing(e,t){var r=$e.isNormalizing(e);$e.setNormalizing(e,!1);try{t()}finally{$e.setNormalizing(e,r)}$e.normalize(e)}},et={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(ut.isPath)},tt=["children"],rt=["text"],nt=new WeakMap,it={ancestor(e,t){var r=it.get(e,t);if(Ct.isText(r))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(r));return r},*ancestors(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var n of ut.ancestors(t,r)){var i=[it.ancestor(e,n),n];yield i}},child(e,t){if(Ct.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var r=e.children[t];if(null==r)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return r},*children(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:n=!1}=r,i=it.ancestor(e,t),{children:o}=i,a=n?o.length-1:0;n?a>=0:a<o.length;){var s=it.child(i,a),u=t.concat(a);yield[s,u],a=n?a-1:a+1}},common(e,t,r){var n=ut.common(t,r);return[it.get(e,n),n]},descendant(e,t){var r=it.get(e,t);if($e.isEditor(r))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(r));return r},*descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[r,n]of it.nodes(e,t))0!==n.length&&(yield[r,n])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[r,n]of it.nodes(e,t))Ve.isElement(r)&&(yield[r,n])},extractProps:e=>Ve.isAncestor(e)?be(e,tt):be(e,rt),first(e,t){for(var r=t.slice(),n=it.get(e,r);n&&!Ct.isText(n)&&0!==n.children.length;)n=n.children[0],r.push(0);return[n,r]},fragment(e,t){if(Ct.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var r=ne({children:e.children},(e=>{var[r,n]=gt.edges(t),i=it.nodes(e,{reverse:!0,pass:e=>{var[,r]=e;return!gt.includes(t,r)}});for(var[,o]of i){if(!gt.includes(t,o)){var a=it.parent(e,o),s=o[o.length-1];a.children.splice(s,1)}if(ut.equals(o,n.path)){var u=it.leaf(e,o);u.text=u.text.slice(0,n.offset)}if(ut.equals(o,r.path)){var l=it.leaf(e,o);l.text=l.text.slice(r.offset)}}$e.isEditor(e)&&(e.selection=null)}));return r.children},get(e,t){for(var r=e,n=0;n<t.length;n++){var i=t[n];if(Ct.isText(r)||!r.children[i])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));r=r.children[i]}return r},has(e,t){for(var r=e,n=0;n<t.length;n++){var i=t[n];if(Ct.isText(r)||!r.children[i])return!1;r=r.children[i]}return!0},isNode:e=>Ct.isText(e)||Ve.isElement(e)||$e.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=nt.get(e);if(void 0!==t)return t;var r=e.every((e=>it.isNode(e)));return nt.set(e,r),r},last(e,t){for(var r=t.slice(),n=it.get(e,r);n&&!Ct.isText(n)&&0!==n.children.length;){var i=n.children.length-1;n=n.children[i],r.push(i)}return[n,r]},leaf(e,t){var r=it.get(e,t);if(!Ct.isText(r))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(r));return r},*levels(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var n of ut.levels(t,r)){var i=it.get(e,n);yield[i,n]}},matches:(e,t)=>Ve.isElement(e)&&Ve.isElementProps(t)&&Ve.matches(e,t)||Ct.isText(e)&&Ct.isTextProps(t)&&Ct.matches(e,t),*nodes(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:r,reverse:n=!1}=t,{from:i=[],to:o}=t,a=new Set,s=[],u=e;!o||!(n?ut.isBefore(s,o):ut.isAfter(s,o));)if(a.has(u)||(yield[u,s]),a.has(u)||Ct.isText(u)||0===u.children.length||null!=r&&!1!==r([u,s])){if(0===s.length)break;if(!n){var l=ut.next(s);if(it.has(e,l)){s=l,u=it.get(e,s);continue}}if(n&&0!==s[s.length-1])s=ut.previous(s),u=it.get(e,s);else s=ut.parent(s),u=it.get(e,s),a.add(u)}else{a.add(u);var c=n?u.children.length-1:0;ut.isAncestor(s,i)&&(c=i[s.length]),s=s.concat(c),u=it.get(e,s)}},parent(e,t){var r=ut.parent(t),n=it.get(e,r);if(Ct.isText(n))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return n},string:e=>Ct.isText(e)?e.text:e.children.map(it.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[r,n]of it.nodes(e,t))Ct.isText(r)&&(yield[r,n])}};function ot(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 at(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(r),!0).forEach((function(t){ae(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ot(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var st={isNodeOperation:e=>st.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!o(e))return!1;switch(e.type){case"insert_node":case"remove_node":return ut.isPath(e.path)&&it.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&ut.isPath(e.path);case"merge_node":return"number"==typeof e.position&&ut.isPath(e.path)&&o(e.properties);case"move_node":return ut.isPath(e.path)&&ut.isPath(e.newPath);case"set_node":return ut.isPath(e.path)&&o(e.properties)&&o(e.newProperties);case"set_selection":return null===e.properties&&gt.isRange(e.newProperties)||null===e.newProperties&&gt.isRange(e.properties)||o(e.properties)&&o(e.newProperties);case"split_node":return ut.isPath(e.path)&&"number"==typeof e.position&&o(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>st.isOperation(e))),isSelectionOperation:e=>st.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>st.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return at(at({},e),{},{type:"remove_node"});case"insert_text":return at(at({},e),{},{type:"remove_text"});case"merge_node":return at(at({},e),{},{type:"split_node",path:ut.previous(e.path)});case"move_node":var{newPath:t,path:r}=e;if(ut.equals(t,r))return e;if(ut.isSibling(r,t))return at(at({},e),{},{path:t,newPath:r});var n=ut.transform(r,e),i=ut.transform(ut.next(r),e);return at(at({},e),{},{path:n,newPath:i});case"remove_node":return at(at({},e),{},{type:"insert_node"});case"remove_text":return at(at({},e),{},{type:"insert_text"});case"set_node":var{properties:o,newProperties:a}=e;return at(at({},e),{},{properties:a,newProperties:o});case"set_selection":var{properties:s,newProperties:u}=e;return at(at({},e),{},null==s?{properties:u,newProperties:null}:null==u?{properties:null,newProperties:s}:{properties:u,newProperties:s});case"split_node":return at(at({},e),{},{type:"merge_node",path:ut.next(e.path)})}}},ut={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:r=!1}=t,n=ut.levels(e,t);return n=r?n.slice(1):n.slice(0,-1)},common(e,t){for(var r=[],n=0;n<e.length&&n<t.length;n++){var i=e[n];if(i!==t[n])break;r.push(i)}return r},compare(e,t){for(var r=Math.min(e.length,t.length),n=0;n<r;n++){if(e[n]<t[n])return-1;if(e[n]>t[n])return 1}return 0},endsAfter(e,t){var r=e.length-1,n=e.slice(0,r),i=t.slice(0,r),o=e[r],a=t[r];return ut.equals(n,i)&&o>a},endsAt(e,t){var r=e.length,n=e.slice(0,r),i=t.slice(0,r);return ut.equals(n,i)},endsBefore(e,t){var r=e.length-1,n=e.slice(0,r),i=t.slice(0,r),o=e[r],a=t[r];return ut.equals(n,i)&&o<a},equals:(e,t)=>e.length===t.length&&e.every(((e,r)=>e===t[r])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===ut.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===ut.compare(e,t),isBefore:(e,t)=>-1===ut.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===ut.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===ut.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===ut.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===ut.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var r=e.slice(0,-1),n=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&ut.equals(r,n)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:r=!1}=t,n=[],i=0;i<=e.length;i++)n.push(e.slice(0,i));return r&&n.reverse(),n},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},operationCanTransformPath(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!ut.isAncestor(t,e)&&!ut.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return ne(e,(n=>{var{affinity:i="forward"}=r;if(e&&0!==(null==e?void 0:e.length)){if(null===n)return null;switch(t.type){case"insert_node":var{path:o}=t;(ut.equals(o,n)||ut.endsBefore(o,n)||ut.isAncestor(o,n))&&(n[o.length-1]+=1);break;case"remove_node":var{path:a}=t;if(ut.equals(a,n)||ut.isAncestor(a,n))return null;ut.endsBefore(a,n)&&(n[a.length-1]-=1);break;case"merge_node":var{path:s,position:u}=t;ut.equals(s,n)||ut.endsBefore(s,n)?n[s.length-1]-=1:ut.isAncestor(s,n)&&(n[s.length-1]-=1,n[s.length]+=u);break;case"split_node":var{path:l,position:c}=t;if(ut.equals(l,n)){if("forward"===i)n[n.length-1]+=1;else if("backward"!==i)return null}else ut.endsBefore(l,n)?n[l.length-1]+=1:ut.isAncestor(l,n)&&e[l.length]>=c&&(n[l.length-1]+=1,n[l.length]-=c);break;case"move_node":var{path:d,newPath:p}=t;if(ut.equals(d,p))return;if(ut.isAncestor(d,n)||ut.equals(d,n)){var f=p.slice();return ut.endsBefore(d,p)&&d.length<p.length&&(f[d.length-1]-=1),f.concat(n.slice(d.length))}ut.isSibling(d,p)&&(ut.isAncestor(p,n)||ut.equals(p,n))?ut.endsBefore(d,n)?n[d.length-1]-=1:n[d.length-1]+=1:ut.endsBefore(p,n)||ut.equals(p,n)||ut.isAncestor(p,n)?(ut.endsBefore(d,n)&&(n[d.length-1]-=1),n[p.length-1]+=1):ut.endsBefore(d,n)&&(ut.equals(p,n)&&(n[p.length-1]+=1),n[d.length-1]-=1)}}}))}},lt={transform(e,t){var{current:r,affinity:n}=e;if(null!=r){var i=ut.transform(r,t,{affinity:n});e.current=i,null==i&&e.unref()}}};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 dt(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){ae(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}var pt={compare(e,t){var r=ut.compare(e.path,t.path);return 0===r?e.offset<t.offset?-1:e.offset>t.offset?1:0:r},isAfter:(e,t)=>1===pt.compare(e,t),isBefore:(e,t)=>-1===pt.compare(e,t),equals:(e,t)=>e.offset===t.offset&&ut.equals(e.path,t.path),isPoint:e=>o(e)&&"number"==typeof e.offset&&ut.isPath(e.path),transform(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return ne(e,(e=>{if(null===e)return null;var{affinity:n="forward"}=r,{path:i,offset:o}=e;switch(t.type){case"insert_node":case"move_node":e.path=ut.transform(i,t,r);break;case"insert_text":ut.equals(t.path,i)&&(t.offset<o||t.offset===o&&"forward"===n)&&(e.offset+=t.text.length);break;case"merge_node":ut.equals(t.path,i)&&(e.offset+=t.position),e.path=ut.transform(i,t,r);break;case"remove_text":ut.equals(t.path,i)&&t.offset<=o&&(e.offset-=Math.min(o-t.offset,t.text.length));break;case"remove_node":if(ut.equals(t.path,i)||ut.isAncestor(t.path,i))return null;e.path=ut.transform(i,t,r);break;case"split_node":if(ut.equals(t.path,i)){if(t.position===o&&null==n)return null;(t.position<o||t.position===o&&"forward"===n)&&(e.offset-=t.position,e.path=ut.transform(i,t,dt(dt({},r),{},{affinity:"forward"})))}else e.path=ut.transform(i,t,r)}}))}},ft={transform(e,t){var{current:r,affinity:n}=e;if(null!=r){var i=pt.transform(r,t,{affinity:n});e.current=i,null==i&&e.unref()}}},mt=["anchor","focus"];function ht(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}var gt={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:r=!1}=t,{anchor:n,focus:i}=e;return gt.isBackward(e)===r?[n,i]:[i,n]},end(e){var[,t]=gt.edges(e);return t},equals:(e,t)=>pt.equals(e.anchor,t.anchor)&&pt.equals(e.focus,t.focus),includes(e,t){if(gt.isRange(t)){if(gt.includes(e,t.anchor)||gt.includes(e,t.focus))return!0;var[r,n]=gt.edges(e),[i,o]=gt.edges(t);return pt.isBefore(r,i)&&pt.isAfter(n,o)}var[a,s]=gt.edges(e),u=!1,l=!1;return pt.isPoint(t)?(u=pt.compare(t,a)>=0,l=pt.compare(t,s)<=0):(u=ut.compare(t,a.path)>=0,l=ut.compare(t,s.path)<=0),u&&l},intersection(e,t){var r=be(e,mt),[n,i]=gt.edges(e),[o,a]=gt.edges(t),s=pt.isBefore(n,o)?o:n,u=pt.isBefore(i,a)?i:a;return pt.isBefore(u,s)?null:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ht(Object(r),!0).forEach((function(t){ae(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ht(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({anchor:s,focus:u},r)},isBackward(e){var{anchor:t,focus:r}=e;return pt.isAfter(t,r)},isCollapsed(e){var{anchor:t,focus:r}=e;return pt.equals(t,r)},isExpanded:e=>!gt.isCollapsed(e),isForward:e=>!gt.isBackward(e),isRange:e=>o(e)&&pt.isPoint(e.anchor)&&pt.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=gt.edges(e);return t},transform(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return ne(e,(e=>{if(null===e)return null;var n,i,{affinity:o="inward"}=r;if("inward"===o){var a=gt.isCollapsed(e);gt.isForward(e)?(n="forward",i=a?n:"backward"):(n="backward",i=a?n:"forward")}else"outward"===o?gt.isForward(e)?(n="backward",i="forward"):(n="forward",i="backward"):(n=o,i=o);var s=pt.transform(e.anchor,t,{affinity:n}),u=pt.transform(e.focus,t,{affinity:i});if(!s||!u)return null;e.anchor=s,e.focus=u}))}},vt={transform(e,t){var{current:r,affinity:n}=e;if(null!=r){var i=gt.transform(r,t,{affinity:n});e.current=i,null==i&&e.unref()}}},bt=(e,t)=>{for(var r in e){var n=e[r],i=t[r];if(o(n)&&o(i)){if(!bt(n,i))return!1}else if(Array.isArray(n)&&Array.isArray(i)){if(n.length!==i.length)return!1;for(var a=0;a<n.length;a++)if(n[a]!==i[a])return!1}else if(n!==i)return!1}for(var s in t)if(void 0===e[s]&&void 0!==t[s])return!1;return!0},yt=["text"],wt=["anchor","focus"];function Dt(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?Dt(Object(r),!0).forEach((function(t){ae(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ct={equals(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:n=!1}=r;function i(e){return be(e,yt)}return bt(n?i(e):e,n?i(t):t)},isText:e=>o(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>Ct.isText(e))),isTextProps:e=>void 0!==e.text,matches(e,t){for(var r in t)if("text"!==r&&(!e.hasOwnProperty(r)||e[r]!==t[r]))return!1;return!0},decorations(e,t){var r=[Et({},e)];for(var n of t){var i=be(n,wt),[o,a]=gt.edges(n),s=[],u=0;for(var l of r){var{length:c}=l.text,d=u;if(u+=c,o.offset<=d&&a.offset>=u)Object.assign(l,i),s.push(l);else if(o.offset!==a.offset&&(o.offset===u||a.offset===d)||o.offset>u||a.offset<d||a.offset===d&&0!==d)s.push(l);else{var p=l,f=void 0,m=void 0;if(a.offset<u){var h=a.offset-d;m=Et(Et({},p),{},{text:p.text.slice(h)}),p=Et(Et({},p),{},{text:p.text.slice(0,h)})}if(o.offset>d){var g=o.offset-d;f=Et(Et({},p),{},{text:p.text.slice(0,g)}),p=Et(Et({},p),{},{text:p.text.slice(g)})}Object.assign(p,i),f&&s.push(f),s.push(p),m&&s.push(m)}}r=s}return r}};function St(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 It(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?St(Object(r),!0).forEach((function(t){ae(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):St(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var xt={transform(e,t){e.children=ie(e.children);var r=e.selection&&ie(e.selection);try{r=((e,t,r)=>{switch(r.type){case"insert_node":var{path:n,node:i}=r,o=it.parent(e,n),a=n[n.length-1];if(a>o.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(n,"] because the destination is past the end of the node."));if(o.children.splice(a,0,i),t)for(var[s,u]of gt.points(t))t[u]=pt.transform(s,r);break;case"insert_text":var{path:l,offset:c,text:d}=r;if(0===d.length)break;var p=it.leaf(e,l),f=p.text.slice(0,c),m=p.text.slice(c);if(p.text=f+d+m,t)for(var[h,g]of gt.points(t))t[g]=pt.transform(h,r);break;case"merge_node":var{path:v}=r,b=it.get(e,v),y=ut.previous(v),w=it.get(e,y),D=it.parent(e,v),E=v[v.length-1];if(Ct.isText(b)&&Ct.isText(w))w.text+=b.text;else{if(Ct.isText(b)||Ct.isText(w))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(v,"] to nodes of different interfaces: ").concat(b," ").concat(w));w.children.push(...b.children)}if(D.children.splice(E,1),t)for(var[C,S]of gt.points(t))t[S]=pt.transform(C,r);break;case"move_node":var{path:I,newPath:x}=r;if(ut.isAncestor(I,x))throw new Error("Cannot move a path [".concat(I,"] to new path [").concat(x,"] because the destination is inside itself."));var O=it.get(e,I),A=it.parent(e,I),M=I[I.length-1];A.children.splice(M,1);var P=ut.transform(I,r),B=it.get(e,ut.parent(P)),N=P[P.length-1];if(B.children.splice(N,0,O),t)for(var[k,T]of gt.points(t))t[T]=pt.transform(k,r);break;case"remove_node":var{path:j}=r,L=j[j.length-1];if(it.parent(e,j).children.splice(L,1),t)for(var[F,R]of gt.points(t)){var _=pt.transform(F,r);if(null!=t&&null!=_)t[R]=_;else{var Z=void 0,H=void 0;for(var[W,U]of it.texts(e)){if(-1!==ut.compare(U,j)){H=[W,U];break}Z=[W,U]}var G=!1;Z&&H&&(G=ut.equals(H[1],j)?!ut.hasPrevious(H[1]):ut.common(Z[1],j).length<ut.common(H[1],j).length),Z&&!G?(F.path=Z[1],F.offset=Z[0].text.length):H?(F.path=H[1],F.offset=0):t=null}}break;case"remove_text":var{path:z,offset:q,text:V}=r;if(0===V.length)break;var J=it.leaf(e,z),Y=J.text.slice(0,q),Q=J.text.slice(q+V.length);if(J.text=Y+Q,t)for(var[X,K]of gt.points(t))t[K]=pt.transform(X,r);break;case"set_node":var{path:$,properties:ee,newProperties:te}=r;if(0===$.length)throw new Error("Cannot set properties on the root node!");var re=it.get(e,$);for(var ne in te){if("children"===ne||"text"===ne)throw new Error('Cannot set the "'.concat(ne,'" property of nodes!'));var ie=te[ne];null==ie?delete re[ne]:re[ne]=ie}for(var oe in ee)te.hasOwnProperty(oe)||delete re[oe];break;case"set_selection":var{newProperties:ae}=r;if(null==ae)t=ae;else{if(null==t){if(!gt.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(ae)," when there is no current selection."));t=It({},ae)}for(var se in ae){var ue=ae[se];if(null==ue){if("anchor"===se||"focus"===se)throw new Error('Cannot remove the "'.concat(se,'" selection property'));delete t[se]}else t[se]=ue}}break;case"split_node":var{path:le,position:ce,properties:de}=r;if(0===le.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(le,"] because the root node cannot be split."));var pe,fe=it.get(e,le),me=it.parent(e,le),he=le[le.length-1];if(Ct.isText(fe)){var ge=fe.text.slice(0,ce),ve=fe.text.slice(ce);fe.text=ge,pe=It(It({},de),{},{text:ve})}else{var be=fe.children.slice(0,ce),ye=fe.children.slice(ce);fe.children=be,pe=It(It({},de),{},{children:ye})}if(me.children.splice(he+1,0,pe),t)for(var[we,De]of gt.points(t))t[De]=pt.transform(we,r)}return t})(e,r,t)}finally{e.children=oe(e.children),e.selection=r?s(r)?oe(r):r:null}}},Ot=["text"],At=["children"];function Mt(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 Pt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mt(Object(r),!0).forEach((function(t){ae(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Bt={insertNodes(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};$e.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:i=!1,mode:o="lowest"}=r,{at:a,match:s,select:u}=r;if(it.isNode(t)&&(t=[t]),0!==t.length){var[l]=t;if(a||(a=e.selection?e.selection:e.children.length>0?$e.end(e,[]):[0],u=!0),null==u&&(u=!1),gt.isRange(a))if(n||(a=$e.unhangRange(e,a)),gt.isCollapsed(a))a=a.anchor;else{var[,c]=gt.edges(a),d=$e.pointRef(e,c);Ht.delete(e,{at:a}),a=d.unref()}if(pt.isPoint(a)){null==s&&(s=Ct.isText(l)?e=>Ct.isText(e):e.isInline(l)?t=>Ct.isText(t)||$e.isInline(e,t):t=>$e.isBlock(e,t));var[p]=$e.nodes(e,{at:a.path,match:s,mode:o,voids:i});if(!p)return;var[,f]=p,m=$e.pathRef(e,f),h=$e.isEnd(e,a,f);Ht.splitNodes(e,{at:a,match:s,mode:o,voids:i});var g=m.unref();a=h?ut.next(g):g}var v=ut.parent(a),b=a[a.length-1];if(i||!$e.void(e,{at:v})){for(var y of t){var w=v.concat(b);b++,e.apply({type:"insert_node",path:w,node:y}),a=ut.next(a)}if(a=ut.previous(a),u){var D=$e.end(e,a);D&&Ht.select(e,D)}}}}))},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};$e.withoutNormalizing(e,(()=>{var{at:r=e.selection,mode:n="lowest",voids:i=!1}=t,{match:o}=t;if(null==o&&(o=ut.isPath(r)?Tt(e,r):t=>$e.isBlock(e,t)),r){var a=$e.nodes(e,{at:r,match:o,mode:n,voids:i}),s=Array.from(a,(t=>{var[,r]=t;return $e.pathRef(e,r)}));for(var u of s){var l=u.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=$e.node(e,ut.parent(l)),[d,p]=c,f=l[l.length-1],{length:m}=d.children;if(1===m){var h=ut.next(p);Ht.moveNodes(e,{at:l,to:h,voids:i}),Ht.removeNodes(e,{at:p,voids:i})}else if(0===f)Ht.moveNodes(e,{at:l,to:p,voids:i});else if(f===m-1){var g=ut.next(p);Ht.moveNodes(e,{at:l,to:g,voids:i})}else{var v=ut.next(l),b=ut.next(p);Ht.splitNodes(e,{at:v,voids:i}),Ht.moveNodes(e,{at:l,to:b,voids:i})}}}}))},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};$e.withoutNormalizing(e,(()=>{var{match:r,at:n=e.selection}=t,{hanging:i=!1,voids:o=!1,mode:a="lowest"}=t;if(n){if(null==r)if(ut.isPath(n)){var[s]=$e.parent(e,n);r=e=>s.children.includes(e)}else r=t=>$e.isBlock(e,t);if(!i&&gt.isRange(n)&&(n=$e.unhangRange(e,n)),gt.isRange(n))if(gt.isCollapsed(n))n=n.anchor;else{var[,u]=gt.edges(n),l=$e.pointRef(e,u);Ht.delete(e,{at:n}),n=l.unref(),null==t.at&&Ht.select(e,n)}var[c]=$e.nodes(e,{at:n,match:r,voids:o,mode:a}),d=$e.previous(e,{at:n,match:r,voids:o,mode:a});if(c&&d){var[p,f]=c,[m,h]=d;if(0!==f.length&&0!==h.length){var g,v,b=ut.next(h),y=ut.common(f,h),w=ut.isSibling(f,h),D=Array.from($e.levels(e,{at:f}),(e=>{var[t]=e;return t})).slice(y.length).slice(0,-1),E=$e.above(e,{at:f,mode:"highest",match:t=>D.includes(t)&&Nt(e,t)}),C=E&&$e.pathRef(e,E[1]);if(Ct.isText(p)&&Ct.isText(m)){var S=be(p,Ot);v=m.text.length,g=S}else{if(!Ve.isElement(p)||!Ve.isElement(m))throw new Error("Cannot merge the node at path [".concat(f,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(p)," ").concat(JSON.stringify(m)));S=be(p,At);v=m.children.length,g=S}w||Ht.moveNodes(e,{at:f,to:b,voids:o}),C&&Ht.removeNodes(e,{at:C.current,voids:o}),Ve.isElement(m)&&$e.isEmpty(e,m)||Ct.isText(m)&&""===m.text&&0!==h[h.length-1]?Ht.removeNodes(e,{at:h,voids:o}):e.apply({type:"merge_node",path:b,position:v,properties:g}),C&&C.unref()}}}}))},moveNodes(e,t){$e.withoutNormalizing(e,(()=>{var{to:r,at:n=e.selection,mode:i="lowest",voids:o=!1}=t,{match:a}=t;if(n){null==a&&(a=ut.isPath(n)?Tt(e,n):t=>$e.isBlock(e,t));var s=$e.pathRef(e,r),u=$e.nodes(e,{at:n,match:a,mode:i,voids:o}),l=Array.from(u,(t=>{var[,r]=t;return $e.pathRef(e,r)}));for(var c of l){var d=c.unref(),p=s.current;0!==d.length&&e.apply({type:"move_node",path:d,newPath:p}),s.current&&ut.isSibling(p,d)&&ut.isAfter(p,d)&&(s.current=ut.next(s.current))}s.unref()}}))},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};$e.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:n=!1,mode:i="lowest"}=t,{at:o=e.selection,match:a}=t;if(o){null==a&&(a=ut.isPath(o)?Tt(e,o):t=>$e.isBlock(e,t)),!r&&gt.isRange(o)&&(o=$e.unhangRange(e,o));var s=$e.nodes(e,{at:o,match:a,mode:i,voids:n}),u=Array.from(s,(t=>{var[,r]=t;return $e.pathRef(e,r)}));for(var l of u){var c=l.unref();if(c){var[d]=$e.node(e,c);e.apply({type:"remove_node",path:c,node:d})}}}}))},setNodes(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};$e.withoutNormalizing(e,(()=>{var{match:n,at:i=e.selection,compare:o,merge:a}=r,{hanging:s=!1,mode:u="lowest",split:l=!1,voids:c=!1}=r;if(i){if(null==n&&(n=ut.isPath(i)?Tt(e,i):t=>$e.isBlock(e,t)),!s&&gt.isRange(i)&&(i=$e.unhangRange(e,i)),l&&gt.isRange(i)){if(gt.isCollapsed(i)&&$e.leaf(e,i.anchor)[0].text.length>0)return;var d=$e.rangeRef(e,i,{affinity:"inward"}),[p,f]=gt.edges(i),m="lowest"===u?"lowest":"highest",h=$e.isEnd(e,f,f.path);Ht.splitNodes(e,{at:f,match:n,mode:m,voids:c,always:!h});var g=$e.isStart(e,p,p.path);Ht.splitNodes(e,{at:p,match:n,mode:m,voids:c,always:!g}),i=d.unref(),null==r.at&&Ht.select(e,i)}for(var[v,b]of(o||(o=(e,t)=>e!==t),$e.nodes(e,{at:i,match:n,mode:u,voids:c}))){var y={},w={};if(0!==b.length){var D=!1;for(var E in t)"children"!==E&&"text"!==E&&o(t[E],v[E])&&(D=!0,v.hasOwnProperty(E)&&(y[E]=v[E]),a?null!=t[E]&&(w[E]=a(v[E],t[E])):null!=t[E]&&(w[E]=t[E]));D&&e.apply({type:"set_node",path:b,properties:y,newProperties:w})}}}}))},splitNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};$e.withoutNormalizing(e,(()=>{var{mode:r="lowest",voids:n=!1}=t,{match:i,at:o=e.selection,height:a=0,always:s=!1}=t;if(null==i&&(i=t=>$e.isBlock(e,t)),gt.isRange(o)&&(o=kt(e,o)),ut.isPath(o)){var u=o,l=$e.point(e,u),[c]=$e.parent(e,u);i=e=>e===c,a=l.path.length-u.length+1,o=l,s=!0}if(o){var d=$e.pointRef(e,o,{affinity:"backward"}),[p]=$e.nodes(e,{at:o,match:i,mode:r,voids:n});if(p){var f=$e.void(e,{at:o,mode:"highest"});if(!n&&f){var[m,h]=f;if(Ve.isElement(m)&&e.isInline(m)){var g=$e.after(e,h);if(!g){var v=ut.next(h);Ht.insertNodes(e,{text:""},{at:v,voids:n}),g=$e.point(e,v)}o=g,s=!0}a=o.path.length-h.length+1,s=!0}var b=$e.pointRef(e,o),y=o.path.length-a,[,w]=p,D=o.path.slice(0,y),E=0===a?o.offset:o.path[y]+0;for(var[C,S]of $e.levels(e,{at:D,reverse:!0,voids:n})){var I=!1;if(S.length<w.length||0===S.length||!n&&$e.isVoid(e,C))break;var x=d.current,O=$e.isEnd(e,x,S);if(s||!d||!$e.isEdge(e,x,S)){I=!0;var A=it.extractProps(C);e.apply({type:"split_node",path:S,position:E,properties:A})}E=S[S.length-1]+(I||O?1:0)}if(null==t.at){var M=b.current||$e.end(e,[]);Ht.select(e,M)}d.unref(),b.unref()}}}))},unsetNodes(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var n={};for(var i of t)n[i]=null;Ht.setNodes(e,n,r)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};$e.withoutNormalizing(e,(()=>{var{mode:r="lowest",split:n=!1,voids:i=!1}=t,{at:o=e.selection,match:a}=t;if(o){null==a&&(a=ut.isPath(o)?Tt(e,o):t=>$e.isBlock(e,t)),ut.isPath(o)&&(o=$e.range(e,o));var s=gt.isRange(o)?$e.rangeRef(e,o):null,u=$e.nodes(e,{at:o,match:a,mode:r,voids:i}),l=Array.from(u,(t=>{var[,r]=t;return $e.pathRef(e,r)})).reverse(),c=function(t){var r=t.unref(),[o]=$e.node(e,r),a=$e.range(e,r);n&&s&&(a=gt.intersection(s.current,a)),Ht.liftNodes(e,{at:a,match:e=>Ve.isAncestor(o)&&o.children.includes(e),voids:i})};for(var d of l)c(d);s&&s.unref()}}))},wrapNodes(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};$e.withoutNormalizing(e,(()=>{var{mode:n="lowest",split:i=!1,voids:o=!1}=r,{match:a,at:s=e.selection}=r;if(s){if(null==a&&(a=ut.isPath(s)?Tt(e,s):e.isInline(t)?t=>$e.isInline(e,t)||Ct.isText(t):t=>$e.isBlock(e,t)),i&&gt.isRange(s)){var[u,l]=gt.edges(s),c=$e.rangeRef(e,s,{affinity:"inward"});Ht.splitNodes(e,{at:l,match:a,voids:o}),Ht.splitNodes(e,{at:u,match:a,voids:o}),s=c.unref(),null==r.at&&Ht.select(e,s)}var d=Array.from($e.nodes(e,{at:s,match:e.isInline(t)?t=>$e.isBlock(e,t):e=>$e.isEditor(e),mode:"lowest",voids:o}));for(var[,p]of d){var f=gt.isRange(s)?gt.intersection(s,$e.range(e,p)):s;if(f){var m=Array.from($e.nodes(e,{at:f,match:a,mode:n,voids:o}));if(m.length>0){var h=function(){var[r]=m,n=m[m.length-1],[,i]=r,[,a]=n;if(0===i.length&&0===a.length)return"continue";var s=ut.equals(i,a)?ut.parent(i):ut.common(i,a),u=$e.range(e,i,a),l=$e.node(e,s),[c]=l,d=s.length+1,p=ut.next(a.slice(0,d)),f=Pt(Pt({},t),{},{children:[]});Ht.insertNodes(e,f,{at:p,voids:o}),Ht.moveNodes(e,{at:u,match:e=>Ve.isAncestor(c)&&c.children.includes(e),to:p.concat(0),voids:o})}();if("continue"===h)continue}}}}}))}},Nt=(e,t)=>{if(Ve.isElement(t)){var r=t;return!!$e.isVoid(e,t)||1===r.children.length&&Nt(e,r.children[0])}return!$e.isEditor(t)},kt=(e,t)=>{if(gt.isCollapsed(t))return t.anchor;var[,r]=gt.edges(t),n=$e.pointRef(e,r);return Ht.delete(e,{at:t}),n.unref()},Tt=(e,t)=>{var[r]=$e.node(e,t);return e=>e===r};function jt(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?jt(Object(r),!0).forEach((function(t){ae(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ft={collapse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:r="anchor"}=t,{selection:n}=e;if(n)if("anchor"===r)Ht.select(e,n.anchor);else if("focus"===r)Ht.select(e,n.focus);else if("start"===r){var[i]=gt.edges(n);Ht.select(e,i)}else if("end"===r){var[,o]=gt.edges(n);Ht.select(e,o)}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:r}=e,{distance:n=1,unit:i="character",reverse:o=!1}=t,{edge:a=null}=t;if(r){"start"===a&&(a=gt.isBackward(r)?"focus":"anchor"),"end"===a&&(a=gt.isBackward(r)?"anchor":"focus");var{anchor:s,focus:u}=r,l={distance:n,unit:i},c={};if(null==a||"anchor"===a){var d=o?$e.before(e,s,l):$e.after(e,s,l);d&&(c.anchor=d)}if(null==a||"focus"===a){var p=o?$e.before(e,u,l):$e.after(e,u,l);p&&(c.focus=p)}Ht.setSelection(e,c)}},select(e,t){var{selection:r}=e;if(t=$e.range(e,t),r)Ht.setSelection(e,t);else{if(!gt.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:r,newProperties:t})}},setPoint(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:n}=e,{edge:i="both"}=r;if(n){"start"===i&&(i=gt.isBackward(n)?"focus":"anchor"),"end"===i&&(i=gt.isBackward(n)?"anchor":"focus");var{anchor:o,focus:a}=n,s="anchor"===i?o:a;Ht.setSelection(e,{["anchor"===i?"anchor":"focus"]:Lt(Lt({},s),t)})}},setSelection(e,t){var{selection:r}=e,n={},i={};if(r){for(var o in t)("anchor"===o&&null!=t.anchor&&!pt.equals(t.anchor,r.anchor)||"focus"===o&&null!=t.focus&&!pt.equals(t.focus,r.focus)||"anchor"!==o&&"focus"!==o&&t[o]!==r[o])&&(n[o]=r[o],i[o]=t[o]);Object.keys(n).length>0&&e.apply({type:"set_selection",properties:n,newProperties:i})}}},Rt={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};$e.withoutNormalizing(e,(()=>{var{reverse:r=!1,unit:n="character",distance:i=1,voids:o=!1}=t,{at:a=e.selection,hanging:s=!1}=t;if(a){if(gt.isRange(a)&&gt.isCollapsed(a)&&(a=a.anchor),pt.isPoint(a)){var u=$e.void(e,{at:a,mode:"highest"});if(!o&&u){var[,l]=u;a=l}else{var c={unit:n,distance:i};a={anchor:a,focus:r?$e.before(e,a,c)||$e.start(e,[]):$e.after(e,a,c)||$e.end(e,[])},s=!0}}if(ut.isPath(a))Ht.removeNodes(e,{at:a,voids:o});else if(!gt.isCollapsed(a)){if(!s){var[,d]=gt.edges(a),p=$e.end(e,[]);pt.equals(d,p)||(a=$e.unhangRange(e,a,{voids:o}))}var[f,m]=gt.edges(a),h=$e.above(e,{match:t=>$e.isBlock(e,t),at:f,voids:o}),g=$e.above(e,{match:t=>$e.isBlock(e,t),at:m,voids:o}),v=h&&g&&!ut.equals(h[1],g[1]),b=ut.equals(f.path,m.path),y=o?null:$e.void(e,{at:f,mode:"highest"}),w=o?null:$e.void(e,{at:m,mode:"highest"});if(y){var D=$e.before(e,f);D&&h&&ut.isAncestor(h[1],D.path)&&(f=D)}if(w){var E=$e.after(e,m);E&&g&&ut.isAncestor(g[1],E.path)&&(m=E)}var C,S=[];for(var I of $e.nodes(e,{at:a,voids:o})){var[x,O]=I;C&&0===ut.compare(O,C)||(!o&&$e.isVoid(e,x)||!ut.isCommon(O,f.path)&&!ut.isCommon(O,m.path))&&(S.push(I),C=O)}var A=Array.from(S,(t=>{var[,r]=t;return $e.pathRef(e,r)})),M=$e.pointRef(e,f),P=$e.pointRef(e,m);if(!b&&!y){var B=M.current,[N]=$e.leaf(e,B),{path:k}=B,{offset:T}=f,j=N.text.slice(T);j.length>0&&e.apply({type:"remove_text",path:k,offset:T,text:j})}for(var L of A){var F=L.unref();Ht.removeNodes(e,{at:F,voids:o})}if(!w){var R=P.current,[_]=$e.leaf(e,R),{path:Z}=R,H=b?f.offset:0,W=_.text.slice(H,m.offset);W.length>0&&e.apply({type:"remove_text",path:Z,offset:H,text:W})}!b&&v&&P.current&&M.current&&Ht.mergeNodes(e,{at:P.current,hanging:!0,voids:o});var U=r?M.unref()||P.unref():P.unref()||M.unref();null==t.at&&U&&Ht.select(e,U)}}}))},insertFragment(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};$e.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:i=!1}=r,{at:o=e.selection}=r;if(t.length&&o){if(gt.isRange(o))if(n||(o=$e.unhangRange(e,o)),gt.isCollapsed(o))o=o.anchor;else{var[,a]=gt.edges(o);if(!i&&$e.void(e,{at:a}))return;var s=$e.pointRef(e,a);Ht.delete(e,{at:o}),o=s.unref()}else ut.isPath(o)&&(o=$e.start(e,o));if(i||!$e.void(e,{at:o})){var u=$e.above(e,{at:o,match:t=>$e.isInline(e,t),mode:"highest",voids:i});if(u){var[,l]=u;if($e.isEnd(e,o,l))o=$e.after(e,l);else if($e.isStart(e,o,l)){o=$e.before(e,l)}}var c=$e.above(e,{match:t=>$e.isBlock(e,t),at:o,voids:i}),[,d]=c,p=$e.isStart(e,o,d),f=$e.isEnd(e,o,d),m=p&&f,h=!p||p&&f,g=!f,[,v]=it.first({children:t},[]),[,b]=it.last({children:t},[]),y=[],w=t=>{var[r,n]=t;return!(0===n.length)&&(!!m||!(h&&ut.isAncestor(n,v)&&Ve.isElement(r)&&!e.isVoid(r)&&!e.isInline(r))&&!(g&&ut.isAncestor(n,b)&&Ve.isElement(r)&&!e.isVoid(r)&&!e.isInline(r)))};for(var D of it.nodes({children:t},{pass:w}))w(D)&&y.push(D);var E=[],C=[],S=[],I=!0,x=!1;for(var[O]of y)Ve.isElement(O)&&!e.isInline(O)?(I=!1,x=!0,C.push(O)):I?E.push(O):S.push(O);var[A]=$e.nodes(e,{at:o,match:t=>Ct.isText(t)||$e.isInline(e,t),mode:"highest",voids:i}),[,M]=A,P=$e.isStart(e,o,M),B=$e.isEnd(e,o,M),N=$e.pathRef(e,f?ut.next(d):d),k=$e.pathRef(e,B?ut.next(M):M),T=$e.pathRef(e,d);Ht.splitNodes(e,{at:o,match:t=>x?$e.isBlock(e,t):Ct.isText(t)||$e.isInline(e,t),mode:x?"lowest":"highest",voids:i});var j=$e.pathRef(e,!P||P&&B?ut.next(M):M);if(Ht.insertNodes(e,E,{at:j.current,match:t=>Ct.isText(t)||$e.isInline(e,t),mode:"highest",voids:i}),m&&C.length&&Ht.delete(e,{at:T.unref(),voids:i}),Ht.insertNodes(e,C,{at:N.current,match:t=>$e.isBlock(e,t),mode:"lowest",voids:i}),Ht.insertNodes(e,S,{at:k.current,match:t=>Ct.isText(t)||$e.isInline(e,t),mode:"highest",voids:i}),!r.at){var L;L=S.length>0?ut.previous(k.current):C.length>0?ut.previous(N.current):ut.previous(j.current);var F=$e.end(e,L);Ht.select(e,F)}j.unref(),N.unref(),k.unref()}}}))},insertText(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};$e.withoutNormalizing(e,(()=>{var{voids:n=!1}=r,{at:i=e.selection}=r;if(i){if(ut.isPath(i)&&(i=$e.range(e,i)),gt.isRange(i))if(gt.isCollapsed(i))i=i.anchor;else{var o=gt.end(i);if(!n&&$e.void(e,{at:o}))return;var a=$e.pointRef(e,o);Ht.delete(e,{at:i,voids:n}),i=a.unref(),Ht.setSelection(e,{anchor:i,focus:i})}if(n||!$e.void(e,{at:i})){var{path:s,offset:u}=i;t.length>0&&e.apply({type:"insert_text",path:s,offset:u,text:t})}}}))}};function _t(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 Zt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_t(Object(r),!0).forEach((function(t){ae(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_t(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ht=Zt(Zt(Zt(Zt({},xt),Bt),Ft),Rt),Wt=r(19141),Ut=r.n(Wt),Gt=r(76897),zt=r.n(Gt),qt=r(38172),Vt=r.n(qt);function Jt(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function Yt(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function Qt(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var r=getComputedStyle(e,null);return Yt(r.overflowY,t)||Yt(r.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function Xt(e,t,r,n,i,o,a,s){return o<e&&a>t||o>e&&a<t?0:o<=e&&s<=r||a>=t&&s>=r?o-e-n:a>t&&s<r||o<e&&s>r?a-t+i:0}function Kt(e,t){var r=window,n=t.scrollMode,i=t.block,o=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,u="function"==typeof a?a:function(e){return e!==a};if(!Jt(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],d=e;Jt(d)&&u(d);){if((d=d.parentElement)===l){c.push(d);break}null!=d&&d===document.body&&Qt(d)&&!Qt(document.documentElement)||null!=d&&Qt(d,s)&&c.push(d)}for(var p=r.visualViewport?r.visualViewport.width:innerWidth,f=r.visualViewport?r.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),v=g.height,b=g.width,y=g.top,w=g.right,D=g.bottom,E=g.left,C="start"===i||"nearest"===i?y:"end"===i?D:y+v/2,S="center"===o?E+b/2:"end"===o?w:E,I=[],x=0;x<c.length;x++){var O=c[x],A=O.getBoundingClientRect(),M=A.height,P=A.width,B=A.top,N=A.right,k=A.bottom,T=A.left;if("if-needed"===n&&y>=0&&E>=0&&D<=f&&w<=p&&y>=B&&D<=k&&E>=T&&w<=N)return I;var j=getComputedStyle(O),L=parseInt(j.borderLeftWidth,10),F=parseInt(j.borderTopWidth,10),R=parseInt(j.borderRightWidth,10),_=parseInt(j.borderBottomWidth,10),Z=0,H=0,W="offsetWidth"in O?O.offsetWidth-O.clientWidth-L-R:0,U="offsetHeight"in O?O.offsetHeight-O.clientHeight-F-_:0;if(l===O)Z="start"===i?C:"end"===i?C-f:"nearest"===i?Xt(h,h+f,f,F,_,h+C,h+C+v,v):C-f/2,H="start"===o?S:"center"===o?S-p/2:"end"===o?S-p:Xt(m,m+p,p,L,R,m+S,m+S+b,b),Z=Math.max(0,Z+h),H=Math.max(0,H+m);else{Z="start"===i?C-B-F:"end"===i?C-k+_+U:"nearest"===i?Xt(B,k,M,F,_+U,C,C+v,v):C-(B+M/2)+U/2,H="start"===o?S-T-L:"center"===o?S-(T+P/2)+W/2:"end"===o?S-N+R+W:Xt(T,N,P,L,R+W,S,S+b,b);var G=O.scrollLeft,z=O.scrollTop;C+=z-(Z=Math.max(0,Math.min(z+Z,O.scrollHeight-M+U))),S+=G-(H=Math.max(0,Math.min(G+H,O.scrollWidth-P+W)))}I.push({el:O,top:Z,left:H})}return I}function $t(e){return e===Object(e)&&0!==Object.keys(e).length}var er=function(e,t){var r=e.isConnected||e.ownerDocument.documentElement.contains(e);if($t(t)&&"function"==typeof t.behavior)return t.behavior(r?Kt(e,t):[]);if(r){var n=function(e){return!1===e?{block:"end",inline:"nearest"}:$t(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var r="scrollBehavior"in document.body.style;e.forEach((function(e){var n=e.el,i=e.top,o=e.left;n.scroll&&r?n.scroll({top:i,left:o,behavior:t}):(n.scrollTop=i,n.scrollLeft=o)}))}(Kt(e,n),n.behavior)}},tr=r(45350),rr=r(73961);function nr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ir(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 or=parseInt(n.version.split(".")[0],10)>=17,ar="undefined"!=typeof navigator&&"undefined"!=typeof window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,sr="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),ur="undefined"!=typeof navigator&&/Android/.test(navigator.userAgent),lr="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),cr="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),dr="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(\.)/i.test(navigator.userAgent),pr="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),fr="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(\.)/i.test(navigator.userAgent),mr="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])).*/i.test(navigator.userAgent),hr="undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent),gr="undefined"!=typeof navigator&&/.*UCBrowser/.test(navigator.userAgent),vr="undefined"!=typeof navigator&&/.*Wechat/.test(navigator.userAgent),br=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),yr=!fr&&!dr&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,wr=br?n.useLayoutEffect:n.useEffect,Dr=e=>{var{isLast:t,leaf:r,parent:i,text:o}=e,a=tn(),s=Un.findPath(a,o),u=ut.parent(s);return a.isVoid(i)?n.createElement(Cr,{length:it.string(i).length}):""!==r.text||i.children[i.children.length-1]!==o||a.isInline(i)||""!==$e.string(a,u)?""===r.text?n.createElement(Cr,null):t&&"\n"===r.text.slice(-1)?n.createElement(Er,{isTrailing:!0,text:r.text}):n.createElement(Er,{text:r.text}):n.createElement(Cr,{isLineBreak:!0})},Er=e=>{var{text:t,isTrailing:r=!1}=e,i=(0,n.useRef)(null),o=()=>"".concat(null!=t?t:"").concat(r?"\n":"");return wr((()=>{var e=o();i.current&&i.current.textContent!==e&&(i.current.textContent=e)})),i.current?n.createElement("span",{"data-slate-string":!0,ref:i}):n.createElement("span",{"data-slate-string":!0,ref:i},o())},Cr=e=>{var{length:t=0,isLineBreak:r=!1}=e;return n.createElement("span",{"data-slate-zero-width":r?"n":"z","data-slate-length":t},"\ufeff",r?n.createElement("br",null):null)},Sr=new WeakMap,Ir=new WeakMap,xr=new WeakMap,Or=new WeakMap,Ar=new WeakMap,Mr=new WeakMap,Pr=new WeakMap,Br=new WeakMap,Nr=new WeakMap,kr=new WeakMap,Tr=new WeakMap,jr=new WeakMap,Lr=new WeakMap,Fr=new WeakMap,Rr=new WeakMap,_r=new WeakMap,Zr=Symbol("placeholder"),Hr=e=>{var{leaf:t,isLast:r,text:i,parent:o,renderPlaceholder:a,renderLeaf:s=(e=>n.createElement(Ur,Object.assign({},e)))}=e,u=(0,n.useRef)(null);(0,n.useEffect)((()=>{var e=null==u?void 0:u.current,t=document.querySelector('[data-slate-editor="true"]');if(e&&t)return t.style.minHeight="".concat(e.clientHeight,"px"),()=>{t.style.minHeight="auto"}}),[u,t]);var l=n.createElement(Dr,{isLast:r,leaf:t,parent:o,text:i});if(t[Zr]){var c={children:t.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none"},contentEditable:!1,ref:u}};l=n.createElement(n.Fragment,null,a(c),l)}return s({attributes:{"data-slate-leaf":!0},children:l,leaf:t,text:i})},Wr=n.memo(Hr,((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&Ct.equals(t.leaf,e.leaf)&&t.leaf[Zr]===e.leaf[Zr])),Ur=e=>{var{attributes:t,children:r}=e;return n.createElement("span",Object.assign({},t),r)},Gr=["anchor","focus"],zr=["anchor","focus"],qr=(e,t)=>Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every((r=>t.hasOwnProperty(r)&&e[r]===t[r])),Vr=(e,t)=>{if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++){var n=e[r],i=t[r],o=ir(n,Gr),a=ir(i,zr);if(!gt.equals(n,i)||n[Zr]!==i[Zr]||!qr(o,a))return!1}return!0};function Jr(e){var t=(0,n.useRef)(0),r=(0,n.useRef)(null),[,i]=(0,n.useState)(0);return(0,n.useEffect)((()=>(_r.set(e,(()=>{r.current||(r.current=requestAnimationFrame((()=>{i((e=>e+1)),r.current=null})),t.current++)})),()=>{_r.delete(e)})),[e]),r.current&&(cancelAnimationFrame(r.current),r.current=null),t.current}var Yr=e=>{for(var{decorations:t,isLast:r,parent:i,renderPlaceholder:o,renderLeaf:a,text:s}=e,u=tn(),l=(0,n.useRef)(null),c=Ct.decorations(s,t),d=Un.findKey(u,s),p=[],f=0;f<c.length;f++){var m=c[f];p.push(n.createElement(Wr,{isLast:r&&f===c.length-1,key:"".concat(d.id,"-").concat(f),renderPlaceholder:o,leaf:m,text:s,parent:i,renderLeaf:a}))}wr((()=>{var e=Br.get(u);l.current?(null==e||e.set(d,l.current),Mr.set(s,l.current),Ar.set(l.current,s)):(null==e||e.delete(d),Mr.delete(s))}));var h=ur?Jr(s):void 0;return n.createElement("span",{"data-slate-node":"text",ref:l,key:h},p)},Qr=n.memo(Yr,((e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.text===e.text&&Vr(t.decorations,e.decorations))),Xr=e=>{var{decorations:t,element:r,renderElement:i=(e=>n.createElement($r,Object.assign({},e))),renderPlaceholder:o,renderLeaf:a,selection:s}=e,u=(0,n.useRef)(null),l=tn(),c=dn(),d=l.isInline(r),p=Un.findKey(l,r),f=nn({decorations:t,node:r,renderElement:i,renderPlaceholder:o,renderLeaf:a,selection:s}),m={"data-slate-node":"element",ref:u};if(d&&(m["data-slate-inline"]=!0),!d&&$e.hasInlines(l,r)){var h=it.string(r),g=Ut()(h);"rtl"===g&&(m.dir=g)}if($e.isVoid(l,r)){m["data-slate-void"]=!0,!c&&d&&(m.contentEditable=!1);var v=d?"span":"div",[[b]]=it.texts(r);f=n.createElement(v,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},n.createElement(Qr,{renderPlaceholder:o,decorations:[],isLast:!1,parent:r,text:b})),Sr.set(b,0),Ir.set(b,r)}wr((()=>{var e=Br.get(l);u.current?(null==e||e.set(p,u.current),Mr.set(r,u.current),Ar.set(u.current,r)):(null==e||e.delete(p),Mr.delete(r))}));var y=i({attributes:m,children:f,element:r});if(ur){var w=Jr(r);return n.createElement(n.Fragment,{key:w},y)}return y},Kr=n.memo(Xr,((e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&Vr(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&gt.equals(e.selection,t.selection)))),$r=e=>{var{attributes:t,children:r,element:i}=e,o=tn().isInline(i)?"span":"div";return n.createElement(o,Object.assign({},t,{style:{position:"relative"}}),r)},en=(0,n.createContext)(null),tn=()=>{var e=(0,n.useContext)(en);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e},rn=(0,n.createContext)(!1),nn=e=>{for(var{decorations:t,node:r,renderElement:i,renderPlaceholder:o,renderLeaf:a,selection:s}=e,u=tn(),l=Un.findPath(u,r),c=[],d=Ve.isElement(r)&&!u.isInline(r)&&$e.hasInlines(u,r),p=function(e){var p=l.concat(e),f=r.children[e],m=Un.findKey(u,f),h=$e.range(u,p),g=s&&gt.intersection(h,s),v=t.reduce(((e,t)=>{var r=gt.intersection(t,h);return r&&e.push(r),e}),[]);Ve.isElement(f)?c.push(n.createElement(rn.Provider,{key:"provider-".concat(m.id),value:!!g},n.createElement(Kr,{decorations:v,element:f,key:m.id,renderElement:i,renderPlaceholder:o,renderLeaf:a,selection:g}))):c.push(n.createElement(Qr,{decorations:v,key:m.id,isLast:d&&e===r.children.length-1,parent:r,renderPlaceholder:o,renderLeaf:a,text:f})),Sr.set(f,e),Ir.set(f,r)},f=0;f<r.children.length;f++)p(f);return c},on={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",insertSoftBreak:"shift+enter",splitBlock:"enter",undo:"mod+z"},an={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},sn={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},un=e=>{var t=on[e],r=an[e],n=sn[e],i=t&&(0,tr.TB)(t),o=r&&(0,tr.TB)(r),a=n&&(0,tr.TB)(n);return e=>!(!i||!i(e))||(!!(sr&&o&&o(e))||!(sr||!a||!a(e)))},ln={isBold:un("bold"),isCompose:un("compose"),isMoveBackward:un("moveBackward"),isMoveForward:un("moveForward"),isDeleteBackward:un("deleteBackward"),isDeleteForward:un("deleteForward"),isDeleteLineBackward:un("deleteLineBackward"),isDeleteLineForward:un("deleteLineForward"),isDeleteWordBackward:un("deleteWordBackward"),isDeleteWordForward:un("deleteWordForward"),isExtendBackward:un("extendBackward"),isExtendForward:un("extendForward"),isExtendLineBackward:un("extendLineBackward"),isExtendLineForward:un("extendLineForward"),isItalic:un("italic"),isMoveLineBackward:un("moveLineBackward"),isMoveLineForward:un("moveLineForward"),isMoveWordBackward:un("moveWordBackward"),isMoveWordForward:un("moveWordForward"),isRedo:un("redo"),isSoftBreak:un("insertSoftBreak"),isSplitBlock:un("splitBlock"),isTransposeCharacter:un("transposeCharacter"),isUndo:un("undo")},cn=(0,n.createContext)(!1),dn=()=>(0,n.useContext)(cn),pn=(0,n.createContext)(null),fn=()=>{var e=(0,n.useContext)(pn);if(!e)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");var[t]=e;return t},mn=(0,n.createContext)((()=>[])),hn=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,gn=e=>vn(e)&&1===e.nodeType,vn=e=>{var t=hn(e);return!!t&&e instanceof t.Node},bn=e=>{var t=e&&e.anchorNode&&hn(e.anchorNode);return!!t&&e instanceof t.Selection},yn=e=>vn(e)&&3===e.nodeType,wn=(e,t,r)=>{for(var n,{childNodes:i}=e,o=i[t],a=t,s=!1,u=!1;(vn(n=o)&&8===n.nodeType||gn(o)&&0===o.childNodes.length||gn(o)&&"false"===o.getAttribute("contenteditable"))&&(!s||!u);)a>=i.length?(s=!0,a=t-1,r="backward"):a<0?(u=!0,a=t+1,r="forward"):(o=i[a],t=a,a+="forward"===r?1:-1);return[o,t]},Dn=(e,t,r)=>{var[n]=wn(e,t,r);return n},En=e=>{var t="";if(yn(e)&&e.nodeValue)return e.nodeValue;if(gn(e)){for(var r of Array.from(e.childNodes))t+=En(r);var n=getComputedStyle(e).getPropertyValue("display");"block"!==n&&"list"!==n&&"BR"!==e.tagName||(t+="\n")}return t},Cn=/data-slate-fragment="(.+?)"/m,Sn=e=>{var t=e.getData("text/html"),[,r]=t.match(Cn)||[];return r},In=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as"];function xn(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 On(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xn(Object(r),!0).forEach((function(t){nr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var An=e=>n.createElement(n.Fragment,null,nn(e)),Mn=e=>{var{attributes:t,children:r}=e;return n.createElement("span",Object.assign({},t),r)},Pn=()=>[],Bn=(e,t)=>{if(!e.selection||e.selection&&gt.isCollapsed(e.selection)){var r=t.startContainer.parentElement;r.getBoundingClientRect=t.getBoundingClientRect.bind(t),er(r,{scrollMode:"if-needed"}),delete r.getBoundingClientRect}},Nn=(e,t)=>vn(t)&&Un.hasDOMNode(e,t),kn=(e,t)=>vn(t)&&Un.hasDOMNode(e,t,{editable:!0}),Tn=(e,t)=>{if(Nr.get(e))return!1;var r=Nn(e,t)&&Un.toSlateNode(e,t);return $e.isVoid(e,r)},jn=(e,t)=>{if(!t)return!1;var r=t(e);return null!=r?r:e.isDefaultPrevented()||e.isPropagationStopped()},Ln=(e,t)=>{if(!t)return!1;var r=t(e);return null!=r?r:e.defaultPrevented};function Fn(e,t){if(e===t)return null;var r=function(e,t){for(var r=Math.min(e.length,t.length),n=0;n<r;n++)if(e.charAt(n)!==t.charAt(n))return n;return e.length!==t.length?r:null}(e,t);if(null===r)return null;var n=function(e,t,r){for(var n=e.length,i=t.length,o=Math.min(n,i,r),a=0;a<o;a++)if(e.charAt(n-a-1)!==t.charAt(i-a-1))return a;return e.length!==t.length?o:null}(e,t,Math.min(e.length-r,t.length-r));return null===n?null:{start:r,end:n}}function Rn(e,t){return e.slice(t.start,e.length-t.end)}function _n(e,t){var r=Un.toSlateNode(e,t);if(Ct.isText(r)){var n=r.text,i=t.textContent;if(i.endsWith("\n")&&(i=i.slice(0,i.length-1)),i!==n){var o=function(e,t){if(void 0===e||void 0===t)return null;var r=Fn(e,t);if(null==r)return null;var n=Rn(t,r),i=Rn(e,r);return{start:r.start,end:e.length-r.end,insertText:n,removeText:i}}(n,i);if(null!==o)return{text:o,path:Un.findPath(e,r)}}}}function Zn(e,t,r){var{path:n,text:i}=r,o={anchor:{path:n,offset:i.start},focus:{path:n,offset:i.end}};if(!t||!gt.isCollapsed(t))return o;var{insertText:a,removeText:s}=i;if((1===a.length||1===s.length)&&ut.equals(t.anchor.path,n)){var[u]=Array.from($e.nodes(e,{at:t,match:Ct.isText}));if(u){var[l]=u,{anchor:c}=t,d=l.text[c.offset-1],p=l.text[c.offset];if(1===a.length&&a===p)return t;if(1===s.length&&s===d)return{anchor:{path:n,offset:c.offset-1},focus:{path:n,offset:c.offset}}}}return o}var Hn=0;class Wn{constructor(){this.id="".concat(Hn++)}}var Un={getWindow(e){var t=xr.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey(e,t){var r=Pr.get(t);return r||(r=new Wn,Pr.set(t,r)),r},findPath(e,t){for(var r=[],n=t;;){var i=Ir.get(n);if(null==i){if($e.isEditor(n))return r;break}var o=Sr.get(n);if(null==o)break;r.unshift(o),n=i}throw new Error("Unable to find the path for Slate node: ".concat(JSON.stringify(t)))},findDocumentOrShadowRoot(e){var t=Un.toDOMNode(e,e),r=t.getRootNode();return(r instanceof Document||r instanceof ShadowRoot)&&null!=r.getSelection?r:t.ownerDocument},isFocused:e=>!!kr.get(e),isReadOnly:e=>!!Nr.get(e),blur(e){var t=Un.toDOMNode(e,e),r=Un.findDocumentOrShadowRoot(e);kr.set(e,!1),r.activeElement===t&&t.blur()},focus(e){var t=Un.toDOMNode(e,e),r=Un.findDocumentOrShadowRoot(e);kr.set(e,!0),r.activeElement!==t&&t.focus({preventScroll:!0})},deselect(e){Un.toDOMNode(e,e);var{selection:t}=e,r=Un.findDocumentOrShadowRoot(e).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),t&&Ht.deselect(e)},hasDOMNode(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{editable:i=!1}=n,o=Un.toDOMNode(e,e);try{r=gn(t)?t:t.parentElement}catch(a){if(!a.message.includes('Permission denied to access property "nodeType"'))throw a}return!!r&&!(r.closest("[data-slate-editor]")!==o||i&&!r.isContentEditable&&("boolean"!=typeof r.isContentEditable||r.closest('[contenteditable="false"]')!==o)&&!r.getAttribute("data-slate-zero-width"))},insertData(e,t){e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),setFragmentData(e,t,r){e.setFragmentData(t,r)},toDOMNode(e,t){var r=Br.get(e),n=$e.isEditor(t)?Or.get(e):null==r?void 0:r.get(Un.findKey(e,t));if(!n)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(JSON.stringify(t)));return n},toDOMPoint(e,t){var r,[n]=$e.node(e,t.path),i=Un.toDOMNode(e,n);$e.void(e,{at:t})&&(t={path:t.path,offset:0});var o=Array.from(i.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),a=0;for(var s of o){var u=s.childNodes[0];if(null!=u&&null!=u.textContent){var{length:l}=u.textContent,c=s.getAttribute("data-slate-length"),d=a+(null==c?l:parseInt(c,10));if(t.offset<=d){r=[u,Math.min(l,Math.max(0,t.offset-a))];break}a=d}}if(!r)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(JSON.stringify(t)));return r},toDOMRange(e,t){var{anchor:r,focus:n}=t,i=gt.isBackward(t),o=Un.toDOMPoint(e,r),a=gt.isCollapsed(t)?o:Un.toDOMPoint(e,n),s=Un.getWindow(e).document.createRange(),[u,l]=i?a:o,[c,d]=i?o:a,p=!!(gn(u)?u:u.parentElement).getAttribute("data-slate-zero-width"),f=!!(gn(c)?c:c.parentElement).getAttribute("data-slate-zero-width");return s.setStart(u,p?1:l),s.setEnd(c,f?1:d),s},toSlateNode(e,t){var r=gn(t)?t:t.parentElement;r&&!r.hasAttribute("data-slate-node")&&(r=r.closest("[data-slate-node]"));var n=r?Ar.get(r):null;if(!n)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(r));return n},findEventRange(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var{clientX:r,clientY:n,target:i}=t;if(null==r||null==n)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var o,a=Un.toSlateNode(e,t.target),s=Un.findPath(e,a);if($e.isVoid(e,a)){var u=i.getBoundingClientRect(),l=e.isInline(a)?r-u.left<u.left+u.width-r:n-u.top<u.top+u.height-n,c=$e.point(e,s,{edge:l?"start":"end"}),d=l?$e.before(e,c):$e.after(e,c);if(d)return $e.range(e,d)}var{document:p}=Un.getWindow(e);if(p.caretRangeFromPoint)o=p.caretRangeFromPoint(r,n);else{var f=p.caretPositionFromPoint(r,n);f&&((o=p.createRange()).setStart(f.offsetNode,f.offset),o.setEnd(f.offsetNode,f.offset))}if(!o)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));return Un.toSlateRange(e,o,{exactMatch:!1,suppressThrow:!1})},toSlatePoint(e,t,r){var{exactMatch:n,suppressThrow:i}=r,[o,a]=n?t:(e=>{var[t,r]=e;if(gn(t)&&t.childNodes.length){var n=r===t.childNodes.length,i=n?r-1:r;for([t,i]=wn(t,i,n?"backward":"forward"),n=i<r;gn(t)&&t.childNodes.length;){var o=n?t.childNodes.length-1:0;t=Dn(t,o,n?"backward":"forward")}r=n&&null!=t.textContent?t.textContent.length:0}return[t,r]})(t),s=o.parentNode,u=null,l=0;if(s){var c,d=Un.toDOMNode(e,e),p=s.closest('[data-slate-void="true"]'),f=p&&d.contains(p)?p:null,m=s.closest("[data-slate-leaf]"),h=null;if(m){if(u=m.closest('[data-slate-node="text"]')){var g=Un.getWindow(e).document.createRange();g.setStart(u,0),g.setEnd(o,a);var v=g.cloneContents();[...Array.prototype.slice.call(v.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(v.querySelectorAll("[contenteditable=false]"))].forEach((e=>{e.parentNode.removeChild(e)})),l=v.textContent.length,h=u}}else f&&((m=f.querySelector("[data-slate-leaf]"))?(u=m.closest('[data-slate-node="text"]'),l=(h=m).textContent.length,h.querySelectorAll("[data-slate-zero-width]").forEach((e=>{l-=e.textContent.length}))):l=1);h&&l===h.textContent.length&&(s.hasAttribute("data-slate-zero-width")||lr&&null!==(c=h.textContent)&&void 0!==c&&c.endsWith("\n\n"))&&l--}if(!u){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var b=Un.toSlateNode(e,u);return{path:Un.findPath(e,b),offset:l}},toSlateRange(e,t,r){var n,i,o,a,s,{exactMatch:u,suppressThrow:l}=r;if((bn(t)?t.anchorNode:t.startContainer)&&(bn(t)?(n=t.anchorNode,i=t.anchorOffset,o=t.focusNode,a=t.focusOffset,s=pr&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(n=t.startContainer,i=t.startOffset,o=t.endContainer,a=t.endOffset,s=t.collapsed)),null==n||null==o||null==i||null==a)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));var c=Un.toSlatePoint(e,[n,i],{exactMatch:u,suppressThrow:l});if(!c)return null;var d=s?c:Un.toSlatePoint(e,[o,a],{exactMatch:u,suppressThrow:l});if(!d)return null;var p={anchor:c,focus:d};return gt.isExpanded(p)&&gt.isForward(p)&&gn(o)&&$e.void(e,{at:p.focus,mode:"highest"})&&(p=$e.unhangRange(e,p,{voids:!0})),p},hasRange(e,t){var{anchor:r,focus:n}=t;return $e.hasPath(e,r.path)&&$e.hasPath(e,n.path)}};class Gn{constructor(e,t){this.editor=e,this.restoreDOM=t,this.flush=e=>{try{this.reconcileMutations(e)}catch(t){console.error(t),this.restoreDOM()}},this.reconcileMutations=e=>{var t=function(e,t){var r=[],n=[],i=[],o=[];return t.forEach((t=>{switch(t.type){case"childList":t.addedNodes.length&&t.addedNodes.forEach((e=>{r.push(e)})),t.removedNodes.forEach((e=>{n.push(e)}));break;case"characterData":o.push(t);var{parentNode:a}=t.target;if(!a)return;var s=_n(e,a);if(!s)return;if(i.some((e=>{var{path:t}=e;return ut.equals(t,s.path)})))return;i.push(s)}})),{addedNodes:r,removedNodes:n,insertedText:i,characterDataMutations:o}}(this.editor,e),{insertedText:r,removedNodes:n}=t;if(((e,t)=>{var{selection:r}=e,{removedNodes:n}=t;return!!r&&gt.isExpanded(r)&&n.length>0})(this.editor,t)){var i=function(e){return e.reduce(((e,t)=>{var{text:r}=t;return"".concat(e).concat(r.insertText)}),"")}(r);this.replaceExpandedSelection(i)}else((e,t)=>{var{addedNodes:r}=t,{selection:n}=e,i=n?it.parent(e,n.anchor.path):null,o=i?Un.toDOMNode(e,i):null;return!!o&&r.some((e=>e instanceof HTMLElement&&e.tagName===(null==o?void 0:o.tagName)))})(this.editor,t)?this.insertBreak():((e,t)=>{var{addedNodes:r,characterDataMutations:n,removedNodes:i}=t;return i.length>0&&0===r.length&&n.length>0})(this.editor,t)?this.removeLeafNodes(n):((e,t)=>{var{removedNodes:r}=t;return r.length>0})(this.editor,t)?this.deleteBackward():((e,t)=>{var{insertedText:r}=t;return r.length>0})(this.editor,t)&&this.insertText(r)},this.insertText=e=>{var{selection:t}=this.editor;if(Tr.get(this.editor)||jr.get(this.editor))return Fr.set(this.editor,e),void jr.set(this.editor,!1);e.forEach((e=>{var r=e.text.insertText,n=Zn(this.editor,t,e);Ht.setSelection(this.editor,n),$e.insertText(this.editor,r)}))},this.insertBreak=()=>{var{selection:e}=this.editor;$e.insertBreak(this.editor),this.restoreDOM(),e&&setTimeout((()=>{this.editor.selection&&gt.equals(e,this.editor.selection)&&Ht.move(this.editor)}),100)},this.replaceExpandedSelection=e=>{$e.deleteFragment(this.editor),e.length&&$e.insertText(this.editor,e),this.restoreDOM()},this.deleteBackward=()=>{$e.deleteBackward(this.editor),Un.focus(this.editor),this.restoreDOM()},this.removeLeafNodes=e=>{for(var t of e){var r=Un.toSlateNode(this.editor,t);if(r){var n=Un.findPath(this.editor,r);Ht.delete(this.editor,{at:n}),this.restoreDOM()}}},this.editor=e,this.restoreDOM=t}}function zn(e,t,r){var[i]=(0,n.useState)((()=>new MutationObserver(t)));wr((()=>{i.disconnect()})),(0,n.useEffect)((()=>{if(!e.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");return i.observe(e.current,r),i.disconnect.bind(i)}))}var qn={childList:!0,characterData:!0,subtree:!0};function Vn(e){var t,r=gn(e)?e:e.parentElement;r&&!r.hasAttribute("data-slate-node")&&(r=r.closest("[data-slate-node]"));var n=r&&Ar.get(r);return n||(null!==(t=r)&&void 0!==t&&t.parentElement?Vn(r.parentElement):null)}function Jn(e,t){var r=tn(),i=(0,n.useRef)(new Set);zn(e,(0,n.useCallback)((e=>{t.current&&e.forEach((e=>{var{target:t}=e,r=Vn(t);if(r)return i.current.add(r)}))}),[]),qn),i.current.clear();var o=(0,n.useCallback)((()=>{var e=Array.from(i.current.values()),t=e.filter((t=>!e.some((e=>ut.isParent(Un.findPath(r,e),Un.findPath(r,t))))));t.forEach((e=>{var t;null===(t=_r.get(e))||void 0===t||t()})),i.current.clear()}),[]);return o}var Yn={childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0};function Qn(e){var t=tn(),{receivedUserInput:r,onUserInput:i}=function(){var e=tn(),t=(0,n.useRef)(!1),r=(0,n.useRef)(null),i=(0,n.useCallback)((()=>{if(!1===t.current){var n=Un.getWindow(e);t.current=!0,r.current&&n.cancelAnimationFrame(r.current),r.current=n.requestAnimationFrame((()=>{t.current=!1,r.current=null}))}}),[]);return(0,n.useEffect)((()=>{t.current&&(t.current=!1)})),{receivedUserInput:t,onUserInput:i}}(),o=Jn(e,r),a=(0,n.useMemo)((()=>new Gn(t,o)),[o,t]),s=(0,n.useRef)(null),u=(0,n.useRef)(!1);return zn(e,(0,n.useCallback)((e=>{r.current&&(u.current=!0,a.flush(e),s.current&&clearTimeout(s.current),s.current=setTimeout((()=>{u.current=!1,s.current=null}),250))}),[]),Yn),{isReconciling:u,onUserInput:i}}var Xn=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","style","as"];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 $n(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){nr(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}var ei=(0,n.createContext)(!1);var ti=(0,n.createContext)({});var ri=["editor","children","onChange","value"],ni=e=>{var{editor:t,children:r,onChange:i,value:o}=e,a=ir(e,ri),s=(0,n.useRef)(!1),[u,l]=n.useState((()=>{if(!it.isNodeList(o))throw new Error("[Slate] value is invalid! Expected a list of elements"+"but got: ".concat(JSON.stringify(o)));if(!$e.isEditor(t))throw new Error("[Slate] editor is invalid! you passed:"+"".concat(JSON.stringify(t)));return t.children=o,Object.assign(t,a),[t]})),{selectorContext:c,onChange:d}=function(e){var t=(0,n.useRef)([]).current,r=(0,n.useRef)({editor:e}).current,i=(0,n.useCallback)((e=>{r.editor=e,t.forEach((t=>t(e)))}),[]);return{selectorContext:(0,n.useMemo)((()=>({getSlate:()=>r.editor,addEventListener:e=>(t.push(e),()=>{t.splice(t.indexOf(e),1)})})),[t,r]),onChange:i}}(t),p=(0,n.useCallback)((()=>{i&&i(t.children),l([t]),d(t)}),[i]);Rr.set(t,p),(0,n.useEffect)((()=>()=>{Rr.set(t,(()=>{})),s.current=!0}),[]);var[f,m]=(0,n.useState)(Un.isFocused(t));return(0,n.useEffect)((()=>{m(Un.isFocused(t))})),wr((()=>{var e=()=>m(Un.isFocused(t));return or?(document.addEventListener("focusin",e),document.addEventListener("focusout",e),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",e)}):(document.addEventListener("focus",e,!0),document.addEventListener("blur",e,!0),()=>{document.removeEventListener("focus",e,!0),document.removeEventListener("blur",e,!0)})}),[]),n.createElement(ti.Provider,{value:c},n.createElement(pn.Provider,{value:u},n.createElement(en.Provider,{value:t},n.createElement(ei.Provider,{value:f},r))))},ii=(e,t)=>{var r=(t.top+t.bottom)/2;return e.top<=r&&e.bottom>=r},oi=(e,t,r)=>{var n=Un.toDOMRange(e,t).getBoundingClientRect(),i=Un.toDOMRange(e,r).getBoundingClientRect();return ii(n,i)&&ii(i,n)},ai=e=>{var t=e,{apply:r,onChange:n,deleteBackward:i}=t;return Br.set(t,new WeakMap),t.deleteBackward=r=>{if("line"!==r)return i(r);if(e.selection&&gt.isCollapsed(e.selection)){var n=$e.above(e,{match:t=>$e.isBlock(e,t),at:e.selection});if(n){var[,o]=n,a=$e.range(e,o,e.selection.anchor),s=((e,t)=>{var r=$e.range(e,gt.end(t)),n=Array.from($e.positions(e,{at:t})),i=0,o=n.length,a=Math.floor(o/2);if(oi(e,$e.range(e,n[i]),r))return $e.range(e,n[i],r);if(n.length<2)return $e.range(e,n[n.length-1],r);for(;a!==n.length&&a!==i;)oi(e,$e.range(e,n[a]),r)?o=a:i=a,a=Math.floor((i+o)/2);return $e.range(e,n[o],r)})(t,a);gt.isCollapsed(s)||Ht.delete(e,{at:s})}}},t.apply=n=>{var i=[];switch(n.type){case"insert_text":case"remove_text":case"set_node":case"split_node":i.push(...si(t,n.path));break;case"set_selection":var o;null===(o=Lr.get(e))||void 0===o||o.unref(),Lr.delete(e);break;case"insert_node":case"remove_node":i.push(...si(t,ut.parent(n.path)));break;case"merge_node":var a=ut.previous(n.path);i.push(...si(t,a));break;case"move_node":var s=ut.common(ut.parent(n.path),ut.parent(n.newPath));i.push(...si(t,s))}for(var[u,l]of(r(n),i)){var[c]=$e.node(t,u);Pr.set(c,l)}},t.setFragmentData=e=>{var{selection:r}=t;if(r){var[n,i]=gt.edges(r),o=$e.void(t,{at:n.path}),a=$e.void(t,{at:i.path});if(!gt.isCollapsed(r)||o){var s=Un.toDOMRange(t,r),u=s.cloneContents(),l=u.childNodes[0];if(u.childNodes.forEach((e=>{e.textContent&&""!==e.textContent.trim()&&(l=e)})),a){var[c]=a,d=s.cloneRange(),p=Un.toDOMNode(t,c);d.setEndAfter(p),u=d.cloneContents()}if(o&&(l=u.querySelector("[data-slate-spacer]")),Array.from(u.querySelectorAll("[data-slate-zero-width]")).forEach((e=>{var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),yn(l)){var f=l.ownerDocument.createElement("span");f.style.whiteSpace="pre",f.appendChild(l),u.appendChild(f),l=f}var m=t.getFragment(),h=JSON.stringify(m),g=window.btoa(encodeURIComponent(h));l.setAttribute("data-slate-fragment",g),e.setData("application/x-slate-fragment",g);var v=u.ownerDocument.createElement("div");return v.appendChild(u),v.setAttribute("hidden","true"),u.ownerDocument.body.appendChild(v),e.setData("text/html",v.innerHTML),e.setData("text/plain",En(v)),u.ownerDocument.body.removeChild(v),e}}},t.insertData=e=>{t.insertFragmentData(e)||t.insertTextData(e)},t.insertFragmentData=e=>{var r=e.getData("application/x-slate-fragment")||Sn(e);if(r){var n=decodeURIComponent(window.atob(r)),i=JSON.parse(n);return t.insertFragment(i),!0}return!1},t.insertTextData=e=>{var r=e.getData("text/plain");if(r){var n=r.split(/\r\n|\r|\n/),i=!1;for(var o of n)i&&Ht.splitNodes(t,{always:!0}),t.insertText(o),i=!0;return!0}return!1},t.onChange=()=>{rr.unstable_batchedUpdates((()=>{var e=Rr.get(t);e&&e(),n()}))},t},si=(e,t)=>{var r=[];for(var[n,i]of $e.levels(e,{at:t})){var o=Un.findKey(e,n);r.push([i,o])}return r},ui=ur?e=>{var{autoFocus:t,decorate:r=Pn,onDOMBeforeInput:i,placeholder:o,readOnly:a=!1,renderElement:s,renderLeaf:u,renderPlaceholder:l=(e=>n.createElement(Mn,Object.assign({},e))),style:c={},as:d="div"}=e,p=ir(e,Xn),f=fn(),[m,h]=(0,n.useState)(!1),g=(0,n.useRef)(null),v=Qn(g);Nr.set(f,a);var b=(0,n.useMemo)((()=>({isComposing:!1,isUpdatingSelection:!1,latestElement:null})),[]),y=Jr(f);wr((()=>{var e;g.current&&(e=hn(g.current))?(xr.set(f,e),Or.set(f,g.current),Mr.set(f,g.current),Ar.set(g.current,f)):Mr.delete(f);try{var{selection:t}=f,r=Un.findDocumentOrShadowRoot(f).getSelection();if(b.isComposing||!r||!Un.isFocused(f))return;var n="None"!==r.type;if(!t&&!n)return;var i=Or.get(f),o=!1;if(i.contains(r.anchorNode)&&i.contains(r.focusNode)&&(o=!0),n&&o&&t){var a=Un.toSlateRange(f,r,{exactMatch:!0,suppressThrow:!0});if(a&&gt.equals(a,t))return}if(t&&!Un.hasRange(f,t))return void(f.selection=Un.toSlateRange(f,r,{exactMatch:!1,suppressThrow:!1}));var s=Un.toDOMNode(f,f);b.isUpdatingSelection=!0;var u=t&&Un.toDOMRange(f,t);if(u){gt.isBackward(t)?r.setBaseAndExtent(u.endContainer,u.endOffset,u.startContainer,u.startOffset):r.setBaseAndExtent(u.startContainer,u.startOffset,u.endContainer,u.endOffset);var l=u.startContainer.parentElement;l.getBoundingClientRect=u.getBoundingClientRect.bind(u),er(l,{scrollMode:"if-needed",boundary:s}),delete l.getBoundingClientRect}else r.removeAllRanges();setTimeout((()=>{b.isUpdatingSelection=!1}))}catch(c){b.isUpdatingSelection=!1}})),(0,n.useEffect)((()=>{g.current&&t&&g.current.focus()}),[t]);var w=(0,n.useCallback)(Vt()((()=>{try{if(!b.isComposing&&!b.isUpdatingSelection&&!v.isReconciling.current){var e=Un.findDocumentOrShadowRoot(f),{activeElement:t}=e,r=Un.toDOMNode(f,f),n=e.getSelection();if(t===r?(b.latestElement=t,kr.set(f,!0)):kr.delete(f),!n)return Ht.deselect(f);var{anchorNode:i,focusNode:o}=n,a=kn(f,i)||Tn(f,i),s=kn(f,o)||Tn(f,o);if(a&&s){var u=Un.toSlateRange(f,n,{exactMatch:!1,suppressThrow:!1});Ht.select(f,u)}else Ht.deselect(f)}}catch(l){}}),100),[a]),D=(0,n.useMemo)((()=>zt()(w,0)),[w]),E=(0,n.useCallback)((e=>{a||!kn(f,e.target)||Ln(e,i)||(D.flush(),v.onUserInput())}),[a,i]);wr((()=>{var e=g.current;return null==e||e.addEventListener("beforeinput",E),()=>null==e?void 0:e.removeEventListener("beforeinput",E)}),[y,i]),wr((()=>{var e=Un.getWindow(f);return e.document.addEventListener("selectionchange",D),()=>{e.document.removeEventListener("selectionchange",D)}}),[D]);var C=r([f,[]]);if(o&&1===f.children.length&&1===Array.from(it.texts(f)).length&&""===it.string(f)&&!m){var S=$e.start(f,[]);C.push({[Zr]:!0,placeholder:o,anchor:S,focus:S})}return n.createElement(cn.Provider,{value:a},n.createElement(mn.Provider,{value:r},n.createElement(d,Object.assign({key:y,role:a?void 0:"textbox"},p,{spellCheck:p.spellCheck,autoCorrect:p.autoCorrect,autoCapitalize:p.autoCapitalize,"data-slate-editor":!0,"data-slate-node":"value",contentEditable:!a||void 0,suppressContentEditableWarning:!0,ref:g,style:$n({position:"relative",outline:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},c),onCopy:(0,n.useCallback)((e=>{kn(f,e.target)&&!jn(e,p.onCopy)&&(e.preventDefault(),Un.setFragmentData(f,e.clipboardData,"copy"))}),[p.onCopy]),onCut:(0,n.useCallback)((e=>{if(!a&&kn(f,e.target)&&!jn(e,p.onCut)){e.preventDefault(),Un.setFragmentData(f,e.clipboardData,"cut");var{selection:t}=f;if(t)if(gt.isExpanded(t))$e.deleteFragment(f);else{var r=it.parent(f,t.anchor.path);$e.isVoid(f,r)&&Ht.delete(f)}}}),[a,p.onCut]),onFocus:(0,n.useCallback)((e=>{if(!a&&!b.isUpdatingSelection&&kn(f,e.target)&&!jn(e,p.onFocus)){var t=Un.findDocumentOrShadowRoot(f);b.latestElement=t.activeElement,kr.set(f,!0)}}),[a,p.onFocus]),onBlur:(0,n.useCallback)((e=>{if(!a&&!b.isUpdatingSelection&&kn(f,e.target)&&!jn(e,p.onBlur)){var t=Un.findDocumentOrShadowRoot(f);if(b.latestElement!==t.activeElement){var{relatedTarget:r}=e;if(!(r===Un.toDOMNode(f,f)||gn(r)&&r.hasAttribute("data-slate-spacer"))){if(null!=r&&vn(r)&&Un.hasDOMNode(f,r)){var n=Un.toSlateNode(f,r);if(Ve.isElement(n)&&!f.isVoid(n))return}kr.delete(f)}}}}),[a,p.onBlur]),onClick:(0,n.useCallback)((e=>{if(!a&&Nn(f,e.target)&&!jn(e,p.onClick)&&vn(e.target)){var t=Un.toSlateNode(f,e.target),r=Un.findPath(f,t);if($e.hasPath(f,r))if(it.get(f,r)===t){var n=$e.start(f,r),i=$e.end(f,r),o=$e.void(f,{at:n}),s=$e.void(f,{at:i});if(o&&s&&ut.equals(o[1],s[1])){var u=$e.range(f,n);Ht.select(f,u)}}}}),[a,p.onClick]),onCompositionEnd:(0,n.useCallback)((e=>{kn(f,e.target)&&!jn(e,p.onCompositionEnd)&&(D.flush(),setTimeout((()=>{b.isComposing&&h(!1),b.isComposing=!1,Tr.set(f,!1),jr.set(f,!0);var e=Fr.get(f)||[];if(e.length){Fr.set(f,[]);var{selection:t}=f;e.forEach((e=>{var r=e.text.insertText,n=Zn(f,t,e);Ht.setSelection(f,n),$e.insertText(f,r)}))}}),20))}),[p.onCompositionEnd]),onCompositionUpdate:(0,n.useCallback)((e=>{kn(f,e.target)&&!jn(e,p.onCompositionUpdate)&&(!b.isComposing&&h(!0),b.isComposing=!0,Tr.set(f,!0))}),[p.onCompositionUpdate]),onCompositionStart:(0,n.useCallback)((e=>{kn(f,e.target)&&!jn(e,p.onCompositionStart)&&(!b.isComposing&&h(!0),b.isComposing=!0,Tr.set(f,!0))}),[p.onCompositionStart]),onPaste:(0,n.useCallback)((e=>{e.clipboardData=(e=>{if(!e.getData("application/x-slate-fragment")){var t=Sn(e);if(t){var r=new DataTransfer;return e.types.forEach((t=>{r.setData(t,e.getData(t))})),r.setData("application/x-slate-fragment",t),r}}return e})(e.clipboardData),!kn(f,e.target)||jn(e,p.onPaste)||a||(e.preventDefault(),Un.insertData(f,e.clipboardData))}),[a,p.onPaste])}),nn({decorations:C,node:f,renderElement:s,renderPlaceholder:l,renderLeaf:u,selection:f.selection}))))}:e=>{var{autoFocus:t,decorate:r=Pn,onDOMBeforeInput:i,placeholder:o,readOnly:a=!1,renderElement:s,renderLeaf:u,renderPlaceholder:l=(e=>n.createElement(Mn,Object.assign({},e))),scrollSelectionIntoView:c=Bn,style:d={},as:p="div"}=e,f=ir(e,In),m=fn(),[h,g]=(0,n.useState)(!1),v=(0,n.useRef)(null),b=(0,n.useRef)([]);Nr.set(m,a);var y=(0,n.useMemo)((()=>({isComposing:!1,hasInsertPrefixInCompositon:!1,isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null})),[]);wr((()=>{var e;v.current&&(e=hn(v.current))?(xr.set(m,e),Or.set(m,v.current),Mr.set(m,v.current),Ar.set(v.current,m)):Mr.delete(m);var{selection:t}=m,r=Un.findDocumentOrShadowRoot(m).getSelection();if(!y.isComposing&&r&&Un.isFocused(m)){var n="None"!==r.type;if(t||n){var i=Or.get(m),o=!1;if(i.contains(r.anchorNode)&&i.contains(r.focusNode)&&(o=!0),n&&o&&t){var a=Un.toSlateRange(m,r,{exactMatch:!0,suppressThrow:!0});if(a&&gt.equals(a,t))return}if(!t||Un.hasRange(m,t)){y.isUpdatingSelection=!0;var s=t&&Un.toDOMRange(m,t);s?(gt.isBackward(t)?r.setBaseAndExtent(s.endContainer,s.endOffset,s.startContainer,s.startOffset):r.setBaseAndExtent(s.startContainer,s.startOffset,s.endContainer,s.endOffset),c(m,s)):r.removeAllRanges(),setTimeout((()=>{s&&lr&&Un.toDOMNode(m,m).focus();y.isUpdatingSelection=!1}))}else m.selection=Un.toSlateRange(m,r,{exactMatch:!1,suppressThrow:!1})}}})),(0,n.useEffect)((()=>{v.current&&t&&v.current.focus()}),[t]);var w=(0,n.useCallback)(Vt()((()=>{if(!y.isComposing&&!y.isUpdatingSelection&&!y.isDraggingInternally){var e=Un.findDocumentOrShadowRoot(m),{activeElement:t}=e,r=Un.toDOMNode(m,m),n=e.getSelection();if(t===r?(y.latestElement=t,kr.set(m,!0)):kr.delete(m),!n)return Ht.deselect(m);var{anchorNode:i,focusNode:o}=n,a=kn(m,i)||Tn(m,i),s=kn(m,o)||Tn(m,o);if(a&&s){var u=Un.toSlateRange(m,n,{exactMatch:!1,suppressThrow:!1});Ht.select(m,u)}}}),100),[a]),D=(0,n.useMemo)((()=>zt()(w,0)),[w]),E=(0,n.useCallback)((e=>{if(!a&&kn(m,e.target)&&!Ln(e,i)){var t;D.flush(),w.flush();var{selection:r}=m,{inputType:n}=e,o=e.dataTransfer||e.data||void 0;if("insertCompositionText"===n||"deleteCompositionText"===n)return;var s=!1;if("insertText"===n&&r&&gt.isCollapsed(r)&&e.data&&1===e.data.length&&/[a-z ]/i.test(e.data)&&0!==r.anchor.offset){s=!0,m.marks&&(s=!1);var{anchor:u}=r,l=$e.above(m,{at:u,match:e=>$e.isInline(m,e),mode:"highest"});if(l){var[,c]=l;$e.isEnd(m,r.anchor,c)&&(s=!1)}}if(s||e.preventDefault(),!n.startsWith("delete")||n.startsWith("deleteBy")){var[d]=e.getTargetRanges();if(d){var p=Un.toSlateRange(m,d,{exactMatch:!1,suppressThrow:!1});if(!r||!gt.equals(r,p)){var f=m.selection&&$e.rangeRef(m,m.selection);Ht.select(m,p),f&&Lr.set(m,f)}}}if(r&&gt.isExpanded(r)&&n.startsWith("delete")){var h=n.endsWith("Backward")?"backward":"forward";return void $e.deleteFragment(m,{direction:h})}switch(n){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":$e.deleteFragment(m);break;case"deleteContent":case"deleteContentForward":$e.deleteForward(m);break;case"deleteContentBackward":$e.deleteBackward(m);break;case"deleteEntireSoftLine":$e.deleteBackward(m,{unit:"line"}),$e.deleteForward(m,{unit:"line"});break;case"deleteHardLineBackward":$e.deleteBackward(m,{unit:"block"});break;case"deleteSoftLineBackward":$e.deleteBackward(m,{unit:"line"});break;case"deleteHardLineForward":$e.deleteForward(m,{unit:"block"});break;case"deleteSoftLineForward":$e.deleteForward(m,{unit:"line"});break;case"deleteWordBackward":$e.deleteBackward(m,{unit:"word"});break;case"deleteWordForward":$e.deleteForward(m,{unit:"word"});break;case"insertLineBreak":$e.insertSoftBreak(m);break;case"insertParagraph":$e.insertBreak(m);break;case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":var{selection:v}=m;v&&gt.isExpanded(v)&&$e.deleteFragment(m),"insertFromComposition"===n&&(y.isComposing&&g(!1),y.isComposing=!1),"DataTransfer"===(null==o?void 0:o.constructor.name)?Un.insertData(m,o):"string"==typeof o&&(s?b.current.push((()=>$e.insertText(m,o))):$e.insertText(m,o))}var E=null===(t=Lr.get(m))||void 0===t?void 0:t.unref();Lr.delete(m),!E||m.selection&&gt.equals(m.selection,E)||Ht.select(m,E)}}),[a,i]);wr((()=>(v.current&&yr&&v.current.addEventListener("beforeinput",E),()=>{v.current&&yr&&v.current.removeEventListener("beforeinput",E)})),[E]),wr((()=>{var e=Un.getWindow(m);return e.document.addEventListener("selectionchange",D),()=>{e.document.removeEventListener("selectionchange",D)}}),[D]);var C=[...it.nodes(m)].flatMap((e=>{var[t,n]=e;return r([t,n])}));if(o&&1===m.children.length&&1===Array.from(it.texts(m)).length&&""===it.string(m)&&!h){var S=$e.start(m,[]);C.push({[Zr]:!0,placeholder:o,anchor:S,focus:S})}return n.createElement(cn.Provider,{value:a},n.createElement(mn.Provider,{value:r},n.createElement(p,Object.assign({role:a?void 0:"textbox"},f,{spellCheck:!(!yr&&br)&&f.spellCheck,autoCorrect:yr||!br?f.autoCorrect:"false",autoCapitalize:yr||!br?f.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!a,zindex:-1,suppressContentEditableWarning:!0,ref:v,style:On({position:"relative",outline:"none",whiteSpace:"pre-wrap",wordWrap:"break-word"},d),onBeforeInput:(0,n.useCallback)((e=>{if(!yr&&!a&&!jn(e,f.onBeforeInput)&&kn(m,e.target)&&(e.preventDefault(),!y.isComposing)){var t=e.data;$e.insertText(m,t)}}),[a]),onInput:(0,n.useCallback)((e=>{for(var t of b.current)t();b.current=[]}),[]),onBlur:(0,n.useCallback)((e=>{if(!a&&!y.isUpdatingSelection&&kn(m,e.target)&&!jn(e,f.onBlur)){var t=Un.findDocumentOrShadowRoot(m);if(y.latestElement!==t.activeElement){var{relatedTarget:r}=e;if(!(r===Un.toDOMNode(m,m)||gn(r)&&r.hasAttribute("data-slate-spacer"))){if(null!=r&&vn(r)&&Un.hasDOMNode(m,r)){var n=Un.toSlateNode(m,r);if(Ve.isElement(n)&&!m.isVoid(n))return}if(cr){var i=t.getSelection();null==i||i.removeAllRanges()}kr.delete(m)}}}}),[a,f.onBlur]),onClick:(0,n.useCallback)((e=>{if(Nn(m,e.target)&&!jn(e,f.onClick)&&vn(e.target)){var t=Un.toSlateNode(m,e.target),r=Un.findPath(m,t);if(3===e.detail){var n=$e.start(m,[r[0]]),i=$e.end(m,[r[0]]),o=$e.range(m,n,i);return void Ht.select(m,o)}if(a)return;if($e.hasPath(m,r))if(it.get(m,r)===t){var s=$e.start(m,r),u=$e.end(m,r),l=$e.void(m,{at:s}),c=$e.void(m,{at:u});if(l&&c&&ut.equals(l[1],c[1])){var d=$e.range(m,s);Ht.select(m,d)}}}}),[a,f.onClick]),onCompositionEnd:(0,n.useCallback)((e=>{if(kn(m,e.target)&&!jn(e,f.onCompositionEnd)&&(y.isComposing&&g(!1),y.isComposing=!1,cr||mr||ar||hr||vr||gr||!e.data||$e.insertText(m,e.data),m.selection&&gt.isCollapsed(m.selection))){var t=m.selection.anchor.path,r=it.leaf(m,t);y.hasInsertPrefixInCompositon&&(y.hasInsertPrefixInCompositon=!1,$e.withoutNormalizing(m,(()=>{var e=r.text.replace(/^\uFEFF/,"");Ht.delete(m,{distance:r.text.length,reverse:!0}),$e.insertText(m,e)})))}}),[f.onCompositionEnd]),onCompositionUpdate:(0,n.useCallback)((e=>{kn(m,e.target)&&!jn(e,f.onCompositionUpdate)&&(!y.isComposing&&g(!0),y.isComposing=!0)}),[f.onCompositionUpdate]),onCompositionStart:(0,n.useCallback)((e=>{if(kn(m,e.target)&&!jn(e,f.onCompositionStart)){var{selection:t,marks:r}=m;if(t){if(gt.isExpanded(t))return void $e.deleteFragment(m);var n=$e.above(m,{match:e=>$e.isInline(m,e),mode:"highest"});if(n){var[,i]=n;if($e.isEnd(m,t.anchor,i)){var o=$e.after(m,i);Ht.setSelection(m,{anchor:o,focus:o})}}r&&(y.hasInsertPrefixInCompositon=!0,Ht.insertNodes(m,On({text:"\ufeff"},r),{select:!0}))}}}),[f.onCompositionStart]),onCopy:(0,n.useCallback)((e=>{kn(m,e.target)&&!jn(e,f.onCopy)&&(e.preventDefault(),Un.setFragmentData(m,e.clipboardData,"copy"))}),[f.onCopy]),onCut:(0,n.useCallback)((e=>{if(!a&&kn(m,e.target)&&!jn(e,f.onCut)){e.preventDefault(),Un.setFragmentData(m,e.clipboardData,"cut");var{selection:t}=m;if(t)if(gt.isExpanded(t))$e.deleteFragment(m);else{var r=it.parent(m,t.anchor.path);$e.isVoid(m,r)&&Ht.delete(m)}}}),[a,f.onCut]),onDragOver:(0,n.useCallback)((e=>{if(Nn(m,e.target)&&!jn(e,f.onDragOver)){var t=Un.toSlateNode(m,e.target);$e.isVoid(m,t)&&e.preventDefault()}}),[f.onDragOver]),onDragStart:(0,n.useCallback)((e=>{if(!a&&Nn(m,e.target)&&!jn(e,f.onDragStart)){var t=Un.toSlateNode(m,e.target),r=Un.findPath(m,t);if($e.isVoid(m,t)||$e.void(m,{at:r,voids:!0})){var n=$e.range(m,r);Ht.select(m,n)}y.isDraggingInternally=!0,Un.setFragmentData(m,e.dataTransfer,"drag")}}),[a,f.onDragStart]),onDrop:(0,n.useCallback)((e=>{if(!a&&Nn(m,e.target)&&!jn(e,f.onDrop)){e.preventDefault();var t=m.selection,r=Un.findEventRange(m,e),n=e.dataTransfer;Ht.select(m,r),y.isDraggingInternally&&(!t||gt.equals(t,r)||$e.void(m,{at:r,voids:!0})||Ht.delete(m,{at:t})),Un.insertData(m,n),Un.isFocused(m)||Un.focus(m)}y.isDraggingInternally=!1}),[a,f.onDrop]),onDragEnd:(0,n.useCallback)((e=>{!a&&y.isDraggingInternally&&f.onDragEnd&&Nn(m,e.target)&&f.onDragEnd(e),y.isDraggingInternally=!1}),[a,f.onDragEnd]),onFocus:(0,n.useCallback)((e=>{if(!a&&!y.isUpdatingSelection&&kn(m,e.target)&&!jn(e,f.onFocus)){var t=Un.toDOMNode(m,m),r=Un.findDocumentOrShadowRoot(m);if(y.latestElement=r.activeElement,lr&&e.target!==t)return void t.focus();kr.set(m,!0)}}),[a,f.onFocus]),onKeyDown:(0,n.useCallback)((e=>{if(!a&&kn(m,e.target)&&!jn(e,f.onKeyDown)&&!y.isComposing){var{nativeEvent:t}=e,{selection:r}=m,n=m.children[null!==r?r.focus.path[0]:0],i="rtl"===Ut()(it.string(n));if(ln.isRedo(t)){e.preventDefault();var o=m;return void("function"==typeof o.redo&&o.redo())}if(ln.isUndo(t)){e.preventDefault();var s=m;return void("function"==typeof s.undo&&s.undo())}if(ln.isMoveLineBackward(t))return e.preventDefault(),void Ht.move(m,{unit:"line",reverse:!0});if(ln.isMoveLineForward(t))return e.preventDefault(),void Ht.move(m,{unit:"line"});if(ln.isExtendLineBackward(t))return e.preventDefault(),void Ht.move(m,{unit:"line",edge:"focus",reverse:!0});if(ln.isExtendLineForward(t))return e.preventDefault(),void Ht.move(m,{unit:"line",edge:"focus"});if(ln.isMoveBackward(t))return e.preventDefault(),void(r&&gt.isCollapsed(r)?Ht.move(m,{reverse:!i}):Ht.collapse(m,{edge:"start"}));if(ln.isMoveForward(t))return e.preventDefault(),void(r&&gt.isCollapsed(r)?Ht.move(m,{reverse:i}):Ht.collapse(m,{edge:"end"}));if(ln.isMoveWordBackward(t))return e.preventDefault(),r&&gt.isExpanded(r)&&Ht.collapse(m,{edge:"focus"}),void Ht.move(m,{unit:"word",reverse:!i});if(ln.isMoveWordForward(t))return e.preventDefault(),r&&gt.isExpanded(r)&&Ht.collapse(m,{edge:"focus"}),void Ht.move(m,{unit:"word",reverse:i});if(yr){if((pr||cr)&&r&&(ln.isDeleteBackward(t)||ln.isDeleteForward(t))&&gt.isCollapsed(r)){var u=it.parent(m,r.anchor.path);if(Ve.isElement(u)&&$e.isVoid(m,u)&&$e.isInline(m,u))return e.preventDefault(),void $e.deleteBackward(m,{unit:"block"})}}else{if(ln.isBold(t)||ln.isItalic(t)||ln.isTransposeCharacter(t))return void e.preventDefault();if(ln.isSoftBreak(t))return e.preventDefault(),void $e.insertSoftBreak(m);if(ln.isSplitBlock(t))return e.preventDefault(),void $e.insertBreak(m);if(ln.isDeleteBackward(t))return e.preventDefault(),void(r&&gt.isExpanded(r)?$e.deleteFragment(m,{direction:"backward"}):$e.deleteBackward(m));if(ln.isDeleteForward(t))return e.preventDefault(),void(r&&gt.isExpanded(r)?$e.deleteFragment(m,{direction:"forward"}):$e.deleteForward(m));if(ln.isDeleteLineBackward(t))return e.preventDefault(),void(r&&gt.isExpanded(r)?$e.deleteFragment(m,{direction:"backward"}):$e.deleteBackward(m,{unit:"line"}));if(ln.isDeleteLineForward(t))return e.preventDefault(),void(r&&gt.isExpanded(r)?$e.deleteFragment(m,{direction:"forward"}):$e.deleteForward(m,{unit:"line"}));if(ln.isDeleteWordBackward(t))return e.preventDefault(),void(r&&gt.isExpanded(r)?$e.deleteFragment(m,{direction:"backward"}):$e.deleteBackward(m,{unit:"word"}));if(ln.isDeleteWordForward(t))return e.preventDefault(),void(r&&gt.isExpanded(r)?$e.deleteFragment(m,{direction:"forward"}):$e.deleteForward(m,{unit:"word"}))}}}),[a,f.onKeyDown]),onPaste:(0,n.useCallback)((e=>{a||!kn(m,e.target)||jn(e,f.onPaste)||yr&&!(e=>e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length)(e.nativeEvent)||(e.preventDefault(),Un.insertData(m,e.clipboardData))}),[a,f.onPaste])}),n.createElement(An,{decorations:C,node:m,renderElement:s,renderPlaceholder:l,renderLeaf:u,selection:m.selection}))))},li={isHistory:e=>o(e)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||st.isOperationList(e.redos[0]))&&(0===e.undos.length||st.isOperationList(e.undos[0]))},ci=(new WeakMap,new WeakMap),di=new WeakMap,pi={isHistoryEditor:e=>li.isHistory(e.history)&&$e.isEditor(e),isMerging:e=>di.get(e),isSaving:e=>ci.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var r=pi.isMerging(e);di.set(e,!1),t(),di.set(e,r)},withoutSaving(e,t){var r=pi.isSaving(e);ci.set(e,!1),t(),ci.set(e,r)}},fi=(e,t)=>"set_selection"===e.type||(!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!ut.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!ut.equals(e.path,t.path))),mi=(e,t)=>"set_selection"!==e.type||null!=e.properties&&null!=e.newProperties,hi=(e,t)=>!(!t||"set_selection"!==e.type||"set_selection"!==t.type),gi=e=>"set_selection"!==e.type,vi=r(59905),bi=r(59612),yi=r(34739);r(33130),r(19985),r(193),r(38472);function wi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Di=new WeakMap,Ei=new WeakMap;class Ci{}class Si extends Ci{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();var{offset:t,path:r}=e;this.offset=t,this.path=r}}class Ii extends Ci{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super();var{offset:t,path:r}=e;this.offset=t,this.path=r}}var xi=e=>Ei.get(e);function Oi(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 Ai(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Oi(Object(r),!0).forEach((function(t){wi(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Mi=new WeakSet,Pi=e=>{var t=[],r=e=>{if(null!=e){var n=t[t.length-1];if("string"==typeof e){var i={text:e};Mi.add(i),e=i}if(Ct.isText(e)){var o=e;Ct.isText(n)&&Mi.has(n)&&Mi.has(o)&&Ct.equals(n,o,{loose:!0})?n.text+=o.text:t.push(o)}else if(Ve.isElement(e))t.push(e);else{if(!(e instanceof Ci))throw new Error("Unexpected hyperscript child object: ".concat(e));var a=t[t.length-1];Ct.isText(a)||(r(""),a=t[t.length-1]),e instanceof Si?((e,t)=>{var r=e.text.length;Di.set(e,[r,t])})(a,e):e instanceof Ii&&((e,t)=>{var r=e.text.length;Ei.set(e,[r,t])})(a,e)}}};for(var n of e.flat(1/0))r(n);return t};function Bi(e,t,r){return Ai(Ai({},t),{},{children:Pi(r)})}function Ni(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 ki(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ni(Object(r),!0).forEach((function(t){wi(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ni(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ti,ji={anchor:function(e,t,r){return new Si(t)},cursor:function(e,t,r){return[new Si(t),new Ii(t)]},editor:(Ti=ge,(e,t,r)=>{var n,i=[];for(var o of r)gt.isRange(o)?n=o:i.push(o);var a,s=Pi(i),u={},l=Ti();for(var[c,d]of(Object.assign(l,t),l.children=s,it.texts(l))){var p=(a=c,Di.get(a)),f=xi(c);if(null!=p){var[m]=p;u.anchor={path:d,offset:m}}if(null!=f){var[h]=f;u.focus={path:d,offset:h}}}if(u.anchor&&!u.focus)throw new Error("Slate hyperscript ranges must have both `<anchor />` and `<focus />` defined if one is defined, but you only defined `<anchor />`. For collapsed selections, use `<cursor />` instead.");if(!u.anchor&&u.focus)throw new Error("Slate hyperscript ranges must have both `<anchor />` and `<focus />` defined if one is defined, but you only defined `<focus />`. For collapsed selections, use `<cursor />` instead.");return null!=n?l.selection=n:gt.isRange(u)&&(l.selection=u),l}),element:Bi,focus:function(e,t,r){return new Ii(t)},fragment:function(e,t,r){return Pi(r)},selection:function(e,t,r){var n=r.find((e=>e instanceof Si)),i=r.find((e=>e instanceof Ii));if(!n||null==n.offset||null==n.path)throw new Error("The <selection> hyperscript tag must have an <anchor> tag as a child with `path` and `offset` attributes defined.");if(!i||null==i.offset||null==i.path)throw new Error("The <selection> hyperscript tag must have a <focus> tag as a child with `path` and `offset` attributes defined.");return Ai({anchor:{offset:n.offset,path:n.path},focus:{offset:i.offset,path:i.path}},t)},text:function(e,t,r){var n=Pi(r);if(n.length>1)throw new Error("The <text> hyperscript tag must only contain a single node's worth of children.");var[i]=n;if(null==i&&(i={text:""}),!Ct.isText(i))throw new Error("\n The <text> hyperscript tag can only contain text content as children.");return Mi.delete(i),Object.assign(i,t),i}},Li=e=>function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];var s=e[t];if(!s)throw new Error("No hyperscript creator found for tag: <".concat(t,">"));null==r&&(r={}),o(r)||(i=[r].concat(i),r={});var u=s(t,r,i=i.filter((e=>Boolean(e))).flat());return u},Fi=e=>{var t={},r=function(r){var n=e[r];if("object"!=typeof n)throw new Error("Properties specified for a hyperscript shorthand should be an object, but for the custom element <".concat(r,"> tag you passed: ").concat(n));t[r]=(e,t,r)=>Bi(0,ki(ki({},n),t),r)};for(var n in e)r(n);return t},Ri=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{elements:t={}}=e,r=Fi(t),n=ki(ki(ki({},ji),r),e.creators),i=Li(n);return i}(),_i=r(43613),Zi=r.n(_i),Hi={A:e=>({type:"link",url:e.getAttribute("href"),newTab:"_blank"===e.getAttribute("target"),noFollow:!(!e.getAttribute("rel")||!e.getAttribute("rel").includes("nofollow")),sponsored:!(!e.getAttribute("rel")||!e.getAttribute("rel").includes("sponsored"))}),P:()=>({type:"paragraph"}),"WPRM-CODE":e=>({type:"code"}),"WPRM-TEMPERATURE":e=>({type:"temperature",icon:e.getAttribute("icon"),unit:e.getAttribute("unit"),help:e.getAttribute("help")})},Wi={EM:()=>({italic:!0}),I:()=>({italic:!0}),STRONG:()=>({bold:!0}),B:()=>({bold:!0}),U:()=>({underline:!0}),SUB:()=>({subscript:!0}),SUP:()=>({superscript:!0})},Ui=function e(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(3===t.nodeType)return t.textContent.replace(/\r?\n|\r/g,"");if(1!==t.nodeType)return null;if("BR"===t.nodeName)return"";var{nodeName:n}=t,i=t;"PRE"===n&&t.childNodes[0]&&"CODE"===t.childNodes[0].nodeName&&(i=t.childNodes[0]);var o=Array.from(i.childNodes).map((t=>e(t,r))).reduce(((e,t)=>e.concat(t)),[]);if("BODY"===t.nodeName)return Ri("fragment",{},o);if(r&&"P"===n)return o;if(Hi[n]){var a=Hi[n](t);"A"===n&&t.hasAttribute("data-eafl-id")&&(a={type:"affiliate-link",url:t.getAttribute("href"),id:parseInt(t.getAttribute("data-eafl-id"))});var s=Ri("element",a,o);return"WPRM-CODE"===n&&(s.children=[{text:t.innerHTML}]),0===s.children.length&&(s.children=[{text:""}]),s}if(Wi[n]){var u=Wi[n](t);return(o=o.map((e=>"string"==typeof e||Ct.isText(e)?e:e.hasOwnProperty("type")&&"link"===e.type&&(console.log("Information Lost",e),e.hasOwnProperty("children")&&1===e.children.length&&e.children[0].hasOwnProperty("text"))?e.children[0].text:""))).map((e=>Ri("text",u,e)))}return o},Gi=e=>{if(Ct.isText(e)){var t=Zi()(e.text);return e.bold&&(t="<strong>".concat(t,"</strong>")),e.italic&&(t="<em>".concat(t,"</em>")),e.underline&&(t="<u>".concat(t,"</u>")),e.subscript&&(t="<sub>".concat(t,"</sub>")),e.superscript&&(t="<sup>".concat(t,"</sup>")),t}var r=e.children.map((e=>Gi(e))).join("");switch(e.type){case"paragraph":return"<p>".concat(r,"</p>");case"link":var n=[];return e.noFollow&&n.push("nofollow"),e.sponsored&&n.push("sponsored"),'<a href="'.concat(Zi()(e.url),'"').concat(e.newTab?' target="_blank"':"").concat(n.length>0?' rel="'.concat(n.join(" "),'"'):"",">").concat(r,"</a>");case"affiliate-link":return'<a href="'.concat(Zi()(e.url),'" data-eafl-id="').concat(Zi()(e.id),'" class="eafl-link">').concat(r,"</a>");case"code":return"<wprm-code>".concat(r,"</wprm-code>");case"temperature":var i=e.help;return i=(i=(i=i.replace(/"/gm,"&quot;")).replace(/\]/gm,"&#93;")).replace(/>/gm,"&gt;"),'<wprm-temperature icon="'.concat(e.icon,'" unit="').concat(e.unit,'" help="').concat(i,'">').concat(r,"</wprm-temperature>");default:return r}},zi=r(26612),qi=r(52082),Vi=e=>{var t=document.getElementById("wprm-admin-modal-toolbar-container");return t?rr.createPortal(n.createElement("div",{className:"wprm-admin-modal-toolbar",onMouseDown:e=>{e.preventDefault()}},e.children),t):null},Ji=()=>{if(!window.hasOwnProperty("EAFL_Modal"))return null;var e=fn(),[t]=$e.nodes(e,{match:e=>"affiliate-link"===e.type}),r=!!t;return n.createElement(n.Fragment,null,n.createElement("span",{className:"wprm-admin-modal-toolbar-button".concat(r?" wprm-admin-modal-toolbar-button-active":""),onMouseDown:n=>{n.preventDefault();var{selection:i}=e,o=i&&gt.isCollapsed(i),a="";if(o||(window.getSelection?a=window.getSelection().toString():document.selection&&"Control"!=document.selection.type&&(a=document.selection.createRange().text)),r){var s=t[0];EAFL_Modal.open("edit",{linkId:s.id,saveCallback:r=>{s.url!==r.url&&((e,t,r,n)=>{var i=t[0],o=t[1],a={[r]:i[r]},s={[r]:n};e.apply({type:"set_node",path:o,properties:a,newProperties:s})})(e,t,"url",r.url)}})}else EAFL_Modal.open("insert",{insertCallback:(t,r)=>{r||(r="affiliate link");var n={type:"affiliate-link",children:o?[{text:r}]:[],url:t.url,id:t.id};o?Ht.insertNodes(e,n):(Ht.select(e,i),Ht.wrapNodes(e,n,{split:!0}),Ht.collapse(e,{edge:"end"}))},selectedText:a})}},n.createElement(zi.Z,{type:"eafl-link",title:r?(0,qi.S)("Edit Affiliate Link"):(0,qi.S)("Add Affiliate Link")})),r&&n.createElement("span",{className:"wprm-admin-modal-toolbar-button wprm-admin-modal-toolbar-button-active",onMouseDown:t=>{t.preventDefault(),Ht.unwrapNodes(e,{match:e=>"affiliate-link"===e.type})}},n.createElement(zi.Z,{type:"eafl-unlink",title:(0,qi.S)("Remove Affiliate Link")})))},Yi=e=>{var t=fn(),r=((e,t)=>{var[r]=$e.nodes(e,{match:e=>e.type===t});return!!r})(t,e.type);return n.createElement(n.Fragment,null,r?n.createElement("span",{className:"wprm-admin-modal-toolbar-button wprm-admin-modal-toolbar-button-active",onMouseDown:r=>{r.preventDefault(),Ht.unwrapNodes(t,{match:t=>t.type===e.type})}},e.IconRemove()):n.createElement("span",{className:"wprm-admin-modal-toolbar-button",onMouseDown:r=>{r.preventDefault();var{selection:n}=t,i=n&&gt.isCollapsed(n),o=!0;if("link"===e.type&&(o=window.prompt((0,qi.S)("Enter the URL of the link:"))),"code"===e.type&&i&&(o=window.prompt((0,qi.S)("HTML or Shortcode:"))),"temperature"===e.type&&(i||(Ht.collapse(t,{edge:"end"}),i=!0),o=window.prompt((0,qi.S)("Temperature value (e.g. 350):"))),o){var a={type:e.type,children:i?[{text:""}]:[]};switch(e.type){case"link":a.url=o,i&&(a.children=[{text:o}]);break;case"code":i&&(a.children=[{text:o}]);break;case"temperature":a.icon="",a.unit=wprm_admin.temperature.default_unit,a.help="",a.children=[{text:o}];break;default:i&&(a.children=[{text:e.type}])}i?Ht.insertNodes(t,a):(Ht.wrapNodes(t,a,{split:!0}),Ht.collapse(t,{edge:"end"}))}}},e.IconAdd()))},Qi=r(95075),Xi=e=>{var t=fn();return n.createElement("span",{className:"wprm-admin-modal-toolbar-button",onMouseDown:r=>{r.preventDefault(),$e.insertText(t,e.character)}},n.createElement(Qi.Z,{content:e.title},n.createElement("span",{className:"wprm-admin-modal-toolbar-button-character"},e.character)))},Ki=e=>{var t=fn(),r=e.isMarkActive(t,e.type);return n.createElement("span",{className:"wprm-admin-modal-toolbar-button".concat(r?" wprm-admin-modal-toolbar-button-active":""),onMouseDown:r=>{r.preventDefault(),e.toggleMark(t,e.type)}},n.createElement(zi.Z,{type:e.type,title:e.title}))};function $i(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 eo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$i(Object(r),!0).forEach((function(t){to(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function to(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ro=e=>{var t=fn();return n.createElement("span",{className:"wprm-admin-modal-toolbar-button",onMouseDown:r=>{r.preventDefault();var n=e.hasOwnProperty("before")?e.before:"",i=e.hasOwnProperty("after")?e.after:"",{selection:o}=t;if(o&&gt.isCollapsed(o))t.insertText("".concat(n).concat(i)),Ht.move(t,{distance:i.length,reverse:!0});else{var[a,s]=gt.edges(o);JSON.stringify(a.path)===JSON.stringify(s.path)&&(s=eo(eo({},s),{},{offset:s.offset+n.length})),Ht.insertText(t,n,{at:a}),Ht.insertText(t,i,{at:s}),Ht.collapse(t,{edge:"end"})}}},e.Icon())},no=e=>n.createElement("span",{className:"wprm-admin-modal-toolbar-spacer"}),io=()=>{var e=fn(),[t]=$e.nodes(e,{match:e=>"affiliate-link"===e.type});if(!t)return null;var r=t[0];return n.createElement("div",{className:"wprm-admin-modal-toolbar-link"},n.createElement(zi.Z,{type:"eafl-link"}),n.createElement("span",null,"#",r.id),n.createElement(no,null),n.createElement(zi.Z,{type:"link"}),n.createElement("span",null,r.url))},oo=(e,t)=>{var r=t[0],n=window.prompt((0,qi.S)("Enter the URL of the link:"),r.url);n?so(e,t,"url",n):""===n&&Ht.unwrapNodes(e,{match:e=>"link"===e.type})},ao=(e,t,r)=>{var n=t[0],i=!!n.hasOwnProperty(r)&&n[r];so(e,t,r,!i)},so=(e,t,r,n)=>{var i=t[0],o=t[1],a={[r]:i[r]},s={[r]:n};e.apply({type:"set_node",path:o,properties:a,newProperties:s})},uo=e=>{var t=fn(),[r]=$e.nodes(t,{match:e=>"link"===e.type});if(!r)return null;var i=r[0];return n.createElement("div",{className:"wprm-admin-modal-toolbar-link"},n.createElement(zi.Z,{type:"link",onClick:()=>oo(t,r)}),n.createElement("span",{className:"wprm-admin-modal-toolbar-link-value",onMouseDown:()=>oo(t,r)},i.url),n.createElement(no,null),n.createElement(zi.Z,{type:i.newTab?"checkbox-checked":"checkbox-empty",onClick:()=>ao(t,r,"newTab")}),n.createElement("span",{className:"wprm-admin-modal-toolbar-link-value",onMouseDown:()=>ao(t,r,"newTab")},(0,qi.S)("Open in new tab")),n.createElement(no,null),n.createElement(zi.Z,{type:i.noFollow?"checkbox-checked":"checkbox-empty",onClick:()=>ao(t,r,"noFollow")}),n.createElement("span",{className:"wprm-admin-modal-toolbar-link-value",onMouseDown:()=>ao(t,r,"noFollow")},(0,qi.S)("Use nofollow")),n.createElement(no,null),n.createElement(zi.Z,{type:i.sponsored?"checkbox-checked":"checkbox-empty",onClick:()=>ao(t,r,"sponsored")}),n.createElement("span",{className:"wprm-admin-modal-toolbar-link-value",onMouseDown:()=>ao(t,r,"sponsored")},(0,qi.S)("Use sponsored")))},lo=(e,t,r,n)=>{var i=t[0],o=t[1],a={[r]:i[r]},s={[r]:n};e.apply({type:"set_node",path:o,properties:a,newProperties:s})},co=e=>{var t=fn(),[r]=$e.nodes(t,{match:e=>"temperature"===e.type});if(!r)return null;var i=r[0];return n.createElement("div",{className:"wprm-admin-modal-toolbar-temperature"},n.createElement("span",{className:"wprm-admin-modal-toolbar-temperature-label"},"Icon:"),Object.keys(wprm_admin.temperature.icons).map(((e,o)=>{var a=!!wprm_admin.temperature.icons.hasOwnProperty(e)&&wprm_admin.temperature.icons[e];return a?n.createElement("img",{src:a.url,key:o,className:"wprm-admin-modal-toolbar-temperature-icon".concat(i.icon===e?" wprm-admin-modal-toolbar-temperature-icon-selected":""),onClick:()=>{i.icon===e?lo(t,r,"icon",""):lo(t,r,"icon",e)}}):null})),n.createElement(no,null),n.createElement("span",{className:"wprm-admin-modal-toolbar-temperature-label"},"Unit:"),n.createElement(zi.Z,{type:"F"===i.unit?"checkbox-checked":"checkbox-empty",onClick:()=>lo(t,r,"unit","F")}),n.createElement("span",{className:"wprm-admin-modal-toolbar-temperature-value",onMouseDown:()=>lo(t,r,"unit","F")}," °F"),n.createElement(no,null),n.createElement(zi.Z,{type:"C"===i.unit?"checkbox-checked":"checkbox-empty",onClick:()=>lo(t,r,"unit","C")}),n.createElement("span",{className:"wprm-admin-modal-toolbar-temperature-value",onMouseDown:()=>lo(t,r,"unit","C")}," °C"),n.createElement(no,null),n.createElement("span",{className:"wprm-admin-modal-toolbar-temperature-label"},"Tooltip:"),n.createElement("span",{className:"wprm-admin-modal-toolbar-temperature-value",onMouseDown:()=>{var e=window.prompt((0,qi.S)("Temperature tooltip (e.g. Fan Assisted Heating):"),i.help);lo(t,r,"help",e||"")}},i.help?i.help:(0,qi.S)("Click to set an optional tooltip")))},po=(r(23528),r(2778)),fo=r.n(po),mo=r(99237),ho=r(34133);class go extends n.Component{constructor(e){super(e),window.wprm_admin_modal_suggestions=window.wprm_admin_modal_suggestions||{},window.wprm_admin_modal_suggestions.hasOwnProperty(e.type)||(window.wprm_admin_modal_suggestions[e.type]={}),this.state={search:"",suggestions:[],loading:!1}}componentDidMount(){this.updateSuggestions(this.props.value)}componentDidUpdate(){this.props.value!==this.state.search&&this.updateSuggestions(this.props.value)}updateSuggestions(e){window.wprm_admin_modal_suggestions[this.props.type].hasOwnProperty(e)?this.setState({suggestions:window.wprm_admin_modal_suggestions[this.props.type][e],search:e}):(this.setState({loading:!0,search:e}),mo.Z.modal.getSuggestions({type:this.props.type,search:e}).then((t=>{t&&(window.wprm_admin_modal_suggestions[this.props.type][e]=t.suggestions,this.setState({suggestions:t.suggestions,loading:!1}))})))}render(){return n.createElement("div",{className:"wprm-admin-modal-toolbar-suggest"},this.state.loading||0!==this.state.suggestions.length?n.createElement(n.Fragment,null,n.createElement("strong",null,(0,qi.S)("Suggestions:")),this.state.loading?n.createElement(ho.Z,null):n.createElement(n.Fragment,null,this.state.suggestions.map(((e,t)=>n.createElement("span",{className:"wprm-admin-modal-toolbar-suggestion",onMouseDown:t=>{t.preventDefault(),this.props.onSelect(e.name)},key:t},n.createElement("span",{className:"wprm-admin-modal-toolbar-suggestion-text"},fo().decode(e.name)," (",e.count,")")))))):n.createElement("strong",null,(0,qi.S)("No suggestions found.")))}}function vo(){return vo=Object.assign?Object.assign.bind():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},vo.apply(this,arguments)}var bo=e=>{var t,r="";if("ingredient"!==e.type&&"equipment"!==e.type||(t=fn(),r=Gi(t)),!(0,n.useContext)(ei))return null;var i={visibility:"hidden"},o=!1,a=!1;if("none"===e.type)return null;switch(e.type){case"no-styling":o=!0;break;case"no-link":case"equipment":case"ingredient":a=!0}return n.createElement(Vi,null,n.createElement(io,null),n.createElement(uo,null),n.createElement(co,null),("ingredient"===e.type||"equipment"===e.type)&&n.createElement(go,{value:r,onSelect:e=>{Ht.deselect(t),Ht.select(t,{path:[0,0],offset:0}),Ht.move(t,{unit:"line",edge:"end"}),Ht.delete(t),$e.insertText(t,e)},type:e.type}),n.createElement("div",{className:"wprm-admin-modal-toolbar-buttons"},n.createElement("span",{style:o?i:null},n.createElement(Ki,vo({},e,{type:"bold",title:(0,qi.S)("Bold")})),n.createElement(Ki,vo({},e,{type:"italic",title:(0,qi.S)("Italic")})),n.createElement(Ki,vo({},e,{type:"underline",title:(0,qi.S)("Underline")})),n.createElement(no,null),n.createElement(Ki,vo({},e,{type:"subscript",title:(0,qi.S)("Subscript")})),n.createElement(Ki,vo({},e,{type:"superscript",title:(0,qi.S)("Superscript")}))),n.createElement(no,null),n.createElement("span",{style:a?i:null},n.createElement(Yi,{type:"link",IconAdd:()=>n.createElement(zi.Z,{type:"link",title:(0,qi.S)("Add Link")}),IconRemove:()=>n.createElement(zi.Z,{type:"unlink",title:(0,qi.S)("Remove Link")})}),n.createElement(Ji,null)),n.createElement(no,null),n.createElement(Yi,{type:"code",IconAdd:()=>n.createElement(zi.Z,{type:"code",title:(0,qi.S)("Add HTML or Shortcode")}),IconRemove:()=>n.createElement(zi.Z,{type:"code",title:(0,qi.S)("Remove HTML or Shortcode")})}),"roundup"!==e.type&&n.createElement(n.Fragment,null,n.createElement(ro,{before:"[adjustable]",after:"[/adjustable]",Icon:()=>n.createElement(zi.Z,{type:"adjustable",title:(0,qi.S)("Add Adjustable Shortcode")})}),n.createElement(ro,{before:"[timer minutes=0]",after:"[/timer]",Icon:()=>n.createElement(zi.Z,{type:"clock",title:(0,qi.S)("Add Timer Shortcode")})}),n.createElement(Yi,{type:"temperature",IconAdd:()=>n.createElement(zi.Z,{type:"temperature",title:(0,qi.S)("Add Temperature")}),IconRemove:()=>n.createElement(zi.Z,{type:"temperature",title:(0,qi.S)("Remove Temperature")})}),n.createElement(no,null),n.createElement(Xi,{character:"½"}),n.createElement(Xi,{character:"⅓"}),n.createElement(Xi,{character:"⅔"}),n.createElement(Xi,{character:"¼"}),n.createElement(Xi,{character:"¾"}),n.createElement(Xi,{character:"⅕"}),n.createElement(Xi,{character:"⅖"}),n.createElement(Xi,{character:"⅗"}),n.createElement(Xi,{character:"⅘"}),n.createElement(Xi,{character:"⅙"}),n.createElement(Xi,{character:"⅚"}),n.createElement(Xi,{character:"⅐"}),n.createElement(Xi,{character:"⅛"}),n.createElement(Xi,{character:"⅜"}),n.createElement(Xi,{character:"⅝"}),n.createElement(Xi,{character:"⅞"}),n.createElement(no,null),n.createElement(Xi,{character:"°"}),n.createElement(Xi,{character:"Ø"}))))};function yo(){return yo=Object.assign?Object.assign.bind():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},yo.apply(this,arguments)}var wo=e=>{var{attributes:t,children:r,element:i}=e;switch(i.type){case"link":var o=[];return i.noFollow&&o.push("nofollow"),i.sponsored&&o.push("sponsored"),n.createElement("a",yo({href:i.url,target:i.newTab?"_blank":null,rel:o.length>0?o.join(" "):null},t),r);case"affiliate-link":return n.createElement("a",yo({href:i.url,"data-eafl-id":i.id,className:"eafl-link"},t),r);case"code":return n.createElement("wprm-code",null,r);case"temperature":var a=null;i.icon&&wprm_admin.temperature.icons.hasOwnProperty(i.icon)&&(a=n.createElement("img",{src:wprm_admin.temperature.icons[i.icon].url,className:"wprm-temperature-icon",contentEditable:!1}));var s=null;return i.unit&&(s=n.createElement("span",{contentEditable:!1}," °",i.unit)),n.createElement("wprm-temperature",{icon:i.icon,unit:i.unit,help:i.help},a,r,s);default:return n.createElement("p",t,r)}},Do=e=>{var{attributes:t,children:r,leaf:i}=e;return i.bold&&(r=n.createElement("strong",null,r)),i.italic&&(r=n.createElement("em",null,r)),i.underline&&(r=n.createElement("u",null,r)),i.subscript&&(r=n.createElement("sub",null,r)),i.superscript&&(r=n.createElement("sup",null,r)),n.createElement("span",t,r)},Eo={"mod+b":"bold","mod+i":"italic","mod+u":"underline"},Co=["link","affiliate-link","code","temperature"],So=e=>{var{isInline:t}=e;return e.isInline=e=>!!Co.includes(e.type)||t(e),e},Io=(e,t)=>{var{insertData:r}=e;return e.insertData=n=>{var i=n.getData("text/html");if(i){var o=(new DOMParser).parseFromString(i,"text/html"),a=Ui(o.body,t.singleLine);Ht.insertFragment(e,a)}else r(n)},e},xo=e=>{for(var t,r=/\[wprm-temperature(\s.*?)]/gm;null!==(t=r.exec(e));){var n=void 0,i=(n=new RegExp(' value=\\"(.*?)"',"gm").exec(t[1]))?n[1]:"",o=(n=new RegExp(' unit=\\"(.*?)"',"gm").exec(t[1]))?n[1]:"",a=(n=new RegExp(' icon=\\"(.*?)"',"gm").exec(t[1]))?n[1]:"",s=(n=new RegExp(' help=\\"(.*?)"',"gm").exec(t[1]))?n[1]:"",u='<wprm-temperature unit="'.concat(o,'" icon="').concat(a,'" help="').concat(s,'">').concat(i,"</wprm-temperature>");e=e.replace(t[0],u)}for(var l=(new DOMParser).parseFromString(e,"text/html"),c=Ui(l.body),d=0;d<c.length;d++){var p=c[d];p.hasOwnProperty("text")&&(c[d]={type:"paragraph",children:[p]})}return c},Oo=(e,t)=>{Ao(e,t)?$e.removeMark(e,t):$e.addMark(e,t,!0)},Ao=(e,t)=>{var r=$e.marks(e);return!!r&&!0===r[t]},Mo=e=>{if((0,yi.O)())return e.singleLine?n.createElement("div",{className:"wprm-admin-modal-field-richtext-legacy"},n.createElement(vi.Z,e)):n.createElement("div",{className:"wprm-admin-modal-field-richtext-legacy"},n.createElement(bi.Z,e));var t=(0,n.useMemo)((()=>Io(So((e=>{var t=e,{apply:r}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:r}=e;if(r.length>0){var n=r[r.length-1];pi.withoutSaving(t,(()=>{$e.withoutNormalizing(t,(()=>{for(var e of n)t.apply(e)}))})),e.redos.pop(),e.undos.push(n)}},t.undo=()=>{var{history:e}=t,{undos:r}=e;if(r.length>0){var n=r[r.length-1];pi.withoutSaving(t,(()=>{$e.withoutNormalizing(t,(()=>{var e=n.map(st.inverse).reverse();for(var r of e)t.apply(r)}))})),e.redos.push(n),e.undos.pop()}},t.apply=e=>{var{operations:n,history:i}=t,{undos:o}=i,a=o[o.length-1],s=a&&a[a.length-1],u=hi(e,s),l=pi.isSaving(t),c=pi.isMerging(t);if(null==l&&(l=mi(e)),l){if(null==c&&(c=null!=a&&(0!==n.length||fi(e,s)||u)),a&&c)u&&a.pop(),a.push(e);else{var d=[e];o.push(d)}for(;o.length>100;)o.shift();gi(e)&&(i.redos=[])}r(e)},t})(ai(ge()))),e)),[]),r=e.value;e.value&&e.singleLine&&(r=(r=(r=""+e.value).replace("<p>","")).replace("</p>",""),r="<p>".concat(r,"</p>"));var i,o=[{type:"paragraph",children:[{text:""}]}];try{i=e.value?xo(r):o}catch(u){alert("Error loading one of the rich text fields. Some information may be lost. Please check the summary, equipment, ingredients and instructions before saving. Make sure your browser is updated to the latest version if you keep getting this message."),console.log("Text Value",r),console.log("FieldRichText Error",u),i=o}var[a,s]=(0,n.useState)(i);return n.createElement(ni,{spellCheck:!0,editor:t,value:a,onChange:r=>{s(r);var n=Gi(t);e.singleLine&&(n=n.replace(/^<p>(.*)<\/p>$/gm,"$1")),e.onChange(n)}},n.createElement(bo,{type:e.toolbar?e.toolbar:"all",isMarkActive:Ao,toggleMark:Oo}),n.createElement(ui,{className:"wprm-admin-modal-field-richtext".concat(e.className?" ".concat(e.className):"").concat(e.singleLine?" wprm-admin-modal-field-richtext-singleline":""),placeholder:e.placeholder,renderElement:(0,n.useCallback)((e=>n.createElement(wo,e)),[]),renderLeaf:(0,n.useCallback)((e=>n.createElement(Do,e)),[]),onFocus:()=>{(0,yi.v)()&&""!==e.value&&"<p></p>"!==e.value||(Ht.deselect(t),Ht.select(t,{anchor:$e.start(t,[]),focus:$e.end(t,[])}),Ht.collapse(t,{edge:"end"}))},onKeyDown:r=>{if(e.singleLine&&(0,tr.ZP)("enter",r))r.preventDefault();else{for(var n in Eo){if((0,tr.ZP)(n,r))r.preventDefault(),Oo(t,Eo[n])}e.onKeyDown&&e.onKeyDown(r)}},tabIndex:0}))};class Po extends n.Component{constructor(e){super(e),this.state={errors:0}}componentDidCatch(e,t){this.setState({errors:this.state.errors+1})}render(){return n.createElement(Mo,this.props)}}},59905:function(e,t,r){"use strict";var n=r(89526);t.Z=e=>{var t=!!e.hasOwnProperty("disabled")&&e.disabled,r=e.hasOwnProperty("type")?e.type:"text";return n.createElement("input",{type:r,min:e.hasOwnProperty("min")?e.min:null,max:e.hasOwnProperty("max")?e.max:null,step:e.hasOwnProperty("step")?e.step:null,disabled:t,name:e.name,value:e.value,placeholder:e.placeholder,onChange:t=>{e.onChange(t.target.value)},onKeyDown:t=>{"number"===e.type&&"-"===t.key&&t.preventDefault(),e.onKeyDown&&e.onKeyDown(t)}})}},59612:function(e,t,r){"use strict";var n=r(89526);t.Z=e=>n.createElement("textarea",{value:e.value,placeholder:e.placeholder,onChange:t=>{e.onChange(t.target.value)}})},86605:function(e,t,r){"use strict";var n=r(89526),i=r(34133);t.Z=e=>n.createElement("div",{className:"wprm-admin-modal-footer"},e.savingChanges?n.createElement(i.Z,null):n.createElement(n.Fragment,null,e.children))},96005:function(e,t,r){"use strict";var n=r(89526),i=r(52082),o=r(26612);t.Z=e=>n.createElement("div",{className:"wprm-admin-modal-header"},n.createElement("h2",null,e.children),n.createElement("div",{className:"wprm-admin-modal-close",onClick:e.onCloseModal},n.createElement(o.Z,{type:"close",title:(0,i.S)("Close")})))},5308:function(e,t,r){"use strict";r(87191);var n=r(52082),i={selectImage(e){this.select("image",e)},selectVideo(e){this.select("video",e)},select(e,t){var r={title:(0,n.S)("Select Media"),button:{text:(0,n.S)("Select")},multiple:!1};"video"===e?(r.frame="video",r.state="video-details"):r.library={type:"image"};var i=wp.media(r);i.on("select",(function(){var e=i.state().get("selection").first().toJSON();t(e)})),i.on("update",(function(){var e=i.state().media.attachment;e&&t(e)})),i.open()}};t.Z=i},96463:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});r(35054);var n=r(89526),i=r(45624),o=r(52082);class a extends n.Component{getOptions(e){return 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())).then((e=>e.data.recipes_with_id)):Promise.resolve({options:[]})}render(){return n.createElement(i.ZP,{placeholder:(0,o.S)("Select or search a recipe"),value:this.props.value,onChange:this.props.onValueChange,getOptionValue:e=>{var{id:t}=e;return t},getOptionLabel:e=>{var{text:t}=e;return t},defaultOptions:this.props.options.concat(wprm_admin.latest_recipes),loadOptions:this.getOptions.bind(this),noOptionsMessage:()=>(0,o.S)("No recipes found"),clearable:!1})}}},99237:function(e,t,r){"use strict";r.d(t,{Z:function(){return W}});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 s(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,l={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){s(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)}},c=wprm_admin.endpoints.dashboard,d={getAnalytics:()=>n.Z.call("".concat(c,"/analytics"))},p=wprm_admin.endpoints.notices,f={dismissNotice(e){var t={id:e};return n.Z.call(p,"DELETE",t)}},m=wprm_admin.endpoints.modal,h={parseIngredients(e){var t={ingredients:e};return n.Z.call("".concat(m,"/ingredient/parse"),"POST",t)}},g=(r(35054),wprm_admin.endpoints.manage),v=wprm_admin.endpoints.rating,b=wprm_admin.endpoints.taxonomy,y=!1,w=!1,D={getData(e){return y?(w=e,new Promise((e=>e(!1)))):this.getDataDebounced(e)},getDataDebounced(e){return y=!0,n.Z.call("".concat(g,"/").concat(e.route),"POST",e).then((e=>{if(w){var t=w;return w=!1,this.getDataDebounced(t)}return y=!1,e}))},deleteUserRatings:e=>n.Z.call("".concat(v,"/recipe/").concat(e),"DELETE"),getTerm:(e,t)=>n.Z.call("".concat(b).concat(e,"/").concat(t)),createTerm(e,t){var r={name:t};return n.Z.call("".concat(b).concat(e),"POST",r)},deleteTerm:(e,t)=>n.Z.call("".concat(b).concat(e,"/").concat(t,"?force=true"),"DELETE"),renameTerm(e,t,r){var i={name:r};return n.Z.call("".concat(b).concat(e,"/").concat(t),"POST",i)},changeTermSlug(e,t,r){var i={slug:r};return n.Z.call("".concat(b).concat(e,"/").concat(t),"POST",i)},renameTermLabel(e,t,r){var i={type:e,id:t,label:r};return n.Z.call("".concat(g,"/taxonomy/label"),"POST",i)},mergeTerm(e,t,r){var i={type:e,oldId:t,newId:r};return n.Z.call("".concat(g,"/taxonomy/merge"),"POST",i)},updateTaxonomyMeta(e,t,r){var i={};return i[e]=r,n.Z.call("".concat(b).concat(e,"/").concat(t),"POST",i)},bulkEdit(e,t,r,i){var o={type:t,ids:r,action:i};return n.Z.call("".concat(g,"/").concat(e,"/bulk"),"POST",o)}},E=wprm_admin.endpoints.modal,C=!1,S=!1,I=!1,x={getSuggestions(e){return C?(I=e,new Promise((e=>e(!1)))):this.getSuggestionsDebounced(e)},getSuggestionsDebounced(e){C=!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(I){var t=I;return I=!1,this.getSuggestionsDebounced(t)}return C=!1,e})))}},O=wprm_admin.endpoints.rating,A={update(e){var t={rating:e};return n.Z.call("".concat(O),"POST",t)},updateComment(e,t){var r={rating:t};return n.Z.call("".concat(O,"/comment/").concat(e),"POST",r)},delete:e=>n.Z.call("".concat(O,"/").concat(e),"DELETE")},M=(r(38472),wprm_admin.endpoints.recipe),P=wprm_admin.endpoints.manage,B={get:e=>n.Z.call("".concat(M,"/").concat(e,"?t=").concat(Date.now())),save(e){var t={recipe:e},r=M,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(M,"/").concat(e),"PUT",r)},delete(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r="".concat(M,"/").concat(e);return t&&(r+="?force=true"),n.Z.call(r,"DELETE")},deleteRevision:e=>n.Z.call("".concat(P,"/revision/").concat(e),"DELETE")},N=wprm_admin.endpoints.setting,k={save(e){var t={settings:e};return n.Z.call(N,"POST",t)}},T=wprm_admin.endpoints.template,j=[],L={},F=null,R={previewShortcode(e,t,r){return L[e]=t,clearTimeout(F),F=setTimeout((()=>{this.previewShortcodes(r)}),500),new Promise((e=>j.push(e)))},previewShortcodes(e){var t=j,r=L;j=[],L={};var n={recipeId:e,shortcodes:r};fetch("".concat(T,"/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(T,"POST",t)},delete(e){var t={slug:e};return n.Z.call(T,"DELETE",t)}},_=wprm_admin.endpoints.utilities,Z={saveImage(e){var t={url:e};return n.Z.call("".concat(_,"/save_image"),"POST",t)},giveFeedback(e){var t={feedback:e};return n.Z.call("".concat(_,"/feedback"),"POST",t)}},{hooks:H}=WPRecipeMaker["wp-recipe-maker/dist/shared"],W=H.applyFilters("api",{analytics:o,customTaxonomy:l,dashboard:d,general:f,import:h,manage:D,modal:x,rating:A,recipe:B,settings:k,template:R,utilities:Z})},46087:function(e,t,r){"use strict";r(39275),r(22321),r(35054),r(38472);function n(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(l){return void r(l)}s.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 s(e){n(a,i,o,s,u,"next",e)}function u(e){n(a,i,o,s,u,"throw",e)}s(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 s=!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."),s=!1):n+="\r\n\r\n".concat(e)}))}catch(l){console.log(l),n+="\r\n\r\n".concat(l)}if(s&&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)}))}}},34739:function(e,t,r){"use strict";r.d(t,{O:function(){return o},v:function(){return a}});var n=r(38974),i=r.n(n);function o(){return i().getParser(window.navigator.userAgent).satisfies({edge:"<80",ie:">0"})}function a(){return"Firefox"===i().getParser(window.navigator.userAgent).parsedResult.browser.name}},48618:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});r(33290);var n=r(89526);class i extends n.Component{constructor(e){super(e),this.state={hasError:!1,error:!1,info:!1}}componentDidCatch(e,t){this.setState({hasError:!0,error:e,info:t})}render(){return n.createElement(n.Fragment,null,this.state.hasError?n.createElement("div",{className:"wprm-error-boundary"},n.createElement("p",null,n.createElement("strong",null,"Something went wrong"),n.createElement("br",null),"Please contact ",n.createElement("a",{href:"mailto:support@bootstrapped.ventures"},"support@bootstrapped.ventures")," and send along the following information:"),n.createElement("pre",null,this.props.module?"Module: ".concat(this.props.module,"\n"):null,this.state.error?"Error: ".concat(this.state.error.toString(),"\n"):null,this.state.info?"Stack: ".concat(this.state.info.componentStack):null)):this.props.children)}}},26612:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});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==","plus-text":"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48cmVjdCBkYXRhLWVsZW1lbnQ9ImZyYW1lIiB4PSIwIiB5PSIwIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHJ4PSI0IiByeT0iNCIgc3Ryb2tlPSJub25lIiBmaWxsPSIjZmZmZmZmIj48L3JlY3Q+PGcgY2xhc3M9Im5jLWljb24td3JhcHBlciIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMS41OTk5OTk5OTk5OTk5OTk2IDEuNTk5OTk5OTk5OTk5OTk5Nikgc2NhbGUoMC44KSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBvbHlsaW5lIHBvaW50cz0iMC41IDIuNSAwLjUgMC41IDE0LjUgMC41IDE0LjUgMi41Ij48L3BvbHlsaW5lPjxsaW5lIHgxPSI3LjUiIHkxPSIwLjUiIHgyPSI3LjUiIHkyPSIxNS41Ij48L2xpbmU+PGxpbmUgeDE9IjQuNSIgeTE9IjE1LjUiIHgyPSIxMC41IiB5Mj0iMTUuNSI+PC9saW5lPjxsaW5lIHgxPSIxMyIgeTE9IjYiIHgyPSIxMyIgeTI9IjExIiBzdHJva2U9IiMxMTExMTEiPjwvbGluZT48bGluZSB4MT0iMTAuNSIgeTE9IjguNSIgeDI9IjE1LjUiIHkyPSI4LjUiIHN0cm9rZT0iIzExMTExMSI+PC9saW5lPjwvZz48L3N2Zz4=",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+",temperature:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cGF0aCBkPSJNMTAsOC4wNDVWMi40OWEyLDIsMCwwLDAtNCwwVjguMDQ1YTQsNCwwLDEsMCw0LDBaIj48L3BhdGg+PGNpcmNsZSBjeD0iOCIgY3k9IjExLjQ5IiByPSIyIiBzdHJva2U9IiMxMTExMTEiPjwvY2lyY2xlPjxsaW5lIHgxPSI4IiB5MT0iNC40OSIgeDI9IjgiIHkyPSI5LjQ5IiBzdHJva2U9IiMxMTExMTEiPjwvbGluZT48L2c+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="},s=e=>{var t=!!a.hasOwnProperty(e.type)&&a[e.type];if(!t)return null;var r=e.title,s=e.className?"wprm-admin-icon ".concat(e.className):"wprm-admin-icon",u=!!e.hasOwnProperty("hidden")&&e.hidden;return u&&(r="",s+=" wprm-admin-icon-hidden"),n.createElement(o.Z,{content:r},n.createElement("span",{className:s,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){s(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 s(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 s}});var a={};function s(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))},71236:function(e,t,r){"use strict";var n=r(59833),i=r(24697),o="/*|*/";function a(e){e&&s.current.insert(e+"}")}var s={current:null},u=function(e,t,r,n,i,u,l,c,d,p){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return s.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===c)return t+o;break;case 3:switch(c){case 102:case 112:return s.current.insert(r[0]+t),"";default:return t+(0===p?o:"")}case-2:t.split("/*|*/}").forEach(a)}};t.Z=function(e){void 0===e&&(e={});var t,r=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var o=new i.Z(t);var a,l={};a=e.container||document.head;var c,d=document.querySelectorAll("style[data-emotion-"+r+"]");Array.prototype.forEach.call(d,(function(e){e.getAttribute("data-emotion-"+r).split(" ").forEach((function(e){l[e]=!0})),e.parentNode!==a&&a.appendChild(e)})),o.use(e.stylisPlugins)(u),c=function(e,t,r,n){var i=t.name;s.current=r,o(e,t.styles),n&&(p.inserted[i]=!0)};var p={key:r,sheet:new n.m({key:r,container:a,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:l,registered:{},insert:c};return p}},12821:function(e,t,r){"use strict";r.d(t,{F4:function(){return d},ms:function(){return h},nq:function(){return o.C},tZ:function(){return c}});var n=r(74289),i=r(89526),o=(r(71236),r(97838)),a=r(56002),s=r(26794),u=r(59833),l=r(72144),c=function(e,t){var r=arguments;if(null==t||!o.h.call(t,"css"))return i.createElement.apply(void 0,r);var n=r.length,a=new Array(n);a[0]=o.E,a[1]=(0,o.c)(e,t);for(var s=2;s<n;s++)a[s]=r[s];return i.createElement.apply(null,a)},d=(i.Component,function(){var e=l.Z.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}),p=function e(t){for(var r=t.length,n=0,i="";n<r;n++){var o=t[n];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var s in a="",o)o[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};function f(e,t,r){var n=[],i=(0,a.f)(e,n,r);return n.length<2?r:i+t(n)}var m=function(){return null},h=(0,o.w)((function(e,t){return(0,i.createElement)(o.T.Consumer,null,(function(r){var n=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i=(0,s.O)(r,t.registered);return(0,a.M)(t,i,!1),t.key+"-"+i.name},o={css:n,cx:function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return f(t.registered,n,p(r))},theme:r},u=e.children(o);var l=(0,i.createElement)(m,null);return(0,i.createElement)(i.Fragment,null,l,u)}))}))},97838:function(e,t,r){"use strict";r.d(t,{C:function(){return c},E:function(){return g},T:function(){return l},c:function(){return f},h:function(){return s},w:function(){return d}});var n=r(89526),i=r(71236),o=r(56002),a=r(26794),s=Object.prototype.hasOwnProperty,u=(0,n.createContext)("undefined"!=typeof HTMLElement?(0,i.Z)():null),l=(0,n.createContext)({}),c=u.Provider,d=function(e){var t=function(t,r){return(0,n.createElement)(u.Consumer,null,(function(n){return e(t,n,r)}))};return(0,n.forwardRef)(t)},p="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",f=function(e,t){var r={};for(var n in t)s.call(t,n)&&(r[n]=t[n]);return r[p]=e,r},m=function(){return null},h=function(e,t,r,i){var u=null===r?t.css:t.css(r);"string"==typeof u&&void 0!==e.registered[u]&&(u=e.registered[u]);var l=t[p],c=[u],d="";"string"==typeof t.className?d=(0,o.f)(e.registered,c,t.className):null!=t.className&&(d=t.className+" ");var f=(0,a.O)(c);(0,o.M)(e,f,"string"==typeof l);d+=e.key+"-"+f.name;var h={};for(var g in t)s.call(t,g)&&"css"!==g&&g!==p&&(h[g]=t[g]);h.ref=i,h.className=d;var v=(0,n.createElement)(l,h),b=(0,n.createElement)(m,null);return(0,n.createElement)(n.Fragment,null,b,v)},g=d((function(e,t,r){return"function"==typeof e.css?(0,n.createElement)(l.Consumer,null,(function(n){return h(t,e,n,r)})):h(t,e,null,r)}))},72144:function(e,t,r){"use strict";var n=r(26794);t.Z=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,n.O)(t)}},95862:function(e,t){"use strict";t.Z=function(e){for(var t,r=0,n=0,i=e.length;i>=4;++n,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}},93059:function(e,t){"use strict";t.Z=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}},26794:function(e,t,r){"use strict";r.d(t,{O:function(){return h}});var n=r(95862),i=r(8560),o=r(93059),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,u=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!=typeof e},c=(0,o.Z)((function(e){return u(e)?e:e.replace(a,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,(function(e,t,r){return f={name:t,styles:r,next:f},t}))}return 1===i.Z[e]||u(e)||"number"!=typeof t||0===t?t:t+"px"};function p(e,t,r,n){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return f={name:r.name,styles:r.styles,next:f},r.name;if(void 0!==r.styles){var i=r.next;if(void 0!==i)for(;void 0!==i;)f={name:i.name,styles:i.styles,next:f},i=i.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=p(e,t,r[i],!1);else for(var o in r){var a=r[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?n+=o+"{"+t[a]+"}":l(a)&&(n+=c(o)+":"+d(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=p(e,t,a,!1);switch(o){case"animation":case"animationName":n+=c(o)+":"+s+";";break;default:n+=o+"{"+s+"}"}}else for(var u=0;u<a.length;u++)l(a[u])&&(n+=c(o)+":"+d(o,a[u])+";")}return n}(e,t,r);case"function":if(void 0!==e){var o=f,a=r(e);return f=o,p(e,t,a,n)}}if(null==t)return r;var s=t[r];return void 0===s||n?r:s}var f,m=/label:\s*([^\s;\n{]+)\s*;/g;var h=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i=!0,o="";f=void 0;var a=e[0];null==a||void 0===a.raw?(i=!1,o+=p(r,t,a,!1)):o+=a[0];for(var s=1;s<e.length;s++)o+=p(r,t,e[s],46===o.charCodeAt(o.length-1)),i&&(o+=a[s]);m.lastIndex=0;for(var u,l="";null!==(u=m.exec(o));)l+="-"+u[1];return{name:(0,n.Z)(o)+l,styles:o,next:f}}},59833:function(e,t,r){"use strict";r.d(t,{m:function(){return n}});var n=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,r=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(r,t),this.tags.push(r)}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(n);try{var o=105===e.charCodeAt(1)&&64===e.charCodeAt(0);i.insertRule(e,o?0:i.cssRules.length)}catch(a){0}}else n.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}()},24697:function(e,t){"use strict";t.Z=function(e){function t(e,n,u,l,p){for(var f,m,h,g,w,E=0,C=0,S=0,I=0,x=0,N=0,T=h=f=0,L=0,F=0,R=0,_=0,Z=u.length,H=Z-1,W="",U="",G="",z="";L<Z;){if(m=u.charCodeAt(L),L===H&&0!==C+I+S+E&&(0!==C&&(m=47===C?10:47),I=S=E=0,Z++,H++),0===C+I+S+E){if(L===H&&(0<F&&(W=W.replace(d,"")),0<W.trim().length)){switch(m){case 32:case 9:case 59:case 13:case 10:break;default:W+=u.charAt(L)}m=59}switch(m){case 123:for(f=(W=W.trim()).charCodeAt(0),h=1,_=++L;L<Z;){switch(m=u.charCodeAt(L)){case 123:h++;break;case 125:h--;break;case 47:switch(m=u.charCodeAt(L+1)){case 42:case 47:e:{for(T=L+1;T<H;++T)switch(u.charCodeAt(T)){case 47:if(42===m&&42===u.charCodeAt(T-1)&&L+2!==T){L=T+1;break e}break;case 10:if(47===m){L=T+1;break e}}L=T}}break;case 91:m++;case 40:m++;case 34:case 39:for(;L++<H&&u.charCodeAt(L)!==m;);}if(0===h)break;L++}if(h=u.substring(_,L),0===f&&(f=(W=W.replace(c,"").trim()).charCodeAt(0)),64===f){switch(0<F&&(W=W.replace(d,"")),m=W.charCodeAt(1)){case 100:case 109:case 115:case 45:F=n;break;default:F=B}if(_=(h=t(n,F,h,m,p+1)).length,0<k&&(w=s(3,h,F=r(B,W,R),n,A,O,_,m,p,l),W=F.join(""),void 0!==w&&0===(_=(h=w.trim()).length)&&(m=0,h="")),0<_)switch(m){case 115:W=W.replace(D,a);case 100:case 109:case 45:h=W+"{"+h+"}";break;case 107:h=(W=W.replace(v,"$1 $2"))+"{"+h+"}",h=1===P||2===P&&o("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=W+h,112===l&&(U+=h,h="")}else h=""}else h=t(n,r(n,W,R),h,l,p+1);G+=h,h=R=F=T=f=0,W="",m=u.charCodeAt(++L);break;case 125:case 59:if(1<(_=(W=(0<F?W.replace(d,""):W).trim()).length))switch(0===T&&(f=W.charCodeAt(0),45===f||96<f&&123>f)&&(_=(W=W.replace(" ",":")).length),0<k&&void 0!==(w=s(1,W,n,e,A,O,U.length,l,p,l))&&0===(_=(W=w.trim()).length)&&(W="\0\0"),f=W.charCodeAt(0),m=W.charCodeAt(1),f){case 0:break;case 64:if(105===m||99===m){z+=W+u.charAt(L);break}default:58!==W.charCodeAt(_-1)&&(U+=i(W,f,m,W.charCodeAt(2)))}R=F=T=f=0,W="",m=u.charCodeAt(++L)}}switch(m){case 13:case 10:47===C?C=0:0===1+f&&107!==l&&0<W.length&&(F=1,W+="\0"),0<k*j&&s(0,W,n,e,A,O,U.length,l,p,l),O=1,A++;break;case 59:case 125:if(0===C+I+S+E){O++;break}default:switch(O++,g=u.charAt(L),m){case 9:case 32:if(0===I+E+C)switch(x){case 44:case 58:case 9:case 32:g="";break;default:32!==m&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===I+C+E&&(F=R=1,g="\f"+g);break;case 108:if(0===I+C+E+M&&0<T)switch(L-T){case 2:112===x&&58===u.charCodeAt(L-3)&&(M=x);case 8:111===N&&(M=N)}break;case 58:0===I+C+E&&(T=L);break;case 44:0===C+S+I+E&&(F=1,g+="\r");break;case 34:case 39:0===C&&(I=I===m?0:0===I?m:I);break;case 91:0===I+C+S&&E++;break;case 93:0===I+C+S&&E--;break;case 41:0===I+C+E&&S--;break;case 40:if(0===I+C+E){if(0===f)if(2*x+3*N==533);else f=1;S++}break;case 64:0===C+S+I+E+T+h&&(h=1);break;case 42:case 47:if(!(0<I+E+S))switch(C){case 0:switch(2*m+3*u.charCodeAt(L+1)){case 235:C=47;break;case 220:_=L,C=42}break;case 42:47===m&&42===x&&_+2!==L&&(33===u.charCodeAt(_+2)&&(U+=u.substring(_,L+1)),g="",C=0)}}0===C&&(W+=g)}N=x,x=m,L++}if(0<(_=U.length)){if(F=n,0<k&&(void 0!==(w=s(2,U,F,e,A,O,_,l,p,l))&&0===(U=w).length))return z+U+G;if(U=F.join(",")+"{"+U+"}",0!=P*M){switch(2!==P||o(U,2)||(M=0),M){case 111:U=U.replace(y,":-moz-$1")+U;break;case 112:U=U.replace(b,"::-webkit-input-$1")+U.replace(b,"::-moz-$1")+U.replace(b,":-ms-input-$1")+U}M=0}}return z+U+G}function r(e,t,r){var i=t.trim().split(h);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<o;++s)t[s]=n(e,t[s],r).trim();break;default:var u=s=0;for(t=[];s<o;++s)for(var l=0;l<a;++l)t[u++]=n(e[l]+" ",i[s],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,r,n){var a=e+";",s=2*t+3*r+4*n;if(944===s){e=a.indexOf(":",9)+1;var u=a.substring(e,a.length-1).trim();return u=a.substring(0,e).trim()+u+";",1===P||2===P&&o(u,1)?"-webkit-"+u+u:u}if(0===P||2===P&&!o(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(x,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(u=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+u+a;case 1005:return f.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(u=a.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=a.replace(w,"tb");break;case 232:u=a.replace(w,"tb-rl");break;case 220:u=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+u+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(u=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(u,"-webkit-"+u)+";"+a.replace(u,"-ms-"+u+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return u=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+u+"-ms-flex-"+u+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(C,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(C,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===I.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):a.replace(u,"-webkit-"+u)+a.replace(u,"-moz-"+u.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+n&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(m,"$1-webkit-$2")+a}return a}function o(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),T(2!==t?n:n.replace(S,"$1"),r,t)}function a(e,t){var r=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(E," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,i,o,a,s,u,c){for(var d,p=0,f=t;p<k;++p)switch(d=N[p].call(l,e,f,r,n,i,o,a,s,u,c)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==t)return f}function u(e){return void 0!==(e=e.prefix)&&(T=null,e?"function"!=typeof e?P=1:(P=2,T=e):P=0),u}function l(e,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<k){var i=s(-1,r,n,n,A,O,0,0,0,0);void 0!==i&&"string"==typeof i&&(r=i)}var o=t(B,n,r,0,0);return 0<k&&(void 0!==(i=s(-2,o,n,n,A,O,o.length,0,0,0))&&(o=i)),"",M=0,O=A=1,o}var c=/^\0+/g,d=/[\0\r\f]/g,p=/: */g,f=/zoo|gra/,m=/([,: ])(transform)/g,h=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,y=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,D=/\(\s*(.*)\s*\)/g,E=/([\s\S]*?);/g,C=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,I=/stretch|:\s*\w+\-(?:conte|avail)/,x=/([^-])(image-set\()/,O=1,A=1,M=0,P=1,B=[],N=[],k=0,T=null,j=0;return l.use=function e(t){switch(t){case void 0:case null:k=N.length=0;break;default:if("function"==typeof t)N[k++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else j=0|!!t}return e},l.set=u,void 0!==e&&u(e),l}},8560:function(e,t){"use strict";t.Z={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},56002:function(e,t,r){"use strict";r.d(t,{M:function(){return i},f:function(){return n}});function n(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]):n+=r+" "})),n}var i=function(e,t,r){var n=e.key+"-"+t.name;if(!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles),void 0===e.inserted[t.name]){var i=t;do{e.insert("."+n,i,e.sheet,!0);i=i.next}while(void 0!==i)}}},38974:function(e){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=90)}({17:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=r(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var r=t.match(e);return r&&r.length>0&&r[1]||""},e.getSecondMatch=function(e,t){var r=t.match(e);return r&&r.length>1&&r[2]||""},e.matchAndReturnConst=function(e,t,r){if(e.test(t))return r},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,r,n){void 0===n&&(n=!1);var i=e.getVersionPrecision(t),o=e.getVersionPrecision(r),a=Math.max(i,o),s=0,u=e.map([t,r],(function(t){var r=a-e.getVersionPrecision(t),n=t+new Array(r+1).join(".0");return e.map(n.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(n&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(u[0][a]>u[1][a])return 1;if(u[0][a]===u[1][a]){if(a===s)return 0;a-=1}else if(u[0][a]<u[1][a])return-1}},e.map=function(e,t){var r,n=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(r=0;r<e.length;r+=1)n.push(t(e[r]));return n},e.find=function(e,t){var r,n;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(r=0,n=e.length;r<n;r+=1){var i=e[r];if(t(i,r))return i}},e.assign=function(e){for(var t,r,n=e,i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];if(Object.assign)return Object.assign.apply(Object,[e].concat(o));var s=function(){var e=o[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach((function(t){n[t]=e[t]}))};for(t=0,r=o.length;t<r;t+=1)s();return e},e.getBrowserAlias=function(e){return n.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return n.BROWSER_MAP[e]||""},e}();t.default=i,e.exports=t.default},18:function(e,t,r){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(91))&&n.__esModule?n:{default:n},o=r(18);function a(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)}}var s=function(){function e(){}var t,r,n;return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new i.default(e,t)},e.parse=function(e){return new i.default(e).getResult()},t=e,n=[{key:"BROWSER_MAP",get:function(){return o.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return o.ENGINE_MAP}},{key:"OS_MAP",get:function(){return o.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return o.PLATFORMS_MAP}}],(r=null)&&a(t.prototype,r),n&&a(t,n),e}();t.default=s,e.exports=t.default},91:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=u(r(92)),i=u(r(93)),o=u(r(94)),a=u(r(95)),s=u(r(17));function u(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=s.default.find(n.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=s.default.find(i.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=s.default.find(o.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=s.default.find(a.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return s.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,r={},n=0,i={},o=0;if(Object.keys(e).forEach((function(t){var a=e[t];"string"==typeof a?(i[t]=a,o+=1):"object"==typeof a&&(r[t]=a,n+=1)})),n>0){var a=Object.keys(r),u=s.default.find(a,(function(e){return t.isOS(e)}));if(u){var l=this.satisfies(r[u]);if(void 0!==l)return l}var c=s.default.find(a,(function(e){return t.isPlatform(e)}));if(c){var d=this.satisfies(r[c]);if(void 0!==d)return d}}if(o>0){var p=Object.keys(i),f=s.default.find(p,(function(e){return t.isBrowser(e,!0)}));if(void 0!==f)return this.compareVersion(i[f])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var r=this.getBrowserName().toLowerCase(),n=e.toLowerCase(),i=s.default.getBrowserTypeByAlias(n);return t&&i&&(n=i.toLowerCase()),n===r},t.compareVersion=function(e){var t=[0],r=e,n=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(r=e.substr(1),"="===e[1]?(n=!0,r=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?r=e.substr(1):"~"===e[0]&&(n=!0,r=e.substr(1)),t.indexOf(s.default.compareVersions(i,r,n))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=l,e.exports=t.default},92:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},r=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},r=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},r=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},r=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},r=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},r=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},r=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},r=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},r=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},r=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},r=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},r=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},r=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},r=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},r=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},r=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},r=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},r=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},r=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},r=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},r=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},r=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},r=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},r=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},r=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},r=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t={name:"Android Browser"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:o.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=i.default.getWindowsVersionName(t);return{name:o.OS_MAP.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:o.OS_MAP.iOS},r=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=i.default.getMacOSVersionName(t),n={name:o.OS_MAP.MacOS,version:t};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=i.default.getAndroidVersionName(t),n={name:o.OS_MAP.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:o.OS_MAP.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:o.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:o.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:o.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:o.ENGINE_MAP.Trident},r=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:o.ENGINE_MAP.Presto},r=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe:function(e){var t={name:o.ENGINE_MAP.Gecko},r=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:o.ENGINE_MAP.WebKit},r=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}];t.default=a,e.exports=t.default}})},77447:function(e,t,r){"use strict";var n=r(12817),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var r,o,a,s,u,l,c=!1;t||(t={}),r=t.debug||!1;try{if(a=n(),s=document.createRange(),u=document.getSelection(),(l=document.createElement("span")).textContent=e,l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",(function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=i[t.format]||i.default;window.clipboardData.setData(o,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))})),document.body.appendChild(l),s.selectNodeContents(l),u.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");c=!0}catch(d){r&&console.error("unable to copy using execCommand: ",d),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(d){r&&console.error("unable to copy using clipboardData: ",d),r&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(s):u.removeAllRanges()),l&&document.body.removeChild(l),a()}return c}},8049:function(e,t,r){var n=r(63719);e.exports=n},22020:function(e,t,r){r(59789),r(68502);var n=r(13145);e.exports=n("Array","flat")},9968:function(e,t,r){r(89919)},89919:function(e,t,r){var n=r(8049);e.exports=n},97676:function(e,t,r){var n=r(75277),i=r(28768),o=TypeError;e.exports=function(e){if(n(e))return e;throw o(i(e)+" is not a function")}},43327:function(e,t,r){var n=r(31536),i=r(28768),o=TypeError;e.exports=function(e){if(n(e))return e;throw o(i(e)+" is not a constructor")}},75017:function(e,t,r){var n=r(75277),i=String,o=TypeError;e.exports=function(e){if("object"==typeof e||n(e))return e;throw o("Can't set "+i(e)+" as a prototype")}},6677:function(e,t,r){var n=r(52280),i=r(51569),o=r(86385).f,a=n("unscopables"),s=Array.prototype;null==s[a]&&o(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},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,t,r){var n=r(32010),i=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw i("Incorrect invocation")}},83875:function(e,t,r){var n=r(52786),i=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw o(i(e)+" is not an object")}},37190:function(e,t,r){var n=r(29580),i=r(32565),o=r(47046),a=function(e){return function(t,r,a){var s,u=n(t),l=o(u),c=i(a,l);if(e&&r!=r){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===r)return e||c||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(){return 1},1)}))}},86596:function(e,t,r){var n=r(97676),i=r(30744),o=r(78609),a=r(47046),s=TypeError,u=function(e){return function(t,r,u,l){n(r);var c=i(t),d=o(c),p=a(c),f=e?p-1:0,m=e?-1:1;if(u<2)for(;;){if(f in d){l=d[f],f+=m;break}if(f+=m,e?f<0:p<=f)throw s("Reduce of empty array with no initial value")}for(;e?f>=0:p>f;f+=m)f in d&&(l=r(l,d[f],f,c));return l}};e.exports={left:u(!1),right:u(!0)}},58990:function(e,t,r){var n=r(32565),i=r(47046),o=r(35039),a=Array,s=Math.max;e.exports=function(e,t,r){for(var u=i(e),l=n(t,u),c=n(void 0===r?u:r,u),d=a(s(c-l,0)),p=0;l<c;l++,p++)o(d,p,e[l]);return d.length=p,d}},15629:function(e,t,r){var n=r(88697);e.exports=n([].slice)},30765:function(e,t,r){var n=r(71982),i=r(31536),o=r(52786),a=r(52280)("species"),s=Array;e.exports=function(e){var t;return n(e)&&(t=e.constructor,(i(t)&&(t===s||n(t.prototype))||o(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},80150:function(e,t,r){var n=r(30765);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},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(s){}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(s){}return r}},79159:function(e,t,r){var n=r(88697),i=n({}.toString),o=n("".slice);e.exports=function(e){return o(i(e),8,-1)}},36994:function(e,t,r){var n=r(57301),i=r(75277),o=r(79159),a=r(52280)("toStringTag"),s=Object,u="Arguments"==o(function(){return arguments}());e.exports=n?o: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=s(e),a))?r:u?o(t):"Object"==(n=o(t))&&i(t.callee)?"Arguments":n}},73870:function(e,t,r){var n=r(24792),i=r(31561),o=r(66012),a=r(86385);e.exports=function(e,t,r){for(var s=i(t),u=a.f,l=o.f,c=0;c<s.length;c++){var d=s[c];n(e,d)||r&&n(r,d)||u(e,d,l(t,d))}}},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}},25115:function(e,t,r){var n=r(79044);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},6181:function(e,t,r){"use strict";var n=r(97022).IteratorPrototype,i=r(51569),o=r(69199),a=r(60878),s=r(44818),u=function(){return this};e.exports=function(e,t,r,l){var c=t+" Iterator";return e.prototype=i(n,{next:o(+!l,r)}),a(e,c,!1,!0),s[c]=u,e}},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}}},35039:function(e,t,r){"use strict";var n=r(383),i=r(86385),o=r(69199);e.exports=function(e,t,r){var a=n(t);a in e?i.f(e,a,o(0,r)):e[a]=r}},50403:function(e,t,r){var n=r(75277),i=r(86385),o=r(20833),a=r(62359);e.exports=function(e,t,r,s){s||(s={});var u=s.enumerable,l=void 0!==s.name?s.name:t;return n(r)&&o(r,l,s),s.global?u?e[t]=r:a(t,r):(s.unsafe?e[t]&&(u=!0):delete e[t],u?e[t]=r:i.f(e,t,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})),e}},62359:function(e,t,r){var n=r(98363),i=Object.defineProperty;e.exports=function(e,t){try{i(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},61495:function(e,t,r){"use strict";var n=r(19882),i=r(79611),o=r(21178),a=r(55316),s=r(75277),u=r(6181),l=r(12654),c=r(22412),d=r(60878),p=r(45899),f=r(50403),m=r(52280),h=r(44818),g=r(97022),v=a.PROPER,b=a.CONFIGURABLE,y=g.IteratorPrototype,w=g.BUGGY_SAFARI_ITERATORS,D=m("iterator"),E="keys",C="values",S="entries",I=function(){return this};e.exports=function(e,t,r,a,m,g,x){u(r,t,a);var O,A,M,P=function(e){if(e===m&&j)return j;if(!w&&e in k)return k[e];switch(e){case E:case C:case S:return function(){return new r(this,e)}}return function(){return new r(this)}},B=t+" Iterator",N=!1,k=e.prototype,T=k[D]||k["@@iterator"]||m&&k[m],j=!w&&T||P(m),L="Array"==t&&k.entries||T;if(L&&(O=l(L.call(new e)))!==Object.prototype&&O.next&&(o||l(O)===y||(c?c(O,y):s(O[D])||f(O,D,I)),d(O,B,!0,!0),o&&(h[B]=I)),v&&m==C&&T&&T.name!==C&&(!o&&b?p(k,"name",C):(N=!0,j=function(){return i(T,this)})),m)if(A={values:P(C),keys:g?j:P(E),entries:P(S)},x)for(M in A)(w||N||!(M in k))&&f(k,M,A[M]);else n({target:t,proto:!0,forced:w||N},A);return o&&!x||k[D]===j||f(k,D,j,{name:m}),h[t]=j,A}},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):{}}},94758:function(e){var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},12848:function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},79189:function(e,t,r){var n=r(92750)("span").classList,i=n&&n.constructor&&n.constructor.prototype;e.exports=i===Object.prototype?void 0:i},47923:function(e){e.exports="object"==typeof window&&"object"!=typeof Deno},55357:function(e,t,r){var n=r(82647),i=r(98363);e.exports=/ipad|iphone|ipod/i.test(n)&&void 0!==i.Pebble},53121:function(e,t,r){var n=r(82647);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},93921:function(e,t,r){var n=r(79159),i=r(98363);e.exports="process"==n(i.process)},14402:function(e,t,r){var n=r(82647);e.exports=/web0s(?!.*chrome)/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),s=o.process,u=o.Deno,l=s&&s.versions||u&&u.version,c=l&&l.v8;c&&(i=(n=c.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=+n[1]),e.exports=i},13145:function(e,t,r){var n=r(98363),i=r(88697);e.exports=function(e,t){return i(n[e].prototype[t])}},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(50403),s=r(62359),u=r(73870),l=r(86291);e.exports=function(e,t){var r,c,d,p,f,m=e.target,h=e.global,g=e.stat;if(r=h?n:g?n[m]||s(m,{}):(n[m]||{}).prototype)for(c in t){if(p=t[c],d=e.dontCallGetSet?(f=i(r,c))&&f.value:r[c],!l(h?c:m+(g?".":"#")+c,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;u(p,d)}(e.sham||d&&d.sham)&&o(p,"sham",!0),a(r,c,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(88697),i=r(50403),o=r(99749),a=r(79044),s=r(52280),u=r(45899),l=s("species"),c=RegExp.prototype;e.exports=function(e,t,r,d){var p=s(e),f=!a((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),m=f&&!a((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[l]=function(){return r},r.flags="",r[p]=/./[p]),r.exec=function(){return t=!0,null},r[p](""),!t}));if(!f||!m||r){var h=n(/./[p]),g=t(p,""[e],(function(e,t,r,i,a){var s=n(e),u=t.exec;return u===o||u===c.exec?f&&!a?{done:!0,value:h(t,r,i)}:{done:!0,value:s(r,t,i)}:{done:!1}}));i(String.prototype,e,g[0]),i(c,p,g[1])}d&&u(c[p],"sham",!0)}},92613:function(e,t,r){"use strict";var n=r(71982),i=r(47046),o=r(94758),a=r(98166),s=function(e,t,r,u,l,c,d,p){for(var f,m,h=l,g=0,v=!!d&&a(d,p);g<u;)g in r&&(f=v?v(r[g],g,t):r[g],c>0&&n(f)?(m=i(f),h=s(e,t,f,m,h,c-1)-1):(o(h+1),e[h]=f),h++),g++;return h};e.exports=s},63530:function(e,t,r){var n=r(23996),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(o):function(){return a.apply(o,arguments)})},98166:function(e,t,r){var n=r(88697),i=r(97676),o=r(23996),a=n(n.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},23996:function(e,t,r){var n=r(79044);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},79611:function(e,t,r){var n=r(23996),i=Function.prototype.call;e.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},55316:function(e,t,r){var n=r(7493),i=r(24792),o=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=i(o,"name"),u=s&&"something"===function(){}.name,l=s&&(!n||n&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:u,CONFIGURABLE:l}},88697:function(e,t,r){var n=r(23996),i=Function.prototype,o=i.bind,a=i.call,s=n&&o.bind(a,a);e.exports=n?function(e){return e&&s(e)}:function(e){return e&&function(){return a.apply(e,arguments)}}},22773:function(e,t,r){var n=r(98363),i=r(75277),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e]):n[e]&&n[e][t]}},77193:function(e,t,r){var n=r(36994),i=r(97219),o=r(44818),a=r(52280)("iterator");e.exports=function(e){if(null!=e)return i(e,a)||i(e,"@@iterator")||o[n(e)]}},11805:function(e,t,r){var n=r(79611),i=r(97676),o=r(83875),a=r(28768),s=r(77193),u=TypeError;e.exports=function(e,t){var r=arguments.length<2?s(e):t;if(i(r))return o(n(r,e));throw u(a(e)+" is not iterable")}},97219:function(e,t,r){var n=r(97676);e.exports=function(e,t){var r=e[t];return null==r?void 0:n(r)}},81373:function(e,t,r){var n=r(88697),i=r(30744),o=Math.floor,a=n("".charAt),s=n("".replace),u=n("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,r,n,d,p){var f=r+e.length,m=n.length,h=c;return void 0!==d&&(d=i(d),h=l),s(p,h,(function(i,s){var l;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return u(t,0,r);case"'":return u(t,f);case"<":l=d[u(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>m){var p=o(c/10);return 0===p?i:p<=m?void 0===n[p-1]?a(s,1):n[p-1]+a(s,1):i}l=n[c-1]}return void 0===l?"":l}))}},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}()||Function("return this")()},24792:function(e,t,r){var n=r(88697),i=r(30744),o=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},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(88697),i=r(79044),o=r(79159),a=Object,s=n("".split);e.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?s(e,""):a(e)}:a},59250:function(e,t,r){var n=r(75277),i=r(52786),o=r(22412);e.exports=function(e,t,r){var a,s;return o&&n(a=t.constructor)&&a!==r&&i(s=a.prototype)&&s!==r.prototype&&o(e,s),e}},56429:function(e,t,r){var n=r(88697),i=r(75277),o=r(49415),a=n(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},20821:function(e,t,r){var n,i,o,a=r(36830),s=r(98363),u=r(88697),l=r(52786),c=r(45899),d=r(24792),p=r(49415),f=r(50466),m=r(47505),h="Object already initialized",g=s.TypeError,v=s.WeakMap;if(a||p.state){var b=p.state||(p.state=new v),y=u(b.get),w=u(b.has),D=u(b.set);n=function(e,t){if(w(b,e))throw new g(h);return t.facade=e,D(b,e,t),t},i=function(e){return y(b,e)||{}},o=function(e){return w(b,e)}}else{var E=f("state");m[E]=!0,n=function(e,t){if(d(e,E))throw new g(h);return t.facade=e,c(e,E,t),t},i=function(e){return d(e,E)?e[E]:{}},o=function(e){return d(e,E)}}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(!l(t)||(r=i(t)).type!==e)throw g("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)}},71982:function(e,t,r){var n=r(79159);e.exports=Array.isArray||function(e){return"Array"==n(e)}},75277:function(e){e.exports=function(e){return"function"==typeof e}},31536:function(e,t,r){var n=r(88697),i=r(79044),o=r(75277),a=r(36994),s=r(22773),u=r(56429),l=function(){},c=[],d=s("Reflect","construct"),p=/^\s*(?:class|function)\b/,f=n(p.exec),m=!p.exec(l),h=function(e){if(!o(e))return!1;try{return d(l,c,e),!0}catch(t){return!1}},g=function(e){if(!o(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return m||!!f(p,u(e))}catch(t){return!0}};g.sham=!0,e.exports=!d||i((function(){var e;return h(h.call)||!h(Object)||!h((function(){e=!0}))||e}))?g:h},86291:function(e,t,r){var n=r(79044),i=r(75277),o=/#|\.prototype\./,a=function(e,t){var r=u[s(e)];return r==c||r!=l&&(i(t)?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},u=a.data={},l=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},52786:function(e,t,r){var n=r(75277);e.exports=function(e){return"object"==typeof e?null!==e:n(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))}},66681:function(e,t,r){var n=r(22773),i=r(75277),o=r(32010),a=r(189),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return i(t)&&o(t.prototype,s(e))}},5166:function(e,t,r){var n=r(98166),i=r(79611),o=r(83875),a=r(28768),s=r(68089),u=r(47046),l=r(32010),c=r(11805),d=r(77193),p=r(18744),f=TypeError,m=function(e,t){this.stopped=e,this.result=t},h=m.prototype;e.exports=function(e,t,r){var g,v,b,y,w,D,E,C=r&&r.that,S=!(!r||!r.AS_ENTRIES),I=!(!r||!r.IS_ITERATOR),x=!(!r||!r.INTERRUPTED),O=n(t,C),A=function(e){return g&&p(g,"normal",e),new m(!0,e)},M=function(e){return S?(o(e),x?O(e[0],e[1],A):O(e[0],e[1])):x?O(e,A):O(e)};if(I)g=e;else{if(!(v=d(e)))throw f(a(e)+" is not iterable");if(s(v)){for(b=0,y=u(e);y>b;b++)if((w=M(e[b]))&&l(h,w))return w;return new m(!1)}g=c(e,v)}for(D=g.next;!(E=i(D,g)).done;){try{w=M(E.value)}catch(P){p(g,"throw",P)}if("object"==typeof w&&w&&l(h,w))return w}return new m(!1)}},18744:function(e,t,r){var n=r(79611),i=r(83875),o=r(97219);e.exports=function(e,t,r){var a,s;i(e);try{if(!(a=o(e,"return"))){if("throw"===t)throw r;return r}a=n(a,e)}catch(u){s=!0,a=u}if("throw"===t)throw r;if(s)throw a;return i(a),r}},97022:function(e,t,r){"use strict";var n,i,o,a=r(79044),s=r(75277),u=r(51569),l=r(12654),c=r(50403),d=r(52280),p=r(21178),f=d("iterator"),m=!1;[].keys&&("next"in(o=[].keys())?(i=l(l(o)))!==Object.prototype&&(n=i):m=!0),null==n||a((function(){var e={};return n[f].call(e)!==e}))?n={}:p&&(n=u(n)),s(n[f])||c(n,f,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},44818:function(e){e.exports={}},47046:function(e,t,r){var n=r(35108);e.exports=function(e){return n(e.length)}},20833:function(e,t,r){var n=r(79044),i=r(75277),o=r(24792),a=r(7493),s=r(55316).CONFIGURABLE,u=r(56429),l=r(20821),c=l.enforce,d=l.get,p=Object.defineProperty,f=a&&!n((function(){return 8!==p((function(){}),"length",{value:8}).length})),m=String(String).split("String"),h=e.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!o(e,"name")||s&&e.name!==t)&&p(e,"name",{value:t,configurable:!0}),f&&r&&o(r,"arity")&&e.length!==r.arity&&p(e,"length",{value:r.arity});try{r&&o(r,"constructor")&&r.constructor?a&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var n=c(e);return o(n,"source")||(n.source=m.join("string"==typeof t?t:"")),e};Function.prototype.toString=h((function(){return i(this)&&d(this).source||u(this)}),"toString")},78300:function(e){var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},71800:function(e,t,r){var n,i,o,a,s,u,l,c,d=r(98363),p=r(98166),f=r(66012).f,m=r(84643).set,h=r(53121),g=r(55357),v=r(14402),b=r(93921),y=d.MutationObserver||d.WebKitMutationObserver,w=d.document,D=d.process,E=d.Promise,C=f(d,"queueMicrotask"),S=C&&C.value;S||(n=function(){var e,t;for(b&&(e=D.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()},h||b||v||!y||!w?!g&&E&&E.resolve?((l=E.resolve(void 0)).constructor=E,c=p(l.then,l),a=function(){c(n)}):b?a=function(){D.nextTick(n)}:(m=p(m,d),a=function(){m(n)}):(s=!0,u=w.createTextNode(""),new y(n).observe(u,{characterData:!0}),a=function(){u.data=s=!s})),e.exports=S||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},3850:function(e,t,r){var n=r(11197),i=r(79044);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},36830:function(e,t,r){var n=r(98363),i=r(75277),o=r(56429),a=n.WeakMap;e.exports=i(a)&&/native code/.test(o(a))},29269:function(e,t,r){"use strict";var n=r(97676),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),i=TypeError;e.exports=function(e){if(n(e))throw i("The method doesn't accept regular expressions");return e}},44762:function(e,t,r){var n=r(98363),i=r(79044),o=r(88697),a=r(28967),s=r(10287).trim,u=r(2569),l=o("".charAt),c=n.parseFloat,d=n.Symbol,p=d&&d.iterator,f=1/c(u+"-0")!=-1/0||p&&!i((function(){c(Object(p))}));e.exports=f?function(e){var t=s(a(e)),r=c(t);return 0===r&&"-"==l(t,0)?-0:r}:c},35399:function(e,t,r){var n=r(98363),i=r(79044),o=r(88697),a=r(28967),s=r(10287).trim,u=r(2569),l=n.parseInt,c=n.Symbol,d=c&&c.iterator,p=/^[+-]?0x/i,f=o(p.exec),m=8!==l(u+"08")||22!==l(u+"0x16")||d&&!i((function(){l(Object(d))}));e.exports=m?function(e,t){var r=s(a(e));return l(r,t>>>0||(f(p,r)?16:10))}:l},45856:function(e,t,r){"use strict";var n=r(7493),i=r(88697),o=r(79611),a=r(79044),s=r(60667),u=r(89612),l=r(81513),c=r(30744),d=r(78609),p=Object.assign,f=Object.defineProperty,m=i([].concat);e.exports=!p||a((function(){if(n&&1!==p({b:1},p(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),i="abcdefghijklmnopqrst";return e[r]=7,i.split("").forEach((function(e){t[e]=e})),7!=p({},e)[r]||s(p({},t)).join("")!=i}))?function(e,t){for(var r=c(e),i=arguments.length,a=1,p=u.f,f=l.f;i>a;)for(var h,g=d(arguments[a++]),v=p?m(s(g),p(g)):s(g),b=v.length,y=0;b>y;)h=v[y++],n&&!o(f,g,h)||(r[h]=g[h]);return r}:p},51569:function(e,t,r){var n,i=r(83875),o=r(17840),a=r(48869),s=r(47505),u=r(47055),l=r(92750),c=r(50466),d=c("IE_PROTO"),p=function(){},f=function(e){return"<script>"+e+"</"+"script>"},m=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},h=function(){try{n=new ActiveXObject("htmlfile")}catch(i){}var e,t;h="undefined"!=typeof document?document.domain&&n?m(n):((t=l("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):m(n);for(var r=a.length;r--;)delete h.prototype[a[r]];return h()};s[d]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(p.prototype=i(e),r=new p,p.prototype=null,r[d]=e):r=h(),void 0===t?r:o.f(r,t)}},17840:function(e,t,r){var n=r(7493),i=r(51010),o=r(86385),a=r(83875),s=r(29580),u=r(60667);t.f=n&&!i?Object.defineProperties:function(e,t){a(e);for(var r,n=s(t),i=u(t),l=i.length,c=0;l>c;)o.f(e,r=i[c++],n[r]);return e}},86385:function(e,t,r){var n=r(7493),i=r(67548),o=r(51010),a=r(83875),s=r(383),u=TypeError,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",p="configurable",f="writable";t.f=n?o?function(e,t,r){if(a(e),t=s(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&f in r&&!r.writable){var n=c(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:p in r?r.configurable:n.configurable,enumerable:d in r?r.enumerable:n.enumerable,writable:!1})}return l(e,t,r)}:l:function(e,t,r){if(a(e),t=s(t),a(r),i)try{return l(e,t,r)}catch(n){}if("get"in r||"set"in r)throw u("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},66012:function(e,t,r){var n=r(7493),i=r(79611),o=r(81513),a=r(69199),s=r(29580),u=r(383),l=r(24792),c=r(67548),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=s(e),t=u(t),c)try{return d(e,t)}catch(r){}if(l(e,t))return a(!i(o.f,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},12654:function(e,t,r){var n=r(24792),i=r(75277),o=r(30744),a=r(50466),s=r(25115),u=a("IE_PROTO"),l=Object,c=l.prototype;e.exports=s?l.getPrototypeOf:function(e){var t=o(e);if(n(t,u))return t[u];var r=t.constructor;return i(r)&&t instanceof r?r.prototype:t instanceof l?c:null}},32010:function(e,t,r){var n=r(88697);e.exports=n({}.isPrototypeOf)},18794:function(e,t,r){var n=r(88697),i=r(24792),o=r(29580),a=r(37190).indexOf,s=r(47505),u=n([].push);e.exports=function(e,t){var r,n=o(e),l=0,c=[];for(r in n)!i(s,r)&&i(n,r)&&u(c,r);for(;t.length>l;)i(n,r=t[l++])&&(~a(c,r)||u(c,r));return c}},60667:function(e,t,r){var n=r(18794),i=r(48869);e.exports=Object.keys||function(e){return n(e,i)}},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},22412:function(e,t,r){var n=r(88697),i=r(83875),o=r(75017);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(a){}return function(r,n){return i(r),o(n),t?e(r,n):r.__proto__=n,r}}():void 0)},17141:function(e,t,r){var n=r(79611),i=r(75277),o=r(52786),a=TypeError;e.exports=function(e,t){var r,s;if("string"===t&&i(r=e.toString)&&!o(s=n(r,e)))return s;if(i(r=e.valueOf)&&!o(s=n(r,e)))return s;if("string"!==t&&i(r=e.toString)&&!o(s=n(r,e)))return s;throw a("Can't convert object to primitive value")}},31561:function(e,t,r){var n=r(22773),i=r(88697),o=r(87994),a=r(89612),s=r(83875),u=i([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(s(e)),r=a.f;return r?u(t,r(e)):t}},74443:function(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},35182:function(e,t,r){var n=r(98363),i=r(25988),o=r(75277),a=r(86291),s=r(56429),u=r(52280),l=r(47923),c=r(21178),d=r(11197),p=i&&i.prototype,f=u("species"),m=!1,h=o(n.PromiseRejectionEvent),g=a("Promise",(function(){var e=s(i),t=e!==String(i);if(!t&&66===d)return!0;if(c&&(!p.catch||!p.finally))return!0;if(d>=51&&/native code/.test(e))return!1;var r=new i((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};return(r.constructor={})[f]=n,!(m=r.then((function(){}))instanceof n)||!t&&l&&!h}));e.exports={CONSTRUCTOR:g,REJECTION_EVENT:h,SUBCLASSING:m}},25988:function(e,t,r){var n=r(98363);e.exports=n.Promise},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}},99581:function(e,t,r){var n=r(25988),i=r(8662),o=r(35182).CONSTRUCTOR;e.exports=o||!i((function(e){n.all(e).then(void 0,(function(){}))}))},79557:function(e,t,r){var n=r(86385).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},12423:function(e){var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},e.exports=t},94088:function(e,t,r){var n=r(79611),i=r(83875),o=r(75277),a=r(79159),s=r(99749),u=TypeError;e.exports=function(e,t){var r=e.exec;if(o(r)){var l=n(r,e,t);return null!==l&&i(l),l}if("RegExp"===a(e))return n(s,e,t);throw u("RegExp#exec called on incompatible receiver")}},99749:function(e,t,r){"use strict";var n,i,o=r(79611),a=r(88697),s=r(28967),u=r(58083),l=r(97047),c=r(53580),d=r(51569),p=r(20821).get,f=r(41669),m=r(1638),h=c("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,v=g,b=a("".charAt),y=a("".indexOf),w=a("".replace),D=a("".slice),E=(i=/b*/g,o(g,n=/a/,"a"),o(g,i,"a"),0!==n.lastIndex||0!==i.lastIndex),C=l.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];(E||S||C||f||m)&&(v=function(e){var t,r,n,i,a,l,c,f=this,m=p(f),I=s(e),x=m.raw;if(x)return x.lastIndex=f.lastIndex,t=o(v,x,I),f.lastIndex=x.lastIndex,t;var O=m.groups,A=C&&f.sticky,M=o(u,f),P=f.source,B=0,N=I;if(A&&(M=w(M,"y",""),-1===y(M,"g")&&(M+="g"),N=D(I,f.lastIndex),f.lastIndex>0&&(!f.multiline||f.multiline&&"\n"!==b(I,f.lastIndex-1))&&(P="(?: "+P+")",N=" "+N,B++),r=new RegExp("^(?:"+P+")",M)),S&&(r=new RegExp("^"+P+"$(?!\\s)",M)),E&&(n=f.lastIndex),i=o(g,A?r:f,N),A?i?(i.input=D(i.input,B),i[0]=D(i[0],B),i.index=f.lastIndex,f.lastIndex+=i[0].length):f.lastIndex=0:E&&i&&(f.lastIndex=f.global?i.index+i[0].length:n),S&&i&&i.length>1&&o(h,i[0],r,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(i[a]=void 0)})),i&&O)for(i.groups=l=d(null),a=0;a<O.length;a++)l[(c=O[a])[0]]=i[c[1]];return i}),e.exports=v},58083:function(e,t,r){"use strict";var n=r(83875);e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},22511:function(e,t,r){var n=r(79611),i=r(24792),o=r(32010),a=r(58083),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||i(e,"flags")||!o(s,e)?t:n(a,e)}},97047:function(e,t,r){var n=r(79044),i=r(98363).RegExp,o=n((function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),a=o||n((function(){return!i("a","y").sticky})),s=o||n((function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:o}},41669:function(e,t,r){var n=r(79044),i=r(98363).RegExp;e.exports=n((function(){var e=i(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},1638:function(e,t,r){var n=r(79044),i=r(98363).RegExp;e.exports=n((function(){var e=i("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},96411:function(e){var t=TypeError;e.exports=function(e){if(null==e)throw t("Can't call method on "+e);return e}},10420:function(e){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},57323:function(e,t,r){"use strict";var n=r(22773),i=r(86385),o=r(52280),a=r(7493),s=o("species");e.exports=function(e){var t=n(e),r=i.f;a&&t&&!t[s]&&r(t,s,{configurable:!0,get:function(){return this}})}},60878:function(e,t,r){var n=r(86385).f,i=r(24792),o=r(52280)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!i(e,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(62359),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.23.1",mode:n?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.1/LICENSE",source:"https://github.com/zloirock/core-js"})},7270:function(e,t,r){var n=r(83875),i=r(43327),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(88697),i=r(14229),o=r(28967),a=r(96411),s=n("".charAt),u=n("".charCodeAt),l=n("".slice),c=function(e){return function(t,r){var n,c,d=o(a(t)),p=i(r),f=d.length;return p<0||p>=f?e?"":void 0:(n=u(d,p))<55296||n>56319||p+1===f||(c=u(d,p+1))<56320||c>57343?e?s(d,p):n:e?l(d,p,p+2):c-56320+(n-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},26031:function(e,t,r){"use strict";var n=r(14229),i=r(28967),o=r(96411),a=RangeError;e.exports=function(e){var t=i(o(this)),r="",s=n(e);if(s<0||s==1/0)throw a("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(t+=t))1&s&&(r+=t);return r}},68487:function(e,t,r){var n=r(55316).PROPER,i=r(79044),o=r(2569);e.exports=function(e){return i((function(){return!!o[e]()||"​…᠎"!=="​…᠎"[e]()||n&&o[e].name!==e}))}},10287:function(e,t,r){var n=r(88697),i=r(96411),o=r(28967),a=r(2569),s=n("".replace),u="["+a+"]",l=RegExp("^"+u+u+"*"),c=RegExp(u+u+"*$"),d=function(e){return function(t){var r=o(i(t));return 1&e&&(r=s(r,l,"")),2&e&&(r=s(r,c,"")),r}};e.exports={start:d(1),end:d(2),trim:d(3)}},84643:function(e,t,r){var n,i,o,a,s=r(98363),u=r(63530),l=r(98166),c=r(75277),d=r(24792),p=r(79044),f=r(47055),m=r(15629),h=r(92750),g=r(27687),v=r(53121),b=r(93921),y=s.setImmediate,w=s.clearImmediate,D=s.process,E=s.Dispatch,C=s.Function,S=s.MessageChannel,I=s.String,x=0,O={},A="onreadystatechange";try{n=s.location}catch(k){}var M=function(e){if(d(O,e)){var t=O[e];delete O[e],t()}},P=function(e){return function(){M(e)}},B=function(e){M(e.data)},N=function(e){s.postMessage(I(e),n.protocol+"//"+n.host)};y&&w||(y=function(e){g(arguments.length,1);var t=c(e)?e:C(e),r=m(arguments,1);return O[++x]=function(){u(t,void 0,r)},i(x),x},w=function(e){delete O[e]},b?i=function(e){D.nextTick(P(e))}:E&&E.now?i=function(e){E.now(P(e))}:S&&!v?(a=(o=new S).port2,o.port1.onmessage=B,i=l(a.postMessage,a)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&n&&"file:"!==n.protocol&&!p(N)?(i=N,s.addEventListener("message",B,!1)):i=A in h("script")?function(e){f.appendChild(h("script")).onreadystatechange=function(){f.removeChild(this),M(e)}}:function(e){setTimeout(P(e),0)}),e.exports={set:y,clear:w}},41655:function(e,t,r){var n=r(88697);e.exports=n(1..valueOf)},32565:function(e,t,r){var n=r(14229),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))}},14229:function(e,t,r){var n=r(78300);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},35108:function(e,t,r){var n=r(14229),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},30744:function(e,t,r){var n=r(96411),i=Object;e.exports=function(e){return i(n(e))}},21893:function(e,t,r){var n=r(79611),i=r(52786),o=r(66681),a=r(97219),s=r(17141),u=r(52280),l=TypeError,c=u("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var r,u=a(e,c);if(u){if(void 0===t&&(t="default"),r=n(u,e,t),!i(r)||o(r))return r;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},383:function(e,t,r){var n=r(21893),i=r(66681);e.exports=function(e){var t=n(e,"string");return i(t)?t:t+""}},57301:function(e,t,r){var n={};n[r(52280)("toStringTag")]="z",e.exports="[object z]"===String(n)},28967:function(e,t,r){var n=r(36994),i=String;e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return i(e)}},28768:function(e){var t=String;e.exports=function(e){try{return t(e)}catch(r){return"Object"}}},34524:function(e,t,r){var n=r(88697),i=0,o=Math.random(),a=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},189:function(e,t,r){var n=r(3850);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},51010:function(e,t,r){var n=r(7493),i=r(79044);e.exports=n&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},27687:function(e){var t=TypeError;e.exports=function(e,r){if(e<r)throw t("Not enough arguments");return e}},52280:function(e,t,r){var n=r(98363),i=r(53580),o=r(24792),a=r(34524),s=r(3850),u=r(189),l=i("wks"),c=n.Symbol,d=c&&c.for,p=u?c:c&&c.withoutSetter||a;e.exports=function(e){if(!o(l,e)||!s&&"string"!=typeof l[e]){var t="Symbol."+e;s&&o(c,e)?l[e]=c[e]:l[e]=u&&d?d(t):p(t)}return l[e]}},2569:function(e){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},59789:function(e,t,r){"use strict";var n=r(19882),i=r(92613),o=r(30744),a=r(47046),s=r(14229),u=r(80150);n({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=o(this),r=a(t),n=u(t,0);return n.length=i(n,t,t,r,0,void 0===e?1:s(e)),n}})},18183:function(e,t,r){"use strict";var n=r(19882),i=r(37190).includes,o=r(79044),a=r(6677);n({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},54883:function(e,t,r){"use strict";var n=r(29580),i=r(6677),o=r(44818),a=r(20821),s=r(86385).f,u=r(61495),l=r(21178),c=r(7493),d="Array Iterator",p=a.set,f=a.getterFor(d);e.exports=u(Array,"Array",(function(e,t){p(this,{type:d,target:n(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values");var m=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!l&&c&&"values"!==m.name)try{s(m,"name",{value:"values"})}catch(h){}},193:function(e,t,r){"use strict";var n=r(19882),i=r(86596).left,o=r(54324),a=r(11197),s=r(93921);n({target:"Array",proto:!0,forced:!o("reduce")||!s&&a>79&&a<83},{reduce:function(e){var t=arguments.length;return i(this,e,t,t>1?arguments[1]:void 0)}})},68502:function(e,t,r){r(6677)("flat")},12798:function(e,t,r){"use strict";var n=r(19882),i=r(88697),o=r(14229),a=r(41655),s=r(26031),u=r(79044),l=RangeError,c=String,d=Math.floor,p=i(s),f=i("".slice),m=i(1..toFixed),h=function(e,t,r){return 0===t?r:t%2==1?h(e,t-1,r*e):h(e*e,t/2,r)},g=function(e,t,r){for(var n=-1,i=r;++n<6;)i+=t*e[n],e[n]=i%1e7,i=d(i/1e7)},v=function(e,t){for(var r=6,n=0;--r>=0;)n+=e[r],e[r]=d(n/t),n=n%t*1e7},b=function(e){for(var t=6,r="";--t>=0;)if(""!==r||0===t||0!==e[t]){var n=c(e[t]);r=""===r?n:r+p("0",7-n.length)+n}return r};n({target:"Number",proto:!0,forced:u((function(){return"0.000"!==m(8e-5,3)||"1"!==m(.9,0)||"1.25"!==m(1.255,2)||"1000000000000000128"!==m(0xde0b6b3a7640080,0)}))||!u((function(){m({})}))},{toFixed:function(e){var t,r,n,i,s=a(this),u=o(e),d=[0,0,0,0,0,0],m="",y="0";if(u<0||u>20)throw l("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return c(s);if(s<0&&(m="-",s=-s),s>1e-21)if(r=(t=function(e){for(var t=0,r=e;r>=4096;)t+=12,r/=4096;for(;r>=2;)t+=1,r/=2;return t}(s*h(2,69,1))-69)<0?s*h(2,-t,1):s/h(2,t,1),r*=4503599627370496,(t=52-t)>0){for(g(d,0,r),n=u;n>=7;)g(d,1e7,0),n-=7;for(g(d,h(10,n,1),0),n=t-1;n>=23;)v(d,1<<23),n-=23;v(d,1<<n),g(d,1,1),v(d,2),y=b(d)}else g(d,0,r),g(d,1<<-t,0),y=b(d)+p("0",u);return y=u>0?m+((i=y.length)<=u?"0."+p("0",u-i)+y:f(y,0,i-u)+"."+f(y,i-u)):m+y}})},33130:function(e,t,r){var n=r(19882),i=r(45856);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},11592:function(e,t,r){var n=r(19882),i=r(44762);n({global:!0,forced:parseFloat!=i},{parseFloat:i})},38472:function(e,t,r){var n=r(19882),i=r(35399);n({global:!0,forced:parseInt!=i},{parseInt:i})},1321:function(e,t,r){"use strict";var n=r(19882),i=r(79611),o=r(97676),a=r(29269),s=r(74443),u=r(5166);n({target:"Promise",stat:!0,forced:r(99581)},{all:function(e){var t=this,r=a.f(t),n=r.resolve,l=r.reject,c=s((function(){var r=o(t.resolve),a=[],s=0,c=1;u(e,(function(e){var o=s++,u=!1;c++,i(r,t,e).then((function(e){u||(u=!0,a[o]=e,--c||n(a))}),l)})),--c||n(a)}));return c.error&&l(c.value),r.promise}})},10865:function(e,t,r){"use strict";var n=r(19882),i=r(21178),o=r(35182).CONSTRUCTOR,a=r(25988),s=r(22773),u=r(75277),l=r(50403),c=a&&a.prototype;if(n({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&u(a)){var d=s("Promise").prototype.catch;c.catch!==d&&l(c,"catch",d,{unsafe:!0})}},95999:function(e,t,r){"use strict";var n,i,o,a=r(19882),s=r(21178),u=r(93921),l=r(98363),c=r(79611),d=r(50403),p=r(22412),f=r(60878),m=r(57323),h=r(97676),g=r(75277),v=r(52786),b=r(9519),y=r(7270),w=r(84643).set,D=r(71800),E=r(46271),C=r(74443),S=r(12423),I=r(20821),x=r(25988),O=r(35182),A=r(29269),M="Promise",P=O.CONSTRUCTOR,B=O.REJECTION_EVENT,N=O.SUBCLASSING,k=I.getterFor(M),T=I.set,j=x&&x.prototype,L=x,F=j,R=l.TypeError,_=l.document,Z=l.process,H=A.f,W=H,U=!!(_&&_.createEvent&&l.dispatchEvent),G="unhandledrejection",z=function(e){var t;return!(!v(e)||!g(t=e.then))&&t},q=function(e,t){var r,n,i,o=t.value,a=1==t.state,s=a?e.ok:e.fail,u=e.resolve,l=e.reject,d=e.domain;try{s?(a||(2===t.rejection&&X(t),t.rejection=1),!0===s?r=o:(d&&d.enter(),r=s(o),d&&(d.exit(),i=!0)),r===e.promise?l(R("Promise-chain cycle")):(n=z(r))?c(n,r,u,l):u(r)):l(o)}catch(p){d&&!i&&d.exit(),l(p)}},V=function(e,t){e.notified||(e.notified=!0,D((function(){for(var r,n=e.reactions;r=n.get();)q(r,e);e.notified=!1,t&&!e.rejection&&Y(e)})))},J=function(e,t,r){var n,i;U?((n=_.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),l.dispatchEvent(n)):n={promise:t,reason:r},!B&&(i=l["on"+e])?i(n):e===G&&E("Unhandled promise rejection",r)},Y=function(e){c(w,l,(function(){var t,r=e.facade,n=e.value;if(Q(e)&&(t=C((function(){u?Z.emit("unhandledRejection",n,r):J(G,r,n)})),e.rejection=u||Q(e)?2:1,t.error))throw t.value}))},Q=function(e){return 1!==e.rejection&&!e.parent},X=function(e){c(w,l,(function(){var t=e.facade;u?Z.emit("rejectionHandled",t):J("rejectionhandled",t,e.value)}))},K=function(e,t,r){return function(n){e(t,n,r)}},$=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,V(e,!0))},ee=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw R("Promise can't be resolved itself");var n=z(t);n?D((function(){var r={done:!1};try{c(n,t,K(ee,r,e),K($,r,e))}catch(i){$(r,i,e)}})):(e.value=t,e.state=1,V(e,!1))}catch(i){$({done:!1},i,e)}}};if(P&&(F=(L=function(e){b(this,F),h(e),c(n,this);var t=k(this);try{e(K(ee,t),K($,t))}catch(r){$(t,r)}}).prototype,(n=function(e){T(this,{type:M,done:!1,notified:!1,parent:!1,reactions:new S,rejection:!1,state:0,value:void 0})}).prototype=d(F,"then",(function(e,t){var r=k(this),n=H(y(this,L));return r.parent=!0,n.ok=!g(e)||e,n.fail=g(t)&&t,n.domain=u?Z.domain:void 0,0==r.state?r.reactions.add(n):D((function(){q(n,r)})),n.promise})),i=function(){var e=new n,t=k(e);this.promise=e,this.resolve=K(ee,t),this.reject=K($,t)},A.f=H=function(e){return e===L||undefined===e?new i(e):W(e)},!s&&g(x)&&j!==Object.prototype)){o=j.then,N||d(j,"then",(function(e,t){var r=this;return new L((function(e,t){c(o,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete j.constructor}catch(te){}p&&p(j,F)}a({global:!0,constructor:!0,wrap:!0,forced:P},{Promise:L}),f(L,M,!1,!0),m(M)},35054:function(e,t,r){r(95999),r(1321),r(10865),r(77688),r(36055),r(9240)},77688:function(e,t,r){"use strict";var n=r(19882),i=r(79611),o=r(97676),a=r(29269),s=r(74443),u=r(5166);n({target:"Promise",stat:!0,forced:r(99581)},{race:function(e){var t=this,r=a.f(t),n=r.reject,l=s((function(){var a=o(t.resolve);u(e,(function(e){i(a,t,e).then(r.resolve,n)}))}));return l.error&&n(l.value),r.promise}})},36055:function(e,t,r){"use strict";var n=r(19882),i=r(79611),o=r(29269);n({target:"Promise",stat:!0,forced:r(35182).CONSTRUCTOR},{reject:function(e){var t=o.f(this);return i(t.reject,void 0,e),t.promise}})},9240:function(e,t,r){"use strict";var n=r(19882),i=r(22773),o=r(21178),a=r(25988),s=r(35182).CONSTRUCTOR,u=r(11621),l=i("Promise"),c=o&&!s;n({target:"Promise",stat:!0,forced:o||s},{resolve:function(e){return u(c&&this===l?a:this,e)}})},72975:function(e,t,r){var n=r(7493),i=r(98363),o=r(88697),a=r(86291),s=r(59250),u=r(45899),l=r(87994).f,c=r(32010),d=r(42622),p=r(28967),f=r(22511),m=r(97047),h=r(79557),g=r(50403),v=r(79044),b=r(24792),y=r(20821).enforce,w=r(57323),D=r(52280),E=r(41669),C=r(1638),S=D("match"),I=i.RegExp,x=I.prototype,O=i.SyntaxError,A=o(x.exec),M=o("".charAt),P=o("".replace),B=o("".indexOf),N=o("".slice),k=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,T=/a/g,j=/a/g,L=new I(T)!==T,F=m.MISSED_STICKY,R=m.UNSUPPORTED_Y,_=n&&(!L||F||E||C||v((function(){return j[S]=!1,I(T)!=T||I(j)==j||"/a/i"!=I(T,"i")})));if(a("RegExp",_)){for(var Z=function(e,t){var r,n,i,o,a,l,m=c(x,this),h=d(e),g=void 0===t,v=[],w=e;if(!m&&h&&g&&e.constructor===Z)return e;if((h||c(x,e))&&(e=e.source,g&&(t=f(w))),e=void 0===e?"":p(e),t=void 0===t?"":p(t),w=e,E&&"dotAll"in T&&(n=!!t&&B(t,"s")>-1)&&(t=P(t,/s/g,"")),r=t,F&&"sticky"in T&&(i=!!t&&B(t,"y")>-1)&&R&&(t=P(t,/y/g,"")),C&&(o=function(e){for(var t,r=e.length,n=0,i="",o=[],a={},s=!1,u=!1,l=0,c="";n<=r;n++){if("\\"===(t=M(e,n)))t+=M(e,++n);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:A(k,N(e,n+1))&&(n+=2,u=!0),i+=t,l++;continue;case">"===t&&u:if(""===c||b(a,c))throw new O("Invalid capture group name");a[c]=!0,o[o.length]=[c,l],u=!1,c="";continue}u?c+=t:i+=t}return[i,o]}(e),e=o[0],v=o[1]),a=s(I(e,t),m?this:x,Z),(n||i||v.length)&&(l=y(a),n&&(l.dotAll=!0,l.raw=Z(function(e){for(var t,r=e.length,n=0,i="",o=!1;n<=r;n++)"\\"!==(t=M(e,n))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+M(e,++n);return i}(e),r)),i&&(l.sticky=!0),v.length&&(l.groups=v)),e!==w)try{u(a,"source",""===w?"(?:)":w)}catch(D){}return a},H=l(I),W=0;H.length>W;)h(Z,I,H[W++]);x.constructor=Z,Z.prototype=x,g(i,"RegExp",Z,{constructor:!0})}w("RegExp")},39275:function(e,t,r){"use strict";var n=r(19882),i=r(99749);n({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},33290:function(e,t,r){"use strict";var n=r(55316).PROPER,i=r(50403),o=r(83875),a=r(28967),s=r(79044),u=r(22511),l="toString",c=RegExp.prototype.toString,d=s((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),p=n&&c.name!=l;(d||p)&&i(RegExp.prototype,l,(function(){var e=o(this);return"/"+a(e.source)+"/"+a(u(e))}),{unsafe:!0})},19985:function(e,t,r){"use strict";var n=r(19882),i=r(88697),o=r(21049),a=r(96411),s=r(28967),u=r(15454),l=i("".indexOf);n({target:"String",proto:!0,forced:!u("includes")},{includes:function(e){return!!~l(s(a(this)),s(o(e)),arguments.length>1?arguments[1]:void 0)}})},49379:function(e,t,r){"use strict";var n=r(19882),i=r(79611),o=r(88697),a=r(96411),s=r(75277),u=r(42622),l=r(28967),c=r(97219),d=r(22511),p=r(81373),f=r(52280),m=r(21178),h=f("replace"),g=TypeError,v=o("".indexOf),b=o("".replace),y=o("".slice),w=Math.max,D=function(e,t,r){return r>e.length?-1:""===t?r:v(e,t,r)};n({target:"String",proto:!0},{replaceAll:function(e,t){var r,n,o,f,E,C,S,I,x,O=a(this),A=0,M=0,P="";if(null!=e){if((r=u(e))&&(n=l(a(d(e))),!~v(n,"g")))throw g("`.replaceAll` does not allow non-global regexes");if(o=c(e,h))return i(o,e,O,t);if(m&&r)return b(l(O),e,t)}for(f=l(O),E=l(e),(C=s(t))||(t=l(t)),S=E.length,I=w(1,S),A=D(f,E,0);-1!==A;)x=C?l(t(E,A,f)):p(E,f,A,[],void 0,t),P+=y(f,M,A)+x,M=A+S,A=D(f,E,A+I);return M<f.length&&(P+=y(f,M)),P}})},22321:function(e,t,r){"use strict";var n=r(63530),i=r(79611),o=r(88697),a=r(81492),s=r(79044),u=r(83875),l=r(75277),c=r(14229),d=r(35108),p=r(28967),f=r(96411),m=r(13350),h=r(97219),g=r(81373),v=r(94088),b=r(52280)("replace"),y=Math.max,w=Math.min,D=o([].concat),E=o([].push),C=o("".indexOf),S=o("".slice),I="$0"==="a".replace(/./,"$0"),x=!!/./[b]&&""===/./[b]("a","$0");a("replace",(function(e,t,r){var o=x?"$":"$0";return[function(e,r){var n=f(this),o=null==e?void 0:h(e,b);return o?i(o,e,n,r):i(t,p(n),e,r)},function(e,i){var a=u(this),s=p(e);if("string"==typeof i&&-1===C(i,o)&&-1===C(i,"$<")){var f=r(t,a,s,i);if(f.done)return f.value}var h=l(i);h||(i=p(i));var b=a.global;if(b){var I=a.unicode;a.lastIndex=0}for(var x=[];;){var O=v(a,s);if(null===O)break;if(E(x,O),!b)break;""===p(O[0])&&(a.lastIndex=m(s,d(a.lastIndex),I))}for(var A,M="",P=0,B=0;B<x.length;B++){for(var N=p((O=x[B])[0]),k=y(w(c(O.index),s.length),0),T=[],j=1;j<O.length;j++)E(T,void 0===(A=O[j])?A:String(A));var L=O.groups;if(h){var F=D([N],T,k,s);void 0!==L&&E(F,L);var R=p(n(i,void 0,F))}else R=g(N,s,k,T,L,i);k>=P&&(M+=S(s,P,k)+R,P=k+N.length)}return M+S(s,P)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!I||x)},23528:function(e,t,r){"use strict";var n=r(79611),i=r(81492),o=r(83875),a=r(96411),s=r(10420),u=r(28967),l=r(97219),c=r(94088);i("search",(function(e,t,r){return[function(t){var r=a(this),i=null==t?void 0:l(t,e);return i?n(i,t,r):new RegExp(t)[e](u(r))},function(e){var n=o(this),i=u(e),a=r(t,n,i);if(a.done)return a.value;var l=n.lastIndex;s(l,0)||(n.lastIndex=0);var d=c(n,i);return s(n.lastIndex,l)||(n.lastIndex=l),null===d?-1:d.index}]}))},67838:function(e,t,r){"use strict";var n=r(63530),i=r(79611),o=r(88697),a=r(81492),s=r(42622),u=r(83875),l=r(96411),c=r(7270),d=r(13350),p=r(35108),f=r(28967),m=r(97219),h=r(58990),g=r(94088),v=r(99749),b=r(97047),y=r(79044),w=b.UNSUPPORTED_Y,D=4294967295,E=Math.min,C=[].push,S=o(/./.exec),I=o(C),x=o("".slice),O=!y((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]}));a("split",(function(e,t,r){var o;return o="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,r){var o=f(l(this)),a=void 0===r?D:r>>>0;if(0===a)return[];if(void 0===e)return[o];if(!s(e))return i(t,o,e,a);for(var u,c,d,p=[],m=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),g=0,b=new RegExp(e.source,m+"g");(u=i(v,b,o))&&!((c=b.lastIndex)>g&&(I(p,x(o,g,u.index)),u.length>1&&u.index<o.length&&n(C,p,h(u,1)),d=u[0].length,g=c,p.length>=a));)b.lastIndex===u.index&&b.lastIndex++;return g===o.length?!d&&S(b,"")||I(p,""):I(p,x(o,g)),p.length>a?h(p,0,a):p}:"0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:i(t,this,e,r)}:t,[function(t,r){var n=l(this),a=null==t?void 0:m(t,e);return a?i(a,t,n,r):i(o,f(n),t,r)},function(e,n){var i=u(this),a=f(e),s=r(o,i,a,n,o!==t);if(s.done)return s.value;var l=c(i,RegExp),m=i.unicode,h=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(w?"g":"y"),v=new l(w?"^(?:"+i.source+")":i,h),b=void 0===n?D:n>>>0;if(0===b)return[];if(0===a.length)return null===g(v,a)?[a]:[];for(var y=0,C=0,S=[];C<a.length;){v.lastIndex=w?0:C;var O,A=g(v,w?x(a,C):a);if(null===A||(O=E(p(v.lastIndex+(w?C:0)),a.length))===y)C=d(a,C,m);else{if(I(S,x(a,y,C)),S.length===b)return S;for(var M=1;M<=A.length-1;M++)if(I(S,A[M]),S.length===b)return S;C=y=O}}return I(S,x(a,y)),S}]}),!O,w)},29897:function(e,t,r){"use strict";var n=r(19882),i=r(10287).trim;n({target:"String",proto:!0,forced:r(68487)("trim")},{trim:function(){return i(this)}})},86632:function(e,t,r){"use strict";var n=r(19882),i=r(7493),o=r(98363),a=r(88697),s=r(24792),u=r(75277),l=r(32010),c=r(28967),d=r(86385).f,p=r(73870),f=o.Symbol,m=f&&f.prototype;if(i&&u(f)&&(!("description"in m)||void 0!==f().description)){var h={},g=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),t=l(m,this)?new f(e):void 0===e?f():f(e);return""===e&&(h[t]=!0),t};p(g,f),g.prototype=m,m.constructor=g;var v="Symbol(test)"==String(f("test")),b=a(m.toString),y=a(m.valueOf),w=/^Symbol\((.*)\)[^)]+$/,D=a("".replace),E=a("".slice);d(m,"description",{configurable:!0,get:function(){var e=y(this),t=b(e);if(s(h,e))return"";var r=v?E(t,7,-1):D(t,w,"$1");return""===r?void 0:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:g})}},75405:function(e,t,r){r(49379)},68995:function(e,t,r){var n=r(98363),i=r(12848),o=r(79189),a=r(54883),s=r(45899),u=r(52280),l=u("iterator"),c=u("toStringTag"),d=a.values,p=function(e,t){if(e){if(e[l]!==d)try{s(e,l,d)}catch(n){e[l]=d}if(e[c]||s(e,c,t),i[t])for(var r in a)if(e[r]!==a[r])try{s(e,r,a[r])}catch(n){e[r]=a[r]}}};for(var f in i)p(n[f]&&n[f].prototype,f);p(o,"DOMTokenList")},87191:function(e,t,r){"use strict";var n=r(19882),i=r(79611);n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})},63719:function(e,t,r){var n=r(22020);e.exports=n},97759:function(e,t,r){"use strict";r.d(t,{Dz:function(){return i},Oq:function(){return p},cv:function(){return c},dO:function(){return u},iz:function(){return f},jn:function(){return o},oc:function(){return d}});var n=r(53499),i=function(e){var t=e.top,r=e.right,n=e.bottom,i=e.left;return{top:t,right:r,bottom:n,left:i,width:r-i,height:n-t,x:i,y:t,center:{x:(r+i)/2,y:(n+t)/2}}},o=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},a=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},s={top:0,right:0,bottom:0,left:0},u=function(e){var t=e.borderBox,r=e.margin,n=void 0===r?s:r,u=e.border,l=void 0===u?s:u,c=e.padding,d=void 0===c?s:c,p=i(o(t,n)),f=i(a(t,l)),m=i(a(f,d));return{marginBox:p,borderBox:i(t),paddingBox:f,contentBox:m,margin:n,border:l,padding:d}},l=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var r=Number(t);return isNaN(r)&&(0,n.Z)(!1),r},c=function(e,t){var r,n,i=e.borderBox,o=e.border,a=e.margin,s=e.padding,l=(n=t,{top:(r=i).top+n.y,left:r.left+n.x,bottom:r.bottom+n.y,right:r.right+n.x});return u({borderBox:l,border:o,margin:a,padding:s})},d=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),c(e,t)},p=function(e,t){var r={top:l(t.marginTop),right:l(t.marginRight),bottom:l(t.marginBottom),left:l(t.marginLeft)},n={top:l(t.paddingTop),right:l(t.paddingRight),bottom:l(t.paddingBottom),left:l(t.paddingLeft)},i={top:l(t.borderTopWidth),right:l(t.borderRightWidth),bottom:l(t.borderBottomWidth),left:l(t.borderLeftWidth)};return u({borderBox:e,margin:r,padding:n,border:i})},f=function(e){var t=e.getBoundingClientRect(),r=window.getComputedStyle(e);return p(t,r)}},19141:function(e){"use strict";e.exports=function(e){if(e=String(e||""),n.test(e))return"rtl";if(i.test(e))return"ltr";return"neutral"};var t="֑-߿יִ-﷽ﹰ-ﻼ",r="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-",n=new RegExp("^[^"+r+"]*["+t+"]"),i=new RegExp("^[^"+t+"]*["+r+"]")},43613:function(e){"use strict";
9
  /*!
10
  * escape-html
11
  * Copyright(c) 2012-2013 TJ Holowaychuk
70
  *
71
  * This source code is licensed under the MIT license found in the
72
  * LICENSE file in the root directory of this source tree.