Pods – Custom Content Types and Fields - Version 2.9.10

Version Description

  • December 13th, 2022 =

  • Performance: Major performance improvements have been made to decrease queries in more areas of Pods and reduce overall load on any page. (@sc0ttkclark)

  • Added: New WP-CLI tool command: wp pods tools delete-all-content <pod> [--test] (@sc0ttkclark)

  • Added: New WP-CLI tool command: wp pods tools delete-all-groups-and-fields <pod> [--test] (@sc0ttkclark)

  • Added: New WP-CLI tool command: wp pods tools delete-all-relationship-data <pod> [--fields] [--test] (@sc0ttkclark)

  • Added: New WP-CLI tool command: wp pods tools repair-groups-and-fields <pod> [--test] (@sc0ttkclark)

  • Added: Pods Admin > Tools and Pod Resets can now be previewed before you run them. (@sc0ttkclark)

  • Tweak: Added debug backtrace to DB query errors as an admin, just add ?pods_debug_backtrace=1 to the URL to enable that to find out more details about where the query came from. (@sc0ttkclark)

  • Tweak: Relationships related to a Post Type now have an option to specify "Any Status" as an option for which posts to show. (@sc0ttkclark)

  • Fixed: Advanced filters modal shows empty input fields as expected now for Advanced Content Types. #6949 (@sc0ttkclark)

  • Fixed: Implemented num_prefix in Pods::ui() for more customization capabilities. (@sc0ttkclark)

  • Fixed: Reduce load on block editor screen for Pods Blocks that have no preview. (@sc0ttkclark)

  • Fixed: PHP 8.0+ compatibility changes have been made to bypass PHP deprecation notices. #6579 (@sc0ttkclark)

  • Fixed: All currently known PHP 8.0+ deprecation notices have been resolved. (@sc0ttkclark)

  • Fixed: Removed %%%s%% usage in prepared LIKE queries for PodsTermSplitting class. (@sc0ttkclark)

  • Fixed: Pods Auto Templates now checks whether a post is password protected (and needs auth) before outputting the template. #6962 (@sc0ttkclark)

  • Fixed: Excluded Pods config post types from deletion when post author is deleted. #6938 (@sc0ttkclark)

  • Fixed: Settings values now get cached and cleared correctly between saves. #6964 (@sc0ttkclark)

  • Fixed: Admin Columns integration no longer throws unaught type errors for field values that contain an array. #6965 #6966 (@therealgilles, @sc0ttkclark)

  • Fixed: Block editor inspector controls for Pods Blocks that have dropdowns now show as full width as expected. (@sc0ttkclark)

Download this release

Release Info

Developer sc0ttkclark
Plugin Icon 128x128 Pods – Custom Content Types and Fields
Version 2.9.10
Comparing to
See all releases

Code changes from version 2.9.9 to 2.9.10

Files changed (82) hide show
  1. changelog.txt +35 -0
  2. classes/Pods.php +18 -6
  3. classes/PodsAPI.php +103 -33
  4. classes/PodsAdmin.php +4 -4
  5. classes/PodsArray.php +4 -2
  6. classes/PodsData.php +74 -26
  7. classes/PodsForm.php +5 -3
  8. classes/PodsInit.php +38 -35
  9. classes/PodsMeta.php +118 -84
  10. classes/PodsRESTHandlers.php +1 -1
  11. classes/PodsTermSplitting.php +8 -8
  12. classes/PodsUI.php +31 -46
  13. classes/PodsView.php +46 -35
  14. classes/cli/Pods_CLI_Command.php +6 -6
  15. classes/fields/avatar.php +18 -10
  16. classes/fields/file.php +12 -2
  17. classes/fields/pick.php +47 -7
  18. classes/widgets/PodsWidgetField.php +4 -4
  19. classes/widgets/PodsWidgetForm.php +5 -5
  20. classes/widgets/PodsWidgetList.php +7 -7
  21. classes/widgets/PodsWidgetSingle.php +5 -5
  22. classes/widgets/PodsWidgetView.php +2 -2
  23. components/Advanced-Content-Types.php +0 -1
  24. components/Builder/modules/field/PodsBuilderModuleField.php +3 -3
  25. components/Builder/modules/form/PodsBuilderModuleForm.php +5 -5
  26. components/Builder/modules/list/PodsBuilderModuleList.php +7 -7
  27. components/Builder/modules/single/PodsBuilderModuleSingle.php +4 -4
  28. components/Builder/modules/view/PodsBuilderModuleView.php +3 -3
  29. components/Migrate-Packages/Migrate-Packages.php +3 -3
  30. components/Pages.php +14 -13
  31. components/Templates/Templates.php +13 -12
  32. components/Templates/includes/auto-template/Pods_Templates_Auto_Template_Front_End.php +8 -1
  33. components/Templates/includes/functions-pod_reference.php +1 -1
  34. components/Templates/includes/functions-view_template.php +1 -1
  35. includes/classes.php +46 -0
  36. includes/data.php +18 -4
  37. includes/general.php +49 -13
  38. init.php +2 -2
  39. readme.txt +23 -1
  40. src/Pods/Admin/Config/Pod.php +13 -3
  41. src/Pods/Blocks/API.php +1 -8
  42. src/Pods/Blocks/Types/Base.php +51 -0
  43. src/Pods/Blocks/Types/Field.php +2 -9
  44. src/Pods/Blocks/Types/Form.php +1 -8
  45. src/Pods/Blocks/Types/Item_List.php +2 -14
  46. src/Pods/Blocks/Types/Item_Single.php +2 -14
  47. src/Pods/Blocks/Types/Item_Single_List_Fields.php +6 -13
  48. src/Pods/CLI/Commands/Playbook.php +1 -1
  49. src/Pods/CLI/Commands/Tools.php +294 -0
  50. src/Pods/CLI/Service_Provider.php +2 -0
  51. src/Pods/Config_Handler.php +13 -1
  52. src/Pods/Integrations/WPGraphQL/Connection_Resolver/Pod.php +2 -2
  53. src/Pods/REST/V1/Endpoints/Base.php +1 -1
  54. src/Pods/REST/V1/Validator/Base.php +1 -1
  55. src/Pods/Service_Provider.php +1 -0
  56. src/Pods/Tools/Base.php +136 -0
  57. src/Pods/Tools/Repair.php +102 -176
  58. src/Pods/Tools/Reset.php +284 -0
  59. src/Pods/Whatsit.php +107 -21
  60. src/Pods/Whatsit/Block.php +1 -2
  61. src/Pods/Whatsit/Block_Field.php +23 -1
  62. src/Pods/Whatsit/Field.php +1 -5
  63. src/Pods/Whatsit/Group.php +40 -39
  64. src/Pods/Whatsit/Pod.php +12 -2
  65. src/Pods/Whatsit/Storage.php +63 -1
  66. src/Pods/Whatsit/Storage/Collection.php +160 -91
  67. src/Pods/Whatsit/Storage/File.php +7 -0
  68. src/Pods/Whatsit/Storage/Post_Type.php +68 -18
  69. src/Pods/Whatsit/Store.php +366 -39
  70. src/Pods/Wisdom_Tracker.php +6 -6
  71. tribe-common/src/Tribe/Cache.php +4 -0
  72. tribe-common/src/Tribe/Data.php +4 -0
  73. tribe-common/src/Tribe/Utils/Collection_Trait.php +10 -0
  74. tribe-common/src/Tribe/Utils/Post_Thumbnail.php +4 -0
  75. tribe-common/vendor/lucatume/di52/src/tad/DI52/Container.php +4 -0
  76. ui/admin/callouts/friends_2022_30.php +1 -1
  77. ui/admin/settings-reset.php +27 -21
  78. ui/admin/settings-tools.php +11 -3
  79. ui/js/blocks/pods-blocks-api.min.asset.json +1 -1
  80. ui/js/blocks/pods-blocks-api.min.js +1 -1
  81. ui/js/dfv/pods-dfv.min.asset.json +1 -1
  82. ui/js/dfv/pods-dfv.min.js +0 -1
changelog.txt CHANGED
@@ -2,6 +2,41 @@ Found a bug? Have a great feature idea? Get on GitHub and tell us about it and w
2
 
3
  Our GitHub has the full list of all prior releases of Pods: https://github.com/pods-framework/pods/releases
4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  = 2.9.7 - September 23rd, 2022 =
6
 
7
  * Enhancement: You can now toggle every checkbox at once on the Packages > Export screen instead of just by section. (@sc0ttkclark)
2
 
3
  Our GitHub has the full list of all prior releases of Pods: https://github.com/pods-framework/pods/releases
4
 
5
+ = 2.9.10 - November 17th, 2022 =
6
+
7
+ * Performance: Major performance improvements have been made to decrease queries in more areas of Pods and reduce overall load on any page. (@sc0ttkclark)
8
+ * Tweak: Added debug backtrace to DB query errors as an admin, just add `?pods_debug_backtrace=1` to the URL to enable that to find out more details about where the query came from. (@sc0ttkclark)
9
+ * Fixed: Advanced filters modal shows empty input fields as expected now for Advanced Content Types. #6949 (@sc0ttkclark)
10
+ * Fixed: Implemented `num_prefix` in `Pods::ui()` for more customization capabilities. (@sc0ttkclark)
11
+ * Fixed: Reduce load on block editor screen for Pods Blocks that have no preview. (@sc0ttkclark)
12
+ * Fixed: PHP 8.0+ compatibility changes have been made to bypass PHP deprecation notices. #6579 (@sc0ttkclark)
13
+ * Fixed: Removed `%%%s%%` usage in prepared `LIKE` queries for PodsTermSplitting class. (@sc0ttkclark)
14
+
15
+ = 2.9.9 - October 31st, 2022 =
16
+
17
+ * Tweak: When a field has moved outside of a group, disallow deleting that group until the Pod has been saved to prevent those fields being removed/orphaned. #6940 #6937 (@zrothauser, @sc0ttkclark)
18
+ * Tweak: When registering code-based fields, if you have a relationship field that you are supplying the `'data'` option for, you can now pass in a callable function (not a string or array due to back-compat) to return the options only when the data is needed instead of every page load. (@sc0ttkclark)
19
+ * Fixed: Number and currency parsing issues resolved with HTML5 inputs. #6928 #6922 (@JoryHogeveen, @sc0ttkclark)
20
+ * Fixed: Add support for `post_thumbnail._src` and `post_thumbnail._url` variations as fallbacks for the correct `post_thumbnail_src` and `post_thumbnail_url` field usage. #6935 (@sc0ttkclark)
21
+ * Fixed: Resolve issues saving Pods Pages fields. #6942 (@sc0ttkclark)
22
+ * Fixed: Number/currency simple repeatable fields now formats as expected. #6930 #6929 (@JoryHogeveen, @sc0ttkclark)
23
+ * Fixed: Update cache group usage and flush to clear Pods post type storage cache options too. (@sc0ttkclark)
24
+ * Fixed: Allow 0 as a valid option for relationship values.
25
+ * Fixed: Updated compatibility with Custom Post Types UI migration component.
26
+
27
+ = 2.9.8 - September 29th, 2022 =
28
+
29
+ * Enhancement: New `pods_config_for_field` function helps to set up consistent field objects when custom arrays are used. (@sc0ttkclark)
30
+ * Enhancement: The `pods_config_for_pod` function now handles basic Pod arrays as well. (@sc0ttkclark)
31
+ * Enhancement: New `Whatsit` object now runs the `pods_whatsit_setup` and `pods_whatsit_setup_(pod|field)` actions during setup so the objects can easily be overridden. (@sc0ttkclark)
32
+ * Enhancement: New `Field::is_separator_excluded()` method to help determine if current field is excluded from separators using `pods_serial_comma()`. (@sc0ttkclark)
33
+ * Tweak: Minor code and performance optimizations. (@sc0ttkclark)
34
+ * Fixed: Resolved PHP error registering code-based taxonomies. (@naveen17797)
35
+ * Fixed: Resolved cache that wasn't getting cleared when a Template was saved. (@sc0ttkclark)
36
+ * Fixed: oEmbed fields are editable again after fixing an issue with the readonly option. (@sc0ttkclark)
37
+ * Fixed: Help to prevent magic tag helpers from causing fatal errors when they are used improperly. (@sc0ttkclark)
38
+ * Fixed: Resolved issue with getting field values from Pods::field() for code-based relationships that have no ID. (@sc0ttkclark)
39
+
40
  = 2.9.7 - September 23rd, 2022 =
41
 
42
  * Enhancement: You can now toggle every checkbox at once on the Packages > Export screen instead of just by section. (@sc0ttkclark)
classes/Pods.php CHANGED
@@ -223,6 +223,7 @@ class Pods implements Iterator {
223
  *
224
  * @see Pods::is_valid()
225
  */
 
226
  public function valid() {
227
  return $this->is_valid();
228
  }
@@ -262,6 +263,7 @@ class Pods implements Iterator {
262
  *
263
  * @link http://www.php.net/manual/en/class.iterator.php
264
  */
 
265
  public function rewind() {
266
 
267
  if ( ! $this->iterator ) {
@@ -280,6 +282,7 @@ class Pods implements Iterator {
280
  *
281
  * @link http://www.php.net/manual/en/class.iterator.php
282
  */
 
283
  public function current() {
284
 
285
  if ( $this->iterator && $this->fetch() ) {
@@ -298,6 +301,7 @@ class Pods implements Iterator {
298
  *
299
  * @link http://www.php.net/manual/en/class.iterator.php
300
  */
 
301
  public function key() {
302
 
303
  return $this->data->row_number;
@@ -312,6 +316,7 @@ class Pods implements Iterator {
312
  *
313
  * @link http://www.php.net/manual/en/class.iterator.php
314
  */
 
315
  public function next() {
316
 
317
  $this->data->row_number ++;
@@ -4251,7 +4256,8 @@ class Pods implements Iterator {
4251
  */
4252
  public function ui( $options = null, $amend = false ) {
4253
 
4254
- $num = '';
 
4255
 
4256
  if ( empty( $options ) ) {
4257
  $options = array();
@@ -4261,12 +4267,18 @@ class Pods implements Iterator {
4261
  if ( empty( $num ) ) {
4262
  $num = '';
4263
  }
 
 
 
 
 
 
4264
  }
4265
 
4266
- $check_id = pods_v( 'id' . $num, 'get', null, true );
4267
 
4268
  // @codingStandardsIgnoreLine
4269
- if ( $this->id() != $check_id ) {
4270
  $this->fetch( $check_id );
4271
  }
4272
 
@@ -4325,8 +4337,8 @@ class Pods implements Iterator {
4325
  if ( ! current_user_can( 'pods_add_' . $this->pod ) ) {
4326
  $actions_disabled['add'] = 'add';
4327
 
4328
- if ( 'add' === pods_v( 'action' . $num ) ) {
4329
- $_GET[ 'action' . $num ] = 'manage';
4330
  }
4331
  }
4332
 
@@ -4348,7 +4360,7 @@ class Pods implements Iterator {
4348
  }//end if
4349
  }//end if
4350
 
4351
- $_GET[ 'action' . $num ] = pods_v_sanitized( 'action' . $num, 'get', pods_v( 'action', $options, 'manage' ), true );
4352
 
4353
  $index = $this->pod_data['field_id'];
4354
  $label = __( 'ID', 'pods' );
223
  *
224
  * @see Pods::is_valid()
225
  */
226
+ #[\ReturnTypeWillChange]
227
  public function valid() {
228
  return $this->is_valid();
229
  }
263
  *
264
  * @link http://www.php.net/manual/en/class.iterator.php
265
  */
266
+ #[\ReturnTypeWillChange]
267
  public function rewind() {
268
 
269
  if ( ! $this->iterator ) {
282
  *
283
  * @link http://www.php.net/manual/en/class.iterator.php
284
  */
285
+ #[\ReturnTypeWillChange]
286
  public function current() {
287
 
288
  if ( $this->iterator && $this->fetch() ) {
301
  *
302
  * @link http://www.php.net/manual/en/class.iterator.php
303
  */
304
+ #[\ReturnTypeWillChange]
305
  public function key() {
306
 
307
  return $this->data->row_number;
316
  *
317
  * @link http://www.php.net/manual/en/class.iterator.php
318
  */
319
+ #[\ReturnTypeWillChange]
320
  public function next() {
321
 
322
  $this->data->row_number ++;
4256
  */
4257
  public function ui( $options = null, $amend = false ) {
4258
 
4259
+ $num = '';
4260
+ $num_prefix = '';
4261
 
4262
  if ( empty( $options ) ) {
4263
  $options = array();
4267
  if ( empty( $num ) ) {
4268
  $num = '';
4269
  }
4270
+
4271
+ $num_prefix = pods_v_sanitized( 'num_prefix', $options, '' );
4272
+
4273
+ if ( empty( $num_prefix ) ) {
4274
+ $num_prefix = '';
4275
+ }
4276
  }
4277
 
4278
+ $check_id = pods_v( $num_prefix . 'id' . $num, 'get', null, true );
4279
 
4280
  // @codingStandardsIgnoreLine
4281
+ if ( null !== $check_id && $this->id() != $check_id ) {
4282
  $this->fetch( $check_id );
4283
  }
4284
 
4337
  if ( ! current_user_can( 'pods_add_' . $this->pod ) ) {
4338
  $actions_disabled['add'] = 'add';
4339
 
4340
+ if ( 'add' === pods_v( $num_prefix . 'action' . $num ) ) {
4341
+ $_GET[ $num_prefix . 'action' . $num ] = 'manage';
4342
  }
4343
  }
4344
 
4360
  }//end if
4361
  }//end if
4362
 
4363
+ $_GET[ $num_prefix . 'action' . $num ] = pods_v_sanitized( $num_prefix . 'action' . $num, 'get', pods_v( 'action', $options, 'manage' ), true );
4364
 
4365
  $index = $this->pod_data['field_id'];
4366
  $label = __( 'ID', 'pods' );
classes/PodsAPI.php CHANGED
@@ -1,7 +1,6 @@
1
  <?php
2
 
3
  use Pods\API\Whatsit\Value_Field;
4
- use Pods\Static_Cache;
5
  use Pods\Whatsit\Field;
6
  use Pods\Whatsit\Group;
7
  use Pods\Whatsit\Object_Field;
@@ -5426,7 +5425,7 @@ class PodsAPI {
5426
  $params->id = $this->save_wp_object( $object_type, $object_data, $meta_fields, $strict_meta_save, true, $fields_to_send );
5427
  }
5428
 
5429
- if ( ! empty( $params->id ) && 'settings' === $pod['type'] ) {
5430
  $params->id = $pod['id'];
5431
  }
5432
  }
@@ -5571,7 +5570,7 @@ class PodsAPI {
5571
  pods_cache_clear( $params->id, 'pods_items_' . $pod['name'] );
5572
 
5573
  if ( $params->clear_slug_cache && ! empty( $pod['field_slug'] ) ) {
5574
- $slug = pods( $pod['name'], $params->id )->field( $pod['field_slug'] );
5575
 
5576
  if ( 0 < strlen( $slug ) ) {
5577
  pods_cache_clear( $slug, 'pods_items_' . $pod['name'] );
@@ -5697,7 +5696,7 @@ class PodsAPI {
5697
  $field_table_info = $field['table_info'];
5698
 
5699
  if ( ! empty( $field_table_info['pod'] ) && ! empty( $field_table_info['pod']['name'] ) ) {
5700
- $search_data = pods( $field_table_info['pod']['name'] );
5701
 
5702
  $data_mode = 'pods';
5703
  } else {
@@ -5929,7 +5928,7 @@ class PodsAPI {
5929
 
5930
  if ( ! empty( $id ) ) {
5931
  if ( ! isset( $changed_pods_cache[ $pod ] ) ) {
5932
- $pod_object = pods( $pod );
5933
 
5934
  if ( ! $pod_object || ! $pod_object->is_defined() ) {
5935
  return [];
@@ -6524,7 +6523,7 @@ class PodsAPI {
6524
  return pods_error( __( 'Pod not found', 'pods' ), $this );
6525
  }
6526
 
6527
- $pod = pods( $params->pod, $params->id );
6528
 
6529
  $params->pod = $pod->pod;
6530
  $params->pod_id = $pod->pod_id;
@@ -6646,7 +6645,7 @@ class PodsAPI {
6646
 
6647
  $params = pods_sanitize( $params );
6648
 
6649
- $pod = pods( $params['pod'], $params['id'], false );
6650
 
6651
  if ( empty( $pod ) ) {
6652
  return false;
@@ -6826,7 +6825,7 @@ class PodsAPI {
6826
  $pick_object = pods_v( 'pick_object', $field );
6827
  $pick_val = pods_v( 'pick_val', $field );
6828
 
6829
- $related_pod = pods( $pick_val, null, false );
6830
 
6831
  // If this isn't a Pod, return data exactly as Pods does normally
6832
  if ( empty( $related_pod ) || empty( $related_pod->pod_data ) || ( 'pod' !== $pick_object && $pick_object !== $related_pod->pod_data['type'] ) || $related_pod->pod === $pod->pod ) {
@@ -8368,28 +8367,59 @@ class PodsAPI {
8368
  return array();
8369
  }
8370
 
8371
- // Check if we need to bypass cache automatically.
8372
- if ( ! isset( $params['bypass_cache'] ) ) {
8373
- $api_cache = pods_api_cache();
 
 
 
 
 
 
8374
 
8375
- if ( ! $api_cache ) {
8376
- $params['bypass_cache'] = true;
 
 
 
 
 
 
8377
  }
 
 
8378
  }
8379
 
8380
- $pod = $params['pod'];
8381
- $expand = $params['expand'];
8382
- $types = ! empty( $params['types'] ) ? (array) $params['types'] : PodsForm::tableless_field_types();
 
 
 
 
 
 
 
 
 
 
 
 
 
8383
 
8384
  // For each in expand, load field, fall back to load pod if an object field.
8385
  foreach ( $expand as $field_name ) {
8386
- $args = array(
8387
- 'pod' => $pod,
8388
- 'name' => $field_name,
8389
- 'type' => $types,
8390
- );
8391
 
8392
- $field = $this->load_field( $args );
 
 
 
 
 
 
 
 
8393
 
8394
  if ( ! $field instanceof Field ) {
8395
  // Check if this is an object field.
@@ -9011,7 +9041,7 @@ class PodsAPI {
9011
  return $pod;
9012
  }
9013
 
9014
- $pod = pods( $params->pod, $params->id );
9015
 
9016
  if ( pods_api_cache() ) {
9017
  pods_cache_set( $params->id, $pod, 'pods_item_object_' . $params->pod );
@@ -10189,7 +10219,11 @@ class PodsAPI {
10189
  ];
10190
 
10191
  if ( 'post_type' === $object_type && ! empty( $post_status ) ) {
10192
- $info['where_default'] = "`t`.`post_status` IN ( '" . implode( "', '", pods_sanitize( $post_status ) ) . "' )";
 
 
 
 
10193
  }
10194
 
10195
  $info['orderby'] = "`t`.`menu_order`, `t`.`{$info['field_index']}`, `t`.`post_date`";
@@ -10418,7 +10452,7 @@ class PodsAPI {
10418
 
10419
  if ( ! is_array( $field ) && ! $is_field_object ) {
10420
  if ( is_string( $pod ) ) {
10421
- $pod = pods( $pod );
10422
  }
10423
 
10424
  if ( is_object( $pod ) && ! empty( $pod->fields[ $field ] ) ) {
@@ -10800,9 +10834,9 @@ class PodsAPI {
10800
 
10801
  unset( $params['params'] );
10802
 
10803
- $pod = pods( $pod, $find );
10804
  } elseif ( ! is_object( $pod ) ) {
10805
- $pod = pods( $pod, $find );
10806
  }
10807
 
10808
  $data = array();
@@ -10863,6 +10897,8 @@ class PodsAPI {
10863
  pods_transient_clear( 'pods_blocks' );
10864
  pods_transient_clear( 'pods_blocks_js' );
10865
 
 
 
10866
  if ( is_array( $pod ) || $pod instanceof Pod ) {
10867
  pods_transient_clear( 'pods_pod_' . $pod['name'] );
10868
  pods_cache_clear( $pod['name'], 'pods-class' );
@@ -10875,9 +10911,14 @@ class PodsAPI {
10875
  pods_transient_clear( 'pods_wp_cpt_ct' );
10876
  }
10877
 
10878
- pods_cache_clear( true, 'pods_post_type_storage_pod' );
10879
- pods_cache_clear( true, 'pods_post_type_storage_group' );
10880
- pods_cache_clear( true, 'pods_post_type_storage_field' );
 
 
 
 
 
10881
 
10882
  pods_static_cache_clear( true, __CLASS__ );
10883
  pods_static_cache_clear( true, __CLASS__ . '/table_info_cache' );
@@ -10888,6 +10929,13 @@ class PodsAPI {
10888
  pods_static_cache_clear( true, PodsField_Pick::class . '/field_data' );
10889
  pods_static_cache_clear( true, 'pods_svg_icon/base64' );
10890
  pods_static_cache_clear( true, 'pods_svg_icon/svg' );
 
 
 
 
 
 
 
10891
 
10892
  pods_init()->refresh_existing_content_types_cache( true );
10893
 
@@ -11229,6 +11277,8 @@ class PodsAPI {
11229
  }
11230
  }
11231
 
 
 
11232
  if ( isset( $params['options'] ) ) {
11233
  $params['args'] = $params['options'];
11234
 
@@ -11253,6 +11303,8 @@ class PodsAPI {
11253
  }
11254
  }
11255
 
 
 
11256
  if ( ! empty( $params['return_type'] ) ) {
11257
  $return_type = $params['return_type'];
11258
 
@@ -11264,19 +11316,37 @@ class PodsAPI {
11264
  $params['names_ids'] = true;
11265
  } elseif ( 'ids' === $return_type ) {
11266
  $params['ids'] = true;
 
 
11267
  } elseif ( 'count' === $return_type ) {
11268
  $params['count'] = true;
 
 
11269
  }
11270
  }
11271
 
11272
  $storage_type = ! empty( $params['object_storage_type'] ) ? $params['object_storage_type'] : $this->get_default_object_storage_type();
11273
 
 
 
 
 
 
 
 
 
11274
  $object_collection = Pods\Whatsit\Store::get_instance();
11275
 
11276
- /** @var Pods\Whatsit\Storage\Post_Type $post_type_storage */
11277
- $post_type_storage = $object_collection->get_storage_object( $storage_type );
 
 
 
11278
 
11279
- $objects = $post_type_storage->find( $params );
 
 
 
11280
 
11281
  if ( ! empty( $params['auto_setup'] ) && ! $objects ) {
11282
  $type = pods_v( 'type', $params, null );
1
  <?php
2
 
3
  use Pods\API\Whatsit\Value_Field;
 
4
  use Pods\Whatsit\Field;
5
  use Pods\Whatsit\Group;
6
  use Pods\Whatsit\Object_Field;
5425
  $params->id = $this->save_wp_object( $object_type, $object_data, $meta_fields, $strict_meta_save, true, $fields_to_send );
5426
  }
5427
 
5428
+ if ( 'settings' === $pod['type'] ) {
5429
  $params->id = $pod['id'];
5430
  }
5431
  }
5570
  pods_cache_clear( $params->id, 'pods_items_' . $pod['name'] );
5571
 
5572
  if ( $params->clear_slug_cache && ! empty( $pod['field_slug'] ) ) {
5573
+ $slug = pods_get_instance( $pod['name'], $params->id )->field( $pod['field_slug'] );
5574
 
5575
  if ( 0 < strlen( $slug ) ) {
5576
  pods_cache_clear( $slug, 'pods_items_' . $pod['name'] );
5696
  $field_table_info = $field['table_info'];
5697
 
5698
  if ( ! empty( $field_table_info['pod'] ) && ! empty( $field_table_info['pod']['name'] ) ) {
5699
+ $search_data = pods_get_instance( $field_table_info['pod']['name'] );
5700
 
5701
  $data_mode = 'pods';
5702
  } else {
5928
 
5929
  if ( ! empty( $id ) ) {
5930
  if ( ! isset( $changed_pods_cache[ $pod ] ) ) {
5931
+ $pod_object = pods_get_instance( $pod );
5932
 
5933
  if ( ! $pod_object || ! $pod_object->is_defined() ) {
5934
  return [];
6523
  return pods_error( __( 'Pod not found', 'pods' ), $this );
6524
  }
6525
 
6526
+ $pod = pods_get_instance( $params->pod, $params->id );
6527
 
6528
  $params->pod = $pod->pod;
6529
  $params->pod_id = $pod->pod_id;
6645
 
6646
  $params = pods_sanitize( $params );
6647
 
6648
+ $pod = pods_get_instance( $params['pod'], $params['id'], false );
6649
 
6650
  if ( empty( $pod ) ) {
6651
  return false;
6825
  $pick_object = pods_v( 'pick_object', $field );
6826
  $pick_val = pods_v( 'pick_val', $field );
6827
 
6828
+ $related_pod = pods_get_instance( $pick_val, null, false );
6829
 
6830
  // If this isn't a Pod, return data exactly as Pods does normally
6831
  if ( empty( $related_pod ) || empty( $related_pod->pod_data ) || ( 'pod' !== $pick_object && $pick_object !== $related_pod->pod_data['type'] ) || $related_pod->pod === $pod->pod ) {
8367
  return array();
8368
  }
8369
 
8370
+ $pod = $params['pod'];
8371
+ $expand = $params['expand'];
8372
+
8373
+ // Bypass other loading processes and use current pod.
8374
+ if ( 1 === count( $expand ) ) {
8375
+ $field_name = current( $expand );
8376
+
8377
+ // Get the pod data.
8378
+ $pod_data = $this->pod_data ? $this->pod_data : $this->load_pod( $pod );
8379
 
8380
+ if ( $pod_data ) {
8381
+ $field = $pod_data->get_field( $field_name );
8382
+
8383
+ if ( $field ) {
8384
+ return [
8385
+ $field,
8386
+ ];
8387
+ }
8388
  }
8389
+
8390
+ return [];
8391
  }
8392
 
8393
+ $types = ! empty( $params['types'] ) ? (array) $params['types'] : PodsForm::tableless_field_types();
8394
+
8395
+ $known_object_fields = [
8396
+ 'ID' => true,
8397
+ 'id' => true,
8398
+ 'post_name' => true,
8399
+ 'post_title' => true,
8400
+ 'post_content' => true,
8401
+ 'post_status' => true,
8402
+ 'post_type' => true,
8403
+ 'term_id' => true,
8404
+ 'term_taxonomy_id' => true,
8405
+ 'name' => true,
8406
+ 'user_login' => true,
8407
+ 'display_name' => true,
8408
+ ];
8409
 
8410
  // For each in expand, load field, fall back to load pod if an object field.
8411
  foreach ( $expand as $field_name ) {
8412
+ $field = null;
 
 
 
 
8413
 
8414
+ if ( ! isset( $known_object_fields[ $field_name ] ) ) {
8415
+ $args = array(
8416
+ 'pod' => $pod,
8417
+ 'name' => $field_name,
8418
+ 'type' => $types,
8419
+ );
8420
+
8421
+ $field = $this->load_field( $args );
8422
+ }
8423
 
8424
  if ( ! $field instanceof Field ) {
8425
  // Check if this is an object field.
9041
  return $pod;
9042
  }
9043
 
9044
+ $pod = pods_get_instance( $params->pod, $params->id );
9045
 
9046
  if ( pods_api_cache() ) {
9047
  pods_cache_set( $params->id, $pod, 'pods_item_object_' . $params->pod );
10219
  ];
10220
 
10221
  if ( 'post_type' === $object_type && ! empty( $post_status ) ) {
10222
+ if ( in_array( '_pods_any', $post_status, true ) ) {
10223
+ $info['where_default'] = "`t`.`post_status` NOT IN ( 'auto-draft', 'trash' )";
10224
+ } else {
10225
+ $info['where_default'] = "`t`.`post_status` IN ( '" . implode( "', '", pods_sanitize( $post_status ) ) . "' )";
10226
+ }
10227
  }
10228
 
10229
  $info['orderby'] = "`t`.`menu_order`, `t`.`{$info['field_index']}`, `t`.`post_date`";
10452
 
10453
  if ( ! is_array( $field ) && ! $is_field_object ) {
10454
  if ( is_string( $pod ) ) {
10455
+ $pod = pods_get_instance( $pod );
10456
  }
10457
 
10458
  if ( is_object( $pod ) && ! empty( $pod->fields[ $field ] ) ) {
10834
 
10835
  unset( $params['params'] );
10836
 
10837
+ $pod = pods_get_instance( $pod, $find );
10838
  } elseif ( ! is_object( $pod ) ) {
10839
+ $pod = pods_get_instance( $pod, $find );
10840
  }
10841
 
10842
  $data = array();
10897
  pods_transient_clear( 'pods_blocks' );
10898
  pods_transient_clear( 'pods_blocks_js' );
10899
 
10900
+ pods_transient_clear( 'pods_config_handler_found_configs' );
10901
+
10902
  if ( is_array( $pod ) || $pod instanceof Pod ) {
10903
  pods_transient_clear( 'pods_pod_' . $pod['name'] );
10904
  pods_cache_clear( $pod['name'], 'pods-class' );
10911
  pods_transient_clear( 'pods_wp_cpt_ct' );
10912
  }
10913
 
10914
+ pods_cache_clear( true, 'pods_post_type_storage__pods_pod' );
10915
+ pods_cache_clear( true, 'pods_post_type_storage__pods_group' );
10916
+ pods_cache_clear( true, 'pods_post_type_storage__pods_field' );
10917
+ pods_cache_clear( true, 'pods_post_type_storage__pods_template' );
10918
+ pods_cache_clear( true, 'pods_post_type_storage__pods_page' );
10919
+ pods_cache_clear( true, 'pods_post_type_storage_any' );
10920
+
10921
+ pods_cache_clear( true, __CLASS__ . '/_load_objects' );
10922
 
10923
  pods_static_cache_clear( true, __CLASS__ );
10924
  pods_static_cache_clear( true, __CLASS__ . '/table_info_cache' );
10929
  pods_static_cache_clear( true, PodsField_Pick::class . '/field_data' );
10930
  pods_static_cache_clear( true, 'pods_svg_icon/base64' );
10931
  pods_static_cache_clear( true, 'pods_svg_icon/svg' );
10932
+ pods_static_cache_clear( true, \Pods\Whatsit\Storage\Collection::class . '/find_objects' );
10933
+ pods_static_cache_clear( true, \Pods\Whatsit\Storage\Post_Type::class . '/find_objects/_pods_pod' );
10934
+ pods_static_cache_clear( true, \Pods\Whatsit\Storage\Post_Type::class . '/find_objects/_pods_group' );
10935
+ pods_static_cache_clear( true, \Pods\Whatsit\Storage\Post_Type::class . '/find_objects/_pods_field' );
10936
+ pods_static_cache_clear( true, \Pods\Whatsit\Storage\Post_Type::class . '/find_objects/_pods_template' );
10937
+ pods_static_cache_clear( true, \Pods\Whatsit\Storage\Post_Type::class . '/find_objects/_pods_page' );
10938
+ pods_static_cache_clear( true, \Pods\Whatsit\Storage\Post_Type::class . '/find_objects/any' );
10939
 
10940
  pods_init()->refresh_existing_content_types_cache( true );
10941
 
11277
  }
11278
  }
11279
 
11280
+ $use_cache = empty( $params['bypass_cache'] ) && did_action( 'init' );
11281
+
11282
  if ( isset( $params['options'] ) ) {
11283
  $params['args'] = $params['options'];
11284
 
11303
  }
11304
  }
11305
 
11306
+ $cache_params = $params;
11307
+
11308
  if ( ! empty( $params['return_type'] ) ) {
11309
  $return_type = $params['return_type'];
11310
 
11316
  $params['names_ids'] = true;
11317
  } elseif ( 'ids' === $return_type ) {
11318
  $params['ids'] = true;
11319
+
11320
+ $cache_params['ids'] = true;
11321
  } elseif ( 'count' === $return_type ) {
11322
  $params['count'] = true;
11323
+
11324
+ $cache_params['count'] = true;
11325
  }
11326
  }
11327
 
11328
  $storage_type = ! empty( $params['object_storage_type'] ) ? $params['object_storage_type'] : $this->get_default_object_storage_type();
11329
 
11330
+ $cache_key = $storage_type . '/' . json_encode( $cache_params );
11331
+
11332
+ $objects = null;
11333
+
11334
+ if ( $use_cache ) {
11335
+ $objects = pods_cache_get( $cache_key, __CLASS__ . '/_load_objects' );
11336
+ }
11337
+
11338
  $object_collection = Pods\Whatsit\Store::get_instance();
11339
 
11340
+ if ( ! is_array( $objects ) ) {
11341
+ /** @var Pods\Whatsit\Storage\Post_Type $post_type_storage */
11342
+ $post_type_storage = $object_collection->get_storage_object( $storage_type );
11343
+
11344
+ $objects = $post_type_storage->find( $params );
11345
 
11346
+ if ( $use_cache ) {
11347
+ pods_cache_set( $cache_key, $objects, __CLASS__ . '/_load_objects', 12 * HOUR_IN_SECONDS );
11348
+ }
11349
+ }
11350
 
11351
  if ( ! empty( $params['auto_setup'] ) && ! $objects ) {
11352
  $type = pods_v( 'type', $params, null );
classes/PodsAdmin.php CHANGED
@@ -316,7 +316,7 @@ class PodsAdmin {
316
  )
317
  );
318
  }//end if
319
- } else {
320
  $submenu[] = $pod;
321
  }//end if
322
  }//end foreach
@@ -724,7 +724,7 @@ class PodsAdmin {
724
  // @codingStandardsIgnoreLine
725
  $pod_name = str_replace( array( 'pods-manage-', 'pods-add-new-' ), '', $_GET['page'] );
726
 
727
- $pod = pods( $pod_name, pods_v( 'id', 'get', null, true ) );
728
 
729
  if ( ! $pod->pod_data->has_fields() ) {
730
  pods_message( __( 'This Pod does not have any fields defined.', 'pods' ), 'error' );
@@ -748,7 +748,7 @@ class PodsAdmin {
748
  // @codingStandardsIgnoreLine
749
  $pod_name = str_replace( 'pods-settings-', '', $_GET['page'] );
750
 
751
- $pod = pods( $pod_name );
752
 
753
  if ( 'custom' !== pods_v( 'ui_style', $pod->pod_data['options'], 'settings', true ) ) {
754
  $actions_disabled = array(
@@ -769,7 +769,7 @@ class PodsAdmin {
769
  $ui = array(
770
  'pod' => $pod,
771
  'fields' => array(
772
- 'edit' => $pod->pod_data['fields'],
773
  ),
774
  'header' => array(
775
  'edit' => $page_title,
316
  )
317
  );
318
  }//end if
319
+ } elseif ( 1 === (int) pods_v( 'use_submenu_fallback', $pod['options'], 1 ) ) {
320
  $submenu[] = $pod;
321
  }//end if
322
  }//end foreach
724
  // @codingStandardsIgnoreLine
725
  $pod_name = str_replace( array( 'pods-manage-', 'pods-add-new-' ), '', $_GET['page'] );
726
 
727
+ $pod = pods_get_instance( $pod_name, pods_v( 'id', 'get', null, true ) );
728
 
729
  if ( ! $pod->pod_data->has_fields() ) {
730
  pods_message( __( 'This Pod does not have any fields defined.', 'pods' ), 'error' );
748
  // @codingStandardsIgnoreLine
749
  $pod_name = str_replace( 'pods-settings-', '', $_GET['page'] );
750
 
751
+ $pod = pods_get_instance( $pod_name );
752
 
753
  if ( 'custom' !== pods_v( 'ui_style', $pod->pod_data['options'], 'settings', true ) ) {
754
  $actions_disabled = array(
769
  $ui = array(
770
  'pod' => $pod,
771
  'fields' => array(
772
+ 'edit' => $pod->pod_data->get_fields(),
773
  ),
774
  'header' => array(
775
  'edit' => $page_title,
classes/PodsArray.php CHANGED
@@ -16,8 +16,6 @@ class PodsArray implements ArrayAccess {
16
  *
17
  * @param mixed $container Object (or existing Array).
18
  *
19
- * @return \PodsArray
20
- *
21
  * @license http://www.gnu.org/licenses/gpl-2.0.html
22
  * @since 2.0.0
23
  */
@@ -37,6 +35,7 @@ class PodsArray implements ArrayAccess {
37
  * @return mixed
38
  * @since 2.0.0
39
  */
 
40
  public function offsetSet( $offset, $value ) {
41
 
42
  if ( is_array( $this->__container ) ) {
@@ -56,6 +55,7 @@ class PodsArray implements ArrayAccess {
56
  * @return mixed|null
57
  * @since 2.0.0
58
  */
 
59
  public function offsetGet( $offset ) {
60
 
61
  if ( is_array( $this->__container ) ) {
@@ -77,6 +77,7 @@ class PodsArray implements ArrayAccess {
77
  * @return bool
78
  * @since 2.0.0
79
  */
 
80
  public function offsetExists( $offset ) {
81
 
82
  if ( is_array( $this->__container ) ) {
@@ -93,6 +94,7 @@ class PodsArray implements ArrayAccess {
93
  *
94
  * @since 2.0.0
95
  */
 
96
  public function offsetUnset( $offset ) {
97
 
98
  if ( is_array( $this->__container ) ) {
16
  *
17
  * @param mixed $container Object (or existing Array).
18
  *
 
 
19
  * @license http://www.gnu.org/licenses/gpl-2.0.html
20
  * @since 2.0.0
21
  */
35
  * @return mixed
36
  * @since 2.0.0
37
  */
38
+ #[\ReturnTypeWillChange]
39
  public function offsetSet( $offset, $value ) {
40
 
41
  if ( is_array( $this->__container ) ) {
55
  * @return mixed|null
56
  * @since 2.0.0
57
  */
58
+ #[\ReturnTypeWillChange]
59
  public function offsetGet( $offset ) {
60
 
61
  if ( is_array( $this->__container ) ) {
77
  * @return bool
78
  * @since 2.0.0
79
  */
80
+ #[\ReturnTypeWillChange]
81
  public function offsetExists( $offset ) {
82
 
83
  if ( is_array( $this->__container ) ) {
94
  *
95
  * @since 2.0.0
96
  */
97
+ #[\ReturnTypeWillChange]
98
  public function offsetUnset( $offset ) {
99
 
100
  if ( is_array( $this->__container ) ) {
classes/PodsData.php CHANGED
@@ -826,7 +826,7 @@ class PodsData {
826
 
827
  $params = (object) array_merge( $defaults, (array) $params );
828
 
829
- if ( 0 < strlen( $params->sql ) ) {
830
  return $params->sql;
831
  }
832
 
@@ -1515,11 +1515,25 @@ class PodsData {
1515
  $find = array_values( $find );
1516
  $replace = array_values( $replace );
1517
 
1518
- $params->select = preg_replace( $find, $replace, $params->select );
1519
- $params->where = preg_replace( $find, $replace, $params->where );
1520
- $params->groupby = preg_replace( $find, $replace, $params->groupby );
1521
- $params->having = preg_replace( $find, $replace, $params->having );
1522
- $params->orderby = preg_replace( $find, $replace, $params->orderby );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1523
 
1524
  if ( ! empty( $traverse ) ) {
1525
  $joins = $this->traverse( $traverse, $params->fields, $params );
@@ -1996,6 +2010,8 @@ class PodsData {
1996
 
1997
  $tableless_field_types = PodsForm::tableless_field_types();
1998
 
 
 
1999
  if ( null === $row ) {
2000
  $this->row_number ++;
2001
 
@@ -2012,7 +2028,11 @@ class PodsData {
2012
 
2013
  if ( $this->pod_data && 'settings' === $this->pod_data['type'] ) {
2014
  $current_row_id = $this->pod_data['id'];
 
 
2015
  } else {
 
 
2016
  $current_row_id = pods_v( $this->field_id, $this->row );
2017
  }
2018
 
@@ -2032,7 +2052,11 @@ class PodsData {
2032
  */
2033
  $fetch_full = (bool) apply_filters( 'pods_data_fetch_full', $this->fetch_full, $this );
2034
 
2035
- if ( $fetch_full && ( null !== $row || ( $this->pod_data && 'settings' === $this->pod_data['type'] ) ) ) {
 
 
 
 
2036
  if ( $explicit_set ) {
2037
  $this->row_number = - 1;
2038
  }
@@ -2040,13 +2064,21 @@ class PodsData {
2040
  $mode = 'id';
2041
  $id = pods_absint( $row );
2042
 
2043
- if ( null !== $row && ( ! is_numeric( $row ) || 0 === strpos( $row, '0' ) || (string) $row !== (string) preg_replace( '/[^0-9]/', '', $row ) ) ) {
2044
- if ( 'settings' === $this->pod_data['type'] || ( $this->id && is_numeric( $this->id ) ) ) {
2045
- $id = $this->id;
2046
- } else {
2047
- $mode = 'slug';
2048
- $id = $row;
2049
- }
 
 
 
 
 
 
 
 
2050
  }
2051
 
2052
  $row = false;
@@ -2375,6 +2407,14 @@ class PodsData {
2375
  }
2376
  }
2377
 
 
 
 
 
 
 
 
 
2378
  $params = (object) array(
2379
  'sql' => $sql,
2380
  'error' => $error,
@@ -2619,7 +2659,7 @@ class PodsData {
2619
  $relation = 'AND';
2620
 
2621
  if ( isset( $fields['relation'] ) ) {
2622
- $relation = strtoupper( trim( pods_v( 'relation', $fields, 'AND', true ) ) );
2623
 
2624
  if ( 'AND' !== $relation ) {
2625
  $relation = 'OR';
@@ -2751,8 +2791,8 @@ class PodsData {
2751
  $q = $new_q;
2752
  }//end if
2753
 
2754
- $field_name = trim( pods_v( 'field', $q, pods_v( 'key', $q, $field, true ), true ) );
2755
- $field_type = strtoupper( trim( pods_v( 'type', $q, 'CHAR', true ) ) );
2756
  $field_value = pods_v( 'value', $q );
2757
 
2758
  $field_compare = '=';
@@ -2761,7 +2801,7 @@ class PodsData {
2761
  $field_compare = 'IN';
2762
  }
2763
 
2764
- $field_compare = strtoupper( trim( pods_v( 'compare', $q, $field_compare, true ) ) );
2765
  $field_sanitize = (boolean) pods_v( 'sanitize', $q, true );
2766
  $field_sanitize_format = pods_v( 'sanitize_format', $q, null, true );
2767
  $field_cast = pods_v( 'cast', $q, null, true );
@@ -3791,20 +3831,28 @@ class PodsData {
3791
  $file_field_types = PodsForm::file_field_types();
3792
 
3793
  if ( 'pick' === $params->field['type'] && ! in_array( pods_v( 'pick_object', $params->field ), $simple_tableless_objects, true ) ) {
3794
- $table_info = pods_v( 'table_info', $params->field );
 
 
 
 
3795
 
3796
- if ( ! $params->field instanceof Field && empty( $table_info ) ) {
3797
- $table_info = pods_api()->get_table_info( pods_v( 'pick_object', $params->field ), pods_v( 'pick_val', $params->field ) );
3798
- }
 
 
 
 
3799
 
3800
- if ( empty( $table_info['field_id'] ) || empty( $table_info['field_index'] ) ) {
3801
- return false;
3802
  }
3803
 
3804
  if ( $params->use_field_id ) {
3805
- $db_field = $db_field . '.`' . $table_info['field_id'] . '`';
3806
  } else {
3807
- $db_field = $db_field . '.`' . $table_info['field_index'] . '`';
3808
  }
3809
  } elseif ( 'taxonomy' === $params->field['type'] ) {
3810
  $db_field = $db_field . '.`term_id`';
826
 
827
  $params = (object) array_merge( $defaults, (array) $params );
828
 
829
+ if ( $params->sql && 0 < strlen( $params->sql ) ) {
830
  return $params->sql;
831
  }
832
 
1515
  $find = array_values( $find );
1516
  $replace = array_values( $replace );
1517
 
1518
+ if ( $params->select ) {
1519
+ $params->select = preg_replace( $find, $replace, $params->select );
1520
+ }
1521
+
1522
+ if ( $params->where ) {
1523
+ $params->where = preg_replace( $find, $replace, $params->where );
1524
+ }
1525
+
1526
+ if ( $params->groupby ) {
1527
+ $params->groupby = preg_replace( $find, $replace, $params->groupby );
1528
+ }
1529
+
1530
+ if ( $params->having ) {
1531
+ $params->having = preg_replace( $find, $replace, $params->having );
1532
+ }
1533
+
1534
+ if ( $params->orderby ) {
1535
+ $params->orderby = preg_replace( $find, $replace, $params->orderby );
1536
+ }
1537
 
1538
  if ( ! empty( $traverse ) ) {
1539
  $joins = $this->traverse( $traverse, $params->fields, $params );
2010
 
2011
  $tableless_field_types = PodsForm::tableless_field_types();
2012
 
2013
+ $is_settings_pod = null;
2014
+
2015
  if ( null === $row ) {
2016
  $this->row_number ++;
2017
 
2028
 
2029
  if ( $this->pod_data && 'settings' === $this->pod_data['type'] ) {
2030
  $current_row_id = $this->pod_data['id'];
2031
+
2032
+ $is_settings_pod = true;
2033
  } else {
2034
+ $is_settings_pod = false;
2035
+
2036
  $current_row_id = pods_v( $this->field_id, $this->row );
2037
  }
2038
 
2052
  */
2053
  $fetch_full = (bool) apply_filters( 'pods_data_fetch_full', $this->fetch_full, $this );
2054
 
2055
+ if ( $fetch_full && null === $is_settings_pod ) {
2056
+ $is_settings_pod = $this->pod_data && 'settings' === $this->pod_data['type'];
2057
+ }
2058
+
2059
+ if ( $fetch_full && ( null !== $row || $is_settings_pod ) ) {
2060
  if ( $explicit_set ) {
2061
  $this->row_number = - 1;
2062
  }
2064
  $mode = 'id';
2065
  $id = pods_absint( $row );
2066
 
2067
+ if ( $is_settings_pod ) {
2068
+ $id = $this->pod_data->get_id();
2069
+ }
2070
+
2071
+ if (
2072
+ ! $is_settings_pod
2073
+ && null !== $row
2074
+ && (
2075
+ ! is_numeric( $row )
2076
+ || 0 === strpos( $row, '0' )
2077
+ || (string) $row !== (string) preg_replace( '/[^0-9]/', '', $row )
2078
+ )
2079
+ ) {
2080
+ $mode = 'slug';
2081
+ $id = $row;
2082
  }
2083
 
2084
  $row = false;
2407
  }
2408
  }
2409
 
2410
+ if ( pods_is_admin() && 1 === (int) pods_v( 'pods_debug_backtrace' ) ) {
2411
+ ob_start();
2412
+ echo '<pre>';
2413
+ var_dump( debug_backtrace( DEBUG_BACKTRACE_IGNORE_ARGS, 11 ) );
2414
+ echo '</pre>';
2415
+ $error = ob_get_clean() . $error;
2416
+ }
2417
+
2418
  $params = (object) array(
2419
  'sql' => $sql,
2420
  'error' => $error,
2659
  $relation = 'AND';
2660
 
2661
  if ( isset( $fields['relation'] ) ) {
2662
+ $relation = strtoupper( trim( (string) pods_v( 'relation', $fields, 'AND', true ) ) );
2663
 
2664
  if ( 'AND' !== $relation ) {
2665
  $relation = 'OR';
2791
  $q = $new_q;
2792
  }//end if
2793
 
2794
+ $field_name = trim( (string) pods_v( 'field', $q, pods_v( 'key', $q, $field, true ), true ) );
2795
+ $field_type = strtoupper( trim( (string) pods_v( 'type', $q, 'CHAR', true ) ) );
2796
  $field_value = pods_v( 'value', $q );
2797
 
2798
  $field_compare = '=';
2801
  $field_compare = 'IN';
2802
  }
2803
 
2804
+ $field_compare = strtoupper( trim( (string) pods_v( 'compare', $q, $field_compare, true ) ) );
2805
  $field_sanitize = (boolean) pods_v( 'sanitize', $q, true );
2806
  $field_sanitize_format = pods_v( 'sanitize_format', $q, null, true );
2807
  $field_cast = pods_v( 'cast', $q, null, true );
3831
  $file_field_types = PodsForm::file_field_types();
3832
 
3833
  if ( 'pick' === $params->field['type'] && ! in_array( pods_v( 'pick_object', $params->field ), $simple_tableless_objects, true ) ) {
3834
+ if ( $params->field instanceof Field ) {
3835
+ $table_info_field_id = $params->field->get_arg( 'field_id' );
3836
+ $table_info_field_index = $params->field->get_arg( 'field_index' );
3837
+ } else {
3838
+ $table_info = pods_v( 'table_info', $params->field );
3839
 
3840
+ if ( empty( $table_info ) ) {
3841
+ $table_info = pods_api()->get_table_info( pods_v( 'pick_object', $params->field ), pods_v( 'pick_val', $params->field ) );
3842
+ }
3843
+
3844
+ if ( empty( $table_info['field_id'] ) || empty( $table_info['field_index'] ) ) {
3845
+ return false;
3846
+ }
3847
 
3848
+ $table_info_field_id = $table_info['field_id'];
3849
+ $table_info_field_index = $table_info['field_index'];
3850
  }
3851
 
3852
  if ( $params->use_field_id ) {
3853
+ $db_field = $db_field . '.`' . $table_info_field_id . '`';
3854
  } else {
3855
+ $db_field = $db_field . '.`' . $table_info_field_index . '`';
3856
  }
3857
  } elseif ( 'taxonomy' === $params->field['type'] ) {
3858
  $db_field = $db_field . '.`term_id`';
classes/PodsForm.php CHANGED
@@ -226,6 +226,8 @@ class PodsForm {
226
 
227
  $helper = false;
228
 
 
 
229
  /**
230
  * Input helpers are deprecated and not guaranteed to work properly.
231
  *
@@ -233,8 +235,8 @@ class PodsForm {
233
  *
234
  * @deprecated 2.7.0
235
  */
236
- if ( 0 < strlen( pods_v( 'input_helper', $options ) ) ) {
237
- $helper = pods_api()->load_helper( array( 'name' => $options['input_helper'] ) );
238
  }
239
 
240
  if ( empty( $type ) ) {
@@ -593,7 +595,7 @@ class PodsForm {
593
  }
594
  }
595
 
596
- $placeholder = trim( pods_v( 'placeholder', $options, pods_v( $type . '_placeholder', $options ) ) );
597
 
598
  if ( ! empty( $placeholder ) ) {
599
  $attributes['placeholder'] = $placeholder;
226
 
227
  $helper = false;
228
 
229
+ $input_helper = pods_v( 'input_helper', $options );
230
+
231
  /**
232
  * Input helpers are deprecated and not guaranteed to work properly.
233
  *
235
  *
236
  * @deprecated 2.7.0
237
  */
238
+ if ( $input_helper && 0 < strlen( $input_helper ) ) {
239
+ $helper = pods_api()->load_helper( array( 'name' => $input_helper ) );
240
  }
241
 
242
  if ( empty( $type ) ) {
595
  }
596
  }
597
 
598
+ $placeholder = trim( (string) pods_v( 'placeholder', $options, pods_v( $type . '_placeholder', $options ) ) );
599
 
600
  if ( ! empty( $placeholder ) ) {
601
  $attributes['placeholder'] = $placeholder;
classes/PodsInit.php CHANGED
@@ -1166,17 +1166,18 @@ class PodsInit {
1166
  */
1167
  public function register_pods() {
1168
  $args = array(
1169
- 'label' => __( 'Pods', 'pods' ),
1170
- 'labels' => array( 'singular_name' => __( 'Pod', 'pods' ) ),
1171
- 'public' => false,
1172
- 'can_export' => false,
1173
- 'query_var' => false,
1174
- 'rewrite' => false,
1175
- 'capability_type' => 'pods_pod',
1176
- 'has_archive' => false,
1177
- 'hierarchical' => false,
1178
- 'supports' => array( 'title', 'author' ),
1179
- 'menu_icon' => pods_svg_icon( 'pods' ),
 
1180
  );
1181
 
1182
  $args = self::object_label_fix( $args, 'post_type' );
@@ -1184,17 +1185,18 @@ class PodsInit {
1184
  register_post_type( '_pods_pod', apply_filters( 'pods_internal_register_post_type_pod', $args ) );
1185
 
1186
  $args = array(
1187
- 'label' => __( 'Pod Groups', 'pods' ),
1188
- 'labels' => array( 'singular_name' => __( 'Pod Group', 'pods' ) ),
1189
- 'public' => false,
1190
- 'can_export' => false,
1191
- 'query_var' => false,
1192
- 'rewrite' => false,
1193
- 'capability_type' => 'pods_pod',
1194
- 'has_archive' => false,
1195
- 'hierarchical' => true,
1196
- 'supports' => array( 'title', 'editor', 'author' ),
1197
- 'menu_icon' => pods_svg_icon( 'pods' ),
 
1198
  );
1199
 
1200
  $args = self::object_label_fix( $args, 'post_type' );
@@ -1202,17 +1204,18 @@ class PodsInit {
1202
  register_post_type( '_pods_group', apply_filters( 'pods_internal_register_post_type_group', $args ) );
1203
 
1204
  $args = array(
1205
- 'label' => __( 'Pod Fields', 'pods' ),
1206
- 'labels' => array( 'singular_name' => __( 'Pod Field', 'pods' ) ),
1207
- 'public' => false,
1208
- 'can_export' => false,
1209
- 'query_var' => false,
1210
- 'rewrite' => false,
1211
- 'capability_type' => 'pods_pod',
1212
- 'has_archive' => false,
1213
- 'hierarchical' => true,
1214
- 'supports' => array( 'title', 'editor', 'author' ),
1215
- 'menu_icon' => pods_svg_icon( 'pods' ),
 
1216
  );
1217
 
1218
  $args = self::object_label_fix( $args, 'post_type' );
@@ -2835,7 +2838,7 @@ class PodsInit {
2835
  return;
2836
  }
2837
 
2838
- $all_pods = pods_api()->load_pods( array( 'type' => 'pod' ) );
2839
 
2840
  // Add New item links for all pods
2841
  foreach ( $all_pods as $pod ) {
@@ -2898,7 +2901,7 @@ class PodsInit {
2898
  * @return array
2899
  */
2900
  public function filter_wp_privacy_additional_user_profile_data( $additional_user_profile_data, $user, $reserved_names ) {
2901
- $pod = pods( 'user', $user->ID );
2902
 
2903
  if ( ! $pod->valid() ) {
2904
  return $additional_user_profile_data;
1166
  */
1167
  public function register_pods() {
1168
  $args = array(
1169
+ 'label' => __( 'Pods', 'pods' ),
1170
+ 'labels' => array( 'singular_name' => __( 'Pod', 'pods' ) ),
1171
+ 'public' => false,
1172
+ 'can_export' => false,
1173
+ 'query_var' => false,
1174
+ 'rewrite' => false,
1175
+ 'capability_type' => 'pods_pod',
1176
+ 'has_archive' => false,
1177
+ 'hierarchical' => false,
1178
+ 'supports' => array( 'title', 'author' ),
1179
+ 'menu_icon' => pods_svg_icon( 'pods' ),
1180
+ 'delete_with_user' => false,
1181
  );
1182
 
1183
  $args = self::object_label_fix( $args, 'post_type' );
1185
  register_post_type( '_pods_pod', apply_filters( 'pods_internal_register_post_type_pod', $args ) );
1186
 
1187
  $args = array(
1188
+ 'label' => __( 'Pod Groups', 'pods' ),
1189
+ 'labels' => array( 'singular_name' => __( 'Pod Group', 'pods' ) ),
1190
+ 'public' => false,
1191
+ 'can_export' => false,
1192
+ 'query_var' => false,
1193
+ 'rewrite' => false,
1194
+ 'capability_type' => 'pods_pod',
1195
+ 'has_archive' => false,
1196
+ 'hierarchical' => true,
1197
+ 'supports' => array( 'title', 'editor', 'author' ),
1198
+ 'menu_icon' => pods_svg_icon( 'pods' ),
1199
+ 'delete_with_user' => false,
1200
  );
1201
 
1202
  $args = self::object_label_fix( $args, 'post_type' );
1204
  register_post_type( '_pods_group', apply_filters( 'pods_internal_register_post_type_group', $args ) );
1205
 
1206
  $args = array(
1207
+ 'label' => __( 'Pod Fields', 'pods' ),
1208
+ 'labels' => array( 'singular_name' => __( 'Pod Field', 'pods' ) ),
1209
+ 'public' => false,
1210
+ 'can_export' => false,
1211
+ 'query_var' => false,
1212
+ 'rewrite' => false,
1213
+ 'capability_type' => 'pods_pod',
1214
+ 'has_archive' => false,
1215
+ 'hierarchical' => true,
1216
+ 'supports' => array( 'title', 'editor', 'author' ),
1217
+ 'menu_icon' => pods_svg_icon( 'pods' ),
1218
+ 'delete_with_user' => false,
1219
  );
1220
 
1221
  $args = self::object_label_fix( $args, 'post_type' );
2838
  return;
2839
  }
2840
 
2841
+ $all_pods = PodsMeta::$advanced_content_types;
2842
 
2843
  // Add New item links for all pods
2844
  foreach ( $all_pods as $pod ) {
2901
  * @return array
2902
  */
2903
  public function filter_wp_privacy_additional_user_profile_data( $additional_user_profile_data, $user, $reserved_names ) {
2904
+ $pod = pods_get_instance( 'user', $user->ID );
2905
 
2906
  if ( ! $pod->valid() ) {
2907
  return $additional_user_profile_data;
classes/PodsMeta.php CHANGED
@@ -118,6 +118,9 @@ class PodsMeta {
118
  * @return \PodsMeta
119
  */
120
  public function core() {
 
 
 
121
  $this->cache_pods( false );
122
 
123
  $core_loader_objects = pods_transient_get( 'pods_core_loader_objects' );
@@ -314,11 +317,11 @@ class PodsMeta {
314
 
315
  $pod_type = $type;
316
 
317
- if ( 'post_type' == $type ) {
318
  $type = 'post_types';
319
- } elseif ( 'taxonomy' == $type ) {
320
  $type = 'taxonomies';
321
- } elseif ( 'pod' == $type ) {
322
  $type = 'advanced_content_types';
323
  }
324
 
@@ -377,11 +380,11 @@ class PodsMeta {
377
  if ( ! empty( $pod ) ) {
378
  $type = $pod['type'];
379
 
380
- if ( 'post_type' == $pod['type'] ) {
381
  $type = 'post_types';
382
- } elseif ( 'taxonomy' == $pod['type'] ) {
383
  $type = 'taxonomies';
384
- } elseif ( 'pod' == $pod['type'] ) {
385
  $type = 'advanced_content_types';
386
  }
387
 
@@ -526,7 +529,7 @@ class PodsMeta {
526
  * @param int $id
527
  * @param \AC_Column $obj
528
  *
529
- * @return mixed
530
  */
531
  public function cpac_meta_value( $meta, $id, $obj ) {
532
 
@@ -597,14 +600,14 @@ class PodsMeta {
597
  }
598
 
599
  if ( 'term' === $metadata_type && ! function_exists( 'get_term_meta' ) ) {
600
- $podterms = pods( $pod['name'], $id );
601
 
602
  $meta = $podterms->field( $field );
603
  } else {
604
  $meta = get_metadata( $metadata_type, $id, $field, ( 'array' !== $field_type ) );
605
  }
606
  } elseif ( 'taxonomy' === $pod['type'] ) {
607
- $podterms = pods( $pod['name'], $id );
608
 
609
  $meta = $podterms->field( $field );
610
  }
@@ -612,6 +615,13 @@ class PodsMeta {
612
  $meta = PodsForm::field_method( $pod['fields'][ $field ]['type'], 'ui', $id, $meta, $field, $pod['fields'][ $field ], $pod['fields'], $pod );
613
  }
614
 
 
 
 
 
 
 
 
615
  return $meta;
616
  }
617
 
@@ -670,7 +680,7 @@ class PodsMeta {
670
  $pod = array_merge( $defaults, $pod );
671
  }
672
 
673
- if ( 'post' == $pod['type'] ) {
674
  $pod['type'] = 'post_type';
675
  }
676
 
@@ -682,7 +692,7 @@ class PodsMeta {
682
 
683
  $object_name = ! empty( $pod['object'] ) ? $pod['object'] : $pod['name'];
684
 
685
- if ( 'pod' == $pod['type'] ) {
686
  $object_name = $pod['name'];
687
  }
688
 
@@ -772,23 +782,23 @@ class PodsMeta {
772
  self::$groups[ $pod['type'] ][ $object_name ][] = $group;
773
 
774
  // Hook it up!
775
- if ( 'post_type' == $pod['type'] ) {
776
  if ( ! has_action( 'add_meta_boxes', array( $this, 'meta_post_add' ) ) ) {
777
  pods_no_conflict_off( $pod['type'], $pod['object'], true );
778
  }
779
- } elseif ( 'taxonomy' == $pod['type'] ) {
780
  if ( ! has_action( $pod['object'] . '_edit_form_fields', array( $this, 'meta_taxonomy' ) ) ) {
781
  pods_no_conflict_off( $pod['type'], $pod['object'], true );
782
  }
783
- } elseif ( 'media' == $pod['type'] ) {
784
  if ( ! has_filter( 'wp_update_attachment_metadata', array( $this, 'save_media' ) ) ) {
785
  pods_no_conflict_off( $pod['type'], null, true );
786
  }
787
- } elseif ( 'user' == $pod['type'] ) {
788
  if ( ! has_action( 'show_user_profile', array( $this, 'meta_user' ) ) ) {
789
  pods_no_conflict_off( $pod['type'], null, true );
790
  }
791
- } elseif ( 'comment' == $pod['type'] ) {
792
  if ( ! has_filter( 'comment_form_submit_field', array( $this, 'meta_comment_new' ) ) ) {
793
  pods_no_conflict_off( $pod['type'], null, true );
794
  }
@@ -805,18 +815,22 @@ class PodsMeta {
805
 
806
  $object = self::$post_types;
807
 
808
- if ( 'term' == $type ) {
809
  $type = 'taxonomy';
810
  }
811
 
812
- if ( 'taxonomy' == $type ) {
813
  $object = self::$taxonomies;
814
- } elseif ( 'media' == $type ) {
815
  $object = self::$media;
816
- } elseif ( 'user' == $type ) {
817
  $object = self::$user;
818
- } elseif ( 'comment' == $type ) {
819
  $object = self::$comment;
 
 
 
 
820
  }
821
 
822
  if ( 'pod' !== $type && ! empty( $object ) && is_array( $object ) && isset( $object[ $name ] ) ) {
@@ -857,23 +871,30 @@ class PodsMeta {
857
  /**
858
  * Get groups of fields for the content type.
859
  *
860
- * @param $type Content type.
861
- * @param $name Content name.
862
- * @param $default_fields List of default fields to include.
 
863
  *
864
  * @return array List of groups and their fields.
865
  */
866
- public function groups_get( $type, $name, $default_fields = null ) {
867
  static $groups_cache = [];
868
 
869
- if ( isset( $groups_cache[ $type . '/' . $name ] ) ) {
870
- return $groups_cache[ $type . '/' . $name ];
 
 
 
 
 
 
871
  }
872
 
873
- if ( 'post_type' == $type && 'attachment' == $name ) {
874
  $type = 'media';
875
  $name = 'media';
876
- } elseif ( 'term' == $type ) {
877
  $type = 'taxonomy';
878
  }
879
 
@@ -882,22 +903,24 @@ class PodsMeta {
882
  $pod = [];
883
  $fields = [];
884
 
885
- $object = self::$post_types;
886
 
887
- if ( 'taxonomy' == $type ) {
888
- $object = self::$taxonomies;
889
- } elseif ( 'media' == $type ) {
890
- $object = self::$media;
891
- } elseif ( 'user' == $type ) {
892
- $object = self::$user;
893
- } elseif ( 'comment' == $type ) {
894
- $object = self::$comment;
895
- } elseif ( 'pod' == $type ) {
896
- $object = self::$advanced_content_types;
 
 
897
  }
898
 
899
- if ( ! empty( $object ) && is_array( $object ) && isset( $object[ $name ] ) ) {
900
- $pod = $object[ $name ];
901
  $fields = $pod['fields'];
902
  } else {
903
  if ( empty( self::$current_pod_data ) || ! is_object( self::$current_pod_data ) || self::$current_pod_data['name'] !== $name ) {
@@ -932,9 +955,9 @@ class PodsMeta {
932
  }
933
 
934
  if ( $pod && $pod['type'] !== $type ) {
935
- $groups_cache[ $type . '/' . $name ] = [];
936
 
937
- return $groups_cache[ $type . '/' . $name ];
938
  }
939
 
940
  /**
@@ -955,11 +978,20 @@ class PodsMeta {
955
  $has_custom_groups = ! empty( self::$groups[ $type ][ $name ] );
956
 
957
  if ( ! empty( $pod['groups'] ) ) {
958
- foreach ( $pod['groups'] as $group ) {
 
 
959
  if ( empty( $group['fields'] ) ) {
960
  continue;
961
  }
962
 
 
 
 
 
 
 
 
963
  $groups[] = [
964
  'pod' => $pod,
965
  'label' => $group['label'],
@@ -1010,9 +1042,9 @@ class PodsMeta {
1010
  */
1011
  $groups = apply_filters( 'pods_meta_groups_get', $groups, $type, $name );
1012
 
1013
- $groups_cache[ $type . '/' . $name ] = $groups;
1014
 
1015
- return $groups_cache[ $type . '/' . $name ];
1016
  }
1017
 
1018
  /**
@@ -1021,7 +1053,7 @@ class PodsMeta {
1021
  */
1022
  public function meta_post_add( $post_type, $post = null ) {
1023
 
1024
- if ( 'comment' == $post_type ) {
1025
  return;
1026
  }
1027
 
@@ -1149,7 +1181,7 @@ class PodsMeta {
1149
  public function maybe_set_up_pod( $pod_name, $id = null, $pod_type = null ) {
1150
  // Check if we have a pod object set up for this pod name yet.
1151
  if ( ! is_object( self::$current_pod ) || self::$current_pod->pod !== $pod_name ) {
1152
- self::$current_pod = pods( $pod_name, null, true );
1153
  }
1154
 
1155
  // Check if we need to strictly check the pod type.
@@ -1177,7 +1209,7 @@ class PodsMeta {
1177
  $pod_type = 'post_type';
1178
  $pod_meta_type = 'post';
1179
 
1180
- if ( 'attachment' == $post->post_type ) {
1181
  $pod_type = 'media';
1182
  $pod_meta_type = 'media';
1183
  }
@@ -1489,7 +1521,7 @@ class PodsMeta {
1489
 
1490
  $groups = $this->groups_get( 'media', 'media' );
1491
 
1492
- if ( empty( $groups ) || 'attachment' == pods_var( 'typenow', 'global' ) ) {
1493
  return $form_fields;
1494
  }
1495
 
@@ -1599,7 +1631,7 @@ class PodsMeta {
1599
  return $post;
1600
  }
1601
 
1602
- if ( is_array( $post ) && ! empty( $post ) && isset( $post['ID'] ) && 'attachment' == $post['post_type'] ) {
1603
  $post_id = $post['ID'];
1604
  }
1605
 
@@ -1633,7 +1665,7 @@ class PodsMeta {
1633
  }
1634
 
1635
  if ( ! pods_permission( $field ) ) {
1636
- if ( ! pods_var( 'hidden', $field, false ) ) {
1637
  continue;
1638
  }
1639
  }
@@ -1700,7 +1732,7 @@ class PodsMeta {
1700
 
1701
  $post = get_post( $id, ARRAY_A );
1702
 
1703
- if ( 'attachment' != $post['post_type'] ) {
1704
  return;
1705
  }
1706
 
@@ -1816,7 +1848,7 @@ class PodsMeta {
1816
 
1817
  $is_new_item = false;
1818
 
1819
- if ( 'create_term' == current_filter() ) {
1820
  $is_new_item = true;
1821
  }
1822
 
@@ -1825,7 +1857,7 @@ class PodsMeta {
1825
  }
1826
 
1827
  // Block Quick Edits / Bulk Edits
1828
- if ( 'inline-save-tax' == pods_var( 'action', 'post' ) || null != pods_var( 'delete_tags', 'post' ) ) {
1829
  return $term_id;
1830
  }
1831
 
@@ -1873,7 +1905,7 @@ class PodsMeta {
1873
  }
1874
 
1875
  if ( ! pods_permission( $field ) ) {
1876
- if ( ! pods_var( 'hidden', $field, false ) ) {
1877
  continue;
1878
  }
1879
  }
@@ -2472,7 +2504,7 @@ class PodsMeta {
2472
  }
2473
 
2474
  if ( ! pods_permission( $field ) ) {
2475
- if ( ! pods_var( 'hidden', $field, false ) ) {
2476
  continue;
2477
  }
2478
  }
@@ -2539,7 +2571,7 @@ class PodsMeta {
2539
  }
2540
 
2541
  if ( ! pods_permission( $field ) ) {
2542
- if ( ! pods_var( 'hidden', $field, false ) ) {
2543
  continue;
2544
  }
2545
  }
@@ -3552,21 +3584,23 @@ class PodsMeta {
3552
  public function get_object( $object_type, $object_id, $aux = '' ) {
3553
  global $wpdb;
3554
 
3555
- if ( 'term' == $object_type ) {
3556
  $object_type = 'taxonomy';
3557
  }
3558
 
3559
- if ( 'post_type' == $object_type ) {
3560
  $objects = self::$post_types;
3561
- } elseif ( 'taxonomy' == $object_type ) {
3562
  $objects = self::$taxonomies;
3563
- } elseif ( 'media' == $object_type ) {
3564
  $objects = self::$media;
3565
- } elseif ( 'user' == $object_type ) {
3566
  $objects = self::$user;
3567
- } elseif ( 'comment' == $object_type ) {
3568
  $objects = self::$comment;
3569
- } elseif ( 'settings' == $object_type ) {
 
 
3570
  $objects = self::$settings;
3571
  } else {
3572
  return false;
@@ -3578,15 +3612,15 @@ class PodsMeta {
3578
 
3579
  $object_name = null;
3580
 
3581
- if ( 'media' == $object_type ) {
3582
  return reset( $objects );
3583
- } elseif ( 'user' == $object_type ) {
3584
  return reset( $objects );
3585
- } elseif ( 'comment' == $object_type ) {
3586
  return reset( $objects );
3587
  } elseif ( ! empty( $aux ) ) {
3588
  $object_name = $aux;
3589
- } elseif ( 'post_type' == $object_type ) {
3590
  $object = get_post( $object_id );
3591
 
3592
  if ( ! is_object( $object ) || empty( $object->post_type ) ) {
@@ -3594,7 +3628,7 @@ class PodsMeta {
3594
  }
3595
 
3596
  $object_name = $object->post_type;
3597
- } elseif ( 'taxonomy' == $object_type ) {
3598
  $object = get_term( $object_id );
3599
 
3600
  if ( ! is_object( $object ) || empty( $object->taxonomy ) ) {
@@ -3602,7 +3636,7 @@ class PodsMeta {
3602
  }
3603
 
3604
  $object_name = $object->taxonomy;
3605
- } elseif ( 'settings' == $object_type ) {
3606
  $object_name = $object_id;
3607
  } else {
3608
  return false;
@@ -3692,7 +3726,7 @@ class PodsMeta {
3692
  $meta_type = 'post';
3693
 
3694
  $object_name = get_post_type( $object_id );
3695
- } elseif ( 'taxonomy' == $meta_type ) {
3696
  $meta_type = 'term';
3697
 
3698
  $object_name = get_term_field( 'taxonomy', $object_id );
@@ -3800,7 +3834,7 @@ class PodsMeta {
3800
  }
3801
 
3802
  if ( ! is_object( self::$current_field_pod ) || self::$current_field_pod->pod != $object['name'] ) {
3803
- self::$current_field_pod = pods( $object['name'], $object_id );
3804
  } elseif ( self::$current_field_pod->id() != $object_id ) {
3805
  self::$current_field_pod->fetch( $object_id );
3806
  }
@@ -3924,7 +3958,7 @@ class PodsMeta {
3924
 
3925
  if ( in_array( $object_type, array( 'post', 'post_type', 'media' ) ) ) {
3926
  $object_name = get_post_type( $object_id );
3927
- } elseif ( 'taxonomy' == $object_type ) {
3928
  $object_name = get_term_field( 'taxonomy', $object_id );
3929
  } else {
3930
  $object_name = $object_type;
@@ -3983,7 +4017,7 @@ class PodsMeta {
3983
 
3984
  if ( in_array( $object['fields'][ $meta_key ]['type'], PodsForm::tableless_field_types() ) ) {
3985
  if ( ! is_object( self::$current_field_pod ) || self::$current_field_pod->pod != $object['name'] ) {
3986
- self::$current_field_pod = pods( $object['name'], $object_id );
3987
  } elseif ( self::$current_field_pod->id() != $object_id ) {
3988
  self::$current_field_pod->fetch( $object_id );
3989
  }
@@ -4000,7 +4034,7 @@ class PodsMeta {
4000
  $pod->add_to( $meta_key, $meta_value );
4001
  } else {
4002
  if ( ! is_object( self::$current_field_pod ) || self::$current_field_pod->pod != $object['name'] ) {
4003
- self::$current_field_pod = pods( $object['name'] );
4004
  }
4005
 
4006
  $pod = self::$current_field_pod;
@@ -4045,7 +4079,7 @@ class PodsMeta {
4045
 
4046
  if ( in_array( $object_type, array( 'post', 'post_type', 'media' ) ) ) {
4047
  $object_name = get_post_type( $object_id );
4048
- } elseif ( 'taxonomy' == $object_type ) {
4049
  $object_name = get_term_field( 'taxonomy', $object_id );
4050
  } else {
4051
  $object_name = $object_type;
@@ -4103,7 +4137,7 @@ class PodsMeta {
4103
  }
4104
 
4105
  if ( ! is_object( self::$current_field_pod ) || self::$current_field_pod->pod !== $object['name'] ) {
4106
- self::$current_field_pod = pods( $object['name'] );
4107
  }
4108
 
4109
  $pod = self::$current_field_pod;
@@ -4205,7 +4239,7 @@ class PodsMeta {
4205
 
4206
  if ( in_array( $object_type, array( 'post', 'post_type', 'media' ) ) ) {
4207
  $object_name = get_post_type( $object_id );
4208
- } elseif ( 'taxonomy' == $object_type ) {
4209
  $object_name = get_term_field( 'taxonomy', $object_id );
4210
  } else {
4211
  $object_name = $object_type;
@@ -4265,7 +4299,7 @@ class PodsMeta {
4265
  // @todo handle $delete_all (delete the field values from all pod items)
4266
  if ( ! empty( $meta_value ) && in_array( $object['fields'][ $meta_key ]['type'], PodsForm::tableless_field_types() ) ) {
4267
  if ( ! is_object( self::$current_field_pod ) || self::$current_field_pod->pod != $object['name'] ) {
4268
- self::$current_field_pod = pods( $object['name'], $object_id );
4269
  } elseif ( self::$current_field_pod->id() != $object_id ) {
4270
  self::$current_field_pod->fetch( $object_id );
4271
  }
@@ -4282,7 +4316,7 @@ class PodsMeta {
4282
  $pod->remove_from( $meta_key, $meta_value );
4283
  } else {
4284
  if ( ! is_object( self::$current_field_pod ) || self::$current_field_pod->pod != $object['name'] ) {
4285
- self::$current_field_pod = pods( $object['name'] );
4286
  }
4287
 
4288
  $pod = self::$current_field_pod;
@@ -4440,8 +4474,8 @@ class PodsMeta {
4440
 
4441
  if ( ! empty( $object ) ) {
4442
  $params = array(
4443
- 'pod' => pods_var( 'name', $object ),
4444
- 'pod_id' => pods_var( 'id', $object ),
4445
  'id' => $id,
4446
  'strict' => false,
4447
  );
118
  * @return \PodsMeta
119
  */
120
  public function core() {
121
+ // @todo Abstract the static vars into a getter that gets/caches only when the call is needed.
122
+ // @todo Update all usages of self::${$pod_type} to use the new getter.
123
+ // @todo Update all usages of PodsMeta::${$pod_type} to use the new getter.
124
  $this->cache_pods( false );
125
 
126
  $core_loader_objects = pods_transient_get( 'pods_core_loader_objects' );
317
 
318
  $pod_type = $type;
319
 
320
+ if ( 'post_type' === $type ) {
321
  $type = 'post_types';
322
+ } elseif ( 'taxonomy' === $type ) {
323
  $type = 'taxonomies';
324
+ } elseif ( 'pod' === $type ) {
325
  $type = 'advanced_content_types';
326
  }
327
 
380
  if ( ! empty( $pod ) ) {
381
  $type = $pod['type'];
382
 
383
+ if ( 'post_type' === $pod['type'] ) {
384
  $type = 'post_types';
385
+ } elseif ( 'taxonomy' === $pod['type'] ) {
386
  $type = 'taxonomies';
387
+ } elseif ( 'pod' === $pod['type'] ) {
388
  $type = 'advanced_content_types';
389
  }
390
 
529
  * @param int $id
530
  * @param \AC_Column $obj
531
  *
532
+ * @return string
533
  */
534
  public function cpac_meta_value( $meta, $id, $obj ) {
535
 
600
  }
601
 
602
  if ( 'term' === $metadata_type && ! function_exists( 'get_term_meta' ) ) {
603
+ $podterms = pods_get_instance( $pod['name'], $id );
604
 
605
  $meta = $podterms->field( $field );
606
  } else {
607
  $meta = get_metadata( $metadata_type, $id, $field, ( 'array' !== $field_type ) );
608
  }
609
  } elseif ( 'taxonomy' === $pod['type'] ) {
610
+ $podterms = pods_get_instance( $pod['name'], $id );
611
 
612
  $meta = $podterms->field( $field );
613
  }
615
  $meta = PodsForm::field_method( $pod['fields'][ $field ]['type'], 'ui', $id, $meta, $field, $pod['fields'][ $field ], $pod['fields'], $pod );
616
  }
617
 
618
+ // Always return a string version.
619
+ if ( is_array( $meta ) && isset( $meta[0] ) ) {
620
+ $meta = pods_serial_comma( $meta, $pod->get_field( $field ) );
621
+ } elseif ( ! is_string( $meta ) ) {
622
+ $meta = '';
623
+ }
624
+
625
  return $meta;
626
  }
627
 
680
  $pod = array_merge( $defaults, $pod );
681
  }
682
 
683
+ if ( 'post' === $pod['type'] ) {
684
  $pod['type'] = 'post_type';
685
  }
686
 
692
 
693
  $object_name = ! empty( $pod['object'] ) ? $pod['object'] : $pod['name'];
694
 
695
+ if ( 'pod' === $pod['type'] ) {
696
  $object_name = $pod['name'];
697
  }
698
 
782
  self::$groups[ $pod['type'] ][ $object_name ][] = $group;
783
 
784
  // Hook it up!
785
+ if ( 'post_type' === $pod['type'] ) {
786
  if ( ! has_action( 'add_meta_boxes', array( $this, 'meta_post_add' ) ) ) {
787
  pods_no_conflict_off( $pod['type'], $pod['object'], true );
788
  }
789
+ } elseif ( 'taxonomy' === $pod['type'] ) {
790
  if ( ! has_action( $pod['object'] . '_edit_form_fields', array( $this, 'meta_taxonomy' ) ) ) {
791
  pods_no_conflict_off( $pod['type'], $pod['object'], true );
792
  }
793
+ } elseif ( 'media' === $pod['type'] ) {
794
  if ( ! has_filter( 'wp_update_attachment_metadata', array( $this, 'save_media' ) ) ) {
795
  pods_no_conflict_off( $pod['type'], null, true );
796
  }
797
+ } elseif ( 'user' === $pod['type'] ) {
798
  if ( ! has_action( 'show_user_profile', array( $this, 'meta_user' ) ) ) {
799
  pods_no_conflict_off( $pod['type'], null, true );
800
  }
801
+ } elseif ( 'comment' === $pod['type'] ) {
802
  if ( ! has_filter( 'comment_form_submit_field', array( $this, 'meta_comment_new' ) ) ) {
803
  pods_no_conflict_off( $pod['type'], null, true );
804
  }
815
 
816
  $object = self::$post_types;
817
 
818
+ if ( 'term' === $type ) {
819
  $type = 'taxonomy';
820
  }
821
 
822
+ if ( 'taxonomy' === $type ) {
823
  $object = self::$taxonomies;
824
+ } elseif ( 'media' === $type ) {
825
  $object = self::$media;
826
+ } elseif ( 'user' === $type ) {
827
  $object = self::$user;
828
+ } elseif ( 'comment' === $type ) {
829
  $object = self::$comment;
830
+ } elseif ( 'pod' === $type ) {
831
+ $object = self::$advanced_content_types;
832
+ } elseif ( 'settings' === $type ) {
833
+ $object = self::$settings;
834
  }
835
 
836
  if ( 'pod' !== $type && ! empty( $object ) && is_array( $object ) && isset( $object[ $name ] ) ) {
871
  /**
872
  * Get groups of fields for the content type.
873
  *
874
+ * @param string $type Content type.
875
+ * @param string $name Content name.
876
+ * @param null|array $default_fields List of default fields to include.
877
+ * @param bool $full_objects Whether to return full objects.
878
  *
879
  * @return array List of groups and their fields.
880
  */
881
+ public function groups_get( $type, $name, $default_fields = null, $full_objects = false ) {
882
  static $groups_cache = [];
883
 
884
+ $cache_key = $type . '/' . $name;
885
+
886
+ if ( $full_objects ) {
887
+ $cache_key .= '/full';
888
+ }
889
+
890
+ if ( isset( $groups_cache[ $cache_key ] ) ) {
891
+ return $groups_cache[ $cache_key ];
892
  }
893
 
894
+ if ( 'post_type' === $type && 'attachment' === $name ) {
895
  $type = 'media';
896
  $name = 'media';
897
+ } elseif ( 'term' === $type ) {
898
  $type = 'taxonomy';
899
  }
900
 
903
  $pod = [];
904
  $fields = [];
905
 
906
+ $objects = self::$post_types;
907
 
908
+ if ( 'taxonomy' === $type ) {
909
+ $objects = self::$taxonomies;
910
+ } elseif ( 'media' === $type ) {
911
+ $objects = self::$media;
912
+ } elseif ( 'user' === $type ) {
913
+ $objects = self::$user;
914
+ } elseif ( 'comment' === $type ) {
915
+ $objects = self::$comment;
916
+ } elseif ( 'pod' === $type ) {
917
+ $objects = self::$advanced_content_types;
918
+ } elseif ( 'settings' === $type ) {
919
+ $objects = self::$settings;
920
  }
921
 
922
+ if ( ! empty( $objects ) && is_array( $objects ) && isset( $objects[ $name ] ) ) {
923
+ $pod = $objects[ $name ];
924
  $fields = $pod['fields'];
925
  } else {
926
  if ( empty( self::$current_pod_data ) || ! is_object( self::$current_pod_data ) || self::$current_pod_data['name'] !== $name ) {
955
  }
956
 
957
  if ( $pod && $pod['type'] !== $type ) {
958
+ $groups_cache[ $cache_key ] = [];
959
 
960
+ return $groups_cache[ $cache_key ];
961
  }
962
 
963
  /**
978
  $has_custom_groups = ! empty( self::$groups[ $type ][ $name ] );
979
 
980
  if ( ! empty( $pod['groups'] ) ) {
981
+ $pod_groups = $pod['groups'];
982
+
983
+ foreach ( $pod_groups as $group ) {
984
  if ( empty( $group['fields'] ) ) {
985
  continue;
986
  }
987
 
988
+ // Maybe provide the full group objects.
989
+ if ( $full_objects ) {
990
+ $groups[ $group['name'] ] = $group;
991
+
992
+ continue;
993
+ }
994
+
995
  $groups[] = [
996
  'pod' => $pod,
997
  'label' => $group['label'],
1042
  */
1043
  $groups = apply_filters( 'pods_meta_groups_get', $groups, $type, $name );
1044
 
1045
+ $groups_cache[ $cache_key ] = $groups;
1046
 
1047
+ return $groups_cache[ $cache_key ];
1048
  }
1049
 
1050
  /**
1053
  */
1054
  public function meta_post_add( $post_type, $post = null ) {
1055
 
1056
+ if ( 'comment' === $post_type ) {
1057
  return;
1058
  }
1059
 
1181
  public function maybe_set_up_pod( $pod_name, $id = null, $pod_type = null ) {
1182
  // Check if we have a pod object set up for this pod name yet.
1183
  if ( ! is_object( self::$current_pod ) || self::$current_pod->pod !== $pod_name ) {
1184
+ self::$current_pod = pods_get_instance( $pod_name, null, true );
1185
  }
1186
 
1187
  // Check if we need to strictly check the pod type.
1209
  $pod_type = 'post_type';
1210
  $pod_meta_type = 'post';
1211
 
1212
+ if ( 'attachment' === $post->post_type ) {
1213
  $pod_type = 'media';
1214
  $pod_meta_type = 'media';
1215
  }
1521
 
1522
  $groups = $this->groups_get( 'media', 'media' );
1523
 
1524
+ if ( empty( $groups ) || 'attachment' === pods_v( 'typenow', 'global' ) ) {
1525
  return $form_fields;
1526
  }
1527
 
1631
  return $post;
1632
  }
1633
 
1634
+ if ( is_array( $post ) && ! empty( $post ) && isset( $post['ID'] ) && 'attachment' === $post['post_type'] ) {
1635
  $post_id = $post['ID'];
1636
  }
1637
 
1665
  }
1666
 
1667
  if ( ! pods_permission( $field ) ) {
1668
+ if ( ! pods_v( 'hidden', $field, false ) ) {
1669
  continue;
1670
  }
1671
  }
1732
 
1733
  $post = get_post( $id, ARRAY_A );
1734
 
1735
+ if ( 'attachment' !== $post['post_type'] ) {
1736
  return;
1737
  }
1738
 
1848
 
1849
  $is_new_item = false;
1850
 
1851
+ if ( 'create_term' === current_filter() ) {
1852
  $is_new_item = true;
1853
  }
1854
 
1857
  }
1858
 
1859
  // Block Quick Edits / Bulk Edits
1860
+ if ( 'inline-save-tax' === pods_v( 'action', 'post' ) || null != pods_v( 'delete_tags', 'post' ) ) {
1861
  return $term_id;
1862
  }
1863
 
1905
  }
1906
 
1907
  if ( ! pods_permission( $field ) ) {
1908
+ if ( ! pods_v( 'hidden', $field, false ) ) {
1909
  continue;
1910
  }
1911
  }
2504
  }
2505
 
2506
  if ( ! pods_permission( $field ) ) {
2507
+ if ( ! pods_v( 'hidden', $field, false ) ) {
2508
  continue;
2509
  }
2510
  }
2571
  }
2572
 
2573
  if ( ! pods_permission( $field ) ) {
2574
+ if ( ! pods_v( 'hidden', $field, false ) ) {
2575
  continue;
2576
  }
2577
  }
3584
  public function get_object( $object_type, $object_id, $aux = '' ) {
3585
  global $wpdb;
3586
 
3587
+ if ( 'term' === $object_type ) {
3588
  $object_type = 'taxonomy';
3589
  }
3590
 
3591
+ if ( 'post_type' === $object_type ) {
3592
  $objects = self::$post_types;
3593
+ } elseif ( 'taxonomy' === $object_type ) {
3594
  $objects = self::$taxonomies;
3595
+ } elseif ( 'media' === $object_type ) {
3596
  $objects = self::$media;
3597
+ } elseif ( 'user' === $object_type ) {
3598
  $objects = self::$user;
3599
+ } elseif ( 'comment' === $object_type ) {
3600
  $objects = self::$comment;
3601
+ } elseif ( 'pod' === $object_type ) {
3602
+ $objects = self::$advanced_content_types;
3603
+ } elseif ( 'settings' === $object_type ) {
3604
  $objects = self::$settings;
3605
  } else {
3606
  return false;
3612
 
3613
  $object_name = null;
3614
 
3615
+ if ( 'media' === $object_type ) {
3616
  return reset( $objects );
3617
+ } elseif ( 'user' === $object_type ) {
3618
  return reset( $objects );
3619
+ } elseif ( 'comment' === $object_type ) {
3620
  return reset( $objects );
3621
  } elseif ( ! empty( $aux ) ) {
3622
  $object_name = $aux;
3623
+ } elseif ( 'post_type' === $object_type ) {
3624
  $object = get_post( $object_id );
3625
 
3626
  if ( ! is_object( $object ) || empty( $object->post_type ) ) {
3628
  }
3629
 
3630
  $object_name = $object->post_type;
3631
+ } elseif ( 'taxonomy' === $object_type ) {
3632
  $object = get_term( $object_id );
3633
 
3634
  if ( ! is_object( $object ) || empty( $object->taxonomy ) ) {
3636
  }
3637
 
3638
  $object_name = $object->taxonomy;
3639
+ } elseif ( 'settings' === $object_type ) {
3640
  $object_name = $object_id;
3641
  } else {
3642
  return false;
3726
  $meta_type = 'post';
3727
 
3728
  $object_name = get_post_type( $object_id );
3729
+ } elseif ( 'taxonomy' === $meta_type ) {
3730
  $meta_type = 'term';
3731
 
3732
  $object_name = get_term_field( 'taxonomy', $object_id );
3834
  }
3835
 
3836
  if ( ! is_object( self::$current_field_pod ) || self::$current_field_pod->pod != $object['name'] ) {
3837
+ self::$current_field_pod = pods_get_instance( $object['name'], $object_id );
3838
  } elseif ( self::$current_field_pod->id() != $object_id ) {
3839
  self::$current_field_pod->fetch( $object_id );
3840
  }
3958
 
3959
  if ( in_array( $object_type, array( 'post', 'post_type', 'media' ) ) ) {
3960
  $object_name = get_post_type( $object_id );
3961
+ } elseif ( 'taxonomy' === $object_type ) {
3962
  $object_name = get_term_field( 'taxonomy', $object_id );
3963
  } else {
3964
  $object_name = $object_type;
4017
 
4018
  if ( in_array( $object['fields'][ $meta_key ]['type'], PodsForm::tableless_field_types() ) ) {
4019
  if ( ! is_object( self::$current_field_pod ) || self::$current_field_pod->pod != $object['name'] ) {
4020
+ self::$current_field_pod = pods_get_instance( $object['name'], $object_id );
4021
  } elseif ( self::$current_field_pod->id() != $object_id ) {
4022
  self::$current_field_pod->fetch( $object_id );
4023
  }
4034
  $pod->add_to( $meta_key, $meta_value );
4035
  } else {
4036
  if ( ! is_object( self::$current_field_pod ) || self::$current_field_pod->pod != $object['name'] ) {
4037
+ self::$current_field_pod = pods_get_instance( $object['name'] );
4038
  }
4039
 
4040
  $pod = self::$current_field_pod;
4079
 
4080
  if ( in_array( $object_type, array( 'post', 'post_type', 'media' ) ) ) {
4081
  $object_name = get_post_type( $object_id );
4082
+ } elseif ( 'taxonomy' === $object_type ) {
4083
  $object_name = get_term_field( 'taxonomy', $object_id );
4084
  } else {
4085
  $object_name = $object_type;
4137
  }
4138
 
4139
  if ( ! is_object( self::$current_field_pod ) || self::$current_field_pod->pod !== $object['name'] ) {
4140
+ self::$current_field_pod = pods_get_instance( $object['name'] );
4141
  }
4142
 
4143
  $pod = self::$current_field_pod;
4239
 
4240
  if ( in_array( $object_type, array( 'post', 'post_type', 'media' ) ) ) {
4241
  $object_name = get_post_type( $object_id );
4242
+ } elseif ( 'taxonomy' === $object_type ) {
4243
  $object_name = get_term_field( 'taxonomy', $object_id );
4244
  } else {
4245
  $object_name = $object_type;
4299
  // @todo handle $delete_all (delete the field values from all pod items)
4300
  if ( ! empty( $meta_value ) && in_array( $object['fields'][ $meta_key ]['type'], PodsForm::tableless_field_types() ) ) {
4301
  if ( ! is_object( self::$current_field_pod ) || self::$current_field_pod->pod != $object['name'] ) {
4302
+ self::$current_field_pod = pods_get_instance( $object['name'], $object_id );
4303
  } elseif ( self::$current_field_pod->id() != $object_id ) {
4304
  self::$current_field_pod->fetch( $object_id );
4305
  }
4316
  $pod->remove_from( $meta_key, $meta_value );
4317
  } else {
4318
  if ( ! is_object( self::$current_field_pod ) || self::$current_field_pod->pod != $object['name'] ) {
4319
+ self::$current_field_pod = pods_get_instance( $object['name'] );
4320
  }
4321
 
4322
  $pod = self::$current_field_pod;
4474
 
4475
  if ( ! empty( $object ) ) {
4476
  $params = array(
4477
+ 'pod' => pods_v( 'name', $object ),
4478
+ 'pod_id' => pods_v( 'id', $object ),
4479
  'id' => $id,
4480
  'strict' => false,
4481
  );
classes/PodsRESTHandlers.php CHANGED
@@ -32,7 +32,7 @@ class PodsRESTHandlers {
32
  protected static function get_pod( $pod_name, $id ) {
33
 
34
  if ( ! self::$pod || self::$pod->pod !== $pod_name ) {
35
- self::$pod = pods( $pod_name, $id, true );
36
  }
37
 
38
  if ( self::$pod && (int) self::$pod->id !== (int) $id ) {
32
  protected static function get_pod( $pod_name, $id ) {
33
 
34
  if ( ! self::$pod || self::$pod->pod !== $pod_name ) {
35
+ self::$pod = pods_get_instance( $pod_name, $id, true );
36
  }
37
 
38
  if ( self::$pod && (int) self::$pod->id !== (int) $id ) {
classes/PodsTermSplitting.php CHANGED
@@ -304,8 +304,8 @@ class Pods_Term_Splitting {
304
  WHERE
305
  meta.meta_key = %s
306
  AND t.post_type = %s
307
- AND meta_value LIKE '%%%s%%'
308
- ", $target_serialized, $replace_serialized, $meta_key, $pod_name, pods_sanitize_like( $target_serialized ) ) );
309
 
310
  $this->append_progress( $task );
311
  }//end if
@@ -351,8 +351,8 @@ class Pods_Term_Splitting {
351
  meta_value = REPLACE( meta_value, %s, %s )
352
  WHERE
353
  meta_key = %s
354
- AND meta_value LIKE '%%%s%%'
355
- ", $target_serialized, $replace_serialized, $meta_key, pods_sanitize_like( $target_serialized ) ) );
356
 
357
  $this->append_progress( $task );
358
  }//end if
@@ -398,8 +398,8 @@ class Pods_Term_Splitting {
398
  meta_value = REPLACE( meta_value, %s, %s )
399
  WHERE
400
  meta_key = %s
401
- AND meta_value LIKE '%%%s%%'
402
- ", $target_serialized, $replace_serialized, $meta_key, pods_sanitize_like( $target_serialized ) ) );
403
 
404
  $this->append_progress( $task );
405
  }//end if
@@ -448,8 +448,8 @@ class Pods_Term_Splitting {
448
  option_value = REPLACE( option_value, %s, %s )
449
  WHERE
450
  option_name = %s
451
- AND option_value LIKE '%%%s%%'
452
- ", $target_serialized, $replace_serialized, $option_name, pods_sanitize_like( $target_serialized ) ) );
453
 
454
  $this->append_progress( $task );
455
  }//end if
304
  WHERE
305
  meta.meta_key = %s
306
  AND t.post_type = %s
307
+ AND meta_value LIKE %s
308
+ ", $target_serialized, $replace_serialized, $meta_key, $pod_name, '%' . pods_sanitize_like( $target_serialized ) . '%' ) );
309
 
310
  $this->append_progress( $task );
311
  }//end if
351
  meta_value = REPLACE( meta_value, %s, %s )
352
  WHERE
353
  meta_key = %s
354
+ AND meta_value LIKE %s
355
+ ", $target_serialized, $replace_serialized, $meta_key, '%' . pods_sanitize_like( $target_serialized ) . '%' ) );
356
 
357
  $this->append_progress( $task );
358
  }//end if
398
  meta_value = REPLACE( meta_value, %s, %s )
399
  WHERE
400
  meta_key = %s
401
+ AND meta_value LIKE %s
402
+ ", $target_serialized, $replace_serialized, $meta_key, '%' . pods_sanitize_like( $target_serialized ) . '%' ) );
403
 
404
  $this->append_progress( $task );
405
  }//end if
448
  option_value = REPLACE( option_value, %s, %s )
449
  WHERE
450
  option_name = %s
451
+ AND option_value LIKE %s
452
+ ", $target_serialized, $replace_serialized, $option_name, '%' . pods_sanitize_like( $target_serialized ) . '%' ) );
453
 
454
  $this->append_progress( $task );
455
  }//end if
classes/PodsUI.php CHANGED
@@ -521,9 +521,9 @@ class PodsUI {
521
  if ( is_object( $options['pod'] ) ) {
522
  $this->pod = $options['pod'];
523
  } elseif ( isset( $options['id'] ) ) {
524
- $this->pod = pods( $options['pod'], $options['id'] );
525
  } else {
526
- $this->pod = pods( $options['pod'] );
527
  }
528
 
529
  unset( $options['pod'] );
@@ -883,12 +883,12 @@ class PodsUI {
883
  // wp-admin page
884
  if ( is_object( $this->pod ) && isset( $this->pod->pod ) ) {
885
  $unique_identifier = '_' . $this->pod->pod;
886
- } elseif ( 0 < strlen( $this->sql['table'] ) ) {
887
  $unique_identifier = '_' . $this->sql['table'];
888
  }
889
 
890
  $unique_identifier .= '_' . $this->page;
891
- if ( 0 < strlen( $this->num ) ) {
892
  $unique_identifier .= '_' . $this->num_prefix . $this->num;
893
  }
894
 
@@ -1542,7 +1542,7 @@ class PodsUI {
1542
  }
1543
 
1544
  $label = $this->do_template( $this->label['edit'] );
1545
- $id = $this->row[ $this->sql['field_id'] ];
1546
  $vars = array(
1547
  $this->num_prefix . 'action' . $this->num => $this->action_after['edit'],
1548
  $this->num_prefix . 'do' . $this->num => 'save',
@@ -1579,18 +1579,6 @@ class PodsUI {
1579
  if ( is_object( $this->pod ) ) {
1580
  $object_fields = $this->pod->pod_data->get_object_fields();
1581
 
1582
- $object_field_objects = array(
1583
- 'post_type',
1584
- 'taxonomy',
1585
- 'media',
1586
- 'user',
1587
- 'comment',
1588
- );
1589
-
1590
- if ( empty( $object_fields ) && in_array( $this->pod->pod_data['type'], $object_field_objects, true ) ) {
1591
- $object_fields = $this->pod->api->get_wp_object_fields( $this->pod->pod_data['type'], $this->pod->pod_data );
1592
- }
1593
-
1594
  if ( empty( $fields ) ) {
1595
  // Add core object fields if $fields is empty
1596
  $fields = $this->pod->pod_data->get_all_fields();
@@ -1598,45 +1586,42 @@ class PodsUI {
1598
  }
1599
 
1600
  $form_fields = $fields;
 
1601
  // Temporary
1602
  $fields = array();
1603
 
1604
  foreach ( $form_fields as $k => $field ) {
1605
  $name = $k;
1606
 
1607
- $defaults = array(
1608
- 'name' => $name,
1609
- );
1610
-
1611
  $is_field_object = $field instanceof Field;
1612
 
1613
  if ( ! is_array( $field ) && ! $is_field_object ) {
1614
  $name = $field;
1615
 
1616
- $field = array(
1617
  'name' => $name,
1618
- );
1619
  }
1620
 
1621
- $field = pods_config_merge_data( $defaults, $field );
1622
-
1623
- $field['name'] = trim( $field['name'] );
1624
-
1625
- $default_value = pods_v( 'default', $field );
1626
- $value = pods_v( 'value', $field );
1627
-
1628
  if ( empty( $field['name'] ) ) {
1629
  $field['name'] = trim( $name );
1630
  }
1631
 
1632
- if ( isset( $object_fields[ $field['name'] ] ) ) {
1633
- $field_attributes = $object_fields[ $field['name'] ];
1634
 
1635
- $field = pods_config_merge_data( $field, $field_attributes );
1636
- } elseif ( isset( $this->pod->fields[ $field['name'] ] ) ) {
1637
- $field_attributes = $this->pod->fields[ $field['name'] ];
 
 
 
 
1638
 
1639
- $field = pods_config_merge_data( $field_attributes, $field );
 
 
 
1640
  }
1641
 
1642
  if ( pods_v( 'hidden', $field, false ) ) {
@@ -2549,7 +2534,7 @@ class PodsUI {
2549
  * @param int $counter
2550
  * @param null $method
2551
  *
2552
- * @return array
2553
  */
2554
  public function get_row( &$counter = 0, $method = null ) {
2555
 
@@ -3321,7 +3306,7 @@ class PodsUI {
3321
 
3322
  $data_filter = 'filter_' . $filter . '_start';
3323
  } elseif ( 'pick' === $filter_field['type'] ) {
3324
- $value_label = trim( PodsForm::field_method( 'pick', 'value_to_label', $filter, $value, $filter_field, $this->pod->pod_data, null ) );
3325
  } elseif ( 'boolean' === $filter_field['type'] ) {
3326
  $yesno_options = array(
3327
  '1' => pods_v( 'boolean_yes_label', $filter_field, __( 'Yes', 'pods' ), true ),
@@ -3517,10 +3502,10 @@ class PodsUI {
3517
  </span>
3518
  <?php
3519
  } elseif ( 'pick' === $filter_field['type'] ) {
3520
- $value = pods_v( 'filter_' . $filter, 'get', '' );
3521
 
3522
  if ( '' === $value ) {
3523
- $value = pods_v( 'filter_default', $filter_field );
3524
  }
3525
 
3526
  // override default value
@@ -3560,10 +3545,10 @@ class PodsUI {
3560
  </span>
3561
  <?php
3562
  } elseif ( 'boolean' === $filter_field['type'] ) {
3563
- $value = pods_v( 'filter_' . $filter, 'get', '' );
3564
 
3565
  if ( '' === $value ) {
3566
- $value = pods_v( 'filter_default', $filter_field );
3567
  }
3568
 
3569
  // override default value
@@ -3609,10 +3594,10 @@ class PodsUI {
3609
  </span>
3610
  <?php
3611
  } else {
3612
- $value = pods_v( 'filter_' . $filter );
3613
 
3614
  if ( '' === $value ) {
3615
- $value = pods_v( 'filter_default', $filter_field );
3616
  }
3617
 
3618
  $options = array(
@@ -5106,7 +5091,7 @@ class PodsUI {
5106
  }//end if
5107
 
5108
  if ( $restricted && ! empty( $restrict ) ) {
5109
- $relation = strtoupper( trim( pods_v( 'relation', $restrict, 'AND', null, true ) ) );
5110
 
5111
  if ( 'AND' !== $relation ) {
5112
  $relation = 'OR';
@@ -5122,7 +5107,7 @@ class PodsUI {
5122
  if ( is_array( $match ) ) {
5123
  $match_okay = true;
5124
 
5125
- $match_relation = strtoupper( trim( pods_v( 'relation', $match, 'OR', null, true ) ) );
5126
 
5127
  if ( 'AND' !== $match_relation ) {
5128
  $match_relation = 'OR';
521
  if ( is_object( $options['pod'] ) ) {
522
  $this->pod = $options['pod'];
523
  } elseif ( isset( $options['id'] ) ) {
524
+ $this->pod = pods_get_instance( $options['pod'], $options['id'] );
525
  } else {
526
+ $this->pod = pods_get_instance( $options['pod'] );
527
  }
528
 
529
  unset( $options['pod'] );
883
  // wp-admin page
884
  if ( is_object( $this->pod ) && isset( $this->pod->pod ) ) {
885
  $unique_identifier = '_' . $this->pod->pod;
886
+ } elseif ( $this->sql['table'] && 0 < strlen( $this->sql['table'] ) ) {
887
  $unique_identifier = '_' . $this->sql['table'];
888
  }
889
 
890
  $unique_identifier .= '_' . $this->page;
891
+ if ( $this->num && 0 < strlen( $this->num ) ) {
892
  $unique_identifier .= '_' . $this->num_prefix . $this->num;
893
  }
894
 
1542
  }
1543
 
1544
  $label = $this->do_template( $this->label['edit'] );
1545
+ $id = pods_v( $this->sql['field_id'], $this->row );
1546
  $vars = array(
1547
  $this->num_prefix . 'action' . $this->num => $this->action_after['edit'],
1548
  $this->num_prefix . 'do' . $this->num => 'save',
1579
  if ( is_object( $this->pod ) ) {
1580
  $object_fields = $this->pod->pod_data->get_object_fields();
1581
 
 
 
 
 
 
 
 
 
 
 
 
 
1582
  if ( empty( $fields ) ) {
1583
  // Add core object fields if $fields is empty
1584
  $fields = $this->pod->pod_data->get_all_fields();
1586
  }
1587
 
1588
  $form_fields = $fields;
1589
+
1590
  // Temporary
1591
  $fields = array();
1592
 
1593
  foreach ( $form_fields as $k => $field ) {
1594
  $name = $k;
1595
 
 
 
 
 
1596
  $is_field_object = $field instanceof Field;
1597
 
1598
  if ( ! is_array( $field ) && ! $is_field_object ) {
1599
  $name = $field;
1600
 
1601
+ $field = [
1602
  'name' => $name,
1603
+ ];
1604
  }
1605
 
 
 
 
 
 
 
 
1606
  if ( empty( $field['name'] ) ) {
1607
  $field['name'] = trim( $name );
1608
  }
1609
 
1610
+ $default_value = pods_v( 'default', $field );
1611
+ $value = pods_v( 'value', $field );
1612
 
1613
+ if ( ! $field instanceof Field ) {
1614
+ if ( isset( $object_fields[ $field['name'] ] ) ) {
1615
+ $field_attributes = $object_fields[ $field['name'] ];
1616
+
1617
+ $field = pods_config_merge_data( $field, $field_attributes );
1618
+ } else {
1619
+ $field_attributes = $this->pod->pod_data->get_field( $field['name'] );
1620
 
1621
+ if ( $field_attributes ) {
1622
+ $field = pods_config_merge_data( $field_attributes, $field );
1623
+ }
1624
+ }
1625
  }
1626
 
1627
  if ( pods_v( 'hidden', $field, false ) ) {
2534
  * @param int $counter
2535
  * @param null $method
2536
  *
2537
+ * @return array|false
2538
  */
2539
  public function get_row( &$counter = 0, $method = null ) {
2540
 
3306
 
3307
  $data_filter = 'filter_' . $filter . '_start';
3308
  } elseif ( 'pick' === $filter_field['type'] ) {
3309
+ $value_label = trim( (string) PodsForm::field_method( 'pick', 'value_to_label', $filter, $value, $filter_field, $this->pod->pod_data, null ) );
3310
  } elseif ( 'boolean' === $filter_field['type'] ) {
3311
  $yesno_options = array(
3312
  '1' => pods_v( 'boolean_yes_label', $filter_field, __( 'Yes', 'pods' ), true ),
3502
  </span>
3503
  <?php
3504
  } elseif ( 'pick' === $filter_field['type'] ) {
3505
+ $value = pods_v( 'filter_' . $filter, 'get', '', true );
3506
 
3507
  if ( '' === $value ) {
3508
+ $value = pods_v( 'filter_default', $filter_field, '', true );
3509
  }
3510
 
3511
  // override default value
3545
  </span>
3546
  <?php
3547
  } elseif ( 'boolean' === $filter_field['type'] ) {
3548
+ $value = pods_v( 'filter_' . $filter, 'get', '', true );
3549
 
3550
  if ( '' === $value ) {
3551
+ $value = pods_v( 'filter_default', $filter_field, '', true );
3552
  }
3553
 
3554
  // override default value
3594
  </span>
3595
  <?php
3596
  } else {
3597
+ $value = pods_v( 'filter_' . $filter, 'get', '', true );
3598
 
3599
  if ( '' === $value ) {
3600
+ $value = pods_v( 'filter_default', $filter_field, '', true );
3601
  }
3602
 
3603
  $options = array(
5091
  }//end if
5092
 
5093
  if ( $restricted && ! empty( $restrict ) ) {
5094
+ $relation = strtoupper( trim( (string) pods_v( 'relation', $restrict, 'AND', null, true ) ) );
5095
 
5096
  if ( 'AND' !== $relation ) {
5097
  $relation = 'OR';
5107
  if ( is_array( $match ) ) {
5108
  $match_okay = true;
5109
 
5110
+ $match_relation = strtoupper( trim( (string) pods_v( 'relation', $match, 'OR', null, true ) ) );
5111
 
5112
  if ( 'AND' !== $match_relation ) {
5113
  $match_relation = 'OR';
classes/PodsView.php CHANGED
@@ -10,7 +10,14 @@ class PodsView {
10
  /**
11
  * @var array $cache_modes Array of available cache modes
12
  */
13
- public static $cache_modes = array( 'none', 'transient', 'site-transient', 'cache', 'static-cache', 'option-cache' );
 
 
 
 
 
 
 
14
 
15
  /**
16
  * @return \PodsView
@@ -56,7 +63,7 @@ class PodsView {
56
  // Advanced $expires handling
57
  $expires = self::expires( $expires, $cache_mode );
58
 
59
- if ( ! in_array( $cache_mode, self::$cache_modes ) ) {
60
  $cache_mode = 'cache';
61
  }
62
 
@@ -165,14 +172,17 @@ class PodsView {
165
  * @since 2.0.0
166
  */
167
  public static function get( $key, $cache_mode = 'cache', $group = '', $callback = null ) {
 
168
 
169
- $object_cache = false;
 
 
 
 
 
 
170
 
171
- if ( isset( $GLOBALS['wp_object_cache'] ) && is_object( $GLOBALS['wp_object_cache'] ) ) {
172
- $object_cache = true;
173
- }
174
-
175
- if ( ! in_array( $cache_mode, self::$cache_modes ) ) {
176
  $cache_mode = 'cache';
177
  }
178
 
@@ -197,12 +207,13 @@ class PodsView {
197
  if ( null !== $pods_nocache && pods_is_admin() ) {
198
  if ( 1 < strlen( $pods_nocache ) ) {
199
  $nocache = explode( ',', $pods_nocache );
 
200
  } else {
201
  $nocache = self::$cache_modes;
202
  }
203
  }
204
 
205
- $cache_enabled = ! in_array( $cache_mode, $nocache, true );
206
 
207
  if ( apply_filters( 'pods_view_cache_alt_get', false, $cache_mode, $group_key . $key, $original_key, $group ) ) {
208
  $value = apply_filters( 'pods_view_cache_alt_get_value', $value, $cache_mode, $group_key . $key, $original_key, $group );
@@ -211,16 +222,14 @@ class PodsView {
211
  $value = get_transient( $group_key . $key );
212
  } elseif ( 'site-transient' === $cache_mode ) {
213
  $value = get_site_transient( $group_key . $key );
214
- } elseif ( 'cache' === $cache_mode && $object_cache ) {
215
  $value = wp_cache_get( $key, ( empty( $group ) ? 'pods_view' : $group ) );
216
  } elseif ( 'option-cache' === $cache_mode ) {
217
- global $_wp_using_ext_object_cache;
218
-
219
  $pre = apply_filters( "pre_transient_{$key}", false );
220
 
221
  if ( false !== $pre ) {
222
  $value = $pre;
223
- } elseif ( $_wp_using_ext_object_cache ) {
224
  $cache_found = false;
225
 
226
  $value = wp_cache_get( $key, ( empty( $group ) ? 'pods_option_cache' : $group ), false, $cache_found );
@@ -311,17 +320,20 @@ class PodsView {
311
  * @since 2.0.0
312
  */
313
  public static function set( $key, $value, $expires = 0, $cache_mode = null, $group = '' ) {
 
314
 
315
- $object_cache = false;
316
-
317
- if ( isset( $GLOBALS['wp_object_cache'] ) && is_object( $GLOBALS['wp_object_cache'] ) ) {
318
- $object_cache = true;
319
- }
 
 
320
 
321
  // Advanced $expires handling
322
  $expires = self::expires( $expires, $cache_mode );
323
 
324
- if ( ! in_array( $cache_mode, self::$cache_modes ) ) {
325
  $cache_mode = 'cache';
326
  }
327
 
@@ -342,14 +354,12 @@ class PodsView {
342
  set_transient( $group_key . $key, $value, $expires );
343
  } elseif ( 'site-transient' === $cache_mode ) {
344
  set_site_transient( $group_key . $key, $value, $expires );
345
- } elseif ( 'cache' === $cache_mode && $object_cache ) {
346
  wp_cache_set( $key, $value, ( empty( $group ) ? 'pods_view' : $group ), $expires );
347
  } elseif ( 'option-cache' === $cache_mode ) {
348
- global $_wp_using_ext_object_cache;
349
-
350
  $value = apply_filters( "pre_set_transient_{$key}", $value );
351
 
352
- if ( $_wp_using_ext_object_cache ) {
353
  $result = wp_cache_set( $key, $value, ( empty( $group ) ? 'pods_option_cache' : $group ), $expires );
354
  } else {
355
  $transient_timeout = '_pods_option_timeout_' . $key;
@@ -401,16 +411,19 @@ class PodsView {
401
  * @since 2.0.0
402
  */
403
  public static function clear( $key = true, $cache_mode = null, $group = '' ) {
 
404
 
405
- $object_cache = false;
406
-
407
- if ( isset( $GLOBALS['wp_object_cache'] ) && is_object( $GLOBALS['wp_object_cache'] ) ) {
408
- $object_cache = true;
409
- }
 
 
410
 
411
  global $wpdb;
412
 
413
- if ( ! in_array( $cache_mode, self::$cache_modes ) ) {
414
  $cache_mode = 'cache';
415
  }
416
 
@@ -438,7 +451,7 @@ class PodsView {
438
 
439
  $wpdb->query( "DELETE FROM `{$wpdb->options}` WHERE option_name LIKE '_transient_{$group_key}%'" );
440
 
441
- if ( $object_cache ) {
442
  wp_cache_flush();
443
  }
444
  } else {
@@ -450,24 +463,22 @@ class PodsView {
450
 
451
  $wpdb->query( "DELETE FROM `{$wpdb->options}` WHERE option_name LIKE '_site_transient_{$group_key}%'" );
452
 
453
- if ( $object_cache ) {
454
  wp_cache_flush();
455
  }
456
  } else {
457
  delete_site_transient( $group_key . $key );
458
  }
459
- } elseif ( 'cache' === $cache_mode && $object_cache ) {
460
  if ( true === $key ) {
461
  wp_cache_flush();
462
  } else {
463
  wp_cache_delete( ( empty( $key ) ? 'pods_view' : $key ), ( empty( $group ) ? 'pods_view' : $group ) );
464
  }
465
  } elseif ( 'option-cache' === $cache_mode ) {
466
- global $_wp_using_ext_object_cache;
467
-
468
  do_action( "delete_transient_{$key}", $key );
469
 
470
- if ( $_wp_using_ext_object_cache ) {
471
  $result = wp_cache_delete( $key, ( empty( $group ) ? 'pods_option_cache' : $group ) );
472
 
473
  wp_cache_delete( '_timeout_' . $key, ( empty( $group ) ? 'pods_option_cache' : $group ) );
10
  /**
11
  * @var array $cache_modes Array of available cache modes
12
  */
13
+ public static $cache_modes = [
14
+ 'none' => true,
15
+ 'transient' => true,
16
+ 'site-transient' => true,
17
+ 'cache' => true,
18
+ 'static-cache' => true,
19
+ 'option-cache' => true,
20
+ ];
21
 
22
  /**
23
  * @return \PodsView
63
  // Advanced $expires handling
64
  $expires = self::expires( $expires, $cache_mode );
65
 
66
+ if ( ! isset( self::$cache_modes[ $cache_mode ] ) ) {
67
  $cache_mode = 'cache';
68
  }
69
 
172
  * @since 2.0.0
173
  */
174
  public static function get( $key, $cache_mode = 'cache', $group = '', $callback = null ) {
175
+ $external_object_cache = wp_using_ext_object_cache();
176
 
177
+ $object_cache_enabled = (
178
+ (
179
+ isset( $GLOBALS['wp_object_cache'] )
180
+ && is_object( $GLOBALS['wp_object_cache'] )
181
+ )
182
+ || $external_object_cache
183
+ );
184
 
185
+ if ( ! isset( self::$cache_modes[ $cache_mode ] ) ) {
 
 
 
 
186
  $cache_mode = 'cache';
187
  }
188
 
207
  if ( null !== $pods_nocache && pods_is_admin() ) {
208
  if ( 1 < strlen( $pods_nocache ) ) {
209
  $nocache = explode( ',', $pods_nocache );
210
+ $nocache = array_flip( $nocache );
211
  } else {
212
  $nocache = self::$cache_modes;
213
  }
214
  }
215
 
216
+ $cache_enabled = ! isset( $nocache[ $cache_mode ] );
217
 
218
  if ( apply_filters( 'pods_view_cache_alt_get', false, $cache_mode, $group_key . $key, $original_key, $group ) ) {
219
  $value = apply_filters( 'pods_view_cache_alt_get_value', $value, $cache_mode, $group_key . $key, $original_key, $group );
222
  $value = get_transient( $group_key . $key );
223
  } elseif ( 'site-transient' === $cache_mode ) {
224
  $value = get_site_transient( $group_key . $key );
225
+ } elseif ( 'cache' === $cache_mode && $object_cache_enabled ) {
226
  $value = wp_cache_get( $key, ( empty( $group ) ? 'pods_view' : $group ) );
227
  } elseif ( 'option-cache' === $cache_mode ) {
 
 
228
  $pre = apply_filters( "pre_transient_{$key}", false );
229
 
230
  if ( false !== $pre ) {
231
  $value = $pre;
232
+ } elseif ( $external_object_cache ) {
233
  $cache_found = false;
234
 
235
  $value = wp_cache_get( $key, ( empty( $group ) ? 'pods_option_cache' : $group ), false, $cache_found );
320
  * @since 2.0.0
321
  */
322
  public static function set( $key, $value, $expires = 0, $cache_mode = null, $group = '' ) {
323
+ $external_object_cache = wp_using_ext_object_cache();
324
 
325
+ $object_cache_enabled = (
326
+ (
327
+ isset( $GLOBALS['wp_object_cache'] )
328
+ && is_object( $GLOBALS['wp_object_cache'] )
329
+ )
330
+ || $external_object_cache
331
+ );
332
 
333
  // Advanced $expires handling
334
  $expires = self::expires( $expires, $cache_mode );
335
 
336
+ if ( ! isset( self::$cache_modes[ $cache_mode ] ) ) {
337
  $cache_mode = 'cache';
338
  }
339
 
354
  set_transient( $group_key . $key, $value, $expires );
355
  } elseif ( 'site-transient' === $cache_mode ) {
356
  set_site_transient( $group_key . $key, $value, $expires );
357
+ } elseif ( 'cache' === $cache_mode && $object_cache_enabled ) {
358
  wp_cache_set( $key, $value, ( empty( $group ) ? 'pods_view' : $group ), $expires );
359
  } elseif ( 'option-cache' === $cache_mode ) {
 
 
360
  $value = apply_filters( "pre_set_transient_{$key}", $value );
361
 
362
+ if ( $external_object_cache ) {
363
  $result = wp_cache_set( $key, $value, ( empty( $group ) ? 'pods_option_cache' : $group ), $expires );
364
  } else {
365
  $transient_timeout = '_pods_option_timeout_' . $key;
411
  * @since 2.0.0
412
  */
413
  public static function clear( $key = true, $cache_mode = null, $group = '' ) {
414
+ $external_object_cache = wp_using_ext_object_cache();
415
 
416
+ $object_cache_enabled = (
417
+ (
418
+ isset( $GLOBALS['wp_object_cache'] )
419
+ && is_object( $GLOBALS['wp_object_cache'] )
420
+ )
421
+ || $external_object_cache
422
+ );
423
 
424
  global $wpdb;
425
 
426
+ if ( ! isset( self::$cache_modes[ $cache_mode ] ) ) {
427
  $cache_mode = 'cache';
428
  }
429
 
451
 
452
  $wpdb->query( "DELETE FROM `{$wpdb->options}` WHERE option_name LIKE '_transient_{$group_key}%'" );
453
 
454
+ if ( $object_cache_enabled ) {
455
  wp_cache_flush();
456
  }
457
  } else {
463
 
464
  $wpdb->query( "DELETE FROM `{$wpdb->options}` WHERE option_name LIKE '_site_transient_{$group_key}%'" );
465
 
466
+ if ( $object_cache_enabled ) {
467
  wp_cache_flush();
468
  }
469
  } else {
470
  delete_site_transient( $group_key . $key );
471
  }
472
+ } elseif ( 'cache' === $cache_mode && $object_cache_enabled ) {
473
  if ( true === $key ) {
474
  wp_cache_flush();
475
  } else {
476
  wp_cache_delete( ( empty( $key ) ? 'pods_view' : $key ), ( empty( $group ) ? 'pods_view' : $group ) );
477
  }
478
  } elseif ( 'option-cache' === $cache_mode ) {
 
 
479
  do_action( "delete_transient_{$key}", $key );
480
 
481
+ if ( $external_object_cache ) {
482
  $result = wp_cache_delete( $key, ( empty( $group ) ? 'pods_option_cache' : $group ) );
483
 
484
  wp_cache_delete( '_timeout_' . $key, ( empty( $group ) ? 'pods_option_cache' : $group ) );
classes/cli/Pods_CLI_Command.php CHANGED
@@ -29,7 +29,7 @@ class Pods_CLI_Command extends WP_CLI_Command {
29
 
30
  unset( $assoc_args['pod'] );
31
 
32
- $pod = pods( $pod_name, null, false );
33
 
34
  if ( ! $pod->valid() ) {
35
  WP_CLI::error( sprintf( __( 'Pod "%s" does not exist.', 'pods' ), $assoc_args['pod'] ) );
@@ -89,7 +89,7 @@ class Pods_CLI_Command extends WP_CLI_Command {
89
  unset( $assoc_args['item'] );
90
  }
91
 
92
- $pod = pods( $pod_name, $item, false );
93
 
94
  if ( ! $pod->valid() ) {
95
  WP_CLI::error( sprintf( __( 'Pod "%s" does not exist.', 'pods' ), $assoc_args['pod'] ) );
@@ -140,7 +140,7 @@ class Pods_CLI_Command extends WP_CLI_Command {
140
  */
141
  public function duplicate( $args, $assoc_args ) {
142
 
143
- $pod = pods( $assoc_args['pod'], $assoc_args['item'], false );
144
 
145
  if ( ! $pod->valid() ) {
146
  WP_CLI::error( sprintf( __( 'Pod "%s" does not exist.', 'pods' ), $assoc_args['pod'] ) );
@@ -187,7 +187,7 @@ class Pods_CLI_Command extends WP_CLI_Command {
187
  */
188
  public function delete( $args, $assoc_args ) {
189
 
190
- $pod = pods( $assoc_args['pod'], $assoc_args['item'], false );
191
 
192
  if ( ! $pod->valid() ) {
193
  WP_CLI::error( sprintf( __( 'Pod "%s" does not exist.', 'pods' ), $assoc_args['pod'] ) );
@@ -253,7 +253,7 @@ class Pods_CLI_Command extends WP_CLI_Command {
253
  unset( $assoc_args['item'] );
254
  }
255
 
256
- $pod = pods( $pod_name, $item, false );
257
 
258
  if ( ! $pod->valid() ) {
259
  WP_CLI::error( sprintf( __( 'Pod "%s" does not exist.', 'pods' ), $assoc_args['pod'] ) );
@@ -330,7 +330,7 @@ class Pods_CLI_Command extends WP_CLI_Command {
330
 
331
  unset( $assoc_args['pod'] );
332
 
333
- $pod = pods( $pod_name, array( 'limit' => -1 ), false );
334
 
335
  if ( ! $pod->valid() ) {
336
  WP_CLI::error( sprintf( __( 'Pod "%s" does not exist.', 'pods' ), $assoc_args['pod'] ) );
29
 
30
  unset( $assoc_args['pod'] );
31
 
32
+ $pod = pods_get_instance( $pod_name, null, false );
33
 
34
  if ( ! $pod->valid() ) {
35
  WP_CLI::error( sprintf( __( 'Pod "%s" does not exist.', 'pods' ), $assoc_args['pod'] ) );
89
  unset( $assoc_args['item'] );
90
  }
91
 
92
+ $pod = pods_get_instance( $pod_name, $item, false );
93
 
94
  if ( ! $pod->valid() ) {
95
  WP_CLI::error( sprintf( __( 'Pod "%s" does not exist.', 'pods' ), $assoc_args['pod'] ) );
140
  */
141
  public function duplicate( $args, $assoc_args ) {
142
 
143
+ $pod = pods_get_instance( $assoc_args['pod'], $assoc_args['item'], false );
144
 
145
  if ( ! $pod->valid() ) {
146
  WP_CLI::error( sprintf( __( 'Pod "%s" does not exist.', 'pods' ), $assoc_args['pod'] ) );
187
  */
188
  public function delete( $args, $assoc_args ) {
189
 
190
+ $pod = pods_get_instance( $assoc_args['pod'], $assoc_args['item'], false );
191
 
192
  if ( ! $pod->valid() ) {
193
  WP_CLI::error( sprintf( __( 'Pod "%s" does not exist.', 'pods' ), $assoc_args['pod'] ) );
253
  unset( $assoc_args['item'] );
254
  }
255
 
256
+ $pod = pods_get_instance( $pod_name, $item, false );
257
 
258
  if ( ! $pod->valid() ) {
259
  WP_CLI::error( sprintf( __( 'Pod "%s" does not exist.', 'pods' ), $assoc_args['pod'] ) );
330
 
331
  unset( $assoc_args['pod'] );
332
 
333
+ $pod = pods_get_instance( $pod_name, array( 'limit' => -1 ), false );
334
 
335
  if ( ! $pod->valid() ) {
336
  WP_CLI::error( sprintf( __( 'Pod "%s" does not exist.', 'pods' ), $assoc_args['pod'] ) );
classes/fields/avatar.php CHANGED
@@ -239,19 +239,25 @@ class PodsField_Avatar extends PodsField_File {
239
  } else {
240
  $avatar_field = pods_transient_get( 'pods_avatar_field' );
241
 
242
- $user = current( PodsMeta::$user );
 
243
 
244
- if ( empty( $avatar_field ) ) {
245
- foreach ( $user['fields'] as $field ) {
246
- if ( 'avatar' === $field['type'] ) {
247
- $avatar_field = $field['name'];
 
 
 
 
 
248
 
249
- pods_transient_set( 'pods_avatar_field', $avatar_field, WEEK_IN_SECONDS );
 
250
 
251
- break;
252
- }
253
  }
254
- } elseif ( ! isset( $user['fields'][ $avatar_field ] ) ) {
255
  $avatar_field = false;
256
  }
257
 
@@ -259,7 +265,9 @@ class PodsField_Avatar extends PodsField_File {
259
  $avatar_id = get_user_meta( $user_id, $avatar_field . '.ID', true );
260
 
261
  pods_cache_set( $user_id, $avatar_id, 'pods_avatar_ids', WEEK_IN_SECONDS );
262
- }//end if
 
 
263
  }//end if
264
  }//end if
265
 
239
  } else {
240
  $avatar_field = pods_transient_get( 'pods_avatar_field' );
241
 
242
+ /** @var \Pods\Whatsit\Pod $user_pod */
243
+ $user_pod = current( PodsMeta::$user );
244
 
245
+ if ( '__null__' === $avatar_field ) {
246
+ $avatar_field = false;
247
+ } elseif ( empty( $avatar_field ) ) {
248
+ $avatar_fields = $user_pod->get_fields(
249
+ [
250
+ 'type' => 'avatar',
251
+ 'limit' => 1,
252
+ ]
253
+ );
254
 
255
+ if ( ! empty( $avatar_fields ) ) {
256
+ $avatar_field = current( $avatar_fields );
257
 
258
+ pods_transient_set( 'pods_avatar_field', $avatar_field, WEEK_IN_SECONDS );
 
259
  }
260
+ } elseif ( $user_pod->get_field( $avatar_field, null, false ) ) {
261
  $avatar_field = false;
262
  }
263
 
265
  $avatar_id = get_user_meta( $user_id, $avatar_field . '.ID', true );
266
 
267
  pods_cache_set( $user_id, $avatar_id, 'pods_avatar_ids', WEEK_IN_SECONDS );
268
+ } else {
269
+ pods_transient_set( 'pods_avatar_field', '__null__', WEEK_IN_SECONDS );
270
+ }
271
  }//end if
272
  }//end if
273
 
classes/fields/file.php CHANGED
@@ -683,8 +683,18 @@ class PodsField_File extends PodsField {
683
  $attachment = null;
684
  $attachment_data = array();
685
 
 
 
 
 
 
 
686
  // Update the title if set.
687
- if ( false !== $title && 1 === (int) pods_v( static::$type . '_edit_title', $options, 0 ) ) {
 
 
 
 
688
  $attachment_data['post_title'] = $title;
689
  }
690
 
@@ -1183,7 +1193,7 @@ class PodsField_File extends PodsField {
1183
  $context_pod = null;
1184
 
1185
  if ( $params->item_id ) {
1186
- $context_pod = pods( pods_v( 'name', $pod, false ), $params->item_id );
1187
 
1188
  if ( ! $context_pod->exists() ) {
1189
  $context_pod = null;
683
  $attachment = null;
684
  $attachment_data = array();
685
 
686
+ $attachment = get_post( $id );
687
+
688
+ if ( ! $attachment ) {
689
+ continue;
690
+ }
691
+
692
  // Update the title if set.
693
+ if (
694
+ false !== $title
695
+ && 1 === (int) pods_v( static::$type . '_edit_title', $options, 0 )
696
+ && $attachment->post_title !== $title
697
+ ) {
698
  $attachment_data['post_title'] = $title;
699
  }
700
 
1193
  $context_pod = null;
1194
 
1195
  if ( $params->item_id ) {
1196
+ $context_pod = pods_get_instance( pods_v( 'name', $pod, false ), $params->item_id );
1197
 
1198
  if ( ! $context_pod->exists() ) {
1199
  $context_pod = null;
classes/fields/pick.php CHANGED
@@ -405,7 +405,7 @@ class PodsField_Pick extends PodsField {
405
  'label' => __( 'Limit list by Post Status', 'pods' ),
406
  'help' => __( 'You can choose to limit Posts available for selection by one or more specific post status.', 'pods' ),
407
  'type' => 'pick',
408
- 'pick_object' => 'post-status',
409
  'pick_format_type' => 'multi',
410
  'default' => 'publish',
411
  'depends-on' => [
@@ -686,6 +686,13 @@ class PodsField_Pick extends PodsField {
686
  'data_callback' => array( $this, 'data_post_stati' ),
687
  );
688
 
 
 
 
 
 
 
 
689
  self::$related_objects['post-types'] = [
690
  'label' => __( 'Post Type Objects', 'pods' ),
691
  'group' => __( 'Other WP Objects', 'pods' ),
@@ -2551,7 +2558,7 @@ class PodsField_Pick extends PodsField {
2551
  $params['where'][] = '`t`.`post_author` = ' . (int) $post_author_id;
2552
  }
2553
 
2554
- $display = trim( pods_v( static::$type . '_display', $options ), ' {@}' );
2555
 
2556
  $display_field = "`t`.`{$search_data->field_index}`";
2557
  $display_field_name = $search_data->field_index;
@@ -3103,17 +3110,50 @@ class PodsField_Pick extends PodsField {
3103
  * @since 2.3.0
3104
  */
3105
  public function data_post_stati( $name = null, $value = null, $options = null, $pod = null, $id = null ) {
 
3106
 
3107
- $data = array();
3108
-
3109
- $post_stati = get_post_stati( array(), 'objects' );
3110
 
3111
  foreach ( $post_stati as $post_status ) {
3112
  $data[ $post_status->name ] = $post_status->label;
3113
  }
3114
 
3115
- return apply_filters( 'pods_form_ui_field_pick_data_post_stati', $data, $name, $value, $options, $pod, $id );
 
3116
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3117
  }
3118
 
3119
  /**
@@ -4038,7 +4078,7 @@ class PodsField_Pick extends PodsField {
4038
  }
4039
 
4040
  if ( ! $obj ) {
4041
- $obj = pods( $params['pod'] );
4042
  }
4043
 
4044
  if ( ! $obj || ! $obj->fetch( $id ) ) {
405
  'label' => __( 'Limit list by Post Status', 'pods' ),
406
  'help' => __( 'You can choose to limit Posts available for selection by one or more specific post status.', 'pods' ),
407
  'type' => 'pick',
408
+ 'pick_object' => 'post-status-with-any',
409
  'pick_format_type' => 'multi',
410
  'default' => 'publish',
411
  'depends-on' => [
686
  'data_callback' => array( $this, 'data_post_stati' ),
687
  );
688
 
689
+ self::$related_objects['post-status-with-any'] = array(
690
+ 'label' => __( 'Post Status (with any)', 'pods' ),
691
+ 'group' => __( 'Other WP Objects', 'pods' ),
692
+ 'simple' => true,
693
+ 'data_callback' => array( $this, 'data_post_stati_with_any' ),
694
+ );
695
+
696
  self::$related_objects['post-types'] = [
697
  'label' => __( 'Post Type Objects', 'pods' ),
698
  'group' => __( 'Other WP Objects', 'pods' ),
2558
  $params['where'][] = '`t`.`post_author` = ' . (int) $post_author_id;
2559
  }
2560
 
2561
+ $display = trim( (string) pods_v( static::$type . '_display', $options ), ' {@}' );
2562
 
2563
  $display_field = "`t`.`{$search_data->field_index}`";
2564
  $display_field_name = $search_data->field_index;
3110
  * @since 2.3.0
3111
  */
3112
  public function data_post_stati( $name = null, $value = null, $options = null, $pod = null, $id = null ) {
3113
+ $data = [];
3114
 
3115
+ $post_stati = get_post_stati( [], 'objects' );
 
 
3116
 
3117
  foreach ( $post_stati as $post_status ) {
3118
  $data[ $post_status->name ] = $post_status->label;
3119
  }
3120
 
3121
+ return (array) apply_filters( 'pods_form_ui_field_pick_data_post_stati', $data, $name, $value, $options, $pod, $id );
3122
+ }
3123
 
3124
+ /**
3125
+ * Data callback for Post Stati (with any).
3126
+ *
3127
+ * @param string|null $name The name of the field.
3128
+ * @param string|array|null $value The value of the field.
3129
+ * @param array|null $options Field options.
3130
+ * @param array|null $pod Pod data.
3131
+ * @param int|null $id Item ID.
3132
+ *
3133
+ * @return array
3134
+ *
3135
+ * @since 2.9.10
3136
+ */
3137
+ public function data_post_stati_with_any( $name = null, $value = null, $options = null, $pod = null, $id = null ) {
3138
+ $data = [
3139
+ '_pods_any' => esc_html__( 'Any Status (excluding Auto-Draft and Trashed)', 'pods' ),
3140
+ ];
3141
+
3142
+ $data = array_merge( $data, $this->data_post_stati( $name, $value, $options, $pod, $id ) );
3143
+
3144
+ /**
3145
+ * Allow filtering the list of post stati with any.
3146
+ *
3147
+ * @since 2.9.10
3148
+ *
3149
+ * @param array $data The list of post stati with any.
3150
+ * @param string|null $name The name of the field.
3151
+ * @param string|array|null $value The value of the field.
3152
+ * @param array|null $options Field options.
3153
+ * @param array|null $pod Pod data.
3154
+ * @param int|null $id Item ID.
3155
+ */
3156
+ return (array) apply_filters( 'pods_form_ui_field_pick_data_post_stati_with_any', $data, $name, $value, $options, $pod, $id );
3157
  }
3158
 
3159
  /**
4078
  }
4079
 
4080
  if ( ! $obj ) {
4081
+ $obj = pods_get_instance( $params['pod'] );
4082
  }
4083
 
4084
  if ( ! $obj || ! $obj->fetch( $id ) ) {
classes/widgets/PodsWidgetField.php CHANGED
@@ -29,10 +29,10 @@ class PodsWidgetField extends WP_Widget {
29
  $after_content = pods_v( 'after_content', $instance );
30
 
31
  $args = [
32
- 'name' => trim( pods_v( 'pod_type', $instance, '' ) ),
33
- 'slug' => trim( pods_v( 'slug', $instance, '' ) ),
34
- 'use_current' => trim( pods_v( 'use_current', $instance, '' ) ),
35
- 'field' => trim( pods_v( 'field', $instance, '' ) ),
36
  ];
37
 
38
  if (
29
  $after_content = pods_v( 'after_content', $instance );
30
 
31
  $args = [
32
+ 'name' => trim( (string) pods_v( 'pod_type', $instance, '' ) ),
33
+ 'slug' => trim( (string) pods_v( 'slug', $instance, '' ) ),
34
+ 'use_current' => trim( (string) pods_v( 'use_current', $instance, '' ) ),
35
+ 'field' => trim( (string) pods_v( 'field', $instance, '' ) ),
36
  ];
37
 
38
  if (
classes/widgets/PodsWidgetForm.php CHANGED
@@ -32,11 +32,11 @@ class PodsWidgetForm extends WP_Widget {
32
  $after_content = pods_v( 'after_content', $instance );
33
 
34
  $args = array(
35
- 'name' => trim( pods_v( 'pod_type', $instance, '' ) ),
36
- 'slug' => trim( pods_v( 'slug', $instance, '' ) ),
37
- 'fields' => trim( pods_v( 'fields', $instance, '' ) ),
38
- 'label' => trim( pods_v( 'label', $instance, __( 'Submit', 'pods' ), true ) ),
39
- 'thank_you' => trim( pods_v( 'thank_you', $instance, '' ) ),
40
  'form' => 1,
41
  );
42
 
32
  $after_content = pods_v( 'after_content', $instance );
33
 
34
  $args = array(
35
+ 'name' => trim( (string) pods_v( 'pod_type', $instance, '' ) ),
36
+ 'slug' => trim( (string) pods_v( 'slug', $instance, '' ) ),
37
+ 'fields' => trim( (string) pods_v( 'fields', $instance, '' ) ),
38
+ 'label' => trim( (string) pods_v( 'label', $instance, __( 'Submit', 'pods' ), true ) ),
39
+ 'thank_you' => trim( (string) pods_v( 'thank_you', $instance, '' ) ),
40
  'form' => 1,
41
  );
42
 
classes/widgets/PodsWidgetList.php CHANGED
@@ -32,16 +32,16 @@ class PodsWidgetList extends WP_Widget {
32
  $after_content = pods_v( 'after_content', $instance );
33
 
34
  $args = array(
35
- 'name' => trim( pods_v( 'pod_type', $instance, '' ) ),
36
- 'template' => trim( pods_v( 'template', $instance, '' ) ),
37
  'limit' => (int) pods_v( 'limit', $instance, 15, true ),
38
- 'orderby' => trim( pods_v( 'orderby', $instance, '' ) ),
39
- 'where' => trim( pods_v( 'where', $instance, '' ) ),
40
- 'expires' => (int) trim( pods_v( 'expires', $instance, ( 60 * 5 ) ) ),
41
- 'cache_mode' => trim( pods_v( 'cache_mode', $instance, 'none', true ) ),
42
  );
43
 
44
- $content = trim( pods_v( 'template_custom', $instance, '' ) );
45
 
46
  if ( 0 < strlen( $args['name'] ) && ( 0 < strlen( $args['template'] ) || 0 < strlen( $content ) ) ) {
47
  require PODS_DIR . 'ui/front/widgets.php';
32
  $after_content = pods_v( 'after_content', $instance );
33
 
34
  $args = array(
35
+ 'name' => trim( (string) pods_v( 'pod_type', $instance, '' ) ),
36
+ 'template' => trim( (string) pods_v( 'template', $instance, '' ) ),
37
  'limit' => (int) pods_v( 'limit', $instance, 15, true ),
38
+ 'orderby' => trim( (string) pods_v( 'orderby', $instance, '' ) ),
39
+ 'where' => trim( (string) pods_v( 'where', $instance, '' ) ),
40
+ 'expires' => (int) trim( (string) pods_v( 'expires', $instance, ( 60 * 5 ) ) ),
41
+ 'cache_mode' => trim( (string) pods_v( 'cache_mode', $instance, 'none', true ) ),
42
  );
43
 
44
+ $content = trim( (string) pods_v( 'template_custom', $instance, '' ) );
45
 
46
  if ( 0 < strlen( $args['name'] ) && ( 0 < strlen( $args['template'] ) || 0 < strlen( $content ) ) ) {
47
  require PODS_DIR . 'ui/front/widgets.php';
classes/widgets/PodsWidgetSingle.php CHANGED
@@ -31,13 +31,13 @@ class PodsWidgetSingle extends WP_Widget {
31
  $after_content = pods_v( 'after_content', $instance );
32
 
33
  $args = array(
34
- 'name' => trim( pods_v( 'pod_type', $instance, '' ) ),
35
- 'slug' => trim( pods_v( 'slug', $instance, '' ) ),
36
- 'use_current' => trim( pods_v( 'use_current', $instance, '' ) ),
37
- 'template' => trim( pods_v( 'template', $instance, '' ) ),
38
  );
39
 
40
- $content = trim( pods_v( 'template_custom', $instance, '' ) );
41
 
42
  if (
43
  (
31
  $after_content = pods_v( 'after_content', $instance );
32
 
33
  $args = array(
34
+ 'name' => trim( (string) pods_v( 'pod_type', $instance, '' ) ),
35
+ 'slug' => trim( (string) pods_v( 'slug', $instance, '' ) ),
36
+ 'use_current' => trim( (string) pods_v( 'use_current', $instance, '' ) ),
37
+ 'template' => trim( (string) pods_v( 'template', $instance, '' ) ),
38
  );
39
 
40
+ $content = trim( (string) pods_v( 'template_custom', $instance, '' ) );
41
 
42
  if (
43
  (
classes/widgets/PodsWidgetView.php CHANGED
@@ -32,9 +32,9 @@ class PodsWidgetView extends WP_Widget {
32
  $after_content = pods_v( 'after_content', $instance );
33
 
34
  $args = array(
35
- 'view' => trim( pods_v( 'view', $instance, '' ) ),
36
  'expires' => (int) pods_v( 'expires', $instance, ( 60 * 5 ) ),
37
- 'cache_mode' => trim( pods_v( 'cache_mode', $instance, 'none', true ) ),
38
  );
39
 
40
  if ( 0 < strlen( $args['view'] ) ) {
32
  $after_content = pods_v( 'after_content', $instance );
33
 
34
  $args = array(
35
+ 'view' => trim( (string) pods_v( 'view', $instance, '' ) ),
36
  'expires' => (int) pods_v( 'expires', $instance, ( 60 * 5 ) ),
37
+ 'cache_mode' => trim( (string) pods_v( 'cache_mode', $instance, 'none', true ) ),
38
  );
39
 
40
  if ( 0 < strlen( $args['view'] ) ) {
components/Advanced-Content-Types.php CHANGED
@@ -48,7 +48,6 @@ class Pods_Advanced_Content_Types extends PodsComponent {
48
  * @return array
49
  */
50
  public function add_pod_type( $data ) {
51
-
52
  $data['pod'] = __( 'Advanced Content Type (separate from WP, blank slate, in its own table)', 'pods' );
53
 
54
  return $data;
48
  * @return array
49
  */
50
  public function add_pod_type( $data ) {
 
51
  $data['pod'] = __( 'Advanced Content Type (separate from WP, blank slate, in its own table)', 'pods' );
52
 
53
  return $data;
components/Builder/modules/field/PodsBuilderModuleField.php CHANGED
@@ -121,9 +121,9 @@ if ( ! class_exists( 'PodsBuilderModuleField' ) ) {
121
  public function _render( $fields ) {
122
 
123
  $args = array(
124
- 'name' => trim( pods_var_raw( 'pod_type', $fields['data'], '' ) ),
125
- 'slug' => trim( pods_var_raw( 'slug', $fields['data'], '' ) ),
126
- 'field' => trim( pods_var_raw( 'field', $fields['data'], '' ) ),
127
  );
128
 
129
  if ( 0 < strlen( $args['name'] ) && 0 < strlen( $args['slug'] ) && 0 < strlen( $args['field'] ) ) {
121
  public function _render( $fields ) {
122
 
123
  $args = array(
124
+ 'name' => trim( (string) pods_var_raw( 'pod_type', $fields['data'], '' ) ),
125
+ 'slug' => trim( (string) pods_var_raw( 'slug', $fields['data'], '' ) ),
126
+ 'field' => trim( (string) pods_var_raw( 'field', $fields['data'], '' ) ),
127
  );
128
 
129
  if ( 0 < strlen( $args['name'] ) && 0 < strlen( $args['slug'] ) && 0 < strlen( $args['field'] ) ) {
components/Builder/modules/form/PodsBuilderModuleForm.php CHANGED
@@ -139,11 +139,11 @@ if ( ! class_exists( 'PodsBuilderModuleForm' ) ) {
139
  public function _render( $fields ) {
140
 
141
  $args = array(
142
- 'name' => trim( pods_var_raw( 'pod_type', $fields['data'], '' ) ),
143
- 'slug' => trim( pods_var_raw( 'slug', $fields['data'], '' ) ),
144
- 'fields' => trim( pods_var_raw( 'fields', $fields['data'], '' ) ),
145
- 'label' => trim( pods_var_raw( 'label', $fields['data'], __( 'Submit', 'pods' ), null, true ) ),
146
- 'thank_you' => trim( pods_var_raw( 'thank_you', $fields['data'], '' ) ),
147
  'form' => 1,
148
  );
149
 
139
  public function _render( $fields ) {
140
 
141
  $args = array(
142
+ 'name' => trim( (string) pods_var_raw( 'pod_type', $fields['data'], '' ) ),
143
+ 'slug' => trim( (string) pods_var_raw( 'slug', $fields['data'], '' ) ),
144
+ 'fields' => trim( (string) pods_var_raw( 'fields', $fields['data'], '' ) ),
145
+ 'label' => trim( (string) pods_var_raw( 'label', $fields['data'], __( 'Submit', 'pods' ), null, true ) ),
146
+ 'thank_you' => trim( (string) pods_var_raw( 'thank_you', $fields['data'], '' ) ),
147
  'form' => 1,
148
  );
149
 
components/Builder/modules/list/PodsBuilderModuleList.php CHANGED
@@ -216,16 +216,16 @@ if ( ! class_exists( 'PodsBuilderModuleList' ) ) {
216
  public function _render( $fields ) {
217
 
218
  $args = array(
219
- 'name' => trim( pods_var_raw( 'pod_type', $fields['data'], '' ) ),
220
- 'template' => trim( pods_var_raw( 'template', $fields['data'], '' ) ),
221
  'limit' => (int) pods_var_raw( 'limit', $fields['data'], 15, null, true ),
222
- 'orderby' => trim( pods_var_raw( 'orderby', $fields['data'], '' ) ),
223
- 'where' => trim( pods_var_raw( 'where', $fields['data'], '' ) ),
224
- 'expires' => (int) trim( pods_var_raw( 'expires', $fields['data'], ( 60 * 5 ) ) ),
225
- 'cache_mode' => trim( pods_var_raw( 'cache_mode', $fields['data'], 'transient', null, true ) ),
226
  );
227
 
228
- $content = trim( pods_var_raw( 'template_custom', $fields['data'], '' ) );
229
 
230
  if ( 0 < strlen( $args['name'] ) && ( 0 < strlen( $args['template'] ) || 0 < strlen( $content ) ) ) {
231
  echo pods_shortcode( $args, ( isset( $content ) ? $content : null ) );
216
  public function _render( $fields ) {
217
 
218
  $args = array(
219
+ 'name' => trim( (string) pods_var_raw( 'pod_type', $fields['data'], '' ) ),
220
+ 'template' => trim( (string) pods_var_raw( 'template', $fields['data'], '' ) ),
221
  'limit' => (int) pods_var_raw( 'limit', $fields['data'], 15, null, true ),
222
+ 'orderby' => trim( (string) pods_var_raw( 'orderby', $fields['data'], '' ) ),
223
+ 'where' => trim( (string) pods_var_raw( 'where', $fields['data'], '' ) ),
224
+ 'expires' => (int) trim( (string) pods_var_raw( 'expires', $fields['data'], ( 60 * 5 ) ) ),
225
+ 'cache_mode' => trim( (string) pods_var_raw( 'cache_mode', $fields['data'], 'transient', null, true ) ),
226
  );
227
 
228
+ $content = trim( (string) pods_var_raw( 'template_custom', $fields['data'], '' ) );
229
 
230
  if ( 0 < strlen( $args['name'] ) && ( 0 < strlen( $args['template'] ) || 0 < strlen( $content ) ) ) {
231
  echo pods_shortcode( $args, ( isset( $content ) ? $content : null ) );
components/Builder/modules/single/PodsBuilderModuleSingle.php CHANGED
@@ -171,12 +171,12 @@ if ( ! class_exists( 'PodsBuilderModuleSingle' ) ) {
171
  public function _render( $fields ) {
172
 
173
  $args = array(
174
- 'name' => trim( pods_var_raw( 'pod_type', $fields['data'], '' ) ),
175
- 'slug' => trim( pods_var_raw( 'slug', $fields['data'], '' ) ),
176
- 'template' => trim( pods_var_raw( 'template', $fields['data'], '' ) ),
177
  );
178
 
179
- $content = trim( pods_var_raw( 'template_custom', $fields['data'], '' ) );
180
 
181
  if ( 0 < strlen( $args['name'] ) && 0 < strlen( $args['slug'] ) && ( 0 < strlen( $args['template'] ) || 0 < strlen( $content ) ) ) {
182
  echo pods_shortcode( $args, ( isset( $content ) ? $content : null ) );
171
  public function _render( $fields ) {
172
 
173
  $args = array(
174
+ 'name' => trim( (string) pods_var_raw( 'pod_type', $fields['data'], '' ) ),
175
+ 'slug' => trim( (string) pods_var_raw( 'slug', $fields['data'], '' ) ),
176
+ 'template' => trim( (string) pods_var_raw( 'template', $fields['data'], '' ) ),
177
  );
178
 
179
+ $content = trim( (string) pods_var_raw( 'template_custom', $fields['data'], '' ) );
180
 
181
  if ( 0 < strlen( $args['name'] ) && 0 < strlen( $args['slug'] ) && ( 0 < strlen( $args['template'] ) || 0 < strlen( $content ) ) ) {
182
  echo pods_shortcode( $args, ( isset( $content ) ? $content : null ) );
components/Builder/modules/view/PodsBuilderModuleView.php CHANGED
@@ -115,9 +115,9 @@ if ( ! class_exists( 'PodsBuilderModuleView' ) ) {
115
  public function _render( $fields ) {
116
 
117
  $args = array(
118
- 'view' => trim( pods_var_raw( 'view', $fields['data'], '' ) ),
119
- 'expires' => (int) trim( pods_var_raw( 'expires', $fields['data'], ( 60 * 5 ) ) ),
120
- 'cache_mode' => trim( pods_var_raw( 'cache_mode', $fields['data'], 'transient', null, true ) ),
121
  );
122
 
123
  if ( 0 < strlen( $args['view'] ) && 'none' !== $args['cache_mode'] ) {
115
  public function _render( $fields ) {
116
 
117
  $args = array(
118
+ 'view' => trim( (string) pods_var_raw( 'view', $fields['data'], '' ) ),
119
+ 'expires' => (int) trim( (string) pods_var_raw( 'expires', $fields['data'], ( 60 * 5 ) ) ),
120
+ 'cache_mode' => trim( (string) pods_var_raw( 'cache_mode', $fields['data'], 'transient', null, true ) ),
121
  );
122
 
123
  if ( 0 < strlen( $args['view'] ) && 'none' !== $args['cache_mode'] ) {
components/Migrate-Packages/Migrate-Packages.php CHANGED
@@ -613,9 +613,9 @@ class Pods_Migrate_Packages extends PodsComponent {
613
  }
614
 
615
  $new_field = [
616
- 'name' => trim( pods_v( 'name', $data, '' ) ),
617
- 'label' => trim( pods_v( 'label', $data, '' ) ),
618
- 'description' => trim( pods_v( 'description', $data, pods_v( 'comment', $data, '' ) ) ),
619
  'type' => $field_type,
620
  'weight' => (int) $data['weight'],
621
  'required' => 1 === (int) $data['required'] ? 1 : 0,
613
  }
614
 
615
  $new_field = [
616
+ 'name' => trim( (string) pods_v( 'name', $data, '' ) ),
617
+ 'label' => trim( (string) pods_v( 'label', $data, '' ) ),
618
+ 'description' => trim( (string) pods_v( 'description', $data, pods_v( 'comment', $data, '' ) ) ),
619
  'type' => $field_type,
620
  'weight' => (int) $data['weight'],
621
  'required' => 1 === (int) $data['required'] ? 1 : 0,
components/Pages.php CHANGED
@@ -113,18 +113,19 @@ class Pods_Pages extends PodsComponent {
113
  */
114
  public function register_config() {
115
  $args = array(
116
- 'label' => 'Pod Pages',
117
- 'labels' => array( 'singular_name' => 'Pod Page' ),
118
- 'public' => false,
119
- 'can_export' => false,
120
- 'show_ui' => true,
121
- 'show_in_menu' => false,
122
- 'query_var' => false,
123
- 'rewrite' => false,
124
- 'has_archive' => false,
125
- 'hierarchical' => false,
126
- 'supports' => array( 'title', 'author', 'revisions' ),
127
- 'menu_icon' => pods_svg_icon( 'pods' ),
 
128
  );
129
 
130
  if ( ! pods_is_admin() ) {
@@ -1085,7 +1086,7 @@ class Pods_Pages extends PodsComponent {
1085
  $slug = pods_evaluate_tags( $slug, true );
1086
  }
1087
 
1088
- $pods = pods( pods_var( 'pod', self::$exists['options'] ), $slug );
1089
 
1090
  // Auto 404 handling if item doesn't exist
1091
  if ( $has_slug && ( empty( $slug ) || ! $pods->exists() ) && apply_filters( 'pods_pages_auto_404', true, $slug, $pods, self::$exists ) ) {
113
  */
114
  public function register_config() {
115
  $args = array(
116
+ 'label' => 'Pod Pages',
117
+ 'labels' => array( 'singular_name' => 'Pod Page' ),
118
+ 'public' => false,
119
+ 'can_export' => false,
120
+ 'show_ui' => true,
121
+ 'show_in_menu' => false,
122
+ 'query_var' => false,
123
+ 'rewrite' => false,
124
+ 'has_archive' => false,
125
+ 'hierarchical' => false,
126
+ 'supports' => array( 'title', 'author', 'revisions' ),
127
+ 'menu_icon' => pods_svg_icon( 'pods' ),
128
+ 'delete_with_user' => false,
129
  );
130
 
131
  if ( ! pods_is_admin() ) {
1086
  $slug = pods_evaluate_tags( $slug, true );
1087
  }
1088
 
1089
+ $pods = pods_get_instance( pods_var( 'pod', self::$exists['options'] ), $slug );
1090
 
1091
  // Auto 404 handling if item doesn't exist
1092
  if ( $has_slug && ( empty( $slug ) || ! $pods->exists() ) && apply_filters( 'pods_pages_auto_404', true, $slug, $pods, self::$exists ) ) {
components/Templates/Templates.php CHANGED
@@ -107,18 +107,19 @@ class Pods_Templates extends PodsComponent {
107
  $is_admin_user = pods_is_admin();
108
 
109
  $args = array(
110
- 'label' => 'Pod Templates',
111
- 'labels' => array( 'singular_name' => 'Pod Template' ),
112
- 'public' => false,
113
- 'can_export' => false,
114
- 'show_ui' => true,
115
- 'show_in_menu' => false,
116
- 'query_var' => false,
117
- 'rewrite' => false,
118
- 'has_archive' => false,
119
- 'hierarchical' => false,
120
- 'supports' => array( 'title', 'author', 'revisions' ),
121
- 'menu_icon' => pods_svg_icon( 'pods' ),
 
122
  );
123
 
124
  if ( ! $is_admin_user ) {
107
  $is_admin_user = pods_is_admin();
108
 
109
  $args = array(
110
+ 'label' => 'Pod Templates',
111
+ 'labels' => array( 'singular_name' => 'Pod Template' ),
112
+ 'public' => false,
113
+ 'can_export' => false,
114
+ 'show_ui' => true,
115
+ 'show_in_menu' => false,
116
+ 'query_var' => false,
117
+ 'rewrite' => false,
118
+ 'has_archive' => false,
119
+ 'hierarchical' => false,
120
+ 'supports' => array( 'title', 'author', 'revisions' ),
121
+ 'menu_icon' => pods_svg_icon( 'pods' ),
122
+ 'delete_with_user' => false,
123
  );
124
 
125
  if ( ! $is_admin_user ) {
components/Templates/includes/auto-template/Pods_Templates_Auto_Template_Front_End.php CHANGED
@@ -365,6 +365,13 @@ class Pods_Templates_Auto_Template_Front_End {
365
  $obj = get_post();
366
  }
367
 
 
 
 
 
 
 
 
368
  if ( null !== $obj ) {
369
  $pod_info = $this->get_pod_info( $obj );
370
 
@@ -635,7 +642,7 @@ class Pods_Templates_Auto_Template_Front_End {
635
  if ( isset( $template ) ) {
636
  global $frontier_styles, $frontier_scripts;
637
 
638
- $template_post = pods()->api->load_template( array( 'name' => $template ) );
639
 
640
  if ( ! empty( $template_post['id'] ) ) {
641
  // Got a template - check for styles & scripts.
365
  $obj = get_post();
366
  }
367
 
368
+ // Check if the post is password protected.
369
+ if ( $obj instanceof WP_Post && post_password_required( $obj ) ) {
370
+ $running = false;
371
+
372
+ return $content;
373
+ }
374
+
375
  if ( null !== $obj ) {
376
  $pod_info = $this->get_pod_info( $obj );
377
 
642
  if ( isset( $template ) ) {
643
  global $frontier_styles, $frontier_scripts;
644
 
645
+ $template_post = pods_api()->load_template( array( 'name' => $template ) );
646
 
647
  if ( ! empty( $template_post['id'] ) ) {
648
  // Got a template - check for styles & scripts.
components/Templates/includes/functions-pod_reference.php CHANGED
@@ -46,7 +46,7 @@ function pq_recurse_pod_fields( $pod_name, $prefix = '', &$pods_visited = array(
46
  return $fields;
47
  }
48
 
49
- $pod = pods( $pod_name );
50
 
51
  if ( empty( $pod ) || ! $pod->valid() ) {
52
  return $fields;
46
  return $fields;
47
  }
48
 
49
+ $pod = pods_get_instance( $pod_name );
50
 
51
  if ( empty( $pod ) || ! $pod->valid() ) {
52
  return $fields;
components/Templates/includes/functions-view_template.php CHANGED
@@ -475,7 +475,7 @@ function frontier_do_subtemplate( $atts, $content ) {
475
  elseif ( 'taxonomy' === $field['type'] || in_array( $field['pick_object'], $object_types, true ) ) {
476
  // Match any Pod object or taxonomy
477
  foreach ( $entries as $key => $entry ) {
478
- $subpod = pods( $field['pick_val'] );
479
 
480
  if ( ! $subpod || ! $subpod->valid() ) {
481
  continue;
475
  elseif ( 'taxonomy' === $field['type'] || in_array( $field['pick_object'], $object_types, true ) ) {
476
  // Match any Pod object or taxonomy
477
  foreach ( $entries as $key => $entry ) {
478
+ $subpod = pods_get_instance( $field['pick_val'] );
479
 
480
  if ( ! $subpod || ! $subpod->valid() ) {
481
  continue;
includes/classes.php CHANGED
@@ -5,6 +5,7 @@
5
  */
6
 
7
  use Pods\Whatsit\Pod;
 
8
 
9
  /**
10
  * Include and Init the Pods class
@@ -37,6 +38,51 @@ function pods( $type = null, $id = null, $strict = null ) {
37
  return $pod;
38
  }
39
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  /**
41
  * Easily create content admin screens with in-depth customization. This is the primary interface function that Pods
42
  * runs off of. It's also the only function required to be run in order to have a fully functional Manage interface.
5
  */
6
 
7
  use Pods\Whatsit\Pod;
8
+ use Pods\Pod_Manager;
9
 
10
  /**
11
  * Include and Init the Pods class
38
  return $pod;
39
  }
40
 
41
+ /**
42
+ * Include and Init the Pods class with support for reuse.
43
+ *
44
+ * @since 2.9.10
45
+ *
46
+ * @see Pods
47
+ *
48
+ * @param string $type The pod name, leave null to auto-detect from The Loop.
49
+ * @param mixed $id (optional) The ID or slug, to load a single record; Provide array of $params to run 'find';
50
+ * Or leave null to auto-detect from The Loop.
51
+ * @param bool $strict (optional) If set to true, returns false instead of a Pods object, if the Pod itself doesn't
52
+ * exist. Note: If you want to check if the Pods Item itself doesn't exist, use exists().
53
+ *
54
+ * @return bool|\Pods returns false if $strict, WP_DEBUG, PODS_STRICT or (PODS_DEPRECATED && PODS_STRICT_MODE) are true
55
+ *
56
+ * @link https://docs.pods.io/code/pods/
57
+ */
58
+ function pods_get_instance( $type = null, $id = null, $strict = null ) {
59
+ $manager = pods_container( Pod_Manager::class );
60
+
61
+ $args = [
62
+ 'name' => $type,
63
+ ];
64
+
65
+ if ( null !== $id ) {
66
+ if ( is_array( $id ) ) {
67
+ $args['find'] = $id;
68
+ } else {
69
+ $args['id'] = $id;
70
+ }
71
+ }
72
+
73
+ $pod = $manager->get_pod( $args );
74
+
75
+ if ( null === $strict ) {
76
+ $strict = pods_strict();
77
+ }
78
+
79
+ if ( true === $strict && null !== $type && ! $pod->valid() ) {
80
+ return false;
81
+ }
82
+
83
+ return $pod;
84
+ }
85
+
86
  /**
87
  * Easily create content admin screens with in-depth customization. This is the primary interface function that Pods
88
  * runs off of. It's also the only function required to be run in order to have a fully functional Manage interface.
includes/data.php CHANGED
@@ -1215,10 +1215,14 @@ function pods_query_arg( $array = null, $allowed = null, $excluded = null, $url
1215
 
1216
  if ( ! empty( $array ) ) {
1217
  foreach ( $array as $key => $val ) {
1218
- if ( null !== $val || false === strpos( $key, '*' ) ) {
1219
- if ( is_array( $val ) && ! empty( $val ) ) {
 
 
 
 
1220
  $query_args[ $key ] = $val;
1221
- } elseif ( ! is_array( $val ) && 0 < strlen( $val ) ) {
1222
  $query_args[ $key ] = $val;
1223
  } else {
1224
  $query_args[ $key ] = false;
@@ -1398,7 +1402,11 @@ function pods_unique_slug( $slug, $column_name, $pod, $pod_id = 0, $id = 0, $obj
1398
  * @since 1.2.0
1399
  */
1400
  function pods_clean_name( $orig, $lower = true, $trim_underscores = false ) {
1401
- $str = trim( $orig );
 
 
 
 
1402
  $str = remove_accents( $str );
1403
  $str = preg_replace( '/([^0-9a-zA-Z\-_\s])/', '', $str );
1404
  $str = preg_replace( '/(\s_)/', '_', $str );
@@ -1464,6 +1472,12 @@ function pods_js_camelcase_name( $orig ) {
1464
  * @since 2.0.0
1465
  */
1466
  function pods_absint( $maybeint, $strict = true, $allow_negative = false ) {
 
 
 
 
 
 
1467
  if ( true === $strict && ! is_numeric( trim( $maybeint ) ) ) {
1468
  return 0;
1469
  }
1215
 
1216
  if ( ! empty( $array ) ) {
1217
  foreach ( $array as $key => $val ) {
1218
+ $is_value_null = null === $val;
1219
+
1220
+ if ( ! $is_value_null || false === strpos( $key, '*' ) ) {
1221
+ $is_value_array = is_array( $val );
1222
+
1223
+ if ( $is_value_array && ! empty( $val ) ) {
1224
  $query_args[ $key ] = $val;
1225
+ } elseif ( ! $is_value_null && ! $is_value_array && 0 < strlen( $val ) ) {
1226
  $query_args[ $key ] = $val;
1227
  } else {
1228
  $query_args[ $key ] = false;
1402
  * @since 1.2.0
1403
  */
1404
  function pods_clean_name( $orig, $lower = true, $trim_underscores = false ) {
1405
+ if ( null === $orig ) {
1406
+ return '';
1407
+ }
1408
+
1409
+ $str = trim( (string) $orig );
1410
  $str = remove_accents( $str );
1411
  $str = preg_replace( '/([^0-9a-zA-Z\-_\s])/', '', $str );
1412
  $str = preg_replace( '/(\s_)/', '_', $str );
1472
  * @since 2.0.0
1473
  */
1474
  function pods_absint( $maybeint, $strict = true, $allow_negative = false ) {
1475
+ if ( is_null( $maybeint ) ) {
1476
+ $maybeint = 0;
1477
+ } elseif ( is_bool( $maybeint ) ) {
1478
+ $maybeint = (int) $maybeint;
1479
+ }
1480
+
1481
  if ( true === $strict && ! is_numeric( trim( $maybeint ) ) ) {
1482
  return 0;
1483
  }
includes/general.php CHANGED
@@ -135,6 +135,17 @@ function pods_message( $message, $type = null, $return = false ) {
135
  $class = 'error';
136
  }
137
 
 
 
 
 
 
 
 
 
 
 
 
138
  $html = '<div id="message" class="' . esc_attr( $class ) . ' fade"><p>' . $message . '</p></div>';
139
 
140
  if ( $return ) {
@@ -142,6 +153,8 @@ function pods_message( $message, $type = null, $return = false ) {
142
  }
143
 
144
  echo $html;
 
 
145
  }
146
 
147
  $GLOBALS['pods_errors'] = array();
@@ -323,6 +336,40 @@ function pods_error( $error, $obj = null ) {
323
  return false;
324
  }
325
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
326
  /**
327
  * Debug variable used in pods_debug to count the instances debug is used
328
  */
@@ -345,23 +392,12 @@ function pods_debug( $debug = '_null', $die = false, $prefix = '_null' ) {
345
  $pods_debug ++;
346
 
347
  if ( function_exists( 'codecept_debug' ) ) {
348
- static $timer;
349
-
350
- $now = microtime( true );
351
-
352
- if ( ! $timer ) {
353
- $timer = $now;
354
- }
355
-
356
- $timing = $now - $timer;
357
 
358
  if ( ! is_string( $debug ) ) {
359
  $debug = var_export( $debug, true );
360
  }
361
 
362
- codecept_debug( 'Pods Debug: ' . $debug . ' [debug timing: ' . number_format( $timing, 4 ) . 's]' );
363
-
364
- $timer = $now;
365
 
366
  return;
367
  }
@@ -389,7 +425,7 @@ function pods_debug( $debug = '_null', $die = false, $prefix = '_null' ) {
389
 
390
  $debug_line_number = __LINE__ - 2;
391
  } else {
392
- var_dump( 'Pods Debug #' . $pods_debug );
393
 
394
  $debug_line_number = __LINE__ - 2;
395
  }
135
  $class = 'error';
136
  }
137
 
138
+ // Maybe handle WP-CLI messages.
139
+ if ( defined( 'WP_CLI' ) ) {
140
+ if ( 'error' === $type ) {
141
+ WP_CLI::warning( $message );
142
+ } else {
143
+ WP_CLI::line( $message );
144
+ }
145
+
146
+ return null;
147
+ }
148
+
149
  $html = '<div id="message" class="' . esc_attr( $class ) . ' fade"><p>' . $message . '</p></div>';
150
 
151
  if ( $return ) {
153
  }
154
 
155
  echo $html;
156
+
157
+ return null;
158
  }
159
 
160
  $GLOBALS['pods_errors'] = array();
336
  return false;
337
  }
338
 
339
+ /**
340
+ * Get the last known timing difference.
341
+ *
342
+ * @since 2.9.10
343
+ *
344
+ * @return float The last known timing difference.
345
+ */
346
+ function pods_get_timing() {
347
+ static $timer;
348
+
349
+ $now = microtime( true );
350
+
351
+ if ( ! $timer ) {
352
+ $timer = $now;
353
+ }
354
+
355
+ $last_diff = $now - $timer;
356
+
357
+ $timer = $now;
358
+
359
+ return $last_diff;
360
+ }
361
+
362
+ /**
363
+ * Get the last known timing difference as text.
364
+ *
365
+ * @since 2.9.10
366
+ *
367
+ * @return string The last known timing difference as text.
368
+ */
369
+ function pods_get_debug_timing() {
370
+ return '[debug timing: ' . number_format( pods_get_timing(), 4 ) . 's]';
371
+ }
372
+
373
  /**
374
  * Debug variable used in pods_debug to count the instances debug is used
375
  */
392
  $pods_debug ++;
393
 
394
  if ( function_exists( 'codecept_debug' ) ) {
 
 
 
 
 
 
 
 
 
395
 
396
  if ( ! is_string( $debug ) ) {
397
  $debug = var_export( $debug, true );
398
  }
399
 
400
+ codecept_debug( 'Pods Debug: ' . $debug . ' ' . pods_get_debug_timing() );
 
 
401
 
402
  return;
403
  }
425
 
426
  $debug_line_number = __LINE__ - 2;
427
  } else {
428
+ var_dump( 'Pods Debug #' . $pods_debug . ' ' . pods_get_debug_timing() );
429
 
430
  $debug_line_number = __LINE__ - 2;
431
  }
init.php CHANGED
@@ -10,7 +10,7 @@
10
  * Plugin Name: Pods - Custom Content Types and Fields
11
  * Plugin URI: https://pods.io/
12
  * Description: Pods is a framework for creating, managing, and deploying customized content types and fields
13
- * Version: 2.9.9
14
  * Author: Pods Framework Team
15
  * Author URI: https://pods.io/about/
16
  * Text Domain: pods
@@ -43,7 +43,7 @@ if ( defined( 'PODS_VERSION' ) || defined( 'PODS_DIR' ) ) {
43
  add_action( 'init', 'pods_deactivate_pods_ui' );
44
  } else {
45
  // Current version.
46
- define( 'PODS_VERSION', '2.9.9' );
47
 
48
  // Current database version, this is the last version the database changed.
49
  define( 'PODS_DB_VERSION', '2.3.5' );
10
  * Plugin Name: Pods - Custom Content Types and Fields
11
  * Plugin URI: https://pods.io/
12
  * Description: Pods is a framework for creating, managing, and deploying customized content types and fields
13
+ * Version: 2.9.10
14
  * Author: Pods Framework Team
15
  * Author URI: https://pods.io/about/
16
  * Text Domain: pods
43
  add_action( 'init', 'pods_deactivate_pods_ui' );
44
  } else {
45
  // Current version.
46
+ define( 'PODS_VERSION', '2.9.10' );
47
 
48
  // Current database version, this is the last version the database changed.
49
  define( 'PODS_DB_VERSION', '2.3.5' );
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: pods, custom post types, custom taxonomies, content types, custom fields,
5
  Requires at least: 5.7
6
  Tested up to: 6.1
7
  Requires PHP: 5.6
8
- Stable tag: 2.9.9
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -173,6 +173,28 @@ Pods really wouldn't be where it is without all the contributions from our [dono
173
 
174
  == Changelog ==
175
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
176
  = 2.9.9 - October 31st, 2022 =
177
 
178
  * Tweak: When a field has moved outside of a group, disallow deleting that group until the Pod has been saved to prevent those fields being removed/orphaned. #6940 #6937 (@zrothauser, @sc0ttkclark)
5
  Requires at least: 5.7
6
  Tested up to: 6.1
7
  Requires PHP: 5.6
8
+ Stable tag: 2.9.10
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
173
 
174
  == Changelog ==
175
 
176
+ = 2.9.10 - December 13th, 2022 =
177
+
178
+ * Performance: Major performance improvements have been made to decrease queries in more areas of Pods and reduce overall load on any page. (@sc0ttkclark)
179
+ * Added: New WP-CLI tool command: `wp pods tools delete-all-content <pod> [--test]` (@sc0ttkclark)
180
+ * Added: New WP-CLI tool command: `wp pods tools delete-all-groups-and-fields <pod> [--test]` (@sc0ttkclark)
181
+ * Added: New WP-CLI tool command: `wp pods tools delete-all-relationship-data <pod> [--fields] [--test]` (@sc0ttkclark)
182
+ * Added: New WP-CLI tool command: `wp pods tools repair-groups-and-fields <pod> [--test]` (@sc0ttkclark)
183
+ * Added: Pods Admin > Tools and Pod Resets can now be previewed before you run them. (@sc0ttkclark)
184
+ * Tweak: Added debug backtrace to DB query errors as an admin, just add `?pods_debug_backtrace=1` to the URL to enable that to find out more details about where the query came from. (@sc0ttkclark)
185
+ * Tweak: Relationships related to a Post Type now have an option to specify "Any Status" as an option for which posts to show. (@sc0ttkclark)
186
+ * Fixed: Advanced filters modal shows empty input fields as expected now for Advanced Content Types. #6949 (@sc0ttkclark)
187
+ * Fixed: Implemented `num_prefix` in `Pods::ui()` for more customization capabilities. (@sc0ttkclark)
188
+ * Fixed: Reduce load on block editor screen for Pods Blocks that have no preview. (@sc0ttkclark)
189
+ * Fixed: PHP 8.0+ compatibility changes have been made to bypass PHP deprecation notices. #6579 (@sc0ttkclark)
190
+ * Fixed: All currently known PHP 8.0+ deprecation notices have been resolved. (@sc0ttkclark)
191
+ * Fixed: Removed `%%%s%%` usage in prepared `LIKE` queries for PodsTermSplitting class. (@sc0ttkclark)
192
+ * Fixed: Pods Auto Templates now checks whether a post is password protected (and needs auth) before outputting the template. #6962 (@sc0ttkclark)
193
+ * Fixed: Excluded Pods config post types from deletion when post author is deleted. #6938 (@sc0ttkclark)
194
+ * Fixed: Settings values now get cached and cleared correctly between saves. #6964 (@sc0ttkclark)
195
+ * Fixed: Admin Columns integration no longer throws unaught type errors for field values that contain an array. #6965 #6966 (@therealgilles, @sc0ttkclark)
196
+ * Fixed: Block editor inspector controls for Pods Blocks that have dropdowns now show as full width as expected. (@sc0ttkclark)
197
+
198
  = 2.9.9 - October 31st, 2022 =
199
 
200
  * Tweak: When a field has moved outside of a group, disallow deleting that group until the Pod has been saved to prevent those fields being removed/orphaned. #6940 #6937 (@zrothauser, @sc0ttkclark)
src/Pods/Admin/Config/Pod.php CHANGED
@@ -1344,7 +1344,7 @@ class Pod extends Base {
1344
  'default' => 'settings',
1345
  'data' => [
1346
  'settings' => __( 'Normal Settings Form', 'pods' ),
1347
- 'post_type' => __( 'Post Type UI', 'pods' ),
1348
  'custom' => __( 'Custom (hook into pods_admin_ui_custom or pods_admin_ui_custom_{podname} action)', 'pods' ),
1349
  ],
1350
  'dependency' => true,
@@ -1415,9 +1415,9 @@ class Pod extends Base {
1415
  'label' => __( 'Admin UI Style', 'pods' ),
1416
  'help' => __( 'help', 'pods' ),
1417
  'type' => 'pick',
1418
- 'default' => 'settings',
1419
  'data' => [
1420
- 'post_type' => __( 'Normal (Looks like the Post Type UI)', 'pods' ),
1421
  'custom' => __( 'Custom (hook into pods_admin_ui_custom or pods_admin_ui_custom_{podname} action)', 'pods' ),
1422
  ],
1423
  'dependency' => true,
@@ -1430,6 +1430,16 @@ class Pod extends Base {
1430
  'boolean_yes_label' => '',
1431
  'dependency' => true,
1432
  ],
 
 
 
 
 
 
 
 
 
 
1433
  'menu_location_custom' => [
1434
  'label' => __( 'Parent Menu ID (optional)', 'pods' ),
1435
  'help' => __( 'help', 'pods' ),
1344
  'default' => 'settings',
1345
  'data' => [
1346
  'settings' => __( 'Normal Settings Form', 'pods' ),
1347
+ 'post_type' => __( 'Classic Editor (Looks like the Classic Editor for Posts UI)', 'pods' ),
1348
  'custom' => __( 'Custom (hook into pods_admin_ui_custom or pods_admin_ui_custom_{podname} action)', 'pods' ),
1349
  ],
1350
  'dependency' => true,
1415
  'label' => __( 'Admin UI Style', 'pods' ),
1416
  'help' => __( 'help', 'pods' ),
1417
  'type' => 'pick',
1418
+ 'default' => 'post_type',
1419
  'data' => [
1420
+ 'post_type' => __( 'Classic Editor (Looks like the Classic Editor for Posts UI)', 'pods' ),
1421
  'custom' => __( 'Custom (hook into pods_admin_ui_custom or pods_admin_ui_custom_{podname} action)', 'pods' ),
1422
  ],
1423
  'dependency' => true,
1430
  'boolean_yes_label' => '',
1431
  'dependency' => true,
1432
  ],
1433
+ 'use_submenu_fallback' => [
1434
+ 'label' => __( 'Fallback Edit in Dashboard', 'pods' ),
1435
+ 'help' => __( 'help', 'pods' ),
1436
+ 'type' => 'boolean',
1437
+ 'default' => false,
1438
+ 'boolean_yes_label' => __( 'Use the fallback generic "Pods" content menu so content can be managed', 'pods' ),
1439
+ 'depends-on' => [
1440
+ 'show_in_menu' => false,
1441
+ ],
1442
+ ],
1443
  'menu_location_custom' => [
1444
  'label' => __( 'Parent Menu ID (optional)', 'pods' ),
1445
  'help' => __( 'help', 'pods' ),
src/Pods/Blocks/API.php CHANGED
@@ -121,12 +121,6 @@ class API {
121
  return $blocks;
122
  }
123
 
124
- $cached = pods_transient_get( 'pods_blocks' );
125
-
126
- if ( is_array( $cached ) ) {
127
- return $cached;
128
- }
129
-
130
  $this->setup_core_blocks();
131
 
132
  $api = pods_api();
@@ -134,6 +128,7 @@ class API {
134
  /** @var Block[] $blocks */
135
  $blocks = $api->_load_objects( [
136
  'object_type' => 'block',
 
137
  // Disable DB queries for now.
138
  'bypass_post_type_find' => false,
139
  ] );
@@ -145,8 +140,6 @@ class API {
145
  return $block->get_block_args();
146
  }, $blocks );
147
 
148
- pods_transient_set( 'pods_blocks', $blocks, DAY_IN_SECONDS * 7 );
149
-
150
  return $blocks;
151
  }
152
 
121
  return $blocks;
122
  }
123
 
 
 
 
 
 
 
124
  $this->setup_core_blocks();
125
 
126
  $api = pods_api();
128
  /** @var Block[] $blocks */
129
  $blocks = $api->_load_objects( [
130
  'object_type' => 'block',
131
+ 'bypass_cache' => true,
132
  // Disable DB queries for now.
133
  'bypass_post_type_find' => false,
134
  ] );
140
  return $block->get_block_args();
141
  }, $blocks );
142
 
 
 
143
  return $blocks;
144
  }
145
 
src/Pods/Blocks/Types/Base.php CHANGED
@@ -156,6 +156,52 @@ abstract class Base extends Tribe__Editor__Blocks__Abstract {
156
  return ob_get_clean();
157
  }
158
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
159
  /**
160
  * Determine whether we are preloading a block.
161
  *
@@ -201,6 +247,11 @@ abstract class Base extends Tribe__Editor__Blocks__Abstract {
201
  public function in_editor_mode( $attributes = [] ) {
202
  return (
203
  ! empty( $attributes['_is_editor'] )
 
 
 
 
 
204
  || (
205
  wp_is_json_request()
206
  && did_action( 'rest_api_init' )
156
  return ob_get_clean();
157
  }
158
 
159
+ /**
160
+ * Get the list of all Pods for a block field.
161
+ *
162
+ * @since 2.9.10
163
+ *
164
+ * @return array List of all Pod names and labels.
165
+ */
166
+ public function callback_get_all_pods() {
167
+ $api = pods_api();
168
+
169
+ $all_pods = [];
170
+
171
+ try {
172
+ $all_pods = $api->load_pods( [ 'names' => true ] );
173
+ } catch ( \Exception $exception ) {
174
+ // Do nothing.
175
+ }
176
+
177
+ return array_merge( [
178
+ '' => '- ' . __( 'Use Current Pod', 'pods' ) . ' -',
179
+ ], $all_pods );
180
+ }
181
+
182
+ /**
183
+ * Get the list of all Pod Templates for a block field.
184
+ *
185
+ * @since 2.9.10
186
+ *
187
+ * @return array List of all Pod Template names and labels.
188
+ */
189
+ public function callback_get_all_pod_templates() {
190
+ $api = pods_api();
191
+
192
+ $all_templates = [];
193
+
194
+ try {
195
+ $all_templates = $api->load_templates( [ 'names' => true ] );
196
+ } catch ( \Exception $exception ) {
197
+ // Do nothing.
198
+ }
199
+
200
+ return array_merge( [
201
+ '' => '- ' . __( 'Use Custom Template', 'pods' ) . ' -',
202
+ ], $all_templates );
203
+ }
204
+
205
  /**
206
  * Determine whether we are preloading a block.
207
  *
247
  public function in_editor_mode( $attributes = [] ) {
248
  return (
249
  ! empty( $attributes['_is_editor'] )
250
+ || (
251
+ is_admin()
252
+ && $screen = get_current_screen()
253
+ && 'post' === $screen->base
254
+ )
255
  || (
256
  wp_is_json_request()
257
  && did_action( 'rest_api_init' )
src/Pods/Blocks/Types/Field.php CHANGED
@@ -92,19 +92,12 @@ class Field extends Base {
92
  * @return array List of Field configurations.
93
  */
94
  public function fields() {
95
- $api = pods_api();
96
-
97
- $all_pods = $api->load_pods( [ 'names' => true ] );
98
- $all_pods = array_merge( [
99
- '' => '- ' . __( 'Use Current Pod', 'pods' ) . ' -',
100
- ], $all_pods );
101
-
102
  return [
103
  [
104
  'name' => 'name',
105
  'label' => __( 'Pod Name', 'pods' ),
106
  'type' => 'pick',
107
- 'data' => $all_pods,
108
  'default' => '',
109
  'description' => __( 'Choose the pod to reference, or reference the Pod in the current context of this block.', 'pods' ),
110
  ],
@@ -173,7 +166,7 @@ class Field extends Base {
173
  unset( $attributes['use_current'] );
174
  }
175
  } elseif (
176
- ! empty( $attributes['use_current'] )
177
  && 0 !== $provided_post_id
178
  && $this->in_editor_mode( $attributes )
179
  ) {
92
  * @return array List of Field configurations.
93
  */
94
  public function fields() {
 
 
 
 
 
 
 
95
  return [
96
  [
97
  'name' => 'name',
98
  'label' => __( 'Pod Name', 'pods' ),
99
  'type' => 'pick',
100
+ 'data' => [ $this, 'callback_get_all_pods' ],
101
  'default' => '',
102
  'description' => __( 'Choose the pod to reference, or reference the Pod in the current context of this block.', 'pods' ),
103
  ],
166
  unset( $attributes['use_current'] );
167
  }
168
  } elseif (
169
+ $attributes['use_current']
170
  && 0 !== $provided_post_id
171
  && $this->in_editor_mode( $attributes )
172
  ) {
src/Pods/Blocks/Types/Form.php CHANGED
@@ -147,19 +147,12 @@ class Form extends Base {
147
  * @return array List of Field configurations.
148
  */
149
  public function fields() {
150
- $api = pods_api();
151
-
152
- $all_pods = $api->load_pods( [ 'names' => true ] );
153
- $all_pods = array_merge( [
154
- '' => '- ' . __( 'Use Current Pod', 'pods' ) . ' -',
155
- ], $all_pods );
156
-
157
  return [
158
  [
159
  'name' => 'name',
160
  'label' => __( 'Pod Name', 'pods' ),
161
  'type' => 'pick',
162
- 'data' => $all_pods,
163
  'default' => '',
164
  'description' => __( 'Choose the pod to reference, or reference the Pod in the current context of this block.', 'pods' ),
165
  ],
147
  * @return array List of Field configurations.
148
  */
149
  public function fields() {
 
 
 
 
 
 
 
150
  return [
151
  [
152
  'name' => 'name',
153
  'label' => __( 'Pod Name', 'pods' ),
154
  'type' => 'pick',
155
+ 'data' => [ $this, 'callback_get_all_pods' ],
156
  'default' => '',
157
  'description' => __( 'Choose the pod to reference, or reference the Pod in the current context of this block.', 'pods' ),
158
  ],
src/Pods/Blocks/Types/Item_List.php CHANGED
@@ -177,18 +177,6 @@ class Item_List extends Base {
177
  * @return array List of Field configurations.
178
  */
179
  public function fields() {
180
- $api = pods_api();
181
-
182
- $all_pods = $api->load_pods( [ 'names' => true ] );
183
- $all_pods = array_merge( [
184
- '' => '- ' . __( 'Use Current Pod', 'pods' ) . ' -',
185
- ], $all_pods );
186
-
187
- $all_templates = $api->load_templates( [ 'names' => true ] );
188
- $all_templates = array_merge( [
189
- '' => '- ' . __( 'Use Custom Template', 'pods' ) . ' -',
190
- ], $all_templates );
191
-
192
  $cache_modes = [
193
  [
194
  'label' => 'Disable Caching',
@@ -222,7 +210,7 @@ class Item_List extends Base {
222
  'name' => 'name',
223
  'label' => __( 'Pod Name', 'pods' ),
224
  'type' => 'pick',
225
- 'data' => $all_pods,
226
  'default' => '',
227
  'description' => __( 'Choose the pod to reference, or reference the Pod in the current context of this block.', 'pods' ),
228
  ],
@@ -230,7 +218,7 @@ class Item_List extends Base {
230
  'name' => 'template',
231
  'label' => __( 'Template', 'pods' ),
232
  'type' => 'pick',
233
- 'data' => $all_templates,
234
  'default' => '',
235
  'description' => __( 'You can choose a previously saved Pods Template here. We recommend saving your Pods Templates with our Templates component so you can enjoy the full editing experience.', 'pods' ),
236
  ],
177
  * @return array List of Field configurations.
178
  */
179
  public function fields() {
 
 
 
 
 
 
 
 
 
 
 
 
180
  $cache_modes = [
181
  [
182
  'label' => 'Disable Caching',
210
  'name' => 'name',
211
  'label' => __( 'Pod Name', 'pods' ),
212
  'type' => 'pick',
213
+ 'data' => [ $this, 'callback_get_all_pods' ],
214
  'default' => '',
215
  'description' => __( 'Choose the pod to reference, or reference the Pod in the current context of this block.', 'pods' ),
216
  ],
218
  'name' => 'template',
219
  'label' => __( 'Template', 'pods' ),
220
  'type' => 'pick',
221
+ 'data' => [ $this, 'callback_get_all_pod_templates' ],
222
  'default' => '',
223
  'description' => __( 'You can choose a previously saved Pods Template here. We recommend saving your Pods Templates with our Templates component so you can enjoy the full editing experience.', 'pods' ),
224
  ],
src/Pods/Blocks/Types/Item_Single.php CHANGED
@@ -161,24 +161,12 @@ class Item_Single extends Base {
161
  * @return array List of Field configurations.
162
  */
163
  public function fields() {
164
- $api = pods_api();
165
-
166
- $all_pods = $api->load_pods( [ 'names' => true ] );
167
- $all_pods = array_merge( [
168
- '' => '- ' . __( 'Use Current Pod', 'pods' ) . ' -',
169
- ], $all_pods );
170
-
171
- $all_templates = $api->load_templates( [ 'names' => true ] );
172
- $all_templates = array_merge( [
173
- '' => '- ' . __( 'Use Custom Template', 'pods' ) . ' -',
174
- ], $all_templates );
175
-
176
  return [
177
  [
178
  'name' => 'name',
179
  'label' => __( 'Pod Name', 'pods' ),
180
  'type' => 'pick',
181
- 'data' => $all_pods,
182
  'default' => '',
183
  'description' => __( 'Choose the pod to reference, or reference the Pod in the current context of this block.', 'pods' ),
184
  ],
@@ -192,7 +180,7 @@ class Item_Single extends Base {
192
  'name' => 'template',
193
  'label' => __( 'Template', 'pods' ),
194
  'type' => 'pick',
195
- 'data' => $all_templates,
196
  'default' => '',
197
  'description' => __( 'You can choose a previously saved Pods Template here. We recommend saving your Pods Templates with our Templates component so you can enjoy the full editing experience.', 'pods' ),
198
  ],
161
  * @return array List of Field configurations.
162
  */
163
  public function fields() {
 
 
 
 
 
 
 
 
 
 
 
 
164
  return [
165
  [
166
  'name' => 'name',
167
  'label' => __( 'Pod Name', 'pods' ),
168
  'type' => 'pick',
169
+ 'data' => [ $this, 'callback_get_all_pods' ],
170
  'default' => '',
171
  'description' => __( 'Choose the pod to reference, or reference the Pod in the current context of this block.', 'pods' ),
172
  ],
180
  'name' => 'template',
181
  'label' => __( 'Template', 'pods' ),
182
  'type' => 'pick',
183
+ 'data' => [ $this, 'callback_get_all_pod_templates' ],
184
  'default' => '',
185
  'description' => __( 'You can choose a previously saved Pods Template here. We recommend saving your Pods Templates with our Templates component so you can enjoy the full editing experience.', 'pods' ),
186
  ],
src/Pods/Blocks/Types/Item_Single_List_Fields.php CHANGED
@@ -61,19 +61,12 @@ class Item_Single_List_Fields extends Item_Single {
61
  * @return array List of Field configurations.
62
  */
63
  public function fields() {
64
- $api = pods_api();
65
-
66
- $all_pods = $api->load_pods( [ 'names' => true ] );
67
- $all_pods = array_merge( [
68
- '' => '- ' . __( 'Use Current Pod', 'pods' ) . ' -',
69
- ], $all_pods );
70
-
71
  return [
72
  [
73
  'name' => 'name',
74
  'label' => __( 'Pod Name', 'pods' ),
75
  'type' => 'pick',
76
- 'data' => $all_pods,
77
  'default' => '',
78
  'description' => __( 'Choose the pod to reference, or reference the Pod in the current context of this block.', 'pods' ),
79
  ],
@@ -88,11 +81,11 @@ class Item_Single_List_Fields extends Item_Single {
88
  'label' => __( 'Output Type', 'pods' ),
89
  'type' => 'pick',
90
  'data' => [
91
- 'ul' => 'Unordered list (<ul>)',
92
- 'dl' => 'Description list (<dl>)',
93
- 'p' => 'Paragraph elements (<p>)',
94
- 'div' => 'Div containers (<div>)',
95
- 'table' => 'Table rows (<table>)',
96
  ],
97
  'default' => 'ul',
98
  'description' => __( 'Choose how you want your output HTML to be set up. This allows you flexibility to build and style your output with any CSS customizations you would like. Some output types are naturally laid out better in certain themes.', 'pods' ),
61
  * @return array List of Field configurations.
62
  */
63
  public function fields() {
 
 
 
 
 
 
 
64
  return [
65
  [
66
  'name' => 'name',
67
  'label' => __( 'Pod Name', 'pods' ),
68
  'type' => 'pick',
69
+ 'data' => [ $this, 'callback_get_all_pods' ],
70
  'default' => '',
71
  'description' => __( 'Choose the pod to reference, or reference the Pod in the current context of this block.', 'pods' ),
72
  ],
81
  'label' => __( 'Output Type', 'pods' ),
82
  'type' => 'pick',
83
  'data' => [
84
+ 'ul' => __( 'Unordered list', 'pods' ) . ' (<ul>)',
85
+ 'dl' => __( 'Description list', 'pods' ) . ' (<dl>)',
86
+ 'p' => __( 'Paragraph elements', 'pods' ) . ' (<p>)',
87
+ 'div' => __( 'Div containers', 'pods' ) . ' (<div>)',
88
+ 'table' => __( 'Table rows', 'pods' ) . ' (<table>)',
89
  ],
90
  'default' => 'ul',
91
  'description' => __( 'Choose how you want your output HTML to be set up. This allows you flexibility to build and style your output with any CSS customizations you would like. Some output types are naturally laid out better in certain themes.', 'pods' ),
src/Pods/CLI/Commands/Playbook.php CHANGED
@@ -29,7 +29,7 @@ class Playbook extends WP_CLI_Command {
29
  * : Whether to run the playbook in test mode and not add/change/remove any data in the database.
30
  *
31
  * [--continue-on-error]
32
- * : Whether to continue on errors when the playbook is rim.
33
  *
34
  * ## EXAMPLES
35
  *
29
  * : Whether to run the playbook in test mode and not add/change/remove any data in the database.
30
  *
31
  * [--continue-on-error]
32
+ * : Whether to continue on errors when the playbook is run.
33
  *
34
  * ## EXAMPLES
35
  *
src/Pods/CLI/Commands/Tools.php ADDED
@@ -0,0 +1,294 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Pods\CLI\Commands;
4
+
5
+ use Exception;
6
+ use Pods\Tools\Repair;
7
+ use Pods\Tools\Reset;
8
+ use Pods_Migrate_Packages;
9
+ use PodsInit;
10
+ use PodsMigrate;
11
+ use WP_CLI;
12
+ use WP_CLI_Command;
13
+ use function WP_CLI\Utils\make_progress_bar;
14
+
15
+ /**
16
+ * Pods Tools commands.
17
+ *
18
+ * @since 2.9.10
19
+ */
20
+ class Tools extends WP_CLI_Command {
21
+
22
+ /**
23
+ * Delete all content for Pod.
24
+ *
25
+ * ## OPTIONS
26
+ *
27
+ * <pod>
28
+ * : The pod name.
29
+ *
30
+ * [--test]
31
+ * : Whether to run the tool in test mode and not add/change/remove any data in the database.
32
+ *
33
+ * ## EXAMPLES
34
+ *
35
+ * wp pods delete-all-content your_pod
36
+ * - Delete all content for the pod "your_pod".
37
+ *
38
+ * wp pods delete-all-content your_pod --test
39
+ * - Preview the deleting of all content for the pod "your_pod", without changing the database.
40
+ *
41
+ * @subcommand delete-all-content
42
+ *
43
+ * @since 2.9.10
44
+ *
45
+ * @param array $args The list of positional arguments.
46
+ * @param array $assoc_args The list of associative arguments.
47
+ */
48
+ public function delete_all_content( $args, $assoc_args ) {
49
+ $api = pods_api();
50
+
51
+ $pod_name = $args[0];
52
+ $test_mode = ! empty( $assoc_args['test'] );
53
+
54
+ // Run the tool.
55
+ if ( empty( $pod_name ) ) {
56
+ WP_CLI::error( __( 'No Pod specified.', 'pods' ) );
57
+
58
+ return;
59
+ } else {
60
+ try {
61
+ $pod = $api->load_pod( [ 'name' => $pod_name ], false );
62
+
63
+ if ( empty( $pod ) ) {
64
+ WP_CLI::error( __( 'Pod not found.', 'pods' ) );
65
+
66
+ return;
67
+ } else {
68
+ $tool = pods_container( Reset::class );
69
+
70
+ $mode = 'full';
71
+
72
+ if ( $test_mode ) {
73
+ $mode = 'preview';
74
+ }
75
+
76
+ $tool->delete_all_content_for_pod( $pod, $mode );
77
+ }
78
+ } catch ( Exception $exception ) {
79
+ WP_CLI::error( $exception->getMessage() );
80
+
81
+ return;
82
+ }
83
+ }
84
+
85
+ WP_CLI::debug( __( 'Command timing', 'pods' ) );
86
+ WP_CLI::success( __( 'Tool complete', 'pods' ) );
87
+ }
88
+
89
+ /**
90
+ * Delete all relationship data for Pod.
91
+ *
92
+ * ## OPTIONS
93
+ *
94
+ * <pod>
95
+ * : The pod name.
96
+ *
97
+ * [--fields]
98
+ * : The field name(s) (leave empty to delete relationship data for all fields on pod).
99
+ *
100
+ * [--test]
101
+ * : Whether to run the tool in test mode and not add/change/remove any data in the database.
102
+ *
103
+ * ## EXAMPLES
104
+ *
105
+ * wp pods delete-all-relationship-data your_pod
106
+ * - Delete all relationship data for the pod "your_pod".
107
+ *
108
+ * wp pods delete-all-relationship-data your_pod --test
109
+ * - Preview the deleting of all relationship data for the pod "your_pod", without changing the database.
110
+ *
111
+ * @subcommand delete-all-relationship-data
112
+ *
113
+ * @since 2.9.10
114
+ *
115
+ * @param array $args The list of positional arguments.
116
+ * @param array $assoc_args The list of associative arguments.
117
+ */
118
+ public function delete_all_relationship_data_for_pod( $args, $assoc_args ) {
119
+ $api = pods_api();
120
+
121
+ $pod_name = $args[0];
122
+ $field_names = ! empty( $assoc_args['fields'] ) ? $assoc_args['fields'] : null;
123
+ $test_mode = ! empty( $assoc_args['test'] );
124
+
125
+ // Run the tool.
126
+ if ( empty( $pod_name ) ) {
127
+ WP_CLI::error( __( 'No Pod specified.', 'pods' ) );
128
+
129
+ return;
130
+ } else {
131
+ try {
132
+ $pod = $api->load_pod( [ 'name' => $pod_name ], false );
133
+
134
+ if ( empty( $pod ) ) {
135
+ WP_CLI::error( __( 'Pod not found.', 'pods' ) );
136
+
137
+ return;
138
+ } else {
139
+ $tool = pods_container( Reset::class );
140
+
141
+ $mode = 'full';
142
+
143
+ if ( $test_mode ) {
144
+ $mode = 'preview';
145
+ }
146
+
147
+ $tool->delete_all_relationship_data_for_pod( $pod, $field_names, $mode );
148
+ }
149
+ } catch ( Exception $exception ) {
150
+ WP_CLI::error( $exception->getMessage() );
151
+
152
+ return;
153
+ }
154
+ }
155
+
156
+ WP_CLI::debug( __( 'Command timing', 'pods' ) );
157
+ WP_CLI::success( __( 'Tool complete', 'pods' ) );
158
+ }
159
+
160
+ /**
161
+ * Delete all groups and fields for Pod.
162
+ *
163
+ * ## OPTIONS
164
+ *
165
+ * <pod>
166
+ * : The pod name.
167
+ *
168
+ * [--test]
169
+ * : Whether to run the tool in test mode and not add/change/remove any data in the database.
170
+ *
171
+ * ## EXAMPLES
172
+ *
173
+ * wp pods delete-all-groups-and-fields your_pod
174
+ * - Delete all groups and fields for the pod "your_pod".
175
+ *
176
+ * wp pods delete-all-groups-and-fields your_pod --test
177
+ * - Preview the deleting of all groups and fields for the pod "your_pod", without changing the database.
178
+ *
179
+ * @subcommand delete-all-groups-and-fields
180
+ *
181
+ * @since 2.9.10
182
+ *
183
+ * @param array $args The list of positional arguments.
184
+ * @param array $assoc_args The list of associative arguments.
185
+ */
186
+ public function delete_all_groups_and_fields( $args, $assoc_args ) {
187
+ $api = pods_api();
188
+
189
+ $pod_name = $args[0];
190
+ $test_mode = ! empty( $assoc_args['test'] );
191
+
192
+ // Run the tool.
193
+ if ( empty( $pod_name ) ) {
194
+ WP_CLI::error( __( 'No Pod specified.', 'pods' ) );
195
+
196
+ return;
197
+ } else {
198
+ try {
199
+ $pod = $api->load_pod( [ 'name' => $pod_name ], false );
200
+
201
+ if ( empty( $pod ) ) {
202
+ WP_CLI::error( __( 'Pod not found.', 'pods' ) );
203
+
204
+ return;
205
+ } else {
206
+ $tool = pods_container( Reset::class );
207
+
208
+ $mode = 'full';
209
+
210
+ if ( $test_mode ) {
211
+ $mode = 'preview';
212
+ }
213
+
214
+ $tool->delete_all_content_for_pod( $pod, $mode );
215
+ }
216
+ } catch ( Exception $exception ) {
217
+ WP_CLI::error( $exception->getMessage() );
218
+
219
+ return;
220
+ }
221
+ }
222
+
223
+ WP_CLI::debug( __( 'Command timing', 'pods' ) );
224
+ WP_CLI::success( __( 'Tool complete', 'pods' ) );
225
+ }
226
+
227
+ /**
228
+ * Delete all groups and fields for Pod.
229
+ *
230
+ * ## OPTIONS
231
+ *
232
+ * <pod>
233
+ * : The pod name.
234
+ *
235
+ * [--test]
236
+ * : Whether to run the tool in test mode and not add/change/remove any data in the database.
237
+ *
238
+ * ## EXAMPLES
239
+ *
240
+ * wp pods repair-groups-and-fields your_pod
241
+ * - Repair groups and fields for the pod "your_pod".
242
+ *
243
+ * wp pods repair-groups-and-fields your_pod --test
244
+ * - Preview the repair of all groups and fields for the pod "your_pod", without changing the database.
245
+ *
246
+ * @subcommand repair-groups-and-fields
247
+ *
248
+ * @since 2.9.10
249
+ *
250
+ * @param array $args The list of positional arguments.
251
+ * @param array $assoc_args The list of associative arguments.
252
+ */
253
+ public function repair_groups_and_fields( $args, $assoc_args ) {
254
+ $api = pods_api();
255
+
256
+ $pod_name = $args[0];
257
+ $test_mode = ! empty( $assoc_args['test'] );
258
+
259
+ // Run the tool.
260
+ if ( empty( $pod_name ) ) {
261
+ WP_CLI::error( __( 'No Pod specified.', 'pods' ) );
262
+
263
+ return;
264
+ } else {
265
+ try {
266
+ $pod = $api->load_pod( [ 'name' => $pod_name ], false );
267
+
268
+ if ( empty( $pod ) ) {
269
+ WP_CLI::error( __( 'Pod not found.', 'pods' ) );
270
+
271
+ return;
272
+ } else {
273
+ $tool = pods_container( Repair::class );
274
+
275
+ $mode = 'full';
276
+
277
+ if ( $test_mode ) {
278
+ $mode = 'preview';
279
+ }
280
+
281
+ $tool->repair_groups_and_fields_for_pod( $pod, $mode );
282
+ }
283
+ } catch ( Exception $exception ) {
284
+ WP_CLI::error( $exception->getMessage() );
285
+
286
+ return;
287
+ }
288
+ }
289
+
290
+ WP_CLI::debug( __( 'Command timing', 'pods' ) );
291
+ WP_CLI::success( __( 'Tool complete', 'pods' ) );
292
+ }
293
+
294
+ }
src/Pods/CLI/Service_Provider.php CHANGED
@@ -6,6 +6,7 @@ use Pods\CLI\Commands\Field;
6
  use Pods\CLI\Commands\Group;
7
  use Pods\CLI\Commands\Playbook;
8
  use Pods\CLI\Commands\Pod;
 
9
  use WP_CLI;
10
  use tad_DI52_ServiceProvider;
11
 
@@ -50,6 +51,7 @@ class Service_Provider extends tad_DI52_ServiceProvider {
50
  // Add static commands.
51
  if ( defined( 'WP_CLI' ) ) {
52
  WP_CLI::add_command( 'pods playbook', Playbook::class );
 
53
  }
54
  }
55
  }
6
  use Pods\CLI\Commands\Group;
7
  use Pods\CLI\Commands\Playbook;
8
  use Pods\CLI\Commands\Pod;
9
+ use Pods\CLI\Commands\Tools;
10
  use WP_CLI;
11
  use tad_DI52_ServiceProvider;
12
 
51
  // Add static commands.
52
  if ( defined( 'WP_CLI' ) ) {
53
  WP_CLI::add_command( 'pods playbook', Playbook::class );
54
+ WP_CLI::add_command( 'pods tools', Tools::class );
55
  }
56
  }
57
  }
src/Pods/Config_Handler.php CHANGED
@@ -338,6 +338,8 @@ class Config_Handler {
338
 
339
  $found_configs = [];
340
 
 
 
341
  foreach ( $this->registered_paths as $config_path ) {
342
  foreach ( $file_configs as $file_config ) {
343
  if ( empty( $file_config['theme_support'] ) && isset( $theme_dirs[ $config_path ] ) ) {
@@ -354,11 +356,21 @@ class Config_Handler {
354
 
355
  if ( $found_config ) {
356
  $found_configs[ $file_path ] = true;
 
 
357
  }
358
  }
359
  }
360
 
361
- pods_transient_set( 'pods_config_handler_found_configs', $found_configs, DAY_IN_SECONDS );
 
 
 
 
 
 
 
 
362
 
363
  foreach ( $this->registered_files as $config_type => $files ) {
364
  foreach ( $files as $file ) {
338
 
339
  $found_configs = [];
340
 
341
+ $refresh_cache = false;
342
+
343
  foreach ( $this->registered_paths as $config_path ) {
344
  foreach ( $file_configs as $file_config ) {
345
  if ( empty( $file_config['theme_support'] ) && isset( $theme_dirs[ $config_path ] ) ) {
356
 
357
  if ( $found_config ) {
358
  $found_configs[ $file_path ] = true;
359
+ } elseif ( $cached_found_configs ) {
360
+ $refresh_cache = true;
361
  }
362
  }
363
  }
364
 
365
+ if (
366
+ $refresh_cache
367
+ || (
368
+ ! empty( $found_configs )
369
+ && $found_configs !== $cached_found_configs
370
+ )
371
+ ) {
372
+ pods_transient_set( 'pods_config_handler_found_configs', $found_configs, WEEK_IN_SECONDS );
373
+ }
374
 
375
  foreach ( $this->registered_files as $config_type => $files ) {
376
  foreach ( $files as $file ) {
src/Pods/Integrations/WPGraphQL/Connection_Resolver/Pod.php CHANGED
@@ -52,7 +52,7 @@ class Pod extends AbstractConnectionResolver {
52
 
53
  // The pod name is not set.
54
  if ( ! empty( $this->pod_name ) ) {
55
- $this->pod = pods( $this->pod_name, null, true );
56
  }
57
 
58
  /**
@@ -263,7 +263,7 @@ class Pod extends AbstractConnectionResolver {
263
  }
264
 
265
  // Set up a new Pods instance instead of reusing $this->pod to prevent conflicts.
266
- $pod = pods( $this->pod_name, $offset, false );
267
 
268
  // The pod does not exist.
269
  if ( ! $pod->valid() ) {
52
 
53
  // The pod name is not set.
54
  if ( ! empty( $this->pod_name ) ) {
55
+ $this->pod = pods_get_instance( $this->pod_name, null, true );
56
  }
57
 
58
  /**
263
  }
264
 
265
  // Set up a new Pods instance instead of reusing $this->pod to prevent conflicts.
266
+ $pod = pods_get_instance( $this->pod_name, $offset, false );
267
 
268
  // The pod does not exist.
269
  if ( ! $pod->valid() ) {
src/Pods/REST/V1/Endpoints/Base.php CHANGED
@@ -228,7 +228,7 @@ abstract class Base {
228
  * @return false|Pods
229
  */
230
  public function get_pod_item_by_id_or_slug( $id_or_slug ) {
231
- $pod = pods( $this->object, $id_or_slug );
232
 
233
  if ( ! $pod || is_wp_error( $pod ) || ! $pod->valid() || ! $pod->exists() ) {
234
  return false;
228
  * @return false|Pods
229
  */
230
  public function get_pod_item_by_id_or_slug( $id_or_slug ) {
231
+ $pod = pods_get_instance( $this->object, $id_or_slug );
232
 
233
  if ( ! $pod || is_wp_error( $pod ) || ! $pod->valid() || ! $pod->exists() ) {
234
  return false;
src/Pods/REST/V1/Validator/Base.php CHANGED
@@ -35,7 +35,7 @@ class Base extends Validator_Base implements Validator_Interface {
35
  * @return bool Whether the Pod / Item ID is valid.
36
  */
37
  public function is_pod_item_id_or_slug_valid( $pod, $id_or_slug ) {
38
- $pod = pods( $pod, $id_or_slug );
39
 
40
  return $pod && ! is_wp_error( $pod ) && $pod->valid() && $pod->exists();
41
  }
35
  * @return bool Whether the Pod / Item ID is valid.
36
  */
37
  public function is_pod_item_id_or_slug_valid( $pod, $id_or_slug ) {
38
+ $pod = pods_get_instance( $pod, $id_or_slug );
39
 
40
  return $pod && ! is_wp_error( $pod ) && $pod->valid() && $pod->exists();
41
  }
src/Pods/Service_Provider.php CHANGED
@@ -24,6 +24,7 @@ class Service_Provider extends tad_DI52_ServiceProvider {
24
  $this->container->singleton( Data\Map_Field_Values::class, Data\Map_Field_Values::class );
25
  $this->container->singleton( Theme\WP_Query_Integration::class, Theme\WP_Query_Integration::class );
26
  $this->container->singleton( Tools\Repair::class, Tools\Repair::class );
 
27
 
28
  $this->hooks();
29
  }
24
  $this->container->singleton( Data\Map_Field_Values::class, Data\Map_Field_Values::class );
25
  $this->container->singleton( Theme\WP_Query_Integration::class, Theme\WP_Query_Integration::class );
26
  $this->container->singleton( Tools\Repair::class, Tools\Repair::class );
27
+ $this->container->singleton( Tools\Reset::class, Tools\Reset::class );
28
 
29
  $this->hooks();
30
  }
src/Pods/Tools/Base.php ADDED
@@ -0,0 +1,136 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Pods\Tools;
4
+
5
+ use PodsAPI;
6
+ use WP_CLI;
7
+
8
+ /**
9
+ * Base tool functionality.
10
+ *
11
+ * @since 2.9.10
12
+ */
13
+ class Base {
14
+
15
+ /**
16
+ * @var PodsAPI
17
+ */
18
+ protected $api;
19
+
20
+ /**
21
+ * @var array
22
+ */
23
+ protected $errors = [];
24
+
25
+ /**
26
+ * Setup the tool.
27
+ *
28
+ * @since 2.9.10
29
+ */
30
+ protected function setup() {
31
+ if ( ! $this->api ) {
32
+ $this->api = pods_api();
33
+ }
34
+ }
35
+
36
+ /**
37
+ * Get the message HTML from the results.
38
+ *
39
+ * @since 2.9.10
40
+ *
41
+ * @param string $tool_heading The tool heading text.
42
+ * @param array $results The tool results.
43
+ * @param null|string $mode The tool mode.
44
+ *
45
+ * @return string The message HTML.
46
+ */
47
+ protected function get_message_html( $tool_heading, array $results, $mode = null ) {
48
+ $using_cli = defined( 'WP_CLI' );
49
+
50
+ $messages = [];
51
+
52
+ if ( $tool_heading ) {
53
+ if ( $using_cli ) {
54
+ WP_CLI::line( '=== ' . $tool_heading . ' ===' );
55
+ } else {
56
+ $messages[] = sprintf(
57
+ '<h3>%s</h3>',
58
+ $tool_heading
59
+ );
60
+ }
61
+ }
62
+
63
+ if ( 'preview' === $mode ) {
64
+ $results = array_merge(
65
+ [
66
+ __( 'Preview Mode Active', 'pods' ) => __( 'These results did not add or change anything in the database.', 'pods' ),
67
+ ],
68
+ $results
69
+ );
70
+ }
71
+
72
+ $has_errors = ! empty( $this->errors );
73
+
74
+ $errors_heading = __( 'Errors', 'pods' );
75
+
76
+ if ( $has_errors ) {
77
+ $results[ $errors_heading ] = $this->errors;
78
+ }
79
+
80
+ foreach ( $results as $heading => $result_set ) {
81
+ if ( ! is_array( $result_set ) ) {
82
+ $result_set = (array) $result_set;
83
+ }
84
+
85
+ if ( empty( $result_set ) ) {
86
+ pods_debug( $heading );
87
+ $result_set[] = __( 'No actions were needed.', 'pods' );
88
+ }
89
+
90
+ if ( $using_cli ) {
91
+ if ( $errors_heading === $heading ) {
92
+ WP_CLI::warning( $heading . '...' );
93
+
94
+ foreach ( $result_set as $result ) {
95
+ WP_CLI::warning( '- ' . $result );
96
+ }
97
+ } else {
98
+ WP_CLI::line( $heading . '...' );
99
+
100
+ foreach ( $result_set as $result ) {
101
+ WP_CLI::line( '- ' . $result );
102
+ }
103
+ }
104
+ } else {
105
+ $messages[] = sprintf(
106
+ '<h4>%1$s</h4><ul class="ul-disc"><li>%2$s</li></ul>',
107
+ esc_html( $heading ),
108
+ implode( '</li><li>', array_map( 'esc_html', $result_set ) )
109
+ );
110
+ }
111
+ }
112
+
113
+ $total_messages = count( $messages );
114
+
115
+ $total_check = $tool_heading ? 1 : 0;
116
+
117
+ if ( $total_messages <= $total_check ) {
118
+ if ( $using_cli ) {
119
+ WP_CLI::warning( __( 'No actions were needed.', 'pods' ) );
120
+ } else {
121
+ $messages[] = esc_html__( 'No actions were needed.', 'pods' );
122
+ }
123
+ }
124
+
125
+ if ( $using_cli ) {
126
+ if ( $has_errors ) {
127
+ WP_CLI::error( __( 'This tool was unable to complete', 'pods' ) );
128
+ }
129
+
130
+ return '';
131
+ }
132
+
133
+ return wpautop( implode( "\n\n", $messages ) );
134
+ }
135
+
136
+ }
src/Pods/Tools/Repair.php CHANGED
@@ -4,7 +4,6 @@ namespace Pods\Tools;
4
 
5
  use Exception;
6
  use Throwable;
7
- use PodsAPI;
8
  use PodsForm;
9
  use Pods\Whatsit\Field;
10
  use Pods\Whatsit\Group;
@@ -15,17 +14,7 @@ use Pods\Whatsit\Pod;
15
  *
16
  * @since 2.9.4
17
  */
18
- class Repair {
19
-
20
- /**
21
- * @var PodsAPI
22
- */
23
- private $api;
24
-
25
- /**
26
- * @var array
27
- */
28
- private $errors = [];
29
 
30
  /**
31
  * Repair Groups and Fields for a Pod.
@@ -33,14 +22,16 @@ class Repair {
33
  * @since 2.9.4
34
  *
35
  * @param Pod $pod The Pod object.
36
- * @param string $mode The repair mode (upgrade or full).
37
  *
38
  * @return array The results with information about the repair done.
39
  */
40
  public function repair_groups_and_fields_for_pod( Pod $pod, $mode ) {
41
- $this->api = pods_api();
 
42
  $this->errors = [];
43
 
 
44
  $is_upgrade_mode = 'upgrade' === $mode;
45
  $is_migrated = 1 === (int) $pod->get_arg( '_migrated_28' );
46
 
@@ -64,30 +55,30 @@ class Repair {
64
  $group_id = reset( $groups );
65
  }
66
  } else {
67
- $results['maybe_setup_group_if_no_groups'] = __( 'First group created.', 'pods' );
68
  }
69
 
70
  if ( ! $is_upgrade_mode || $is_migrated ) {
71
  // Maybe resolve group conflicts.
72
- $results['maybe_resolve_group_conflicts'] = $this->maybe_resolve_group_conflicts( $pod );
73
 
74
  // Maybe resolve field conflicts.
75
- $results['maybe_resolve_field_conflicts'] = $this->maybe_resolve_field_conflicts( $pod );
76
  }
77
 
78
  // If we have a group to work with, use that.
79
  if ( null !== $group_id ) {
80
  if ( ! $is_upgrade_mode || $is_migrated ) {
81
  // Maybe reassign fields with invalid groups.
82
- $results['maybe_reassign_fields_with_invalid_groups'] = $this->maybe_reassign_fields_with_invalid_groups( $pod, $group_id );
83
  }
84
 
85
  // Maybe reassign orphan fields to the first group.
86
- $results['maybe_reassign_orphan_fields'] = $this->maybe_reassign_orphan_fields( $pod, $group_id );
87
  }
88
 
89
  // Maybe fix fields with invalid field type.
90
- $results['maybe_fix_fields_with_invalid_field_type'] = $this->maybe_fix_fields_with_invalid_field_type( $pod );
91
 
92
  // Mark the pod as migrated if upgrading.
93
  if ( $is_upgrade_mode ) {
@@ -100,118 +91,21 @@ class Repair {
100
  }
101
  }
102
 
103
- $this->api->cache_flush_pods( $pod );
104
-
105
- $pod->flush();
106
 
107
- $results['message_html'] = $this->get_message_html( $pod, $results );
108
-
109
- return $results;
110
- }
111
-
112
- /**
113
- * Get the message HTML from the repair results.
114
- *
115
- * @since 2.9.4
116
- *
117
- * @param Pod $pod The Pod object.
118
- * @param array $results The repair results.
119
- *
120
- * @return string The message HTML.
121
- */
122
- protected function get_message_html( Pod $pod, array $results ) {
123
- $messages = [
124
- sprintf(
125
- '<h3>%s</h3>',
126
- // translators: The Pod label.
127
- sprintf(
128
- esc_html__( 'Repair results for %s', 'pods' ),
129
- $pod->get_label() . ' (' . $pod->get_name() . ')'
130
- )
131
- ),
132
- ];
133
-
134
- if ( ! empty( $results['maybe_setup_group_if_no_groups'] ) ) {
135
- $repair_result = $results['maybe_setup_group_if_no_groups'];
136
-
137
- $messages[] = sprintf(
138
- '<h4>%1$s</h4><ul class="ul-disc"><li>%2$s</li></ul>',
139
- esc_html__( 'Setup group if there were no groups', 'pods' ),
140
- esc_html( $repair_result )
141
- );
142
  }
143
 
144
- if ( ! empty( $results['maybe_resolve_group_conflicts'] ) ) {
145
- $repair_result = $results['maybe_resolve_group_conflicts'];
146
- $repair_result = array_map( 'esc_html', $repair_result );
147
-
148
- $messages[] = sprintf(
149
- '<h4>%1$s</h4><ul class="ul-disc"><li>%2$s</li></ul>',
150
- esc_html__( 'Resolved group conflicts', 'pods' ),
151
- implode( '</li><li>', $repair_result )
152
- );
153
- }
154
-
155
- if ( ! empty( $results['maybe_resolve_field_conflicts'] ) ) {
156
- $repair_result = $results['maybe_resolve_field_conflicts'];
157
- $repair_result = array_map( 'esc_html', $repair_result );
158
-
159
- $messages[] = sprintf(
160
- '<h4>%1$s</h4><ul class="ul-disc"><li>%2$s</li></ul>',
161
- esc_html__( 'Resolved field conflicts', 'pods' ),
162
- implode( '</li><li>', $repair_result )
163
- );
164
- }
165
-
166
- if ( ! empty( $results['maybe_reassign_fields_with_invalid_groups'] ) ) {
167
- $repair_result = $results['maybe_reassign_fields_with_invalid_groups'];
168
- $repair_result = array_map( 'esc_html', $repair_result );
169
-
170
- $messages[] = sprintf(
171
- '<h4>%1$s</h4><ul class="ul-disc"><li>%2$s</li></ul>',
172
- esc_html__( 'Reassigned fields with invalid groups', 'pods' ),
173
- implode( '</li><li>', $repair_result )
174
- );
175
- }
176
-
177
- if ( ! empty( $results['maybe_reassign_orphan_fields'] ) ) {
178
- $repair_result = $results['maybe_reassign_orphan_fields'];
179
- $repair_result = array_map( 'esc_html', $repair_result );
180
-
181
- $messages[] = sprintf(
182
- '<h4>%1$s</h4><ul class="ul-disc"><li>%2$s</li></ul>',
183
- esc_html__( 'Reassigned orphan fields', 'pods' ),
184
- implode( '</li><li>', $repair_result )
185
- );
186
- }
187
-
188
- if ( ! empty( $results['maybe_fix_fields_with_invalid_field_type'] ) ) {
189
- $repair_result = $results['maybe_fix_fields_with_invalid_field_type'];
190
- $repair_result = array_map( 'esc_html', $repair_result );
191
-
192
- $messages[] = sprintf(
193
- '<h4>%1$s</h4><ul class="ul-disc"><li>%2$s</li></ul>',
194
- esc_html__( 'Fixed fields with invalid field type', 'pods' ),
195
- implode( '</li><li>', $repair_result )
196
- );
197
- }
198
-
199
- if ( ! empty( $this->errors ) ) {
200
- $repair_result = $this->errors;
201
- $repair_result = array_map( 'esc_html', $repair_result );
202
-
203
- $messages[] = sprintf(
204
- '<h4>%1$s</h4><ul class="ul-disc"><li>%2$s</li></ul>',
205
- esc_html__( 'Repair errors', 'pods' ),
206
- implode( '</li><li>', $repair_result )
207
- );
208
- }
209
 
210
- if ( 1 === count( $messages ) ) {
211
- $messages[] = esc_html__( 'No repair actions were needed.', 'pods' );
212
- }
213
 
214
- return wpautop( implode( "\n\n", $messages ) );
215
  }
216
 
217
  /**
@@ -225,6 +119,8 @@ class Repair {
225
  * @return int|null The group ID if created, otherwise null if repair not needed.
226
  */
227
  protected function maybe_setup_group_if_no_groups( Pod $pod, $mode ) {
 
 
228
  $groups = $pod->get_groups( [
229
  'fallback_mode' => false,
230
  ] );
@@ -288,12 +184,16 @@ class Repair {
288
  'name' => $group_name,
289
  ] ) );
290
 
291
- // Setup first group.
292
- $group_id = $this->api->save_group( [
293
- 'pod' => $pod,
294
- 'name' => $group_name,
295
- 'label' => $group_label,
296
- ] );
 
 
 
 
297
 
298
  if ( $group_id && is_numeric( $group_id ) ) {
299
  return $group_id;
@@ -312,11 +212,14 @@ class Repair {
312
  *
313
  * @since 2.9.4
314
  *
315
- * @param Pod $pod The Pod object.
 
316
  *
317
  * @return string[] The label, name, and ID for each group resolved.
318
  */
319
- protected function maybe_resolve_group_conflicts( Pod $pod ) {
 
 
320
  // Find any group on the pod that has the same name as another group.
321
  global $wpdb;
322
 
@@ -377,12 +280,14 @@ class Repair {
377
  foreach ( $groups as $group ) {
378
  /** @var Group $group */
379
  try {
380
- $this->api->save_group( [
381
- 'id' => $group->get_id(),
382
- 'pod_data' => $pod,
383
- 'group' => $group,
384
- 'new_name' => $group_name . '_' . $group->get_id(),
385
- ] );
 
 
386
 
387
  $resolved_groups[] = sprintf(
388
  '%1$s (%2$s: %3$s | %4$s: %5$s | %6$s: %7$d)',
@@ -408,11 +313,14 @@ class Repair {
408
  *
409
  * @since 2.9.4
410
  *
411
- * @param Pod $pod The Pod object.
 
412
  *
413
  * @return string[] The label, name, and ID for each field resolved.
414
  */
415
- protected function maybe_resolve_field_conflicts( Pod $pod ) {
 
 
416
  // Find any field on the pod that has the same name as another field.
417
  global $wpdb;
418
 
@@ -473,12 +381,14 @@ class Repair {
473
  foreach ( $fields as $field ) {
474
  /** @var Field $field */
475
  try {
476
- $this->api->save_field( [
477
- 'id' => $field->get_id(),
478
- 'pod_data' => $pod,
479
- 'field' => $field,
480
- 'new_name' => $field_name . '_' . $field->get_id(),
481
- ], false );
 
 
482
 
483
  $resolved_fields[] = sprintf(
484
  '%1$s (%2$s: %3$s | %4$s: %5$s | %6$s: %7$d)',
@@ -504,12 +414,15 @@ class Repair {
504
  *
505
  * @since 2.9.4
506
  *
507
- * @param Pod $pod The Pod object.
508
- * @param int $group_id The group ID.
 
509
  *
510
  * @return string[] The label, name, and ID for each field reassigned.
511
  */
512
- protected function maybe_reassign_fields_with_invalid_groups( Pod $pod, $group_id ) {
 
 
513
  // Get all known group IDs.
514
  $groups = $pod->get_groups( [
515
  'fallback_mode' => false,
@@ -529,7 +442,7 @@ class Repair {
529
  ],
530
  ] );
531
 
532
- return $this->reassign_fields_to_group( $fields, $group_id, $pod );
533
  }
534
 
535
  /**
@@ -537,18 +450,21 @@ class Repair {
537
  *
538
  * @since 2.9.4
539
  *
540
- * @param Pod $pod The Pod object.
541
- * @param int $group_id The group ID.
 
542
  *
543
  * @return string[] The label, name, and ID for each field reassigned.
544
  */
545
- protected function maybe_reassign_orphan_fields( Pod $pod, $group_id ) {
 
 
546
  $fields = $pod->get_fields( [
547
  'fallback_mode' => false,
548
  'group' => null,
549
  ] );
550
 
551
- return $this->reassign_fields_to_group( $fields, $group_id, $pod );
552
  }
553
 
554
  /**
@@ -556,24 +472,29 @@ class Repair {
556
  *
557
  * @since 2.9.4
558
  *
559
- * @param Pod $pod The Pod object.
560
- * @param int $group_id The group ID.
 
561
  *
562
  * @return string[] The label, name, and ID for each field reassigned.
563
  */
564
- protected function reassign_fields_to_group( $fields, $group_id, $pod ) {
 
 
565
  $reassigned_fields = [];
566
 
567
  foreach ( $fields as $field ) {
568
  try {
569
- $this->api->save_field( [
570
- 'id' => $field->get_id(),
571
- 'pod_data' => $pod,
572
- 'field' => $field,
573
- 'new_group_id' => $group_id,
574
- ] );
 
575
 
576
- $field->set_arg( 'group', $group_id );
 
577
 
578
  $reassigned_fields[] = sprintf(
579
  '%1$s (%2$s: %3$s | %4$s: %5$d)',
@@ -596,11 +517,14 @@ class Repair {
596
  *
597
  * @since 2.9.4
598
  *
599
- * @param Pod $pod The Pod object.
 
600
  *
601
  * @return string[] The label, name, and ID for each field fixed.
602
  */
603
- protected function maybe_fix_fields_with_invalid_field_type( Pod $pod ) {
 
 
604
  $supported_field_types = PodsForm::field_types_list();
605
 
606
  $fields = $pod->get_fields( [
@@ -629,14 +553,16 @@ class Repair {
629
  $old_type = __( 'N/A', 'pods' );
630
  }
631
 
632
- $this->api->save_field( [
633
- 'id' => $field->get_id(),
634
- 'pod_data' => $pod,
635
- 'field' => $field,
636
- 'type' => 'text',
637
- ] );
 
638
 
639
- $field->set_arg( 'type', 'text' );
 
640
 
641
  $fixed_fields[] = sprintf(
642
  '%1$s (%2$s: %3$s | %4$s: %5$s | %6$s: %7$d)',
4
 
5
  use Exception;
6
  use Throwable;
 
7
  use PodsForm;
8
  use Pods\Whatsit\Field;
9
  use Pods\Whatsit\Group;
14
  *
15
  * @since 2.9.4
16
  */
17
+ class Repair extends Base {
 
 
 
 
 
 
 
 
 
 
18
 
19
  /**
20
  * Repair Groups and Fields for a Pod.
22
  * @since 2.9.4
23
  *
24
  * @param Pod $pod The Pod object.
25
+ * @param string $mode The repair mode (preview, upgrade, or full).
26
  *
27
  * @return array The results with information about the repair done.
28
  */
29
  public function repair_groups_and_fields_for_pod( Pod $pod, $mode ) {
30
+ $this->setup();
31
+
32
  $this->errors = [];
33
 
34
+ $is_preview_mode = 'preview' === $mode;
35
  $is_upgrade_mode = 'upgrade' === $mode;
36
  $is_migrated = 1 === (int) $pod->get_arg( '_migrated_28' );
37
 
55
  $group_id = reset( $groups );
56
  }
57
  } else {
58
+ $results[ __( 'Setup group if there were no groups', 'pods' ) ] = __( 'First group created.', 'pods' );
59
  }
60
 
61
  if ( ! $is_upgrade_mode || $is_migrated ) {
62
  // Maybe resolve group conflicts.
63
+ $results[ __( 'Resolved group conflicts', 'pods' ) ] = $this->maybe_resolve_group_conflicts( $pod, $mode );
64
 
65
  // Maybe resolve field conflicts.
66
+ $results[ __( 'Resolved field conflicts', 'pods' ) ] = $this->maybe_resolve_field_conflicts( $pod, $mode );
67
  }
68
 
69
  // If we have a group to work with, use that.
70
  if ( null !== $group_id ) {
71
  if ( ! $is_upgrade_mode || $is_migrated ) {
72
  // Maybe reassign fields with invalid groups.
73
+ $results[ __( 'Reassigned fields with invalid groups', 'pods' ) ] = $this->maybe_reassign_fields_with_invalid_groups( $pod, $group_id, $mode );
74
  }
75
 
76
  // Maybe reassign orphan fields to the first group.
77
+ $results[ __( 'Reassigned orphan fields', 'pods' ) ] = $this->maybe_reassign_orphan_fields( $pod, $group_id, $mode );
78
  }
79
 
80
  // Maybe fix fields with invalid field type.
81
+ $results[ __( 'Fixed fields with invalid field type', 'pods' ) ] = $this->maybe_fix_fields_with_invalid_field_type( $pod, $mode );
82
 
83
  // Mark the pod as migrated if upgrading.
84
  if ( $is_upgrade_mode ) {
91
  }
92
  }
93
 
94
+ if ( ! $is_preview_mode ) {
95
+ $this->api->cache_flush_pods( $pod );
 
96
 
97
+ $pod->flush();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
98
  }
99
 
100
+ $tool_heading = sprintf(
101
+ // translators: %s: The Pod label.
102
+ __( 'Repair results for %s', 'pods' ),
103
+ $pod->get_label() . ' (' . $pod->get_name() . ')'
104
+ );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
105
 
106
+ $results['message_html'] = $this->get_message_html( $tool_heading, $results, $mode );
 
 
107
 
108
+ return $results;
109
  }
110
 
111
  /**
119
  * @return int|null The group ID if created, otherwise null if repair not needed.
120
  */
121
  protected function maybe_setup_group_if_no_groups( Pod $pod, $mode ) {
122
+ $this->setup();
123
+
124
  $groups = $pod->get_groups( [
125
  'fallback_mode' => false,
126
  ] );
184
  'name' => $group_name,
185
  ] ) );
186
 
187
+ if ( 'preview' !== $mode ) {
188
+ // Setup first group.
189
+ $group_id = $this->api->save_group( [
190
+ 'pod' => $pod,
191
+ 'name' => $group_name,
192
+ 'label' => $group_label,
193
+ ] );
194
+ } else {
195
+ $group_id = 1234567890123456789;
196
+ }
197
 
198
  if ( $group_id && is_numeric( $group_id ) ) {
199
  return $group_id;
212
  *
213
  * @since 2.9.4
214
  *
215
+ * @param Pod $pod The Pod object.
216
+ * @param string $mode The repair mode (preview, upgrade, or full).
217
  *
218
  * @return string[] The label, name, and ID for each group resolved.
219
  */
220
+ protected function maybe_resolve_group_conflicts( Pod $pod, $mode ) {
221
+ $this->setup();
222
+
223
  // Find any group on the pod that has the same name as another group.
224
  global $wpdb;
225
 
280
  foreach ( $groups as $group ) {
281
  /** @var Group $group */
282
  try {
283
+ if ( 'preview' !== $mode ) {
284
+ $this->api->save_group( [
285
+ 'id' => $group->get_id(),
286
+ 'pod_data' => $pod,
287
+ 'group' => $group,
288
+ 'new_name' => $group_name . '_' . $group->get_id(),
289
+ ] );
290
+ }
291
 
292
  $resolved_groups[] = sprintf(
293
  '%1$s (%2$s: %3$s | %4$s: %5$s | %6$s: %7$d)',
313
  *
314
  * @since 2.9.4
315
  *
316
+ * @param Pod $pod The Pod object.
317
+ * @param string $mode The repair mode (preview, upgrade, or full).
318
  *
319
  * @return string[] The label, name, and ID for each field resolved.
320
  */
321
+ protected function maybe_resolve_field_conflicts( Pod $pod, $mode ) {
322
+ $this->setup();
323
+
324
  // Find any field on the pod that has the same name as another field.
325
  global $wpdb;
326
 
381
  foreach ( $fields as $field ) {
382
  /** @var Field $field */
383
  try {
384
+ if ( 'preview' !== $mode ) {
385
+ $this->api->save_field( [
386
+ 'id' => $field->get_id(),
387
+ 'pod_data' => $pod,
388
+ 'field' => $field,
389
+ 'new_name' => $field_name . '_' . $field->get_id(),
390
+ ], false );
391
+ }
392
 
393
  $resolved_fields[] = sprintf(
394
  '%1$s (%2$s: %3$s | %4$s: %5$s | %6$s: %7$d)',
414
  *
415
  * @since 2.9.4
416
  *
417
+ * @param Pod $pod The Pod object.
418
+ * @param int $group_id The group ID.
419
+ * @param string $mode The repair mode (preview, upgrade, or full).
420
  *
421
  * @return string[] The label, name, and ID for each field reassigned.
422
  */
423
+ protected function maybe_reassign_fields_with_invalid_groups( Pod $pod, $group_id, $mode ) {
424
+ $this->setup();
425
+
426
  // Get all known group IDs.
427
  $groups = $pod->get_groups( [
428
  'fallback_mode' => false,
442
  ],
443
  ] );
444
 
445
+ return $this->reassign_fields_to_group( $fields, $group_id, $pod, $mode );
446
  }
447
 
448
  /**
450
  *
451
  * @since 2.9.4
452
  *
453
+ * @param Pod $pod The Pod object.
454
+ * @param int $group_id The group ID.
455
+ * @param string $mode The repair mode (preview, upgrade, or full).
456
  *
457
  * @return string[] The label, name, and ID for each field reassigned.
458
  */
459
+ protected function maybe_reassign_orphan_fields( Pod $pod, $group_id, $mode ) {
460
+ $this->setup();
461
+
462
  $fields = $pod->get_fields( [
463
  'fallback_mode' => false,
464
  'group' => null,
465
  ] );
466
 
467
+ return $this->reassign_fields_to_group( $fields, $group_id, $pod, $mode );
468
  }
469
 
470
  /**
472
  *
473
  * @since 2.9.4
474
  *
475
+ * @param Pod $pod The Pod object.
476
+ * @param int $group_id The group ID.
477
+ * @param string $mode The repair mode (preview, upgrade, or full).
478
  *
479
  * @return string[] The label, name, and ID for each field reassigned.
480
  */
481
+ protected function reassign_fields_to_group( $fields, $group_id, $pod, $mode ) {
482
+ $this->setup();
483
+
484
  $reassigned_fields = [];
485
 
486
  foreach ( $fields as $field ) {
487
  try {
488
+ if ( 'preview' !== $mode ) {
489
+ $this->api->save_field( [
490
+ 'id' => $field->get_id(),
491
+ 'pod_data' => $pod,
492
+ 'field' => $field,
493
+ 'new_group_id' => $group_id,
494
+ ] );
495
 
496
+ $field->set_arg( 'group', $group_id );
497
+ }
498
 
499
  $reassigned_fields[] = sprintf(
500
  '%1$s (%2$s: %3$s | %4$s: %5$d)',
517
  *
518
  * @since 2.9.4
519
  *
520
+ * @param Pod $pod The Pod object.
521
+ * @param string $mode The repair mode (preview, upgrade, or full).
522
  *
523
  * @return string[] The label, name, and ID for each field fixed.
524
  */
525
+ protected function maybe_fix_fields_with_invalid_field_type( Pod $pod, $mode ) {
526
+ $this->setup();
527
+
528
  $supported_field_types = PodsForm::field_types_list();
529
 
530
  $fields = $pod->get_fields( [
553
  $old_type = __( 'N/A', 'pods' );
554
  }
555
 
556
+ if ( 'preview' !== $mode ) {
557
+ $this->api->save_field( [
558
+ 'id' => $field->get_id(),
559
+ 'pod_data' => $pod,
560
+ 'field' => $field,
561
+ 'type' => 'text',
562
+ ] );
563
 
564
+ $field->set_arg( 'type', 'text' );
565
+ }
566
 
567
  $fixed_fields[] = sprintf(
568
  '%1$s (%2$s: %3$s | %4$s: %5$s | %6$s: %7$d)',
src/Pods/Tools/Reset.php ADDED
@@ -0,0 +1,284 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Pods\Tools;
4
+
5
+ use PodsForm;
6
+ use Pods\Whatsit\Field;
7
+ use Pods\Whatsit\Pod;
8
+
9
+ /**
10
+ * Reset tool functionality.
11
+ *
12
+ * @since 2.9.10
13
+ */
14
+ class Reset extends Base {
15
+
16
+ /**
17
+ * Delete all content for a Pod.
18
+ *
19
+ * @since 2.9.10
20
+ *
21
+ * @param Pod $pod The Pod object.
22
+ * @param string $mode The reset mode (preview or full).
23
+ *
24
+ * @return array The results with information about the reset done.
25
+ */
26
+ public function delete_all_content_for_pod( Pod $pod, $mode ) {
27
+ $this->setup();
28
+
29
+ $this->errors = [];
30
+
31
+ $results = [];
32
+
33
+ if ( 'preview' !== $mode ) {
34
+ $this->api->reset_pod( [], $pod );
35
+ }
36
+
37
+ $results[ __( 'Delete all content for pod' ) ] = __( 'Pod content has been deleted' );
38
+
39
+ $tool_heading = sprintf(
40
+ // translators: %s: The Pod label.
41
+ __( 'Reset results for %s', 'pods' ),
42
+ $pod->get_label() . ' (' . $pod->get_name() . ')'
43
+ );
44
+
45
+ $results['message_html'] = $this->get_message_html( $tool_heading, $results, $mode );
46
+
47
+ return $results;
48
+ }
49
+
50
+ /**
51
+ * Delete all relationship data for a Pod.
52
+ *
53
+ * @since 2.9.10
54
+ *
55
+ * @param Pod $pod The Pod object.
56
+ * @param null|string|array $field_names The fields to use (comma-separated or an array), otherwise delete relationships for all fields on Pod.
57
+ * @param string $mode The reset mode (preview or full).
58
+ *
59
+ * @return array The results with information about the reset done.
60
+ */
61
+ public function delete_all_relationship_data_for_pod( Pod $pod, $field_names, $mode ) {
62
+ $this->setup();
63
+
64
+ $this->errors = [];
65
+
66
+ if ( $field_names ) {
67
+ $fields = [];
68
+
69
+ if ( is_string( $field_names ) ) {
70
+ $field_names = explode( ',', $field_names );
71
+ $field_names = pods_trim( $field_names );
72
+ $field_names = array_filter( $field_names );
73
+
74
+ foreach ( $field_names as $field_name ) {
75
+ $field = $pod->get_field( $field_name );
76
+
77
+ if ( $field ) {
78
+ $fields[] = $field;
79
+ }
80
+ }
81
+ }
82
+ } else {
83
+ $fields = $pod->get_fields( [
84
+ 'type' => PodsForm::tableless_field_types(),
85
+ ] );
86
+ }
87
+
88
+ $results = [];
89
+
90
+ global $wpdb;
91
+
92
+ foreach ( $fields as $field_to_delete_from_podsrel ) {
93
+ if ( 'preview' !== $mode ) {
94
+ $total_deleted_from_podsrel = (int) $wpdb->query(
95
+ $wpdb->prepare(
96
+ "
97
+ DELETE *
98
+ FROM `{$wpdb->prefix}podsrel`
99
+ WHERE `pod_id` = %d AND `field_id` = %d
100
+ ",
101
+ [
102
+ $pod->get_id(),
103
+ $field_to_delete_from_podsrel->get_id(),
104
+ ]
105
+ )
106
+ );
107
+
108
+ $total_related_deleted_from_podsrel = (int) $wpdb->query(
109
+ $wpdb->prepare(
110
+ "
111
+ DELETE *
112
+ FROM `{$wpdb->prefix}podsrel`
113
+ WHERE `related_pod_id` = %d AND `related_field_id` = %d
114
+ ",
115
+ [
116
+ $pod->get_id(),
117
+ $field_to_delete_from_podsrel->get_id(),
118
+ ]
119
+ )
120
+ );
121
+ } else {
122
+ $total_deleted_from_podsrel = (int) $wpdb->get_var(
123
+ $wpdb->prepare(
124
+ "
125
+ SELECT COUNT(*)
126
+ FROM `{$wpdb->prefix}podsrel`
127
+ WHERE `pod_id` = %d AND `field_id` = %d
128
+ ",
129
+ [
130
+ $pod->get_id(),
131
+ $field_to_delete_from_podsrel->get_id(),
132
+ ]
133
+ )
134
+ );
135
+
136
+ $total_related_deleted_from_podsrel = (int) $wpdb->get_var(
137
+ $wpdb->prepare(
138
+ "
139
+ SELECT COUNT(*)
140
+ FROM `{$wpdb->prefix}podsrel`
141
+ WHERE `related_pod_id` = %d AND `related_field_id` = %d
142
+ ",
143
+ [
144
+ $pod->get_id(),
145
+ $field_to_delete_from_podsrel->get_id(),
146
+ ]
147
+ )
148
+ );
149
+ }
150
+
151
+ $heading = sprintf(
152
+ // translators: %1$s: The field label; %2$s: The field name.
153
+ __( 'Relationship data removed from podsrel table for field: %1$s (%2$s)', 'pods' ),
154
+ $field_to_delete_from_podsrel->get_label(),
155
+ $field_to_delete_from_podsrel->get_name()
156
+ );
157
+
158
+ $results[ $heading ] = sprintf(
159
+ '%1$s %2$s',
160
+ number_format_i18n( $total_deleted_from_podsrel ),
161
+ _n( 'row', 'rows', $total_deleted_from_podsrel, 'pods' )
162
+ );
163
+
164
+ $heading = sprintf(
165
+ // translators: %1$s: The field label; %2$s: The field name.
166
+ __( 'Bidirectional Relationship data removed from podsrel table for field: %1$s (%2$s)', 'pods' ),
167
+ $field_to_delete_from_podsrel->get_label(),
168
+ $field_to_delete_from_podsrel->get_name()
169
+ );
170
+
171
+ $results[ $heading ] = sprintf(
172
+ '%1$s %2$s',
173
+ number_format_i18n( $total_related_deleted_from_podsrel ),
174
+ _n( 'row', 'rows', $total_related_deleted_from_podsrel, 'pods' )
175
+ );
176
+ }
177
+
178
+ $tool_heading = sprintf(
179
+ // translators: %s: The Pod label.
180
+ __( 'Reset results for %s', 'pods' ),
181
+ $pod->get_label() . ' (' . $pod->get_name() . ')'
182
+ );
183
+
184
+ $results['message_html'] = $this->get_message_html( $tool_heading, $results, $mode );
185
+
186
+ return $results;
187
+ }
188
+
189
+ /**
190
+ * Delete all Groups and Fields for a Pod.
191
+ *
192
+ * @since 2.9.10
193
+ *
194
+ * @param Pod $pod The Pod object.
195
+ * @param string $mode The reset mode (preview or full).
196
+ *
197
+ * @return array The results with information about the reset done.
198
+ */
199
+ public function delete_all_groups_and_fields_for_pod( Pod $pod, $mode ) {
200
+ $this->setup();
201
+
202
+ $this->errors = [];
203
+
204
+ $results = [];
205
+
206
+ if ( 'preview' !== $mode ) {
207
+ $results[ __( 'Delete all fields for pod', 'pods' ) ] = $this->delete_all_fields_for_pod( $pod, $mode );
208
+ $results[ __( 'Delete all groups for pod', 'pods' ) ] = $this->delete_all_groups_for_pod( $pod, $mode );
209
+ }
210
+
211
+ $tool_heading = sprintf(
212
+ // translators: %s: The Pod label.
213
+ __( 'Reset results for %s', 'pods' ),
214
+ $pod->get_label() . ' (' . $pod->get_name() . ')'
215
+ );
216
+
217
+ $results['message_html'] = $this->get_message_html( $tool_heading, $results, $mode );
218
+
219
+ return $results;
220
+ }
221
+
222
+ /**
223
+ * Delete all Groups and Fields for a Pod.
224
+ *
225
+ * @since 2.9.10
226
+ *
227
+ * @param Pod $pod The Pod object.
228
+ * @param string $mode The reset mode (preview or full).
229
+ *
230
+ * @return string The text result.
231
+ */
232
+ protected function delete_all_fields_for_pod( Pod $pod, $mode ) {
233
+ $this->setup();
234
+
235
+ $fields = $pod->get_fields();
236
+
237
+ $total_deleted = count( $fields );
238
+
239
+ foreach ( $fields as $field ) {
240
+ if ( 'preview' !== $mode ) {
241
+ $this->api->delete_field( $field );
242
+ }
243
+ }
244
+
245
+ // translators: %1$s: The total number of fields deleted; %2$s: The singular or plural text for fields.
246
+ return sprintf(
247
+ _x( 'Deleted %1$s %2$s', 'The text for how many fields were deleted', 'pods' ),
248
+ number_format_i18n( $total_deleted ),
249
+ _n( 'field', 'fields', $total_deleted, 'pods' )
250
+ );
251
+ }
252
+
253
+ /**
254
+ * Delete all Groups and Fields for a Pod.
255
+ *
256
+ * @since 2.9.10
257
+ *
258
+ * @param Pod $pod The Pod object.
259
+ * @param string $mode The reset mode (preview or full).
260
+ *
261
+ * @return string The text result.
262
+ */
263
+ protected function delete_all_groups_for_pod( Pod $pod, $mode ) {
264
+ $this->setup();
265
+
266
+ $groups = $pod->get_groups();
267
+
268
+ $total_deleted = count( $groups );
269
+
270
+ foreach ( $groups as $group ) {
271
+ if ( 'preview' !== $mode ) {
272
+ $this->api->delete_group( $group );
273
+ }
274
+ }
275
+
276
+ // translators: %1$s: The total number of groups deleted; %2$s: The singular or plural text for groups.
277
+ return sprintf(
278
+ _x( 'Deleted %1$s %2$s', 'The text for how many groups were deleted', 'pods' ),
279
+ number_format_i18n( $total_deleted ),
280
+ _n( 'group', 'groups', $total_deleted, 'pods' )
281
+ );
282
+ }
283
+
284
+ }
src/Pods/Whatsit.php CHANGED
@@ -161,7 +161,10 @@ abstract class Whatsit implements \ArrayAccess, \JsonSerializable, \Iterator {
161
  if ( is_array( $args ) ) {
162
  if ( ! empty( $args['id'] ) ) {
163
  // Check if we already have an object registered and available.
164
- $object = Store::get_instance()->get_object( $args['id'] );
 
 
 
165
 
166
  if ( $object ) {
167
  if ( $to_args ) {
@@ -198,7 +201,10 @@ abstract class Whatsit implements \ArrayAccess, \JsonSerializable, \Iterator {
198
  public static function from_array( array $array, $to_args = false ) {
199
  if ( ! empty( $array['id'] ) ) {
200
  // Check if we already have an object registered and available.
201
- $object = Store::get_instance()->get_object( $array['id'] );
 
 
 
202
 
203
  if ( $object ) {
204
  if ( $to_args ) {
@@ -282,6 +288,7 @@ abstract class Whatsit implements \ArrayAccess, \JsonSerializable, \Iterator {
282
  *
283
  * @return array Object arguments.
284
  */
 
285
  public function jsonSerialize() {
286
  return $this->get_args();
287
  }
@@ -296,6 +303,7 @@ abstract class Whatsit implements \ArrayAccess, \JsonSerializable, \Iterator {
296
  /**
297
  * {@inheritdoc}
298
  */
 
299
  public function rewind() {
300
  $this->position = 0;
301
  }
@@ -303,6 +311,7 @@ abstract class Whatsit implements \ArrayAccess, \JsonSerializable, \Iterator {
303
  /**
304
  * {@inheritdoc}
305
  */
 
306
  public function current() {
307
  $args = $this->getArrayCopy();
308
 
@@ -312,6 +321,7 @@ abstract class Whatsit implements \ArrayAccess, \JsonSerializable, \Iterator {
312
  /**
313
  * {@inheritdoc}
314
  */
 
315
  public function key() {
316
  return $this->position;
317
  }
@@ -319,6 +329,7 @@ abstract class Whatsit implements \ArrayAccess, \JsonSerializable, \Iterator {
319
  /**
320
  * {@inheritdoc}
321
  */
 
322
  public function next() {
323
  $this->position ++;
324
  }
@@ -326,6 +337,7 @@ abstract class Whatsit implements \ArrayAccess, \JsonSerializable, \Iterator {
326
  /**
327
  * {@inheritdoc}
328
  */
 
329
  public function valid() {
330
  $args = $this->getArrayCopy();
331
 
@@ -348,6 +360,7 @@ abstract class Whatsit implements \ArrayAccess, \JsonSerializable, \Iterator {
348
  *
349
  * @return bool Whether the offset exists.
350
  */
 
351
  public function offsetExists( $offset ) {
352
  return $this->__isset( $offset );
353
  }
@@ -359,6 +372,7 @@ abstract class Whatsit implements \ArrayAccess, \JsonSerializable, \Iterator {
359
  *
360
  * @return mixed|null Offset value, or null if not set.
361
  */
 
362
  public function &offsetGet( $offset ) {
363
  // We fake the pass by reference to avoid PHP errors for backcompat.
364
  $value = $this->__get( $offset );
@@ -372,6 +386,7 @@ abstract class Whatsit implements \ArrayAccess, \JsonSerializable, \Iterator {
372
  * @param mixed $offset Offset name.
373
  * @param mixed $value Offset value.
374
  */
 
375
  public function offsetSet( $offset, $value ) {
376
  if ( null === $offset ) {
377
  // Do not allow $object[] additions.
@@ -386,6 +401,7 @@ abstract class Whatsit implements \ArrayAccess, \JsonSerializable, \Iterator {
386
  *
387
  * @param mixed $offset Offset name.
388
  */
 
389
  public function offsetUnset( $offset ) {
390
  $this->__unset( $offset );
391
  }
@@ -619,7 +635,12 @@ abstract class Whatsit implements \ArrayAccess, \JsonSerializable, \Iterator {
619
  $arg = 'id';
620
  }
621
 
622
- if ( ! isset( $this->args[ $arg ] ) && ! $strict ) {
 
 
 
 
 
623
 
624
  $table_info_fields = [
625
  'object_name',
@@ -657,7 +678,7 @@ abstract class Whatsit implements \ArrayAccess, \JsonSerializable, \Iterator {
657
 
658
  }//end if
659
 
660
- $value = isset( $this->args[ $arg ] ) ? $this->args[ $arg ] : $default;
661
 
662
  /**
663
  * Allow filtering the object arguments / options.
@@ -890,7 +911,10 @@ abstract class Whatsit implements \ArrayAccess, \JsonSerializable, \Iterator {
890
  $parent = $this->get_parent();
891
 
892
  if ( $parent ) {
893
- $parent = Store::get_instance()->get_object( $parent );
 
 
 
894
  }
895
 
896
  return $parent;
@@ -905,7 +929,10 @@ abstract class Whatsit implements \ArrayAccess, \JsonSerializable, \Iterator {
905
  $group = $this->get_group();
906
 
907
  if ( $group ) {
908
- $group = Store::get_instance()->get_object( $group );
 
 
 
909
 
910
  if ( $group ) {
911
  $this->set_arg( 'group', $group->get_identifier() );
@@ -915,6 +942,65 @@ abstract class Whatsit implements \ArrayAccess, \JsonSerializable, \Iterator {
915
  return $group;
916
  }
917
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
918
  /**
919
  * Fetch field from object with no traversal support.
920
  *
@@ -1044,17 +1130,19 @@ abstract class Whatsit implements \ArrayAccess, \JsonSerializable, \Iterator {
1044
  return [];
1045
  }
1046
 
1047
- $object_collection = Store::get_instance();
1048
 
1049
  $has_custom_args = ! empty( $args );
1050
 
1051
  if ( null !== $this->_fields && ! $has_custom_args ) {
1052
- $objects = array_map( [ $object_collection, 'get_object' ], $this->_fields );
1053
- $objects = array_filter( $objects );
1054
 
1055
- $names = wp_list_pluck( $objects, 'name' );
 
1056
 
1057
- return array_combine( $names, $objects );
 
 
1058
  }
1059
 
1060
  $filtered_args = [
@@ -1076,8 +1164,6 @@ abstract class Whatsit implements \ArrayAccess, \JsonSerializable, \Iterator {
1076
  ], $filtered_args, $args );
1077
 
1078
  try {
1079
- $api = pods_api();
1080
-
1081
  if ( ! empty( $args['object_type'] ) ) {
1082
  $objects = $api->_load_objects( $args );
1083
  } else {
@@ -1088,7 +1174,7 @@ abstract class Whatsit implements \ArrayAccess, \JsonSerializable, \Iterator {
1088
  }
1089
 
1090
  if ( ! $has_custom_args ) {
1091
- $this->_fields = wp_list_pluck( $objects, 'identifier' );
1092
  }
1093
 
1094
  return $objects;
@@ -1208,17 +1294,19 @@ abstract class Whatsit implements \ArrayAccess, \JsonSerializable, \Iterator {
1208
  return [];
1209
  }
1210
 
1211
- $object_collection = Store::get_instance();
1212
 
1213
  $has_custom_args = ! empty( $args );
1214
 
1215
  if ( null !== $this->_groups && ! $has_custom_args ) {
1216
- $objects = array_map( [ $object_collection, 'get_object' ], $this->_groups );
1217
- $objects = array_filter( $objects );
1218
 
1219
- $names = wp_list_pluck( $objects, 'name' );
 
1220
 
1221
- return array_combine( $names, $objects );
 
 
1222
  }
1223
 
1224
  $filtered_args = [
@@ -1240,8 +1328,6 @@ abstract class Whatsit implements \ArrayAccess, \JsonSerializable, \Iterator {
1240
  ], $filtered_args, $args );
1241
 
1242
  try {
1243
- $api = pods_api();
1244
-
1245
  if ( ! empty( $args['object_type'] ) ) {
1246
  $objects = $api->_load_objects( $args );
1247
  } else {
161
  if ( is_array( $args ) ) {
162
  if ( ! empty( $args['id'] ) ) {
163
  // Check if we already have an object registered and available.
164
+ $store = Store::get_instance();
165
+
166
+ // Attempt to get from storage directly.
167
+ $object = $store->get_object_from_storage( isset( $args['object_storage_type'] ) ? $args['object_storage_type'] : null, $args['id'] );
168
 
169
  if ( $object ) {
170
  if ( $to_args ) {
201
  public static function from_array( array $array, $to_args = false ) {
202
  if ( ! empty( $array['id'] ) ) {
203
  // Check if we already have an object registered and available.
204
+ $store = Store::get_instance();
205
+
206
+ // Attempt to get from storage directly.
207
+ $object = $store->get_object_from_storage( isset( $args['object_storage_type'] ) ? $args['object_storage_type'] : null, $array['id'] );
208
 
209
  if ( $object ) {
210
  if ( $to_args ) {
288
  *
289
  * @return array Object arguments.
290
  */
291
+ #[\ReturnTypeWillChange]
292
  public function jsonSerialize() {
293
  return $this->get_args();
294
  }
303
  /**
304
  * {@inheritdoc}
305
  */
306
+ #[\ReturnTypeWillChange]
307
  public function rewind() {
308
  $this->position = 0;
309
  }
311
  /**
312
  * {@inheritdoc}
313
  */
314
+ #[\ReturnTypeWillChange]
315
  public function current() {
316
  $args = $this->getArrayCopy();
317
 
321
  /**
322
  * {@inheritdoc}
323
  */
324
+ #[\ReturnTypeWillChange]
325
  public function key() {
326
  return $this->position;
327
  }
329
  /**
330
  * {@inheritdoc}
331
  */
332
+ #[\ReturnTypeWillChange]
333
  public function next() {
334
  $this->position ++;
335
  }
337
  /**
338
  * {@inheritdoc}
339
  */
340
+ #[\ReturnTypeWillChange]
341
  public function valid() {
342
  $args = $this->getArrayCopy();
343
 
360
  *
361
  * @return bool Whether the offset exists.
362
  */
363
+ #[\ReturnTypeWillChange]
364
  public function offsetExists( $offset ) {
365
  return $this->__isset( $offset );
366
  }
372
  *
373
  * @return mixed|null Offset value, or null if not set.
374
  */
375
+ #[\ReturnTypeWillChange]
376
  public function &offsetGet( $offset ) {
377
  // We fake the pass by reference to avoid PHP errors for backcompat.
378
  $value = $this->__get( $offset );
386
  * @param mixed $offset Offset name.
387
  * @param mixed $value Offset value.
388
  */
389
+ #[\ReturnTypeWillChange]
390
  public function offsetSet( $offset, $value ) {
391
  if ( null === $offset ) {
392
  // Do not allow $object[] additions.
401
  *
402
  * @param mixed $offset Offset name.
403
  */
404
+ #[\ReturnTypeWillChange]
405
  public function offsetUnset( $offset ) {
406
  $this->__unset( $offset );
407
  }
635
  $arg = 'id';
636
  }
637
 
638
+ $is_set = isset( $this->args[ $arg ] );
639
+
640
+ if ( ! $is_set && ! $strict ) {
641
+ if ( 'internal' === $arg ) {
642
+ return $default;
643
+ }
644
 
645
  $table_info_fields = [
646
  'object_name',
678
 
679
  }//end if
680
 
681
+ $value = $is_set ? $this->args[ $arg ] : $default;
682
 
683
  /**
684
  * Allow filtering the object arguments / options.
911
  $parent = $this->get_parent();
912
 
913
  if ( $parent ) {
914
+ $store = Store::get_instance();
915
+
916
+ // Attempt to get from storage directly.
917
+ $parent = $store->get_object_from_storage( $this->get_object_storage_type(), $parent );
918
  }
919
 
920
  return $parent;
929
  $group = $this->get_group();
930
 
931
  if ( $group ) {
932
+ $store = Store::get_instance();
933
+
934
+ // Attempt to get from storage directly.
935
+ $group = $store->get_object_from_storage( $this->get_object_storage_type(), $group );
936
 
937
  if ( $group ) {
938
  $this->set_arg( 'group', $group->get_identifier() );
942
  return $group;
943
  }
944
 
945
+ /**
946
+ * Maybe get the list of objects or determine if they need to be loaded.
947
+ *
948
+ * @since 2.9.10
949
+ *
950
+ * @param array $objects The list of objects or their identifiers.
951
+ * @param array $args The list of arguments to filter by.
952
+ *
953
+ * @return Whatsit[]|null The list of objects or null if they need to be loaded separately.
954
+ */
955
+ protected function maybe_get_objects_by_identifier( array $objects, $args ) {
956
+ $api = pods_api();
957
+
958
+ $object_collection = Store::get_instance();
959
+
960
+ $storage_type = ! empty( $args['object_storage_type'] ) ? $args['object_storage_type'] : $api->get_default_object_storage_type();
961
+
962
+ /** @var \Pods\Whatsit\Storage\Post_Type $storage_object */
963
+ $storage_object = $object_collection->get_storage_object( $storage_type );
964
+
965
+ $parent = $this;
966
+
967
+ // Check if we have at least the object field.
968
+ if ( ! empty( $objects ) ) {
969
+ $first_object = reset( $objects );
970
+
971
+ // Check if this is an identifier.
972
+ if ( is_string( $first_object ) ) {
973
+ // We likely don't have any of these objects so just fetch them together normally as that's quicker.
974
+ return null;
975
+ }
976
+ }
977
+
978
+ $found_identifier = false;
979
+
980
+ // Build any objects from identifiers that are needed.
981
+ $objects = array_map(
982
+ static function( $identifier ) use ( $storage_object, $parent, &$found_identifier ) {
983
+ if ( $identifier instanceof Whatsit ) {
984
+ return $identifier;
985
+ }
986
+
987
+ $found_identifier = true;
988
+
989
+ return $storage_object->get_by_identifier( $identifier, $parent );
990
+ },
991
+ $objects
992
+ );
993
+
994
+ if ( ! $found_identifier ) {
995
+ return $objects;
996
+ }
997
+
998
+ $objects = array_filter( $objects );
999
+ $names = wp_list_pluck( $objects, 'name' );
1000
+
1001
+ return array_combine( $names, $objects );
1002
+ }
1003
+
1004
  /**
1005
  * Fetch field from object with no traversal support.
1006
  *
1130
  return [];
1131
  }
1132
 
1133
+ $api = pods_api();
1134
 
1135
  $has_custom_args = ! empty( $args );
1136
 
1137
  if ( null !== $this->_fields && ! $has_custom_args ) {
1138
+ $objects = $this->maybe_get_objects_by_identifier( $this->_fields, $args );
 
1139
 
1140
+ if ( is_array( $objects ) ) {
1141
+ $this->_fields = array_map( static function( $object ) { return clone $object; }, $objects );
1142
 
1143
+ /** @var Field[] $objects */
1144
+ return $objects;
1145
+ }
1146
  }
1147
 
1148
  $filtered_args = [
1164
  ], $filtered_args, $args );
1165
 
1166
  try {
 
 
1167
  if ( ! empty( $args['object_type'] ) ) {
1168
  $objects = $api->_load_objects( $args );
1169
  } else {
1174
  }
1175
 
1176
  if ( ! $has_custom_args ) {
1177
+ $this->_fields = array_map( static function( $object ) { return clone $object; }, $objects );
1178
  }
1179
 
1180
  return $objects;
1294
  return [];
1295
  }
1296
 
1297
+ $api = pods_api();
1298
 
1299
  $has_custom_args = ! empty( $args );
1300
 
1301
  if ( null !== $this->_groups && ! $has_custom_args ) {
1302
+ $objects = $this->maybe_get_objects_by_identifier( $this->_groups, $args );
 
1303
 
1304
+ if ( is_array( $objects ) ) {
1305
+ $this->_groups = $objects;
1306
 
1307
+ /** @var Group[] $objects */
1308
+ return $objects;
1309
+ }
1310
  }
1311
 
1312
  $filtered_args = [
1328
  ], $filtered_args, $args );
1329
 
1330
  try {
 
 
1331
  if ( ! empty( $args['object_type'] ) ) {
1332
  $objects = $api->_load_objects( $args );
1333
  } else {
src/Pods/Whatsit/Block.php CHANGED
@@ -193,8 +193,7 @@ class Block extends Pod {
193
 
194
  // Handle custom context overrides from editor.
195
  if (
196
- ! empty( $_GET['post_id'] )
197
- && ! empty( $_GET['podsContext'] )
198
  && wp_is_json_request()
199
  && did_action( 'rest_api_init' )
200
  ) {
193
 
194
  // Handle custom context overrides from editor.
195
  if (
196
+ ! empty( $_GET['podsContext'] )
 
197
  && wp_is_json_request()
198
  && did_action( 'rest_api_init' )
199
  ) {
src/Pods/Whatsit/Block_Field.php CHANGED
@@ -117,10 +117,28 @@ class Block_Field extends Field {
117
  return null;
118
  }
119
 
120
- if ( 'file' === $type && 'multi' === $this->get_arg( 'file__format_type' ) ) {
121
  return null;
122
  }
123
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
124
  $block_args = $field_mapping[ $type ];
125
 
126
  // Handle setting name/label/help.
@@ -158,11 +176,15 @@ class Block_Field extends Field {
158
  $data = [];
159
 
160
  if ( ! is_array( $raw_data ) ) {
 
161
  if ( is_callable( $raw_data ) ) {
162
  $raw_data = $raw_data();
163
  } else {
164
  $raw_data = [];
165
  }
 
 
 
166
  }
167
 
168
  foreach ( $raw_data as $key => $item ) {
117
  return null;
118
  }
119
 
120
+ if ( 'file' === $type && 'multi' === $this->get_arg( 'file_format_type' ) ) {
121
  return null;
122
  }
123
 
124
+ if (
125
+ isset( $field_mapping['data'] )
126
+ && (
127
+ is_string( $field_mapping['data'] )
128
+ || is_object( $field_mapping['data'] )
129
+ || (
130
+ is_array( $field_mapping['data'] )
131
+ && 2 === count( $field_mapping['data'] )
132
+ && isset( $field_mapping['data'][0], $field_mapping['data'][1] )
133
+ && is_object( $field_mapping['data'][0] )
134
+ && is_string( $field_mapping['data'][1] )
135
+ )
136
+ )
137
+ && is_callable( $field_mapping['data'] )
138
+ ) {
139
+ $field_mapping['data'] = call_user_func( $field_mapping['data'] );
140
+ }
141
+
142
  $block_args = $field_mapping[ $type ];
143
 
144
  // Handle setting name/label/help.
176
  $data = [];
177
 
178
  if ( ! is_array( $raw_data ) ) {
179
+ // Support string callables.
180
  if ( is_callable( $raw_data ) ) {
181
  $raw_data = $raw_data();
182
  } else {
183
  $raw_data = [];
184
  }
185
+ } elseif ( isset( $raw_data[0] ) && is_object( $raw_data[0] ) && is_callable( $raw_data ) ) {
186
+ // Support array callables if first item is an object.
187
+ $raw_data = $raw_data();
188
  }
189
 
190
  foreach ( $raw_data as $key => $item ) {
src/Pods/Whatsit/Field.php CHANGED
@@ -178,12 +178,8 @@ class Field extends Whatsit {
178
  public function is_repeatable() {
179
  $parent_object = $this->get_parent_object();
180
 
181
- if ( ! $parent_object instanceof Pod ) {
182
- return false;
183
- }
184
-
185
  // Only non table-based Pods can have repeatable fields.
186
- if ( $parent_object->is_table_based() ) {
187
  return false;
188
  }
189
 
178
  public function is_repeatable() {
179
  $parent_object = $this->get_parent_object();
180
 
 
 
 
 
181
  // Only non table-based Pods can have repeatable fields.
182
+ if ( $parent_object instanceof Whatsit && $parent_object->is_table_based() ) {
183
  return false;
184
  }
185
 
src/Pods/Whatsit/Group.php CHANGED
@@ -2,6 +2,7 @@
2
 
3
  namespace Pods\Whatsit;
4
 
 
5
  use Pods\Whatsit;
6
 
7
  /**
@@ -36,58 +37,58 @@ class Group extends Whatsit {
36
  return [];
37
  }
38
 
39
- $object_collection = Store::get_instance();
40
 
41
  $has_custom_args = ! empty( $args );
42
 
43
- if ( null === $this->_fields || $has_custom_args ) {
44
- $filtered_args = [
45
- 'parent' => $this->get_parent_id(),
46
- 'parent_id' => $this->get_parent_id(),
47
- 'parent_name' => $this->get_parent_name(),
48
- 'parent_identifier' => $this->get_parent_identifier(),
49
- 'group' => $this->get_name(),
50
- 'group_id' => $this->get_id(),
51
- 'group_name' => $this->get_name(),
52
- 'group_identifier' => $this->get_identifier(),
53
- ];
54
-
55
- if ( empty( $filtered_args['parent_id'] ) || empty( $filtered_args['group_id'] ) ) {
56
- $filtered_args['bypass_post_type_find'] = true;
57
  }
 
58
 
59
- $filtered_args = array_filter( $filtered_args );
 
 
 
 
 
 
 
 
 
60
 
61
- $args = array_merge( [
62
- 'orderby' => 'menu_order title',
63
- 'order' => 'ASC',
64
- ], $filtered_args, $args );
65
 
66
- try {
67
- $api = pods_api();
68
 
69
- if ( ! empty( $args['object_type'] ) ) {
70
- $objects = $api->_load_objects( $args );
71
- } else {
72
- $objects = $api->load_fields( $args );
73
- }
74
- } catch ( \Exception $exception ) {
75
- $objects = [];
76
- }
77
 
78
- if ( ! $has_custom_args ) {
79
- $this->_fields = wp_list_pluck( $objects, 'identifier' );
 
 
 
80
  }
81
-
82
- return $objects;
83
  }
84
 
85
- $objects = array_map( [ $object_collection, 'get_object' ], $this->_fields );
86
- $objects = array_filter( $objects );
87
-
88
- $names = wp_list_pluck( $objects, 'name' );
89
 
90
- return array_combine( $names, $objects );
91
  }
92
 
93
  /**
2
 
3
  namespace Pods\Whatsit;
4
 
5
+ use Exception;
6
  use Pods\Whatsit;
7
 
8
  /**
37
  return [];
38
  }
39
 
40
+ $api = pods_api();
41
 
42
  $has_custom_args = ! empty( $args );
43
 
44
+ if ( null !== $this->_fields && ! $has_custom_args ) {
45
+ $objects = $this->maybe_get_objects_by_identifier( $this->_fields, $args );
46
+
47
+ if ( is_array( $objects ) ) {
48
+ $this->_fields = array_map( static function( $object ) { return clone $object; }, $objects );
49
+
50
+ /** @var Field[] $objects */
51
+ return $objects;
 
 
 
 
 
 
52
  }
53
+ }
54
 
55
+ $filtered_args = [
56
+ 'parent' => $this->get_parent_id(),
57
+ 'parent_id' => $this->get_parent_id(),
58
+ 'parent_name' => $this->get_parent_name(),
59
+ 'parent_identifier' => $this->get_parent_identifier(),
60
+ 'group' => $this->get_name(),
61
+ 'group_id' => $this->get_id(),
62
+ 'group_name' => $this->get_name(),
63
+ 'group_identifier' => $this->get_identifier(),
64
+ ];
65
 
66
+ if ( empty( $filtered_args['parent_id'] ) || empty( $filtered_args['group_id'] ) ) {
67
+ $filtered_args['bypass_post_type_find'] = true;
68
+ }
 
69
 
70
+ $filtered_args = array_filter( $filtered_args );
 
71
 
72
+ $args = array_merge( [
73
+ 'orderby' => 'menu_order title',
74
+ 'order' => 'ASC',
75
+ ], $filtered_args, $args );
 
 
 
 
76
 
77
+ try {
78
+ if ( ! empty( $args['object_type'] ) ) {
79
+ $objects = $api->_load_objects( $args );
80
+ } else {
81
+ $objects = $api->load_fields( $args );
82
  }
83
+ } catch ( Exception $exception ) {
84
+ $objects = [];
85
  }
86
 
87
+ if ( ! $has_custom_args ) {
88
+ $this->_fields = array_map( static function( $object ) { return clone $object; }, $objects );
89
+ }
 
90
 
91
+ return $objects;
92
  }
93
 
94
  /**
src/Pods/Whatsit/Pod.php CHANGED
@@ -25,7 +25,7 @@ class Pod extends Whatsit {
25
  * @return string The storage used for the Pod data (meta, table, etc).
26
  */
27
  public function get_storage() {
28
- $storage = $this->get_arg( 'storage' );
29
 
30
  if ( empty( $storage ) ) {
31
  $type = $this->get_type();
@@ -34,7 +34,7 @@ class Pod extends Whatsit {
34
  if ( in_array( $type, [ 'post_type', 'taxonomy', 'user', 'comment', 'media' ], true ) ) {
35
  $storage = 'meta';
36
  } elseif ( in_array( $type, [ 'pod', 'table' ], true ) ) {
37
- $storage = 'meta';
38
  } elseif ( 'settings' === $type ) {
39
  $storage = 'option';
40
  }
@@ -49,6 +49,8 @@ class Pod extends Whatsit {
49
  public function get_args() {
50
  $args = parent::get_args();
51
 
 
 
52
  // Pods generally have no parent, group, or order.
53
  unset( $args['parent'], $args['group'], $args['weight'] );
54
 
@@ -71,6 +73,14 @@ class Pod extends Whatsit {
71
  * {@inheritdoc}
72
  */
73
  public function get_arg( $arg, $default = null, $strict = false ) {
 
 
 
 
 
 
 
 
74
  $value = parent::get_arg( $arg, $default, $strict );
75
 
76
  // Better handle object for extended objects.
25
  * @return string The storage used for the Pod data (meta, table, etc).
26
  */
27
  public function get_storage() {
28
+ $storage = parent::get_arg( 'storage' );
29
 
30
  if ( empty( $storage ) ) {
31
  $type = $this->get_type();
34
  if ( in_array( $type, [ 'post_type', 'taxonomy', 'user', 'comment', 'media' ], true ) ) {
35
  $storage = 'meta';
36
  } elseif ( in_array( $type, [ 'pod', 'table' ], true ) ) {
37
+ $storage = 'table';
38
  } elseif ( 'settings' === $type ) {
39
  $storage = 'option';
40
  }
49
  public function get_args() {
50
  $args = parent::get_args();
51
 
52
+ $args['storage'] = $this->get_arg( 'storage' );
53
+
54
  // Pods generally have no parent, group, or order.
55
  unset( $args['parent'], $args['group'], $args['weight'] );
56
 
73
  * {@inheritdoc}
74
  */
75
  public function get_arg( $arg, $default = null, $strict = false ) {
76
+ if ( 'storage' === $arg ) {
77
+ return $this->get_storage();
78
+ }
79
+
80
+ if ( 'type' === $arg && null === $default ) {
81
+ $default = 'post_type';
82
+ }
83
+
84
  $value = parent::get_arg( $arg, $default, $strict );
85
 
86
  // Better handle object for extended objects.
src/Pods/Whatsit/Storage.php CHANGED
@@ -33,13 +33,17 @@ abstract class Storage {
33
 
34
  /**
35
  * Storage constructor.
 
 
36
  */
37
  public function __construct() {
38
  // @todo Bueller?
39
  }
40
 
41
  /**
42
- * {@inheritdoc}
 
 
43
  */
44
  public function get_label() {
45
  return __( 'Object Storage', 'pods' );
@@ -48,6 +52,8 @@ abstract class Storage {
48
  /**
49
  * Get the object storage type.
50
  *
 
 
51
  * @return string The object storage type.
52
  */
53
  public function get_object_storage_type() {
@@ -57,15 +63,33 @@ abstract class Storage {
57
  /**
58
  * Get object from storage.
59
  *
 
 
60
  * @return Whatsit|null
61
  */
62
  public function get() {
63
  return null;
64
  }
65
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
  /**
67
  * Find objects in storage.
68
  *
 
 
69
  * @param array $args Arguments to use.
70
  *
71
  * @return Whatsit[]
@@ -77,6 +101,8 @@ abstract class Storage {
77
  /**
78
  * Setup arg with any potential variations.
79
  *
 
 
80
  * @param array $args List of arguments.
81
  * @param string $arg Argument to setup.
82
  *
@@ -96,6 +122,8 @@ abstract class Storage {
96
  /**
97
  * Get arg value.
98
  *
 
 
99
  * @param array $args List of arguments.
100
  * @param string $arg Argument to get values for.
101
  *
@@ -139,6 +167,8 @@ abstract class Storage {
139
  /**
140
  * Add an object.
141
  *
 
 
142
  * @param Whatsit $object Object to add.
143
  *
144
  * @return string|int|false Object name, object ID, or false if not added.
@@ -150,6 +180,8 @@ abstract class Storage {
150
  /**
151
  * Add an object.
152
  *
 
 
153
  * @param Whatsit $object Object to add.
154
  *
155
  * @return string|int|false Object name, object ID, or false if not added.
@@ -213,6 +245,8 @@ abstract class Storage {
213
  /**
214
  * Save an object.
215
  *
 
 
216
  * @param Whatsit $object Object to save.
217
  *
218
  * @return string|int|false Object name, object ID, or false if not saved.
@@ -224,6 +258,8 @@ abstract class Storage {
224
  /**
225
  * Save an object.
226
  *
 
 
227
  * @param Whatsit $object Object to save.
228
  *
229
  * @return string|int|false Object name, object ID, or false if not saved.
@@ -287,6 +323,8 @@ abstract class Storage {
287
  /**
288
  * Duplicate an object.
289
  *
 
 
290
  * @param Whatsit $object Object to duplicate.
291
  *
292
  * @return string|int|false Duplicated object name, duplicated object ID, or false if not duplicated.
@@ -327,6 +365,8 @@ abstract class Storage {
327
  /**
328
  * Delete an object.
329
  *
 
 
330
  * @param Whatsit $object Object to delete.
331
  *
332
  * @return bool
@@ -338,6 +378,8 @@ abstract class Storage {
338
  /**
339
  * Delete an object.
340
  *
 
 
341
  * @param Whatsit $object Object to delete.
342
  *
343
  * @return bool
@@ -393,6 +435,8 @@ abstract class Storage {
393
  /**
394
  * Reset an object's item data.
395
  *
 
 
396
  * @param Whatsit $object Object of items to reset.
397
  *
398
  * @return bool
@@ -404,6 +448,8 @@ abstract class Storage {
404
  /**
405
  * Get object argument data.
406
  *
 
 
407
  * @param Whatsit $object Object with arguments to save.
408
  *
409
  * @return array
@@ -415,6 +461,8 @@ abstract class Storage {
415
  /**
416
  * Save object argument data.
417
  *
 
 
418
  * @param Whatsit $object Object with arguments to save.
419
  *
420
  * @return bool
@@ -432,4 +480,18 @@ abstract class Storage {
432
  $this->fallback_mode = (boolean) $enabled;
433
  }
434
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
435
  }
33
 
34
  /**
35
  * Storage constructor.
36
+ *
37
+ * @since 2.8.0
38
  */
39
  public function __construct() {
40
  // @todo Bueller?
41
  }
42
 
43
  /**
44
+ * Get the object storage label.
45
+ *
46
+ * @return string The object storage label.
47
  */
48
  public function get_label() {
49
  return __( 'Object Storage', 'pods' );
52
  /**
53
  * Get the object storage type.
54
  *
55
+ * @since 2.8.0
56
+ *
57
  * @return string The object storage type.
58
  */
59
  public function get_object_storage_type() {
63
  /**
64
  * Get object from storage.
65
  *
66
+ * @since 2.8.0
67
+ *
68
  * @return Whatsit|null
69
  */
70
  public function get() {
71
  return null;
72
  }
73
 
74
+ /**
75
+ * Get object by identifier from storage.
76
+ *
77
+ * @since 2.9.10
78
+ *
79
+ * @param string|int|Whatsit $identifier The object identifier.
80
+ * @param null|string|int|Whatsit $parent The parent object.
81
+ *
82
+ * @return Whatsit|null
83
+ */
84
+ public function get_by_identifier( $identifier, $parent = null ) {
85
+ return null;
86
+ }
87
+
88
  /**
89
  * Find objects in storage.
90
  *
91
+ * @since 2.8.0
92
+ *
93
  * @param array $args Arguments to use.
94
  *
95
  * @return Whatsit[]
101
  /**
102
  * Setup arg with any potential variations.
103
  *
104
+ * @since 2.8.0
105
+ *
106
  * @param array $args List of arguments.
107
  * @param string $arg Argument to setup.
108
  *
122
  /**
123
  * Get arg value.
124
  *
125
+ * @since 2.8.0
126
+ *
127
  * @param array $args List of arguments.
128
  * @param string $arg Argument to get values for.
129
  *
167
  /**
168
  * Add an object.
169
  *
170
+ * @since 2.8.0
171
+ *
172
  * @param Whatsit $object Object to add.
173
  *
174
  * @return string|int|false Object name, object ID, or false if not added.
180
  /**
181
  * Add an object.
182
  *
183
+ * @since 2.8.0
184
+ *
185
  * @param Whatsit $object Object to add.
186
  *
187
  * @return string|int|false Object name, object ID, or false if not added.
245
  /**
246
  * Save an object.
247
  *
248
+ * @since 2.8.0
249
+ *
250
  * @param Whatsit $object Object to save.
251
  *
252
  * @return string|int|false Object name, object ID, or false if not saved.
258
  /**
259
  * Save an object.
260
  *
261
+ * @since 2.8.0
262
+ *
263
  * @param Whatsit $object Object to save.
264
  *
265
  * @return string|int|false Object name, object ID, or false if not saved.
323
  /**
324
  * Duplicate an object.
325
  *
326
+ * @since 2.8.0
327
+ *
328
  * @param Whatsit $object Object to duplicate.
329
  *
330
  * @return string|int|false Duplicated object name, duplicated object ID, or false if not duplicated.
365
  /**
366
  * Delete an object.
367
  *
368
+ * @since 2.8.0
369
+ *
370
  * @param Whatsit $object Object to delete.
371
  *
372
  * @return bool
378
  /**
379
  * Delete an object.
380
  *
381
+ * @since 2.8.0
382
+ *
383
  * @param Whatsit $object Object to delete.
384
  *
385
  * @return bool
435
  /**
436
  * Reset an object's item data.
437
  *
438
+ * @since 2.8.0
439
+ *
440
  * @param Whatsit $object Object of items to reset.
441
  *
442
  * @return bool
448
  /**
449
  * Get object argument data.
450
  *
451
+ * @since 2.8.0
452
+ *
453
  * @param Whatsit $object Object with arguments to save.
454
  *
455
  * @return array
461
  /**
462
  * Save object argument data.
463
  *
464
+ * @since 2.8.0
465
+ *
466
  * @param Whatsit $object Object with arguments to save.
467
  *
468
  * @return bool
480
  $this->fallback_mode = (boolean) $enabled;
481
  }
482
 
483
+ /**
484
+ * Setup object from an identifier.
485
+ *
486
+ * @since 2.9.10
487
+ *
488
+ * @param string $value The identifier.
489
+ * @param bool $force_refresh Whether to force the refresh of the object.
490
+ *
491
+ * @return Whatsit|null
492
+ */
493
+ public function to_object( $value, $force_refresh = false ) {
494
+ return null;
495
+ }
496
+
497
  }
src/Pods/Whatsit/Storage/Collection.php CHANGED
@@ -67,58 +67,93 @@ class Collection extends Storage {
67
  /**
68
  * {@inheritdoc}
69
  */
70
- public function find( array $args = [] ) {
71
- // Object type OR parent is required.
72
- if ( empty( $args['object_type'] ) && empty( $args['parent'] ) ) {
73
- return [];
74
  }
75
 
76
- /**
77
- * Filter the maximum number of posts to get for post type storage.
78
- *
79
- * @since 2.8.0
80
- *
81
- * @param int $limit
82
- *
83
- */
84
- $limit = apply_filters( 'pods_whatsit_storage_post_type_find_limit', 300 );
85
-
86
- if ( empty( $args['limit'] ) ) {
87
- $args['limit'] = $limit;
88
  }
89
 
90
  $object_collection = Store::get_instance();
91
 
92
- $objects = $object_collection->get_objects();
 
93
 
94
- foreach ( $objects as $k => $object ) {
95
- $current_object_storage_type = $object->get_object_storage_type();
 
96
 
97
- if ( $current_object_storage_type && isset( static::$compatible_types[ $current_object_storage_type ] ) ) {
98
- continue;
 
 
 
 
 
 
 
 
 
99
  }
100
 
101
- unset( $objects[ $k ] );
 
 
 
 
 
102
  }
103
 
104
- if ( empty( $objects ) ) {
105
- return $objects;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
  }
107
 
108
- if ( ! empty( $args['object_type'] ) ) {
109
- $object_types = (array) $args['object_type'];
110
 
111
- foreach ( $objects as $k => $object ) {
112
- if ( in_array( $object->get_object_type(), $object_types, true ) ) {
113
- continue;
114
- }
 
 
 
 
115
 
116
- unset( $objects[ $k ] );
117
- }
 
 
 
 
 
 
 
118
 
119
- if ( empty( $objects ) ) {
120
- return $objects;
121
- }
122
  }
123
 
124
  if ( ! isset( $args['args'] ) ) {
@@ -151,6 +186,65 @@ class Collection extends Storage {
151
  $args['args'][ $arg ] = $args[ $arg ];
152
  }
153
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
154
  foreach ( $args['args'] as $arg => $value ) {
155
  if ( null === $value ) {
156
  foreach ( $objects as $k => $object ) {
@@ -162,7 +256,7 @@ class Collection extends Storage {
162
  }
163
 
164
  if ( empty( $objects ) ) {
165
- return $objects;
166
  }
167
 
168
  continue;
@@ -180,7 +274,7 @@ class Collection extends Storage {
180
  }
181
 
182
  if ( empty( $objects ) ) {
183
- return $objects;
184
  }
185
 
186
  continue;
@@ -207,67 +301,19 @@ class Collection extends Storage {
207
  }
208
 
209
  if ( empty( $objects ) ) {
210
- return $objects;
211
  }
212
  }
213
  }//end foreach
214
 
215
- if ( ! empty( $args['id'] ) ) {
216
- $args['id'] = (array) $args['id'];
217
- $args['id'] = array_map( 'absint', $args['id'] );
218
- $args['id'] = array_unique( $args['id'] );
219
- $args['id'] = array_filter( $args['id'] );
220
-
221
- if ( $args['id'] ) {
222
- foreach ( $objects as $k => $object ) {
223
- if ( in_array( $object->get_id(), $args['id'], true ) ) {
224
- continue;
225
- }
226
-
227
- unset( $objects[ $k ] );
228
- }
229
-
230
- if ( empty( $objects ) ) {
231
- return $objects;
232
- }
233
- }
234
- }
235
-
236
- if ( ! empty( $args['name'] ) ) {
237
- $args['name'] = (array) $args['name'];
238
- $args['name'] = array_map( 'trim', $args['name'] );
239
- $args['name'] = array_unique( $args['name'] );
240
- $args['name'] = array_filter( $args['name'] );
241
-
242
- if ( $args['name'] ) {
243
- foreach ( $objects as $k => $object ) {
244
- if ( in_array( $object->get_name(), $args['name'], true ) ) {
245
- continue;
246
- }
247
-
248
- unset( $objects[ $k ] );
249
- }
250
-
251
- if ( empty( $objects ) ) {
252
- return $objects;
253
- }
254
- }
255
- }
256
-
257
- if ( isset( $args['internal'] ) ) {
258
- foreach ( $objects as $k => $object ) {
259
- if ( $args['internal'] === (boolean) $object->get_arg( 'internal' ) ) {
260
- continue;
261
- }
262
-
263
- unset( $objects[ $k ] );
264
- }
265
- }
266
-
267
  if ( ! empty( $args['limit'] ) ) {
268
  $objects = array_slice( $objects, 0, $args['limit'], true );
269
  }
270
 
 
 
 
 
271
  $names = wp_list_pluck( $objects, 'name' );
272
 
273
  return array_combine( $names, $objects );
@@ -280,7 +326,7 @@ class Collection extends Storage {
280
  $storage_type = $object->get_object_storage_type();
281
 
282
  if ( empty( $storage_type ) ) {
283
- $object->set_arg( 'object_storage_type', static::$type );
284
  }
285
 
286
  $object_collection = Store::get_instance();
@@ -314,4 +360,27 @@ class Collection extends Storage {
314
  return true;
315
  }
316
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
317
  }
67
  /**
68
  * {@inheritdoc}
69
  */
70
+ public function get_by_identifier( $identifier, $parent = null ) {
71
+ if ( $identifier instanceof Whatsit ) {
72
+ return $identifier;
 
73
  }
74
 
75
+ if ( ! is_string( $identifier ) || false === strpos( $identifier, '/' ) ) {
76
+ return null;
 
 
 
 
 
 
 
 
 
 
77
  }
78
 
79
  $object_collection = Store::get_instance();
80
 
81
+ // Check if we already have an object registered and available.
82
+ $object = $object_collection->get_object( $identifier );
83
 
84
+ if ( $object ) {
85
+ return $object;
86
+ }
87
 
88
+ $identifier_parts = explode( '/', $identifier );
89
+
90
+ $total_parts = count( $identifier_parts );
91
+
92
+ $parent_object_id = 0;
93
+
94
+ if ( 3 === $total_parts ) {
95
+ $object_type = $identifier_parts[0];
96
+
97
+ if ( is_numeric( $identifier_parts[1] ) ) {
98
+ $parent_object_id = (int) $identifier_parts[1];
99
  }
100
 
101
+ $object_name = $identifier_parts[2];
102
+ } elseif ( 2 === $total_parts ) {
103
+ $object_type = $identifier_parts[0];
104
+ $object_name = $identifier_parts[1];
105
+ } else {
106
+ return null;
107
  }
108
 
109
+ $get_args = [
110
+ 'object_type' => $object_type,
111
+ 'name' => $object_name,
112
+ ];
113
+
114
+ if ( $parent instanceof Whatsit ) {
115
+ $get_args['parent'] = $parent->get_id();
116
+ $get_args['parent_id'] = $parent->get_id();
117
+ $get_args['parent_name'] = $parent->get_name();
118
+ $get_args['parent_identifier'] = $parent->get_identifier();
119
+ } elseif ( is_numeric( $parent ) ) {
120
+ $get_args['parent'] = $parent;
121
+ $get_args['parent_id'] = $parent;
122
+ } elseif ( is_string( $parent ) ) {
123
+ if ( false === strpos( $parent, '/' ) ) {
124
+ $get_args['parent_name'] = $parent;
125
+ } else {
126
+ $get_args['parent_identifier'] = $parent;
127
+ }
128
+ } elseif ( 0 < $parent_object_id ) {
129
+ $get_args['parent'] = $parent_object_id;
130
+ $get_args['parent_id'] = $parent_object_id;
131
  }
132
 
133
+ return $this->get( $get_args );
134
+ }
135
 
136
+ /**
137
+ * {@inheritdoc}
138
+ */
139
+ public function find( array $args = [] ) {
140
+ // Object type OR parent is required.
141
+ if ( empty( $args['object_type'] ) && empty( $args['object_types'] ) && empty( $args['parent'] ) ) {
142
+ return [];
143
+ }
144
 
145
+ /**
146
+ * Filter the maximum number of posts to get for post type storage.
147
+ *
148
+ * @since 2.8.0
149
+ *
150
+ * @param int $limit
151
+ *
152
+ */
153
+ $limit = apply_filters( 'pods_whatsit_storage_post_type_find_limit', 300 );
154
 
155
+ if ( empty( $args['limit'] ) ) {
156
+ $args['limit'] = $limit;
 
157
  }
158
 
159
  if ( ! isset( $args['args'] ) ) {
186
  $args['args'][ $arg ] = $args[ $arg ];
187
  }
188
 
189
+ $object_collection = Store::get_instance();
190
+
191
+ $cache_key = wp_json_encode( $args ) . $object_collection->get_salt();
192
+
193
+ $use_cache = did_action( 'init' );
194
+
195
+ $found_objects = null;
196
+
197
+ if ( $use_cache ) {
198
+ $found_objects = pods_static_cache_get( $cache_key, self::class . '/find_objects' );
199
+ }
200
+
201
+ // Cached objects found, don't process again.
202
+ if ( is_array( $found_objects ) ) {
203
+ return $found_objects;
204
+ }
205
+
206
+ $collection_args = [
207
+ 'object_storage_types' => static::$compatible_types,
208
+ ];
209
+
210
+ if ( ! empty( $args['object_storage_type'] ) ) {
211
+ $collection_args['object_storage_types'] = $args['object_storage_type'];
212
+ } elseif ( ! empty( $args['object_storage_types'] ) ) {
213
+ $collection_args['object_storage_types'] = $args['object_storage_types'];
214
+ }
215
+
216
+ if ( ! empty( $args['object_type'] ) ) {
217
+ $collection_args['object_types'] = $args['object_type'];
218
+ } elseif ( ! empty( $args['object_types'] ) ) {
219
+ $collection_args['object_types'] = $args['object_types'];
220
+ }
221
+
222
+ if ( ! empty( $args['id'] ) ) {
223
+ $collection_args['ids'] = $args['id'];
224
+ } elseif ( ! empty( $args['ids'] ) ) {
225
+ $collection_args['ids'] = $args['ids'];
226
+ } elseif ( ! empty( $args['identifier'] ) ) {
227
+ $collection_args['identifiers'] = $args['identifier'];
228
+ } elseif ( ! empty( $args['identifiers'] ) ) {
229
+ $collection_args['identifiers'] = $args['identifiers'];
230
+ }
231
+
232
+ if ( ! empty( $args['name'] ) ) {
233
+ $collection_args['names'] = $args['name'];
234
+ } elseif ( ! empty( $args['names'] ) ) {
235
+ $collection_args['names'] = $args['names'];
236
+ }
237
+
238
+ if ( isset( $args['internal'] ) ) {
239
+ $collection_args['internal'] = $args['internal'];
240
+ }
241
+
242
+ $objects = $object_collection->get_objects( $collection_args );
243
+
244
+ if ( empty( $objects ) ) {
245
+ return [];
246
+ }
247
+
248
  foreach ( $args['args'] as $arg => $value ) {
249
  if ( null === $value ) {
250
  foreach ( $objects as $k => $object ) {
256
  }
257
 
258
  if ( empty( $objects ) ) {
259
+ return [];
260
  }
261
 
262
  continue;
274
  }
275
 
276
  if ( empty( $objects ) ) {
277
+ return [];
278
  }
279
 
280
  continue;
301
  }
302
 
303
  if ( empty( $objects ) ) {
304
+ return [];
305
  }
306
  }
307
  }//end foreach
308
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
309
  if ( ! empty( $args['limit'] ) ) {
310
  $objects = array_slice( $objects, 0, $args['limit'], true );
311
  }
312
 
313
+ if ( $use_cache ) {
314
+ pods_static_cache_set( $cache_key, $objects, self::class . '/find_objects' );
315
+ }
316
+
317
  $names = wp_list_pluck( $objects, 'name' );
318
 
319
  return array_combine( $names, $objects );
326
  $storage_type = $object->get_object_storage_type();
327
 
328
  if ( empty( $storage_type ) ) {
329
+ $object->set_arg( 'object_storage_type', $this->get_object_storage_type() );
330
  }
331
 
332
  $object_collection = Store::get_instance();
360
  return true;
361
  }
362
 
363
+ /**
364
+ * Setup object from an identifier.
365
+ *
366
+ * @param string $value The identifier.
367
+ * @param bool $force_refresh Whether to force the refresh of the object.
368
+ *
369
+ * @return Whatsit|null
370
+ */
371
+ public function to_object( $value, $force_refresh = false ) {
372
+ if ( empty( $value ) ) {
373
+ return null;
374
+ }
375
+
376
+ if ( is_wp_error( $value ) ) {
377
+ return null;
378
+ }
379
+
380
+ $object_collection = Store::get_instance();
381
+
382
+ // Check if we already have an object registered and available.
383
+ return $object_collection->get_object( $value );
384
+ }
385
+
386
  }
src/Pods/Whatsit/Storage/File.php CHANGED
@@ -14,6 +14,13 @@ class File extends Collection {
14
  */
15
  protected static $type = 'file';
16
 
 
 
 
 
 
 
 
17
  /**
18
  * {@inheritdoc}
19
  */
14
  */
15
  protected static $type = 'file';
16
 
17
+ /**
18
+ * @var array
19
+ */
20
+ protected static $compatible_types = [
21
+ 'file' => 'file',
22
+ ];
23
+
24
  /**
25
  * {@inheritdoc}
26
  */
src/Pods/Whatsit/Storage/Post_Type.php CHANGED
@@ -22,12 +22,14 @@ class Post_Type extends Collection {
22
  * @var array
23
  */
24
  protected $primary_args = [
25
- 'ID' => 'id',
26
- 'post_name' => 'name',
27
- 'post_title' => 'label',
28
- 'post_content' => 'description',
29
- 'post_parent' => 'parent',
30
- 'menu_order' => 'weight',
 
 
31
  ];
32
 
33
  /**
@@ -79,6 +81,21 @@ class Post_Type extends Collection {
79
  return null;
80
  }
81
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
  /**
83
  * {@inheritdoc}
84
  */
@@ -324,16 +341,24 @@ class Post_Type extends Collection {
324
 
325
  $query = null;
326
  $cache_key = null;
 
327
  $posts = false;
328
  $post_objects = false;
329
 
330
  $cache_key_post_type = 'any';
 
331
 
332
- if ( isset( $post_args['post_type'] ) ) {
333
  $cache_key_post_type = $post_args['post_type'];
334
  }
335
 
336
  if ( empty( $args['bypass_cache'] ) && empty( $args['bypass_post_type_find'] ) ) {
 
 
 
 
 
 
337
  $cache_key_parts = [
338
  'pods_whatsit_storage_post_type_find',
339
  ];
@@ -352,11 +377,12 @@ class Post_Type extends Collection {
352
 
353
  if ( ! empty( $args['ids'] ) ) {
354
  $cache_key_parts[] = '_ids';
 
 
355
  }
356
 
357
  $cache_key_parts[] = $current_language;
358
-
359
- $cache_key_parts[] = wp_json_encode( $post_args );
360
 
361
  /**
362
  * Filter cache key parts used for generating the cache key.
@@ -375,8 +401,18 @@ class Post_Type extends Collection {
375
  $cache_key = implode( '_', $cache_key_parts );
376
 
377
  if ( empty( $args['refresh'] ) ) {
378
- $posts = pods_transient_get( $cache_key );
379
- $post_objects = pods_cache_get( $cache_key . '_objects', 'pods_post_type_storage_' . $cache_key_post_type );
 
 
 
 
 
 
 
 
 
 
380
  }
381
  }//end if
382
 
@@ -416,7 +452,8 @@ class Post_Type extends Collection {
416
  $posts = wp_list_pluck( $posts, 'ID' );
417
  }
418
 
419
- if ( empty( $args['bypass_cache'] ) ) {
 
420
  pods_transient_set( $cache_key, $posts, WEEK_IN_SECONDS );
421
  }
422
  }
@@ -454,7 +491,8 @@ class Post_Type extends Collection {
454
  }
455
  }
456
 
457
- if ( empty( $args['bypass_post_type_find'] ) && empty( $args['bypass_cache'] ) ) {
 
458
  pods_cache_set( $cache_key . '_objects', $post_objects, 'pods_post_type_storage_' . $cache_key_post_type, WEEK_IN_SECONDS );
459
  }
460
  }
@@ -475,7 +513,12 @@ class Post_Type extends Collection {
475
  }, $post_objects );
476
  } else {
477
  // Handle normal Whatsit object setup.
478
- update_postmeta_cache( $posts ); // Prevent separate queries for each iteration.
 
 
 
 
 
479
  $posts = array_map( [ $this, 'to_object' ], $post_objects );
480
  $posts = array_filter( $posts );
481
  }
@@ -664,6 +707,13 @@ class Post_Type extends Collection {
664
  return false;
665
  }
666
 
 
 
 
 
 
 
 
667
  /**
668
  * Setup object from a Post ID or Post object.
669
  *
@@ -672,7 +722,7 @@ class Post_Type extends Collection {
672
  *
673
  * @return Whatsit|null
674
  */
675
- public function to_object( $post, $force_refresh = false ) {
676
  if ( null !== $post && ! $post instanceof \WP_Post ) {
677
  $post = get_post( $post );
678
  }
@@ -681,7 +731,7 @@ class Post_Type extends Collection {
681
  return null;
682
  }
683
 
684
- if ( ! $post || is_wp_error( $post ) ) {
685
  return null;
686
  }
687
 
@@ -719,10 +769,10 @@ class Post_Type extends Collection {
719
  /** @var Whatsit $object */
720
  $object = new $class_name( $args );
721
 
722
- $this->get_args( $object );
723
-
724
  $object->set_arg( 'object_storage_type', $this->get_object_storage_type() );
725
 
 
 
726
  if ( $object->is_valid() ) {
727
  $object_collection->register_object( $object );
728
  }
22
  * @var array
23
  */
24
  protected $primary_args = [
25
+ 'object_type' => 'object_type',
26
+ 'object_storage_type' => 'object_storage_type',
27
+ 'ID' => 'id',
28
+ 'post_name' => 'name',
29
+ 'post_title' => 'label',
30
+ 'post_content' => 'description',
31
+ 'post_parent' => 'parent',
32
+ 'menu_order' => 'weight',
33
  ];
34
 
35
  /**
81
  return null;
82
  }
83
 
84
+ /**
85
+ * {@inheritdoc}
86
+ */
87
+ public function get_by_identifier( $identifier, $parent = null ) {
88
+ if ( $identifier instanceof Whatsit ) {
89
+ return $identifier;
90
+ }
91
+
92
+ if ( is_int( $identifier ) ) {
93
+ return $this->to_object( $identifier );
94
+ }
95
+
96
+ return parent::get_by_identifier( $identifier, $parent );
97
+ }
98
+
99
  /**
100
  * {@inheritdoc}
101
  */
341
 
342
  $query = null;
343
  $cache_key = null;
344
+ $use_cache = false;
345
  $posts = false;
346
  $post_objects = false;
347
 
348
  $cache_key_post_type = 'any';
349
+ $cache_key_static_check = '';
350
 
351
+ if ( ! empty( $post_args['post_type'] ) ) {
352
  $cache_key_post_type = $post_args['post_type'];
353
  }
354
 
355
  if ( empty( $args['bypass_cache'] ) && empty( $args['bypass_post_type_find'] ) ) {
356
+ $use_cache = true;
357
+
358
+ $post_args_encoded = wp_json_encode( $post_args );
359
+
360
+ $cache_key_static_check = __METHOD__ . '/' . $post_args_encoded;
361
+
362
  $cache_key_parts = [
363
  'pods_whatsit_storage_post_type_find',
364
  ];
377
 
378
  if ( ! empty( $args['ids'] ) ) {
379
  $cache_key_parts[] = '_ids';
380
+
381
+ $cache_key_static_check .= '/ids';
382
  }
383
 
384
  $cache_key_parts[] = $current_language;
385
+ $cache_key_parts[] = $post_args_encoded;
 
386
 
387
  /**
388
  * Filter cache key parts used for generating the cache key.
401
  $cache_key = implode( '_', $cache_key_parts );
402
 
403
  if ( empty( $args['refresh'] ) ) {
404
+ $posts = pods_static_cache_get( $cache_key_static_check, self::class . '/find_objects/' . $cache_key_post_type );
405
+ $post_objects = pods_static_cache_get( $cache_key_static_check . '_objects', self::class . '/find_objects/' . $cache_key_post_type );
406
+
407
+ // If we have no posts in static cache, we don't need to query again.
408
+ if ( [] !== $posts ) {
409
+ $posts = pods_transient_get($cache_key);
410
+ }
411
+
412
+ // If we have no posts in static cache, we don't need to query again.
413
+ if ( [] !== $post_objects ) {
414
+ $post_objects = pods_cache_get( $cache_key . '_objects', 'pods_post_type_storage_' . $cache_key_post_type );
415
+ }
416
  }
417
  }//end if
418
 
452
  $posts = wp_list_pluck( $posts, 'ID' );
453
  }
454
 
455
+ if ( $use_cache && empty( $args['bypass_cache'] ) ) {
456
+ pods_static_cache_set( $cache_key_static_check, $posts, self::class . '/find_objects/' . $cache_key_post_type );
457
  pods_transient_set( $cache_key, $posts, WEEK_IN_SECONDS );
458
  }
459
  }
491
  }
492
  }
493
 
494
+ if ( $use_cache && empty( $args['bypass_post_type_find'] ) && empty( $args['bypass_cache'] ) ) {
495
+ pods_static_cache_set( $cache_key_static_check . '_objects', $post_objects, self::class . '/find_objects/' . $cache_key_post_type );
496
  pods_cache_set( $cache_key . '_objects', $post_objects, 'pods_post_type_storage_' . $cache_key_post_type, WEEK_IN_SECONDS );
497
  }
498
  }
513
  }, $post_objects );
514
  } else {
515
  // Handle normal Whatsit object setup.
516
+
517
+ // Prevent separate queries for each iteration.
518
+ if ( wp_using_ext_object_cache() ) {
519
+ update_postmeta_cache( $posts );
520
+ }
521
+
522
  $posts = array_map( [ $this, 'to_object' ], $post_objects );
523
  $posts = array_filter( $posts );
524
  }
707
  return false;
708
  }
709
 
710
+ /**
711
+ * {@inheritdoc}
712
+ */
713
+ public function to_object( $value, $force_refresh = false ) {
714
+ return $this->to_object_from_post( $value, $force_refresh );
715
+ }
716
+
717
  /**
718
  * Setup object from a Post ID or Post object.
719
  *
722
  *
723
  * @return Whatsit|null
724
  */
725
+ public function to_object_from_post( $post, $force_refresh = false ) {
726
  if ( null !== $post && ! $post instanceof \WP_Post ) {
727
  $post = get_post( $post );
728
  }
731
  return null;
732
  }
733
 
734
+ if ( is_wp_error( $post ) ) {
735
  return null;
736
  }
737
 
769
  /** @var Whatsit $object */
770
  $object = new $class_name( $args );
771
 
 
 
772
  $object->set_arg( 'object_storage_type', $this->get_object_storage_type() );
773
 
774
+ $this->get_args( $object );
775
+
776
  if ( $object->is_valid() ) {
777
  $object_collection->register_object( $object );
778
  }
src/Pods/Whatsit/Store.php CHANGED
@@ -14,6 +14,11 @@ use Pods\Whatsit\Storage\Post_Type;
14
  */
15
  class Store {
16
 
 
 
 
 
 
17
  /**
18
  * @var Store[]
19
  */
@@ -56,6 +61,8 @@ class Store {
56
  $this->object_types = $this->get_default_object_types();
57
  $this->storage_types = $this->get_default_storage_types();
58
  $this->objects = $this->get_default_objects();
 
 
59
  }
60
 
61
  /**
@@ -185,6 +192,8 @@ class Store {
185
  */
186
  public function register_object_type( $object_type, $class_name ) {
187
  $this->object_types[ $object_type ] = $class_name;
 
 
188
  }
189
 
190
  /**
@@ -204,6 +213,8 @@ class Store {
204
  if ( isset( $this->object_types[ $object_type ] ) ) {
205
  unset( $this->object_types[ $object_type ] );
206
 
 
 
207
  return true;
208
  }
209
 
@@ -215,6 +226,8 @@ class Store {
215
  */
216
  public function flush_object_types() {
217
  $this->object_types = $this->get_default_object_types();
 
 
218
  }
219
 
220
  /**
@@ -240,6 +253,8 @@ class Store {
240
  }
241
 
242
  $this->storage_types[ $storage_type ] = $class_name;
 
 
243
  }
244
 
245
  /**
@@ -263,6 +278,8 @@ class Store {
263
  unset( $this->storage_engine[ $storage_type ] );
264
  }
265
 
 
 
266
  return true;
267
  }
268
 
@@ -282,6 +299,8 @@ class Store {
282
  }
283
 
284
  unset( $this->storage_engine[ $storage_type ] );
 
 
285
  }
286
  }
287
 
@@ -300,14 +319,14 @@ class Store {
300
  * @param Whatsit|array $object Pods object.
301
  */
302
  public function register_object( $object ) {
303
- $id = null;
304
- $identifier = null;
305
- $storage_type = 'collection';
306
 
307
  if ( $object instanceof Whatsit ) {
308
- $id = $object->get_id();
309
- $identifier = $object->get_identifier();
310
- $storage_type = $object->get_object_storage_type();
311
  } elseif ( is_array( $object ) ) {
312
  if ( ! empty( $object['id'] ) ) {
313
  $id = $object['id'];
@@ -318,7 +337,7 @@ class Store {
318
  }
319
 
320
  if ( ! empty( $object['object_storage_type'] ) ) {
321
- $storage_type = $object['object_storage_type'];
322
  }
323
 
324
  $identifier = Whatsit::get_identifier_from_args( $object );
@@ -327,22 +346,18 @@ class Store {
327
  return;
328
  }
329
 
330
- // Store ids for reference.
331
- if ( '' !== $id && null !== $id ) {
332
- $this->object_ids[ $id ] = $identifier;
333
-
334
- if ( ! isset( $this->objects_in_storage[ $storage_type ] ) ) {
335
- $this->objects_in_storage[ $storage_type ] = [];
336
- }
337
-
338
- $this->objects_in_storage[ $storage_type ][] = $identifier;
339
- }
340
 
341
  if ( $object instanceof Whatsit ) {
342
  $object = clone $object;
343
  }
344
 
345
  $this->objects[ $identifier ] = $object;
 
 
346
  }
347
 
348
  /**
@@ -378,15 +393,6 @@ class Store {
378
  $id = $identifier;
379
  }
380
 
381
- if ( isset( $this->object_ids[ $id ] ) ) {
382
- // If this was an ID lookup, set the identifier for removal.
383
- if ( $identifier !== $this->object_ids[ $id ] ) {
384
- $identifier = $this->object_ids[ $id ];
385
- }
386
-
387
- unset( $this->object_ids[ $id ] );
388
- }
389
-
390
  if ( isset( $this->objects[ $identifier ] ) ) {
391
  if ( isset( $defaults[ $identifier ] ) ) {
392
  return false;
@@ -394,14 +400,14 @@ class Store {
394
 
395
  $object = $this->objects[ $identifier ];
396
 
397
- $storage_type = 'collection';
398
 
399
  if ( is_array( $object ) ) {
400
  if ( ! empty( $object['object_storage_type'] ) ) {
401
- $storage_type = $object['object_storage_type'];
402
  }
403
  } elseif ( $object instanceof Whatsit ) {
404
- $storage_type = $object->get_object_storage_type();
405
  } else {
406
  return false;
407
  }
@@ -412,13 +418,12 @@ class Store {
412
 
413
  unset( $this->objects[ $identifier ] );
414
 
415
- if ( ! empty( $this->objects_in_storage[ $storage_type ] ) ) {
416
- $key = array_search( $identifier, $this->objects_in_storage[ $storage_type ], true );
 
 
417
 
418
- if ( false !== $key ) {
419
- unset( $this->objects_in_storage[ $storage_type ][ $key ] );
420
- }
421
- }
422
 
423
  return true;
424
  }//end if
@@ -472,6 +477,10 @@ class Store {
472
  continue;
473
  }
474
 
 
 
 
 
475
  // Delete from storage.
476
  $storage_type = $object->get_object_storage_type();
477
 
@@ -532,13 +541,205 @@ class Store {
532
  /**
533
  * Get objects from collection.
534
  *
 
 
535
  * @return Whatsit[] List of objects.
536
  */
537
- public function get_objects() {
538
- $objects = array_map( [ $this, 'get_object' ], $this->objects );
539
- $objects = array_filter( $objects );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
540
 
541
- return $objects;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
542
  }
543
 
544
  /**
@@ -627,4 +828,130 @@ class Store {
627
  return null;
628
  }
629
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
630
  }
14
  */
15
  class Store {
16
 
17
+ /**
18
+ * @var string
19
+ */
20
+ protected $salt = '';
21
+
22
  /**
23
  * @var Store[]
24
  */
61
  $this->object_types = $this->get_default_object_types();
62
  $this->storage_types = $this->get_default_storage_types();
63
  $this->objects = $this->get_default_objects();
64
+
65
+ $this->rebuild_index();
66
  }
67
 
68
  /**
192
  */
193
  public function register_object_type( $object_type, $class_name ) {
194
  $this->object_types[ $object_type ] = $class_name;
195
+
196
+ $this->refresh_salt();
197
  }
198
 
199
  /**
213
  if ( isset( $this->object_types[ $object_type ] ) ) {
214
  unset( $this->object_types[ $object_type ] );
215
 
216
+ $this->refresh_salt();
217
+
218
  return true;
219
  }
220
 
226
  */
227
  public function flush_object_types() {
228
  $this->object_types = $this->get_default_object_types();
229
+
230
+ $this->refresh_salt();
231
  }
232
 
233
  /**
253
  }
254
 
255
  $this->storage_types[ $storage_type ] = $class_name;
256
+
257
+ $this->refresh_salt();
258
  }
259
 
260
  /**
278
  unset( $this->storage_engine[ $storage_type ] );
279
  }
280
 
281
+ $this->refresh_salt();
282
+
283
  return true;
284
  }
285
 
299
  }
300
 
301
  unset( $this->storage_engine[ $storage_type ] );
302
+
303
+ $this->refresh_salt();
304
  }
305
  }
306
 
319
  * @param Whatsit|array $object Pods object.
320
  */
321
  public function register_object( $object ) {
322
+ $id = null;
323
+ $identifier = null;
324
+ $object_storage_type = 'collection';
325
 
326
  if ( $object instanceof Whatsit ) {
327
+ $id = $object->get_id();
328
+ $identifier = $object->get_identifier();
329
+ $object_storage_type = $object->get_object_storage_type();
330
  } elseif ( is_array( $object ) ) {
331
  if ( ! empty( $object['id'] ) ) {
332
  $id = $object['id'];
337
  }
338
 
339
  if ( ! empty( $object['object_storage_type'] ) ) {
340
+ $object_storage_type = $object['object_storage_type'];
341
  }
342
 
343
  $identifier = Whatsit::get_identifier_from_args( $object );
346
  return;
347
  }
348
 
349
+ $this->index( $identifier, [
350
+ 'id' => $id,
351
+ 'object_storage_type' => $object_storage_type,
352
+ ] );
 
 
 
 
 
 
353
 
354
  if ( $object instanceof Whatsit ) {
355
  $object = clone $object;
356
  }
357
 
358
  $this->objects[ $identifier ] = $object;
359
+
360
+ $this->refresh_salt();
361
  }
362
 
363
  /**
393
  $id = $identifier;
394
  }
395
 
 
 
 
 
 
 
 
 
 
396
  if ( isset( $this->objects[ $identifier ] ) ) {
397
  if ( isset( $defaults[ $identifier ] ) ) {
398
  return false;
400
 
401
  $object = $this->objects[ $identifier ];
402
 
403
+ $object_storage_type = 'collection';
404
 
405
  if ( is_array( $object ) ) {
406
  if ( ! empty( $object['object_storage_type'] ) ) {
407
+ $object_storage_type = $object['object_storage_type'];
408
  }
409
  } elseif ( $object instanceof Whatsit ) {
410
+ $object_storage_type = $object->get_object_storage_type();
411
  } else {
412
  return false;
413
  }
418
 
419
  unset( $this->objects[ $identifier ] );
420
 
421
+ $this->deindex( $identifier, [
422
+ 'id' => $id,
423
+ 'object_storage_type' => $object_storage_type,
424
+ ] );
425
 
426
+ $this->refresh_salt();
 
 
 
427
 
428
  return true;
429
  }//end if
477
  continue;
478
  }
479
 
480
+ if ( ! $object instanceof Whatsit ) {
481
+ $object = $this->get_object( $object );
482
+ }
483
+
484
  // Delete from storage.
485
  $storage_type = $object->get_object_storage_type();
486
 
541
  /**
542
  * Get objects from collection.
543
  *
544
+ * @param array|null $storage_types The storage types to retrieve.
545
+ *
546
  * @return Whatsit[] List of objects.
547
  */
548
+ public function get_objects( array $args = [] ) {
549
+ $objects = null;
550
+
551
+ if ( isset( $args['ids'] ) ) {
552
+ // Filter objects by IDs (for faster lookups).
553
+ $args['ids'] = (array) $args['ids'];
554
+ $args['ids'] = array_map( 'absint', $args['ids'] );
555
+ $args['ids'] = array_filter( $args['ids'] );
556
+
557
+ $objects = [];
558
+
559
+ foreach ( $args['ids'] as $id ) {
560
+ if ( isset( $this->object_ids[ $id ] ) ) {
561
+ $identifier = $this->object_ids[ $id ];
562
+
563
+ $objects[ $identifier ] = $this->objects[ $identifier ];
564
+ }
565
+ }
566
+ } elseif ( isset( $args['identifiers'] ) ) {
567
+ // Filter objects by identifiers (for faster lookups).
568
+ $args['identifiers'] = (array) $args['identifiers'];
569
+
570
+ $objects = [];
571
+
572
+ foreach ( $args['identifiers'] as $identifier ) {
573
+ if ( isset( $this->objects[ $identifier ] ) ) {
574
+ $objects[ $identifier ] = $this->objects[ $identifier ];
575
+ }
576
+ }
577
+ }
578
+
579
+ // Filter objects by object storage type.
580
+ if ( isset( $args['object_storage_types'] ) ) {
581
+ $args['object_storage_types'] = (array) $args['object_storage_types'];
582
+
583
+ // If no objects were filtered by ID, build by the index we have.
584
+ if ( null === $objects ) {
585
+ $objects = [];
586
+
587
+ foreach ( $args['object_storage_types'] as $object_storage_type ) {
588
+ if ( ! isset( $this->objects_in_storage[ $object_storage_type ] ) ) {
589
+ continue;
590
+ }
591
+
592
+ foreach ( $this->objects_in_storage[ $object_storage_type ] as $identifier ) {
593
+ if ( ! isset( $this->objects[ $identifier ] ) ) {
594
+ continue;
595
+ }
596
+
597
+ $objects[ $identifier ] = $this->objects[ $identifier ];
598
+ }
599
+ }
600
+ } else {
601
+ // Filter the $objects by object storage type if we have them.
602
+
603
+ // Maybe use isset() instead of in_array() for the comparisons.
604
+ if ( isset( $args['object_storage_types'][0] ) ) {
605
+ $args['object_storage_types'] = array_flip( $args['object_storage_types'] );
606
+ }
607
+
608
+ $objects = array_filter( $objects, static function( $object ) use ( $args ) {
609
+ $current_object_storage_type = null;
610
+
611
+ if ( $object instanceof Whatsit ) {
612
+ $current_object_storage_type = $object->get_object_storage_type();
613
+ } elseif ( is_array( $object ) && isset( $object['object_storage_type'] ) ) {
614
+ $current_object_storage_type = $object['object_storage_type'];
615
+ }
616
+
617
+ return (
618
+ $current_object_storage_type
619
+ && isset( $args['object_storage_types'][ $current_object_storage_type ] )
620
+ );
621
+ } );
622
+ }
623
+ }
624
+
625
+ // If no objects were filtered by ID, we'll have to reference the current known objects and filter them out.
626
+ if ( null === $objects ) {
627
+ $objects = $this->objects;
628
+ }
629
+
630
+ // Filter objects by object type.
631
+ if ( isset( $args['object_types'] ) ) {
632
+ $args['object_types'] = (array) $args['object_types'];
633
+
634
+ // Maybe use isset() instead of in_array() for the comparisons.
635
+ if ( isset( $args['object_types'][0] ) ) {
636
+ $args['object_types'] = array_flip( $args['object_types'] );
637
+ }
638
+
639
+ $objects = array_filter( $objects, static function( $object ) use ( $args ) {
640
+ $current_object_type = null;
641
+
642
+ if ( $object instanceof Whatsit ) {
643
+ $current_object_type = $object->get_object_type();
644
+ } elseif ( is_array( $object ) && isset( $object['object_type'] ) ) {
645
+ $current_object_type = $object['object_type'];
646
+ }
647
+
648
+ return (
649
+ $current_object_type
650
+ && isset( $args['object_types'][ $current_object_type ] )
651
+ );
652
+ } );
653
+ }
654
+
655
+ // Filter objects by name.
656
+ if ( isset( $args['names'] ) ) {
657
+ $args['names'] = (array) $args['names'];
658
+ $args['names'] = array_map( 'trim', $args['names'] );
659
+ $args['names'] = array_filter( $args['names'] );
660
+
661
+ // Maybe use isset() instead of in_array() for the comparisons.
662
+ if ( isset( $args['names'][0] ) ) {
663
+ $args['names'] = array_flip( $args['names'] );
664
+ }
665
+
666
+ $objects = array_filter( $objects, static function( $object ) use ( $args ) {
667
+ $current_name = null;
668
+
669
+ if ( $object instanceof Whatsit ) {
670
+ $current_name = $object->get_name();
671
+ } elseif ( is_array( $object ) && isset( $object['name'] ) ) {
672
+ $current_name = $object['name'];
673
+ }
674
+
675
+ return (
676
+ $current_name
677
+ && isset( $args['names'][ $current_name ] )
678
+ );
679
+ } );
680
+ }
681
+
682
+ // Filter objects by internal.
683
+ if ( isset( $args['internal'] ) ) {
684
+ $args['internal'] = (boolean) $args['internal'];
685
+
686
+ $objects = array_filter( $objects, static function( $object ) use ( $args ) {
687
+ $internal = false;
688
+
689
+ if ( $object instanceof Whatsit ) {
690
+ $internal = $object->get_arg( 'internal', false );
691
+ } elseif ( is_array( $object ) && isset( $object['internal'] ) ) {
692
+ $internal = $object['internal'];
693
+ }
694
+
695
+ return $args['internal'] === (boolean) $internal;
696
+ } );
697
+ }
698
+
699
+ // Build the objects.
700
+ $objects = array_map( [ $this, 'get_object' ], $objects );
701
+
702
+ return array_filter( $objects );
703
+ }
704
+
705
+ /**
706
+ * Get object from a specific object storage type.
707
+ *
708
+ * @param string $object_storage_type The object storage type.
709
+ * @param string|null|Whatsit|array $identifier Object identifier, ID, or the object/array itself.
710
+ *
711
+ * @return Whatsit|null Object or null if not found.
712
+ */
713
+ public function get_object_from_storage( $object_storage_type, $identifier ) {
714
+ $object = $this->get_object( $identifier );
715
 
716
+ if ( $object ) {
717
+ return $object;
718
+ }
719
+
720
+ $storage = $this->get_storage_object( $object_storage_type );
721
+
722
+ $args = [
723
+ 'limit' => 1,
724
+ ];
725
+
726
+ if ( is_int( $identifier ) || is_numeric( $identifier ) ) {
727
+ $args['id'] = $identifier;
728
+ } elseif ( is_string( $identifier ) ) {
729
+ $args['identifier'] = $identifier;
730
+ } elseif ( $identifier instanceof Whatsit ) {
731
+ $args['identifier'] = $identifier->get_identifier();
732
+ } else {
733
+ return null;
734
+ }
735
+
736
+ $objects = $storage->find( $args );
737
+
738
+ if ( empty( $objects ) ) {
739
+ return null;
740
+ }
741
+
742
+ return current( $objects );
743
  }
744
 
745
  /**
828
  return null;
829
  }
830
 
831
+ /**
832
+ * Get the current salt for the store.
833
+ *
834
+ * @since 2.9.10
835
+ *
836
+ * @return string
837
+ */
838
+ public function get_salt() {
839
+ return $this->salt;
840
+ }
841
+
842
+ /**
843
+ * Refresh the salt for the store to indicate a change.
844
+ *
845
+ * @since 2.9.10
846
+ */
847
+ public function refresh_salt() {
848
+ $this->salt = md5( microtime() );
849
+ }
850
+
851
+ /**
852
+ * Rebuild the index of objects.
853
+ *
854
+ * @since 2.9.10
855
+ */
856
+ public function rebuild_index() {
857
+ foreach ( $this->objects as $identifier => $object ) {
858
+ $args = [];
859
+
860
+ if ( $object instanceof Whatsit ) {
861
+ $args['id'] = $object->get_id();
862
+ $args['object_storage_type'] = $object->get_object_storage_type();
863
+ } elseif ( is_array( $object ) ) {
864
+ if ( isset( $object['id'] ) ) {
865
+ $args['id'] = $object['id'];
866
+ }
867
+
868
+ if ( isset( $object['object_storage_type'] ) ) {
869
+ $args['object_storage_type'] = $object['object_storage_type'];
870
+ }
871
+ } else {
872
+ continue;
873
+ }
874
+
875
+ $this->index( $identifier, $args );
876
+ }
877
+ }
878
+
879
+ /**
880
+ * Index an object identifier based on args.
881
+ *
882
+ * @since 2.9.10
883
+ *
884
+ * @param string $identifier The object identifier to index.
885
+ * @param array $args The list of indexable arguments.
886
+ */
887
+ public function index( $identifier, array $args ) {
888
+ $id = ! empty( $args['id'] ) ? $args['id'] : null;
889
+ $object_storage_type = ! empty( $args['object_storage_type'] ) ? $args['object_storage_type'] : null;
890
+
891
+ if ( empty( $identifier ) ) {
892
+ return;
893
+ }
894
+
895
+ if ( $id === $identifier ) {
896
+ $id = null;
897
+ }
898
+
899
+ // Build the storage index.
900
+ if ( null !== $object_storage_type ) {
901
+ if ( ! isset( $this->objects_in_storage[ $object_storage_type ] ) ) {
902
+ $this->objects_in_storage[ $object_storage_type ] = [];
903
+ }
904
+
905
+ $this->objects_in_storage[ $object_storage_type ][] = $identifier;
906
+ }
907
+
908
+ // Build the ID index.
909
+ if ( null !== $id ) {
910
+ $this->object_ids[ $id ] = $identifier;
911
+ }
912
+ }
913
+
914
+ /**
915
+ * Deindex an object identifier based on args.
916
+ *
917
+ * @since 2.9.10
918
+ *
919
+ * @param string $identifier The object identifier to index.
920
+ * @param array $args The list of indexable arguments.
921
+ */
922
+ public function deindex( $identifier, array $args ) {
923
+ $id = ! empty( $args['id'] ) ? $args['id'] : null;
924
+ $object_storage_type = ! empty( $args['object_storage_type'] ) ? $args['object_storage_type'] : null;
925
+
926
+ if ( empty( $identifier ) ) {
927
+ return;
928
+ }
929
+
930
+ if ( $id === $identifier ) {
931
+ $id = null;
932
+ }
933
+
934
+ // Remove from the storage index.
935
+ if ( null !== $object_storage_type && isset( $this->objects_in_storage[ $object_storage_type ] ) ) {
936
+ $key = array_search( $identifier, $this->objects_in_storage[ $object_storage_type ], true );
937
+
938
+ if ( false !== $key ) {
939
+ unset( $this->objects_in_storage[ $object_storage_type ][ $key ] );
940
+ }
941
+ }
942
+
943
+ // Remove from the ID index.
944
+ if ( null !== $id ) {
945
+ if ( isset( $this->object_ids[ $id ] ) ) {
946
+ unset( $this->object_ids[ $id ] );
947
+ }
948
+ } else {
949
+ $key = array_search( $identifier, $this->object_ids, true );
950
+
951
+ if ( false !== $key ) {
952
+ unset( $this->object_ids[ $key ] );
953
+ }
954
+ }
955
+ }
956
+
957
  }
src/Pods/Wisdom_Tracker.php CHANGED
@@ -418,7 +418,7 @@ class Wisdom_Tracker {
418
  if ( isset( $track_time[ $this->plugin_name ] ) ) {
419
  unset( $track_time[ $this->plugin_name ] );
420
  }
421
- update_option( 'wisdom_last_track_time', $track_time );
422
  }
423
 
424
  /**
@@ -504,7 +504,7 @@ class Wisdom_Tracker {
504
  }
505
  }
506
 
507
- update_option( 'wisdom_allow_tracking', $allow_tracking );
508
  }
509
 
510
  /**
@@ -579,7 +579,7 @@ class Wisdom_Tracker {
579
  $track_times = get_option( 'wisdom_last_track_time', [] );
580
  // Set different times according to plugin, in case we are tracking multiple plugins
581
  $track_times[ $this->plugin_name ] = time();
582
- update_option( 'wisdom_last_track_time', $track_times );
583
  }
584
 
585
  /**
@@ -596,7 +596,7 @@ class Wisdom_Tracker {
596
  // We can delay the notification time
597
  $notification_time = time() + absint( $delay_notification );
598
  $notification_times[ $this->plugin_name ] = $notification_time;
599
- update_option( 'wisdom_notification_times', $notification_times );
600
  }
601
  }
602
 
@@ -638,7 +638,7 @@ class Wisdom_Tracker {
638
  // Else add the plugin name to the array
639
  $block_notice[ $plugin ] = $plugin;
640
  }
641
- update_option( 'wisdom_block_notice', $block_notice );
642
  }
643
 
644
  /**
@@ -686,7 +686,7 @@ class Wisdom_Tracker {
686
  unset( $collect_email[ $plugin ] );
687
  }
688
  }
689
- update_option( 'wisdom_collect_email', $collect_email );
690
  }
691
 
692
  /**
418
  if ( isset( $track_time[ $this->plugin_name ] ) ) {
419
  unset( $track_time[ $this->plugin_name ] );
420
  }
421
+ update_option( 'wisdom_last_track_time', $track_time, 'yes' );
422
  }
423
 
424
  /**
504
  }
505
  }
506
 
507
+ update_option( 'wisdom_allow_tracking', $allow_tracking, 'yes' );
508
  }
509
 
510
  /**
579
  $track_times = get_option( 'wisdom_last_track_time', [] );
580
  // Set different times according to plugin, in case we are tracking multiple plugins
581
  $track_times[ $this->plugin_name ] = time();
582
+ update_option( 'wisdom_last_track_time', $track_times, 'yes' );
583
  }
584
 
585
  /**
596
  // We can delay the notification time
597
  $notification_time = time() + absint( $delay_notification );
598
  $notification_times[ $this->plugin_name ] = $notification_time;
599
+ update_option( 'wisdom_notification_times', $notification_times, 'yes' );
600
  }
601
  }
602
 
638
  // Else add the plugin name to the array
639
  $block_notice[ $plugin ] = $plugin;
640
  }
641
+ update_option( 'wisdom_block_notice', $block_notice, 'yes' );
642
  }
643
 
644
  /**
686
  unset( $collect_email[ $plugin ] );
687
  }
688
  }
689
+ update_option( 'wisdom_collect_email', $collect_email, 'yes' );
690
  }
691
 
692
  /**
tribe-common/src/Tribe/Cache.php CHANGED
@@ -380,6 +380,7 @@ class Tribe__Cache implements ArrayAccess {
380
  *
381
  * @return boolean Whether the offset exists in the cache.
382
  */
 
383
  public function offsetExists( $offset ) {
384
  return isset( $this->non_persistent_keys[ $offset ] );
385
  }
@@ -395,6 +396,7 @@ class Tribe__Cache implements ArrayAccess {
395
  *
396
  * @return mixed Can return all value types.
397
  */
 
398
  public function offsetGet( $offset ) {
399
  return $this->get( $offset );
400
  }
@@ -411,6 +413,7 @@ class Tribe__Cache implements ArrayAccess {
411
  *
412
  * @return void
413
  */
 
414
  public function offsetSet( $offset, $value ) {
415
  $this->set( $offset, $value, self::NON_PERSISTENT );
416
  }
@@ -426,6 +429,7 @@ class Tribe__Cache implements ArrayAccess {
426
  *
427
  * @return void
428
  */
 
429
  public function offsetUnset( $offset ) {
430
  $this->delete( $offset );
431
  }
380
  *
381
  * @return boolean Whether the offset exists in the cache.
382
  */
383
+ #[\ReturnTypeWillChange]
384
  public function offsetExists( $offset ) {
385
  return isset( $this->non_persistent_keys[ $offset ] );
386
  }
396
  *
397
  * @return mixed Can return all value types.
398
  */
399
+ #[\ReturnTypeWillChange]
400
  public function offsetGet( $offset ) {
401
  return $this->get( $offset );
402
  }
413
  *
414
  * @return void
415
  */
416
+ #[\ReturnTypeWillChange]
417
  public function offsetSet( $offset, $value ) {
418
  $this->set( $offset, $value, self::NON_PERSISTENT );
419
  }
429
  *
430
  * @return void
431
  */
432
+ #[\ReturnTypeWillChange]
433
  public function offsetUnset( $offset ) {
434
  $this->delete( $offset );
435
  }
tribe-common/src/Tribe/Data.php CHANGED
@@ -67,6 +67,7 @@ class Tribe__Data implements ArrayAccess, Iterator {
67
  * The return value will be casted to boolean if non-boolean was returned.
68
  * @since 4.11.0
69
  */
 
70
  public function offsetExists( $offset ) {
71
  return isset( $this->data[ $offset ] );
72
  }
@@ -81,6 +82,7 @@ class Tribe__Data implements ArrayAccess, Iterator {
81
  * @return mixed Can return all value types.
82
  * @since 4.11.0
83
  */
 
84
  public function offsetGet( $offset ) {
85
  return isset( $this->data[ $offset ] )
86
  ? $this->data[ $offset ]
@@ -100,6 +102,7 @@ class Tribe__Data implements ArrayAccess, Iterator {
100
  * @return void
101
  * @since 4.11.0
102
  */
 
103
  public function offsetSet( $offset, $value ) {
104
  $this->data[ $offset ] = $value;
105
  }
@@ -114,6 +117,7 @@ class Tribe__Data implements ArrayAccess, Iterator {
114
  * @return void
115
  * @since 4.11.0
116
  */
 
117
  public function offsetUnset( $offset ) {
118
  unset( $this->data[ $offset ] );
119
  }
67
  * The return value will be casted to boolean if non-boolean was returned.
68
  * @since 4.11.0
69
  */
70
+ #[\ReturnTypeWillChange]
71
  public function offsetExists( $offset ) {
72
  return isset( $this->data[ $offset ] );
73
  }
82
  * @return mixed Can return all value types.
83
  * @since 4.11.0
84
  */
85
+ #[\ReturnTypeWillChange]
86
  public function offsetGet( $offset ) {
87
  return isset( $this->data[ $offset ] )
88
  ? $this->data[ $offset ]
102
  * @return void
103
  * @since 4.11.0
104
  */
105
+ #[\ReturnTypeWillChange]
106
  public function offsetSet( $offset, $value ) {
107
  $this->data[ $offset ] = $value;
108
  }
117
  * @return void
118
  * @since 4.11.0
119
  */
120
+ #[\ReturnTypeWillChange]
121
  public function offsetUnset( $offset ) {
122
  unset( $this->data[ $offset ] );
123
  }
tribe-common/src/Tribe/Utils/Collection_Trait.php CHANGED
@@ -67,6 +67,7 @@ trait Collection_Trait {
67
  /**
68
  * {@inheritDoc}
69
  */
 
70
  public function offsetExists( $offset ) {
71
  $items = $this->all();
72
 
@@ -76,6 +77,7 @@ trait Collection_Trait {
76
  /**
77
  * {@inheritDoc}
78
  */
 
79
  public function offsetGet( $offset ) {
80
  $items = $this->all();
81
 
@@ -87,6 +89,7 @@ trait Collection_Trait {
87
  /**
88
  * {@inheritDoc}
89
  */
 
90
  public function offsetSet( $offset, $value ) {
91
  $this->items = $this->all();
92
 
@@ -96,6 +99,7 @@ trait Collection_Trait {
96
  /**
97
  * {@inheritDoc}
98
  */
 
99
  public function offsetUnset( $offset ) {
100
  $this->items = $this->all();
101
 
@@ -105,6 +109,7 @@ trait Collection_Trait {
105
  /**
106
  * {@inheritDoc}
107
  */
 
108
  public function next() {
109
  $this->items_index ++;
110
  }
@@ -112,6 +117,7 @@ trait Collection_Trait {
112
  /**
113
  * {@inheritDoc}
114
  */
 
115
  public function valid() {
116
  $items = $this->all();
117
 
@@ -121,6 +127,7 @@ trait Collection_Trait {
121
  /**
122
  * {@inheritDoc}
123
  */
 
124
  public function key() {
125
  return $this->items_index;
126
  }
@@ -128,6 +135,7 @@ trait Collection_Trait {
128
  /**
129
  * {@inheritDoc}
130
  */
 
131
  public function current() {
132
  $items = array_values( $this->all() );
133
 
@@ -137,6 +145,7 @@ trait Collection_Trait {
137
  /**
138
  * {@inheritDoc}
139
  */
 
140
  public function rewind() {
141
  $this->items_index = 0;
142
  }
@@ -144,6 +153,7 @@ trait Collection_Trait {
144
  /**
145
  * {@inheritDoc}
146
  */
 
147
  public function count() {
148
  return count( $this->all() );
149
  }
67
  /**
68
  * {@inheritDoc}
69
  */
70
+ #[\ReturnTypeWillChange]
71
  public function offsetExists( $offset ) {
72
  $items = $this->all();
73
 
77
  /**
78
  * {@inheritDoc}
79
  */
80
+ #[\ReturnTypeWillChange]
81
  public function offsetGet( $offset ) {
82
  $items = $this->all();
83
 
89
  /**
90
  * {@inheritDoc}
91
  */
92
+ #[\ReturnTypeWillChange]
93
  public function offsetSet( $offset, $value ) {
94
  $this->items = $this->all();
95
 
99
  /**
100
  * {@inheritDoc}
101
  */
102
+ #[\ReturnTypeWillChange]
103
  public function offsetUnset( $offset ) {
104
  $this->items = $this->all();
105
 
109
  /**
110
  * {@inheritDoc}
111
  */
112
+ #[\ReturnTypeWillChange]
113
  public function next() {
114
  $this->items_index ++;
115
  }
117
  /**
118
  * {@inheritDoc}
119
  */
120
+ #[\ReturnTypeWillChange]
121
  public function valid() {
122
  $items = $this->all();
123
 
127
  /**
128
  * {@inheritDoc}
129
  */
130
+ #[\ReturnTypeWillChange]
131
  public function key() {
132
  return $this->items_index;
133
  }
135
  /**
136
  * {@inheritDoc}
137
  */
138
+ #[\ReturnTypeWillChange]
139
  public function current() {
140
  $items = array_values( $this->all() );
141
 
145
  /**
146
  * {@inheritDoc}
147
  */
148
+ #[\ReturnTypeWillChange]
149
  public function rewind() {
150
  $this->items_index = 0;
151
  }
153
  /**
154
  * {@inheritDoc}
155
  */
156
+ #[\ReturnTypeWillChange]
157
  public function count() {
158
  return count( $this->all() );
159
  }
tribe-common/src/Tribe/Utils/Post_Thumbnail.php CHANGED
@@ -230,6 +230,7 @@ class Post_Thumbnail implements \ArrayAccess, \Serializable {
230
  /**
231
  * {@inheritDoc}
232
  */
 
233
  public function offsetExists( $offset ) {
234
  $this->data = $this->fetch_data();
235
 
@@ -239,6 +240,7 @@ class Post_Thumbnail implements \ArrayAccess, \Serializable {
239
  /**
240
  * {@inheritDoc}
241
  */
 
242
  public function offsetGet( $offset ) {
243
  $this->data = $this->fetch_data();
244
 
@@ -250,6 +252,7 @@ class Post_Thumbnail implements \ArrayAccess, \Serializable {
250
  /**
251
  * {@inheritDoc}
252
  */
 
253
  public function offsetSet( $offset, $value ) {
254
  $this->data = $this->fetch_data();
255
 
@@ -259,6 +262,7 @@ class Post_Thumbnail implements \ArrayAccess, \Serializable {
259
  /**
260
  * {@inheritDoc}
261
  */
 
262
  public function offsetUnset( $offset ) {
263
  $this->data = $this->fetch_data();
264
 
230
  /**
231
  * {@inheritDoc}
232
  */
233
+ #[\ReturnTypeWillChange]
234
  public function offsetExists( $offset ) {
235
  $this->data = $this->fetch_data();
236
 
240
  /**
241
  * {@inheritDoc}
242
  */
243
+ #[\ReturnTypeWillChange]
244
  public function offsetGet( $offset ) {
245
  $this->data = $this->fetch_data();
246
 
252
  /**
253
  * {@inheritDoc}
254
  */
255
+ #[\ReturnTypeWillChange]
256
  public function offsetSet( $offset, $value ) {
257
  $this->data = $this->fetch_data();
258
 
262
  /**
263
  * {@inheritDoc}
264
  */
265
+ #[\ReturnTypeWillChange]
266
  public function offsetUnset( $offset ) {
267
  $this->data = $this->fetch_data();
268
 
tribe-common/vendor/lucatume/di52/src/tad/DI52/Container.php CHANGED
@@ -160,6 +160,7 @@ class tad_DI52_Container implements ArrayAccess {
160
  * @return void
161
  * @since 5.0.0
162
  */
 
163
  public function offsetSet($offset, $value) {
164
  if ($value instanceof tad_DI52_ProtectedValue) {
165
  $this->protected[$offset] = true;
@@ -215,6 +216,7 @@ class tad_DI52_Container implements ArrayAccess {
215
  *
216
  * @return mixed
217
  */
 
218
  public function offsetGet($offset) {
219
  if (is_object($offset)) {
220
  return is_callable($offset) ? call_user_func($offset, $this) : $offset;
@@ -546,6 +548,7 @@ class tad_DI52_Container implements ArrayAccess {
546
  * The return value will be casted to boolean if non-boolean was returned.
547
  * @since 5.0.0
548
  */
 
549
  public function offsetExists($offset) {
550
  return isset($this->bindings[$offset]);
551
  }
@@ -600,6 +603,7 @@ class tad_DI52_Container implements ArrayAccess {
600
  * @return void
601
  * @since 5.0.0
602
  */
 
603
  public function offsetUnset($offset) {
604
  unset(
605
  $this->strings[$offset],
160
  * @return void
161
  * @since 5.0.0
162
  */
163
+ #[\ReturnTypeWillChange]
164
  public function offsetSet($offset, $value) {
165
  if ($value instanceof tad_DI52_ProtectedValue) {
166
  $this->protected[$offset] = true;
216
  *
217
  * @return mixed
218
  */
219
+ #[\ReturnTypeWillChange]
220
  public function offsetGet($offset) {
221
  if (is_object($offset)) {
222
  return is_callable($offset) ? call_user_func($offset, $this) : $offset;
548
  * The return value will be casted to boolean if non-boolean was returned.
549
  * @since 5.0.0
550
  */
551
+ #[\ReturnTypeWillChange]
552
  public function offsetExists($offset) {
553
  return isset($this->bindings[$offset]);
554
  }
603
  * @return void
604
  * @since 5.0.0
605
  */
606
+ #[\ReturnTypeWillChange]
607
  public function offsetUnset($offset) {
608
  unset(
609
  $this->strings[$offset],
ui/admin/callouts/friends_2022_30.php CHANGED
@@ -5,7 +5,7 @@
5
 
6
  $callout = 'friends_2022_30';
7
 
8
- $donor_count = 3691;
9
  $donor_goal = 6500;
10
  $progress_width = ( $donor_count / $donor_goal ) * 100;
11
 
5
 
6
  $callout = 'friends_2022_30';
7
 
8
+ $donor_count = 4816;
9
  $donor_goal = 6500;
10
  $progress_width = ( $donor_count / $donor_goal ) * 100;
11
 
ui/admin/settings-reset.php CHANGED
@@ -1,4 +1,7 @@
1
  <?php
 
 
 
2
  /** @var $pods_init PodsInit */
3
  global $pods_init, $wpdb;
4
 
@@ -16,7 +19,7 @@ if ( isset( $_POST['_wpnonce'] ) && false !== wp_verify_nonce( $_POST['_wpnonce'
16
  pods_upgrade( '2.0.0' )->cleanup();
17
 
18
  pods_redirect( pods_query_arg( array( 'pods_cleanup_1x_success' => 1 ), array( 'page', 'tab' ) ) );
19
- } elseif ( isset( $_POST['pods_reset_pod'] ) ) {
20
  $pod_name = pods_v( 'pods_field_reset_pod', 'post' );
21
 
22
  if ( is_array( $pod_name ) ) {
@@ -26,16 +29,24 @@ if ( isset( $_POST['_wpnonce'] ) && false !== wp_verify_nonce( $_POST['_wpnonce'
26
  $pod_name = sanitize_text_field( $pod_name );
27
 
28
  if ( empty( $pod_name ) ) {
29
- pods_message( __( 'No Pod selected.', 'pods' ), 'error' );
30
  } else {
31
  $pod = $pods_api->load_pod( [ 'name' => $pod_name ], false );
32
 
33
  if ( empty( $pod ) ) {
34
  pods_message( __( 'Pod not found.', 'pods' ), 'error' );
35
  } else {
36
- $pods_api->reset_pod( [], $pod );
 
 
 
 
 
 
37
 
38
- pods_redirect( pods_query_arg( [ 'pods_reset_pod_success' => 1 ], [ 'page', 'tab' ] ) );
 
 
39
  }
40
  }
41
  } elseif ( isset( $_POST['pods_reset'] ) ) {
@@ -50,8 +61,6 @@ if ( isset( $_POST['_wpnonce'] ) && false !== wp_verify_nonce( $_POST['_wpnonce'
50
 
51
  pods_redirect( 'index.php' );
52
  }
53
- } elseif ( 1 === (int) pods_v( 'pods_reset_pod_success' ) ) {
54
- pods_message( 'Pod content has been deleted.' );
55
  } elseif ( 1 === (int) pods_v( 'pods_reset_success' ) ) {
56
  pods_message( 'Pods settings and data have been reset.' );
57
  } elseif ( 1 === (int) pods_v( 'pods_cleanup_1x_success' ) ) {
@@ -100,22 +109,12 @@ foreach ( $all_pods as $pod ) {
100
  continue;
101
  }
102
 
103
- $redirect_url = pods_query_arg(
104
- [
105
- 'page' => 'pods',
106
- 'action' => 'edit',
107
- 'name' => $pod->get_name(),
108
- 'pods_debug_find_orphan_fields' => 1,
109
- ],
110
- null,
111
- null,
112
- admin_url( 'admin.php' )
113
- );
114
 
115
- $reset_pods[ $redirect_url ] = sprintf(
116
  '%1$s (%2$s)',
117
  $pod->get_label(),
118
- $pod->get_name()
119
  );
120
  }
121
 
@@ -148,8 +147,15 @@ asort( $reset_pods );
148
  </table>
149
 
150
  <p class="submit">
151
- <?php $confirm = __( "Are you sure you want to do this?\n\nThis is a good time to make sure you have a backup.\n\nWe will delete ALL of the content for the Pod you selected.", 'pods' ); ?>
152
- <input type="submit" class="button button-primary" name="pods_reset_pod" value=" <?php esc_attr_e( 'Reset Pod', 'pods' ); ?> " onclick="return confirm( '<?php echo esc_js( $confirm ); ?>' );" />
 
 
 
 
 
 
 
153
  </p>
154
  <?php else : ?>
155
  <p><em><?php esc_html_e( 'No Pods available to reset.', 'pods' ); ?></em></p>
1
  <?php
2
+
3
+ use Pods\Tools\Reset;
4
+
5
  /** @var $pods_init PodsInit */
6
  global $pods_init, $wpdb;
7
 
19
  pods_upgrade( '2.0.0' )->cleanup();
20
 
21
  pods_redirect( pods_query_arg( array( 'pods_cleanup_1x_success' => 1 ), array( 'page', 'tab' ) ) );
22
+ } elseif ( isset( $_POST['pods_reset_pod'] ) || isset( $_POST['pods_reset_pod_preview'] ) ) {
23
  $pod_name = pods_v( 'pods_field_reset_pod', 'post' );
24
 
25
  if ( is_array( $pod_name ) ) {
29
  $pod_name = sanitize_text_field( $pod_name );
30
 
31
  if ( empty( $pod_name ) ) {
32
+ pods_message( __( 'No Pod specified.', 'pods' ), 'error' );
33
  } else {
34
  $pod = $pods_api->load_pod( [ 'name' => $pod_name ], false );
35
 
36
  if ( empty( $pod ) ) {
37
  pods_message( __( 'Pod not found.', 'pods' ), 'error' );
38
  } else {
39
+ $tool = pods_container( Reset::class );
40
+
41
+ $mode = 'full';
42
+
43
+ if ( ! empty( $_POST['pods_reset_pod_preview'] ) ) {
44
+ $mode = 'preview';
45
+ }
46
 
47
+ $results = $tool->delete_all_content_for_pod( $pod, $mode );
48
+
49
+ pods_message( $results['message_html'] );
50
  }
51
  }
52
  } elseif ( isset( $_POST['pods_reset'] ) ) {
61
 
62
  pods_redirect( 'index.php' );
63
  }
 
 
64
  } elseif ( 1 === (int) pods_v( 'pods_reset_success' ) ) {
65
  pods_message( 'Pods settings and data have been reset.' );
66
  } elseif ( 1 === (int) pods_v( 'pods_cleanup_1x_success' ) ) {
109
  continue;
110
  }
111
 
112
+ $pod_name = $pod->get_name();
 
 
 
 
 
 
 
 
 
 
113
 
114
+ $reset_pods[ $pod_name ] = sprintf(
115
  '%1$s (%2$s)',
116
  $pod->get_label(),
117
+ $pod_name
118
  );
119
  }
120
 
147
  </table>
148
 
149
  <p class="submit">
150
+ <?php
151
+ $confirm = esc_html__( 'Are you sure you want to do this?', 'pods' )
152
+ . "\n\n" . esc_html__( 'This is a good time to make sure you have a backup.', 'pods' )
153
+ . "\n\n" . esc_html__( 'We will delete ALL of the content for the Pod you selected.', 'pods' );
154
+ ?>
155
+ <input type="submit" class="button button-primary" name="pods_reset_pod"
156
+ value=" <?php esc_attr_e( 'Delete Pod Content', 'pods' ); ?> " onclick="return confirm( '<?php echo esc_js( $confirm ); ?>' );" />
157
+ <input type="submit" class="button button-secondary" name="pods_reset_pod_preview"
158
+ value=" <?php esc_attr_e( 'Preview (no changes will be made)', 'pods' ); ?> " />
159
  </p>
160
  <?php else : ?>
161
  <p><em><?php esc_html_e( 'No Pods available to reset.', 'pods' ); ?></em></p>
ui/admin/settings-tools.php CHANGED
@@ -9,7 +9,7 @@ $pods_api = pods_api();
9
  $all_pods = $pods_api->load_pods();
10
 
11
  if ( isset( $_POST['_wpnonce'] ) && false !== wp_verify_nonce( $_POST['_wpnonce'], 'pods-settings' ) ) {
12
- if ( isset( $_POST['pods_repair_pod'] ) ) {
13
  $pod_name = pods_v( 'pods_field_repair_pod', 'post' );
14
 
15
  if ( is_array( $pod_name ) ) {
@@ -41,9 +41,15 @@ if ( isset( $_POST['_wpnonce'] ) && false !== wp_verify_nonce( $_POST['_wpnonce'
41
  if ( empty( $pod ) ) {
42
  pods_message( __( 'Pod not found.', 'pods' ) . ' (' . $pod_to_repair . ')', 'error' );
43
  } else {
44
- $repair = pods_container( Repair::class );
45
 
46
- $results = $repair->repair_groups_and_fields_for_pod( $pod, 'full' );
 
 
 
 
 
 
47
 
48
  pods_message( $results['message_html'] );
49
  }
@@ -127,6 +133,8 @@ $repair_pods['__all_pods'] = '-- ' . __( 'Run Repair for All Pods', 'pods' ) . '
127
  ?>
128
  <input type="submit" class="button button-primary" name="pods_repair_pod"
129
  value=" <?php esc_attr_e( 'Repair Pod, Groups, and Fields', 'pods' ); ?> " onclick="return confirm( '<?php echo esc_js( $confirm ); ?>' );" />
 
 
130
  </p>
131
  <?php else : ?>
132
  <p><em><?php esc_html_e( 'No Pods available to repair.', 'pods' ); ?></em></p>
9
  $all_pods = $pods_api->load_pods();
10
 
11
  if ( isset( $_POST['_wpnonce'] ) && false !== wp_verify_nonce( $_POST['_wpnonce'], 'pods-settings' ) ) {
12
+ if ( isset( $_POST['pods_repair_pod'] ) || isset( $_POST['pods_repair_pod_preview'] ) ) {
13
  $pod_name = pods_v( 'pods_field_repair_pod', 'post' );
14
 
15
  if ( is_array( $pod_name ) ) {
41
  if ( empty( $pod ) ) {
42
  pods_message( __( 'Pod not found.', 'pods' ) . ' (' . $pod_to_repair . ')', 'error' );
43
  } else {
44
+ $tool = pods_container( Repair::class );
45
 
46
+ $mode = 'full';
47
+
48
+ if ( ! empty( $_POST['pods_repair_pod_preview'] ) ) {
49
+ $mode = 'preview';
50
+ }
51
+
52
+ $results = $tool->repair_groups_and_fields_for_pod( $pod, $mode );
53
 
54
  pods_message( $results['message_html'] );
55
  }
133
  ?>
134
  <input type="submit" class="button button-primary" name="pods_repair_pod"
135
  value=" <?php esc_attr_e( 'Repair Pod, Groups, and Fields', 'pods' ); ?> " onclick="return confirm( '<?php echo esc_js( $confirm ); ?>' );" />
136
+ <input type="submit" class="button button-secondary" name="pods_repair_pod_preview"
137
+ value=" <?php esc_attr_e( 'Preview (no changes will be made)', 'pods' ); ?> " />
138
  </p>
139
  <?php else : ?>
140
  <p><em><?php esc_html_e( 'No Pods available to repair.', 'pods' ); ?></em></p>
ui/js/blocks/pods-blocks-api.min.asset.json CHANGED
@@ -1 +1 @@
1
- {"dependencies":["lodash","react","react-dom","wp-api-fetch","wp-autop","wp-block-editor","wp-blocks","wp-components","wp-compose","wp-date","wp-element","wp-i18n","wp-keycodes","wp-server-side-render","wp-url"],"version":"59a265b1db97bc54e3d7"}
1
+ {"dependencies":["lodash","react","react-dom","wp-api-fetch","wp-autop","wp-block-editor","wp-blocks","wp-components","wp-compose","wp-date","wp-element","wp-i18n","wp-keycodes","wp-server-side-render","wp-url"],"version":"a6df9a17015567f15d2f"}
ui/js/blocks/pods-blocks-api.min.js CHANGED
@@ -1 +1 @@
1
- (()=>{var e={4184:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)){if(r.length){var s=i.apply(null,r);s&&e.push(s)}}else if("object"===o)if(r.toString===Object.prototype.toString)for(var a in r)n.call(r,a)&&r[a]&&e.push(a);else e.push(r.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},9996:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function i(e,t,r){return e.concat(t).map((function(e){return n(e,r)}))}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function s(e,t){try{return t in e}catch(e){return!1}}function a(e,t,r){var i={};return r.isMergeableObject(e)&&o(e).forEach((function(t){i[t]=n(e[t],r)})),o(t).forEach((function(o){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(s(e,o)&&r.isMergeableObject(t[o])?i[o]=function(e,t){if(!t.customMerge)return l;var r=t.customMerge(e);return"function"==typeof r?r:l}(o,r)(e[o],t[o],r):i[o]=n(t[o],r))})),i}function l(e,r,o){(o=o||{}).arrayMerge=o.arrayMerge||i,o.isMergeableObject=o.isMergeableObject||t,o.cloneUnlessOtherwiseSpecified=n;var s=Array.isArray(r);return s===Array.isArray(e)?s?o.arrayMerge(e,r,o):a(e,r,o):n(r,o)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return l(e,r,t)}),{})};var c=l;e.exports=c},9960:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(r=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===r.Tag||e.type===r.Script||e.type===r.Style},t.Root=r.Root,t.Text=r.Text,t.Directive=r.Directive,t.Comment=r.Comment,t.Script=r.Script,t.Style=r.Style,t.Tag=r.Tag,t.CDATA=r.CDATA,t.Doctype=r.Doctype},3150:e=>{"use strict";e.exports=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},8679:(e,t,r)=>{"use strict";var n=r(1296),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return n.isMemo(e)?s:a[e.$$typeof]||i}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=s;var c=Object.defineProperty,u=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var i=f(r);i&&i!==h&&e(t,i,n)}var s=u(r);p&&(s=s.concat(p(r)));for(var a=l(t),m=l(r),g=0;g<s.length;++g){var b=s[g];if(!(o[b]||n&&n[b]||m&&m[b]||a&&a[b])){var v=d(r,b);try{c(t,b,v)}catch(e){}}}}return t}},6103:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,y=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case p:case o:case a:case s:case f:return e;default:switch(e=e&&e.$$typeof){case c:case d:case g:case m:case l:return e;default:return t}}case i:return t}}}function O(e){return x(e)===p}t.AsyncMode=u,t.ConcurrentMode=p,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=d,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=a,t.StrictMode=s,t.Suspense=f,t.isAsyncMode=function(e){return O(e)||x(e)===u},t.isConcurrentMode=O,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===a},t.isStrictMode=function(e){return x(e)===s},t.isSuspense=function(e){return x(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===p||e===a||e===s||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===v||e.$$typeof===y||e.$$typeof===w||e.$$typeof===b)},t.typeOf=x},1296:(e,t,r)=>{"use strict";e.exports=r(6103)},885:e=>{e.exports={CASE_SENSITIVE_TAG_NAMES:["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussainBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]}},8276:(e,t,r)=>{var n="html",i="head",o="body",s=/<([a-zA-Z]+[0-9]?)/,a=/<head.*>/i,l=/<body.*>/i,c=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},u=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};if("function"==typeof window.DOMParser){var p=new window.DOMParser;c=u=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),p.parseFromString(e,"text/html")}}if(document.implementation){var d=r(1507).isIE,f=document.implementation.createHTMLDocument(d()?"html-dom-parser":void 0);c=function(e,t){return t?(f.documentElement.getElementsByTagName(t)[0].innerHTML=e,f):(f.documentElement.innerHTML=e,f)}}var h,m=document.createElement("template");m.content&&(h=function(e){return m.innerHTML=e,m.content.childNodes}),e.exports=function(e){var t,r,p,d,f=e.match(s);switch(f&&f[1]&&(t=f[1].toLowerCase()),t){case n:return r=u(e),a.test(e)||(p=r.getElementsByTagName(i)[0])&&p.parentNode.removeChild(p),l.test(e)||(p=r.getElementsByTagName(o)[0])&&p.parentNode.removeChild(p),r.getElementsByTagName(n);case i:case o:return d=c(e).getElementsByTagName(t),l.test(e)&&a.test(e)?d[0].parentNode.childNodes:d;default:return h?h(e):c(e,o).getElementsByTagName(o)[0].childNodes}}},4152:(e,t,r)=>{var n=r(8276),i=r(1507).formatDOM,o=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,r=e.match(o);return r&&r[1]&&(t=r[1]),i(n(e),null,t)}},1507:(e,t,r)=>{for(var n,i=r(885),o=r(1642),s=i.CASE_SENSITIVE_TAG_NAMES,a=o.Comment,l=o.Element,c=o.ProcessingInstruction,u=o.Text,p={},d=0,f=s.length;d<f;d++)n=s[d],p[n.toLowerCase()]=n;function h(e){for(var t,r={},n=0,i=e.length;n<i;n++)r[(t=e[n]).name]=t.value;return r}function m(e){var t=function(e){return p[e]}(e=e.toLowerCase());return t||e}e.exports={formatAttributes:h,formatDOM:function e(t,r,n){r=r||null;for(var i=[],o=0,s=t.length;o<s;o++){var p,d=t[o];switch(d.nodeType){case 1:(p=new l(m(d.nodeName),h(d.attributes))).children=e(d.childNodes,p);break;case 3:p=new u(d.nodeValue);break;case 8:p=new a(d.nodeValue);break;default:continue}var f=i[o-1]||null;f&&(f.next=p),p.parent=r,p.prev=f,p.next=null,i.push(p)}return n&&((p=new c(n.substring(0,n.indexOf(" ")).toLowerCase(),n)).next=i[0]||null,p.parent=r,i.unshift(p),i[1]&&(i[1].prev=i[0])),i},isIE:function(){return/(MSIE |Trident\/|Edge\/)/.test(navigator.userAgent)}}},1642:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var s=r(9960),a=new Map([[s.ElementType.Tag,1],[s.ElementType.Script,1],[s.ElementType.Style,1],[s.ElementType.Directive,1],[s.ElementType.Text,3],[s.ElementType.CDATA,4],[s.ElementType.Comment,8],[s.ElementType.Root,9]]),l=function(){function e(e){this.type=e,this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"nodeType",{get:function(){var e;return null!==(e=a.get(this.type))&&void 0!==e?e:1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),O(this,e)},e}();t.Node=l;var c=function(e){function t(t,r){var n=e.call(this,t)||this;return n.data=r,n}return i(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(l);t.DataNode=c;var u=function(e){function t(t){return e.call(this,s.ElementType.Text,t)||this}return i(t,e),t}(c);t.Text=u;var p=function(e){function t(t){return e.call(this,s.ElementType.Comment,t)||this}return i(t,e),t}(c);t.Comment=p;var d=function(e){function t(t,r){var n=e.call(this,s.ElementType.Directive,r)||this;return n.name=t,n}return i(t,e),t}(c);t.ProcessingInstruction=d;var f=function(e){function t(t,r){var n=e.call(this,t)||this;return n.children=r,n}return i(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(l);t.NodeWithChildren=f;var h=function(e){function t(t){return e.call(this,s.ElementType.Root,t)||this}return i(t,e),t}(f);t.Document=h;var m=function(e){function t(t,r,n,i){void 0===n&&(n=[]),void 0===i&&(i="script"===t?s.ElementType.Script:"style"===t?s.ElementType.Style:s.ElementType.Tag);var o=e.call(this,i,n)||this;return o.name=t,o.attribs=r,o}return i(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var r,n;return{name:t,value:e.attribs[t],namespace:null===(r=e["x-attribsNamespace"])||void 0===r?void 0:r[t],prefix:null===(n=e["x-attribsPrefix"])||void 0===n?void 0:n[t]}}))},enumerable:!1,configurable:!0}),t}(f);function g(e){return(0,s.isTag)(e)}function b(e){return e.type===s.ElementType.CDATA}function v(e){return e.type===s.ElementType.Text}function y(e){return e.type===s.ElementType.Comment}function w(e){return e.type===s.ElementType.Directive}function x(e){return e.type===s.ElementType.Root}function O(e,t){var r;if(void 0===t&&(t=!1),v(e))r=new u(e.data);else if(y(e))r=new p(e.data);else if(g(e)){var n=t?C(e.children):[],i=new m(e.name,o({},e.attribs),n);n.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),r=i}else if(b(e)){n=t?C(e.children):[];var a=new f(s.ElementType.CDATA,n);n.forEach((function(e){return e.parent=a})),r=a}else if(x(e)){n=t?C(e.children):[];var l=new h(n);n.forEach((function(e){return e.parent=l})),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),r=l}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new d(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),r=c}return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function C(e){for(var t=e.map((function(e){return O(e,!0)})),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}t.Element=m,t.isTag=g,t.isCDATA=b,t.isText=v,t.isComment=y,t.isDirective=w,t.isDocument=x,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=O},488:(e,t,r)=>{var n=r(3670),i=r(484),o=r(4152);o="function"==typeof o.default?o.default:o;var s={lowerCaseAttributeNames:!1};function a(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:n(o(e,(t=t||{}).htmlparser2||s),t)}a.domToReact=n,a.htmlToDOM=o,a.attributesToProps=i,a.Element=r(7384).Element,e.exports=a,e.exports.default=a},484:(e,t,r)=>{var n=r(83),i=r(4606);function o(e){return n.possibleStandardNames[e]}e.exports=function(e){var t,r,s,a,l,c={},u=(e=e||{}).type&&{reset:!0,submit:!0}[e.type];for(t in e)if(s=e[t],n.isCustomAttribute(t))c[t]=s;else if(a=o(r=t.toLowerCase()))switch(l=n.getPropertyInfo(a),"checked"!==a&&"value"!==a||u||(a=o("default"+r)),c[a]=s,l&&l.type){case n.BOOLEAN:c[a]=!0;break;case n.OVERLOADED_BOOLEAN:""===s&&(c[a]=!0)}else i.PRESERVE_CUSTOM_ATTRIBUTES&&(c[t]=s);return i.setStyleProp(e.style,c),c}},3670:(e,t,r)=>{var n=r(9196),i=r(484),o=r(4606),s=o.setStyleProp,a=o.canTextBeChildOfNode;function l(e){return o.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&o.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,r){for(var o,c,u,p,d,f=(r=r||{}).library||n,h=f.cloneElement,m=f.createElement,g=f.isValidElement,b=[],v="function"==typeof r.replace,y=r.trim,w=0,x=t.length;w<x;w++)if(o=t[w],v&&g(u=r.replace(o)))x>1&&(u=h(u,{key:u.key||w})),b.push(u);else if("text"!==o.type){switch(p=o.attribs,l(o)?s(p.style,p):p&&(p=i(p)),d=null,o.type){case"script":case"style":o.children[0]&&(p.dangerouslySetInnerHTML={__html:o.children[0].data});break;case"tag":"textarea"===o.name&&o.children[0]?p.defaultValue=o.children[0].data:o.children&&o.children.length&&(d=e(o.children,r));break;default:continue}x>1&&(p.key=w),b.push(m(o.name,p,d))}else{if((c=!o.data.trim().length)&&o.parent&&!a(o.parent))continue;if(y&&c)continue;b.push(o.data)}return 1===b.length?b[0]:b}},4606:(e,t,r)=>{var n=r(9196),i=r(1476).default;var o={reactCompat:!0};var s=n.version.split(".")[0]>=16,a=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:s,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var r,n,i="function"==typeof t,o={},s={};for(r in e)n=e[r],i&&(o=t(r,n))&&2===o.length?s[o[0]]=o[1]:"string"==typeof n&&(s[n]=r);return s},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=i(e,o)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!a.has(e.name)},elementsWithNoTextChildren:a}},7384:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var o=r(9960),s=r(5079);i(r(5079),t);var a=/\s+/g,l={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},c=function(){function e(e,t,r){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(r=t,t=l),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:l,this.elementCB=null!=r?r:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var r=this.options.xmlMode?o.ElementType.Tag:void 0,n=new s.Element(e,t,void 0,r);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(e){var t=this.options.normalizeWhitespace,r=this.lastNode;if(r&&r.type===o.ElementType.Text)t?r.data=(r.data+e).replace(a," "):r.data+=e,this.options.withEndIndices&&(r.endIndex=this.parser.endIndex);else{t&&(e=e.replace(a," "));var n=new s.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment)this.lastNode.data+=e;else{var t=new s.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new s.Text(""),t=new s.NodeWithChildren(o.ElementType.CDATA,[e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var r=new s.ProcessingInstruction(e,t);this.addNode(r)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],r=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),r&&(e.prev=r,r.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=c,t.default=c},5079:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var s=r(9960),a=new Map([[s.ElementType.Tag,1],[s.ElementType.Script,1],[s.ElementType.Style,1],[s.ElementType.Directive,1],[s.ElementType.Text,3],[s.ElementType.CDATA,4],[s.ElementType.Comment,8],[s.ElementType.Root,9]]),l=function(){function e(e){this.type=e,this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"nodeType",{get:function(){var e;return null!==(e=a.get(this.type))&&void 0!==e?e:1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),O(this,e)},e}();t.Node=l;var c=function(e){function t(t,r){var n=e.call(this,t)||this;return n.data=r,n}return i(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(l);t.DataNode=c;var u=function(e){function t(t){return e.call(this,s.ElementType.Text,t)||this}return i(t,e),t}(c);t.Text=u;var p=function(e){function t(t){return e.call(this,s.ElementType.Comment,t)||this}return i(t,e),t}(c);t.Comment=p;var d=function(e){function t(t,r){var n=e.call(this,s.ElementType.Directive,r)||this;return n.name=t,n}return i(t,e),t}(c);t.ProcessingInstruction=d;var f=function(e){function t(t,r){var n=e.call(this,t)||this;return n.children=r,n}return i(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(l);t.NodeWithChildren=f;var h=function(e){function t(t){return e.call(this,s.ElementType.Root,t)||this}return i(t,e),t}(f);t.Document=h;var m=function(e){function t(t,r,n,i){void 0===n&&(n=[]),void 0===i&&(i="script"===t?s.ElementType.Script:"style"===t?s.ElementType.Style:s.ElementType.Tag);var o=e.call(this,i,n)||this;return o.name=t,o.attribs=r,o}return i(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var r,n;return{name:t,value:e.attribs[t],namespace:null===(r=e["x-attribsNamespace"])||void 0===r?void 0:r[t],prefix:null===(n=e["x-attribsPrefix"])||void 0===n?void 0:n[t]}}))},enumerable:!1,configurable:!0}),t}(f);function g(e){return(0,s.isTag)(e)}function b(e){return e.type===s.ElementType.CDATA}function v(e){return e.type===s.ElementType.Text}function y(e){return e.type===s.ElementType.Comment}function w(e){return e.type===s.ElementType.Directive}function x(e){return e.type===s.ElementType.Root}function O(e,t){var r;if(void 0===t&&(t=!1),v(e))r=new u(e.data);else if(y(e))r=new p(e.data);else if(g(e)){var n=t?C(e.children):[],i=new m(e.name,o({},e.attribs),n);n.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),r=i}else if(b(e)){n=t?C(e.children):[];var a=new f(s.ElementType.CDATA,n);n.forEach((function(e){return e.parent=a})),r=a}else if(x(e)){n=t?C(e.children):[];var l=new h(n);n.forEach((function(e){return e.parent=l})),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),r=l}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new d(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),r=c}return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function C(e){for(var t=e.map((function(e){return O(e,!0)})),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}t.Element=m,t.isTag=g,t.isCDATA=b,t.isText=v,t.isComment=y,t.isDirective=w,t.isDocument=x,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=O},8139:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var p=1,d=1;function f(e){var t=e.match(r);t&&(p+=t.length);var n=e.lastIndexOf("\n");d=~n?e.length-n:d+e.length}function h(){var e={line:p,column:d};return function(t){return t.position=new m(e),y(),t}}function m(e){this.start=e,this.end={line:p,column:d},this.source=l.source}m.prototype.content=e;var g=[];function b(t){var r=new Error(l.source+":"+p+":"+d+": "+t);if(r.reason=t,r.filename=l.source,r.line=p,r.column=d,r.source=e,!l.silent)throw r;g.push(r)}function v(t){var r=t.exec(e);if(r){var n=r[0];return f(n),e=e.slice(n.length),r}}function y(){v(n)}function w(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var r=2;c!=e.charAt(r)&&("*"!=e.charAt(r)||"/"!=e.charAt(r+1));)++r;if(r+=2,c===e.charAt(r-1))return b("End of comment missing");var n=e.slice(2,r-2);return d+=2,f(n),e=e.slice(r),d+=2,t({type:"comment",comment:n})}}function O(){var e=h(),r=v(i);if(r){if(x(),!v(o))return b("property missing ':'");var n=v(s),l=e({type:"declaration",property:u(r[0].replace(t,c)),value:n?u(n[0].replace(t,c)):c});return v(a),l}}return y(),function(){var e,t=[];for(w(t);e=O();)!1!==e&&(t.push(e),w(t));return t}()}},9430:function(e,t){var r,n,i;n=[],void 0===(i="function"==typeof(r=function(){return function(e){function t(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function r(t){var r,n=t.exec(e.substring(m));if(n)return r=n[0],m+=r.length,r}for(var n,i,o,s,a,l=e.length,c=/^[ \t\n\r\u000c]+/,u=/^[, \t\n\r\u000c]+/,p=/^[^ \t\n\r\u000c]+/,d=/[,]+$/,f=/^\d+$/,h=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,m=0,g=[];;){if(r(u),m>=l)return g;n=r(p),i=[],","===n.slice(-1)?(n=n.replace(d,""),v()):b()}function b(){for(r(c),o="",s="in descriptor";;){if(a=e.charAt(m),"in descriptor"===s)if(t(a))o&&(i.push(o),o="",s="after descriptor");else{if(","===a)return m+=1,o&&i.push(o),void v();if("("===a)o+=a,s="in parens";else{if(""===a)return o&&i.push(o),void v();o+=a}}else if("in parens"===s)if(")"===a)o+=a,s="in descriptor";else{if(""===a)return i.push(o),void v();o+=a}else if("after descriptor"===s)if(t(a));else{if(""===a)return void v();s="in descriptor",m-=1}m+=1}}function v(){var t,r,o,s,a,l,c,u,p,d=!1,m={};for(s=0;s<i.length;s++)l=(a=i[s])[a.length-1],c=a.substring(0,a.length-1),u=parseInt(c,10),p=parseFloat(c),f.test(c)&&"w"===l?((t||r)&&(d=!0),0===u?d=!0:t=u):h.test(c)&&"x"===l?((t||r||o)&&(d=!0),p<0?d=!0:r=p):f.test(c)&&"h"===l?((o||r)&&(d=!0),0===u?d=!0:o=u):d=!0;d?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+a+"'."):(m.url=n,t&&(m.w=t),r&&(m.d=r),o&&(m.h=o),g.push(m))}}})?r.apply(t,n):r)||(e.exports=i)},4241:e=>{var t=String,r=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t}};e.exports=r(),e.exports.createColors=r},1353:(e,t,r)=>{"use strict";let n=r(1019);class i extends n{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}e.exports=i,i.default=i,n.registerAtRule(i)},9932:(e,t,r)=>{"use strict";let n=r(5631);class i extends n{constructor(e){super(e),this.type="comment"}}e.exports=i,i.default=i},1019:(e,t,r)=>{"use strict";let n,i,o,s,{isClean:a,my:l}=r(5513),c=r(4258),u=r(9932),p=r(5631);function d(e){return e.map((e=>(e.nodes&&(e.nodes=d(e.nodes)),delete e.source,e)))}function f(e){if(e[a]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)f(t)}class h extends p{push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}each(e){if(!this.proxyOf.nodes)return;let t,r,n=this.getIterator();for(;this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1!==r);)this.indexes[n]+=1;return delete this.indexes[n],r}walk(e){return this.each(((t,r)=>{let n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((r,n)=>{if("decl"===r.type&&e.test(r.prop))return t(r,n)})):this.walk(((r,n)=>{if("decl"===r.type&&r.prop===e)return t(r,n)})):(t=e,this.walk(((e,r)=>{if("decl"===e.type)return t(e,r)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((r,n)=>{if("rule"===r.type&&e.test(r.selector))return t(r,n)})):this.walk(((r,n)=>{if("rule"===r.type&&r.selector===e)return t(r,n)})):(t=e,this.walk(((e,r)=>{if("rule"===e.type)return t(e,r)})))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((r,n)=>{if("atrule"===r.type&&e.test(r.name))return t(r,n)})):this.walk(((r,n)=>{if("atrule"===r.type&&r.name===e)return t(r,n)})):(t=e,this.walk(((e,r)=>{if("atrule"===e.type)return t(e,r)})))}walkComments(e){return this.walk(((t,r)=>{if("comment"===t.type)return e(t,r)}))}append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}insertBefore(e,t){let r,n=0===(e=this.index(e))&&"prepend",i=this.normalize(t,this.proxyOf.nodes[e],n).reverse();for(let t of i)this.proxyOf.nodes.splice(e,0,t);for(let t in this.indexes)r=this.indexes[t],e<=r&&(this.indexes[t]=r+i.length);return this.markDirty(),this}insertAfter(e,t){e=this.index(e);let r,n=this.normalize(t,this.proxyOf.nodes[e]).reverse();for(let t of n)this.proxyOf.nodes.splice(e+1,0,t);for(let t in this.indexes)r=this.indexes[t],e<r&&(this.indexes[t]=r+n.length);return this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls((n=>{t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))})),this.markDirty(),this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}normalize(e,t){if("string"==typeof e)e=d(n(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new c(e)]}else if(e.selector)e=[new i(e)];else if(e.name)e=[new o(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new u(e)]}return e.map((e=>(e[l]||h.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[a]&&f(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e)))}getProxyProcessor(){return{set:(e,t,r)=>(e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0),get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...r)=>e[t](...r.map((e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e))):"every"===t||"some"===t?r=>e[t](((e,...t)=>r(e.toProxy(),...t))):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map((e=>e.toProxy())):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}}h.registerParse=e=>{n=e},h.registerRule=e=>{i=e},h.registerAtRule=e=>{o=e},h.registerRoot=e=>{s=e},e.exports=h,h.default=h,h.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,o.prototype):"rule"===e.type?Object.setPrototypeOf(e,i.prototype):"decl"===e.type?Object.setPrototypeOf(e,c.prototype):"comment"===e.type?Object.setPrototypeOf(e,u.prototype):"root"===e.type&&Object.setPrototypeOf(e,s.prototype),e[l]=!0,e.nodes&&e.nodes.forEach((e=>{h.rebuild(e)}))}},2671:(e,t,r)=>{"use strict";let n=r(4241),i=r(2868);class o extends Error{constructor(e,t,r,n,i,s){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),n&&(this.source=n),s&&(this.plugin=s),void 0!==t&&void 0!==r&&("number"==typeof t?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,o)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=n.isColorSupported),i&&e&&(t=i(t));let r,o,s=t.split(/\r?\n/),a=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),c=String(l).length;if(e){let{bold:e,red:t,gray:i}=n.createColors(!0);r=r=>e(t(r)),o=e=>i(e)}else r=o=e=>e;return s.slice(a,l).map(((e,t)=>{let n=a+1+t,i=" "+(" "+n).slice(-c)+" | ";if(n===this.line){let t=o(i.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+o(i)+e+"\n "+t+r("^")}return" "+o(i)+e})).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}e.exports=o,o.default=o},4258:(e,t,r)=>{"use strict";let n=r(5631);class i extends n{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}e.exports=i,i.default=i},6461:(e,t,r)=>{"use strict";let n,i,o=r(1019);class s extends o{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new n(new i,this,e).stringify()}}s.registerLazyResult=e=>{n=e},s.registerProcessor=e=>{i=e},e.exports=s,s.default=s},250:(e,t,r)=>{"use strict";let n=r(4258),i=r(7981),o=r(9932),s=r(1353),a=r(5995),l=r(1025),c=r(1675);function u(e,t){if(Array.isArray(e))return e.map((e=>u(e)));let{inputs:r,...p}=e;if(r){t=[];for(let e of r){let r={...e,__proto__:a.prototype};r.map&&(r.map={...r.map,__proto__:i.prototype}),t.push(r)}}if(p.nodes&&(p.nodes=e.nodes.map((e=>u(e,t)))),p.source){let{inputId:e,...r}=p.source;p.source=r,null!=e&&(p.source.input=t[e])}if("root"===p.type)return new l(p);if("decl"===p.type)return new n(p);if("rule"===p.type)return new c(p);if("comment"===p.type)return new o(p);if("atrule"===p.type)return new s(p);throw new Error("Unknown node type: "+e.type)}e.exports=u,u.default=u},5995:(e,t,r)=>{"use strict";let{SourceMapConsumer:n,SourceMapGenerator:i}=r(209),{fileURLToPath:o,pathToFileURL:s}=r(7414),{resolve:a,isAbsolute:l}=r(9830),{nanoid:c}=r(2618),u=r(2868),p=r(2671),d=r(7981),f=Symbol("fromOffsetCache"),h=Boolean(n&&i),m=Boolean(a&&l);class g{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!m||/^\w+:\/\//.test(t.from)||l(t.from)?this.file=t.from:this.file=a(t.from)),m&&h){let e=new d(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+c(6)+">"),this.map&&(this.map.file=this.from)}fromOffset(e){let t,r;if(this[f])r=this[f];else{let e=this.css.split("\n");r=new Array(e.length);let t=0;for(let n=0,i=e.length;n<i;n++)r[n]=t,t+=e[n].length+1;this[f]=r}t=r[r.length-1];let n=0;if(e>=t)n=r.length-1;else{let t,i=r.length-2;for(;n<i;)if(t=n+(i-n>>1),e<r[t])i=t-1;else{if(!(e>=r[t+1])){n=t;break}n=t+1}}return{line:n+1,col:e-r[n]+1}}error(e,t,r,n={}){let i,o,a;if(t&&"object"==typeof t){let e=t,n=r;if("number"==typeof t.offset){let n=this.fromOffset(e.offset);t=n.line,r=n.col}else t=e.line,r=e.column;if("number"==typeof n.offset){let e=this.fromOffset(n.offset);o=e.line,a=e.col}else o=n.line,a=n.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let l=this.origin(t,r,o,a);return i=l?new p(e,void 0===l.endLine?l.line:{line:l.line,column:l.column},void 0===l.endLine?l.column:{line:l.endLine,column:l.endColumn},l.source,l.file,n.plugin):new p(e,void 0===o?t:{line:t,column:r},void 0===o?r:{line:o,column:a},this.css,this.file,n.plugin),i.input={line:t,column:r,endLine:o,endColumn:a,source:this.css},this.file&&(s&&(i.input.url=s(this.file).toString()),i.input.file=this.file),i}origin(e,t,r,n){if(!this.map)return!1;let i,a,c=this.map.consumer(),u=c.originalPositionFor({line:e,column:t});if(!u.source)return!1;"number"==typeof r&&(i=c.originalPositionFor({line:r,column:n})),a=l(u.source)?s(u.source):new URL(u.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let p={url:a.toString(),line:u.line,column:u.column,endLine:i&&i.line,endColumn:i&&i.column};if("file:"===a.protocol){if(!o)throw new Error("file: protocol is not available in this PostCSS build");p.file=o(a)}let d=c.sourceContentFor(u.source);return d&&(p.source=d),p}mapResolve(e){return/^\w+:\/\//.test(e)?e:a(this.map.consumer().sourceRoot||this.map.root||".",e)}get from(){return this.file||this.id}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}}e.exports=g,g.default=g,u&&u.registerInput&&u.registerInput(g)},1939:(e,t,r)=>{"use strict";let{isClean:n,my:i}=r(5513),o=r(8505),s=r(7088),a=r(1019),l=r(6461),c=(r(2448),r(3632)),u=r(6939),p=r(1025);const d={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},f={postcssPlugin:!0,prepare:!0,Once:!0,Document:!0,Root:!0,Declaration:!0,Rule:!0,AtRule:!0,Comment:!0,DeclarationExit:!0,RuleExit:!0,AtRuleExit:!0,CommentExit:!0,RootExit:!0,DocumentExit:!0,OnceExit:!0},h={postcssPlugin:!0,prepare:!0,Once:!0};function m(e){return"object"==typeof e&&"function"==typeof e.then}function g(e){let t=!1,r=d[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function b(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:g(e),{node:e,events:t,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function v(e){return e[n]=!1,e.nodes&&e.nodes.forEach((e=>v(e))),e}let y={};class w{constructor(e,t,r){let n;if(this.stringified=!1,this.processed=!1,"object"!=typeof t||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof w||t instanceof c)n=v(t.root),t.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let e=u;r.syntax&&(e=r.syntax.parse),r.parser&&(e=r.parser),e.parse&&(e=e.parse);try{n=e(t,r)}catch(e){this.processed=!0,this.error=e}n&&!n[i]&&a.rebuild(n)}else n=v(t);this.result=new c(e,n,r),this.helpers={...y,result:this.result,postcss:y},this.plugins=this.processor.plugins.map((e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e))}get[Symbol.toStringTag](){return"LazyResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.stringify().css}get content(){return this.stringify().content}get map(){return this.stringify().map}get root(){return this.sync().root}get messages(){return this.sync().messages}warnings(){return this.sync().warnings()}toString(){return this.css}then(e,t){return this.async().then(e,t)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){if(m(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[n];)e[n]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=s;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new o(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}walkSync(e){e[n]=!0;let t=g(e);for(let r of t)if(0===r)e.nodes&&e.each((e=>{e[n]||this.walkSync(e)}));else{let t=this.listeners[r];if(t&&this.visitSync(t,e.toProxy()))return}}visitSync(e,t){for(let[r,n]of e){let e;this.result.lastPlugin=r;try{e=n(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(m(e))throw this.getAsyncError()}}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map((t=>e.Once(t,this.helpers)));return m(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(m(r))try{await r}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[n];){e[n]=!0;let t=[b(e)];for(;t.length>0;){let e=this.visitTick(t);if(m(e))try{await e}catch(e){let r=t[t.length-1].node;throw this.handleError(e,r)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map((e=>r(e,this.helpers)));await Promise.all(t)}else await r(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(let t of this.plugins)if("object"==typeof t)for(let r in t){if(!f[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!h[r])if("object"==typeof t[r])for(let n in t[r])e(t,"*"===n?r:r+"-"+n.toLowerCase(),t[r][n]);else"function"==typeof t[r]&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(e){let t=e[e.length-1],{node:r,visitors:i}=t;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(i.length>0&&t.visitorIndex<i.length){let[e,n]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return n(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){let i,o=t.iterator;for(;i=r.nodes[r.indexes[o]];)if(r.indexes[o]+=1,!i[n])return i[n]=!0,void e.push(b(i));t.iterator=0,delete r.indexes[o]}let o=t.events;for(;t.eventIndex<o.length;){let e=o[t.eventIndex];if(t.eventIndex+=1,0===e)return void(r.nodes&&r.nodes.length&&(r[n]=!0,t.iterator=r.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}}w.registerPostcss=e=>{y=e},e.exports=w,w.default=w,p.registerLazyResult(w),l.registerLazyResult(w)},4715:e=>{"use strict";let t={split(e,t,r){let n=[],i="",o=!1,s=0,a=!1,l="",c=!1;for(let r of e)c?c=!1:"\\"===r?c=!0:a?r===l&&(a=!1):'"'===r||"'"===r?(a=!0,l=r):"("===r?s+=1:")"===r?s>0&&(s-=1):0===s&&t.includes(r)&&(o=!0),o?(""!==i&&n.push(i.trim()),i="",o=!1):i+=r;return(r||""!==i)&&n.push(i.trim()),n},space:e=>t.split(e,[" ","\n","\t"]),comma:e=>t.split(e,[","],!0)};e.exports=t,t.default=t},8505:(e,t,r)=>{"use strict";let{SourceMapConsumer:n,SourceMapGenerator:i}=r(209),{dirname:o,resolve:s,relative:a,sep:l}=r(9830),{pathToFileURL:c}=r(7414),u=r(5995),p=Boolean(n&&i),d=Boolean(o&&s&&a&&l);e.exports=class{constructor(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}}));else{let e=new u(this.css,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((e=>e.inline)))}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((e=>e.withContent()))}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}setSourcesContent(){let e={};if(this.root)this.root.walk((t=>{if(t.source){let r=t.source.input.from;r&&!e[r]&&(e[r]=!0,this.map.setSourceContent(this.toUrl(this.path(r)),t.source.input.css))}}));else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}applyPrevMaps(){for(let e of this.previous()){let t,r=this.toUrl(this.path(e.file)),i=e.root||o(e.file);!1===this.mapOpts.sourcesContent?(t=new n(e.text),t.sourcesContent&&(t.sourcesContent=t.sourcesContent.map((()=>null)))):t=e.consumer(),this.map.applySourceMap(t,r,this.toUrl(this.path(i)))}}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((e=>e.annotation)))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=i.fromSourceMap(e)}else this.map=new i({file:this.outputFile()}),this.map.addMapping({source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>",generated:{line:1,column:0},original:{line:1,column:0}});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}path(e){if(0===e.indexOf("<"))return e;if(/^\w+:\/\//.test(e))return e;if(this.mapOpts.absolute)return e;let t=this.opts.to?o(this.opts.to):".";return"string"==typeof this.mapOpts.annotation&&(t=o(s(t,this.mapOpts.annotation))),e=a(t,e)}toUrl(e){return"\\"===l&&(e=e.replace(/\\/g,"/")),encodeURI(e).replace(/[#?]/g,encodeURIComponent)}sourcePath(e){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);if(this.mapOpts.absolute){if(c)return c(e.source.input.from).toString();throw new Error("`map.absolute` option is not available in this PostCSS build")}return this.toUrl(this.path(e.source.input.from))}generateString(){this.css="",this.map=new i({file:this.outputFile()});let e,t,r=1,n=1,o="<no source>",s={source:"",generated:{line:0,column:0},original:{line:0,column:0}};this.stringify(this.root,((i,a,l)=>{if(this.css+=i,a&&"end"!==l&&(s.generated.line=r,s.generated.column=n-1,a.source&&a.source.start?(s.source=this.sourcePath(a),s.original.line=a.source.start.line,s.original.column=a.source.start.column-1,this.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,this.map.addMapping(s))),e=i.match(/\n/g),e?(r+=e.length,t=i.lastIndexOf("\n"),n=i.length-t):n+=i.length,a&&"start"!==l){let e=a.parent||{raws:{}};("decl"!==a.type||a!==e.last||e.raws.semicolon)&&(a.source&&a.source.end?(s.source=this.sourcePath(a),s.original.line=a.source.end.line,s.original.column=a.source.end.column-1,s.generated.line=r,s.generated.column=n-2,this.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=r,s.generated.column=n-1,this.map.addMapping(s)))}}))}generate(){if(this.clearAnnotation(),d&&p&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,(t=>{e+=t})),[e]}}}},7647:(e,t,r)=>{"use strict";let n=r(8505),i=r(7088),o=(r(2448),r(6939));const s=r(3632);class a{constructor(e,t,r){let o;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let a=i;this.result=new s(this._processor,o,this._opts),this.result.css=t;let l=this;Object.defineProperty(this.result,"root",{get:()=>l.root});let c=new n(a,o,this._opts,t);if(c.isMap()){let[e,t]=c.generate();e&&(this.result.css=e),t&&(this.result.map=t)}}get[Symbol.toStringTag](){return"NoWorkResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.result.css}get content(){return this.result.css}get map(){return this.result.map}get root(){if(this._root)return this._root;let e,t=o;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get messages(){return[]}warnings(){return[]}toString(){return this._css}then(e,t){return this.async().then(e,t)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}sync(){if(this.error)throw this.error;return this.result}}e.exports=a,a.default=a},5631:(e,t,r)=>{"use strict";let{isClean:n,my:i}=r(5513),o=r(2671),s=r(1062),a=r(7088);function l(e,t){let r=new e.constructor;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;if("proxyCache"===n)continue;let i=e[n],o=typeof i;"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map((e=>l(e,r))):("object"===o&&null!==i&&(i=l(i)),r[n]=i)}return r}class c{constructor(e={}){this.raws={},this[n]=!1,this[i]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let r of e[t])"function"==typeof r.clone?this.append(r.clone()):this.append(r)}else this[t]=e[t]}error(e,t={}){if(this.source){let{start:r,end:n}=this.rangeBy(t);return this.source.input.error(e,{line:r.line,column:r.column},{line:n.line,column:n.column},t)}return new o(e)}warn(e,t,r){let n={node:this};for(let e in r)n[e]=r[e];return e.warn(t,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(e=a){e.stringify&&(e=e.stringify);let t="";return e(this,(e=>{t+=e})),t}assign(e={}){for(let t in e)this[t]=e[t];return this}clone(e={}){let t=l(this);for(let r in e)t[r]=e[r];return t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let n of e)n===this?r=!0:r?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);r||this.remove()}return this}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}before(e){return this.parent.insertBefore(this,e),this}after(e){return this.parent.insertAfter(this,e),this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}raw(e,t){return(new s).raw(this,e,t)}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}toJSON(e,t){let r={},n=null==t;t=t||new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let n=this[e];if(Array.isArray(n))r[e]=n.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof n&&n.toJSON)r[e]=n.toJSON(null,t);else if("source"===e){let o=t.get(n.input);null==o&&(o=i,t.set(n.input,i),i++),r[e]={inputId:o,start:n.start,end:n.end}}else r[e]=n}return n&&(r.inputs=[...t.keys()].map((e=>e.toJSON()))),r}positionInside(e){let t=this.toString(),r=this.source.start.column,n=this.source.start.line;for(let i=0;i<e;i++)"\n"===t[i]?(r=1,n+=1):r+=1;return{line:n,column:r}}positionBy(e){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let r=this.toString().indexOf(e.word);-1!==r&&(t=this.positionInside(r))}return t}rangeBy(e){let t={line:this.source.start.line,column:this.source.start.column},r=this.source.end?{line:this.source.end.line,column:this.source.end.column+1}:{line:t.line,column:t.column+1};if(e.word){let n=this.toString().indexOf(e.word);-1!==n&&(t=this.positionInside(n),r=this.positionInside(n+e.word.length))}else e.start?t={line:e.start.line,column:e.start.column}:e.index&&(t=this.positionInside(e.index)),e.end?r={line:e.end.line,column:e.end.column}:e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={line:t.line,column:t.column+1}),{start:t,end:r}}getProxyProcessor(){return{set:(e,t,r)=>(e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0),get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t]}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}markDirty(){if(this[n]){this[n]=!1;let e=this;for(;e=e.parent;)e[n]=!1}}get proxyOf(){return this}}e.exports=c,c.default=c},6939:(e,t,r)=>{"use strict";let n=r(1019),i=r(8867),o=r(5995);function s(e,t){let r=new o(e,t),n=new i(r);try{n.parse()}catch(e){throw e}return n.root}e.exports=s,s.default=s,n.registerParse(s)},8867:(e,t,r)=>{"use strict";let n=r(4258),i=r(3852),o=r(9932),s=r(1353),a=r(1025),l=r(1675);const c={empty:!0,space:!0};e.exports=class{constructor(e){this.input=e,this.root=new a,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=i(this.input)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}comment(e){let t=new o;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]);let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}emptyRule(e){let t=new l;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}other(e){let t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],l=e;for(;l;){if(r=l[0],a.push(l),"("===r||"["===r)i||(i=l),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=l),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)}rule(e){e.pop();let t=new l;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}decl(e,t){let r=new n;this.init(r,e[0][2]);let i,o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(o[3]||o[2]||function(e){for(let t=e.length-1;t>=0;t--){let r=e[t],n=r[3]||r[2];if(n)return n}}(e));"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(i=e.shift(),":"===i[0]){r.raws.between+=i[1];break}"word"===i[0]&&/\w/.test(i[1])&&this.unknownWord([i]),r.raws.between+=i[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let s,a=[];for(;e.length&&(s=e[0][0],"space"===s||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(i=e[t],"!important"===i[1].toLowerCase()){r.important=!0;let n=this.stringFrom(e,t);n=this.spacesFromEnd(e)+n," !important"!==n&&(r.raws.important=n);break}if("important"===i[1].toLowerCase()){let n=e.slice(0),i="";for(let e=t;e>0;e--){let t=n[e][0];if(0===i.trim().indexOf("!")&&"space"!==t)break;i=n.pop()[1]+i}0===i.trim().indexOf("!")&&(r.important=!0,r.raws.important=i,e=n)}if("space"!==i[0]&&"comment"!==i[0])break}e.some((e=>"space"!==e[0]&&"comment"!==e[0]))&&(r.raws.between+=a.map((e=>e[1])).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}atrule(e){let t,r,n,i=new s;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);let o=!1,a=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),this.semicolon=!0;break}if("{"===t){a=!0;break}if("}"===t){if(l.length>0){for(n=l.length-1,r=l[n];r&&"space"===r[0];)r=l[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]))}this.end(e);break}l.push(e)}else l.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(i.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(i,"params",l),o&&(e=l[l.length-1],i.source.end=this.getPosition(e[3]||e[2]),this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),a&&(i.nodes=[],this.current=i)}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{offset:e,line:t.line,column:t.col}}init(e,t){this.current.push(e),e.source={start:this.getPosition(t),input:this.input},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}raw(e,t,r,n){let i,o,s,a,l=r.length,u="",p=!0;for(let e=0;e<l;e+=1)i=r[e],o=i[0],"space"!==o||e!==l-1||n?"comment"===o?(a=r[e-1]?r[e-1][0]:"empty",s=r[e+1]?r[e+1][0]:"empty",c[a]||c[s]||","===u.slice(-1)?p=!1:u+=i[1]):u+=i[1]:p=!1;if(!p){let n=r.reduce(((e,t)=>e+t[1]),"");e.raws[t]={value:u,raw:n}}e[t]=u}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r}colon(e){let t,r,n,i=0;for(let[o,s]of e.entries()){if(t=s,r=t[0],"("===r&&(i+=1),")"===r&&(i-=1),0===i&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return o}this.doubleColon(t)}n=t}return!1}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}precheckMissedSemicolon(){}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let r,n=0;for(let i=t-1;i>=0&&(r=e[i],"space"===r[0]||(n+=1,2!==n));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}}},20:(e,t,r)=>{"use strict";let n=r(2671),i=r(4258),o=r(1939),s=r(1019),a=r(1723),l=r(7088),c=r(250),u=r(6461),p=r(1728),d=r(9932),f=r(1353),h=r(3632),m=r(5995),g=r(6939),b=r(4715),v=r(1675),y=r(1025),w=r(5631);function x(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new a(e)}x.plugin=function(e,t){let r,n=!1;function i(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let i=t(...r);return i.postcssPlugin=e,i.postcssVersion=(new a).version,i}return Object.defineProperty(i,"postcss",{get:()=>(r||(r=i()),r)}),i.process=function(e,t,r){return x([i(r)]).process(e,t)},i},x.stringify=l,x.parse=g,x.fromJSON=c,x.list=b,x.comment=e=>new d(e),x.atRule=e=>new f(e),x.decl=e=>new i(e),x.rule=e=>new v(e),x.root=e=>new y(e),x.document=e=>new u(e),x.CssSyntaxError=n,x.Declaration=i,x.Container=s,x.Processor=a,x.Document=u,x.Comment=d,x.Warning=p,x.AtRule=f,x.Result=h,x.Input=m,x.Rule=v,x.Root=y,x.Node=w,o.registerPostcss(x),e.exports=x,x.default=x},7981:(e,t,r)=>{"use strict";let{SourceMapConsumer:n,SourceMapGenerator:i}=r(209),{existsSync:o,readFileSync:s}=r(4777),{dirname:a,join:l}=r(9830);class c{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=a(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new n(this.text)),this.consumerCache}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(e,t){return!!e&&e.substr(0,t.length)===t}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t;let r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}loadFile(e){if(this.root=a(e),o(e))return this.mapFile=e,s(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof n)return i.fromSourceMap(t).toString();if(t instanceof i)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let r=t(e);if(r){let e=this.loadFile(r);if(!e)throw new Error("Unable to load previous source map: "+r.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=l(a(e),t)),this.loadFile(t)}}}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}}e.exports=c,c.default=c},1723:(e,t,r)=>{"use strict";let n=r(7647),i=r(1939),o=r(6461),s=r(1025);class a{constructor(e=[]){this.version="8.4.16",this.plugins=this.normalize(e)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}process(e,t={}){return 0===this.plugins.length&&void 0===t.parser&&void 0===t.stringifier&&void 0===t.syntax?new n(this,e,t):new i(this,e,t)}normalize(e){let t=[];for(let r of e)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)t.push(r);else if("function"==typeof r)t.push(r);else{if("object"!=typeof r||!r.parse&&!r.stringify)throw new Error(r+" is not a PostCSS plugin")}return t}}e.exports=a,a.default=a,s.registerProcessor(a),o.registerProcessor(a)},3632:(e,t,r)=>{"use strict";let n=r(1728);class i{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new n(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter((e=>"warning"===e.type))}get content(){return this.css}}e.exports=i,i.default=i},1025:(e,t,r)=>{"use strict";let n,i,o=r(1019);class s extends o{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}removeChild(e,t){let r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}normalize(e,t,r){let n=super.normalize(e);if(t)if("prepend"===r)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of n)e.raws.before=t.raws.before;return n}toResult(e={}){return new n(new i,this,e).stringify()}}s.registerLazyResult=e=>{n=e},s.registerProcessor=e=>{i=e},e.exports=s,s.default=s,o.registerRoot(s)},1675:(e,t,r)=>{"use strict";let n=r(1019),i=r(4715);class o extends n{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return i.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}e.exports=o,o.default=o,n.registerRule(o)},1062:e=>{"use strict";const t={colon:": ",indent:" ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};class r{constructor(e){this.builder=e}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}document(e){this.body(e)}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}atrule(e,t){let r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{let i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let r=this.raw(e,"semicolon");for(let n=0;n<e.nodes.length;n++){let i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}}block(e,t){let r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}raw(e,r,n){let i;if(n||(n=r),r&&(i=e.raws[r],void 0!==i))return i;let o=e.parent;if("before"===n){if(!o||"root"===o.type&&o.first===e)return"";if(o&&"document"===o.type)return""}if(!o)return t[n];let s=e.root();if(s.rawCache||(s.rawCache={}),void 0!==s.rawCache[n])return s.rawCache[n];if("before"===n||"after"===n)return this.beforeAfter(e,n);{let t="raw"+((a=n)[0].toUpperCase()+a.slice(1));this[t]?i=this[t](s,e):s.walk((e=>{if(i=e.raws[r],void 0!==i)return!1}))}var a;return void 0===i&&(i=t[n]),s.rawCache[n]=i,i}rawSemicolon(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1})),t}rawEmptyBody(e){let t;return e.walk((e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1})),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk((r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){let e=r.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}})),t}rawBeforeComment(e,t){let r;return e.walkComments((e=>{if(void 0!==e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls((e=>{if(void 0!==e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeRule(e){let t;return e.walk((r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return t=r.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeClose(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeOpen(e){let t;return e.walk((e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1})),t}rawColon(e){let t;return e.walkDecls((e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}beforeAfter(e,t){let r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let n=e.parent,i=0;for(;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<i;e++)r+=t}return r}rawValue(e,t){let r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r}}e.exports=r,r.default=r},7088:(e,t,r)=>{"use strict";let n=r(1062);function i(e,t){new n(t).stringify(e)}e.exports=i,i.default=i},5513:e=>{"use strict";e.exports.isClean=Symbol("isClean"),e.exports.my=Symbol("my")},3852:e=>{"use strict";const t="'".charCodeAt(0),r='"'.charCodeAt(0),n="\\".charCodeAt(0),i="/".charCodeAt(0),o="\n".charCodeAt(0),s=" ".charCodeAt(0),a="\f".charCodeAt(0),l="\t".charCodeAt(0),c="\r".charCodeAt(0),u="[".charCodeAt(0),p="]".charCodeAt(0),d="(".charCodeAt(0),f=")".charCodeAt(0),h="{".charCodeAt(0),m="}".charCodeAt(0),g=";".charCodeAt(0),b="*".charCodeAt(0),v=":".charCodeAt(0),y="@".charCodeAt(0),w=/[\t\n\f\r "#'()/;[\\\]{}]/g,x=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,O=/.[\n"'(/\\]/,C=/[\da-f]/i;e.exports=function(e,S={}){let _,k,E,T,N,P,A,M,D,R,I=e.css.valueOf(),L=S.ignoreErrors,j=I.length,V=0,F=[],q=[];function B(t){throw e.error("Unclosed "+t,V)}return{back:function(e){q.push(e)},nextToken:function(e){if(q.length)return q.pop();if(V>=j)return;let S=!!e&&e.ignoreUnclosed;switch(_=I.charCodeAt(V),_){case o:case s:case l:case c:case a:k=V;do{k+=1,_=I.charCodeAt(k)}while(_===s||_===o||_===l||_===c||_===a);R=["space",I.slice(V,k)],V=k-1;break;case u:case p:case h:case m:case v:case g:case f:{let e=String.fromCharCode(_);R=[e,e,V];break}case d:if(M=F.length?F.pop()[1]:"",D=I.charCodeAt(V+1),"url"===M&&D!==t&&D!==r&&D!==s&&D!==o&&D!==l&&D!==a&&D!==c){k=V;do{if(P=!1,k=I.indexOf(")",k+1),-1===k){if(L||S){k=V;break}B("bracket")}for(A=k;I.charCodeAt(A-1)===n;)A-=1,P=!P}while(P);R=["brackets",I.slice(V,k+1),V,k],V=k}else k=I.indexOf(")",V+1),T=I.slice(V,k+1),-1===k||O.test(T)?R=["(","(",V]:(R=["brackets",T,V,k],V=k);break;case t:case r:E=_===t?"'":'"',k=V;do{if(P=!1,k=I.indexOf(E,k+1),-1===k){if(L||S){k=V+1;break}B("string")}for(A=k;I.charCodeAt(A-1)===n;)A-=1,P=!P}while(P);R=["string",I.slice(V,k+1),V,k],V=k;break;case y:w.lastIndex=V+1,w.test(I),k=0===w.lastIndex?I.length-1:w.lastIndex-2,R=["at-word",I.slice(V,k+1),V,k],V=k;break;case n:for(k=V,N=!0;I.charCodeAt(k+1)===n;)k+=1,N=!N;if(_=I.charCodeAt(k+1),N&&_!==i&&_!==s&&_!==o&&_!==l&&_!==c&&_!==a&&(k+=1,C.test(I.charAt(k)))){for(;C.test(I.charAt(k+1));)k+=1;I.charCodeAt(k+1)===s&&(k+=1)}R=["word",I.slice(V,k+1),V,k],V=k;break;default:_===i&&I.charCodeAt(V+1)===b?(k=I.indexOf("*/",V+2)+1,0===k&&(L||S?k=I.length:B("comment")),R=["comment",I.slice(V,k+1),V,k],V=k):(x.lastIndex=V+1,x.test(I),k=0===x.lastIndex?I.length-1:x.lastIndex-2,R=["word",I.slice(V,k+1),V,k],F.push(R),V=k)}return V++,R},endOfFile:function(){return 0===q.length&&V>=j},position:function(){return V}}}},2448:e=>{"use strict";let t={};e.exports=function(e){t[e]||(t[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))}},1728:e=>{"use strict";class t{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}e.exports=t,t.default=t},2703:(e,t,r)=>{"use strict";var n=r(414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,s){if(s!==n){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return r.PropTypes=r,r}},5697:(e,t,r)=>{e.exports=r(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},83:(e,t,r)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,i,o=[],s=!0,a=!1;try{for(r=r.call(e);!(s=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==r.return||r.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}Object.defineProperty(t,"__esModule",{value:!0});function o(e,t,r,n,i,o,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var s={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){s[e]=new o(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=n(e,2),r=t[0],i=t[1];s[r]=new o(r,1,!1,i,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){s[e]=new o(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){s[e]=new o(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((function(e){s[e]=new o(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){s[e]=new o(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){s[e]=new o(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){s[e]=new o(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){s[e]=new o(e,5,!1,e.toLowerCase(),null,!1,!1)}));var a=/[\-\:]([a-z])/g,l=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((function(e){var t=e.replace(a,l);s[t]=new o(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((function(e){var t=e.replace(a,l);s[t]=new o(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(a,l);s[t]=new o(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){s[e]=new o(e,1,!1,e.toLowerCase(),null,!1,!1)}));s.xlinkHref=new o("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){s[e]=new o(e,1,!1,e.toLowerCase(),null,!0,!0)}));var c=r(8229),u=c.CAMELCASE,p=c.SAME,d=c.possibleStandardNames,f=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),h=Object.keys(d).reduce((function(e,t){var r=d[t];return r===p?e[t]=t:r===u?e[t.toLowerCase()]=t:e[t]=r,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return s.hasOwnProperty(e)?s[e]:null},t.isCustomAttribute=f,t.possibleStandardNames=h},8229:(e,t)=>{t.SAME=0;t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},1036:(e,t,r)=>{const n=r(5106),i=r(3150),{isPlainObject:o}=r(977),s=r(9996),a=r(9430),{parse:l}=r(20),c=["img","audio","video","picture","svg","object","map","iframe","embed"],u=["script","style"];function p(e,t){e&&Object.keys(e).forEach((function(r){t(e[r],r)}))}function d(e,t){return{}.hasOwnProperty.call(e,t)}function f(e,t){const r=[];return p(e,(function(e){t(e)&&r.push(e)})),r}e.exports=m;const h=/^[^\0\t\n\f\r /<=>]+$/;function m(e,t,r){if(null==e)return"";let b="",v="";function y(e,t){const r=this;this.tag=e,this.attribs=t||{},this.tagPosition=b.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(N.length){N[N.length-1].text+=r.text}},this.updateParentNodeMediaChildren=function(){if(N.length&&c.includes(this.tag)){N[N.length-1].mediaChildren.push(this.tag)}}}(t=Object.assign({},m.defaults,t)).parser=Object.assign({},g,t.parser),u.forEach((function(e){t.allowedTags&&t.allowedTags.indexOf(e)>-1&&!t.allowVulnerableTags&&console.warn(`\n\n⚠️ Your \`allowedTags\` option includes, \`${e}\`, which is inherently\nvulnerable to XSS attacks. Please remove it from \`allowedTags\`.\nOr, to disable this warning, add the \`allowVulnerableTags\` option\nand ensure you are accounting for this risk.\n\n`)}));const w=t.nonTextTags||["script","style","textarea","option"];let x,O;t.allowedAttributes&&(x={},O={},p(t.allowedAttributes,(function(e,t){x[t]=[];const r=[];e.forEach((function(e){"string"==typeof e&&e.indexOf("*")>=0?r.push(i(e).replace(/\\\*/g,".*")):x[t].push(e)})),r.length&&(O[t]=new RegExp("^("+r.join("|")+")$"))})));const C={},S={},_={};p(t.allowedClasses,(function(e,t){x&&(d(x,t)||(x[t]=[]),x[t].push("class")),C[t]=[],_[t]=[];const r=[];e.forEach((function(e){"string"==typeof e&&e.indexOf("*")>=0?r.push(i(e).replace(/\\\*/g,".*")):e instanceof RegExp?_[t].push(e):C[t].push(e)})),r.length&&(S[t]=new RegExp("^("+r.join("|")+")$"))}));const k={};let E,T,N,P,A,M,D;p(t.transformTags,(function(e,t){let r;"function"==typeof e?r=e:"string"==typeof e&&(r=m.simpleTransform(e)),"*"===t?E=r:k[t]=r}));let R=!1;L();const I=new n.Parser({onopentag:function(e,r){if(t.enforceHtmlBoundary&&"html"===e&&L(),M)return void D++;const n=new y(e,r);N.push(n);let i=!1;const c=!!n.text;let u;if(d(k,e)&&(u=k[e](e,r),n.attribs=r=u.attribs,void 0!==u.text&&(n.innerText=u.text),e!==u.tagName&&(n.name=e=u.tagName,A[T]=u.tagName)),E&&(u=E(e,r),n.attribs=r=u.attribs,e!==u.tagName&&(n.name=e=u.tagName,A[T]=u.tagName)),(t.allowedTags&&-1===t.allowedTags.indexOf(e)||"recursiveEscape"===t.disallowedTagsMode&&!function(e){for(const t in e)if(d(e,t))return!1;return!0}(P)||null!=t.nestingLimit&&T>=t.nestingLimit)&&(i=!0,P[T]=!0,"discard"===t.disallowedTagsMode&&-1!==w.indexOf(e)&&(M=!0,D=1),P[T]=!0),T++,i){if("discard"===t.disallowedTagsMode)return;v=b,b=""}b+="<"+e,"script"===e&&(t.allowedScriptHostnames||t.allowedScriptDomains)&&(n.innerText=""),(!x||d(x,e)||x["*"])&&p(r,(function(r,i){if(!h.test(i))return void delete n.attribs[i];let c=!1;if(!x||d(x,e)&&-1!==x[e].indexOf(i)||x["*"]&&-1!==x["*"].indexOf(i)||d(O,e)&&O[e].test(i)||O["*"]&&O["*"].test(i))c=!0;else if(x&&x[e])for(const t of x[e])if(o(t)&&t.name&&t.name===i){c=!0;let e="";if(!0===t.multiple){const n=r.split(" ");for(const r of n)-1!==t.values.indexOf(r)&&(""===e?e=r:e+=" "+r)}else t.values.indexOf(r)>=0&&(e=r);r=e}if(c){if(-1!==t.allowedSchemesAppliedToAttributes.indexOf(i)&&V(e,r))return void delete n.attribs[i];if("script"===e&&"src"===i){let e=!0;try{const n=F(r);if(t.allowedScriptHostnames||t.allowedScriptDomains){const r=(t.allowedScriptHostnames||[]).find((function(e){return e===n.url.hostname})),i=(t.allowedScriptDomains||[]).find((function(e){return n.url.hostname===e||n.url.hostname.endsWith(`.${e}`)}));e=r||i}}catch(t){e=!1}if(!e)return void delete n.attribs[i]}if("iframe"===e&&"src"===i){let e=!0;try{const n=F(r);if(n.isRelativeUrl)e=d(t,"allowIframeRelativeUrls")?t.allowIframeRelativeUrls:!t.allowedIframeHostnames&&!t.allowedIframeDomains;else if(t.allowedIframeHostnames||t.allowedIframeDomains){const r=(t.allowedIframeHostnames||[]).find((function(e){return e===n.url.hostname})),i=(t.allowedIframeDomains||[]).find((function(e){return n.url.hostname===e||n.url.hostname.endsWith(`.${e}`)}));e=r||i}}catch(t){e=!1}if(!e)return void delete n.attribs[i]}if("srcset"===i)try{let e=a(r);if(e.forEach((function(e){V("srcset",e.url)&&(e.evil=!0)})),e=f(e,(function(e){return!e.evil})),!e.length)return void delete n.attribs[i];r=f(e,(function(e){return!e.evil})).map((function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")})).join(", "),n.attribs[i]=r}catch(e){return void delete n.attribs[i]}if("class"===i){const t=C[e],o=C["*"],a=S[e],l=_[e],c=[a,S["*"]].concat(l).filter((function(e){return e}));if(!(r=q(r,t&&o?s(t,o):t||o,c)).length)return void delete n.attribs[i]}if("style"===i)try{const o=function(e,t){if(!t)return e;const r=e.nodes[0];let n;n=t[r.selector]&&t["*"]?s(t[r.selector],t["*"]):t[r.selector]||t["*"];n&&(e.nodes[0].nodes=r.nodes.reduce(function(e){return function(t,r){if(d(e,r.prop)){e[r.prop].some((function(e){return e.test(r.value)}))&&t.push(r)}return t}}(n),[]));return e}(l(e+" {"+r+"}"),t.allowedStyles);if(0===(r=function(e){return e.nodes[0].nodes.reduce((function(e,t){return e.push(`${t.prop}:${t.value}${t.important?" !important":""}`),e}),[]).join(";")}(o)).length)return void delete n.attribs[i]}catch(e){return void delete n.attribs[i]}b+=" "+i,r&&r.length&&(b+='="'+j(r,!0)+'"')}else delete n.attribs[i]})),-1!==t.selfClosing.indexOf(e)?b+=" />":(b+=">",!n.innerText||c||t.textFilter||(b+=j(n.innerText),R=!0)),i&&(b=v+j(b),v="")},ontext:function(e){if(M)return;const r=N[N.length-1];let n;if(r&&(n=r.tag,e=void 0!==r.innerText?r.innerText:e),"discard"!==t.disallowedTagsMode||"script"!==n&&"style"!==n){const r=j(e,!1);t.textFilter&&!R?b+=t.textFilter(r,n):R||(b+=r)}else b+=e;if(N.length){N[N.length-1].text+=e}},onclosetag:function(e){if(M){if(D--,D)return;M=!1}const r=N.pop();if(!r)return;M=!!t.enforceHtmlBoundary&&"html"===e,T--;const n=P[T];if(n){if(delete P[T],"discard"===t.disallowedTagsMode)return void r.updateParentNodeText();v=b,b=""}A[T]&&(e=A[T],delete A[T]),t.exclusiveFilter&&t.exclusiveFilter(r)?b=b.substr(0,r.tagPosition):(r.updateParentNodeMediaChildren(),r.updateParentNodeText(),-1===t.selfClosing.indexOf(e)?(b+="</"+e+">",n&&(b=v+j(b),v=""),R=!1):n&&(b=v,v=""))}},t.parser);return I.write(e),I.end(),b;function L(){b="",T=0,N=[],P={},A={},M=!1,D=0}function j(e,r){return"string"!=typeof e&&(e+=""),t.parser.decodeEntities&&(e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),r&&(e=e.replace(/"/g,"&quot;"))),e=e.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),r&&(e=e.replace(/"/g,"&quot;")),e}function V(e,r){for(r=r.replace(/[\x00-\x20]+/g,"");;){const e=r.indexOf("\x3c!--");if(-1===e)break;const t=r.indexOf("--\x3e",e+4);if(-1===t)break;r=r.substring(0,e)+r.substring(t+3)}const n=r.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!n)return!!r.match(/^[/\\]{2}/)&&!t.allowProtocolRelative;const i=n[1].toLowerCase();return d(t.allowedSchemesByTag,e)?-1===t.allowedSchemesByTag[e].indexOf(i):!t.allowedSchemes||-1===t.allowedSchemes.indexOf(i)}function F(e){if((e=e.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//")).startsWith("relative:"))throw new Error("relative: exploit attempt");let t="relative://relative-site";for(let e=0;e<100;e++)t+=`/${e}`;const r=new URL(e,t);return{isRelativeUrl:r&&"relative-site"===r.hostname&&"relative:"===r.protocol,url:r}}function q(e,t,r){return t?(e=e.split(/\s+/)).filter((function(e){return-1!==t.indexOf(e)||r.some((function(t){return t.test(e)}))})).join(" "):e}}const g={decodeEntities:!0};m.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1},m.simpleTransform=function(e,t,r){return r=void 0===r||r,t=t||{},function(n,i){let o;if(r)for(o in t)i[o]=t[o];else i=t;return{tagName:e,attribs:i}}}},2734:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attributeNames=t.elementNames=void 0,t.elementNames=new Map([["altglyph","altGlyph"],["altglyphdef","altGlyphDef"],["altglyphitem","altGlyphItem"],["animatecolor","animateColor"],["animatemotion","animateMotion"],["animatetransform","animateTransform"],["clippath","clipPath"],["feblend","feBlend"],["fecolormatrix","feColorMatrix"],["fecomponenttransfer","feComponentTransfer"],["fecomposite","feComposite"],["feconvolvematrix","feConvolveMatrix"],["fediffuselighting","feDiffuseLighting"],["fedisplacementmap","feDisplacementMap"],["fedistantlight","feDistantLight"],["fedropshadow","feDropShadow"],["feflood","feFlood"],["fefunca","feFuncA"],["fefuncb","feFuncB"],["fefuncg","feFuncG"],["fefuncr","feFuncR"],["fegaussianblur","feGaussianBlur"],["feimage","feImage"],["femerge","feMerge"],["femergenode","feMergeNode"],["femorphology","feMorphology"],["feoffset","feOffset"],["fepointlight","fePointLight"],["fespecularlighting","feSpecularLighting"],["fespotlight","feSpotLight"],["fetile","feTile"],["feturbulence","feTurbulence"],["foreignobject","foreignObject"],["glyphref","glyphRef"],["lineargradient","linearGradient"],["radialgradient","radialGradient"],["textpath","textPath"]]),t.attributeNames=new Map([["definitionurl","definitionURL"],["attributename","attributeName"],["attributetype","attributeType"],["basefrequency","baseFrequency"],["baseprofile","baseProfile"],["calcmode","calcMode"],["clippathunits","clipPathUnits"],["diffuseconstant","diffuseConstant"],["edgemode","edgeMode"],["filterunits","filterUnits"],["glyphref","glyphRef"],["gradienttransform","gradientTransform"],["gradientunits","gradientUnits"],["kernelmatrix","kernelMatrix"],["kernelunitlength","kernelUnitLength"],["keypoints","keyPoints"],["keysplines","keySplines"],["keytimes","keyTimes"],["lengthadjust","lengthAdjust"],["limitingconeangle","limitingConeAngle"],["markerheight","markerHeight"],["markerunits","markerUnits"],["markerwidth","markerWidth"],["maskcontentunits","maskContentUnits"],["maskunits","maskUnits"],["numoctaves","numOctaves"],["pathlength","pathLength"],["patterncontentunits","patternContentUnits"],["patterntransform","patternTransform"],["patternunits","patternUnits"],["pointsatx","pointsAtX"],["pointsaty","pointsAtY"],["pointsatz","pointsAtZ"],["preservealpha","preserveAlpha"],["preserveaspectratio","preserveAspectRatio"],["primitiveunits","primitiveUnits"],["refx","refX"],["refy","refY"],["repeatcount","repeatCount"],["repeatdur","repeatDur"],["requiredextensions","requiredExtensions"],["requiredfeatures","requiredFeatures"],["specularconstant","specularConstant"],["specularexponent","specularExponent"],["spreadmethod","spreadMethod"],["startoffset","startOffset"],["stddeviation","stdDeviation"],["stitchtiles","stitchTiles"],["surfacescale","surfaceScale"],["systemlanguage","systemLanguage"],["tablevalues","tableValues"],["targetx","targetX"],["targety","targetY"],["textlength","textLength"],["viewbox","viewBox"],["viewtarget","viewTarget"],["xchannelselector","xChannelSelector"],["ychannelselector","yChannelSelector"],["zoomandpan","zoomAndPan"]])},8427:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var a=s(r(9960)),l=r(7772),c=r(2734),u=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);var p=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function d(e,t){void 0===t&&(t={});for(var r=("length"in e?e:[e]),n="",i=0;i<r.length;i++)n+=f(r[i],t);return n}function f(e,t){switch(e.type){case a.Root:return d(e.children,t);case a.Directive:case a.Doctype:return"<"+e.data+">";case a.Comment:return function(e){return"\x3c!--"+e.data+"--\x3e"}(e);case a.CDATA:return function(e){return"<![CDATA["+e.children[0].data+"]]>"}(e);case a.Script:case a.Style:case a.Tag:return function(e,t){var r;"foreign"===t.xmlMode&&(e.name=null!==(r=c.elementNames.get(e.name))&&void 0!==r?r:e.name,e.parent&&h.has(e.parent.name)&&(t=n(n({},t),{xmlMode:!1})));!t.xmlMode&&m.has(e.name)&&(t=n(n({},t),{xmlMode:"foreign"}));var i="<"+e.name,o=function(e,t){if(e)return Object.keys(e).map((function(r){var n,i,o=null!==(n=e[r])&&void 0!==n?n:"";return"foreign"===t.xmlMode&&(r=null!==(i=c.attributeNames.get(r))&&void 0!==i?i:r),t.emptyAttrs||t.xmlMode||""!==o?r+'="'+(!1!==t.decodeEntities?l.encodeXML(o):o.replace(/"/g,"&quot;"))+'"':r})).join(" ")}(e.attribs,t);o&&(i+=" "+o);0===e.children.length&&(t.xmlMode?!1!==t.selfClosingTags:t.selfClosingTags&&p.has(e.name))?(t.xmlMode||(i+=" "),i+="/>"):(i+=">",e.children.length>0&&(i+=d(e.children,t)),!t.xmlMode&&p.has(e.name)||(i+="</"+e.name+">"));return i}(e,t);case a.Text:return function(e,t){var r=e.data||"";!1===t.decodeEntities||!t.xmlMode&&e.parent&&u.has(e.parent.name)||(r=l.encodeXML(r));return r}(e,t)}}t.default=d;var h=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),m=new Set(["svg","math"])},1142:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var o=r(9960),s=r(6218);i(r(6218),t);var a=/\s+/g,l={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},c=function(){function e(e,t,r){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(r=t,t=l),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:l,this.elementCB=null!=r?r:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var r=this.options.xmlMode?o.ElementType.Tag:void 0,n=new s.Element(e,t,void 0,r);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(e){var t=this.options.normalizeWhitespace,r=this.lastNode;if(r&&r.type===o.ElementType.Text)t?r.data=(r.data+e).replace(a," "):r.data+=e,this.options.withEndIndices&&(r.endIndex=this.parser.endIndex);else{t&&(e=e.replace(a," "));var n=new s.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment)this.lastNode.data+=e;else{var t=new s.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new s.Text(""),t=new s.NodeWithChildren(o.ElementType.CDATA,[e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var r=new s.ProcessingInstruction(e,t);this.addNode(r)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],r=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),r&&(e.prev=r,r.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=c,t.default=c},6218:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var s=r(9960),a=new Map([[s.ElementType.Tag,1],[s.ElementType.Script,1],[s.ElementType.Style,1],[s.ElementType.Directive,1],[s.ElementType.Text,3],[s.ElementType.CDATA,4],[s.ElementType.Comment,8],[s.ElementType.Root,9]]),l=function(){function e(e){this.type=e,this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"nodeType",{get:function(){var e;return null!==(e=a.get(this.type))&&void 0!==e?e:1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),O(this,e)},e}();t.Node=l;var c=function(e){function t(t,r){var n=e.call(this,t)||this;return n.data=r,n}return i(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(l);t.DataNode=c;var u=function(e){function t(t){return e.call(this,s.ElementType.Text,t)||this}return i(t,e),t}(c);t.Text=u;var p=function(e){function t(t){return e.call(this,s.ElementType.Comment,t)||this}return i(t,e),t}(c);t.Comment=p;var d=function(e){function t(t,r){var n=e.call(this,s.ElementType.Directive,r)||this;return n.name=t,n}return i(t,e),t}(c);t.ProcessingInstruction=d;var f=function(e){function t(t,r){var n=e.call(this,t)||this;return n.children=r,n}return i(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(l);t.NodeWithChildren=f;var h=function(e){function t(t){return e.call(this,s.ElementType.Root,t)||this}return i(t,e),t}(f);t.Document=h;var m=function(e){function t(t,r,n,i){void 0===n&&(n=[]),void 0===i&&(i="script"===t?s.ElementType.Script:"style"===t?s.ElementType.Style:s.ElementType.Tag);var o=e.call(this,i,n)||this;return o.name=t,o.attribs=r,o}return i(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var r,n;return{name:t,value:e.attribs[t],namespace:null===(r=e["x-attribsNamespace"])||void 0===r?void 0:r[t],prefix:null===(n=e["x-attribsPrefix"])||void 0===n?void 0:n[t]}}))},enumerable:!1,configurable:!0}),t}(f);function g(e){return(0,s.isTag)(e)}function b(e){return e.type===s.ElementType.CDATA}function v(e){return e.type===s.ElementType.Text}function y(e){return e.type===s.ElementType.Comment}function w(e){return e.type===s.ElementType.Directive}function x(e){return e.type===s.ElementType.Root}function O(e,t){var r;if(void 0===t&&(t=!1),v(e))r=new u(e.data);else if(y(e))r=new p(e.data);else if(g(e)){var n=t?C(e.children):[],i=new m(e.name,o({},e.attribs),n);n.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),r=i}else if(b(e)){n=t?C(e.children):[];var a=new f(s.ElementType.CDATA,n);n.forEach((function(e){return e.parent=a})),r=a}else if(x(e)){n=t?C(e.children):[];var l=new h(n);n.forEach((function(e){return e.parent=l})),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),r=l}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new d(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),r=c}return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function C(e){for(var t=e.map((function(e){return O(e,!0)})),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}t.Element=m,t.isTag=g,t.isCDATA=b,t.isText=v,t.isComment=y,t.isDirective=w,t.isDocument=x,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=O},2903:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeed=void 0;var n=r(5283),i=r(9473);t.getFeed=function(e){var t=l(p,e);return t?"feed"===t.name?function(e){var t,r=e.children,n={type:"atom",items:(0,i.getElementsByTagName)("entry",r).map((function(e){var t,r=e.children,n={media:a(r)};u(n,"id","id",r),u(n,"title","title",r);var i=null===(t=l("link",r))||void 0===t?void 0:t.attribs.href;i&&(n.link=i);var o=c("summary",r)||c("content",r);o&&(n.description=o);var s=c("updated",r);return s&&(n.pubDate=new Date(s)),n}))};u(n,"id","id",r),u(n,"title","title",r);var o=null===(t=l("link",r))||void 0===t?void 0:t.attribs.href;o&&(n.link=o);u(n,"description","subtitle",r);var s=c("updated",r);s&&(n.updated=new Date(s));return u(n,"author","email",r,!0),n}(t):function(e){var t,r,n=null!==(r=null===(t=l("channel",e.children))||void 0===t?void 0:t.children)&&void 0!==r?r:[],o={type:e.name.substr(0,3),id:"",items:(0,i.getElementsByTagName)("item",e.children).map((function(e){var t=e.children,r={media:a(t)};u(r,"id","guid",t),u(r,"title","title",t),u(r,"link","link",t),u(r,"description","description",t);var n=c("pubDate",t);return n&&(r.pubDate=new Date(n)),r}))};u(o,"title","title",n),u(o,"link","link",n),u(o,"description","description",n);var s=c("lastBuildDate",n);s&&(o.updated=new Date(s));return u(o,"author","managingEditor",n,!0),o}(t):null};var o=["url","type","lang"],s=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function a(e){return(0,i.getElementsByTagName)("media:content",e).map((function(e){for(var t=e.attribs,r={medium:t.medium,isDefault:!!t.isDefault},n=0,i=o;n<i.length;n++){t[c=i[n]]&&(r[c]=t[c])}for(var a=0,l=s;a<l.length;a++){var c;t[c=l[a]]&&(r[c]=parseInt(t[c],10))}return t.expression&&(r.expression=t.expression),r}))}function l(e,t){return(0,i.getElementsByTagName)(e,t,!0,1)[0]}function c(e,t,r){return void 0===r&&(r=!1),(0,n.textContent)((0,i.getElementsByTagName)(e,t,r,1)).trim()}function u(e,t,r,n,i){void 0===i&&(i=!1);var o=c(r,n,i);o&&(e[t]=o)}function p(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}},7701:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uniqueSort=t.compareDocumentPosition=t.removeSubsets=void 0;var n=r(1142);function i(e,t){var r=[],i=[];if(e===t)return 0;for(var o=(0,n.hasChildren)(e)?e:e.parent;o;)r.unshift(o),o=o.parent;for(o=(0,n.hasChildren)(t)?t:t.parent;o;)i.unshift(o),o=o.parent;for(var s=Math.min(r.length,i.length),a=0;a<s&&r[a]===i[a];)a++;if(0===a)return 1;var l=r[a-1],c=l.children,u=r[a],p=i[a];return c.indexOf(u)>c.indexOf(p)?l===t?20:4:l===e?10:2}t.removeSubsets=function(e){for(var t=e.length;--t>=0;){var r=e[t];if(t>0&&e.lastIndexOf(r,t-1)>=0)e.splice(t,1);else for(var n=r.parent;n;n=n.parent)if(e.includes(n)){e.splice(t,1);break}}return e},t.compareDocumentPosition=i,t.uniqueSort=function(e){return(e=e.filter((function(e,t,r){return!r.includes(e,t+1)}))).sort((function(e,t){var r=i(e,t);return 2&r?-1:4&r?1:0})),e}},7241:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,i(r(5283),t),i(r(7972),t),i(r(4541),t),i(r(2764),t),i(r(9473),t),i(r(7701),t),i(r(2903),t);var o=r(1142);Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return o.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!0,get:function(){return o.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!0,get:function(){return o.isText}}),Object.defineProperty(t,"isComment",{enumerable:!0,get:function(){return o.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function(){return o.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!0,get:function(){return o.hasChildren}})},9473:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getElementsByTagType=t.getElementsByTagName=t.getElementById=t.getElements=t.testElement=void 0;var n=r(1142),i=r(2764),o={tag_name:function(e){return"function"==typeof e?function(t){return(0,n.isTag)(t)&&e(t.name)}:"*"===e?n.isTag:function(t){return(0,n.isTag)(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return(0,n.isText)(t)&&e(t.data)}:function(t){return(0,n.isText)(t)&&t.data===e}}};function s(e,t){return"function"==typeof t?function(r){return(0,n.isTag)(r)&&t(r.attribs[e])}:function(r){return(0,n.isTag)(r)&&r.attribs[e]===t}}function a(e,t){return function(r){return e(r)||t(r)}}function l(e){var t=Object.keys(e).map((function(t){var r=e[t];return Object.prototype.hasOwnProperty.call(o,t)?o[t](r):s(t,r)}));return 0===t.length?null:t.reduce(a)}t.testElement=function(e,t){var r=l(e);return!r||r(t)},t.getElements=function(e,t,r,n){void 0===n&&(n=1/0);var o=l(e);return o?(0,i.filter)(o,t,r,n):[]},t.getElementById=function(e,t,r){return void 0===r&&(r=!0),Array.isArray(t)||(t=[t]),(0,i.findOne)(s("id",e),t,r)},t.getElementsByTagName=function(e,t,r,n){return void 0===r&&(r=!0),void 0===n&&(n=1/0),(0,i.filter)(o.tag_name(e),t,r,n)},t.getElementsByTagType=function(e,t,r,n){return void 0===r&&(r=!0),void 0===n&&(n=1/0),(0,i.filter)(o.tag_type(e),t,r,n)}},4541:(e,t)=>{"use strict";function r(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children;t.splice(t.lastIndexOf(e),1)}}Object.defineProperty(t,"__esModule",{value:!0}),t.prepend=t.prependChild=t.append=t.appendChild=t.replaceElement=t.removeElement=void 0,t.removeElement=r,t.replaceElement=function(e,t){var r=t.prev=e.prev;r&&(r.next=t);var n=t.next=e.next;n&&(n.prev=t);var i=t.parent=e.parent;if(i){var o=i.children;o[o.lastIndexOf(e)]=t}},t.appendChild=function(e,t){if(r(t),t.next=null,t.parent=e,e.children.push(t)>1){var n=e.children[e.children.length-2];n.next=t,t.prev=n}else t.prev=null},t.append=function(e,t){r(t);var n=e.parent,i=e.next;if(t.next=i,t.prev=e,e.next=t,t.parent=n,i){if(i.prev=t,n){var o=n.children;o.splice(o.lastIndexOf(i),0,t)}}else n&&n.children.push(t)},t.prependChild=function(e,t){if(r(t),t.parent=e,t.prev=null,1!==e.children.unshift(t)){var n=e.children[1];n.prev=t,t.next=n}else t.next=null},t.prepend=function(e,t){r(t);var n=e.parent;if(n){var i=n.children;i.splice(i.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t}},2764:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=t.existsOne=t.findOne=t.findOneChild=t.find=t.filter=void 0;var n=r(1142);function i(e,t,r,o){for(var s=[],a=0,l=t;a<l.length;a++){var c=l[a];if(e(c)&&(s.push(c),--o<=0))break;if(r&&(0,n.hasChildren)(c)&&c.children.length>0){var u=i(e,c.children,r,o);if(s.push.apply(s,u),(o-=u.length)<=0)break}}return s}t.filter=function(e,t,r,n){return void 0===r&&(r=!0),void 0===n&&(n=1/0),Array.isArray(t)||(t=[t]),i(e,t,r,n)},t.find=i,t.findOneChild=function(e,t){return t.find(e)},t.findOne=function e(t,r,i){void 0===i&&(i=!0);for(var o=null,s=0;s<r.length&&!o;s++){var a=r[s];(0,n.isTag)(a)&&(t(a)?o=a:i&&a.children.length>0&&(o=e(t,a.children)))}return o},t.existsOne=function e(t,r){return r.some((function(r){return(0,n.isTag)(r)&&(t(r)||r.children.length>0&&e(t,r.children))}))},t.findAll=function(e,t){for(var r,i,o=[],s=t.filter(n.isTag);i=s.shift();){var a=null===(r=i.children)||void 0===r?void 0:r.filter(n.isTag);a&&a.length>0&&s.unshift.apply(s,a),e(i)&&o.push(i)}return o}},5283:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.innerText=t.textContent=t.getText=t.getInnerHTML=t.getOuterHTML=void 0;var i=r(1142),o=n(r(8427)),s=r(9960);function a(e,t){return(0,o.default)(e,t)}t.getOuterHTML=a,t.getInnerHTML=function(e,t){return(0,i.hasChildren)(e)?e.children.map((function(e){return a(e,t)})).join(""):""},t.getText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.isTag)(t)?"br"===t.name?"\n":e(t.children):(0,i.isCDATA)(t)?e(t.children):(0,i.isText)(t)?t.data:""},t.textContent=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.hasChildren)(t)&&!(0,i.isComment)(t)?e(t.children):(0,i.isText)(t)?t.data:""},t.innerText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.hasChildren)(t)&&(t.type===s.ElementType.Tag||(0,i.isCDATA)(t))?e(t.children):(0,i.isText)(t)?t.data:""}},7972:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prevElementSibling=t.nextElementSibling=t.getName=t.hasAttrib=t.getAttributeValue=t.getSiblings=t.getParent=t.getChildren=void 0;var n=r(1142),i=[];function o(e){var t;return null!==(t=e.children)&&void 0!==t?t:i}function s(e){return e.parent||null}t.getChildren=o,t.getParent=s,t.getSiblings=function(e){var t=s(e);if(null!=t)return o(t);for(var r=[e],n=e.prev,i=e.next;null!=n;)r.unshift(n),n=n.prev;for(;null!=i;)r.push(i),i=i.next;return r},t.getAttributeValue=function(e,t){var r;return null===(r=e.attribs)||void 0===r?void 0:r[t]},t.hasAttrib=function(e,t){return null!=e.attribs&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&null!=e.attribs[t]},t.getName=function(e){return e.name},t.nextElementSibling=function(e){for(var t=e.next;null!==t&&!(0,n.isTag)(t);)t=t.next;return t},t.prevElementSibling=function(e){for(var t=e.prev;null!==t&&!(0,n.isTag)(t);)t=t.prev;return t}},722:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeHTML=t.decodeHTMLStrict=t.decodeXML=void 0;var i=n(r(4168)),o=n(r(7272)),s=n(r(729)),a=n(r(2913)),l=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;function c(e){var t=p(e);return function(e){return String(e).replace(l,t)}}t.decodeXML=c(s.default),t.decodeHTMLStrict=c(i.default);var u=function(e,t){return e<t?1:-1};function p(e){return function(t){if("#"===t.charAt(1)){var r=t.charAt(2);return"X"===r||"x"===r?a.default(parseInt(t.substr(3),16)):a.default(parseInt(t.substr(2),10))}return e[t.slice(1,-1)]||t}}t.decodeHTML=function(){for(var e=Object.keys(o.default).sort(u),t=Object.keys(i.default).sort(u),r=0,n=0;r<t.length;r++)e[n]===t[r]?(t[r]+=";?",n++):t[r]+=";";var s=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),a=p(i.default);function l(e){return";"!==e.substr(-1)&&(e+=";"),a(e)}return function(e){return String(e).replace(s,l)}}()},2913:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(7607)),o=String.fromCodePoint||function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)};t.default=function(e){return e>=55296&&e<=57343||e>1114111?"�":(e in i.default&&(e=i.default[e]),o(e))}},571:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=void 0;var i=u(n(r(729)).default),o=p(i);t.encodeXML=g(i);var s,a,l=u(n(r(4168)).default),c=p(l);function u(e){return Object.keys(e).sort().reduce((function(t,r){return t[e[r]]="&"+r+";",t}),{})}function p(e){for(var t=[],r=[],n=0,i=Object.keys(e);n<i.length;n++){var o=i[n];1===o.length?t.push("\\"+o):r.push(o)}t.sort();for(var s=0;s<t.length-1;s++){for(var a=s;a<t.length-1&&t[a].charCodeAt(1)+1===t[a+1].charCodeAt(1);)a+=1;var l=1+a-s;l<3||t.splice(s,l,t[s]+"-"+t[a])}return r.unshift("["+t.join("")+"]"),new RegExp(r.join("|"),"g")}t.encodeHTML=(s=l,a=c,function(e){return e.replace(a,(function(e){return s[e]})).replace(d,h)}),t.encodeNonAsciiHTML=g(l);var d=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,f=null!=String.prototype.codePointAt?function(e){return e.codePointAt(0)}:function(e){return 1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536};function h(e){return"&#x"+(e.length>1?f(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}var m=new RegExp(o.source+"|"+d.source,"g");function g(e){return function(t){return t.replace(m,(function(t){return e[t]||h(t)}))}}t.escape=function(e){return e.replace(m,h)},t.escapeUTF8=function(e){return e.replace(o,h)}},7772:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.encodeHTML5=t.encodeHTML4=t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=t.encode=t.decodeStrict=t.decode=void 0;var n=r(722),i=r(571);t.decode=function(e,t){return(!t||t<=0?n.decodeXML:n.decodeHTML)(e)},t.decodeStrict=function(e,t){return(!t||t<=0?n.decodeXML:n.decodeHTMLStrict)(e)},t.encode=function(e,t){return(!t||t<=0?i.encodeXML:i.encodeHTML)(e)};var o=r(571);Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return o.encodeXML}}),Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return o.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return o.encodeNonAsciiHTML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return o.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return o.escapeUTF8}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return o.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return o.encodeHTML}});var s=r(722);Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return s.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return s.decodeXML}})},7613:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&o(t,e,r);return s(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.parseFeed=t.FeedHandler=void 0;var c,u,p=l(r(1142)),d=a(r(7241)),f=r(6666);!function(e){e[e.image=0]="image",e[e.audio=1]="audio",e[e.video=2]="video",e[e.document=3]="document",e[e.executable=4]="executable"}(c||(c={})),function(e){e[e.sample=0]="sample",e[e.full=1]="full",e[e.nonstop=2]="nonstop"}(u||(u={}));var h=function(e){function t(t,r){return"object"==typeof t&&(r=t=void 0),e.call(this,t,r)||this}return i(t,e),t.prototype.onend=function(){var e,t,r=b(x,this.dom);if(r){var n={};if("feed"===r.name){var i=r.children;n.type="atom",w(n,"id","id",i),w(n,"title","title",i);var o=y("href",b("link",i));o&&(n.link=o),w(n,"description","subtitle",i),(s=v("updated",i))&&(n.updated=new Date(s)),w(n,"author","email",i,!0),n.items=g("entry",i).map((function(e){var t={},r=e.children;w(t,"id","id",r),w(t,"title","title",r);var n=y("href",b("link",r));n&&(t.link=n);var i=v("summary",r)||v("content",r);i&&(t.description=i);var o=v("updated",r);return o&&(t.pubDate=new Date(o)),t.media=m(r),t}))}else{var s;i=null!==(t=null===(e=b("channel",r.children))||void 0===e?void 0:e.children)&&void 0!==t?t:[];n.type=r.name.substr(0,3),n.id="",w(n,"title","title",i),w(n,"link","link",i),w(n,"description","description",i),(s=v("lastBuildDate",i))&&(n.updated=new Date(s)),w(n,"author","managingEditor",i,!0),n.items=g("item",r.children).map((function(e){var t={},r=e.children;w(t,"id","guid",r),w(t,"title","title",r),w(t,"link","link",r),w(t,"description","description",r);var n=v("pubDate",r);return n&&(t.pubDate=new Date(n)),t.media=m(r),t}))}this.feed=n,this.handleCallback(null)}else this.handleCallback(new Error("couldn't find root of feed"))},t}(p.default);function m(e){return g("media:content",e).map((function(e){var t={medium:e.attribs.medium,isDefault:!!e.attribs.isDefault};return e.attribs.url&&(t.url=e.attribs.url),e.attribs.fileSize&&(t.fileSize=parseInt(e.attribs.fileSize,10)),e.attribs.type&&(t.type=e.attribs.type),e.attribs.expression&&(t.expression=e.attribs.expression),e.attribs.bitrate&&(t.bitrate=parseInt(e.attribs.bitrate,10)),e.attribs.framerate&&(t.framerate=parseInt(e.attribs.framerate,10)),e.attribs.samplingrate&&(t.samplingrate=parseInt(e.attribs.samplingrate,10)),e.attribs.channels&&(t.channels=parseInt(e.attribs.channels,10)),e.attribs.duration&&(t.duration=parseInt(e.attribs.duration,10)),e.attribs.height&&(t.height=parseInt(e.attribs.height,10)),e.attribs.width&&(t.width=parseInt(e.attribs.width,10)),e.attribs.lang&&(t.lang=e.attribs.lang),t}))}function g(e,t){return d.getElementsByTagName(e,t,!0)}function b(e,t){return d.getElementsByTagName(e,t,!0,1)[0]}function v(e,t,r){return void 0===r&&(r=!1),d.getText(d.getElementsByTagName(e,t,r,1)).trim()}function y(e,t){return t?t.attribs[e]:null}function w(e,t,r,n,i){void 0===i&&(i=!1);var o=v(r,n,i);o&&(e[t]=o)}function x(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}t.FeedHandler=h,t.parseFeed=function(e,t){void 0===t&&(t={xmlMode:!0});var r=new h(t);return new f.Parser(r,t).end(e),r.feed}},6666:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0;var i=n(r(34)),o=new Set(["input","option","optgroup","select","button","datalist","textarea"]),s=new Set(["p"]),a={tr:new Set(["tr","th","td"]),th:new Set(["th"]),td:new Set(["thead","th","td"]),body:new Set(["head","link","script"]),li:new Set(["li"]),p:s,h1:s,h2:s,h3:s,h4:s,h5:s,h6:s,select:o,input:o,output:o,button:o,datalist:o,textarea:o,option:new Set(["option"]),optgroup:new Set(["optgroup","option"]),dd:new Set(["dt","dd"]),dt:new Set(["dt","dd"]),address:s,article:s,aside:s,blockquote:s,details:s,div:s,dl:s,fieldset:s,figcaption:s,figure:s,footer:s,form:s,header:s,hr:s,main:s,nav:s,ol:s,pre:s,section:s,table:s,ul:s,rt:new Set(["rt","rp"]),rp:new Set(["rt","rp"]),tbody:new Set(["thead","tbody"]),tfoot:new Set(["thead","tbody"])},l=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),c=new Set(["math","svg"]),u=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),p=/\s|\//,d=function(){function e(e,t){var r,n,o,s,a;void 0===t&&(t={}),this.startIndex=0,this.endIndex=null,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.options=t,this.cbs=null!=e?e:{},this.lowerCaseTagNames=null!==(r=t.lowerCaseTags)&&void 0!==r?r:!t.xmlMode,this.lowerCaseAttributeNames=null!==(n=t.lowerCaseAttributeNames)&&void 0!==n?n:!t.xmlMode,this.tokenizer=new(null!==(o=t.Tokenizer)&&void 0!==o?o:i.default)(this.options,this),null===(a=(s=this.cbs).onparserinit)||void 0===a||a.call(s,this)}return e.prototype.updatePosition=function(e){null===this.endIndex?this.tokenizer.sectionStart<=e?this.startIndex=0:this.startIndex=this.tokenizer.sectionStart-e:this.startIndex=this.endIndex+1,this.endIndex=this.tokenizer.getAbsoluteIndex()},e.prototype.ontext=function(e){var t,r;this.updatePosition(1),this.endIndex--,null===(r=(t=this.cbs).ontext)||void 0===r||r.call(t,e)},e.prototype.onopentagname=function(e){var t,r;if(this.lowerCaseTagNames&&(e=e.toLowerCase()),this.tagname=e,!this.options.xmlMode&&Object.prototype.hasOwnProperty.call(a,e))for(var n=void 0;this.stack.length>0&&a[e].has(n=this.stack[this.stack.length-1]);)this.onclosetag(n);!this.options.xmlMode&&l.has(e)||(this.stack.push(e),c.has(e)?this.foreignContext.push(!0):u.has(e)&&this.foreignContext.push(!1)),null===(r=(t=this.cbs).onopentagname)||void 0===r||r.call(t,e),this.cbs.onopentag&&(this.attribs={})},e.prototype.onopentagend=function(){var e,t;this.updatePosition(1),this.attribs&&(null===(t=(e=this.cbs).onopentag)||void 0===t||t.call(e,this.tagname,this.attribs),this.attribs=null),!this.options.xmlMode&&this.cbs.onclosetag&&l.has(this.tagname)&&this.cbs.onclosetag(this.tagname),this.tagname=""},e.prototype.onclosetag=function(e){if(this.updatePosition(1),this.lowerCaseTagNames&&(e=e.toLowerCase()),(c.has(e)||u.has(e))&&this.foreignContext.pop(),!this.stack.length||!this.options.xmlMode&&l.has(e))this.options.xmlMode||"br"!==e&&"p"!==e||(this.onopentagname(e),this.closeCurrentTag());else{var t=this.stack.lastIndexOf(e);if(-1!==t)if(this.cbs.onclosetag)for(t=this.stack.length-t;t--;)this.cbs.onclosetag(this.stack.pop());else this.stack.length=t;else"p"!==e||this.options.xmlMode||(this.onopentagname(e),this.closeCurrentTag())}},e.prototype.onselfclosingtag=function(){this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?this.closeCurrentTag():this.onopentagend()},e.prototype.closeCurrentTag=function(){var e,t,r=this.tagname;this.onopentagend(),this.stack[this.stack.length-1]===r&&(null===(t=(e=this.cbs).onclosetag)||void 0===t||t.call(e,r),this.stack.pop())},e.prototype.onattribname=function(e){this.lowerCaseAttributeNames&&(e=e.toLowerCase()),this.attribname=e},e.prototype.onattribdata=function(e){this.attribvalue+=e},e.prototype.onattribend=function(e){var t,r;null===(r=(t=this.cbs).onattribute)||void 0===r||r.call(t,this.attribname,this.attribvalue,e),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribname="",this.attribvalue=""},e.prototype.getInstructionName=function(e){var t=e.search(p),r=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(r=r.toLowerCase()),r},e.prototype.ondeclaration=function(e){if(this.cbs.onprocessinginstruction){var t=this.getInstructionName(e);this.cbs.onprocessinginstruction("!"+t,"!"+e)}},e.prototype.onprocessinginstruction=function(e){if(this.cbs.onprocessinginstruction){var t=this.getInstructionName(e);this.cbs.onprocessinginstruction("?"+t,"?"+e)}},e.prototype.oncomment=function(e){var t,r,n,i;this.updatePosition(4),null===(r=(t=this.cbs).oncomment)||void 0===r||r.call(t,e),null===(i=(n=this.cbs).oncommentend)||void 0===i||i.call(n)},e.prototype.oncdata=function(e){var t,r,n,i,o,s;this.updatePosition(1),this.options.xmlMode||this.options.recognizeCDATA?(null===(r=(t=this.cbs).oncdatastart)||void 0===r||r.call(t),null===(i=(n=this.cbs).ontext)||void 0===i||i.call(n,e),null===(s=(o=this.cbs).oncdataend)||void 0===s||s.call(o)):this.oncomment("[CDATA["+e+"]]")},e.prototype.onerror=function(e){var t,r;null===(r=(t=this.cbs).onerror)||void 0===r||r.call(t,e)},e.prototype.onend=function(){var e,t;if(this.cbs.onclosetag)for(var r=this.stack.length;r>0;this.cbs.onclosetag(this.stack[--r]));null===(t=(e=this.cbs).onend)||void 0===t||t.call(e)},e.prototype.reset=function(){var e,t,r,n;null===(t=(e=this.cbs).onreset)||void 0===t||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack=[],null===(n=(r=this.cbs).onparserinit)||void 0===n||n.call(r,this)},e.prototype.parseComplete=function(e){this.reset(),this.end(e)},e.prototype.write=function(e){this.tokenizer.write(e)},e.prototype.end=function(e){this.tokenizer.end(e)},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){this.tokenizer.resume()},e.prototype.parseChunk=function(e){this.write(e)},e.prototype.done=function(e){this.end(e)},e}();t.Parser=d},34:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(2913)),o=n(r(4168)),s=n(r(7272)),a=n(r(729));function l(e){return" "===e||"\n"===e||"\t"===e||"\f"===e||"\r"===e}function c(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"}function u(e,t,r){var n=e.toLowerCase();return e===n?function(e,i){i===n?e._state=t:(e._state=r,e._index--)}:function(i,o){o===n||o===e?i._state=t:(i._state=r,i._index--)}}function p(e,t){var r=e.toLowerCase();return function(n,i){i===r||i===e?n._state=t:(n._state=3,n._index--)}}var d=u("C",24,16),f=u("D",25,16),h=u("A",26,16),m=u("T",27,16),g=u("A",28,16),b=p("R",35),v=p("I",36),y=p("P",37),w=p("T",38),x=u("R",40,1),O=u("I",41,1),C=u("P",42,1),S=u("T",43,1),_=p("Y",45),k=p("L",46),E=p("E",47),T=u("Y",49,1),N=u("L",50,1),P=u("E",51,1),A=p("I",54),M=p("T",55),D=p("L",56),R=p("E",57),I=u("I",58,1),L=u("T",59,1),j=u("L",60,1),V=u("E",61,1),F=u("#",63,64),q=u("X",66,65),B=function(){function e(e,t){var r;this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1,this.cbs=t,this.xmlMode=!!(null==e?void 0:e.xmlMode),this.decodeEntities=null===(r=null==e?void 0:e.decodeEntities)||void 0===r||r}return e.prototype.reset=function(){this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1},e.prototype.write=function(e){this.ended&&this.cbs.onerror(Error(".write() after done!")),this.buffer+=e,this.parse()},e.prototype.end=function(e){this.ended&&this.cbs.onerror(Error(".end() after done!")),e&&this.write(e),this.ended=!0,this.running&&this.finish()},e.prototype.pause=function(){this.running=!1},e.prototype.resume=function(){this.running=!0,this._index<this.buffer.length&&this.parse(),this.ended&&this.finish()},e.prototype.getAbsoluteIndex=function(){return this.bufferOffset+this._index},e.prototype.stateText=function(e){"<"===e?(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this._state=2,this.sectionStart=this._index):!this.decodeEntities||"&"!==e||1!==this.special&&4!==this.special||(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this.baseState=1,this._state=62,this.sectionStart=this._index)},e.prototype.isTagStartChar=function(e){return c(e)||this.xmlMode&&!l(e)&&"/"!==e&&">"!==e},e.prototype.stateBeforeTagName=function(e){"/"===e?this._state=5:"<"===e?(this.cbs.ontext(this.getSection()),this.sectionStart=this._index):">"===e||1!==this.special||l(e)?this._state=1:"!"===e?(this._state=15,this.sectionStart=this._index+1):"?"===e?(this._state=17,this.sectionStart=this._index+1):this.isTagStartChar(e)?(this._state=this.xmlMode||"s"!==e&&"S"!==e?this.xmlMode||"t"!==e&&"T"!==e?3:52:32,this.sectionStart=this._index):this._state=1},e.prototype.stateInTagName=function(e){("/"===e||">"===e||l(e))&&(this.emitToken("onopentagname"),this._state=8,this._index--)},e.prototype.stateBeforeClosingTagName=function(e){l(e)||(">"===e?this._state=1:1!==this.special?4===this.special||"s"!==e&&"S"!==e?4!==this.special||"t"!==e&&"T"!==e?(this._state=1,this._index--):this._state=53:this._state=33:this.isTagStartChar(e)?(this._state=6,this.sectionStart=this._index):(this._state=20,this.sectionStart=this._index))},e.prototype.stateInClosingTagName=function(e){(">"===e||l(e))&&(this.emitToken("onclosetag"),this._state=7,this._index--)},e.prototype.stateAfterClosingTagName=function(e){">"===e&&(this._state=1,this.sectionStart=this._index+1)},e.prototype.stateBeforeAttributeName=function(e){">"===e?(this.cbs.onopentagend(),this._state=1,this.sectionStart=this._index+1):"/"===e?this._state=4:l(e)||(this._state=9,this.sectionStart=this._index)},e.prototype.stateInSelfClosingTag=function(e){">"===e?(this.cbs.onselfclosingtag(),this._state=1,this.sectionStart=this._index+1,this.special=1):l(e)||(this._state=8,this._index--)},e.prototype.stateInAttributeName=function(e){("="===e||"/"===e||">"===e||l(e))&&(this.cbs.onattribname(this.getSection()),this.sectionStart=-1,this._state=10,this._index--)},e.prototype.stateAfterAttributeName=function(e){"="===e?this._state=11:"/"===e||">"===e?(this.cbs.onattribend(void 0),this._state=8,this._index--):l(e)||(this.cbs.onattribend(void 0),this._state=9,this.sectionStart=this._index)},e.prototype.stateBeforeAttributeValue=function(e){'"'===e?(this._state=12,this.sectionStart=this._index+1):"'"===e?(this._state=13,this.sectionStart=this._index+1):l(e)||(this._state=14,this.sectionStart=this._index,this._index--)},e.prototype.handleInAttributeValue=function(e,t){e===t?(this.emitToken("onattribdata"),this.cbs.onattribend(t),this._state=8):this.decodeEntities&&"&"===e&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},e.prototype.stateInAttributeValueDoubleQuotes=function(e){this.handleInAttributeValue(e,'"')},e.prototype.stateInAttributeValueSingleQuotes=function(e){this.handleInAttributeValue(e,"'")},e.prototype.stateInAttributeValueNoQuotes=function(e){l(e)||">"===e?(this.emitToken("onattribdata"),this.cbs.onattribend(null),this._state=8,this._index--):this.decodeEntities&&"&"===e&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},e.prototype.stateBeforeDeclaration=function(e){this._state="["===e?23:"-"===e?18:16},e.prototype.stateInDeclaration=function(e){">"===e&&(this.cbs.ondeclaration(this.getSection()),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateInProcessingInstruction=function(e){">"===e&&(this.cbs.onprocessinginstruction(this.getSection()),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateBeforeComment=function(e){"-"===e?(this._state=19,this.sectionStart=this._index+1):this._state=16},e.prototype.stateInComment=function(e){"-"===e&&(this._state=21)},e.prototype.stateInSpecialComment=function(e){">"===e&&(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index)),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateAfterComment1=function(e){this._state="-"===e?22:19},e.prototype.stateAfterComment2=function(e){">"===e?(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):"-"!==e&&(this._state=19)},e.prototype.stateBeforeCdata6=function(e){"["===e?(this._state=29,this.sectionStart=this._index+1):(this._state=16,this._index--)},e.prototype.stateInCdata=function(e){"]"===e&&(this._state=30)},e.prototype.stateAfterCdata1=function(e){this._state="]"===e?31:29},e.prototype.stateAfterCdata2=function(e){">"===e?(this.cbs.oncdata(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):"]"!==e&&(this._state=29)},e.prototype.stateBeforeSpecialS=function(e){"c"===e||"C"===e?this._state=34:"t"===e||"T"===e?this._state=44:(this._state=3,this._index--)},e.prototype.stateBeforeSpecialSEnd=function(e){2!==this.special||"c"!==e&&"C"!==e?3!==this.special||"t"!==e&&"T"!==e?this._state=1:this._state=48:this._state=39},e.prototype.stateBeforeSpecialLast=function(e,t){("/"===e||">"===e||l(e))&&(this.special=t),this._state=3,this._index--},e.prototype.stateAfterSpecialLast=function(e,t){">"===e||l(e)?(this.special=1,this._state=6,this.sectionStart=this._index-t,this._index--):this._state=1},e.prototype.parseFixedEntity=function(e){if(void 0===e&&(e=this.xmlMode?a.default:o.default),this.sectionStart+1<this._index){var t=this.buffer.substring(this.sectionStart+1,this._index);Object.prototype.hasOwnProperty.call(e,t)&&(this.emitPartial(e[t]),this.sectionStart=this._index+1)}},e.prototype.parseLegacyEntity=function(){for(var e=this.sectionStart+1,t=Math.min(this._index-e,6);t>=2;){var r=this.buffer.substr(e,t);if(Object.prototype.hasOwnProperty.call(s.default,r))return this.emitPartial(s.default[r]),void(this.sectionStart+=t+1);t--}},e.prototype.stateInNamedEntity=function(e){";"===e?(this.parseFixedEntity(),1===this.baseState&&this.sectionStart+1<this._index&&!this.xmlMode&&this.parseLegacyEntity(),this._state=this.baseState):(e<"0"||e>"9")&&!c(e)&&(this.xmlMode||this.sectionStart+1===this._index||(1!==this.baseState?"="!==e&&this.parseFixedEntity(s.default):this.parseLegacyEntity()),this._state=this.baseState,this._index--)},e.prototype.decodeNumericEntity=function(e,t,r){var n=this.sectionStart+e;if(n!==this._index){var o=this.buffer.substring(n,this._index),s=parseInt(o,t);this.emitPartial(i.default(s)),this.sectionStart=r?this._index+1:this._index}this._state=this.baseState},e.prototype.stateInNumericEntity=function(e){";"===e?this.decodeNumericEntity(2,10,!0):(e<"0"||e>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(2,10,!1),this._index--)},e.prototype.stateInHexEntity=function(e){";"===e?this.decodeNumericEntity(3,16,!0):(e<"a"||e>"f")&&(e<"A"||e>"F")&&(e<"0"||e>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(3,16,!1),this._index--)},e.prototype.cleanup=function(){this.sectionStart<0?(this.buffer="",this.bufferOffset+=this._index,this._index=0):this.running&&(1===this._state?(this.sectionStart!==this._index&&this.cbs.ontext(this.buffer.substr(this.sectionStart)),this.buffer="",this.bufferOffset+=this._index,this._index=0):this.sectionStart===this._index?(this.buffer="",this.bufferOffset+=this._index,this._index=0):(this.buffer=this.buffer.substr(this.sectionStart),this._index-=this.sectionStart,this.bufferOffset+=this.sectionStart),this.sectionStart=0)},e.prototype.parse=function(){for(;this._index<this.buffer.length&&this.running;){var e=this.buffer.charAt(this._index);1===this._state?this.stateText(e):12===this._state?this.stateInAttributeValueDoubleQuotes(e):9===this._state?this.stateInAttributeName(e):19===this._state?this.stateInComment(e):20===this._state?this.stateInSpecialComment(e):8===this._state?this.stateBeforeAttributeName(e):3===this._state?this.stateInTagName(e):6===this._state?this.stateInClosingTagName(e):2===this._state?this.stateBeforeTagName(e):10===this._state?this.stateAfterAttributeName(e):13===this._state?this.stateInAttributeValueSingleQuotes(e):11===this._state?this.stateBeforeAttributeValue(e):5===this._state?this.stateBeforeClosingTagName(e):7===this._state?this.stateAfterClosingTagName(e):32===this._state?this.stateBeforeSpecialS(e):21===this._state?this.stateAfterComment1(e):14===this._state?this.stateInAttributeValueNoQuotes(e):4===this._state?this.stateInSelfClosingTag(e):16===this._state?this.stateInDeclaration(e):15===this._state?this.stateBeforeDeclaration(e):22===this._state?this.stateAfterComment2(e):18===this._state?this.stateBeforeComment(e):33===this._state?this.stateBeforeSpecialSEnd(e):53===this._state?I(this,e):39===this._state?x(this,e):40===this._state?O(this,e):41===this._state?C(this,e):34===this._state?b(this,e):35===this._state?v(this,e):36===this._state?y(this,e):37===this._state?w(this,e):38===this._state?this.stateBeforeSpecialLast(e,2):42===this._state?S(this,e):43===this._state?this.stateAfterSpecialLast(e,6):44===this._state?_(this,e):29===this._state?this.stateInCdata(e):45===this._state?k(this,e):46===this._state?E(this,e):47===this._state?this.stateBeforeSpecialLast(e,3):48===this._state?T(this,e):49===this._state?N(this,e):50===this._state?P(this,e):51===this._state?this.stateAfterSpecialLast(e,5):52===this._state?A(this,e):54===this._state?M(this,e):55===this._state?D(this,e):56===this._state?R(this,e):57===this._state?this.stateBeforeSpecialLast(e,4):58===this._state?L(this,e):59===this._state?j(this,e):60===this._state?V(this,e):61===this._state?this.stateAfterSpecialLast(e,5):17===this._state?this.stateInProcessingInstruction(e):64===this._state?this.stateInNamedEntity(e):23===this._state?d(this,e):62===this._state?F(this,e):24===this._state?f(this,e):25===this._state?h(this,e):30===this._state?this.stateAfterCdata1(e):31===this._state?this.stateAfterCdata2(e):26===this._state?m(this,e):27===this._state?g(this,e):28===this._state?this.stateBeforeCdata6(e):66===this._state?this.stateInHexEntity(e):65===this._state?this.stateInNumericEntity(e):63===this._state?q(this,e):this.cbs.onerror(Error("unknown _state"),this._state),this._index++}this.cleanup()},e.prototype.finish=function(){this.sectionStart<this._index&&this.handleTrailingData(),this.cbs.onend()},e.prototype.handleTrailingData=function(){var e=this.buffer.substr(this.sectionStart);29===this._state||30===this._state||31===this._state?this.cbs.oncdata(e):19===this._state||21===this._state||22===this._state?this.cbs.oncomment(e):64!==this._state||this.xmlMode?65!==this._state||this.xmlMode?66!==this._state||this.xmlMode?3!==this._state&&8!==this._state&&11!==this._state&&10!==this._state&&9!==this._state&&13!==this._state&&12!==this._state&&14!==this._state&&6!==this._state&&this.cbs.ontext(e):(this.decodeNumericEntity(3,16,!1),this.sectionStart<this._index&&(this._state=this.baseState,this.handleTrailingData())):(this.decodeNumericEntity(2,10,!1),this.sectionStart<this._index&&(this._state=this.baseState,this.handleTrailingData())):(this.parseLegacyEntity(),this.sectionStart<this._index&&(this._state=this.baseState,this.handleTrailingData()))},e.prototype.getSection=function(){return this.buffer.substring(this.sectionStart,this._index)},e.prototype.emitToken=function(e){this.cbs[e](this.getSection()),this.sectionStart=-1},e.prototype.emitPartial=function(e){1!==this.baseState?this.cbs.onattribdata(e):this.cbs.ontext(e)},e}();t.default=B},5106:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RssHandler=t.DefaultHandler=t.DomUtils=t.ElementType=t.Tokenizer=t.createDomStream=t.parseDOM=t.parseDocument=t.DomHandler=t.Parser=void 0;var l=r(6666);Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return l.Parser}});var c=r(1142);function u(e,t){var r=new c.DomHandler(void 0,t);return new l.Parser(r,t).end(e),r.root}Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return c.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return c.DomHandler}}),t.parseDocument=u,t.parseDOM=function(e,t){return u(e,t).children},t.createDomStream=function(e,t,r){var n=new c.DomHandler(e,t,r);return new l.Parser(n,t)};var p=r(34);Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return a(p).default}});var d=o(r(9960));t.ElementType=d,s(r(7613),t),t.DomUtils=o(r(7241));var f=r(7613);Object.defineProperty(t,"RssHandler",{enumerable:!0,get:function(){return f.FeedHandler}})},977:(e,t)=>{"use strict";function r(e){return"[object Object]"===Object.prototype.toString.call(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=function(e){var t,n;return!1!==r(e)&&(void 0===(t=e.constructor)||!1!==r(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}},1476:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var i=n(r(7848)),o=r(6678);t.default=function(e,t){var r={};return e&&"string"==typeof e?((0,i.default)(e,(function(e,n){e&&n&&(r[(0,o.camelCase)(e,t)]=n)})),r):r}},6678:(e,t)=>{"use strict";t.__esModule=!0,t.camelCase=void 0;var r=/^--[a-zA-Z0-9-]+$/,n=/-([a-z])/g,i=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||i.test(e)||r.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(s,l):e.replace(o,l)).replace(n,a))}},7848:(e,t,r)=>{var n=r(8139);e.exports=function(e,t){var r,i=null;if(!e||"string"!=typeof e)return i;for(var o,s,a=n(e),l="function"==typeof t,c=0,u=a.length;c<u;c++)o=(r=a[c]).property,s=r.value,l?t(o,s,r):s&&(i||(i={}),i[o]=s);return i}},9196:e=>{"use strict";e.exports=window.React},2868:()=>{},4777:()=>{},9830:()=>{},209:()=>{},7414:()=>{},2618:e=>{e.exports={nanoid:(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(r=t)=>{let n="",i=r;for(;i--;)n+=e[Math.random()*e.length|0];return n}}},7607:e=>{"use strict";e.exports=JSON.parse('{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}')},4168:e=>{"use strict";e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}')},7272:e=>{"use strict";e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"­","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}')},729:e=>{"use strict";e.exports=JSON.parse('{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}')}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.blocks;const t=function(t){var r=t.namespace,n=t.title,i=t.icon;(0,e.registerBlockCollection)(r,{title:n,icon:i})};function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(488);o.domToReact,o.htmlToDOM,o.attributesToProps,o.Element;const s=o,a=window.wp.blockEditor,l=window.wp.components;function c(){return c=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},c.apply(this,arguments)}var u=r(9196);var p=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(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.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(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.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=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]}(t);try{r.insertRule(e,r.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),d=Math.abs,f=String.fromCharCode,h=Object.assign;function m(e){return e.trim()}function g(e,t,r){return e.replace(t,r)}function b(e,t){return e.indexOf(t)}function v(e,t){return 0|e.charCodeAt(t)}function y(e,t,r){return e.slice(t,r)}function w(e){return e.length}function x(e){return e.length}function O(e,t){return t.push(e),e}var C=1,S=1,_=0,k=0,E=0,T="";function N(e,t,r,n,i,o,s){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:C,column:S,length:s,return:""}}function P(e,t){return h(N("",null,null,"",null,null,0),e,{length:-e.length},t)}function A(){return E=k>0?v(T,--k):0,S--,10===E&&(S=1,C--),E}function M(){return E=k<_?v(T,k++):0,S++,10===E&&(S=1,C++),E}function D(){return v(T,k)}function R(){return k}function I(e,t){return y(T,e,t)}function L(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function j(e){return C=S=1,_=w(T=e),k=0,[]}function V(e){return T="",e}function F(e){return m(I(k-1,H(91===e?e+2:40===e?e+1:e)))}function q(e){for(;(E=D())&&E<33;)M();return L(e)>2||L(E)>3?"":" "}function B(e,t){for(;--t&&M()&&!(E<48||E>102||E>57&&E<65||E>70&&E<97););return I(e,R()+(t<6&&32==D()&&32==M()))}function H(e){for(;M();)switch(E){case e:return k;case 34:case 39:34!==e&&39!==e&&H(E);break;case 40:41===e&&H(e);break;case 92:M()}return k}function U(e,t){for(;M()&&e+E!==57&&(e+E!==84||47!==D()););return"/*"+I(t,k-1)+"*"+f(47===e?e:M())}function z(e){for(;!L(D());)M();return I(e,k)}var $="-ms-",G="-moz-",W="-webkit-",X="comm",Z="rule",Y="decl",J="@keyframes";function K(e,t){for(var r="",n=x(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function Q(e,t,r,n){switch(e.type){case"@import":case Y:return e.return=e.return||e.value;case X:return"";case J:return e.return=e.value+"{"+K(e.children,n)+"}";case Z:e.value=e.props.join(",")}return w(r=K(e.children,n))?e.return=e.value+"{"+r+"}":""}function ee(e,t){switch(function(e,t){return(((t<<2^v(e,0))<<2^v(e,1))<<2^v(e,2))<<2^v(e,3)}(e,t)){case 5103:return W+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return W+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return W+e+G+e+$+e+e;case 6828:case 4268:return W+e+$+e+e;case 6165:return W+e+$+"flex-"+e+e;case 5187:return W+e+g(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return W+e+$+"flex-item-"+g(e,/flex-|-self/,"")+e;case 4675:return W+e+$+"flex-line-pack"+g(e,/align-content|flex-|-self/,"")+e;case 5548:return W+e+$+g(e,"shrink","negative")+e;case 5292:return W+e+$+g(e,"basis","preferred-size")+e;case 6060:return W+"box-"+g(e,"-grow","")+W+e+$+g(e,"grow","positive")+e;case 4554:return W+g(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return g(g(g(e,/(zoom-|grab)/,W+"$1"),/(image-set)/,W+"$1"),e,"")+e;case 5495:case 3959:return g(e,/(image-set\([^]*)/,W+"$1$`$1");case 4968:return g(g(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+W+e+e;case 4095:case 3583:case 4068:case 2532:return g(e,/(.+)-inline(.+)/,W+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(w(e)-1-t>6)switch(v(e,t+1)){case 109:if(45!==v(e,t+4))break;case 102:return g(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+G+(108==v(e,t+3)?"$3":"$2-$3"))+e;case 115:return~b(e,"stretch")?ee(g(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==v(e,t+1))break;case 6444:switch(v(e,w(e)-3-(~b(e,"!important")&&10))){case 107:return g(e,":",":"+W)+e;case 101:return g(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+W+(45===v(e,14)?"inline-":"")+"box$3$1"+W+"$2$3$1"+$+"$2box$3")+e}break;case 5936:switch(v(e,t+11)){case 114:return W+e+$+g(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return W+e+$+g(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return W+e+$+g(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return W+e+$+e+e}return e}function te(e){return V(re("",null,null,null,[""],e=j(e),0,[0],e))}function re(e,t,r,n,i,o,s,a,l){for(var c=0,u=0,p=s,d=0,h=0,m=0,v=1,y=1,x=1,C=0,S="",_=i,k=o,E=n,T=S;y;)switch(m=C,C=M()){case 40:if(108!=m&&58==T.charCodeAt(p-1)){-1!=b(T+=g(F(C),"&","&\f"),"&\f")&&(x=-1);break}case 34:case 39:case 91:T+=F(C);break;case 9:case 10:case 13:case 32:T+=q(m);break;case 92:T+=B(R()-1,7);continue;case 47:switch(D()){case 42:case 47:O(ie(U(M(),R()),t,r),l);break;default:T+="/"}break;case 123*v:a[c++]=w(T)*x;case 125*v:case 59:case 0:switch(C){case 0:case 125:y=0;case 59+u:h>0&&w(T)-p&&O(h>32?oe(T+";",n,r,p-1):oe(g(T," ","")+";",n,r,p-2),l);break;case 59:T+=";";default:if(O(E=ne(T,t,r,c,u,i,a,S,_=[],k=[],p),o),123===C)if(0===u)re(T,t,E,E,_,o,p,a,k);else switch(d){case 100:case 109:case 115:re(e,E,E,n&&O(ne(e,E,E,0,0,i,a,S,i,_=[],p),k),i,k,p,a,n?_:k);break;default:re(T,E,E,E,[""],k,0,a,k)}}c=u=h=0,v=x=1,S=T="",p=s;break;case 58:p=1+w(T),h=m;default:if(v<1)if(123==C)--v;else if(125==C&&0==v++&&125==A())continue;switch(T+=f(C),C*v){case 38:x=u>0?1:(T+="\f",-1);break;case 44:a[c++]=(w(T)-1)*x,x=1;break;case 64:45===D()&&(T+=F(M())),d=D(),u=p=w(S=T+=z(R())),C++;break;case 45:45===m&&2==w(T)&&(v=0)}}return o}function ne(e,t,r,n,i,o,s,a,l,c,u){for(var p=i-1,f=0===i?o:[""],h=x(f),b=0,v=0,w=0;b<n;++b)for(var O=0,C=y(e,p+1,p=d(v=s[b])),S=e;O<h;++O)(S=m(v>0?f[O]+" "+C:g(C,/&\f/g,f[O])))&&(l[w++]=S);return N(e,t,r,0===i?Z:a,l,c,u)}function ie(e,t,r){return N(e,t,r,X,f(E),y(e,2,-2),0)}function oe(e,t,r,n){return N(e,t,r,Y,y(e,0,n),y(e,n+1,-1),n)}var se=function(e,t,r){for(var n=0,i=0;n=i,i=D(),38===n&&12===i&&(t[r]=1),!L(i);)M();return I(e,k)},ae=function(e,t){return V(function(e,t){var r=-1,n=44;do{switch(L(n)){case 0:38===n&&12===D()&&(t[r]=1),e[r]+=se(k-1,t,r);break;case 2:e[r]+=F(n);break;case 4:if(44===n){e[++r]=58===D()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=f(n)}}while(n=M());return e}(j(e),t))},le=new WeakMap,ce=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||le.get(r))&&!n){le.set(e,!0);for(var i=[],o=ae(t,i),s=r.props,a=0,l=0;a<o.length;a++)for(var c=0;c<s.length;c++,l++)e.props[l]=i[a]?o[a].replace(/&\f/g,s[c]):s[c]+" "+o[a]}}},ue=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},pe=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Y:e.return=ee(e.value,e.length);break;case J:return K([P(e,{value:g(e.value,"@","@"+W)})],n);case Z:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return K([P(e,{props:[g(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return K([P(e,{props:[g(t,/:(plac\w+)/,":-webkit-input-$1")]}),P(e,{props:[g(t,/:(plac\w+)/,":-moz-$1")]}),P(e,{props:[g(t,/:(plac\w+)/,$+"input-$1")]})],n)}return""}))}}];const de=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n=e.stylisPlugins||pe;var i,o,s={},a=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)s[t[r]]=!0;a.push(e)}));var l,c,u,d,f=[Q,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],h=(c=[ce,ue].concat(n,f),u=x(c),function(e,t,r,n){for(var i="",o=0;o<u;o++)i+=c[o](e,t,r,n)||"";return i});o=function(e,t,r,n){l=r,K(te(e?e+"{"+t.styles+"}":t.styles),h),n&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new p({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:o};return m.sheet.hydrate(a),m};function fe(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "})),n}var he=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},me=function(e,t,r){he(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+n:"",i,e.sheet,!0);i=i.next}while(void 0!==i)}};const ge=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)};const be={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};var ve=/[A-Z]|^ms/g,ye=/_EMO_([^_]+?)_([^]*?)_EMO_/g,we=function(e){return 45===e.charCodeAt(1)},xe=function(e){return null!=e&&"boolean"!=typeof e},Oe=function(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}((function(e){return we(e)?e:e.replace(ve,"-$&").toLowerCase()})),Ce=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ye,(function(e,t,r){return _e={name:t,styles:r,next:_e},t}))}return 1===be[e]||we(e)||"number"!=typeof t||0===t?t:t+"px"};function Se(e,t,r){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 _e={name:r.name,styles:r.styles,next:_e},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)_e={name:n.name,styles:n.styles,next:_e},n=n.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Se(e,t,r[i])+";";else for(var o in r){var s=r[o];if("object"!=typeof s)null!=t&&void 0!==t[s]?n+=o+"{"+t[s]+"}":xe(s)&&(n+=Oe(o)+":"+Ce(o,s)+";");else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var a=Se(e,t,s);switch(o){case"animation":case"animationName":n+=Oe(o)+":"+a+";";break;default:n+=o+"{"+a+"}"}}else for(var l=0;l<s.length;l++)xe(s[l])&&(n+=Oe(o)+":"+Ce(o,s[l])+";")}return n}(e,t,r);case"function":if(void 0!==e){var i=_e,o=r(e);return _e=i,Se(e,t,o)}}if(null==t)return r;var s=t[r];return void 0!==s?s:r}var _e,ke=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var Ee=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,i="";_e=void 0;var o=e[0];null==o||void 0===o.raw?(n=!1,i+=Se(r,t,o)):i+=o[0];for(var s=1;s<e.length;s++)i+=Se(r,t,e[s]),n&&(i+=o[s]);ke.lastIndex=0;for(var a,l="";null!==(a=ke.exec(i));)l+="-"+a[1];return{name:ge(i)+l,styles:i,next:_e}},Te={}.hasOwnProperty,Ne=(0,u.createContext)("undefined"!=typeof HTMLElement?de({key:"css"}):null);var Pe=Ne.Provider,Ae=function(e){return(0,u.forwardRef)((function(t,r){var n=(0,u.useContext)(Ne);return e(t,n,r)}))},Me=(0,u.createContext)({});var De=u.useInsertionEffect?u.useInsertionEffect:function(e){e()};function Re(e){De(e)}var Ie="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Le=function(e,t){var r={};for(var n in t)Te.call(t,n)&&(r[n]=t[n]);return r[Ie]=e,r},je=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;he(t,r,n);Re((function(){return me(t,r,n)}));return null},Ve=Ae((function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var i=e[Ie],o=[n],s="";"string"==typeof e.className?s=fe(t.registered,o,e.className):null!=e.className&&(s=e.className+" ");var a=Ee(o,void 0,(0,u.useContext)(Me));s+=t.key+"-"+a.name;var l={};for(var c in e)Te.call(e,c)&&"css"!==c&&c!==Ie&&(l[c]=e[c]);return l.ref=r,l.className=s,(0,u.createElement)(u.Fragment,null,(0,u.createElement)(je,{cache:t,serialized:a,isStringTag:"string"==typeof i}),(0,u.createElement)(i,l))}));r(8679);var Fe=function(e,t){var r=arguments;if(null==t||!Te.call(t,"css"))return u.createElement.apply(void 0,r);var n=r.length,i=new Array(n);i[0]=Ve,i[1]=Le(e,t);for(var o=2;o<n;o++)i[o]=r[o];return u.createElement.apply(null,i)};u.useInsertionEffect?u.useInsertionEffect:u.useLayoutEffect;function qe(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ee(t)}var Be=function e(t){for(var r=t.length,n=0,i="";n<r;n++){var o=t[n];if(null!=o){var s=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))s=e(o);else for(var a in s="",o)o[a]&&a&&(s&&(s+=" "),s+=a);break;default:s=o}s&&(i&&(i+=" "),i+=s)}}return i};function He(e,t,r){var n=[],i=fe(e,n,r);return n.length<2?r:i+t(n)}var Ue=function(e){var t=e.cache,r=e.serializedArr;Re((function(){for(var e=0;e<r.length;e++)me(t,r[e],!1)}));return null},ze=Ae((function(e,t){var r=[],n=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var o=Ee(n,t.registered);return r.push(o),he(t,o,!1),t.key+"-"+o.name},i={css:n,cx:function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return He(t.registered,n,Be(r))},theme:(0,u.useContext)(Me)},o=e.children(i);return!0,(0,u.createElement)(u.Fragment,null,(0,u.createElement)(Ue,{cache:t,serializedArr:r}),o)}));function $e(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function We(e,t){if(e){if("string"==typeof e)return Ge(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ge(e,t):void 0}}function Xe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],s=!0,a=!1;try{for(r=r.call(e);!(s=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==r.return||r.return()}finally{if(a)throw i}}return o}}(e,t)||We(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ye(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Je(e,t,r){return t&&Ye(e.prototype,t),r&&Ye(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ke(e,t){return Ke=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ke(e,t)}function Qe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ke(e,t)}const et=window.ReactDOM;function tt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rt(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?rt(Object(r),!0).forEach((function(t){tt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function it(e){return it=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},it(e)}function ot(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function st(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=it(e);if(t){var i=it(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ot(this,r)}}var at=["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],lt=function(){};function ct(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function ut(e,t,r){var n=[r];if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&n.push("".concat(ct(e,i)));return n.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var pt=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===n(e)&&null!==e?[e]:[];var t},dt=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,nt({},$e(e,at))};function ft(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function ht(e){return ft(e)?window.pageYOffset:e.scrollTop}function mt(e,t){ft(e)?window.scrollTo(0,t):e.scrollTop=t}function gt(e,t,r,n){return r*((e=e/n-1)*e*e+1)+t}function bt(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:lt,i=ht(e),o=t-i,s=10,a=0;function l(){var t=gt(a+=s,i,o,r);mt(e,t),a<r?window.requestAnimationFrame(l):n(e)}l()}function vt(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var yt=!1,wt={get passive(){return yt=!0}},xt="undefined"!=typeof window?window:{};xt.addEventListener&&xt.removeEventListener&&(xt.addEventListener("p",lt,wt),xt.removeEventListener("p",lt,!1));var Ot=yt;function Ct(e){return null!=e}function St(e,t,r){return e?t:r}function _t(e){var t=e.maxHeight,r=e.menuEl,n=e.minHeight,i=e.placement,o=e.shouldScroll,s=e.isFixedPosition,a=e.theme.spacing,l=function(e){var t=getComputedStyle(e),r="absolute"===t.position,n=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!r||"static"!==t.position)&&n.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}(r),c={placement:"bottom",maxHeight:t};if(!r||!r.offsetParent)return c;var u,p=l.getBoundingClientRect().height,d=r.getBoundingClientRect(),f=d.bottom,h=d.height,m=d.top,g=r.offsetParent.getBoundingClientRect().top,b=s?window.innerHeight:ft(u=l)?window.innerHeight:u.clientHeight,v=ht(l),y=parseInt(getComputedStyle(r).marginBottom,10),w=parseInt(getComputedStyle(r).marginTop,10),x=g-w,O=b-m,C=x+v,S=p-v-m,_=f-b+v+y,k=v+m-w,E=160;switch(i){case"auto":case"bottom":if(O>=h)return{placement:"bottom",maxHeight:t};if(S>=h&&!s)return o&&bt(l,_,E),{placement:"bottom",maxHeight:t};if(!s&&S>=n||s&&O>=n)return o&&bt(l,_,E),{placement:"bottom",maxHeight:s?O-y:S-y};if("auto"===i||s){var T=t,N=s?x:C;return N>=n&&(T=Math.min(N-y-a.controlHeight,t)),{placement:"top",maxHeight:T}}if("bottom"===i)return o&&mt(l,_),{placement:"bottom",maxHeight:t};break;case"top":if(x>=h)return{placement:"top",maxHeight:t};if(C>=h&&!s)return o&&bt(l,k,E),{placement:"top",maxHeight:t};if(!s&&C>=n||s&&x>=n){var P=t;return(!s&&C>=n||s&&x>=n)&&(P=s?x-w:C-w),o&&bt(l,k,E),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}var kt=function(e){return"auto"===e?"bottom":e},Et=(0,u.createContext)({getPortalPlacement:null}),Tt=function(e){Qe(r,e);var t=st(r);function r(){var e;Ze(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.context=void 0,e.getPlacement=function(t){var r=e.props,n=r.minMenuHeight,i=r.maxMenuHeight,o=r.menuPlacement,s=r.menuPosition,a=r.menuShouldScrollIntoView,l=r.theme;if(t){var c="fixed"===s,u=_t({maxHeight:i,menuEl:t,minHeight:n,placement:o,shouldScroll:a&&!c,isFixedPosition:c,theme:l}),p=e.context.getPortalPlacement;p&&p(u),e.setState(u)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,r=e.state.placement||kt(t);return nt(nt({},e.props),{},{placement:r,maxHeight:e.state.maxHeight})},e}return Je(r,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),r}(u.Component);Tt.contextType=Et;var Nt=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"}},Pt=Nt,At=Nt,Mt=function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,o=e.innerProps;return Fe("div",c({css:i("noOptionsMessage",e),className:n({"menu-notice":!0,"menu-notice--no-options":!0},r)},o),t)};Mt.defaultProps={children:"No options"};var Dt=function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,o=e.innerProps;return Fe("div",c({css:i("loadingMessage",e),className:n({"menu-notice":!0,"menu-notice--loading":!0},r)},o),t)};Dt.defaultProps={children:"Loading..."};var Rt,It=function(e){Qe(r,e);var t=st(r);function r(){var e;Ze(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!==kt(e.props.menuPlacement)&&e.setState({placement:r})},e}return Je(r,[{key:"render",value:function(){var e=this.props,t=e.appendTo,r=e.children,n=e.className,i=e.controlElement,o=e.cx,s=e.innerProps,a=e.menuPlacement,l=e.menuPosition,u=e.getStyles,p="fixed"===l;if(!t&&!p||!i)return null;var d=this.state.placement||kt(a),f=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}}(i),h=p?0:window.pageYOffset,m=f[d]+h,g=Fe("div",c({css:u("menuPortal",{offset:m,position:l,rect:f}),className:o({"menu-portal":!0},n)},s),r);return Fe(Et.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?(0,et.createPortal)(g,t):g)}}]),r}(u.Component),Lt=["size"];var jt,Vt,Ft={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},qt=function(e){var t=e.size,r=$e(e,Lt);return Fe("svg",c({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Ft},r))},Bt=function(e){return Fe(qt,c({size:20},e),Fe("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"}))},Ht=function(e){return Fe(qt,c({size:20},e),Fe("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"}))},Ut=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}}},zt=Ut,$t=Ut,Gt=function(){var e=qe.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_"}}}(Rt||(jt=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Vt||(Vt=jt.slice(0)),Rt=Object.freeze(Object.defineProperties(jt,{raw:{value:Object.freeze(Vt)}})))),Wt=function(e){var t=e.delay,r=e.offset;return Fe("span",{css:qe({animation:"".concat(Gt," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Xt=function(e){var t=e.className,r=e.cx,n=e.getStyles,i=e.innerProps,o=e.isRtl;return Fe("div",c({css:n("loadingIndicator",e),className:r({indicator:!0,"loading-indicator":!0},t)},i),Fe(Wt,{delay:0,offset:o}),Fe(Wt,{delay:160,offset:!0}),Fe(Wt,{delay:320,offset:!o}))};Xt.defaultProps={size:4};var Zt=["data"],Yt=["innerRef","isDisabled","isHidden","inputClassName"],Jt={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Kt={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":nt({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Jt)},Qt=function(e){return nt({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Jt)},er=function(e){var t=e.children,r=e.innerProps;return Fe("div",r,t)};var tr={ClearIndicator:function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,o=e.innerProps;return Fe("div",c({css:i("clearIndicator",e),className:n({indicator:!0,"clear-indicator":!0},r)},o),t||Fe(Bt,null))},Control:function(e){var t=e.children,r=e.cx,n=e.getStyles,i=e.className,o=e.isDisabled,s=e.isFocused,a=e.innerRef,l=e.innerProps,u=e.menuIsOpen;return Fe("div",c({ref:a,css:n("control",e),className:r({control:!0,"control--is-disabled":o,"control--is-focused":s,"control--menu-is-open":u},i)},l),t)},DropdownIndicator:function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,o=e.innerProps;return Fe("div",c({css:i("dropdownIndicator",e),className:n({indicator:!0,"dropdown-indicator":!0},r)},o),t||Fe(Ht,null))},DownChevron:Ht,CrossIcon:Bt,Group:function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,o=e.Heading,s=e.headingProps,a=e.innerProps,l=e.label,u=e.theme,p=e.selectProps;return Fe("div",c({css:i("group",e),className:n({group:!0},r)},a),Fe(o,c({},s,{selectProps:p,theme:u,getStyles:i,cx:n}),l),Fe("div",null,t))},GroupHeading:function(e){var t=e.getStyles,r=e.cx,n=e.className,i=dt(e);i.data;var o=$e(i,Zt);return Fe("div",c({css:t("groupHeading",e),className:r({"group-heading":!0},n)},o))},IndicatorsContainer:function(e){var t=e.children,r=e.className,n=e.cx,i=e.innerProps,o=e.getStyles;return Fe("div",c({css:o("indicatorsContainer",e),className:n({indicators:!0},r)},i),t)},IndicatorSeparator:function(e){var t=e.className,r=e.cx,n=e.getStyles,i=e.innerProps;return Fe("span",c({},i,{css:n("indicatorSeparator",e),className:r({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,r=e.cx,n=e.getStyles,i=e.value,o=dt(e),s=o.innerRef,a=o.isDisabled,l=o.isHidden,u=o.inputClassName,p=$e(o,Yt);return Fe("div",{className:r({"input-container":!0},t),css:n("input",e),"data-value":i||""},Fe("input",c({className:r({input:!0},u),ref:s,style:Qt(l),disabled:a},p)))},LoadingIndicator:Xt,Menu:function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,o=e.innerRef,s=e.innerProps;return Fe("div",c({css:i("menu",e),className:n({menu:!0},r),ref:o},s),t)},MenuList:function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,o=e.innerProps,s=e.innerRef,a=e.isMulti;return Fe("div",c({css:i("menuList",e),className:n({"menu-list":!0,"menu-list--is-multi":a},r),ref:s},o),t)},MenuPortal:It,LoadingMessage:Dt,NoOptionsMessage:Mt,MultiValue:function(e){var t=e.children,r=e.className,n=e.components,i=e.cx,o=e.data,s=e.getStyles,a=e.innerProps,l=e.isDisabled,c=e.removeProps,u=e.selectProps,p=n.Container,d=n.Label,f=n.Remove;return Fe(ze,null,(function(n){var h=n.css,m=n.cx;return Fe(p,{data:o,innerProps:nt({className:m(h(s("multiValue",e)),i({"multi-value":!0,"multi-value--is-disabled":l},r))},a),selectProps:u},Fe(d,{data:o,innerProps:{className:m(h(s("multiValueLabel",e)),i({"multi-value__label":!0},r))},selectProps:u},t),Fe(f,{data:o,innerProps:nt({className:m(h(s("multiValueRemove",e)),i({"multi-value__remove":!0},r)),"aria-label":"Remove ".concat(t||"option")},c),selectProps:u}))}))},MultiValueContainer:er,MultiValueLabel:er,MultiValueRemove:function(e){var t=e.children,r=e.innerProps;return Fe("div",c({role:"button"},r),t||Fe(Bt,{size:14}))},Option:function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,o=e.isDisabled,s=e.isFocused,a=e.isSelected,l=e.innerRef,u=e.innerProps;return Fe("div",c({css:i("option",e),className:n({option:!0,"option--is-disabled":o,"option--is-focused":s,"option--is-selected":a},r),ref:l,"aria-disabled":o},u),t)},Placeholder:function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,o=e.innerProps;return Fe("div",c({css:i("placeholder",e),className:n({placeholder:!0},r)},o),t)},SelectContainer:function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,o=e.innerProps,s=e.isDisabled,a=e.isRtl;return Fe("div",c({css:i("container",e),className:n({"--is-disabled":s,"--is-rtl":a},r)},o),t)},SingleValue:function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,o=e.isDisabled,s=e.innerProps;return Fe("div",c({css:i("singleValue",e),className:n({"single-value":!0,"single-value--is-disabled":o},r)},s),t)},ValueContainer:function(e){var t=e.children,r=e.className,n=e.cx,i=e.innerProps,o=e.isMulti,s=e.getStyles,a=e.hasValue;return Fe("div",c({css:s("valueContainer",e),className:n({"value-container":!0,"value-container--is-multi":o,"value-container--has-value":a},r)},i),t)}},rr=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function nr(e){return function(e){if(Array.isArray(e))return Ge(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||We(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ir=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function or(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(n=e[r],i=t[r],!(n===i||ir(n)&&ir(i)))return!1;var n,i;return!0}const sr=function(e,t){var r;void 0===t&&(t=or);var n,i=[],o=!1;return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return o&&r===this&&t(s,i)||(n=e.apply(this,s),o=!0,r=this,i=s),n}};for(var ar={name:"7pg0cj-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"},lr=function(e){return Fe("span",c({css:ar},e))},cr={guidance:function(e){var t=e.isSearchable,r=e.isMulti,n=e.isDisabled,i=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(n?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(r?" 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";default:return""}},onChange:function(e){var t=e.action,r=e.label,n=void 0===r?"":r,i=e.labels,o=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return"option ".concat(n,o?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,r=e.focused,n=e.options,i=e.label,o=void 0===i?"":i,s=e.selectValue,a=e.isDisabled,l=e.isSelected,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&s)return"value ".concat(o," focused, ").concat(c(s,r),".");if("menu"===t){var u=a?" disabled":"",p="".concat(l?"selected":"focused").concat(u);return"option ".concat(o," ").concat(p,", ").concat(c(n,r),".")}return""},onFilter:function(e){var t=e.inputValue,r=e.resultsMessage;return"".concat(r).concat(t?" for search term "+t:"",".")}},ur=function(e){var t=e.ariaSelection,r=e.focusedOption,n=e.focusedValue,i=e.focusableOptions,o=e.isFocused,s=e.selectValue,a=e.selectProps,l=e.id,c=a.ariaLiveMessages,p=a.getOptionLabel,d=a.inputValue,f=a.isMulti,h=a.isOptionDisabled,m=a.isSearchable,g=a.menuIsOpen,b=a.options,v=a.screenReaderStatus,y=a.tabSelectsValue,w=a["aria-label"],x=a["aria-live"],O=(0,u.useMemo)((function(){return nt(nt({},cr),c||{})}),[c]),C=(0,u.useMemo)((function(){var e,r="";if(t&&O.onChange){var n=t.option,i=t.options,o=t.removedValue,a=t.removedValues,l=t.value,c=o||n||(e=l,Array.isArray(e)?null:e),u=c?p(c):"",d=i||a||void 0,f=d?d.map(p):[],m=nt({isDisabled:c&&h(c,s),label:u,labels:f},t);r=O.onChange(m)}return r}),[t,O,h,s,p]),S=(0,u.useMemo)((function(){var e="",t=r||n,i=!!(r&&s&&s.includes(r));if(t&&O.onFocus){var o={focused:t,label:p(t),isDisabled:h(t,s),isSelected:i,options:b,context:t===r?"menu":"value",selectValue:s};e=O.onFocus(o)}return e}),[r,n,p,h,O,b,s]),_=(0,u.useMemo)((function(){var e="";if(g&&b.length&&O.onFilter){var t=v({count:i.length});e=O.onFilter({inputValue:d,resultsMessage:t})}return e}),[i,d,g,O,b,v]),k=(0,u.useMemo)((function(){var e="";if(O.guidance){var t=n?"value":g?"menu":"input";e=O.guidance({"aria-label":w,context:t,isDisabled:r&&h(r,s),isMulti:f,isSearchable:m,tabSelectsValue:y})}return e}),[w,r,n,f,h,m,g,O,s,y]),E="".concat(S," ").concat(_," ").concat(k),T=Fe(u.Fragment,null,Fe("span",{id:"aria-selection"},C),Fe("span",{id:"aria-context"},E)),N="initial-input-focus"===(null==t?void 0:t.action);return Fe(u.Fragment,null,Fe(lr,{id:l},N&&T),Fe(lr,{"aria-live":x,"aria-atomic":"false","aria-relevant":"additions text"},o&&!N&&T))},pr=[{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źẑżžẓẕƶȥɀⱬꝣ"}],dr=new RegExp("["+pr.map((function(e){return e.letters})).join("")+"]","g"),fr={},hr=0;hr<pr.length;hr++)for(var mr=pr[hr],gr=0;gr<mr.letters.length;gr++)fr[mr.letters[gr]]=mr.base;var br=function(e){return e.replace(dr,(function(e){return fr[e]}))},vr=sr(br),yr=function(e){return e.replace(/^\s+|\s+$/g,"")},wr=function(e){return"".concat(e.label," ").concat(e.value)},xr=["innerRef"];function Or(e){var t=e.innerRef,r=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=Object.entries(e).filter((function(e){var t=Xe(e,1)[0];return!r.includes(t)}));return i.reduce((function(e,t){var r=Xe(t,2),n=r[0],i=r[1];return e[n]=i,e}),{})}($e(e,xr),"onExited","in","enter","exit","appear");return Fe("input",c({ref:t},r,{css:qe({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Cr=["boxSizing","height","overflow","paddingRight","position"],Sr={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function _r(e){e.preventDefault()}function kr(e){e.stopPropagation()}function Er(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;0===e?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function Tr(){return"ontouchstart"in window||navigator.maxTouchPoints}var Nr=!("undefined"==typeof window||!window.document||!window.document.createElement),Pr=0,Ar={capture:!1,passive:!1};var Mr=function(){return document.activeElement&&document.activeElement.blur()},Dr={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Rr(e){var t=e.children,r=e.lockEnabled,n=e.captureEnabled,i=function(e){var t=e.isEnabled,r=e.onBottomArrive,n=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,s=(0,u.useRef)(!1),a=(0,u.useRef)(!1),l=(0,u.useRef)(0),c=(0,u.useRef)(null),p=(0,u.useCallback)((function(e,t){if(null!==c.current){var l=c.current,u=l.scrollTop,p=l.scrollHeight,d=l.clientHeight,f=c.current,h=t>0,m=p-d-u,g=!1;m>t&&s.current&&(n&&n(e),s.current=!1),h&&a.current&&(o&&o(e),a.current=!1),h&&t>m?(r&&!s.current&&r(e),f.scrollTop=p,g=!0,s.current=!0):!h&&-t>u&&(i&&!a.current&&i(e),f.scrollTop=0,g=!0,a.current=!0),g&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[r,n,i,o]),d=(0,u.useCallback)((function(e){p(e,e.deltaY)}),[p]),f=(0,u.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),h=(0,u.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;p(e,t)}),[p]),m=(0,u.useCallback)((function(e){if(e){var t=!!Ot&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",h,t)}}),[h,f,d]),g=(0,u.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",h,!1))}),[h,f,d]);return(0,u.useEffect)((function(){if(t){var e=c.current;return m(e),function(){g(e)}}}),[t,m,g]),function(e){c.current=e}}({isEnabled:void 0===n||n,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),o=function(e){var t=e.isEnabled,r=e.accountForScrollbars,n=void 0===r||r,i=(0,u.useRef)({}),o=(0,u.useRef)(null),s=(0,u.useCallback)((function(e){if(Nr){var t=document.body,r=t&&t.style;if(n&&Cr.forEach((function(e){var t=r&&r[e];i.current[e]=t})),n&&Pr<1){var o=parseInt(i.current.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,a=window.innerWidth-s+o||0;Object.keys(Sr).forEach((function(e){var t=Sr[e];r&&(r[e]=t)})),r&&(r.paddingRight="".concat(a,"px"))}t&&Tr()&&(t.addEventListener("touchmove",_r,Ar),e&&(e.addEventListener("touchstart",Er,Ar),e.addEventListener("touchmove",kr,Ar))),Pr+=1}}),[n]),a=(0,u.useCallback)((function(e){if(Nr){var t=document.body,r=t&&t.style;Pr=Math.max(Pr-1,0),n&&Pr<1&&Cr.forEach((function(e){var t=i.current[e];r&&(r[e]=t)})),t&&Tr()&&(t.removeEventListener("touchmove",_r,Ar),e&&(e.removeEventListener("touchstart",Er,Ar),e.removeEventListener("touchmove",kr,Ar)))}}),[n]);return(0,u.useEffect)((function(){if(t){var e=o.current;return s(e),function(){a(e)}}}),[t,s,a]),function(e){o.current=e}}({isEnabled:r});return Fe(u.Fragment,null,r&&Fe("div",{onClick:Mr,css:Dr}),t((function(e){i(e),o(e)})))}var Ir={clearIndicator:$t,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e){var t=e.isDisabled,r=e.isFocused,n=e.theme,i=n.colors,o=n.borderRadius,s=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):void 0,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:r?i.primary:i.neutral30}}},dropdownIndicator:zt,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading: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"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator: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}},input:function(e){var t=e.isDisabled,r=e.value,n=e.theme,i=n.spacing,o=n.colors;return nt({margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80,transform:r?"translateZ(0)":""},Kt)},loadingIndicator: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"}},loadingMessage:At,menu:function(e){var t,r=e.placement,n=e.theme,o=n.borderRadius,s=n.spacing,a=n.colors;return i(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),i(t,"backgroundColor",a.neutral0),i(t,"borderRadius",o),i(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),i(t,"marginBottom",s.menuGutter),i(t,"marginTop",s.menuGutter),i(t,"position","absolute"),i(t,"width","100%"),i(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,r=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:r,paddingTop:r,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal: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}},multiValue: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}},multiValueLabel: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||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"}},multiValueRemove: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:void 0,display:"flex",paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}}},noOptionsMessage:Pt,option:function(e){var t=e.isDisabled,r=e.isFocused,n=e.isSelected,i=e.theme,o=i.spacing,s=i.colors;return{label:"option",backgroundColor:n?s.primary:r?s.primary25:"transparent",color:t?s.neutral20:n?s.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?void 0:n?s.primary:s.primary50}}},placeholder:function(e){var t=e.theme,r=t.spacing;return{label:"placeholder",color:t.colors.neutral50,gridArea:"1 / 1 / 2 / 3",marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2}},singleValue:function(e){var t=e.isDisabled,r=e.theme,n=r.spacing,i=r.colors;return{label:"singleValue",color:t?i.neutral40:i.neutral80,gridArea:"1 / 1 / 2 / 3",marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},valueContainer:function(e){var t=e.theme.spacing,r=e.isMulti,n=e.hasValue,i=e.selectProps.controlShouldRenderValue;return{alignItems:"center",display:r&&n&&i?"flex":"grid",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var Lr,jr={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}},Vr={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:vt(),captureMenuScroll:!vt(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var r=nt({ignoreCase:!0,ignoreAccents:!0,stringify:wr,trim:!0,matchFrom:"any"},Lr),n=r.ignoreCase,i=r.ignoreAccents,o=r.stringify,s=r.trim,a=r.matchFrom,l=s?yr(t):t,c=s?yr(o(e)):o(e);return n&&(l=l.toLowerCase(),c=c.toLowerCase()),i&&(l=vr(l),c=br(c)),"start"===a?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:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),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};function Fr(e,t,r,n){return{type:"option",data:t,isDisabled:$r(e,t,r),isSelected:Gr(e,t,r),label:Ur(e,t),value:zr(e,t),index:n}}function qr(e,t){return e.options.map((function(r,n){if("options"in r){var i=r.options.map((function(r,n){return Fr(e,r,t,n)})).filter((function(t){return Hr(e,t)}));return i.length>0?{type:"group",data:r,options:i,index:n}:void 0}var o=Fr(e,r,t,n);return Hr(e,o)?o:void 0})).filter(Ct)}function Br(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,nr(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Hr(e,t){var r=e.inputValue,n=void 0===r?"":r,i=t.data,o=t.isSelected,s=t.label,a=t.value;return(!Xr(e)||!o)&&Wr(e,{label:s,value:a,data:i},n)}var Ur=function(e,t){return e.getOptionLabel(t)},zr=function(e,t){return e.getOptionValue(t)};function $r(e,t,r){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,r)}function Gr(e,t,r){if(r.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,r);var n=zr(e,t);return r.some((function(t){return zr(e,t)===n}))}function Wr(e,t,r){return!e.filterOption||e.filterOption(t,r)}var Xr=function(e){var t=e.hideSelectedOptions,r=e.isMulti;return void 0===t?r:t},Zr=1,Yr=function(e){Qe(r,e);var t=st(r);function r(e){var n;return Ze(this,r),(n=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},n.blockOptionHover=!1,n.isComposing=!1,n.commonProps=void 0,n.initialTouchX=0,n.initialTouchY=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.focus=n.focusInput,n.blur=n.blurInput,n.onChange=function(e,t){var r=n.props,i=r.onChange,o=r.name;t.name=o,n.ariaOnChange(e,t),i(e,t)},n.setValue=function(e,t,r){var i=n.props,o=i.closeMenuOnSelect,s=i.isMulti,a=i.inputValue;n.onInputChange("",{action:"set-value",prevInputValue:a}),o&&(n.setState({inputIsHiddenAfterUpdate:!s}),n.onMenuClose()),n.setState({clearFocusValueOnUpdate:!0}),n.onChange(e,{action:t,option:r})},n.selectOption=function(e){var t=n.props,r=t.blurInputOnSelect,i=t.isMulti,o=t.name,s=n.state.selectValue,a=i&&n.isOptionSelected(e,s),l=n.isOptionDisabled(e,s);if(a){var c=n.getOptionValue(e);n.setValue(s.filter((function(e){return n.getOptionValue(e)!==c})),"deselect-option",e)}else{if(l)return void n.ariaOnChange(e,{action:"select-option",option:e,name:o});i?n.setValue([].concat(nr(s),[e]),"select-option",e):n.setValue(e,"select-option")}r&&n.blurInput()},n.removeValue=function(e){var t=n.props.isMulti,r=n.state.selectValue,i=n.getOptionValue(e),o=r.filter((function(e){return n.getOptionValue(e)!==i})),s=St(t,o,o[0]||null);n.onChange(s,{action:"remove-value",removedValue:e}),n.focusInput()},n.clearValue=function(){var e=n.state.selectValue;n.onChange(St(n.props.isMulti,[],null),{action:"clear",removedValues:e})},n.popValue=function(){var e=n.props.isMulti,t=n.state.selectValue,r=t[t.length-1],i=t.slice(0,t.length-1),o=St(e,i,i[0]||null);n.onChange(o,{action:"pop-value",removedValue:r})},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 ut.apply(void 0,[n.props.classNamePrefix].concat(t))},n.getOptionLabel=function(e){return Ur(n.props,e)},n.getOptionValue=function(e){return zr(n.props,e)},n.getStyles=function(e,t){var r=Ir[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.getComponents=function(){return e=n.props,nt(nt({},tr),e.components);var e},n.buildCategorizedOptions=function(){return qr(n.props,n.state.selectValue)},n.getCategorizedOptions=function(){return n.props.menuIsOpen?n.buildCategorizedOptions():[]},n.buildFocusableOptions=function(){return Br(n.buildCategorizedOptions())},n.getFocusableOptions=function(){return n.props.menuIsOpen?n.buildFocusableOptions():[]},n.ariaOnChange=function(e,t){n.setState({ariaSelection:nt({value:e},t)})},n.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),n.focusInput())},n.onMenuMouseMove=function(e){n.blockOptionHover=!1},n.onControlMouseDown=function(e){if(!e.defaultPrevented){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.setState({inputIsHiddenAfterUpdate:!r}),n.onMenuClose()):n.openMenu("first"),e.preventDefault()}},n.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(n.clearValue(),e.preventDefault(),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&&ft(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=n.props.inputValue,r=e.currentTarget.value;n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange(r,{action:"input-change",prevInputValue:t}),n.props.menuIsOpen||n.onMenuOpen()},n.onInputFocus=function(e){n.props.onFocus&&n.props.onFocus(e),n.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1},n.onInputBlur=function(e){var t=n.props.inputValue;n.menuListRef&&n.menuListRef.contains(document.activeElement)?n.inputRef.focus():(n.props.onBlur&&n.props.onBlur(e),n.onInputChange("",{action:"input-blur",prevInputValue:t}),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(){return Xr(n.props)},n.onKeyDown=function(e){var t=n.props,r=t.isMulti,i=t.backspaceRemovesValue,o=t.escapeClearsValue,s=t.inputValue,a=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,p=t.tabSelectsValue,d=t.openMenuOnFocus,f=n.state,h=f.focusedOption,m=f.focusedValue,g=f.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(n.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||s)return;n.focusValue("previous");break;case"ArrowRight":if(!r||s)return;n.focusValue("next");break;case"Delete":case"Backspace":if(s)return;if(m)n.removeValue(m);else{if(!i)return;r?n.popValue():a&&n.clearValue()}break;case"Tab":if(n.isComposing)return;if(e.shiftKey||!c||!p||!h||d&&n.isOptionSelected(h,g))return;n.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(n.isComposing)return;n.selectOption(h);break}return;case"Escape":c?(n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange("",{action:"menu-close",prevInputValue:s}),n.onMenuClose()):a&&o&&n.clearValue();break;case" ":if(s)return;if(!c){n.openMenu("first");break}if(!h)return;n.selectOption(h);break;case"ArrowUp":c?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":c?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!c)return;n.focusOption("pageup");break;case"PageDown":if(!c)return;n.focusOption("pagedown");break;case"Home":if(!c)return;n.focusOption("first");break;case"End":if(!c)return;n.focusOption("last");break;default:return}e.preventDefault()}},n.instancePrefix="react-select-"+(n.props.instanceId||++Zr),n.state.selectValue=pt(e.value),n}return Je(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:"componentDidUpdate",value:function(e){var t,r,n,i,o,s=this.props,a=s.isDisabled,l=s.menuIsOpen,c=this.state.isFocused;(c&&!a&&e.isDisabled||c&&l&&!e.menuIsOpen)&&this.focusInput(),c&&a&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,r=this.focusedOptionRef,n=t.getBoundingClientRect(),i=r.getBoundingClientRect(),o=r.offsetHeight/3,i.bottom+o>n.bottom?mt(t,Math.min(r.offsetTop+r.clientHeight-t.offsetHeight+o,t.scrollHeight)):i.top-o<n.top&&mt(t,Math.max(r.offsetTop-o,0)),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(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),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.buildFocusableOptions(),s="first"===e?0:o.length-1;if(!this.props.isMulti){var a=o.indexOf(n[0]);a>-1&&(s=a)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[s]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,r=t.selectValue,n=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=r.indexOf(n);n||(i=-1);var o=r.length-1,s=-1;if(r.length){switch(e){case"previous":s=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i<o&&(s=i+1)}this.setState({inputIsHidden:-1!==s,focusedValue:r[s]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,r=this.state.focusedOption,n=this.getFocusableOptions();if(n.length){var i=0,o=n.indexOf(r);r||(o=-1),"up"===e?i=o>0?o-1:n.length-1:"down"===e?i=(o+1)%n.length:"pageup"===e?(i=o-t)<0&&(i=0):"pagedown"===e?(i=o+t)>n.length-1&&(i=n.length-1):"last"===e&&(i=n.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:n[i],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(jr):nt(nt({},jr),this.props.theme):jr}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,r=this.getStyles,n=this.getValue,i=this.selectOption,o=this.setValue,s=this.props,a=s.isMulti,l=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:r,getValue:n,hasValue:this.hasValue(),isMulti:a,isRtl:l,options:c,selectOption:i,selectProps:s,setValue:o,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().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 $r(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Gr(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Wr(this.props,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:"renderInput",value:function(){var e=this.props,t=e.isDisabled,r=e.isSearchable,n=e.inputId,i=e.inputValue,o=e.tabIndex,s=e.form,a=e.menuIsOpen,l=this.getComponents().Input,p=this.state,d=p.inputIsHidden,f=p.ariaSelection,h=this.commonProps,m=n||this.getElementId("input"),g=nt(nt(nt({"aria-autocomplete":"list","aria-expanded":a,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],role:"combobox"},a&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!r&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return r?u.createElement(l,c({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:o,form:s,type:"text",value:i},g)):u.createElement(Or,c({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:lt,onFocus:this.onInputFocus,disabled:t,tabIndex:o,inputMode:"none",form:s,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),r=t.MultiValue,n=t.MultiValueContainer,i=t.MultiValueLabel,o=t.MultiValueRemove,s=t.SingleValue,a=t.Placeholder,l=this.commonProps,p=this.props,d=p.controlShouldRenderValue,f=p.isDisabled,h=p.isMulti,m=p.inputValue,g=p.placeholder,b=this.state,v=b.selectValue,y=b.focusedValue,w=b.isFocused;if(!this.hasValue()||!d)return m?null:u.createElement(a,c({},l,{key:"placeholder",isDisabled:f,isFocused:w,innerProps:{id:this.getElementId("placeholder")}}),g);if(h)return v.map((function(t,s){var a=t===y,p="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return u.createElement(r,c({},l,{components:{Container:n,Label:i,Remove:o},isFocused:a,isDisabled:f,key:p,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(m)return null;var x=v[0];return u.createElement(s,c({},l,{data:x,isDisabled:f}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,r=this.props,n=r.isDisabled,i=r.isLoading,o=this.state.isFocused;if(!this.isClearable()||!e||n||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return u.createElement(e,c({},t,{innerProps:s,isFocused:o}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,r=this.props,n=r.isDisabled,i=r.isLoading,o=this.state.isFocused;if(!e||!i)return null;return u.createElement(e,c({},t,{innerProps:{"aria-hidden":"true"},isDisabled:n,isFocused:o}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,r=e.IndicatorSeparator;if(!t||!r)return null;var n=this.commonProps,i=this.props.isDisabled,o=this.state.isFocused;return u.createElement(r,c({},n,{isDisabled:i,isFocused:o}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,r=this.props.isDisabled,n=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return u.createElement(e,c({},t,{innerProps:i,isDisabled:r,isFocused:n}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),r=t.Group,n=t.GroupHeading,i=t.Menu,o=t.MenuList,s=t.MenuPortal,a=t.LoadingMessage,l=t.NoOptionsMessage,p=t.Option,d=this.commonProps,f=this.state.focusedOption,h=this.props,m=h.captureMenuScroll,g=h.inputValue,b=h.isLoading,v=h.loadingMessage,y=h.minMenuHeight,w=h.maxMenuHeight,x=h.menuIsOpen,O=h.menuPlacement,C=h.menuPosition,S=h.menuPortalTarget,_=h.menuShouldBlockScroll,k=h.menuShouldScrollIntoView,E=h.noOptionsMessage,T=h.onMenuScrollToTop,N=h.onMenuScrollToBottom;if(!x)return null;var P,A=function(t,r){var n=t.type,i=t.data,o=t.isDisabled,s=t.isSelected,a=t.label,l=t.value,h=f===i,m=o?void 0:function(){return e.onOptionHover(i)},g=o?void 0:function(){return e.selectOption(i)},b="".concat(e.getElementId("option"),"-").concat(r),v={id:b,onClick:g,onMouseMove:m,onMouseOver:m,tabIndex:-1};return u.createElement(p,c({},d,{innerProps:v,data:i,isDisabled:o,isSelected:s,key:b,label:a,type:n,value:l,isFocused:h,innerRef:h?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())P=this.getCategorizedOptions().map((function(t){if("group"===t.type){var i=t.data,o=t.options,s=t.index,a="".concat(e.getElementId("group"),"-").concat(s),l="".concat(a,"-heading");return u.createElement(r,c({},d,{key:a,data:i,options:o,Heading:n,headingProps:{id:l,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return A(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return A(t,"".concat(t.index))}));else if(b){var M=v({inputValue:g});if(null===M)return null;P=u.createElement(a,d,M)}else{var D=E({inputValue:g});if(null===D)return null;P=u.createElement(l,d,D)}var R={minMenuHeight:y,maxMenuHeight:w,menuPlacement:O,menuPosition:C,menuShouldScrollIntoView:k},I=u.createElement(Tt,c({},d,R),(function(t){var r=t.ref,n=t.placerProps,s=n.placement,a=n.maxHeight;return u.createElement(i,c({},d,R,{innerRef:r,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:b,placement:s}),u.createElement(Rr,{captureEnabled:m,onTopArrive:T,onBottomArrive:N,lockEnabled:_},(function(t){return u.createElement(o,c({},d,{innerRef:function(r){e.getMenuListRef(r),t(r)},isLoading:b,maxHeight:a,focusedOption:f}),P)})))}));return S||"fixed"===C?u.createElement(s,c({},d,{appendTo:S,controlElement:this.controlRef,menuPlacement:O,menuPosition:C}),I):I}},{key:"renderFormField",value:function(){var e=this,t=this.props,r=t.delimiter,n=t.isDisabled,i=t.isMulti,o=t.name,s=this.state.selectValue;if(o&&!n){if(i){if(r){var a=s.map((function(t){return e.getOptionValue(t)})).join(r);return u.createElement("input",{name:o,type:"hidden",value:a})}var l=s.length>0?s.map((function(t,r){return u.createElement("input",{key:"i-".concat(r),name:o,type:"hidden",value:e.getOptionValue(t)})})):u.createElement("input",{name:o,type:"hidden"});return u.createElement("div",null,l)}var c=s[0]?this.getOptionValue(s[0]):"";return u.createElement("input",{name:o,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,r=t.ariaSelection,n=t.focusedOption,i=t.focusedValue,o=t.isFocused,s=t.selectValue,a=this.getFocusableOptions();return u.createElement(ur,c({},e,{id:this.getElementId("live-region"),ariaSelection:r,focusedOption:n,focusedValue:i,isFocused:o,selectValue:s,focusableOptions:a}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,r=e.IndicatorsContainer,n=e.SelectContainer,i=e.ValueContainer,o=this.props,s=o.className,a=o.id,l=o.isDisabled,p=o.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return u.createElement(n,c({},f,{className:s,innerProps:{id:a,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:d}),this.renderLiveRegion(),u.createElement(t,c({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:d,menuIsOpen:p}),u.createElement(i,c({},f,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),u.createElement(r,c({},f,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=t.prevProps,n=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,o=t.ariaSelection,s=t.isFocused,a=t.prevWasFocused,l=e.options,c=e.value,u=e.menuIsOpen,p=e.inputValue,d=e.isMulti,f=pt(c),h={};if(r&&(c!==r.value||l!==r.options||u!==r.menuIsOpen||p!==r.inputValue)){var m=u?function(e,t){return Br(qr(e,t))}(e,f):[],g=n?function(e,t){var r=e.focusedValue,n=e.selectValue.indexOf(r);if(n>-1){if(t.indexOf(r)>-1)return r;if(n<t.length)return t[n]}return null}(t,f):null,b=function(e,t){var r=e.focusedOption;return r&&t.indexOf(r)>-1?r:t[0]}(t,m);h={selectValue:f,focusedOption:b,focusedValue:g,clearFocusValueOnUpdate:!1}}var v=null!=i&&e!==r?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},y=o,w=s&&a;return s&&!w&&(y={value:St(d,f,f[0]||null),options:f,action:"initial-input-focus"},w=!a),"initial-input-focus"===(null==o?void 0:o.action)&&(y=null),nt(nt(nt({},h),v),{},{prevProps:e,ariaSelection:y,prevWasFocused:w})}}]),r}(u.Component);Yr.defaultProps=Vr;var Jr=(0,u.forwardRef)((function(e,t){var r=function(e){var t=e.defaultInputValue,r=void 0===t?"":t,n=e.defaultMenuIsOpen,i=void 0!==n&&n,o=e.defaultValue,s=void 0===o?null:o,a=e.inputValue,l=e.menuIsOpen,c=e.onChange,p=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,h=e.value,m=$e(e,rr),g=Xe((0,u.useState)(void 0!==a?a:r),2),b=g[0],v=g[1],y=Xe((0,u.useState)(void 0!==l?l:i),2),w=y[0],x=y[1],O=Xe((0,u.useState)(void 0!==h?h:s),2),C=O[0],S=O[1],_=(0,u.useCallback)((function(e,t){"function"==typeof c&&c(e,t),S(e)}),[c]),k=(0,u.useCallback)((function(e,t){var r;"function"==typeof p&&(r=p(e,t)),v(void 0!==r?r:e)}),[p]),E=(0,u.useCallback)((function(){"function"==typeof f&&f(),x(!0)}),[f]),T=(0,u.useCallback)((function(){"function"==typeof d&&d(),x(!1)}),[d]),N=void 0!==a?a:b,P=void 0!==l?l:w,A=void 0!==h?h:C;return nt(nt({},m),{},{inputValue:N,menuIsOpen:P,onChange:_,onInputChange:k,onMenuClose:T,onMenuOpen:E,value:A})}(e);return u.createElement(Yr,c({ref:t},r))}));u.Component;const Kr=Jr,Qr=window.wp.i18n,en=window.wp.compose;var tn=r(5697),rn=r.n(tn),nn=r(4184),on=r.n(nn),sn="/home/runner/work/pods/pods/ui/js/blocks/src/components/CheckboxGroup/index.js",an=void 0,ln=function(e){var t=e.id,r=e.className,n=e.heading,i=e.help,o=e.options,s=e.values,a=e.onChange,c=function(e,t){var r=nr(s),n=r.findIndex((function(t){return t.value===e}));-1!==n?r[n].checked=t:r.push({value:e,checked:t}),a(r)};return React.createElement("fieldset",{className:on()("components-block-fields-checkbox-group",r),__self:an,__source:{fileName:sn,lineNumber:43,columnNumber:3}},n&&React.createElement("legend",{__self:an,__source:{fileName:sn,lineNumber:44,columnNumber:17}},n),o.map((function(e){var t=s.find((function(t){return t.value===e.value}))||!1;return React.createElement(l.CheckboxControl,{key:e.value,label:e.label,checked:t.checked||!1,onChange:function(t){return c(e.value,t)},__self:an,__source:{fileName:sn,lineNumber:50,columnNumber:6}})})),!!i&&React.createElement("p",{id:t+"__help",className:"components-block-fields-checkbox-group__help",__self:an,__source:{fileName:sn,lineNumber:60,columnNumber:5}},i))};ln.propTypes={id:rn().string,className:rn().string,heading:rn().string,help:rn().string,options:rn().arrayOf(rn().shape({label:rn().string.isRequired,value:rn().string.isRequired})),values:rn().arrayOf(rn().shape({value:rn().string.isRequired,checked:rn().bool})),onChange:rn().func.isRequired},ln.defaultProps={id:"",className:null,heading:null,help:null,options:[],values:[]};const cn=ln;var un="/home/runner/work/pods/pods/ui/js/blocks/src/components/CheckboxControlExtended/index.js",pn=void 0,dn=function(e){var t=e.className,r=e.heading,n=e.label,i=e.help,o=e.checked,s=e.onChange;return React.createElement("fieldset",{className:on()("components-block-fields-checkbox-control",t),__self:pn,__source:{fileName:un,lineNumber:23,columnNumber:3}},r&&React.createElement("legend",{__self:pn,__source:{fileName:un,lineNumber:24,columnNumber:17}},r),React.createElement(l.CheckboxControl,{label:n,help:i,checked:o,onChange:s,__self:pn,__source:{fileName:un,lineNumber:25,columnNumber:4}}))};dn.propTypes={className:rn().string,heading:rn().string,label:rn().string,help:rn().string,checked:rn().bool,onChange:rn().func.isRequired},dn.defaultProps={className:null,heading:null,label:null,help:null,checked:!1};const fn=dn,hn=window.lodash,mn=window.wp.keycodes;var gn=["className","isShiftStepEnabled","max","min","onChange","onKeyDown","shiftStep","step"];function bn(e){var t=e.className,r=e.isShiftStepEnabled,n=void 0===r||r,i=e.max,o=void 0===i?1/0:i,s=e.min,a=void 0===s?-1/0:s,l=e.onChange,u=void 0===l?hn.noop:l,p=e.onKeyDown,d=void 0===p?hn.noop:p,f=e.shiftStep,h=void 0===f?10:f,m=e.step,g=void 0===m?1:m,b=$e(e,gn),v=(0,hn.clamp)(0,a,o),y=on()("component-number-control",t);return React.createElement("input",c({inputMode:"numeric"},b,{className:y,type:"number",onChange:function(e){u(e.target.value,{event:e})},onKeyDown:function(e){d(e);var t=e.target.value,r=""===t,i=e.shiftKey&&n?parseFloat(h):parseFloat(g),s=r?v:t;switch(s=parseFloat(s),e.keyCode){case mn.UP:e.preventDefault(),s+=i,s=(0,hn.clamp)(s,a,o),u(s.toString(),{event:e});break;case mn.DOWN:e.preventDefault(),s-=i,s=(0,hn.clamp)(s,a,o),u(s.toString(),{event:e})}},__self:this,__source:{fileName:"/home/runner/work/pods/pods/ui/js/blocks/src/components/NumberControl/index.js",lineNumber:70,columnNumber:3}}))}var vn="/home/runner/work/pods/pods/ui/js/blocks/src/blocks/components/RenderedField.js",yn=void 0;function wn(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 xn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wn(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const On=function(e){var t=e.field,r=e.attributes,n=e.setAttributes,o=t.name,s=t.type,c=t.fieldOptions,u=void 0===c?{}:c,p=r[o],d=function(e,t,r){return function(n){t(i({},e,"NumberControl"===r?parseInt(n,10):n))}}(o,n,s);switch(s){case"TextControl":var f=u.fieldType,h=void 0===f?"text":f,m=u.help,g=u.label;return React.createElement(l.TextControl,{key:o,label:g,value:p,type:h,help:m,onChange:d,__self:yn,__source:{fileName:vn,lineNumber:83,columnNumber:5}});case"TextareaControl":var b=u.help,v=u.label;return React.createElement(l.TextareaControl,{key:o,label:v,value:p,help:b,rows:"4",onChange:d,__self:yn,__source:{fileName:vn,lineNumber:100,columnNumber:5}});case"RichText":var y=u.tagName,w=void 0===y?"p":y;return React.createElement(a.RichText,{key:o,tagName:w,value:p,onChange:d,__self:yn,__source:{fileName:vn,lineNumber:114,columnNumber:5}});case"CheckboxControl":var x=u.label,O=u.help,C=u.heading,S=void 0===C?"":C;return React.createElement(fn,{key:o,heading:S,label:x,help:O,checked:p,onChange:d,__self:yn,__source:{fileName:vn,lineNumber:130,columnNumber:5}});case"CheckboxGroup":var _=u.help,k=u.options,E=u.heading,T=void 0===E?"":E;return React.createElement(cn,{key:o,heading:T,help:_,options:k,values:p,onChange:d,__self:yn,__source:{fileName:vn,lineNumber:148,columnNumber:5}});case"RadioControl":var N=u.help,P=u.options;return React.createElement(l.RadioControl,{key:o,help:N,options:P,selected:p,onChange:d,__self:yn,__source:{fileName:vn,lineNumber:165,columnNumber:5}});case"SelectControl":var A=u.options,M=u.multiple,D=u.label,R=(0,en.useInstanceId)(Kr),I="inspector-select-control-".concat(R);return React.createElement(l.BaseControl,{label:D,id:I,key:o,className:"full-width-base-control",__self:yn,__source:{fileName:vn,lineNumber:185,columnNumber:5}},React.createElement(Kr,{id:I,name:o,options:A,value:p,isMulti:M,onChange:d,styles:{container:function(e){return xn(xn({},e),{},{width:"100%"})}},__self:yn,__source:{fileName:vn,lineNumber:191,columnNumber:6}}));case"DateTimePicker":var L=u.is12Hour,j=u.label;return React.createElement(l.BaseControl,{label:j,key:o,__self:yn,__source:{fileName:vn,lineNumber:215,columnNumber:5}},React.createElement(l.DateTimePicker,{currentDate:p,onChange:d,is12Hour:L,__self:yn,__source:{fileName:vn,lineNumber:219,columnNumber:6}}));case"NumberControl":var V=u.isShiftStepEnabled,F=u.shiftStep,q=u.label,B=u.max,H=void 0===B?1/0:B,U=u.min,z=void 0===U?-1/0:U,$=u.step,G=void 0===$?1:$,W=(0,en.useInstanceId)(bn),X="inspector-number-control-".concat(W);return React.createElement(l.BaseControl,{label:q,id:X,key:o,__self:yn,__source:{fileName:vn,lineNumber:241,columnNumber:5}},React.createElement(bn,{id:X,onChange:d,isShiftStepEnabled:V,shiftStep:F,max:H,min:z,step:G,value:p||"",__self:yn,__source:{fileName:vn,lineNumber:246,columnNumber:6}}));case"MediaUpload":return React.createElement("div",{__self:yn,__source:{fileName:vn,lineNumber:263,columnNumber:5}},React.createElement(a.MediaUploadCheck,{__self:yn,__source:{fileName:vn,lineNumber:264,columnNumber:6}},React.createElement(a.MediaUpload,{onSelect:function(e){d({id:e.id,url:e.url,title:e.title})},allowedTypes:["image"],value:p,render:function(e){var t=e.open;return React.createElement(l.Button,{onClick:t,isPrimary:!0,__self:yn,__source:{fileName:vn,lineNumber:272,columnNumber:9}},(0,Qr.__)("Upload"))},__self:yn,__source:{fileName:vn,lineNumber:265,columnNumber:7}})),!!p&&React.createElement(l.Button,{onClick:function(){return d(null)},isSecondary:!0,__self:yn,__source:{fileName:vn,lineNumber:279,columnNumber:7}},(0,Qr.__)("Remove Upload")),p&&!!p.title&&React.createElement("div",{__self:yn,__source:{fileName:vn,lineNumber:287,columnNumber:7}},p.title));case"ColorPicker":return React.createElement(l.ColorPicker,{color:p,onChangeComplete:function(e){return d(e.hex)},disableAlpha:!0,__self:yn,__source:{fileName:vn,lineNumber:296,columnNumber:5}});default:return null}};var Cn="/home/runner/work/pods/pods/ui/js/blocks/src/blocks/components/FieldInspectorControls.js",Sn=void 0;const _n=function(e){var t=e.fields,r=void 0===t?[]:t,n=e.attributes,i=e.setAttributes;return r.length?React.createElement("div",{className:"pods-inspector-rows",__self:Sn,__source:{fileName:Cn,lineNumber:29,columnNumber:3}},r.map((function(e){var t=e.name;return React.createElement(l.PanelRow,{key:t,className:"pods-inspector-row",__self:Sn,__source:{fileName:Cn,lineNumber:36,columnNumber:6}},React.createElement(On,{field:e,attributes:n,setAttributes:i,__self:Sn,__source:{fileName:Cn,lineNumber:37,columnNumber:7}}))}))):null};var kn=r(1036),En=r.n(kn);const Tn=window.wp.autop,Nn=window.wp.date,Pn=window.wp.serverSideRender;var An=r.n(Pn);function Mn(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Dn(e){return Dn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Dn(e)}const Rn=window.wp.element,In=window.wp.apiFetch;var Ln=r.n(In);const jn=window.wp.url;var Vn="/home/runner/work/pods/pods/ui/js/blocks/src/blocks/components/PodsServerSideRender.js",Fn=void 0;function qn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Dn(e);if(t){var i=Dn(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Mn(this,r)}}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 Hn(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){i(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 Un=function(e){Qe(r,e);var t=qn(r);function r(e){var n;return Ze(this,r),(n=t.call(this,e)).state={response:null},n}return Je(r,[{key:"componentDidMount",value:function(){this.isStillMounted=!0,this.fetch(this.props),this.fetch=(0,hn.debounce)(this.fetch,500)}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"componentDidUpdate",value:function(e){(0,hn.isEqual)(e,this.props)||this.fetch(this.props)}},{key:"fetch",value:function(e){var t=this;if(this.isStillMounted){null!==this.state.response&&this.setState({response:null});var r=e.block,n=e.attributes,i=void 0===n?null:n,o=e.httpMethod,s=void 0===o?"GET":o,a=e.urlQueryArgs,l="POST"===s,c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,jn.addQueryArgs)("/wp/v2/block-renderer/".concat(e),Hn(Hn({context:"edit"},null!==t?{attributes:t}:{}),r))}(r,l?null:i,void 0===a?{}:a),u=l?{attributes:i}:null,p=this.currentFetchRequest=Ln()({path:c,data:u,method:l?"POST":"GET"}).then((function(e){t.isStillMounted&&p===t.currentFetchRequest&&e&&t.setState({response:e.rendered})})).catch((function(e){t.isStillMounted&&p===t.currentFetchRequest&&t.setState({response:{error:!0,errorMsg:e.message}})}));return p}}},{key:"render",value:function(){var e=this,t=this.state.response,r=this.props,n=r.className,i=r.EmptyResponsePlaceholder,o=r.ErrorResponsePlaceholder,l=r.LoadingResponsePlaceholder;return""===t?React.createElement(i,c({response:t},this.props,{__self:this,__source:{fileName:Vn,lineNumber:117,columnNumber:11}})):t?t.error?React.createElement(o,c({response:t},this.props,{__self:this,__source:{fileName:Vn,lineNumber:126,columnNumber:5}})):s(t,{replace:function(t){if("innerblocks"===t.name)return void 0!==t.attribs.template&&(t.attribs.template=JSON.parse(t.attribs.template)),void 0!==t.attribs.allowedBlocks&&(t.attribs.allowedBlocks=JSON.parse(t.attribs.allowedBlocks)),void 0!==t.attribs.templateLock&&"false"===t.attribs.templateLock&&(t.attribs.templateLock=!1),React.createElement(a.InnerBlocks,c({className:n},t.attribs,{__self:e,__source:{fileName:Vn,lineNumber:144,columnNumber:13}}))}}):React.createElement(l,c({response:t},this.props,{__self:this,__source:{fileName:Vn,lineNumber:121,columnNumber:5}}))}}]),r}(Rn.Component);Un.defaultProps={EmptyResponsePlaceholder:function(e){var t=e.className;return React.createElement(l.Placeholder,{className:t,__self:Fn,__source:{fileName:Vn,lineNumber:153,columnNumber:3}},(0,Qr.__)("Block rendered as empty."))},ErrorResponsePlaceholder:function(e){var t=e.response,r=e.className,n=(0,Qr.sprintf)((0,Qr.__)("Error loading block: %s"),t.errorMsg);return React.createElement(l.Placeholder,{className:r,__self:Fn,__source:{fileName:Vn,lineNumber:163,columnNumber:10}},n)},LoadingResponsePlaceholder:function(e){var t=e.className;return React.createElement(l.Placeholder,{className:t,__self:Fn,__source:{fileName:Vn,lineNumber:167,columnNumber:4}},React.createElement(l.Spinner,{__self:Fn,__source:{fileName:Vn,lineNumber:168,columnNumber:5}}))}};const zn=Un;var $n={allowedTags:["blockquote","caption","div","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","li","ol","p","pre","section","table","tbody","td","th","thead","tr","ul","a","abbr","acronym","audio","b","bdi","bdo","big","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","label","map","mark","meter","noscript","object","output","picture","progress","q","ruby","s","samp","select","slot","small","span","strong","sub","sup","svg","template","textarea","time","u","tt","var","video","wbr"],allowedAttributes:{"*":["class","id","data-*","style"],iframe:["*"],a:["href","name","target"],img:["src","srcset","sizes","alt","width","height"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto"],allowedSchemesByTag:{},allowProtocolRelative:!0},Gn={allowedTags:[],allowedAttributes:{}};function Wn(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 Xn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Wn(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Zn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o=En()(e,$n),a=[];return t.forEach((function(e){var t="function"==typeof i?n(e,r,i):n(e,r);t&&(a[e.name]=Xn({},t.props));var s=t?(0,Rn.renderToString)(t):"";o=o.replace(new RegExp("{@".concat(e.name,"}"),"g"),s)})),s(o)};var Yn="/home/runner/work/pods/pods/ui/js/blocks/src/blocks/components/BlockPreview.js",Jn=void 0,Kn=function(e,t){var r=e.name,n=e.fieldOptions,i=e.type,o=t[r];if(void 0===o)return null;switch(i){case"TextControl":return React.createElement("div",{key:r,className:"field--textcontrol",__self:Jn,__source:{fileName:Yn,lineNumber:51,columnNumber:5}},En()(o,Gn));case"TextareaControl":var s=n.auto_p,l=En()(o,Gn);return React.createElement("div",{key:r,className:"field--textareacontrol",dangerouslySetInnerHTML:{__html:s?(0,Tn.autop)(l):l},__self:Jn,__source:{fileName:Yn,lineNumber:64,columnNumber:5}});case"RichText":return React.createElement(a.RichText.Content,{key:r,tagName:"p",value:o,className:"field--richtext",__self:Jn,__source:{fileName:Yn,lineNumber:75,columnNumber:5}});case"CheckboxControl":return React.createElement("div",{key:r,className:"field--checkbox",__self:Jn,__source:{fileName:Yn,lineNumber:85,columnNumber:5}},o?(0,Qr.__)("Yes"):(0,Qr.__)("No"));case"CheckboxGroup":var c=n.options,u=Array.isArray(o)?o.filter((function(e){return!!e.checked})):[];return React.createElement("div",{key:r,className:"field--checkbox-group",__self:Jn,__source:{fileName:Yn,lineNumber:100,columnNumber:5}},u.length?u.map((function(e,t){var r=c.find((function(t){return e.value===t.value}));return React.createElement("span",{className:"field--checkbox-group__item",key:e.value,__self:Jn,__source:{fileName:Yn,lineNumber:106,columnNumber:9}},r.label,t<u.length-1?", ":"")})):"N/A");case"RadioControl":var p=n.options.find((function(e){return o===e.value}));return React.createElement("div",{key:r,className:"field--radio-control",__self:Jn,__source:{fileName:Yn,lineNumber:125,columnNumber:5}},p?p.label:"N/A");case"SelectControl":if(!Array.isArray(o))return React.createElement("div",{key:r,className:"field--select-control",__self:Jn,__source:{fileName:Yn,lineNumber:134,columnNumber:6}},o.label||"N/A");var d=o;return React.createElement("div",{key:r,className:"field--select-control field--multiple-select-control",__self:Jn,__source:{fileName:Yn,lineNumber:142,columnNumber:5}},d.length?d.map((function(e,t){return React.createElement("span",{className:"field--select-group__item",key:e,__self:Jn,__source:{fileName:Yn,lineNumber:146,columnNumber:9}},e.label,t<d.length-1?", ":"")})):"N/A");case"DateTimePicker":var f=(0,Nn.__experimentalGetSettings)().formats.datetime;return React.createElement("div",{key:r,className:"field--date-time",__self:Jn,__source:{fileName:Yn,lineNumber:163,columnNumber:5}},React.createElement("time",{dateTime:(0,Nn.format)("c",o),__self:Jn,__source:{fileName:Yn,lineNumber:164,columnNumber:6}},(0,Nn.dateI18n)(f,o)));case"NumberControl":var h=(0,Nn.__experimentalGetSettings)().l10n.locale;return h=h.replace("_","-"),React.createElement("div",{key:r,className:"field--number",__self:Jn,__source:{fileName:Yn,lineNumber:178,columnNumber:5}},!!o&&o.toLocaleString(h));case"MediaUpload":return React.createElement("div",{key:r,className:"field--media-upload",__self:Jn,__source:{fileName:Yn,lineNumber:185,columnNumber:5}},o&&o.url||"N/A");case"ColorPicker":return React.createElement("div",{key:r,className:"field--color",style:{color:o},__self:Jn,__source:{fileName:Yn,lineNumber:192,columnNumber:5}},o);default:return null}};const Qn=function(e){var t=e.block,r=e.attributes,n=void 0===r?{}:r,i=e.context,o=void 0===i?{}:i,s=t.blockName,a=t.fields,l=void 0===a?[]:a,c=t.renderTemplate,u=t.renderType,p=t.supports,d=void 0===p?{jsx:!1}:p,f=t.usesContext;if("php"===u){var h={podsContext:{}};return(void 0===f?[]:f).forEach((function(e){var t;h.podsContext[e]=null!==(t=o[e])&&void 0!==t?t:null})),!0===d.jsx?React.createElement(zn,{block:s,attributes:n,urlQueryArgs:h,__self:Jn,__source:{fileName:Yn,lineNumber:234,columnNumber:5}}):React.createElement(An(),{block:s,attributes:n,urlQueryArgs:h,__self:Jn,__source:{fileName:Yn,lineNumber:243,columnNumber:4}})}return React.createElement(React.Fragment,null,Zn(c,l,n,Kn,o))};var ei="/home/runner/work/pods/pods/ui/js/blocks/src/blocks/createBlockEditComponent.js",ti=void 0;const ri=function(e){return function(t){var r=e.fields,n=void 0===r?[]:r,i=e.blockName,o=e.blockGroupLabel,s=t.className,c=t.attributes,u=void 0===c?{}:c,p=t.setAttributes,d=t.context,f=void 0===d?{}:d;return React.createElement("div",{className:s,__self:ti,__source:{fileName:ei,lineNumber:35,columnNumber:3}},React.createElement(a.InspectorControls,{__self:ti,__source:{fileName:ei,lineNumber:36,columnNumber:4}},React.createElement(l.PanelBody,{title:o,key:i,__self:ti,__source:{fileName:ei,lineNumber:37,columnNumber:5}},React.createElement(_n,{fields:n,attributes:u,setAttributes:p,__self:ti,__source:{fileName:ei,lineNumber:41,columnNumber:6}}))),React.createElement(Qn,{block:e,attributes:u,context:f,__self:ti,__source:{fileName:ei,lineNumber:48,columnNumber:4}}))}};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 ii(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){i(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}const oi=function(e){return e.reduce((function(e,t){if(!t.name)return e;var r=t.name,n=t.attributeOptions;return ii(ii({},e),{},i({},r,ii(ii({},n),{},{type:n.type||"string"})))}),{})};var si="/home/runner/work/pods/pods/ui/js/blocks/src/blocks/index.js",ai=void 0;function li(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 ci(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?li(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):li(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const ui=function(t){var r=t.blockName,i=t.fields,o=t.icon;o="pods"===o?React.createElement("svg",{width:"366",height:"364",viewBox:"0 0 366 364",fill:"none",xmlns:"http://www.w3.org/2000/svg",__self:ai,__source:{fileName:si,lineNumber:29,columnNumber:4}},React.createElement("mask",{id:"mask0","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"20",y:"20",width:"323",height:"323",__self:ai,__source:{fileName:si,lineNumber:29,columnNumber:103}},React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.9831 181.536C20.9831 270.512 93.6969 342.643 183.391 342.643V342.643C249.369 342.643 306.158 303.616 331.578 247.565V247.565C324.498 226.102 318.371 188.341 342.809 150.596V150.596C341.764 145.264 340.453 140.028 338.892 134.9V134.9C263.955 208.73 203.453 215.645 157.9 214.441V214.441C157.479 214.428 155.947 214.182 155.54 213.271V213.271C155.54 213.271 154.876 210.318 156.817 210.318V210.318C244.089 210.318 293.793 159.374 334.401 122.125V122.125C332.186 116.587 329.669 111.202 326.872 105.984V105.984C283.096 94.0368 266.274 58.4662 260.302 39.603V39.603C237.409 27.369 211.218 20.4269 183.391 20.4269V20.4269C93.6969 20.4269 20.9831 92.5574 20.9831 181.536V181.536ZM227.603 68.9767C227.603 68.9767 289.605 62.283 307.865 138.292V138.292C240.112 133.656 227.603 68.9767 227.603 68.9767V68.9767ZM202.795 100.959C202.795 100.959 257.765 99.1382 270.278 167.335V167.335C210.771 158.793 202.795 100.959 202.795 100.959V100.959ZM172.601 128.062C172.601 128.062 222.07 124.859 234.729 185.925V185.925C180.956 179.926 172.601 128.062 172.601 128.062V128.062ZM307.865 138.292C307.936 138.296 308 138.3 308.07 138.306V138.306L307.921 138.528C307.903 138.449 307.884 138.37 307.865 138.292V138.292ZM146.277 149.601C146.277 149.601 189.744 146.781 200.869 200.439V200.439C153.619 195.171 146.277 149.601 146.277 149.601V149.601ZM111.451 154.862C111.451 154.862 153.207 152.159 163.891 203.7V203.7C118.507 198.639 111.451 154.862 111.451 154.862V154.862ZM76.9799 157.234C76.9799 157.234 114.875 154.782 124.574 201.557V201.557C83.3817 196.962 76.9799 157.234 76.9799 157.234V157.234ZM39.5 164.081C39.5 164.081 71.2916 155.788 84.9886 193.798V193.798C83.4985 193.918 82.0535 193.976 80.6516 193.976V193.976C48.7552 193.975 39.5 164.081 39.5 164.081V164.081ZM310.084 167.245C310.06 167.175 310.035 167.102 310.013 167.033V167.033L310.233 167.093C310.184 167.143 310.134 167.194 310.084 167.245V167.245C333.75 238.013 291.599 276.531 291.599 276.531V276.531C291.599 276.531 261.982 216.144 310.084 167.245V167.245ZM270.278 167.335C270.337 167.343 270.396 167.351 270.455 167.36V167.36L270.317 167.544C270.305 167.473 270.293 167.406 270.278 167.335V167.335ZM234.729 185.925C234.782 185.931 234.838 185.937 234.89 185.943V185.943L234.769 186.111C234.756 186.046 234.744 185.988 234.729 185.925V185.925ZM275.24 192.061C275.232 191.992 275.224 191.919 275.218 191.849V191.849L275.405 191.966C275.35 191.999 275.296 192.03 275.24 192.061V192.061C282.645 263.228 236.486 286.583 236.486 286.583V286.583C236.486 286.583 221.57 223.215 275.24 192.061V192.061ZM85.0914 193.789L85.0296 193.912C85.0164 193.873 85.0009 193.834 84.9888 193.798V193.798C85.023 193.795 85.0572 193.792 85.0914 193.789V193.789ZM200.869 200.439C200.916 200.443 200.96 200.449 201.007 200.453V200.453L200.903 200.605C200.891 200.549 200.88 200.494 200.869 200.439V200.439ZM124.574 201.557C124.615 201.563 124.658 201.567 124.699 201.572V201.572L124.604 201.7C124.594 201.651 124.585 201.605 124.574 201.557V201.557ZM68.5101 213.185C68.5101 213.185 95.2467 187.93 129.068 216.089V216.089C118.738 224.846 108.962 227.859 100.399 227.859V227.859C81.5012 227.859 68.5101 213.185 68.5101 213.185V213.185ZM163.892 203.7C163.937 203.704 163.982 203.71 164.027 203.714V203.714L163.926 203.862C163.915 203.809 163.903 203.753 163.892 203.7V203.7ZM234.165 211.88C234.166 211.817 234.166 211.751 234.168 211.688V211.688L234.322 211.818C234.269 211.839 234.218 211.859 234.165 211.88V211.88C233.531 275.684 190.467 289.79 190.467 289.79V289.79C190.467 289.79 183.695 231.809 234.165 211.88V211.88ZM129.165 216.006V216.17C129.132 216.143 129.1 216.117 129.068 216.089V216.089C129.099 216.061 129.132 216.034 129.165 216.006V216.006ZM107.192 250.617C107.192 250.617 121.444 213.844 162.374 221.007V221.007C150.672 247.473 132.265 252.505 119.969 252.505V252.505C112.432 252.505 107.192 250.617 107.192 250.617V250.617ZM162.431 220.877L162.492 221.028C162.452 221.021 162.414 221.014 162.374 221.007V221.007C162.394 220.963 162.412 220.921 162.431 220.877V220.877ZM196.004 223.125C196.014 223.072 196.024 223.016 196.034 222.962V222.962L196.15 223.104C196.101 223.111 196.053 223.119 196.004 223.125V223.125C186.212 277.983 147.054 281.435 147.054 281.435V281.435C147.054 281.435 149.621 230.095 196.004 223.125V223.125Z",fill:"white",__self:ai,__source:{fileName:si,lineNumber:29,columnNumber:204}})),React.createElement("g",{mask:"url(#mask0)",__self:ai,__source:{fileName:si,lineNumber:29,columnNumber:4543}},React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.95319 9.48413H353.838V353.586H9.95319V9.48413Z",fill:"#95BF3B",__self:ai,__source:{fileName:si,lineNumber:29,columnNumber:4565}})),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M182.999 11.2219C88.3278 11.2219 11.3101 87.6245 11.3101 181.535C11.3101 275.448 88.3278 351.85 182.999 351.85C277.67 351.85 354.69 275.448 354.69 181.535C354.69 87.6245 277.67 11.2219 182.999 11.2219M182.999 363.071C82.0925 363.071 0 281.633 0 181.535C0 81.4362 82.0925 0 182.999 0C283.905 0 366 81.4362 366 181.535C366 281.633 283.905 363.071 182.999 363.071",fill:"#95BF3B",__self:ai,__source:{fileName:si,lineNumber:29,columnNumber:4684}})):s(o);var a=ci({},t);delete a.blockName,delete a.fields,delete a.renderType;if(a.attributes=oi(i),a.transforms&&a.transforms.from&&[]!==a.transforms.from){var l=[];a.transforms.from.forEach((function(e){if("shortcode"===e.type){var t=a.attributes;if(e.attributes=function(e,t){var r,i=null!==(r=e.attributes)&&void 0!==r?r:null;if(!i)return{};var o=Object.keys(i),s={};return o.forEach((function(e){var r,o=i[e];if("shortcode"===(null!==(r=o.source)&&void 0!==r?r:"")){var a,l,c,u;delete o.source;var p=null!==(a=null!==(l=o.selector)&&void 0!==l?l:o.attribute)&&void 0!==a?a:null,d=null!==(c=o.type)&&void 0!==c?c:"string",f=null!==(u=o.attribute)&&void 0!==u?u:e;if(!p)return;null!=o&&o.selector&&delete o.selector,o.shortcode=function(e,r){var i,s,a,l,c=e.named,u=r.shortcode,h=null!==(i=c[p])&&void 0!==i?i:null,m=null!==(s=t[f])&&void 0!==s?s:null,g=null!==(a=null==m?void 0:m.default)&&void 0!==a?a:null,b=null!==(l=u.content)&&void 0!==l?l:"";return null===h&&(h=g),"boolean"===d?null!==h&&("true"===h||!0===h||"1"===h||1===h||"yes"===h||"on"===h):"object"===d?null===h?{label:"",value:""}:"object"===n(h)?h:{label:h=h.toString(),value:h}:"array"===d?null===h?[]:Array.isArray(h)?h:h.split(","):"string"===d?null===h?"":h.toString():"integer"===d||"number"===d?null===h?0:parseInt(h):"string_integer"===d?(o.type="string",null===h?"0":parseInt(h).toString()):"content"===d?(o.type="string",""!==b?b.toString():null===h?"":h.toString()):h}}s[e]=o})),s}(e,t),(null==e||!e.isMatch)&&null!=e&&e.isMatchConfig){var r=e.isMatchConfig;delete e.isMatchConfig,e.isMatch=function(e){var t=e.named;return function(e,t){if(!e||!Array.isArray(e))return!0;var r=!0;return e.forEach((function(e){var n,i=null!==(n=t[e.name])&&void 0!==n?n:null;(null!=e&&e.required&&!i||null!=e&&e.excluded&&null!=i)&&(r=!1)})),r}(r,t)}}l.push(e)}else l.push(e)})),a.transforms.from=l}else delete a.transforms;(0,e.registerBlockType)(r,ci(ci({},a),{},{apiVersion:1,edit:ri(t),icon:o,save:function(){return null}}))};window.podsBlocksConfig.collections.forEach(t),window.podsBlocksConfig.blocks.forEach(ui)})()})();
1
+ (()=>{var e={4184:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)){if(r.length){var s=i.apply(null,r);s&&e.push(s)}}else if("object"===o)if(r.toString===Object.prototype.toString)for(var a in r)n.call(r,a)&&r[a]&&e.push(a);else e.push(r.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},5264:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(8081),i=r.n(n),o=r(3645),s=r.n(o)()(i());s.push([e.id,".pods-inspector-row .components-datetime{padding-left:0;padding-right:0}.pods-inspector-row .full-width-base-control{width:100%}",""]);const a=s},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,n,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(n)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(s[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);n&&s[u[0]]||(void 0!==o&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),r&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=r):u[2]=r),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},9996:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function i(e,t,r){return e.concat(t).map((function(e){return n(e,r)}))}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function s(e,t){try{return t in e}catch(e){return!1}}function a(e,t,r){var i={};return r.isMergeableObject(e)&&o(e).forEach((function(t){i[t]=n(e[t],r)})),o(t).forEach((function(o){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(s(e,o)&&r.isMergeableObject(t[o])?i[o]=function(e,t){if(!t.customMerge)return l;var r=t.customMerge(e);return"function"==typeof r?r:l}(o,r)(e[o],t[o],r):i[o]=n(t[o],r))})),i}function l(e,r,o){(o=o||{}).arrayMerge=o.arrayMerge||i,o.isMergeableObject=o.isMergeableObject||t,o.cloneUnlessOtherwiseSpecified=n;var s=Array.isArray(r);return s===Array.isArray(e)?s?o.arrayMerge(e,r,o):a(e,r,o):n(r,o)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return l(e,r,t)}),{})};var c=l;e.exports=c},9960:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(r=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===r.Tag||e.type===r.Script||e.type===r.Style},t.Root=r.Root,t.Text=r.Text,t.Directive=r.Directive,t.Comment=r.Comment,t.Script=r.Script,t.Style=r.Style,t.Tag=r.Tag,t.CDATA=r.CDATA,t.Doctype=r.Doctype},3150:e=>{"use strict";e.exports=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},8679:(e,t,r)=>{"use strict";var n=r(1296),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return n.isMemo(e)?s:a[e.$$typeof]||i}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=s;var c=Object.defineProperty,u=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var i=f(r);i&&i!==h&&e(t,i,n)}var s=u(r);p&&(s=s.concat(p(r)));for(var a=l(t),m=l(r),g=0;g<s.length;++g){var b=s[g];if(!(o[b]||n&&n[b]||m&&m[b]||a&&a[b])){var v=d(r,b);try{c(t,b,v)}catch(e){}}}}return t}},6103:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,y=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case p:case o:case a:case s:case f:return e;default:switch(e=e&&e.$$typeof){case c:case d:case g:case m:case l:return e;default:return t}}case i:return t}}}function O(e){return x(e)===p}t.AsyncMode=u,t.ConcurrentMode=p,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=d,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=a,t.StrictMode=s,t.Suspense=f,t.isAsyncMode=function(e){return O(e)||x(e)===u},t.isConcurrentMode=O,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===a},t.isStrictMode=function(e){return x(e)===s},t.isSuspense=function(e){return x(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===p||e===a||e===s||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===v||e.$$typeof===y||e.$$typeof===w||e.$$typeof===b)},t.typeOf=x},1296:(e,t,r)=>{"use strict";e.exports=r(6103)},885:e=>{e.exports={CASE_SENSITIVE_TAG_NAMES:["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussainBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]}},8276:(e,t,r)=>{var n="html",i="head",o="body",s=/<([a-zA-Z]+[0-9]?)/,a=/<head.*>/i,l=/<body.*>/i,c=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},u=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};if("function"==typeof window.DOMParser){var p=new window.DOMParser;c=u=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),p.parseFromString(e,"text/html")}}if(document.implementation){var d=r(1507).isIE,f=document.implementation.createHTMLDocument(d()?"html-dom-parser":void 0);c=function(e,t){return t?(f.documentElement.getElementsByTagName(t)[0].innerHTML=e,f):(f.documentElement.innerHTML=e,f)}}var h,m=document.createElement("template");m.content&&(h=function(e){return m.innerHTML=e,m.content.childNodes}),e.exports=function(e){var t,r,p,d,f=e.match(s);switch(f&&f[1]&&(t=f[1].toLowerCase()),t){case n:return r=u(e),a.test(e)||(p=r.getElementsByTagName(i)[0])&&p.parentNode.removeChild(p),l.test(e)||(p=r.getElementsByTagName(o)[0])&&p.parentNode.removeChild(p),r.getElementsByTagName(n);case i:case o:return d=c(e).getElementsByTagName(t),l.test(e)&&a.test(e)?d[0].parentNode.childNodes:d;default:return h?h(e):c(e,o).getElementsByTagName(o)[0].childNodes}}},4152:(e,t,r)=>{var n=r(8276),i=r(1507).formatDOM,o=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,r=e.match(o);return r&&r[1]&&(t=r[1]),i(n(e),null,t)}},1507:(e,t,r)=>{for(var n,i=r(885),o=r(1642),s=i.CASE_SENSITIVE_TAG_NAMES,a=o.Comment,l=o.Element,c=o.ProcessingInstruction,u=o.Text,p={},d=0,f=s.length;d<f;d++)n=s[d],p[n.toLowerCase()]=n;function h(e){for(var t,r={},n=0,i=e.length;n<i;n++)r[(t=e[n]).name]=t.value;return r}function m(e){var t=function(e){return p[e]}(e=e.toLowerCase());return t||e}e.exports={formatAttributes:h,formatDOM:function e(t,r,n){r=r||null;for(var i=[],o=0,s=t.length;o<s;o++){var p,d=t[o];switch(d.nodeType){case 1:(p=new l(m(d.nodeName),h(d.attributes))).children=e(d.childNodes,p);break;case 3:p=new u(d.nodeValue);break;case 8:p=new a(d.nodeValue);break;default:continue}var f=i[o-1]||null;f&&(f.next=p),p.parent=r,p.prev=f,p.next=null,i.push(p)}return n&&((p=new c(n.substring(0,n.indexOf(" ")).toLowerCase(),n)).next=i[0]||null,p.parent=r,i.unshift(p),i[1]&&(i[1].prev=i[0])),i},isIE:function(){return/(MSIE |Trident\/|Edge\/)/.test(navigator.userAgent)}}},1642:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var s=r(9960),a=new Map([[s.ElementType.Tag,1],[s.ElementType.Script,1],[s.ElementType.Style,1],[s.ElementType.Directive,1],[s.ElementType.Text,3],[s.ElementType.CDATA,4],[s.ElementType.Comment,8],[s.ElementType.Root,9]]),l=function(){function e(e){this.type=e,this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"nodeType",{get:function(){var e;return null!==(e=a.get(this.type))&&void 0!==e?e:1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),O(this,e)},e}();t.Node=l;var c=function(e){function t(t,r){var n=e.call(this,t)||this;return n.data=r,n}return i(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(l);t.DataNode=c;var u=function(e){function t(t){return e.call(this,s.ElementType.Text,t)||this}return i(t,e),t}(c);t.Text=u;var p=function(e){function t(t){return e.call(this,s.ElementType.Comment,t)||this}return i(t,e),t}(c);t.Comment=p;var d=function(e){function t(t,r){var n=e.call(this,s.ElementType.Directive,r)||this;return n.name=t,n}return i(t,e),t}(c);t.ProcessingInstruction=d;var f=function(e){function t(t,r){var n=e.call(this,t)||this;return n.children=r,n}return i(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(l);t.NodeWithChildren=f;var h=function(e){function t(t){return e.call(this,s.ElementType.Root,t)||this}return i(t,e),t}(f);t.Document=h;var m=function(e){function t(t,r,n,i){void 0===n&&(n=[]),void 0===i&&(i="script"===t?s.ElementType.Script:"style"===t?s.ElementType.Style:s.ElementType.Tag);var o=e.call(this,i,n)||this;return o.name=t,o.attribs=r,o}return i(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var r,n;return{name:t,value:e.attribs[t],namespace:null===(r=e["x-attribsNamespace"])||void 0===r?void 0:r[t],prefix:null===(n=e["x-attribsPrefix"])||void 0===n?void 0:n[t]}}))},enumerable:!1,configurable:!0}),t}(f);function g(e){return(0,s.isTag)(e)}function b(e){return e.type===s.ElementType.CDATA}function v(e){return e.type===s.ElementType.Text}function y(e){return e.type===s.ElementType.Comment}function w(e){return e.type===s.ElementType.Directive}function x(e){return e.type===s.ElementType.Root}function O(e,t){var r;if(void 0===t&&(t=!1),v(e))r=new u(e.data);else if(y(e))r=new p(e.data);else if(g(e)){var n=t?S(e.children):[],i=new m(e.name,o({},e.attribs),n);n.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),r=i}else if(b(e)){n=t?S(e.children):[];var a=new f(s.ElementType.CDATA,n);n.forEach((function(e){return e.parent=a})),r=a}else if(x(e)){n=t?S(e.children):[];var l=new h(n);n.forEach((function(e){return e.parent=l})),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),r=l}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new d(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),r=c}return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function S(e){for(var t=e.map((function(e){return O(e,!0)})),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}t.Element=m,t.isTag=g,t.isCDATA=b,t.isText=v,t.isComment=y,t.isDirective=w,t.isDocument=x,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=O},488:(e,t,r)=>{var n=r(3670),i=r(484),o=r(4152);o="function"==typeof o.default?o.default:o;var s={lowerCaseAttributeNames:!1};function a(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:n(o(e,(t=t||{}).htmlparser2||s),t)}a.domToReact=n,a.htmlToDOM=o,a.attributesToProps=i,a.Element=r(7384).Element,e.exports=a,e.exports.default=a},484:(e,t,r)=>{var n=r(83),i=r(4606);function o(e){return n.possibleStandardNames[e]}e.exports=function(e){var t,r,s,a,l,c={},u=(e=e||{}).type&&{reset:!0,submit:!0}[e.type];for(t in e)if(s=e[t],n.isCustomAttribute(t))c[t]=s;else if(a=o(r=t.toLowerCase()))switch(l=n.getPropertyInfo(a),"checked"!==a&&"value"!==a||u||(a=o("default"+r)),c[a]=s,l&&l.type){case n.BOOLEAN:c[a]=!0;break;case n.OVERLOADED_BOOLEAN:""===s&&(c[a]=!0)}else i.PRESERVE_CUSTOM_ATTRIBUTES&&(c[t]=s);return i.setStyleProp(e.style,c),c}},3670:(e,t,r)=>{var n=r(9196),i=r(484),o=r(4606),s=o.setStyleProp,a=o.canTextBeChildOfNode;function l(e){return o.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&o.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,r){for(var o,c,u,p,d,f=(r=r||{}).library||n,h=f.cloneElement,m=f.createElement,g=f.isValidElement,b=[],v="function"==typeof r.replace,y=r.trim,w=0,x=t.length;w<x;w++)if(o=t[w],v&&g(u=r.replace(o)))x>1&&(u=h(u,{key:u.key||w})),b.push(u);else if("text"!==o.type){switch(p=o.attribs,l(o)?s(p.style,p):p&&(p=i(p)),d=null,o.type){case"script":case"style":o.children[0]&&(p.dangerouslySetInnerHTML={__html:o.children[0].data});break;case"tag":"textarea"===o.name&&o.children[0]?p.defaultValue=o.children[0].data:o.children&&o.children.length&&(d=e(o.children,r));break;default:continue}x>1&&(p.key=w),b.push(m(o.name,p,d))}else{if((c=!o.data.trim().length)&&o.parent&&!a(o.parent))continue;if(y&&c)continue;b.push(o.data)}return 1===b.length?b[0]:b}},4606:(e,t,r)=>{var n=r(9196),i=r(1476).default;var o={reactCompat:!0};var s=n.version.split(".")[0]>=16,a=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:s,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var r,n,i="function"==typeof t,o={},s={};for(r in e)n=e[r],i&&(o=t(r,n))&&2===o.length?s[o[0]]=o[1]:"string"==typeof n&&(s[n]=r);return s},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=i(e,o)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!a.has(e.name)},elementsWithNoTextChildren:a}},7384:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var o=r(9960),s=r(5079);i(r(5079),t);var a=/\s+/g,l={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},c=function(){function e(e,t,r){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(r=t,t=l),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:l,this.elementCB=null!=r?r:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var r=this.options.xmlMode?o.ElementType.Tag:void 0,n=new s.Element(e,t,void 0,r);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(e){var t=this.options.normalizeWhitespace,r=this.lastNode;if(r&&r.type===o.ElementType.Text)t?r.data=(r.data+e).replace(a," "):r.data+=e,this.options.withEndIndices&&(r.endIndex=this.parser.endIndex);else{t&&(e=e.replace(a," "));var n=new s.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment)this.lastNode.data+=e;else{var t=new s.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new s.Text(""),t=new s.NodeWithChildren(o.ElementType.CDATA,[e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var r=new s.ProcessingInstruction(e,t);this.addNode(r)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],r=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),r&&(e.prev=r,r.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=c,t.default=c},5079:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var s=r(9960),a=new Map([[s.ElementType.Tag,1],[s.ElementType.Script,1],[s.ElementType.Style,1],[s.ElementType.Directive,1],[s.ElementType.Text,3],[s.ElementType.CDATA,4],[s.ElementType.Comment,8],[s.ElementType.Root,9]]),l=function(){function e(e){this.type=e,this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"nodeType",{get:function(){var e;return null!==(e=a.get(this.type))&&void 0!==e?e:1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),O(this,e)},e}();t.Node=l;var c=function(e){function t(t,r){var n=e.call(this,t)||this;return n.data=r,n}return i(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(l);t.DataNode=c;var u=function(e){function t(t){return e.call(this,s.ElementType.Text,t)||this}return i(t,e),t}(c);t.Text=u;var p=function(e){function t(t){return e.call(this,s.ElementType.Comment,t)||this}return i(t,e),t}(c);t.Comment=p;var d=function(e){function t(t,r){var n=e.call(this,s.ElementType.Directive,r)||this;return n.name=t,n}return i(t,e),t}(c);t.ProcessingInstruction=d;var f=function(e){function t(t,r){var n=e.call(this,t)||this;return n.children=r,n}return i(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(l);t.NodeWithChildren=f;var h=function(e){function t(t){return e.call(this,s.ElementType.Root,t)||this}return i(t,e),t}(f);t.Document=h;var m=function(e){function t(t,r,n,i){void 0===n&&(n=[]),void 0===i&&(i="script"===t?s.ElementType.Script:"style"===t?s.ElementType.Style:s.ElementType.Tag);var o=e.call(this,i,n)||this;return o.name=t,o.attribs=r,o}return i(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var r,n;return{name:t,value:e.attribs[t],namespace:null===(r=e["x-attribsNamespace"])||void 0===r?void 0:r[t],prefix:null===(n=e["x-attribsPrefix"])||void 0===n?void 0:n[t]}}))},enumerable:!1,configurable:!0}),t}(f);function g(e){return(0,s.isTag)(e)}function b(e){return e.type===s.ElementType.CDATA}function v(e){return e.type===s.ElementType.Text}function y(e){return e.type===s.ElementType.Comment}function w(e){return e.type===s.ElementType.Directive}function x(e){return e.type===s.ElementType.Root}function O(e,t){var r;if(void 0===t&&(t=!1),v(e))r=new u(e.data);else if(y(e))r=new p(e.data);else if(g(e)){var n=t?S(e.children):[],i=new m(e.name,o({},e.attribs),n);n.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),r=i}else if(b(e)){n=t?S(e.children):[];var a=new f(s.ElementType.CDATA,n);n.forEach((function(e){return e.parent=a})),r=a}else if(x(e)){n=t?S(e.children):[];var l=new h(n);n.forEach((function(e){return e.parent=l})),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),r=l}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new d(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),r=c}return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function S(e){for(var t=e.map((function(e){return O(e,!0)})),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}t.Element=m,t.isTag=g,t.isCDATA=b,t.isText=v,t.isComment=y,t.isDirective=w,t.isDocument=x,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=O},8139:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var p=1,d=1;function f(e){var t=e.match(r);t&&(p+=t.length);var n=e.lastIndexOf("\n");d=~n?e.length-n:d+e.length}function h(){var e={line:p,column:d};return function(t){return t.position=new m(e),y(),t}}function m(e){this.start=e,this.end={line:p,column:d},this.source=l.source}m.prototype.content=e;var g=[];function b(t){var r=new Error(l.source+":"+p+":"+d+": "+t);if(r.reason=t,r.filename=l.source,r.line=p,r.column=d,r.source=e,!l.silent)throw r;g.push(r)}function v(t){var r=t.exec(e);if(r){var n=r[0];return f(n),e=e.slice(n.length),r}}function y(){v(n)}function w(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var r=2;c!=e.charAt(r)&&("*"!=e.charAt(r)||"/"!=e.charAt(r+1));)++r;if(r+=2,c===e.charAt(r-1))return b("End of comment missing");var n=e.slice(2,r-2);return d+=2,f(n),e=e.slice(r),d+=2,t({type:"comment",comment:n})}}function O(){var e=h(),r=v(i);if(r){if(x(),!v(o))return b("property missing ':'");var n=v(s),l=e({type:"declaration",property:u(r[0].replace(t,c)),value:n?u(n[0].replace(t,c)):c});return v(a),l}}return y(),function(){var e,t=[];for(w(t);e=O();)!1!==e&&(t.push(e),w(t));return t}()}},9430:function(e,t){var r,n,i;n=[],void 0===(i="function"==typeof(r=function(){return function(e){function t(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function r(t){var r,n=t.exec(e.substring(m));if(n)return r=n[0],m+=r.length,r}for(var n,i,o,s,a,l=e.length,c=/^[ \t\n\r\u000c]+/,u=/^[, \t\n\r\u000c]+/,p=/^[^ \t\n\r\u000c]+/,d=/[,]+$/,f=/^\d+$/,h=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,m=0,g=[];;){if(r(u),m>=l)return g;n=r(p),i=[],","===n.slice(-1)?(n=n.replace(d,""),v()):b()}function b(){for(r(c),o="",s="in descriptor";;){if(a=e.charAt(m),"in descriptor"===s)if(t(a))o&&(i.push(o),o="",s="after descriptor");else{if(","===a)return m+=1,o&&i.push(o),void v();if("("===a)o+=a,s="in parens";else{if(""===a)return o&&i.push(o),void v();o+=a}}else if("in parens"===s)if(")"===a)o+=a,s="in descriptor";else{if(""===a)return i.push(o),void v();o+=a}else if("after descriptor"===s)if(t(a));else{if(""===a)return void v();s="in descriptor",m-=1}m+=1}}function v(){var t,r,o,s,a,l,c,u,p,d=!1,m={};for(s=0;s<i.length;s++)l=(a=i[s])[a.length-1],c=a.substring(0,a.length-1),u=parseInt(c,10),p=parseFloat(c),f.test(c)&&"w"===l?((t||r)&&(d=!0),0===u?d=!0:t=u):h.test(c)&&"x"===l?((t||r||o)&&(d=!0),p<0?d=!0:r=p):f.test(c)&&"h"===l?((o||r)&&(d=!0),0===u?d=!0:o=u):d=!0;d?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+a+"'."):(m.url=n,t&&(m.w=t),r&&(m.d=r),o&&(m.h=o),g.push(m))}}})?r.apply(t,n):r)||(e.exports=i)},4241:e=>{var t=String,r=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t}};e.exports=r(),e.exports.createColors=r},1353:(e,t,r)=>{"use strict";let n=r(1019);class i extends n{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}e.exports=i,i.default=i,n.registerAtRule(i)},9932:(e,t,r)=>{"use strict";let n=r(5631);class i extends n{constructor(e){super(e),this.type="comment"}}e.exports=i,i.default=i},1019:(e,t,r)=>{"use strict";let n,i,o,s,{isClean:a,my:l}=r(5513),c=r(4258),u=r(9932),p=r(5631);function d(e){return e.map((e=>(e.nodes&&(e.nodes=d(e.nodes)),delete e.source,e)))}function f(e){if(e[a]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)f(t)}class h extends p{push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}each(e){if(!this.proxyOf.nodes)return;let t,r,n=this.getIterator();for(;this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],r=e(this.proxyOf.nodes[t],t),!1!==r);)this.indexes[n]+=1;return delete this.indexes[n],r}walk(e){return this.each(((t,r)=>{let n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((r,n)=>{if("decl"===r.type&&e.test(r.prop))return t(r,n)})):this.walk(((r,n)=>{if("decl"===r.type&&r.prop===e)return t(r,n)})):(t=e,this.walk(((e,r)=>{if("decl"===e.type)return t(e,r)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((r,n)=>{if("rule"===r.type&&e.test(r.selector))return t(r,n)})):this.walk(((r,n)=>{if("rule"===r.type&&r.selector===e)return t(r,n)})):(t=e,this.walk(((e,r)=>{if("rule"===e.type)return t(e,r)})))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((r,n)=>{if("atrule"===r.type&&e.test(r.name))return t(r,n)})):this.walk(((r,n)=>{if("atrule"===r.type&&r.name===e)return t(r,n)})):(t=e,this.walk(((e,r)=>{if("atrule"===e.type)return t(e,r)})))}walkComments(e){return this.walk(((t,r)=>{if("comment"===t.type)return e(t,r)}))}append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}insertBefore(e,t){let r,n=0===(e=this.index(e))&&"prepend",i=this.normalize(t,this.proxyOf.nodes[e],n).reverse();for(let t of i)this.proxyOf.nodes.splice(e,0,t);for(let t in this.indexes)r=this.indexes[t],e<=r&&(this.indexes[t]=r+i.length);return this.markDirty(),this}insertAfter(e,t){e=this.index(e);let r,n=this.normalize(t,this.proxyOf.nodes[e]).reverse();for(let t of n)this.proxyOf.nodes.splice(e+1,0,t);for(let t in this.indexes)r=this.indexes[t],e<r&&(this.indexes[t]=r+n.length);return this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls((n=>{t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))})),this.markDirty(),this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}normalize(e,t){if("string"==typeof e)e=d(n(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new c(e)]}else if(e.selector)e=[new i(e)];else if(e.name)e=[new o(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new u(e)]}return e.map((e=>(e[l]||h.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[a]&&f(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e)))}getProxyProcessor(){return{set:(e,t,r)=>(e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0),get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...r)=>e[t](...r.map((e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e))):"every"===t||"some"===t?r=>e[t](((e,...t)=>r(e.toProxy(),...t))):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map((e=>e.toProxy())):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}}h.registerParse=e=>{n=e},h.registerRule=e=>{i=e},h.registerAtRule=e=>{o=e},h.registerRoot=e=>{s=e},e.exports=h,h.default=h,h.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,o.prototype):"rule"===e.type?Object.setPrototypeOf(e,i.prototype):"decl"===e.type?Object.setPrototypeOf(e,c.prototype):"comment"===e.type?Object.setPrototypeOf(e,u.prototype):"root"===e.type&&Object.setPrototypeOf(e,s.prototype),e[l]=!0,e.nodes&&e.nodes.forEach((e=>{h.rebuild(e)}))}},2671:(e,t,r)=>{"use strict";let n=r(4241),i=r(2868);class o extends Error{constructor(e,t,r,n,i,s){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),n&&(this.source=n),s&&(this.plugin=s),void 0!==t&&void 0!==r&&("number"==typeof t?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,o)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=n.isColorSupported),i&&e&&(t=i(t));let r,o,s=t.split(/\r?\n/),a=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),c=String(l).length;if(e){let{bold:e,red:t,gray:i}=n.createColors(!0);r=r=>e(t(r)),o=e=>i(e)}else r=o=e=>e;return s.slice(a,l).map(((e,t)=>{let n=a+1+t,i=" "+(" "+n).slice(-c)+" | ";if(n===this.line){let t=o(i.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return r(">")+o(i)+e+"\n "+t+r("^")}return" "+o(i)+e})).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}e.exports=o,o.default=o},4258:(e,t,r)=>{"use strict";let n=r(5631);class i extends n{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}e.exports=i,i.default=i},6461:(e,t,r)=>{"use strict";let n,i,o=r(1019);class s extends o{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new n(new i,this,e).stringify()}}s.registerLazyResult=e=>{n=e},s.registerProcessor=e=>{i=e},e.exports=s,s.default=s},250:(e,t,r)=>{"use strict";let n=r(4258),i=r(7981),o=r(9932),s=r(1353),a=r(5995),l=r(1025),c=r(1675);function u(e,t){if(Array.isArray(e))return e.map((e=>u(e)));let{inputs:r,...p}=e;if(r){t=[];for(let e of r){let r={...e,__proto__:a.prototype};r.map&&(r.map={...r.map,__proto__:i.prototype}),t.push(r)}}if(p.nodes&&(p.nodes=e.nodes.map((e=>u(e,t)))),p.source){let{inputId:e,...r}=p.source;p.source=r,null!=e&&(p.source.input=t[e])}if("root"===p.type)return new l(p);if("decl"===p.type)return new n(p);if("rule"===p.type)return new c(p);if("comment"===p.type)return new o(p);if("atrule"===p.type)return new s(p);throw new Error("Unknown node type: "+e.type)}e.exports=u,u.default=u},5995:(e,t,r)=>{"use strict";let{SourceMapConsumer:n,SourceMapGenerator:i}=r(209),{fileURLToPath:o,pathToFileURL:s}=r(7414),{resolve:a,isAbsolute:l}=r(9830),{nanoid:c}=r(2618),u=r(2868),p=r(2671),d=r(7981),f=Symbol("fromOffsetCache"),h=Boolean(n&&i),m=Boolean(a&&l);class g{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!m||/^\w+:\/\//.test(t.from)||l(t.from)?this.file=t.from:this.file=a(t.from)),m&&h){let e=new d(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+c(6)+">"),this.map&&(this.map.file=this.from)}fromOffset(e){let t,r;if(this[f])r=this[f];else{let e=this.css.split("\n");r=new Array(e.length);let t=0;for(let n=0,i=e.length;n<i;n++)r[n]=t,t+=e[n].length+1;this[f]=r}t=r[r.length-1];let n=0;if(e>=t)n=r.length-1;else{let t,i=r.length-2;for(;n<i;)if(t=n+(i-n>>1),e<r[t])i=t-1;else{if(!(e>=r[t+1])){n=t;break}n=t+1}}return{line:n+1,col:e-r[n]+1}}error(e,t,r,n={}){let i,o,a;if(t&&"object"==typeof t){let e=t,n=r;if("number"==typeof t.offset){let n=this.fromOffset(e.offset);t=n.line,r=n.col}else t=e.line,r=e.column;if("number"==typeof n.offset){let e=this.fromOffset(n.offset);o=e.line,a=e.col}else o=n.line,a=n.column}else if(!r){let e=this.fromOffset(t);t=e.line,r=e.col}let l=this.origin(t,r,o,a);return i=l?new p(e,void 0===l.endLine?l.line:{line:l.line,column:l.column},void 0===l.endLine?l.column:{line:l.endLine,column:l.endColumn},l.source,l.file,n.plugin):new p(e,void 0===o?t:{line:t,column:r},void 0===o?r:{line:o,column:a},this.css,this.file,n.plugin),i.input={line:t,column:r,endLine:o,endColumn:a,source:this.css},this.file&&(s&&(i.input.url=s(this.file).toString()),i.input.file=this.file),i}origin(e,t,r,n){if(!this.map)return!1;let i,a,c=this.map.consumer(),u=c.originalPositionFor({line:e,column:t});if(!u.source)return!1;"number"==typeof r&&(i=c.originalPositionFor({line:r,column:n})),a=l(u.source)?s(u.source):new URL(u.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let p={url:a.toString(),line:u.line,column:u.column,endLine:i&&i.line,endColumn:i&&i.column};if("file:"===a.protocol){if(!o)throw new Error("file: protocol is not available in this PostCSS build");p.file=o(a)}let d=c.sourceContentFor(u.source);return d&&(p.source=d),p}mapResolve(e){return/^\w+:\/\//.test(e)?e:a(this.map.consumer().sourceRoot||this.map.root||".",e)}get from(){return this.file||this.id}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}}e.exports=g,g.default=g,u&&u.registerInput&&u.registerInput(g)},1939:(e,t,r)=>{"use strict";let{isClean:n,my:i}=r(5513),o=r(8505),s=r(7088),a=r(1019),l=r(6461),c=(r(2448),r(3632)),u=r(6939),p=r(1025);const d={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},f={postcssPlugin:!0,prepare:!0,Once:!0,Document:!0,Root:!0,Declaration:!0,Rule:!0,AtRule:!0,Comment:!0,DeclarationExit:!0,RuleExit:!0,AtRuleExit:!0,CommentExit:!0,RootExit:!0,DocumentExit:!0,OnceExit:!0},h={postcssPlugin:!0,prepare:!0,Once:!0};function m(e){return"object"==typeof e&&"function"==typeof e.then}function g(e){let t=!1,r=d[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function b(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:g(e),{node:e,events:t,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function v(e){return e[n]=!1,e.nodes&&e.nodes.forEach((e=>v(e))),e}let y={};class w{constructor(e,t,r){let n;if(this.stringified=!1,this.processed=!1,"object"!=typeof t||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof w||t instanceof c)n=v(t.root),t.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let e=u;r.syntax&&(e=r.syntax.parse),r.parser&&(e=r.parser),e.parse&&(e=e.parse);try{n=e(t,r)}catch(e){this.processed=!0,this.error=e}n&&!n[i]&&a.rebuild(n)}else n=v(t);this.result=new c(e,n,r),this.helpers={...y,result:this.result,postcss:y},this.plugins=this.processor.plugins.map((e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e))}get[Symbol.toStringTag](){return"LazyResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.stringify().css}get content(){return this.stringify().content}get map(){return this.stringify().map}get root(){return this.sync().root}get messages(){return this.sync().messages}warnings(){return this.sync().warnings()}toString(){return this.css}then(e,t){return this.async().then(e,t)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){if(m(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[n];)e[n]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=s;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new o(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}walkSync(e){e[n]=!0;let t=g(e);for(let r of t)if(0===r)e.nodes&&e.each((e=>{e[n]||this.walkSync(e)}));else{let t=this.listeners[r];if(t&&this.visitSync(t,e.toProxy()))return}}visitSync(e,t){for(let[r,n]of e){let e;this.result.lastPlugin=r;try{e=n(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(m(e))throw this.getAsyncError()}}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map((t=>e.Once(t,this.helpers)));return m(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(m(r))try{await r}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[n];){e[n]=!0;let t=[b(e)];for(;t.length>0;){let e=this.visitTick(t);if(m(e))try{await e}catch(e){let r=t[t.length-1].node;throw this.handleError(e,r)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map((e=>r(e,this.helpers)));await Promise.all(t)}else await r(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,r])};for(let t of this.plugins)if("object"==typeof t)for(let r in t){if(!f[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!h[r])if("object"==typeof t[r])for(let n in t[r])e(t,"*"===n?r:r+"-"+n.toLowerCase(),t[r][n]);else"function"==typeof t[r]&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(e){let t=e[e.length-1],{node:r,visitors:i}=t;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(i.length>0&&t.visitorIndex<i.length){let[e,n]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return n(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){let i,o=t.iterator;for(;i=r.nodes[r.indexes[o]];)if(r.indexes[o]+=1,!i[n])return i[n]=!0,void e.push(b(i));t.iterator=0,delete r.indexes[o]}let o=t.events;for(;t.eventIndex<o.length;){let e=o[t.eventIndex];if(t.eventIndex+=1,0===e)return void(r.nodes&&r.nodes.length&&(r[n]=!0,t.iterator=r.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}}w.registerPostcss=e=>{y=e},e.exports=w,w.default=w,p.registerLazyResult(w),l.registerLazyResult(w)},4715:e=>{"use strict";let t={split(e,t,r){let n=[],i="",o=!1,s=0,a=!1,l="",c=!1;for(let r of e)c?c=!1:"\\"===r?c=!0:a?r===l&&(a=!1):'"'===r||"'"===r?(a=!0,l=r):"("===r?s+=1:")"===r?s>0&&(s-=1):0===s&&t.includes(r)&&(o=!0),o?(""!==i&&n.push(i.trim()),i="",o=!1):i+=r;return(r||""!==i)&&n.push(i.trim()),n},space:e=>t.split(e,[" ","\n","\t"]),comma:e=>t.split(e,[","],!0)};e.exports=t,t.default=t},8505:(e,t,r)=>{"use strict";let{SourceMapConsumer:n,SourceMapGenerator:i}=r(209),{dirname:o,resolve:s,relative:a,sep:l}=r(9830),{pathToFileURL:c}=r(7414),u=r(5995),p=Boolean(n&&i),d=Boolean(o&&s&&a&&l);e.exports=class{constructor(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}}));else{let e=new u(this.css,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((e=>e.inline)))}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((e=>e.withContent()))}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}setSourcesContent(){let e={};if(this.root)this.root.walk((t=>{if(t.source){let r=t.source.input.from;r&&!e[r]&&(e[r]=!0,this.map.setSourceContent(this.toUrl(this.path(r)),t.source.input.css))}}));else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}applyPrevMaps(){for(let e of this.previous()){let t,r=this.toUrl(this.path(e.file)),i=e.root||o(e.file);!1===this.mapOpts.sourcesContent?(t=new n(e.text),t.sourcesContent&&(t.sourcesContent=t.sourcesContent.map((()=>null)))):t=e.consumer(),this.map.applySourceMap(t,r,this.toUrl(this.path(i)))}}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((e=>e.annotation)))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=i.fromSourceMap(e)}else this.map=new i({file:this.outputFile()}),this.map.addMapping({source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>",generated:{line:1,column:0},original:{line:1,column:0}});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}path(e){if(0===e.indexOf("<"))return e;if(/^\w+:\/\//.test(e))return e;if(this.mapOpts.absolute)return e;let t=this.opts.to?o(this.opts.to):".";return"string"==typeof this.mapOpts.annotation&&(t=o(s(t,this.mapOpts.annotation))),e=a(t,e)}toUrl(e){return"\\"===l&&(e=e.replace(/\\/g,"/")),encodeURI(e).replace(/[#?]/g,encodeURIComponent)}sourcePath(e){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);if(this.mapOpts.absolute){if(c)return c(e.source.input.from).toString();throw new Error("`map.absolute` option is not available in this PostCSS build")}return this.toUrl(this.path(e.source.input.from))}generateString(){this.css="",this.map=new i({file:this.outputFile()});let e,t,r=1,n=1,o="<no source>",s={source:"",generated:{line:0,column:0},original:{line:0,column:0}};this.stringify(this.root,((i,a,l)=>{if(this.css+=i,a&&"end"!==l&&(s.generated.line=r,s.generated.column=n-1,a.source&&a.source.start?(s.source=this.sourcePath(a),s.original.line=a.source.start.line,s.original.column=a.source.start.column-1,this.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,this.map.addMapping(s))),e=i.match(/\n/g),e?(r+=e.length,t=i.lastIndexOf("\n"),n=i.length-t):n+=i.length,a&&"start"!==l){let e=a.parent||{raws:{}};("decl"!==a.type||a!==e.last||e.raws.semicolon)&&(a.source&&a.source.end?(s.source=this.sourcePath(a),s.original.line=a.source.end.line,s.original.column=a.source.end.column-1,s.generated.line=r,s.generated.column=n-2,this.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=r,s.generated.column=n-1,this.map.addMapping(s)))}}))}generate(){if(this.clearAnnotation(),d&&p&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,(t=>{e+=t})),[e]}}}},7647:(e,t,r)=>{"use strict";let n=r(8505),i=r(7088),o=(r(2448),r(6939));const s=r(3632);class a{constructor(e,t,r){let o;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let a=i;this.result=new s(this._processor,o,this._opts),this.result.css=t;let l=this;Object.defineProperty(this.result,"root",{get:()=>l.root});let c=new n(a,o,this._opts,t);if(c.isMap()){let[e,t]=c.generate();e&&(this.result.css=e),t&&(this.result.map=t)}}get[Symbol.toStringTag](){return"NoWorkResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.result.css}get content(){return this.result.css}get map(){return this.result.map}get root(){if(this._root)return this._root;let e,t=o;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get messages(){return[]}warnings(){return[]}toString(){return this._css}then(e,t){return this.async().then(e,t)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}sync(){if(this.error)throw this.error;return this.result}}e.exports=a,a.default=a},5631:(e,t,r)=>{"use strict";let{isClean:n,my:i}=r(5513),o=r(2671),s=r(1062),a=r(7088);function l(e,t){let r=new e.constructor;for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;if("proxyCache"===n)continue;let i=e[n],o=typeof i;"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map((e=>l(e,r))):("object"===o&&null!==i&&(i=l(i)),r[n]=i)}return r}class c{constructor(e={}){this.raws={},this[n]=!1,this[i]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let r of e[t])"function"==typeof r.clone?this.append(r.clone()):this.append(r)}else this[t]=e[t]}error(e,t={}){if(this.source){let{start:r,end:n}=this.rangeBy(t);return this.source.input.error(e,{line:r.line,column:r.column},{line:n.line,column:n.column},t)}return new o(e)}warn(e,t,r){let n={node:this};for(let e in r)n[e]=r[e];return e.warn(t,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(e=a){e.stringify&&(e=e.stringify);let t="";return e(this,(e=>{t+=e})),t}assign(e={}){for(let t in e)this[t]=e[t];return this}clone(e={}){let t=l(this);for(let r in e)t[r]=e[r];return t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let n of e)n===this?r=!0:r?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);r||this.remove()}return this}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}before(e){return this.parent.insertBefore(this,e),this}after(e){return this.parent.insertAfter(this,e),this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}raw(e,t){return(new s).raw(this,e,t)}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}toJSON(e,t){let r={},n=null==t;t=t||new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let n=this[e];if(Array.isArray(n))r[e]=n.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof n&&n.toJSON)r[e]=n.toJSON(null,t);else if("source"===e){let o=t.get(n.input);null==o&&(o=i,t.set(n.input,i),i++),r[e]={inputId:o,start:n.start,end:n.end}}else r[e]=n}return n&&(r.inputs=[...t.keys()].map((e=>e.toJSON()))),r}positionInside(e){let t=this.toString(),r=this.source.start.column,n=this.source.start.line;for(let i=0;i<e;i++)"\n"===t[i]?(r=1,n+=1):r+=1;return{line:n,column:r}}positionBy(e){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let r=this.toString().indexOf(e.word);-1!==r&&(t=this.positionInside(r))}return t}rangeBy(e){let t={line:this.source.start.line,column:this.source.start.column},r=this.source.end?{line:this.source.end.line,column:this.source.end.column+1}:{line:t.line,column:t.column+1};if(e.word){let n=this.toString().indexOf(e.word);-1!==n&&(t=this.positionInside(n),r=this.positionInside(n+e.word.length))}else e.start?t={line:e.start.line,column:e.start.column}:e.index&&(t=this.positionInside(e.index)),e.end?r={line:e.end.line,column:e.end.column}:e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={line:t.line,column:t.column+1}),{start:t,end:r}}getProxyProcessor(){return{set:(e,t,r)=>(e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0),get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t]}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}markDirty(){if(this[n]){this[n]=!1;let e=this;for(;e=e.parent;)e[n]=!1}}get proxyOf(){return this}}e.exports=c,c.default=c},6939:(e,t,r)=>{"use strict";let n=r(1019),i=r(8867),o=r(5995);function s(e,t){let r=new o(e,t),n=new i(r);try{n.parse()}catch(e){throw e}return n.root}e.exports=s,s.default=s,n.registerParse(s)},8867:(e,t,r)=>{"use strict";let n=r(4258),i=r(3852),o=r(9932),s=r(1353),a=r(1025),l=r(1675);const c={empty:!0,space:!0};e.exports=class{constructor(e){this.input=e,this.root=new a,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=i(this.input)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}comment(e){let t=new o;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]);let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}emptyRule(e){let t=new l;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}other(e){let t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],l=e;for(;l;){if(r=l[0],a.push(l),"("===r||"["===r)i||(i=l),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=l),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)}rule(e){e.pop();let t=new l;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}decl(e,t){let r=new n;this.init(r,e[0][2]);let i,o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(o[3]||o[2]||function(e){for(let t=e.length-1;t>=0;t--){let r=e[t],n=r[3]||r[2];if(n)return n}}(e));"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(i=e.shift(),":"===i[0]){r.raws.between+=i[1];break}"word"===i[0]&&/\w/.test(i[1])&&this.unknownWord([i]),r.raws.between+=i[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let s,a=[];for(;e.length&&(s=e[0][0],"space"===s||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(i=e[t],"!important"===i[1].toLowerCase()){r.important=!0;let n=this.stringFrom(e,t);n=this.spacesFromEnd(e)+n," !important"!==n&&(r.raws.important=n);break}if("important"===i[1].toLowerCase()){let n=e.slice(0),i="";for(let e=t;e>0;e--){let t=n[e][0];if(0===i.trim().indexOf("!")&&"space"!==t)break;i=n.pop()[1]+i}0===i.trim().indexOf("!")&&(r.important=!0,r.raws.important=i,e=n)}if("space"!==i[0]&&"comment"!==i[0])break}e.some((e=>"space"!==e[0]&&"comment"!==e[0]))&&(r.raws.between+=a.map((e=>e[1])).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}atrule(e){let t,r,n,i=new s;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);let o=!1,a=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),this.semicolon=!0;break}if("{"===t){a=!0;break}if("}"===t){if(l.length>0){for(n=l.length-1,r=l[n];r&&"space"===r[0];)r=l[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]))}this.end(e);break}l.push(e)}else l.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(i.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(i,"params",l),o&&(e=l[l.length-1],i.source.end=this.getPosition(e[3]||e[2]),this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),a&&(i.nodes=[],this.current=i)}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{offset:e,line:t.line,column:t.col}}init(e,t){this.current.push(e),e.source={start:this.getPosition(t),input:this.input},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}raw(e,t,r,n){let i,o,s,a,l=r.length,u="",p=!0;for(let e=0;e<l;e+=1)i=r[e],o=i[0],"space"!==o||e!==l-1||n?"comment"===o?(a=r[e-1]?r[e-1][0]:"empty",s=r[e+1]?r[e+1][0]:"empty",c[a]||c[s]||","===u.slice(-1)?p=!1:u+=i[1]):u+=i[1]:p=!1;if(!p){let n=r.reduce(((e,t)=>e+t[1]),"");e.raws[t]={value:u,raw:n}}e[t]=u}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r}colon(e){let t,r,n,i=0;for(let[o,s]of e.entries()){if(t=s,r=t[0],"("===r&&(i+=1),")"===r&&(i-=1),0===i&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return o}this.doubleColon(t)}n=t}return!1}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}precheckMissedSemicolon(){}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let r,n=0;for(let i=t-1;i>=0&&(r=e[i],"space"===r[0]||(n+=1,2!==n));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}}},20:(e,t,r)=>{"use strict";let n=r(2671),i=r(4258),o=r(1939),s=r(1019),a=r(1723),l=r(7088),c=r(250),u=r(6461),p=r(1728),d=r(9932),f=r(1353),h=r(3632),m=r(5995),g=r(6939),b=r(4715),v=r(1675),y=r(1025),w=r(5631);function x(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new a(e)}x.plugin=function(e,t){let r,n=!1;function i(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let i=t(...r);return i.postcssPlugin=e,i.postcssVersion=(new a).version,i}return Object.defineProperty(i,"postcss",{get:()=>(r||(r=i()),r)}),i.process=function(e,t,r){return x([i(r)]).process(e,t)},i},x.stringify=l,x.parse=g,x.fromJSON=c,x.list=b,x.comment=e=>new d(e),x.atRule=e=>new f(e),x.decl=e=>new i(e),x.rule=e=>new v(e),x.root=e=>new y(e),x.document=e=>new u(e),x.CssSyntaxError=n,x.Declaration=i,x.Container=s,x.Processor=a,x.Document=u,x.Comment=d,x.Warning=p,x.AtRule=f,x.Result=h,x.Input=m,x.Rule=v,x.Root=y,x.Node=w,o.registerPostcss(x),e.exports=x,x.default=x},7981:(e,t,r)=>{"use strict";let{SourceMapConsumer:n,SourceMapGenerator:i}=r(209),{existsSync:o,readFileSync:s}=r(4777),{dirname:a,join:l}=r(9830);class c{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=a(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new n(this.text)),this.consumerCache}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(e,t){return!!e&&e.substr(0,t.length)===t}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t;let r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}loadFile(e){if(this.root=a(e),o(e))return this.mapFile=e,s(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof n)return i.fromSourceMap(t).toString();if(t instanceof i)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let r=t(e);if(r){let e=this.loadFile(r);if(!e)throw new Error("Unable to load previous source map: "+r.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=l(a(e),t)),this.loadFile(t)}}}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}}e.exports=c,c.default=c},1723:(e,t,r)=>{"use strict";let n=r(7647),i=r(1939),o=r(6461),s=r(1025);class a{constructor(e=[]){this.version="8.4.16",this.plugins=this.normalize(e)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}process(e,t={}){return 0===this.plugins.length&&void 0===t.parser&&void 0===t.stringifier&&void 0===t.syntax?new n(this,e,t):new i(this,e,t)}normalize(e){let t=[];for(let r of e)if(!0===r.postcss?r=r():r.postcss&&(r=r.postcss),"object"==typeof r&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if("object"==typeof r&&r.postcssPlugin)t.push(r);else if("function"==typeof r)t.push(r);else{if("object"!=typeof r||!r.parse&&!r.stringify)throw new Error(r+" is not a PostCSS plugin")}return t}}e.exports=a,a.default=a,s.registerProcessor(a),o.registerProcessor(a)},3632:(e,t,r)=>{"use strict";let n=r(1728);class i{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new n(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter((e=>"warning"===e.type))}get content(){return this.css}}e.exports=i,i.default=i},1025:(e,t,r)=>{"use strict";let n,i,o=r(1019);class s extends o{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}removeChild(e,t){let r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}normalize(e,t,r){let n=super.normalize(e);if(t)if("prepend"===r)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of n)e.raws.before=t.raws.before;return n}toResult(e={}){return new n(new i,this,e).stringify()}}s.registerLazyResult=e=>{n=e},s.registerProcessor=e=>{i=e},e.exports=s,s.default=s,o.registerRoot(s)},1675:(e,t,r)=>{"use strict";let n=r(1019),i=r(4715);class o extends n{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return i.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}e.exports=o,o.default=o,n.registerRule(o)},1062:e=>{"use strict";const t={colon:": ",indent:" ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};class r{constructor(e){this.builder=e}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}document(e){this.body(e)}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}atrule(e,t){let r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{let i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let r=this.raw(e,"semicolon");for(let n=0;n<e.nodes.length;n++){let i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}}block(e,t){let r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}raw(e,r,n){let i;if(n||(n=r),r&&(i=e.raws[r],void 0!==i))return i;let o=e.parent;if("before"===n){if(!o||"root"===o.type&&o.first===e)return"";if(o&&"document"===o.type)return""}if(!o)return t[n];let s=e.root();if(s.rawCache||(s.rawCache={}),void 0!==s.rawCache[n])return s.rawCache[n];if("before"===n||"after"===n)return this.beforeAfter(e,n);{let t="raw"+((a=n)[0].toUpperCase()+a.slice(1));this[t]?i=this[t](s,e):s.walk((e=>{if(i=e.raws[r],void 0!==i)return!1}))}var a;return void 0===i&&(i=t[n]),s.rawCache[n]=i,i}rawSemicolon(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1})),t}rawEmptyBody(e){let t;return e.walk((e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1})),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk((r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){let e=r.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}})),t}rawBeforeComment(e,t){let r;return e.walkComments((e=>{if(void 0!==e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls((e=>{if(void 0!==e.raws.before)return r=e.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeRule(e){let t;return e.walk((r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return t=r.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeClose(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeOpen(e){let t;return e.walk((e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1})),t}rawColon(e){let t;return e.walkDecls((e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}beforeAfter(e,t){let r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let n=e.parent,i=0;for(;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<i;e++)r+=t}return r}rawValue(e,t){let r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r}}e.exports=r,r.default=r},7088:(e,t,r)=>{"use strict";let n=r(1062);function i(e,t){new n(t).stringify(e)}e.exports=i,i.default=i},5513:e=>{"use strict";e.exports.isClean=Symbol("isClean"),e.exports.my=Symbol("my")},3852:e=>{"use strict";const t="'".charCodeAt(0),r='"'.charCodeAt(0),n="\\".charCodeAt(0),i="/".charCodeAt(0),o="\n".charCodeAt(0),s=" ".charCodeAt(0),a="\f".charCodeAt(0),l="\t".charCodeAt(0),c="\r".charCodeAt(0),u="[".charCodeAt(0),p="]".charCodeAt(0),d="(".charCodeAt(0),f=")".charCodeAt(0),h="{".charCodeAt(0),m="}".charCodeAt(0),g=";".charCodeAt(0),b="*".charCodeAt(0),v=":".charCodeAt(0),y="@".charCodeAt(0),w=/[\t\n\f\r "#'()/;[\\\]{}]/g,x=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,O=/.[\n"'(/\\]/,S=/[\da-f]/i;e.exports=function(e,C={}){let _,k,E,T,N,P,A,M,D,I,R=e.css.valueOf(),L=C.ignoreErrors,j=R.length,V=0,F=[],q=[];function B(t){throw e.error("Unclosed "+t,V)}return{back:function(e){q.push(e)},nextToken:function(e){if(q.length)return q.pop();if(V>=j)return;let C=!!e&&e.ignoreUnclosed;switch(_=R.charCodeAt(V),_){case o:case s:case l:case c:case a:k=V;do{k+=1,_=R.charCodeAt(k)}while(_===s||_===o||_===l||_===c||_===a);I=["space",R.slice(V,k)],V=k-1;break;case u:case p:case h:case m:case v:case g:case f:{let e=String.fromCharCode(_);I=[e,e,V];break}case d:if(M=F.length?F.pop()[1]:"",D=R.charCodeAt(V+1),"url"===M&&D!==t&&D!==r&&D!==s&&D!==o&&D!==l&&D!==a&&D!==c){k=V;do{if(P=!1,k=R.indexOf(")",k+1),-1===k){if(L||C){k=V;break}B("bracket")}for(A=k;R.charCodeAt(A-1)===n;)A-=1,P=!P}while(P);I=["brackets",R.slice(V,k+1),V,k],V=k}else k=R.indexOf(")",V+1),T=R.slice(V,k+1),-1===k||O.test(T)?I=["(","(",V]:(I=["brackets",T,V,k],V=k);break;case t:case r:E=_===t?"'":'"',k=V;do{if(P=!1,k=R.indexOf(E,k+1),-1===k){if(L||C){k=V+1;break}B("string")}for(A=k;R.charCodeAt(A-1)===n;)A-=1,P=!P}while(P);I=["string",R.slice(V,k+1),V,k],V=k;break;case y:w.lastIndex=V+1,w.test(R),k=0===w.lastIndex?R.length-1:w.lastIndex-2,I=["at-word",R.slice(V,k+1),V,k],V=k;break;case n:for(k=V,N=!0;R.charCodeAt(k+1)===n;)k+=1,N=!N;if(_=R.charCodeAt(k+1),N&&_!==i&&_!==s&&_!==o&&_!==l&&_!==c&&_!==a&&(k+=1,S.test(R.charAt(k)))){for(;S.test(R.charAt(k+1));)k+=1;R.charCodeAt(k+1)===s&&(k+=1)}I=["word",R.slice(V,k+1),V,k],V=k;break;default:_===i&&R.charCodeAt(V+1)===b?(k=R.indexOf("*/",V+2)+1,0===k&&(L||C?k=R.length:B("comment")),I=["comment",R.slice(V,k+1),V,k],V=k):(x.lastIndex=V+1,x.test(R),k=0===x.lastIndex?R.length-1:x.lastIndex-2,I=["word",R.slice(V,k+1),V,k],F.push(I),V=k)}return V++,I},endOfFile:function(){return 0===q.length&&V>=j},position:function(){return V}}}},2448:e=>{"use strict";let t={};e.exports=function(e){t[e]||(t[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))}},1728:e=>{"use strict";class t{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}e.exports=t,t.default=t},2703:(e,t,r)=>{"use strict";var n=r(414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,s){if(s!==n){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return r.PropTypes=r,r}},5697:(e,t,r)=>{e.exports=r(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},83:(e,t,r)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,i,o=[],s=!0,a=!1;try{for(r=r.call(e);!(s=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==r.return||r.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}Object.defineProperty(t,"__esModule",{value:!0});function o(e,t,r,n,i,o,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var s={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){s[e]=new o(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=n(e,2),r=t[0],i=t[1];s[r]=new o(r,1,!1,i,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){s[e]=new o(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){s[e]=new o(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((function(e){s[e]=new o(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){s[e]=new o(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){s[e]=new o(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){s[e]=new o(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){s[e]=new o(e,5,!1,e.toLowerCase(),null,!1,!1)}));var a=/[\-\:]([a-z])/g,l=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((function(e){var t=e.replace(a,l);s[t]=new o(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((function(e){var t=e.replace(a,l);s[t]=new o(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(a,l);s[t]=new o(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){s[e]=new o(e,1,!1,e.toLowerCase(),null,!1,!1)}));s.xlinkHref=new o("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){s[e]=new o(e,1,!1,e.toLowerCase(),null,!0,!0)}));var c=r(8229),u=c.CAMELCASE,p=c.SAME,d=c.possibleStandardNames,f=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),h=Object.keys(d).reduce((function(e,t){var r=d[t];return r===p?e[t]=t:r===u?e[t.toLowerCase()]=t:e[t]=r,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return s.hasOwnProperty(e)?s[e]:null},t.isCustomAttribute=f,t.possibleStandardNames=h},8229:(e,t)=>{t.SAME=0;t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},1036:(e,t,r)=>{const n=r(5106),i=r(3150),{isPlainObject:o}=r(977),s=r(9996),a=r(9430),{parse:l}=r(20),c=["img","audio","video","picture","svg","object","map","iframe","embed"],u=["script","style"];function p(e,t){e&&Object.keys(e).forEach((function(r){t(e[r],r)}))}function d(e,t){return{}.hasOwnProperty.call(e,t)}function f(e,t){const r=[];return p(e,(function(e){t(e)&&r.push(e)})),r}e.exports=m;const h=/^[^\0\t\n\f\r /<=>]+$/;function m(e,t,r){if(null==e)return"";let b="",v="";function y(e,t){const r=this;this.tag=e,this.attribs=t||{},this.tagPosition=b.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(N.length){N[N.length-1].text+=r.text}},this.updateParentNodeMediaChildren=function(){if(N.length&&c.includes(this.tag)){N[N.length-1].mediaChildren.push(this.tag)}}}(t=Object.assign({},m.defaults,t)).parser=Object.assign({},g,t.parser),u.forEach((function(e){t.allowedTags&&t.allowedTags.indexOf(e)>-1&&!t.allowVulnerableTags&&console.warn(`\n\n⚠️ Your \`allowedTags\` option includes, \`${e}\`, which is inherently\nvulnerable to XSS attacks. Please remove it from \`allowedTags\`.\nOr, to disable this warning, add the \`allowVulnerableTags\` option\nand ensure you are accounting for this risk.\n\n`)}));const w=t.nonTextTags||["script","style","textarea","option"];let x,O;t.allowedAttributes&&(x={},O={},p(t.allowedAttributes,(function(e,t){x[t]=[];const r=[];e.forEach((function(e){"string"==typeof e&&e.indexOf("*")>=0?r.push(i(e).replace(/\\\*/g,".*")):x[t].push(e)})),r.length&&(O[t]=new RegExp("^("+r.join("|")+")$"))})));const S={},C={},_={};p(t.allowedClasses,(function(e,t){x&&(d(x,t)||(x[t]=[]),x[t].push("class")),S[t]=[],_[t]=[];const r=[];e.forEach((function(e){"string"==typeof e&&e.indexOf("*")>=0?r.push(i(e).replace(/\\\*/g,".*")):e instanceof RegExp?_[t].push(e):S[t].push(e)})),r.length&&(C[t]=new RegExp("^("+r.join("|")+")$"))}));const k={};let E,T,N,P,A,M,D;p(t.transformTags,(function(e,t){let r;"function"==typeof e?r=e:"string"==typeof e&&(r=m.simpleTransform(e)),"*"===t?E=r:k[t]=r}));let I=!1;L();const R=new n.Parser({onopentag:function(e,r){if(t.enforceHtmlBoundary&&"html"===e&&L(),M)return void D++;const n=new y(e,r);N.push(n);let i=!1;const c=!!n.text;let u;if(d(k,e)&&(u=k[e](e,r),n.attribs=r=u.attribs,void 0!==u.text&&(n.innerText=u.text),e!==u.tagName&&(n.name=e=u.tagName,A[T]=u.tagName)),E&&(u=E(e,r),n.attribs=r=u.attribs,e!==u.tagName&&(n.name=e=u.tagName,A[T]=u.tagName)),(t.allowedTags&&-1===t.allowedTags.indexOf(e)||"recursiveEscape"===t.disallowedTagsMode&&!function(e){for(const t in e)if(d(e,t))return!1;return!0}(P)||null!=t.nestingLimit&&T>=t.nestingLimit)&&(i=!0,P[T]=!0,"discard"===t.disallowedTagsMode&&-1!==w.indexOf(e)&&(M=!0,D=1),P[T]=!0),T++,i){if("discard"===t.disallowedTagsMode)return;v=b,b=""}b+="<"+e,"script"===e&&(t.allowedScriptHostnames||t.allowedScriptDomains)&&(n.innerText=""),(!x||d(x,e)||x["*"])&&p(r,(function(r,i){if(!h.test(i))return void delete n.attribs[i];let c=!1;if(!x||d(x,e)&&-1!==x[e].indexOf(i)||x["*"]&&-1!==x["*"].indexOf(i)||d(O,e)&&O[e].test(i)||O["*"]&&O["*"].test(i))c=!0;else if(x&&x[e])for(const t of x[e])if(o(t)&&t.name&&t.name===i){c=!0;let e="";if(!0===t.multiple){const n=r.split(" ");for(const r of n)-1!==t.values.indexOf(r)&&(""===e?e=r:e+=" "+r)}else t.values.indexOf(r)>=0&&(e=r);r=e}if(c){if(-1!==t.allowedSchemesAppliedToAttributes.indexOf(i)&&V(e,r))return void delete n.attribs[i];if("script"===e&&"src"===i){let e=!0;try{const n=F(r);if(t.allowedScriptHostnames||t.allowedScriptDomains){const r=(t.allowedScriptHostnames||[]).find((function(e){return e===n.url.hostname})),i=(t.allowedScriptDomains||[]).find((function(e){return n.url.hostname===e||n.url.hostname.endsWith(`.${e}`)}));e=r||i}}catch(t){e=!1}if(!e)return void delete n.attribs[i]}if("iframe"===e&&"src"===i){let e=!0;try{const n=F(r);if(n.isRelativeUrl)e=d(t,"allowIframeRelativeUrls")?t.allowIframeRelativeUrls:!t.allowedIframeHostnames&&!t.allowedIframeDomains;else if(t.allowedIframeHostnames||t.allowedIframeDomains){const r=(t.allowedIframeHostnames||[]).find((function(e){return e===n.url.hostname})),i=(t.allowedIframeDomains||[]).find((function(e){return n.url.hostname===e||n.url.hostname.endsWith(`.${e}`)}));e=r||i}}catch(t){e=!1}if(!e)return void delete n.attribs[i]}if("srcset"===i)try{let e=a(r);if(e.forEach((function(e){V("srcset",e.url)&&(e.evil=!0)})),e=f(e,(function(e){return!e.evil})),!e.length)return void delete n.attribs[i];r=f(e,(function(e){return!e.evil})).map((function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")})).join(", "),n.attribs[i]=r}catch(e){return void delete n.attribs[i]}if("class"===i){const t=S[e],o=S["*"],a=C[e],l=_[e],c=[a,C["*"]].concat(l).filter((function(e){return e}));if(!(r=q(r,t&&o?s(t,o):t||o,c)).length)return void delete n.attribs[i]}if("style"===i)try{const o=function(e,t){if(!t)return e;const r=e.nodes[0];let n;n=t[r.selector]&&t["*"]?s(t[r.selector],t["*"]):t[r.selector]||t["*"];n&&(e.nodes[0].nodes=r.nodes.reduce(function(e){return function(t,r){if(d(e,r.prop)){e[r.prop].some((function(e){return e.test(r.value)}))&&t.push(r)}return t}}(n),[]));return e}(l(e+" {"+r+"}"),t.allowedStyles);if(0===(r=function(e){return e.nodes[0].nodes.reduce((function(e,t){return e.push(`${t.prop}:${t.value}${t.important?" !important":""}`),e}),[]).join(";")}(o)).length)return void delete n.attribs[i]}catch(e){return void delete n.attribs[i]}b+=" "+i,r&&r.length&&(b+='="'+j(r,!0)+'"')}else delete n.attribs[i]})),-1!==t.selfClosing.indexOf(e)?b+=" />":(b+=">",!n.innerText||c||t.textFilter||(b+=j(n.innerText),I=!0)),i&&(b=v+j(b),v="")},ontext:function(e){if(M)return;const r=N[N.length-1];let n;if(r&&(n=r.tag,e=void 0!==r.innerText?r.innerText:e),"discard"!==t.disallowedTagsMode||"script"!==n&&"style"!==n){const r=j(e,!1);t.textFilter&&!I?b+=t.textFilter(r,n):I||(b+=r)}else b+=e;if(N.length){N[N.length-1].text+=e}},onclosetag:function(e){if(M){if(D--,D)return;M=!1}const r=N.pop();if(!r)return;M=!!t.enforceHtmlBoundary&&"html"===e,T--;const n=P[T];if(n){if(delete P[T],"discard"===t.disallowedTagsMode)return void r.updateParentNodeText();v=b,b=""}A[T]&&(e=A[T],delete A[T]),t.exclusiveFilter&&t.exclusiveFilter(r)?b=b.substr(0,r.tagPosition):(r.updateParentNodeMediaChildren(),r.updateParentNodeText(),-1===t.selfClosing.indexOf(e)?(b+="</"+e+">",n&&(b=v+j(b),v=""),I=!1):n&&(b=v,v=""))}},t.parser);return R.write(e),R.end(),b;function L(){b="",T=0,N=[],P={},A={},M=!1,D=0}function j(e,r){return"string"!=typeof e&&(e+=""),t.parser.decodeEntities&&(e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),r&&(e=e.replace(/"/g,"&quot;"))),e=e.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),r&&(e=e.replace(/"/g,"&quot;")),e}function V(e,r){for(r=r.replace(/[\x00-\x20]+/g,"");;){const e=r.indexOf("\x3c!--");if(-1===e)break;const t=r.indexOf("--\x3e",e+4);if(-1===t)break;r=r.substring(0,e)+r.substring(t+3)}const n=r.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!n)return!!r.match(/^[/\\]{2}/)&&!t.allowProtocolRelative;const i=n[1].toLowerCase();return d(t.allowedSchemesByTag,e)?-1===t.allowedSchemesByTag[e].indexOf(i):!t.allowedSchemes||-1===t.allowedSchemes.indexOf(i)}function F(e){if((e=e.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//")).startsWith("relative:"))throw new Error("relative: exploit attempt");let t="relative://relative-site";for(let e=0;e<100;e++)t+=`/${e}`;const r=new URL(e,t);return{isRelativeUrl:r&&"relative-site"===r.hostname&&"relative:"===r.protocol,url:r}}function q(e,t,r){return t?(e=e.split(/\s+/)).filter((function(e){return-1!==t.indexOf(e)||r.some((function(t){return t.test(e)}))})).join(" "):e}}const g={decodeEntities:!0};m.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1},m.simpleTransform=function(e,t,r){return r=void 0===r||r,t=t||{},function(n,i){let o;if(r)for(o in t)i[o]=t[o];else i=t;return{tagName:e,attribs:i}}}},2734:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attributeNames=t.elementNames=void 0,t.elementNames=new Map([["altglyph","altGlyph"],["altglyphdef","altGlyphDef"],["altglyphitem","altGlyphItem"],["animatecolor","animateColor"],["animatemotion","animateMotion"],["animatetransform","animateTransform"],["clippath","clipPath"],["feblend","feBlend"],["fecolormatrix","feColorMatrix"],["fecomponenttransfer","feComponentTransfer"],["fecomposite","feComposite"],["feconvolvematrix","feConvolveMatrix"],["fediffuselighting","feDiffuseLighting"],["fedisplacementmap","feDisplacementMap"],["fedistantlight","feDistantLight"],["fedropshadow","feDropShadow"],["feflood","feFlood"],["fefunca","feFuncA"],["fefuncb","feFuncB"],["fefuncg","feFuncG"],["fefuncr","feFuncR"],["fegaussianblur","feGaussianBlur"],["feimage","feImage"],["femerge","feMerge"],["femergenode","feMergeNode"],["femorphology","feMorphology"],["feoffset","feOffset"],["fepointlight","fePointLight"],["fespecularlighting","feSpecularLighting"],["fespotlight","feSpotLight"],["fetile","feTile"],["feturbulence","feTurbulence"],["foreignobject","foreignObject"],["glyphref","glyphRef"],["lineargradient","linearGradient"],["radialgradient","radialGradient"],["textpath","textPath"]]),t.attributeNames=new Map([["definitionurl","definitionURL"],["attributename","attributeName"],["attributetype","attributeType"],["basefrequency","baseFrequency"],["baseprofile","baseProfile"],["calcmode","calcMode"],["clippathunits","clipPathUnits"],["diffuseconstant","diffuseConstant"],["edgemode","edgeMode"],["filterunits","filterUnits"],["glyphref","glyphRef"],["gradienttransform","gradientTransform"],["gradientunits","gradientUnits"],["kernelmatrix","kernelMatrix"],["kernelunitlength","kernelUnitLength"],["keypoints","keyPoints"],["keysplines","keySplines"],["keytimes","keyTimes"],["lengthadjust","lengthAdjust"],["limitingconeangle","limitingConeAngle"],["markerheight","markerHeight"],["markerunits","markerUnits"],["markerwidth","markerWidth"],["maskcontentunits","maskContentUnits"],["maskunits","maskUnits"],["numoctaves","numOctaves"],["pathlength","pathLength"],["patterncontentunits","patternContentUnits"],["patterntransform","patternTransform"],["patternunits","patternUnits"],["pointsatx","pointsAtX"],["pointsaty","pointsAtY"],["pointsatz","pointsAtZ"],["preservealpha","preserveAlpha"],["preserveaspectratio","preserveAspectRatio"],["primitiveunits","primitiveUnits"],["refx","refX"],["refy","refY"],["repeatcount","repeatCount"],["repeatdur","repeatDur"],["requiredextensions","requiredExtensions"],["requiredfeatures","requiredFeatures"],["specularconstant","specularConstant"],["specularexponent","specularExponent"],["spreadmethod","spreadMethod"],["startoffset","startOffset"],["stddeviation","stdDeviation"],["stitchtiles","stitchTiles"],["surfacescale","surfaceScale"],["systemlanguage","systemLanguage"],["tablevalues","tableValues"],["targetx","targetX"],["targety","targetY"],["textlength","textLength"],["viewbox","viewBox"],["viewtarget","viewTarget"],["xchannelselector","xChannelSelector"],["ychannelselector","yChannelSelector"],["zoomandpan","zoomAndPan"]])},8427:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var a=s(r(9960)),l=r(7772),c=r(2734),u=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);var p=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function d(e,t){void 0===t&&(t={});for(var r=("length"in e?e:[e]),n="",i=0;i<r.length;i++)n+=f(r[i],t);return n}function f(e,t){switch(e.type){case a.Root:return d(e.children,t);case a.Directive:case a.Doctype:return"<"+e.data+">";case a.Comment:return function(e){return"\x3c!--"+e.data+"--\x3e"}(e);case a.CDATA:return function(e){return"<![CDATA["+e.children[0].data+"]]>"}(e);case a.Script:case a.Style:case a.Tag:return function(e,t){var r;"foreign"===t.xmlMode&&(e.name=null!==(r=c.elementNames.get(e.name))&&void 0!==r?r:e.name,e.parent&&h.has(e.parent.name)&&(t=n(n({},t),{xmlMode:!1})));!t.xmlMode&&m.has(e.name)&&(t=n(n({},t),{xmlMode:"foreign"}));var i="<"+e.name,o=function(e,t){if(e)return Object.keys(e).map((function(r){var n,i,o=null!==(n=e[r])&&void 0!==n?n:"";return"foreign"===t.xmlMode&&(r=null!==(i=c.attributeNames.get(r))&&void 0!==i?i:r),t.emptyAttrs||t.xmlMode||""!==o?r+'="'+(!1!==t.decodeEntities?l.encodeXML(o):o.replace(/"/g,"&quot;"))+'"':r})).join(" ")}(e.attribs,t);o&&(i+=" "+o);0===e.children.length&&(t.xmlMode?!1!==t.selfClosingTags:t.selfClosingTags&&p.has(e.name))?(t.xmlMode||(i+=" "),i+="/>"):(i+=">",e.children.length>0&&(i+=d(e.children,t)),!t.xmlMode&&p.has(e.name)||(i+="</"+e.name+">"));return i}(e,t);case a.Text:return function(e,t){var r=e.data||"";!1===t.decodeEntities||!t.xmlMode&&e.parent&&u.has(e.parent.name)||(r=l.encodeXML(r));return r}(e,t)}}t.default=d;var h=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),m=new Set(["svg","math"])},1142:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var o=r(9960),s=r(6218);i(r(6218),t);var a=/\s+/g,l={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},c=function(){function e(e,t,r){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(r=t,t=l),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:l,this.elementCB=null!=r?r:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var r=this.options.xmlMode?o.ElementType.Tag:void 0,n=new s.Element(e,t,void 0,r);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(e){var t=this.options.normalizeWhitespace,r=this.lastNode;if(r&&r.type===o.ElementType.Text)t?r.data=(r.data+e).replace(a," "):r.data+=e,this.options.withEndIndices&&(r.endIndex=this.parser.endIndex);else{t&&(e=e.replace(a," "));var n=new s.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment)this.lastNode.data+=e;else{var t=new s.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new s.Text(""),t=new s.NodeWithChildren(o.ElementType.CDATA,[e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var r=new s.ProcessingInstruction(e,t);this.addNode(r)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],r=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),r&&(e.prev=r,r.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=c,t.default=c},6218:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var s=r(9960),a=new Map([[s.ElementType.Tag,1],[s.ElementType.Script,1],[s.ElementType.Style,1],[s.ElementType.Directive,1],[s.ElementType.Text,3],[s.ElementType.CDATA,4],[s.ElementType.Comment,8],[s.ElementType.Root,9]]),l=function(){function e(e){this.type=e,this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"nodeType",{get:function(){var e;return null!==(e=a.get(this.type))&&void 0!==e?e:1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),O(this,e)},e}();t.Node=l;var c=function(e){function t(t,r){var n=e.call(this,t)||this;return n.data=r,n}return i(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(l);t.DataNode=c;var u=function(e){function t(t){return e.call(this,s.ElementType.Text,t)||this}return i(t,e),t}(c);t.Text=u;var p=function(e){function t(t){return e.call(this,s.ElementType.Comment,t)||this}return i(t,e),t}(c);t.Comment=p;var d=function(e){function t(t,r){var n=e.call(this,s.ElementType.Directive,r)||this;return n.name=t,n}return i(t,e),t}(c);t.ProcessingInstruction=d;var f=function(e){function t(t,r){var n=e.call(this,t)||this;return n.children=r,n}return i(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(l);t.NodeWithChildren=f;var h=function(e){function t(t){return e.call(this,s.ElementType.Root,t)||this}return i(t,e),t}(f);t.Document=h;var m=function(e){function t(t,r,n,i){void 0===n&&(n=[]),void 0===i&&(i="script"===t?s.ElementType.Script:"style"===t?s.ElementType.Style:s.ElementType.Tag);var o=e.call(this,i,n)||this;return o.name=t,o.attribs=r,o}return i(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var r,n;return{name:t,value:e.attribs[t],namespace:null===(r=e["x-attribsNamespace"])||void 0===r?void 0:r[t],prefix:null===(n=e["x-attribsPrefix"])||void 0===n?void 0:n[t]}}))},enumerable:!1,configurable:!0}),t}(f);function g(e){return(0,s.isTag)(e)}function b(e){return e.type===s.ElementType.CDATA}function v(e){return e.type===s.ElementType.Text}function y(e){return e.type===s.ElementType.Comment}function w(e){return e.type===s.ElementType.Directive}function x(e){return e.type===s.ElementType.Root}function O(e,t){var r;if(void 0===t&&(t=!1),v(e))r=new u(e.data);else if(y(e))r=new p(e.data);else if(g(e)){var n=t?S(e.children):[],i=new m(e.name,o({},e.attribs),n);n.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),r=i}else if(b(e)){n=t?S(e.children):[];var a=new f(s.ElementType.CDATA,n);n.forEach((function(e){return e.parent=a})),r=a}else if(x(e)){n=t?S(e.children):[];var l=new h(n);n.forEach((function(e){return e.parent=l})),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),r=l}else{if(!w(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new d(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),r=c}return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function S(e){for(var t=e.map((function(e){return O(e,!0)})),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}t.Element=m,t.isTag=g,t.isCDATA=b,t.isText=v,t.isComment=y,t.isDirective=w,t.isDocument=x,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=O},2903:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeed=void 0;var n=r(5283),i=r(9473);t.getFeed=function(e){var t=l(p,e);return t?"feed"===t.name?function(e){var t,r=e.children,n={type:"atom",items:(0,i.getElementsByTagName)("entry",r).map((function(e){var t,r=e.children,n={media:a(r)};u(n,"id","id",r),u(n,"title","title",r);var i=null===(t=l("link",r))||void 0===t?void 0:t.attribs.href;i&&(n.link=i);var o=c("summary",r)||c("content",r);o&&(n.description=o);var s=c("updated",r);return s&&(n.pubDate=new Date(s)),n}))};u(n,"id","id",r),u(n,"title","title",r);var o=null===(t=l("link",r))||void 0===t?void 0:t.attribs.href;o&&(n.link=o);u(n,"description","subtitle",r);var s=c("updated",r);s&&(n.updated=new Date(s));return u(n,"author","email",r,!0),n}(t):function(e){var t,r,n=null!==(r=null===(t=l("channel",e.children))||void 0===t?void 0:t.children)&&void 0!==r?r:[],o={type:e.name.substr(0,3),id:"",items:(0,i.getElementsByTagName)("item",e.children).map((function(e){var t=e.children,r={media:a(t)};u(r,"id","guid",t),u(r,"title","title",t),u(r,"link","link",t),u(r,"description","description",t);var n=c("pubDate",t);return n&&(r.pubDate=new Date(n)),r}))};u(o,"title","title",n),u(o,"link","link",n),u(o,"description","description",n);var s=c("lastBuildDate",n);s&&(o.updated=new Date(s));return u(o,"author","managingEditor",n,!0),o}(t):null};var o=["url","type","lang"],s=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function a(e){return(0,i.getElementsByTagName)("media:content",e).map((function(e){for(var t=e.attribs,r={medium:t.medium,isDefault:!!t.isDefault},n=0,i=o;n<i.length;n++){t[c=i[n]]&&(r[c]=t[c])}for(var a=0,l=s;a<l.length;a++){var c;t[c=l[a]]&&(r[c]=parseInt(t[c],10))}return t.expression&&(r.expression=t.expression),r}))}function l(e,t){return(0,i.getElementsByTagName)(e,t,!0,1)[0]}function c(e,t,r){return void 0===r&&(r=!1),(0,n.textContent)((0,i.getElementsByTagName)(e,t,r,1)).trim()}function u(e,t,r,n,i){void 0===i&&(i=!1);var o=c(r,n,i);o&&(e[t]=o)}function p(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}},7701:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uniqueSort=t.compareDocumentPosition=t.removeSubsets=void 0;var n=r(1142);function i(e,t){var r=[],i=[];if(e===t)return 0;for(var o=(0,n.hasChildren)(e)?e:e.parent;o;)r.unshift(o),o=o.parent;for(o=(0,n.hasChildren)(t)?t:t.parent;o;)i.unshift(o),o=o.parent;for(var s=Math.min(r.length,i.length),a=0;a<s&&r[a]===i[a];)a++;if(0===a)return 1;var l=r[a-1],c=l.children,u=r[a],p=i[a];return c.indexOf(u)>c.indexOf(p)?l===t?20:4:l===e?10:2}t.removeSubsets=function(e){for(var t=e.length;--t>=0;){var r=e[t];if(t>0&&e.lastIndexOf(r,t-1)>=0)e.splice(t,1);else for(var n=r.parent;n;n=n.parent)if(e.includes(n)){e.splice(t,1);break}}return e},t.compareDocumentPosition=i,t.uniqueSort=function(e){return(e=e.filter((function(e,t,r){return!r.includes(e,t+1)}))).sort((function(e,t){var r=i(e,t);return 2&r?-1:4&r?1:0})),e}},7241:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,i(r(5283),t),i(r(7972),t),i(r(4541),t),i(r(2764),t),i(r(9473),t),i(r(7701),t),i(r(2903),t);var o=r(1142);Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return o.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!0,get:function(){return o.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!0,get:function(){return o.isText}}),Object.defineProperty(t,"isComment",{enumerable:!0,get:function(){return o.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function(){return o.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!0,get:function(){return o.hasChildren}})},9473:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getElementsByTagType=t.getElementsByTagName=t.getElementById=t.getElements=t.testElement=void 0;var n=r(1142),i=r(2764),o={tag_name:function(e){return"function"==typeof e?function(t){return(0,n.isTag)(t)&&e(t.name)}:"*"===e?n.isTag:function(t){return(0,n.isTag)(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return(0,n.isText)(t)&&e(t.data)}:function(t){return(0,n.isText)(t)&&t.data===e}}};function s(e,t){return"function"==typeof t?function(r){return(0,n.isTag)(r)&&t(r.attribs[e])}:function(r){return(0,n.isTag)(r)&&r.attribs[e]===t}}function a(e,t){return function(r){return e(r)||t(r)}}function l(e){var t=Object.keys(e).map((function(t){var r=e[t];return Object.prototype.hasOwnProperty.call(o,t)?o[t](r):s(t,r)}));return 0===t.length?null:t.reduce(a)}t.testElement=function(e,t){var r=l(e);return!r||r(t)},t.getElements=function(e,t,r,n){void 0===n&&(n=1/0);var o=l(e);return o?(0,i.filter)(o,t,r,n):[]},t.getElementById=function(e,t,r){return void 0===r&&(r=!0),Array.isArray(t)||(t=[t]),(0,i.findOne)(s("id",e),t,r)},t.getElementsByTagName=function(e,t,r,n){return void 0===r&&(r=!0),void 0===n&&(n=1/0),(0,i.filter)(o.tag_name(e),t,r,n)},t.getElementsByTagType=function(e,t,r,n){return void 0===r&&(r=!0),void 0===n&&(n=1/0),(0,i.filter)(o.tag_type(e),t,r,n)}},4541:(e,t)=>{"use strict";function r(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children;t.splice(t.lastIndexOf(e),1)}}Object.defineProperty(t,"__esModule",{value:!0}),t.prepend=t.prependChild=t.append=t.appendChild=t.replaceElement=t.removeElement=void 0,t.removeElement=r,t.replaceElement=function(e,t){var r=t.prev=e.prev;r&&(r.next=t);var n=t.next=e.next;n&&(n.prev=t);var i=t.parent=e.parent;if(i){var o=i.children;o[o.lastIndexOf(e)]=t}},t.appendChild=function(e,t){if(r(t),t.next=null,t.parent=e,e.children.push(t)>1){var n=e.children[e.children.length-2];n.next=t,t.prev=n}else t.prev=null},t.append=function(e,t){r(t);var n=e.parent,i=e.next;if(t.next=i,t.prev=e,e.next=t,t.parent=n,i){if(i.prev=t,n){var o=n.children;o.splice(o.lastIndexOf(i),0,t)}}else n&&n.children.push(t)},t.prependChild=function(e,t){if(r(t),t.parent=e,t.prev=null,1!==e.children.unshift(t)){var n=e.children[1];n.prev=t,t.next=n}else t.next=null},t.prepend=function(e,t){r(t);var n=e.parent;if(n){var i=n.children;i.splice(i.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t}},2764:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=t.existsOne=t.findOne=t.findOneChild=t.find=t.filter=void 0;var n=r(1142);function i(e,t,r,o){for(var s=[],a=0,l=t;a<l.length;a++){var c=l[a];if(e(c)&&(s.push(c),--o<=0))break;if(r&&(0,n.hasChildren)(c)&&c.children.length>0){var u=i(e,c.children,r,o);if(s.push.apply(s,u),(o-=u.length)<=0)break}}return s}t.filter=function(e,t,r,n){return void 0===r&&(r=!0),void 0===n&&(n=1/0),Array.isArray(t)||(t=[t]),i(e,t,r,n)},t.find=i,t.findOneChild=function(e,t){return t.find(e)},t.findOne=function e(t,r,i){void 0===i&&(i=!0);for(var o=null,s=0;s<r.length&&!o;s++){var a=r[s];(0,n.isTag)(a)&&(t(a)?o=a:i&&a.children.length>0&&(o=e(t,a.children)))}return o},t.existsOne=function e(t,r){return r.some((function(r){return(0,n.isTag)(r)&&(t(r)||r.children.length>0&&e(t,r.children))}))},t.findAll=function(e,t){for(var r,i,o=[],s=t.filter(n.isTag);i=s.shift();){var a=null===(r=i.children)||void 0===r?void 0:r.filter(n.isTag);a&&a.length>0&&s.unshift.apply(s,a),e(i)&&o.push(i)}return o}},5283:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.innerText=t.textContent=t.getText=t.getInnerHTML=t.getOuterHTML=void 0;var i=r(1142),o=n(r(8427)),s=r(9960);function a(e,t){return(0,o.default)(e,t)}t.getOuterHTML=a,t.getInnerHTML=function(e,t){return(0,i.hasChildren)(e)?e.children.map((function(e){return a(e,t)})).join(""):""},t.getText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.isTag)(t)?"br"===t.name?"\n":e(t.children):(0,i.isCDATA)(t)?e(t.children):(0,i.isText)(t)?t.data:""},t.textContent=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.hasChildren)(t)&&!(0,i.isComment)(t)?e(t.children):(0,i.isText)(t)?t.data:""},t.innerText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.hasChildren)(t)&&(t.type===s.ElementType.Tag||(0,i.isCDATA)(t))?e(t.children):(0,i.isText)(t)?t.data:""}},7972:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prevElementSibling=t.nextElementSibling=t.getName=t.hasAttrib=t.getAttributeValue=t.getSiblings=t.getParent=t.getChildren=void 0;var n=r(1142),i=[];function o(e){var t;return null!==(t=e.children)&&void 0!==t?t:i}function s(e){return e.parent||null}t.getChildren=o,t.getParent=s,t.getSiblings=function(e){var t=s(e);if(null!=t)return o(t);for(var r=[e],n=e.prev,i=e.next;null!=n;)r.unshift(n),n=n.prev;for(;null!=i;)r.push(i),i=i.next;return r},t.getAttributeValue=function(e,t){var r;return null===(r=e.attribs)||void 0===r?void 0:r[t]},t.hasAttrib=function(e,t){return null!=e.attribs&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&null!=e.attribs[t]},t.getName=function(e){return e.name},t.nextElementSibling=function(e){for(var t=e.next;null!==t&&!(0,n.isTag)(t);)t=t.next;return t},t.prevElementSibling=function(e){for(var t=e.prev;null!==t&&!(0,n.isTag)(t);)t=t.prev;return t}},722:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeHTML=t.decodeHTMLStrict=t.decodeXML=void 0;var i=n(r(4168)),o=n(r(7272)),s=n(r(729)),a=n(r(2913)),l=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;function c(e){var t=p(e);return function(e){return String(e).replace(l,t)}}t.decodeXML=c(s.default),t.decodeHTMLStrict=c(i.default);var u=function(e,t){return e<t?1:-1};function p(e){return function(t){if("#"===t.charAt(1)){var r=t.charAt(2);return"X"===r||"x"===r?a.default(parseInt(t.substr(3),16)):a.default(parseInt(t.substr(2),10))}return e[t.slice(1,-1)]||t}}t.decodeHTML=function(){for(var e=Object.keys(o.default).sort(u),t=Object.keys(i.default).sort(u),r=0,n=0;r<t.length;r++)e[n]===t[r]?(t[r]+=";?",n++):t[r]+=";";var s=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),a=p(i.default);function l(e){return";"!==e.substr(-1)&&(e+=";"),a(e)}return function(e){return String(e).replace(s,l)}}()},2913:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(7607)),o=String.fromCodePoint||function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)};t.default=function(e){return e>=55296&&e<=57343||e>1114111?"�":(e in i.default&&(e=i.default[e]),o(e))}},571:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=void 0;var i=u(n(r(729)).default),o=p(i);t.encodeXML=g(i);var s,a,l=u(n(r(4168)).default),c=p(l);function u(e){return Object.keys(e).sort().reduce((function(t,r){return t[e[r]]="&"+r+";",t}),{})}function p(e){for(var t=[],r=[],n=0,i=Object.keys(e);n<i.length;n++){var o=i[n];1===o.length?t.push("\\"+o):r.push(o)}t.sort();for(var s=0;s<t.length-1;s++){for(var a=s;a<t.length-1&&t[a].charCodeAt(1)+1===t[a+1].charCodeAt(1);)a+=1;var l=1+a-s;l<3||t.splice(s,l,t[s]+"-"+t[a])}return r.unshift("["+t.join("")+"]"),new RegExp(r.join("|"),"g")}t.encodeHTML=(s=l,a=c,function(e){return e.replace(a,(function(e){return s[e]})).replace(d,h)}),t.encodeNonAsciiHTML=g(l);var d=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,f=null!=String.prototype.codePointAt?function(e){return e.codePointAt(0)}:function(e){return 1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536};function h(e){return"&#x"+(e.length>1?f(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}var m=new RegExp(o.source+"|"+d.source,"g");function g(e){return function(t){return t.replace(m,(function(t){return e[t]||h(t)}))}}t.escape=function(e){return e.replace(m,h)},t.escapeUTF8=function(e){return e.replace(o,h)}},7772:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.encodeHTML5=t.encodeHTML4=t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=t.encode=t.decodeStrict=t.decode=void 0;var n=r(722),i=r(571);t.decode=function(e,t){return(!t||t<=0?n.decodeXML:n.decodeHTML)(e)},t.decodeStrict=function(e,t){return(!t||t<=0?n.decodeXML:n.decodeHTMLStrict)(e)},t.encode=function(e,t){return(!t||t<=0?i.encodeXML:i.encodeHTML)(e)};var o=r(571);Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return o.encodeXML}}),Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return o.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return o.encodeNonAsciiHTML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return o.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return o.escapeUTF8}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return o.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return o.encodeHTML}});var s=r(722);Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return s.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return s.decodeXML}})},7613:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&o(t,e,r);return s(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.parseFeed=t.FeedHandler=void 0;var c,u,p=l(r(1142)),d=a(r(7241)),f=r(6666);!function(e){e[e.image=0]="image",e[e.audio=1]="audio",e[e.video=2]="video",e[e.document=3]="document",e[e.executable=4]="executable"}(c||(c={})),function(e){e[e.sample=0]="sample",e[e.full=1]="full",e[e.nonstop=2]="nonstop"}(u||(u={}));var h=function(e){function t(t,r){return"object"==typeof t&&(r=t=void 0),e.call(this,t,r)||this}return i(t,e),t.prototype.onend=function(){var e,t,r=b(x,this.dom);if(r){var n={};if("feed"===r.name){var i=r.children;n.type="atom",w(n,"id","id",i),w(n,"title","title",i);var o=y("href",b("link",i));o&&(n.link=o),w(n,"description","subtitle",i),(s=v("updated",i))&&(n.updated=new Date(s)),w(n,"author","email",i,!0),n.items=g("entry",i).map((function(e){var t={},r=e.children;w(t,"id","id",r),w(t,"title","title",r);var n=y("href",b("link",r));n&&(t.link=n);var i=v("summary",r)||v("content",r);i&&(t.description=i);var o=v("updated",r);return o&&(t.pubDate=new Date(o)),t.media=m(r),t}))}else{var s;i=null!==(t=null===(e=b("channel",r.children))||void 0===e?void 0:e.children)&&void 0!==t?t:[];n.type=r.name.substr(0,3),n.id="",w(n,"title","title",i),w(n,"link","link",i),w(n,"description","description",i),(s=v("lastBuildDate",i))&&(n.updated=new Date(s)),w(n,"author","managingEditor",i,!0),n.items=g("item",r.children).map((function(e){var t={},r=e.children;w(t,"id","guid",r),w(t,"title","title",r),w(t,"link","link",r),w(t,"description","description",r);var n=v("pubDate",r);return n&&(t.pubDate=new Date(n)),t.media=m(r),t}))}this.feed=n,this.handleCallback(null)}else this.handleCallback(new Error("couldn't find root of feed"))},t}(p.default);function m(e){return g("media:content",e).map((function(e){var t={medium:e.attribs.medium,isDefault:!!e.attribs.isDefault};return e.attribs.url&&(t.url=e.attribs.url),e.attribs.fileSize&&(t.fileSize=parseInt(e.attribs.fileSize,10)),e.attribs.type&&(t.type=e.attribs.type),e.attribs.expression&&(t.expression=e.attribs.expression),e.attribs.bitrate&&(t.bitrate=parseInt(e.attribs.bitrate,10)),e.attribs.framerate&&(t.framerate=parseInt(e.attribs.framerate,10)),e.attribs.samplingrate&&(t.samplingrate=parseInt(e.attribs.samplingrate,10)),e.attribs.channels&&(t.channels=parseInt(e.attribs.channels,10)),e.attribs.duration&&(t.duration=parseInt(e.attribs.duration,10)),e.attribs.height&&(t.height=parseInt(e.attribs.height,10)),e.attribs.width&&(t.width=parseInt(e.attribs.width,10)),e.attribs.lang&&(t.lang=e.attribs.lang),t}))}function g(e,t){return d.getElementsByTagName(e,t,!0)}function b(e,t){return d.getElementsByTagName(e,t,!0,1)[0]}function v(e,t,r){return void 0===r&&(r=!1),d.getText(d.getElementsByTagName(e,t,r,1)).trim()}function y(e,t){return t?t.attribs[e]:null}function w(e,t,r,n,i){void 0===i&&(i=!1);var o=v(r,n,i);o&&(e[t]=o)}function x(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}t.FeedHandler=h,t.parseFeed=function(e,t){void 0===t&&(t={xmlMode:!0});var r=new h(t);return new f.Parser(r,t).end(e),r.feed}},6666:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0;var i=n(r(34)),o=new Set(["input","option","optgroup","select","button","datalist","textarea"]),s=new Set(["p"]),a={tr:new Set(["tr","th","td"]),th:new Set(["th"]),td:new Set(["thead","th","td"]),body:new Set(["head","link","script"]),li:new Set(["li"]),p:s,h1:s,h2:s,h3:s,h4:s,h5:s,h6:s,select:o,input:o,output:o,button:o,datalist:o,textarea:o,option:new Set(["option"]),optgroup:new Set(["optgroup","option"]),dd:new Set(["dt","dd"]),dt:new Set(["dt","dd"]),address:s,article:s,aside:s,blockquote:s,details:s,div:s,dl:s,fieldset:s,figcaption:s,figure:s,footer:s,form:s,header:s,hr:s,main:s,nav:s,ol:s,pre:s,section:s,table:s,ul:s,rt:new Set(["rt","rp"]),rp:new Set(["rt","rp"]),tbody:new Set(["thead","tbody"]),tfoot:new Set(["thead","tbody"])},l=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),c=new Set(["math","svg"]),u=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),p=/\s|\//,d=function(){function e(e,t){var r,n,o,s,a;void 0===t&&(t={}),this.startIndex=0,this.endIndex=null,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.options=t,this.cbs=null!=e?e:{},this.lowerCaseTagNames=null!==(r=t.lowerCaseTags)&&void 0!==r?r:!t.xmlMode,this.lowerCaseAttributeNames=null!==(n=t.lowerCaseAttributeNames)&&void 0!==n?n:!t.xmlMode,this.tokenizer=new(null!==(o=t.Tokenizer)&&void 0!==o?o:i.default)(this.options,this),null===(a=(s=this.cbs).onparserinit)||void 0===a||a.call(s,this)}return e.prototype.updatePosition=function(e){null===this.endIndex?this.tokenizer.sectionStart<=e?this.startIndex=0:this.startIndex=this.tokenizer.sectionStart-e:this.startIndex=this.endIndex+1,this.endIndex=this.tokenizer.getAbsoluteIndex()},e.prototype.ontext=function(e){var t,r;this.updatePosition(1),this.endIndex--,null===(r=(t=this.cbs).ontext)||void 0===r||r.call(t,e)},e.prototype.onopentagname=function(e){var t,r;if(this.lowerCaseTagNames&&(e=e.toLowerCase()),this.tagname=e,!this.options.xmlMode&&Object.prototype.hasOwnProperty.call(a,e))for(var n=void 0;this.stack.length>0&&a[e].has(n=this.stack[this.stack.length-1]);)this.onclosetag(n);!this.options.xmlMode&&l.has(e)||(this.stack.push(e),c.has(e)?this.foreignContext.push(!0):u.has(e)&&this.foreignContext.push(!1)),null===(r=(t=this.cbs).onopentagname)||void 0===r||r.call(t,e),this.cbs.onopentag&&(this.attribs={})},e.prototype.onopentagend=function(){var e,t;this.updatePosition(1),this.attribs&&(null===(t=(e=this.cbs).onopentag)||void 0===t||t.call(e,this.tagname,this.attribs),this.attribs=null),!this.options.xmlMode&&this.cbs.onclosetag&&l.has(this.tagname)&&this.cbs.onclosetag(this.tagname),this.tagname=""},e.prototype.onclosetag=function(e){if(this.updatePosition(1),this.lowerCaseTagNames&&(e=e.toLowerCase()),(c.has(e)||u.has(e))&&this.foreignContext.pop(),!this.stack.length||!this.options.xmlMode&&l.has(e))this.options.xmlMode||"br"!==e&&"p"!==e||(this.onopentagname(e),this.closeCurrentTag());else{var t=this.stack.lastIndexOf(e);if(-1!==t)if(this.cbs.onclosetag)for(t=this.stack.length-t;t--;)this.cbs.onclosetag(this.stack.pop());else this.stack.length=t;else"p"!==e||this.options.xmlMode||(this.onopentagname(e),this.closeCurrentTag())}},e.prototype.onselfclosingtag=function(){this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?this.closeCurrentTag():this.onopentagend()},e.prototype.closeCurrentTag=function(){var e,t,r=this.tagname;this.onopentagend(),this.stack[this.stack.length-1]===r&&(null===(t=(e=this.cbs).onclosetag)||void 0===t||t.call(e,r),this.stack.pop())},e.prototype.onattribname=function(e){this.lowerCaseAttributeNames&&(e=e.toLowerCase()),this.attribname=e},e.prototype.onattribdata=function(e){this.attribvalue+=e},e.prototype.onattribend=function(e){var t,r;null===(r=(t=this.cbs).onattribute)||void 0===r||r.call(t,this.attribname,this.attribvalue,e),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribname="",this.attribvalue=""},e.prototype.getInstructionName=function(e){var t=e.search(p),r=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(r=r.toLowerCase()),r},e.prototype.ondeclaration=function(e){if(this.cbs.onprocessinginstruction){var t=this.getInstructionName(e);this.cbs.onprocessinginstruction("!"+t,"!"+e)}},e.prototype.onprocessinginstruction=function(e){if(this.cbs.onprocessinginstruction){var t=this.getInstructionName(e);this.cbs.onprocessinginstruction("?"+t,"?"+e)}},e.prototype.oncomment=function(e){var t,r,n,i;this.updatePosition(4),null===(r=(t=this.cbs).oncomment)||void 0===r||r.call(t,e),null===(i=(n=this.cbs).oncommentend)||void 0===i||i.call(n)},e.prototype.oncdata=function(e){var t,r,n,i,o,s;this.updatePosition(1),this.options.xmlMode||this.options.recognizeCDATA?(null===(r=(t=this.cbs).oncdatastart)||void 0===r||r.call(t),null===(i=(n=this.cbs).ontext)||void 0===i||i.call(n,e),null===(s=(o=this.cbs).oncdataend)||void 0===s||s.call(o)):this.oncomment("[CDATA["+e+"]]")},e.prototype.onerror=function(e){var t,r;null===(r=(t=this.cbs).onerror)||void 0===r||r.call(t,e)},e.prototype.onend=function(){var e,t;if(this.cbs.onclosetag)for(var r=this.stack.length;r>0;this.cbs.onclosetag(this.stack[--r]));null===(t=(e=this.cbs).onend)||void 0===t||t.call(e)},e.prototype.reset=function(){var e,t,r,n;null===(t=(e=this.cbs).onreset)||void 0===t||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack=[],null===(n=(r=this.cbs).onparserinit)||void 0===n||n.call(r,this)},e.prototype.parseComplete=function(e){this.reset(),this.end(e)},e.prototype.write=function(e){this.tokenizer.write(e)},e.prototype.end=function(e){this.tokenizer.end(e)},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){this.tokenizer.resume()},e.prototype.parseChunk=function(e){this.write(e)},e.prototype.done=function(e){this.end(e)},e}();t.Parser=d},34:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(2913)),o=n(r(4168)),s=n(r(7272)),a=n(r(729));function l(e){return" "===e||"\n"===e||"\t"===e||"\f"===e||"\r"===e}function c(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"}function u(e,t,r){var n=e.toLowerCase();return e===n?function(e,i){i===n?e._state=t:(e._state=r,e._index--)}:function(i,o){o===n||o===e?i._state=t:(i._state=r,i._index--)}}function p(e,t){var r=e.toLowerCase();return function(n,i){i===r||i===e?n._state=t:(n._state=3,n._index--)}}var d=u("C",24,16),f=u("D",25,16),h=u("A",26,16),m=u("T",27,16),g=u("A",28,16),b=p("R",35),v=p("I",36),y=p("P",37),w=p("T",38),x=u("R",40,1),O=u("I",41,1),S=u("P",42,1),C=u("T",43,1),_=p("Y",45),k=p("L",46),E=p("E",47),T=u("Y",49,1),N=u("L",50,1),P=u("E",51,1),A=p("I",54),M=p("T",55),D=p("L",56),I=p("E",57),R=u("I",58,1),L=u("T",59,1),j=u("L",60,1),V=u("E",61,1),F=u("#",63,64),q=u("X",66,65),B=function(){function e(e,t){var r;this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1,this.cbs=t,this.xmlMode=!!(null==e?void 0:e.xmlMode),this.decodeEntities=null===(r=null==e?void 0:e.decodeEntities)||void 0===r||r}return e.prototype.reset=function(){this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1},e.prototype.write=function(e){this.ended&&this.cbs.onerror(Error(".write() after done!")),this.buffer+=e,this.parse()},e.prototype.end=function(e){this.ended&&this.cbs.onerror(Error(".end() after done!")),e&&this.write(e),this.ended=!0,this.running&&this.finish()},e.prototype.pause=function(){this.running=!1},e.prototype.resume=function(){this.running=!0,this._index<this.buffer.length&&this.parse(),this.ended&&this.finish()},e.prototype.getAbsoluteIndex=function(){return this.bufferOffset+this._index},e.prototype.stateText=function(e){"<"===e?(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this._state=2,this.sectionStart=this._index):!this.decodeEntities||"&"!==e||1!==this.special&&4!==this.special||(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this.baseState=1,this._state=62,this.sectionStart=this._index)},e.prototype.isTagStartChar=function(e){return c(e)||this.xmlMode&&!l(e)&&"/"!==e&&">"!==e},e.prototype.stateBeforeTagName=function(e){"/"===e?this._state=5:"<"===e?(this.cbs.ontext(this.getSection()),this.sectionStart=this._index):">"===e||1!==this.special||l(e)?this._state=1:"!"===e?(this._state=15,this.sectionStart=this._index+1):"?"===e?(this._state=17,this.sectionStart=this._index+1):this.isTagStartChar(e)?(this._state=this.xmlMode||"s"!==e&&"S"!==e?this.xmlMode||"t"!==e&&"T"!==e?3:52:32,this.sectionStart=this._index):this._state=1},e.prototype.stateInTagName=function(e){("/"===e||">"===e||l(e))&&(this.emitToken("onopentagname"),this._state=8,this._index--)},e.prototype.stateBeforeClosingTagName=function(e){l(e)||(">"===e?this._state=1:1!==this.special?4===this.special||"s"!==e&&"S"!==e?4!==this.special||"t"!==e&&"T"!==e?(this._state=1,this._index--):this._state=53:this._state=33:this.isTagStartChar(e)?(this._state=6,this.sectionStart=this._index):(this._state=20,this.sectionStart=this._index))},e.prototype.stateInClosingTagName=function(e){(">"===e||l(e))&&(this.emitToken("onclosetag"),this._state=7,this._index--)},e.prototype.stateAfterClosingTagName=function(e){">"===e&&(this._state=1,this.sectionStart=this._index+1)},e.prototype.stateBeforeAttributeName=function(e){">"===e?(this.cbs.onopentagend(),this._state=1,this.sectionStart=this._index+1):"/"===e?this._state=4:l(e)||(this._state=9,this.sectionStart=this._index)},e.prototype.stateInSelfClosingTag=function(e){">"===e?(this.cbs.onselfclosingtag(),this._state=1,this.sectionStart=this._index+1,this.special=1):l(e)||(this._state=8,this._index--)},e.prototype.stateInAttributeName=function(e){("="===e||"/"===e||">"===e||l(e))&&(this.cbs.onattribname(this.getSection()),this.sectionStart=-1,this._state=10,this._index--)},e.prototype.stateAfterAttributeName=function(e){"="===e?this._state=11:"/"===e||">"===e?(this.cbs.onattribend(void 0),this._state=8,this._index--):l(e)||(this.cbs.onattribend(void 0),this._state=9,this.sectionStart=this._index)},e.prototype.stateBeforeAttributeValue=function(e){'"'===e?(this._state=12,this.sectionStart=this._index+1):"'"===e?(this._state=13,this.sectionStart=this._index+1):l(e)||(this._state=14,this.sectionStart=this._index,this._index--)},e.prototype.handleInAttributeValue=function(e,t){e===t?(this.emitToken("onattribdata"),this.cbs.onattribend(t),this._state=8):this.decodeEntities&&"&"===e&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},e.prototype.stateInAttributeValueDoubleQuotes=function(e){this.handleInAttributeValue(e,'"')},e.prototype.stateInAttributeValueSingleQuotes=function(e){this.handleInAttributeValue(e,"'")},e.prototype.stateInAttributeValueNoQuotes=function(e){l(e)||">"===e?(this.emitToken("onattribdata"),this.cbs.onattribend(null),this._state=8,this._index--):this.decodeEntities&&"&"===e&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},e.prototype.stateBeforeDeclaration=function(e){this._state="["===e?23:"-"===e?18:16},e.prototype.stateInDeclaration=function(e){">"===e&&(this.cbs.ondeclaration(this.getSection()),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateInProcessingInstruction=function(e){">"===e&&(this.cbs.onprocessinginstruction(this.getSection()),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateBeforeComment=function(e){"-"===e?(this._state=19,this.sectionStart=this._index+1):this._state=16},e.prototype.stateInComment=function(e){"-"===e&&(this._state=21)},e.prototype.stateInSpecialComment=function(e){">"===e&&(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index)),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateAfterComment1=function(e){this._state="-"===e?22:19},e.prototype.stateAfterComment2=function(e){">"===e?(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):"-"!==e&&(this._state=19)},e.prototype.stateBeforeCdata6=function(e){"["===e?(this._state=29,this.sectionStart=this._index+1):(this._state=16,this._index--)},e.prototype.stateInCdata=function(e){"]"===e&&(this._state=30)},e.prototype.stateAfterCdata1=function(e){this._state="]"===e?31:29},e.prototype.stateAfterCdata2=function(e){">"===e?(this.cbs.oncdata(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):"]"!==e&&(this._state=29)},e.prototype.stateBeforeSpecialS=function(e){"c"===e||"C"===e?this._state=34:"t"===e||"T"===e?this._state=44:(this._state=3,this._index--)},e.prototype.stateBeforeSpecialSEnd=function(e){2!==this.special||"c"!==e&&"C"!==e?3!==this.special||"t"!==e&&"T"!==e?this._state=1:this._state=48:this._state=39},e.prototype.stateBeforeSpecialLast=function(e,t){("/"===e||">"===e||l(e))&&(this.special=t),this._state=3,this._index--},e.prototype.stateAfterSpecialLast=function(e,t){">"===e||l(e)?(this.special=1,this._state=6,this.sectionStart=this._index-t,this._index--):this._state=1},e.prototype.parseFixedEntity=function(e){if(void 0===e&&(e=this.xmlMode?a.default:o.default),this.sectionStart+1<this._index){var t=this.buffer.substring(this.sectionStart+1,this._index);Object.prototype.hasOwnProperty.call(e,t)&&(this.emitPartial(e[t]),this.sectionStart=this._index+1)}},e.prototype.parseLegacyEntity=function(){for(var e=this.sectionStart+1,t=Math.min(this._index-e,6);t>=2;){var r=this.buffer.substr(e,t);if(Object.prototype.hasOwnProperty.call(s.default,r))return this.emitPartial(s.default[r]),void(this.sectionStart+=t+1);t--}},e.prototype.stateInNamedEntity=function(e){";"===e?(this.parseFixedEntity(),1===this.baseState&&this.sectionStart+1<this._index&&!this.xmlMode&&this.parseLegacyEntity(),this._state=this.baseState):(e<"0"||e>"9")&&!c(e)&&(this.xmlMode||this.sectionStart+1===this._index||(1!==this.baseState?"="!==e&&this.parseFixedEntity(s.default):this.parseLegacyEntity()),this._state=this.baseState,this._index--)},e.prototype.decodeNumericEntity=function(e,t,r){var n=this.sectionStart+e;if(n!==this._index){var o=this.buffer.substring(n,this._index),s=parseInt(o,t);this.emitPartial(i.default(s)),this.sectionStart=r?this._index+1:this._index}this._state=this.baseState},e.prototype.stateInNumericEntity=function(e){";"===e?this.decodeNumericEntity(2,10,!0):(e<"0"||e>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(2,10,!1),this._index--)},e.prototype.stateInHexEntity=function(e){";"===e?this.decodeNumericEntity(3,16,!0):(e<"a"||e>"f")&&(e<"A"||e>"F")&&(e<"0"||e>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(3,16,!1),this._index--)},e.prototype.cleanup=function(){this.sectionStart<0?(this.buffer="",this.bufferOffset+=this._index,this._index=0):this.running&&(1===this._state?(this.sectionStart!==this._index&&this.cbs.ontext(this.buffer.substr(this.sectionStart)),this.buffer="",this.bufferOffset+=this._index,this._index=0):this.sectionStart===this._index?(this.buffer="",this.bufferOffset+=this._index,this._index=0):(this.buffer=this.buffer.substr(this.sectionStart),this._index-=this.sectionStart,this.bufferOffset+=this.sectionStart),this.sectionStart=0)},e.prototype.parse=function(){for(;this._index<this.buffer.length&&this.running;){var e=this.buffer.charAt(this._index);1===this._state?this.stateText(e):12===this._state?this.stateInAttributeValueDoubleQuotes(e):9===this._state?this.stateInAttributeName(e):19===this._state?this.stateInComment(e):20===this._state?this.stateInSpecialComment(e):8===this._state?this.stateBeforeAttributeName(e):3===this._state?this.stateInTagName(e):6===this._state?this.stateInClosingTagName(e):2===this._state?this.stateBeforeTagName(e):10===this._state?this.stateAfterAttributeName(e):13===this._state?this.stateInAttributeValueSingleQuotes(e):11===this._state?this.stateBeforeAttributeValue(e):5===this._state?this.stateBeforeClosingTagName(e):7===this._state?this.stateAfterClosingTagName(e):32===this._state?this.stateBeforeSpecialS(e):21===this._state?this.stateAfterComment1(e):14===this._state?this.stateInAttributeValueNoQuotes(e):4===this._state?this.stateInSelfClosingTag(e):16===this._state?this.stateInDeclaration(e):15===this._state?this.stateBeforeDeclaration(e):22===this._state?this.stateAfterComment2(e):18===this._state?this.stateBeforeComment(e):33===this._state?this.stateBeforeSpecialSEnd(e):53===this._state?R(this,e):39===this._state?x(this,e):40===this._state?O(this,e):41===this._state?S(this,e):34===this._state?b(this,e):35===this._state?v(this,e):36===this._state?y(this,e):37===this._state?w(this,e):38===this._state?this.stateBeforeSpecialLast(e,2):42===this._state?C(this,e):43===this._state?this.stateAfterSpecialLast(e,6):44===this._state?_(this,e):29===this._state?this.stateInCdata(e):45===this._state?k(this,e):46===this._state?E(this,e):47===this._state?this.stateBeforeSpecialLast(e,3):48===this._state?T(this,e):49===this._state?N(this,e):50===this._state?P(this,e):51===this._state?this.stateAfterSpecialLast(e,5):52===this._state?A(this,e):54===this._state?M(this,e):55===this._state?D(this,e):56===this._state?I(this,e):57===this._state?this.stateBeforeSpecialLast(e,4):58===this._state?L(this,e):59===this._state?j(this,e):60===this._state?V(this,e):61===this._state?this.stateAfterSpecialLast(e,5):17===this._state?this.stateInProcessingInstruction(e):64===this._state?this.stateInNamedEntity(e):23===this._state?d(this,e):62===this._state?F(this,e):24===this._state?f(this,e):25===this._state?h(this,e):30===this._state?this.stateAfterCdata1(e):31===this._state?this.stateAfterCdata2(e):26===this._state?m(this,e):27===this._state?g(this,e):28===this._state?this.stateBeforeCdata6(e):66===this._state?this.stateInHexEntity(e):65===this._state?this.stateInNumericEntity(e):63===this._state?q(this,e):this.cbs.onerror(Error("unknown _state"),this._state),this._index++}this.cleanup()},e.prototype.finish=function(){this.sectionStart<this._index&&this.handleTrailingData(),this.cbs.onend()},e.prototype.handleTrailingData=function(){var e=this.buffer.substr(this.sectionStart);29===this._state||30===this._state||31===this._state?this.cbs.oncdata(e):19===this._state||21===this._state||22===this._state?this.cbs.oncomment(e):64!==this._state||this.xmlMode?65!==this._state||this.xmlMode?66!==this._state||this.xmlMode?3!==this._state&&8!==this._state&&11!==this._state&&10!==this._state&&9!==this._state&&13!==this._state&&12!==this._state&&14!==this._state&&6!==this._state&&this.cbs.ontext(e):(this.decodeNumericEntity(3,16,!1),this.sectionStart<this._index&&(this._state=this.baseState,this.handleTrailingData())):(this.decodeNumericEntity(2,10,!1),this.sectionStart<this._index&&(this._state=this.baseState,this.handleTrailingData())):(this.parseLegacyEntity(),this.sectionStart<this._index&&(this._state=this.baseState,this.handleTrailingData()))},e.prototype.getSection=function(){return this.buffer.substring(this.sectionStart,this._index)},e.prototype.emitToken=function(e){this.cbs[e](this.getSection()),this.sectionStart=-1},e.prototype.emitPartial=function(e){1!==this.baseState?this.cbs.onattribdata(e):this.cbs.ontext(e)},e}();t.default=B},5106:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RssHandler=t.DefaultHandler=t.DomUtils=t.ElementType=t.Tokenizer=t.createDomStream=t.parseDOM=t.parseDocument=t.DomHandler=t.Parser=void 0;var l=r(6666);Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return l.Parser}});var c=r(1142);function u(e,t){var r=new c.DomHandler(void 0,t);return new l.Parser(r,t).end(e),r.root}Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return c.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return c.DomHandler}}),t.parseDocument=u,t.parseDOM=function(e,t){return u(e,t).children},t.createDomStream=function(e,t,r){var n=new c.DomHandler(e,t,r);return new l.Parser(n,t)};var p=r(34);Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return a(p).default}});var d=o(r(9960));t.ElementType=d,s(r(7613),t),t.DomUtils=o(r(7241));var f=r(7613);Object.defineProperty(t,"RssHandler",{enumerable:!0,get:function(){return f.FeedHandler}})},977:(e,t)=>{"use strict";function r(e){return"[object Object]"===Object.prototype.toString.call(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=function(e){var t,n;return!1!==r(e)&&(void 0===(t=e.constructor)||!1!==r(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}},3379:e=>{"use strict";var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var o={},s=[],a=0;a<e.length;a++){var l=e[a],c=n.base?l[0]+n.base:l[0],u=o[c]||0,p="".concat(c," ").concat(u);o[c]=u+1;var d=r(p),f={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)t[d].references++,t[d].updater(f);else{var h=i(f,n);n.byIndex=a,t.splice(a,0,{identifier:p,updater:h,references:1})}s.push(p)}return s}function i(e,t){var r=t.domAPI(t);r.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,i){var o=n(e=e||[],i=i||{});return function(e){e=e||[];for(var s=0;s<o.length;s++){var a=r(o[s]);t[a].references--}for(var l=n(e,i),c=0;c<o.length;c++){var u=r(o[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}o=l}}},569:e=>{"use strict";var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,r)=>{"use strict";e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var i=void 0!==r.layer;i&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,i&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var o=r.sourceMap;o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},1476:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var i=n(r(7848)),o=r(6678);t.default=function(e,t){var r={};return e&&"string"==typeof e?((0,i.default)(e,(function(e,n){e&&n&&(r[(0,o.camelCase)(e,t)]=n)})),r):r}},6678:(e,t)=>{"use strict";t.__esModule=!0,t.camelCase=void 0;var r=/^--[a-zA-Z0-9-]+$/,n=/-([a-z])/g,i=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||i.test(e)||r.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(s,l):e.replace(o,l)).replace(n,a))}},7848:(e,t,r)=>{var n=r(8139);e.exports=function(e,t){var r,i=null;if(!e||"string"!=typeof e)return i;for(var o,s,a=n(e),l="function"==typeof t,c=0,u=a.length;c<u;c++)o=(r=a[c]).property,s=r.value,l?t(o,s,r):s&&(i||(i={}),i[o]=s);return i}},9196:e=>{"use strict";e.exports=window.React},2868:()=>{},4777:()=>{},9830:()=>{},209:()=>{},7414:()=>{},2618:e=>{e.exports={nanoid:(e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(r=t)=>{let n="",i=r;for(;i--;)n+=e[Math.random()*e.length|0];return n}}},7607:e=>{"use strict";e.exports=JSON.parse('{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}')},4168:e=>{"use strict";e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}')},7272:e=>{"use strict";e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"­","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}')},729:e=>{"use strict";e.exports=JSON.parse('{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}')}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={id:n,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.nc=void 0,(()=>{"use strict";const e=window.wp.blocks;const t=function(t){var r=t.namespace,n=t.title,i=t.icon;(0,e.registerBlockCollection)(r,{title:n,icon:i})};function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(488);o.domToReact,o.htmlToDOM,o.attributesToProps,o.Element;const s=o,a=window.wp.blockEditor,l=window.wp.components;function c(){return c=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},c.apply(this,arguments)}var u=r(9196);var p=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(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.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(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.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=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]}(t);try{r.insertRule(e,r.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),d=Math.abs,f=String.fromCharCode,h=Object.assign;function m(e){return e.trim()}function g(e,t,r){return e.replace(t,r)}function b(e,t){return e.indexOf(t)}function v(e,t){return 0|e.charCodeAt(t)}function y(e,t,r){return e.slice(t,r)}function w(e){return e.length}function x(e){return e.length}function O(e,t){return t.push(e),e}var S=1,C=1,_=0,k=0,E=0,T="";function N(e,t,r,n,i,o,s){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:S,column:C,length:s,return:""}}function P(e,t){return h(N("",null,null,"",null,null,0),e,{length:-e.length},t)}function A(){return E=k>0?v(T,--k):0,C--,10===E&&(C=1,S--),E}function M(){return E=k<_?v(T,k++):0,C++,10===E&&(C=1,S++),E}function D(){return v(T,k)}function I(){return k}function R(e,t){return y(T,e,t)}function L(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function j(e){return S=C=1,_=w(T=e),k=0,[]}function V(e){return T="",e}function F(e){return m(R(k-1,H(91===e?e+2:40===e?e+1:e)))}function q(e){for(;(E=D())&&E<33;)M();return L(e)>2||L(E)>3?"":" "}function B(e,t){for(;--t&&M()&&!(E<48||E>102||E>57&&E<65||E>70&&E<97););return R(e,I()+(t<6&&32==D()&&32==M()))}function H(e){for(;M();)switch(E){case e:return k;case 34:case 39:34!==e&&39!==e&&H(E);break;case 40:41===e&&H(e);break;case 92:M()}return k}function U(e,t){for(;M()&&e+E!==57&&(e+E!==84||47!==D()););return"/*"+R(t,k-1)+"*"+f(47===e?e:M())}function z(e){for(;!L(D());)M();return R(e,k)}var $="-ms-",G="-moz-",W="-webkit-",Z="comm",X="rule",Y="decl",J="@keyframes";function K(e,t){for(var r="",n=x(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function Q(e,t,r,n){switch(e.type){case"@import":case Y:return e.return=e.return||e.value;case Z:return"";case J:return e.return=e.value+"{"+K(e.children,n)+"}";case X:e.value=e.props.join(",")}return w(r=K(e.children,n))?e.return=e.value+"{"+r+"}":""}function ee(e,t){switch(function(e,t){return(((t<<2^v(e,0))<<2^v(e,1))<<2^v(e,2))<<2^v(e,3)}(e,t)){case 5103:return W+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return W+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return W+e+G+e+$+e+e;case 6828:case 4268:return W+e+$+e+e;case 6165:return W+e+$+"flex-"+e+e;case 5187:return W+e+g(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return W+e+$+"flex-item-"+g(e,/flex-|-self/,"")+e;case 4675:return W+e+$+"flex-line-pack"+g(e,/align-content|flex-|-self/,"")+e;case 5548:return W+e+$+g(e,"shrink","negative")+e;case 5292:return W+e+$+g(e,"basis","preferred-size")+e;case 6060:return W+"box-"+g(e,"-grow","")+W+e+$+g(e,"grow","positive")+e;case 4554:return W+g(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return g(g(g(e,/(zoom-|grab)/,W+"$1"),/(image-set)/,W+"$1"),e,"")+e;case 5495:case 3959:return g(e,/(image-set\([^]*)/,W+"$1$`$1");case 4968:return g(g(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+W+e+e;case 4095:case 3583:case 4068:case 2532:return g(e,/(.+)-inline(.+)/,W+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(w(e)-1-t>6)switch(v(e,t+1)){case 109:if(45!==v(e,t+4))break;case 102:return g(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+G+(108==v(e,t+3)?"$3":"$2-$3"))+e;case 115:return~b(e,"stretch")?ee(g(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==v(e,t+1))break;case 6444:switch(v(e,w(e)-3-(~b(e,"!important")&&10))){case 107:return g(e,":",":"+W)+e;case 101:return g(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+W+(45===v(e,14)?"inline-":"")+"box$3$1"+W+"$2$3$1"+$+"$2box$3")+e}break;case 5936:switch(v(e,t+11)){case 114:return W+e+$+g(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return W+e+$+g(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return W+e+$+g(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return W+e+$+e+e}return e}function te(e){return V(re("",null,null,null,[""],e=j(e),0,[0],e))}function re(e,t,r,n,i,o,s,a,l){for(var c=0,u=0,p=s,d=0,h=0,m=0,v=1,y=1,x=1,S=0,C="",_=i,k=o,E=n,T=C;y;)switch(m=S,S=M()){case 40:if(108!=m&&58==T.charCodeAt(p-1)){-1!=b(T+=g(F(S),"&","&\f"),"&\f")&&(x=-1);break}case 34:case 39:case 91:T+=F(S);break;case 9:case 10:case 13:case 32:T+=q(m);break;case 92:T+=B(I()-1,7);continue;case 47:switch(D()){case 42:case 47:O(ie(U(M(),I()),t,r),l);break;default:T+="/"}break;case 123*v:a[c++]=w(T)*x;case 125*v:case 59:case 0:switch(S){case 0:case 125:y=0;case 59+u:h>0&&w(T)-p&&O(h>32?oe(T+";",n,r,p-1):oe(g(T," ","")+";",n,r,p-2),l);break;case 59:T+=";";default:if(O(E=ne(T,t,r,c,u,i,a,C,_=[],k=[],p),o),123===S)if(0===u)re(T,t,E,E,_,o,p,a,k);else switch(d){case 100:case 109:case 115:re(e,E,E,n&&O(ne(e,E,E,0,0,i,a,C,i,_=[],p),k),i,k,p,a,n?_:k);break;default:re(T,E,E,E,[""],k,0,a,k)}}c=u=h=0,v=x=1,C=T="",p=s;break;case 58:p=1+w(T),h=m;default:if(v<1)if(123==S)--v;else if(125==S&&0==v++&&125==A())continue;switch(T+=f(S),S*v){case 38:x=u>0?1:(T+="\f",-1);break;case 44:a[c++]=(w(T)-1)*x,x=1;break;case 64:45===D()&&(T+=F(M())),d=D(),u=p=w(C=T+=z(I())),S++;break;case 45:45===m&&2==w(T)&&(v=0)}}return o}function ne(e,t,r,n,i,o,s,a,l,c,u){for(var p=i-1,f=0===i?o:[""],h=x(f),b=0,v=0,w=0;b<n;++b)for(var O=0,S=y(e,p+1,p=d(v=s[b])),C=e;O<h;++O)(C=m(v>0?f[O]+" "+S:g(S,/&\f/g,f[O])))&&(l[w++]=C);return N(e,t,r,0===i?X:a,l,c,u)}function ie(e,t,r){return N(e,t,r,Z,f(E),y(e,2,-2),0)}function oe(e,t,r,n){return N(e,t,r,Y,y(e,0,n),y(e,n+1,-1),n)}var se=function(e,t,r){for(var n=0,i=0;n=i,i=D(),38===n&&12===i&&(t[r]=1),!L(i);)M();return R(e,k)},ae=function(e,t){return V(function(e,t){var r=-1,n=44;do{switch(L(n)){case 0:38===n&&12===D()&&(t[r]=1),e[r]+=se(k-1,t,r);break;case 2:e[r]+=F(n);break;case 4:if(44===n){e[++r]=58===D()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=f(n)}}while(n=M());return e}(j(e),t))},le=new WeakMap,ce=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||le.get(r))&&!n){le.set(e,!0);for(var i=[],o=ae(t,i),s=r.props,a=0,l=0;a<o.length;a++)for(var c=0;c<s.length;c++,l++)e.props[l]=i[a]?o[a].replace(/&\f/g,s[c]):s[c]+" "+o[a]}}},ue=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},pe=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Y:e.return=ee(e.value,e.length);break;case J:return K([P(e,{value:g(e.value,"@","@"+W)})],n);case X:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return K([P(e,{props:[g(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return K([P(e,{props:[g(t,/:(plac\w+)/,":-webkit-input-$1")]}),P(e,{props:[g(t,/:(plac\w+)/,":-moz-$1")]}),P(e,{props:[g(t,/:(plac\w+)/,$+"input-$1")]})],n)}return""}))}}];const de=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n=e.stylisPlugins||pe;var i,o,s={},a=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)s[t[r]]=!0;a.push(e)}));var l,c,u,d,f=[Q,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],h=(c=[ce,ue].concat(n,f),u=x(c),function(e,t,r,n){for(var i="",o=0;o<u;o++)i+=c[o](e,t,r,n)||"";return i});o=function(e,t,r,n){l=r,K(te(e?e+"{"+t.styles+"}":t.styles),h),n&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new p({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:o};return m.sheet.hydrate(a),m};function fe(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "})),n}var he=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},me=function(e,t,r){he(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+n:"",i,e.sheet,!0);i=i.next}while(void 0!==i)}};const ge=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)};const be={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};var ve=/[A-Z]|^ms/g,ye=/_EMO_([^_]+?)_([^]*?)_EMO_/g,we=function(e){return 45===e.charCodeAt(1)},xe=function(e){return null!=e&&"boolean"!=typeof e},Oe=function(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}((function(e){return we(e)?e:e.replace(ve,"-$&").toLowerCase()})),Se=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ye,(function(e,t,r){return _e={name:t,styles:r,next:_e},t}))}return 1===be[e]||we(e)||"number"!=typeof t||0===t?t:t+"px"};function Ce(e,t,r){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 _e={name:r.name,styles:r.styles,next:_e},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)_e={name:n.name,styles:n.styles,next:_e},n=n.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Ce(e,t,r[i])+";";else for(var o in r){var s=r[o];if("object"!=typeof s)null!=t&&void 0!==t[s]?n+=o+"{"+t[s]+"}":xe(s)&&(n+=Oe(o)+":"+Se(o,s)+";");else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var a=Ce(e,t,s);switch(o){case"animation":case"animationName":n+=Oe(o)+":"+a+";";break;default:n+=o+"{"+a+"}"}}else for(var l=0;l<s.length;l++)xe(s[l])&&(n+=Oe(o)+":"+Se(o,s[l])+";")}return n}(e,t,r);case"function":if(void 0!==e){var i=_e,o=r(e);return _e=i,Ce(e,t,o)}}if(null==t)return r;var s=t[r];return void 0!==s?s:r}var _e,ke=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var Ee=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,i="";_e=void 0;var o=e[0];null==o||void 0===o.raw?(n=!1,i+=Ce(r,t,o)):i+=o[0];for(var s=1;s<e.length;s++)i+=Ce(r,t,e[s]),n&&(i+=o[s]);ke.lastIndex=0;for(var a,l="";null!==(a=ke.exec(i));)l+="-"+a[1];return{name:ge(i)+l,styles:i,next:_e}},Te={}.hasOwnProperty,Ne=(0,u.createContext)("undefined"!=typeof HTMLElement?de({key:"css"}):null);var Pe=Ne.Provider,Ae=function(e){return(0,u.forwardRef)((function(t,r){var n=(0,u.useContext)(Ne);return e(t,n,r)}))},Me=(0,u.createContext)({});var De=u.useInsertionEffect?u.useInsertionEffect:function(e){e()};function Ie(e){De(e)}var Re="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Le=function(e,t){var r={};for(var n in t)Te.call(t,n)&&(r[n]=t[n]);return r[Re]=e,r},je=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;he(t,r,n);Ie((function(){return me(t,r,n)}));return null},Ve=Ae((function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var i=e[Re],o=[n],s="";"string"==typeof e.className?s=fe(t.registered,o,e.className):null!=e.className&&(s=e.className+" ");var a=Ee(o,void 0,(0,u.useContext)(Me));s+=t.key+"-"+a.name;var l={};for(var c in e)Te.call(e,c)&&"css"!==c&&c!==Re&&(l[c]=e[c]);return l.ref=r,l.className=s,(0,u.createElement)(u.Fragment,null,(0,u.createElement)(je,{cache:t,serialized:a,isStringTag:"string"==typeof i}),(0,u.createElement)(i,l))}));r(8679);var Fe=function(e,t){var r=arguments;if(null==t||!Te.call(t,"css"))return u.createElement.apply(void 0,r);var n=r.length,i=new Array(n);i[0]=Ve,i[1]=Le(e,t);for(var o=2;o<n;o++)i[o]=r[o];return u.createElement.apply(null,i)};u.useInsertionEffect?u.useInsertionEffect:u.useLayoutEffect;function qe(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ee(t)}var Be=function e(t){for(var r=t.length,n=0,i="";n<r;n++){var o=t[n];if(null!=o){var s=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))s=e(o);else for(var a in s="",o)o[a]&&a&&(s&&(s+=" "),s+=a);break;default:s=o}s&&(i&&(i+=" "),i+=s)}}return i};function He(e,t,r){var n=[],i=fe(e,n,r);return n.length<2?r:i+t(n)}var Ue=function(e){var t=e.cache,r=e.serializedArr;Ie((function(){for(var e=0;e<r.length;e++)me(t,r[e],!1)}));return null},ze=Ae((function(e,t){var r=[],n=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var o=Ee(n,t.registered);return r.push(o),he(t,o,!1),t.key+"-"+o.name},i={css:n,cx:function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return He(t.registered,n,Be(r))},theme:(0,u.useContext)(Me)},o=e.children(i);return!0,(0,u.createElement)(u.Fragment,null,(0,u.createElement)(Ue,{cache:t,serializedArr:r}),o)}));function $e(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function We(e,t){if(e){if("string"==typeof e)return Ge(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ge(e,t):void 0}}function Ze(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],s=!0,a=!1;try{for(r=r.call(e);!(s=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==r.return||r.return()}finally{if(a)throw i}}return o}}(e,t)||We(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ye(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Je(e,t,r){return t&&Ye(e.prototype,t),r&&Ye(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ke(e,t){return Ke=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ke(e,t)}function Qe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ke(e,t)}const et=window.ReactDOM;function tt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rt(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?rt(Object(r),!0).forEach((function(t){tt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function it(e){return it=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},it(e)}function ot(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function st(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=it(e);if(t){var i=it(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return ot(this,r)}}var at=["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],lt=function(){};function ct(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function ut(e,t,r){var n=[r];if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&n.push("".concat(ct(e,i)));return n.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var pt=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===n(e)&&null!==e?[e]:[];var t},dt=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,nt({},$e(e,at))};function ft(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function ht(e){return ft(e)?window.pageYOffset:e.scrollTop}function mt(e,t){ft(e)?window.scrollTo(0,t):e.scrollTop=t}function gt(e,t,r,n){return r*((e=e/n-1)*e*e+1)+t}function bt(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:lt,i=ht(e),o=t-i,s=10,a=0;function l(){var t=gt(a+=s,i,o,r);mt(e,t),a<r?window.requestAnimationFrame(l):n(e)}l()}function vt(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var yt=!1,wt={get passive(){return yt=!0}},xt="undefined"!=typeof window?window:{};xt.addEventListener&&xt.removeEventListener&&(xt.addEventListener("p",lt,wt),xt.removeEventListener("p",lt,!1));var Ot=yt;function St(e){return null!=e}function Ct(e,t,r){return e?t:r}function _t(e){var t=e.maxHeight,r=e.menuEl,n=e.minHeight,i=e.placement,o=e.shouldScroll,s=e.isFixedPosition,a=e.theme.spacing,l=function(e){var t=getComputedStyle(e),r="absolute"===t.position,n=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!r||"static"!==t.position)&&n.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}(r),c={placement:"bottom",maxHeight:t};if(!r||!r.offsetParent)return c;var u,p=l.getBoundingClientRect().height,d=r.getBoundingClientRect(),f=d.bottom,h=d.height,m=d.top,g=r.offsetParent.getBoundingClientRect().top,b=s?window.innerHeight:ft(u=l)?window.innerHeight:u.clientHeight,v=ht(l),y=parseInt(getComputedStyle(r).marginBottom,10),w=parseInt(getComputedStyle(r).marginTop,10),x=g-w,O=b-m,S=x+v,C=p-v-m,_=f-b+v+y,k=v+m-w,E=160;switch(i){case"auto":case"bottom":if(O>=h)return{placement:"bottom",maxHeight:t};if(C>=h&&!s)return o&&bt(l,_,E),{placement:"bottom",maxHeight:t};if(!s&&C>=n||s&&O>=n)return o&&bt(l,_,E),{placement:"bottom",maxHeight:s?O-y:C-y};if("auto"===i||s){var T=t,N=s?x:S;return N>=n&&(T=Math.min(N-y-a.controlHeight,t)),{placement:"top",maxHeight:T}}if("bottom"===i)return o&&mt(l,_),{placement:"bottom",maxHeight:t};break;case"top":if(x>=h)return{placement:"top",maxHeight:t};if(S>=h&&!s)return o&&bt(l,k,E),{placement:"top",maxHeight:t};if(!s&&S>=n||s&&x>=n){var P=t;return(!s&&S>=n||s&&x>=n)&&(P=s?x-w:S-w),o&&bt(l,k,E),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}var kt=function(e){return"auto"===e?"bottom":e},Et=(0,u.createContext)({getPortalPlacement:null}),Tt=function(e){Qe(r,e);var t=st(r);function r(){var e;Xe(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.context=void 0,e.getPlacement=function(t){var r=e.props,n=r.minMenuHeight,i=r.maxMenuHeight,o=r.menuPlacement,s=r.menuPosition,a=r.menuShouldScrollIntoView,l=r.theme;if(t){var c="fixed"===s,u=_t({maxHeight:i,menuEl:t,minHeight:n,placement:o,shouldScroll:a&&!c,isFixedPosition:c,theme:l}),p=e.context.getPortalPlacement;p&&p(u),e.setState(u)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,r=e.state.placement||kt(t);return nt(nt({},e.props),{},{placement:r,maxHeight:e.state.maxHeight})},e}return Je(r,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),r}(u.Component);Tt.contextType=Et;var Nt=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"}},Pt=Nt,At=Nt,Mt=function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,o=e.innerProps;return Fe("div",c({css:i("noOptionsMessage",e),className:n({"menu-notice":!0,"menu-notice--no-options":!0},r)},o),t)};Mt.defaultProps={children:"No options"};var Dt=function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,o=e.innerProps;return Fe("div",c({css:i("loadingMessage",e),className:n({"menu-notice":!0,"menu-notice--loading":!0},r)},o),t)};Dt.defaultProps={children:"Loading..."};var It,Rt=function(e){Qe(r,e);var t=st(r);function r(){var e;Xe(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!==kt(e.props.menuPlacement)&&e.setState({placement:r})},e}return Je(r,[{key:"render",value:function(){var e=this.props,t=e.appendTo,r=e.children,n=e.className,i=e.controlElement,o=e.cx,s=e.innerProps,a=e.menuPlacement,l=e.menuPosition,u=e.getStyles,p="fixed"===l;if(!t&&!p||!i)return null;var d=this.state.placement||kt(a),f=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}}(i),h=p?0:window.pageYOffset,m=f[d]+h,g=Fe("div",c({css:u("menuPortal",{offset:m,position:l,rect:f}),className:o({"menu-portal":!0},n)},s),r);return Fe(Et.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?(0,et.createPortal)(g,t):g)}}]),r}(u.Component),Lt=["size"];var jt,Vt,Ft={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},qt=function(e){var t=e.size,r=$e(e,Lt);return Fe("svg",c({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Ft},r))},Bt=function(e){return Fe(qt,c({size:20},e),Fe("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"}))},Ht=function(e){return Fe(qt,c({size:20},e),Fe("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"}))},Ut=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}}},zt=Ut,$t=Ut,Gt=function(){var e=qe.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_"}}}(It||(jt=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Vt||(Vt=jt.slice(0)),It=Object.freeze(Object.defineProperties(jt,{raw:{value:Object.freeze(Vt)}})))),Wt=function(e){var t=e.delay,r=e.offset;return Fe("span",{css:qe({animation:"".concat(Gt," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Zt=function(e){var t=e.className,r=e.cx,n=e.getStyles,i=e.innerProps,o=e.isRtl;return Fe("div",c({css:n("loadingIndicator",e),className:r({indicator:!0,"loading-indicator":!0},t)},i),Fe(Wt,{delay:0,offset:o}),Fe(Wt,{delay:160,offset:!0}),Fe(Wt,{delay:320,offset:!o}))};Zt.defaultProps={size:4};var Xt=["data"],Yt=["innerRef","isDisabled","isHidden","inputClassName"],Jt={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Kt={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":nt({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Jt)},Qt=function(e){return nt({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Jt)},er=function(e){var t=e.children,r=e.innerProps;return Fe("div",r,t)};var tr={ClearIndicator:function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,o=e.innerProps;return Fe("div",c({css:i("clearIndicator",e),className:n({indicator:!0,"clear-indicator":!0},r)},o),t||Fe(Bt,null))},Control:function(e){var t=e.children,r=e.cx,n=e.getStyles,i=e.className,o=e.isDisabled,s=e.isFocused,a=e.innerRef,l=e.innerProps,u=e.menuIsOpen;return Fe("div",c({ref:a,css:n("control",e),className:r({control:!0,"control--is-disabled":o,"control--is-focused":s,"control--menu-is-open":u},i)},l),t)},DropdownIndicator:function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,o=e.innerProps;return Fe("div",c({css:i("dropdownIndicator",e),className:n({indicator:!0,"dropdown-indicator":!0},r)},o),t||Fe(Ht,null))},DownChevron:Ht,CrossIcon:Bt,Group:function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,o=e.Heading,s=e.headingProps,a=e.innerProps,l=e.label,u=e.theme,p=e.selectProps;return Fe("div",c({css:i("group",e),className:n({group:!0},r)},a),Fe(o,c({},s,{selectProps:p,theme:u,getStyles:i,cx:n}),l),Fe("div",null,t))},GroupHeading:function(e){var t=e.getStyles,r=e.cx,n=e.className,i=dt(e);i.data;var o=$e(i,Xt);return Fe("div",c({css:t("groupHeading",e),className:r({"group-heading":!0},n)},o))},IndicatorsContainer:function(e){var t=e.children,r=e.className,n=e.cx,i=e.innerProps,o=e.getStyles;return Fe("div",c({css:o("indicatorsContainer",e),className:n({indicators:!0},r)},i),t)},IndicatorSeparator:function(e){var t=e.className,r=e.cx,n=e.getStyles,i=e.innerProps;return Fe("span",c({},i,{css:n("indicatorSeparator",e),className:r({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,r=e.cx,n=e.getStyles,i=e.value,o=dt(e),s=o.innerRef,a=o.isDisabled,l=o.isHidden,u=o.inputClassName,p=$e(o,Yt);return Fe("div",{className:r({"input-container":!0},t),css:n("input",e),"data-value":i||""},Fe("input",c({className:r({input:!0},u),ref:s,style:Qt(l),disabled:a},p)))},LoadingIndicator:Zt,Menu:function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,o=e.innerRef,s=e.innerProps;return Fe("div",c({css:i("menu",e),className:n({menu:!0},r),ref:o},s),t)},MenuList:function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,o=e.innerProps,s=e.innerRef,a=e.isMulti;return Fe("div",c({css:i("menuList",e),className:n({"menu-list":!0,"menu-list--is-multi":a},r),ref:s},o),t)},MenuPortal:Rt,LoadingMessage:Dt,NoOptionsMessage:Mt,MultiValue:function(e){var t=e.children,r=e.className,n=e.components,i=e.cx,o=e.data,s=e.getStyles,a=e.innerProps,l=e.isDisabled,c=e.removeProps,u=e.selectProps,p=n.Container,d=n.Label,f=n.Remove;return Fe(ze,null,(function(n){var h=n.css,m=n.cx;return Fe(p,{data:o,innerProps:nt({className:m(h(s("multiValue",e)),i({"multi-value":!0,"multi-value--is-disabled":l},r))},a),selectProps:u},Fe(d,{data:o,innerProps:{className:m(h(s("multiValueLabel",e)),i({"multi-value__label":!0},r))},selectProps:u},t),Fe(f,{data:o,innerProps:nt({className:m(h(s("multiValueRemove",e)),i({"multi-value__remove":!0},r)),"aria-label":"Remove ".concat(t||"option")},c),selectProps:u}))}))},MultiValueContainer:er,MultiValueLabel:er,MultiValueRemove:function(e){var t=e.children,r=e.innerProps;return Fe("div",c({role:"button"},r),t||Fe(Bt,{size:14}))},Option:function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,o=e.isDisabled,s=e.isFocused,a=e.isSelected,l=e.innerRef,u=e.innerProps;return Fe("div",c({css:i("option",e),className:n({option:!0,"option--is-disabled":o,"option--is-focused":s,"option--is-selected":a},r),ref:l,"aria-disabled":o},u),t)},Placeholder:function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,o=e.innerProps;return Fe("div",c({css:i("placeholder",e),className:n({placeholder:!0},r)},o),t)},SelectContainer:function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,o=e.innerProps,s=e.isDisabled,a=e.isRtl;return Fe("div",c({css:i("container",e),className:n({"--is-disabled":s,"--is-rtl":a},r)},o),t)},SingleValue:function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,o=e.isDisabled,s=e.innerProps;return Fe("div",c({css:i("singleValue",e),className:n({"single-value":!0,"single-value--is-disabled":o},r)},s),t)},ValueContainer:function(e){var t=e.children,r=e.className,n=e.cx,i=e.innerProps,o=e.isMulti,s=e.getStyles,a=e.hasValue;return Fe("div",c({css:s("valueContainer",e),className:n({"value-container":!0,"value-container--is-multi":o,"value-container--has-value":a},r)},i),t)}},rr=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function nr(e){return function(e){if(Array.isArray(e))return Ge(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||We(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ir=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function or(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(n=e[r],i=t[r],!(n===i||ir(n)&&ir(i)))return!1;var n,i;return!0}const sr=function(e,t){var r;void 0===t&&(t=or);var n,i=[],o=!1;return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return o&&r===this&&t(s,i)||(n=e.apply(this,s),o=!0,r=this,i=s),n}};for(var ar={name:"7pg0cj-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"},lr=function(e){return Fe("span",c({css:ar},e))},cr={guidance:function(e){var t=e.isSearchable,r=e.isMulti,n=e.isDisabled,i=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(n?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(r?" 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";default:return""}},onChange:function(e){var t=e.action,r=e.label,n=void 0===r?"":r,i=e.labels,o=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return"option ".concat(n,o?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,r=e.focused,n=e.options,i=e.label,o=void 0===i?"":i,s=e.selectValue,a=e.isDisabled,l=e.isSelected,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&s)return"value ".concat(o," focused, ").concat(c(s,r),".");if("menu"===t){var u=a?" disabled":"",p="".concat(l?"selected":"focused").concat(u);return"option ".concat(o," ").concat(p,", ").concat(c(n,r),".")}return""},onFilter:function(e){var t=e.inputValue,r=e.resultsMessage;return"".concat(r).concat(t?" for search term "+t:"",".")}},ur=function(e){var t=e.ariaSelection,r=e.focusedOption,n=e.focusedValue,i=e.focusableOptions,o=e.isFocused,s=e.selectValue,a=e.selectProps,l=e.id,c=a.ariaLiveMessages,p=a.getOptionLabel,d=a.inputValue,f=a.isMulti,h=a.isOptionDisabled,m=a.isSearchable,g=a.menuIsOpen,b=a.options,v=a.screenReaderStatus,y=a.tabSelectsValue,w=a["aria-label"],x=a["aria-live"],O=(0,u.useMemo)((function(){return nt(nt({},cr),c||{})}),[c]),S=(0,u.useMemo)((function(){var e,r="";if(t&&O.onChange){var n=t.option,i=t.options,o=t.removedValue,a=t.removedValues,l=t.value,c=o||n||(e=l,Array.isArray(e)?null:e),u=c?p(c):"",d=i||a||void 0,f=d?d.map(p):[],m=nt({isDisabled:c&&h(c,s),label:u,labels:f},t);r=O.onChange(m)}return r}),[t,O,h,s,p]),C=(0,u.useMemo)((function(){var e="",t=r||n,i=!!(r&&s&&s.includes(r));if(t&&O.onFocus){var o={focused:t,label:p(t),isDisabled:h(t,s),isSelected:i,options:b,context:t===r?"menu":"value",selectValue:s};e=O.onFocus(o)}return e}),[r,n,p,h,O,b,s]),_=(0,u.useMemo)((function(){var e="";if(g&&b.length&&O.onFilter){var t=v({count:i.length});e=O.onFilter({inputValue:d,resultsMessage:t})}return e}),[i,d,g,O,b,v]),k=(0,u.useMemo)((function(){var e="";if(O.guidance){var t=n?"value":g?"menu":"input";e=O.guidance({"aria-label":w,context:t,isDisabled:r&&h(r,s),isMulti:f,isSearchable:m,tabSelectsValue:y})}return e}),[w,r,n,f,h,m,g,O,s,y]),E="".concat(C," ").concat(_," ").concat(k),T=Fe(u.Fragment,null,Fe("span",{id:"aria-selection"},S),Fe("span",{id:"aria-context"},E)),N="initial-input-focus"===(null==t?void 0:t.action);return Fe(u.Fragment,null,Fe(lr,{id:l},N&&T),Fe(lr,{"aria-live":x,"aria-atomic":"false","aria-relevant":"additions text"},o&&!N&&T))},pr=[{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źẑżžẓẕƶȥɀⱬꝣ"}],dr=new RegExp("["+pr.map((function(e){return e.letters})).join("")+"]","g"),fr={},hr=0;hr<pr.length;hr++)for(var mr=pr[hr],gr=0;gr<mr.letters.length;gr++)fr[mr.letters[gr]]=mr.base;var br=function(e){return e.replace(dr,(function(e){return fr[e]}))},vr=sr(br),yr=function(e){return e.replace(/^\s+|\s+$/g,"")},wr=function(e){return"".concat(e.label," ").concat(e.value)},xr=["innerRef"];function Or(e){var t=e.innerRef,r=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=Object.entries(e).filter((function(e){var t=Ze(e,1)[0];return!r.includes(t)}));return i.reduce((function(e,t){var r=Ze(t,2),n=r[0],i=r[1];return e[n]=i,e}),{})}($e(e,xr),"onExited","in","enter","exit","appear");return Fe("input",c({ref:t},r,{css:qe({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Sr=["boxSizing","height","overflow","paddingRight","position"],Cr={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function _r(e){e.preventDefault()}function kr(e){e.stopPropagation()}function Er(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;0===e?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function Tr(){return"ontouchstart"in window||navigator.maxTouchPoints}var Nr=!("undefined"==typeof window||!window.document||!window.document.createElement),Pr=0,Ar={capture:!1,passive:!1};var Mr=function(){return document.activeElement&&document.activeElement.blur()},Dr={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Ir(e){var t=e.children,r=e.lockEnabled,n=e.captureEnabled,i=function(e){var t=e.isEnabled,r=e.onBottomArrive,n=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,s=(0,u.useRef)(!1),a=(0,u.useRef)(!1),l=(0,u.useRef)(0),c=(0,u.useRef)(null),p=(0,u.useCallback)((function(e,t){if(null!==c.current){var l=c.current,u=l.scrollTop,p=l.scrollHeight,d=l.clientHeight,f=c.current,h=t>0,m=p-d-u,g=!1;m>t&&s.current&&(n&&n(e),s.current=!1),h&&a.current&&(o&&o(e),a.current=!1),h&&t>m?(r&&!s.current&&r(e),f.scrollTop=p,g=!0,s.current=!0):!h&&-t>u&&(i&&!a.current&&i(e),f.scrollTop=0,g=!0,a.current=!0),g&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[r,n,i,o]),d=(0,u.useCallback)((function(e){p(e,e.deltaY)}),[p]),f=(0,u.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),h=(0,u.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;p(e,t)}),[p]),m=(0,u.useCallback)((function(e){if(e){var t=!!Ot&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",h,t)}}),[h,f,d]),g=(0,u.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",h,!1))}),[h,f,d]);return(0,u.useEffect)((function(){if(t){var e=c.current;return m(e),function(){g(e)}}}),[t,m,g]),function(e){c.current=e}}({isEnabled:void 0===n||n,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),o=function(e){var t=e.isEnabled,r=e.accountForScrollbars,n=void 0===r||r,i=(0,u.useRef)({}),o=(0,u.useRef)(null),s=(0,u.useCallback)((function(e){if(Nr){var t=document.body,r=t&&t.style;if(n&&Sr.forEach((function(e){var t=r&&r[e];i.current[e]=t})),n&&Pr<1){var o=parseInt(i.current.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,a=window.innerWidth-s+o||0;Object.keys(Cr).forEach((function(e){var t=Cr[e];r&&(r[e]=t)})),r&&(r.paddingRight="".concat(a,"px"))}t&&Tr()&&(t.addEventListener("touchmove",_r,Ar),e&&(e.addEventListener("touchstart",Er,Ar),e.addEventListener("touchmove",kr,Ar))),Pr+=1}}),[n]),a=(0,u.useCallback)((function(e){if(Nr){var t=document.body,r=t&&t.style;Pr=Math.max(Pr-1,0),n&&Pr<1&&Sr.forEach((function(e){var t=i.current[e];r&&(r[e]=t)})),t&&Tr()&&(t.removeEventListener("touchmove",_r,Ar),e&&(e.removeEventListener("touchstart",Er,Ar),e.removeEventListener("touchmove",kr,Ar)))}}),[n]);return(0,u.useEffect)((function(){if(t){var e=o.current;return s(e),function(){a(e)}}}),[t,s,a]),function(e){o.current=e}}({isEnabled:r});return Fe(u.Fragment,null,r&&Fe("div",{onClick:Mr,css:Dr}),t((function(e){i(e),o(e)})))}var Rr={clearIndicator:$t,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e){var t=e.isDisabled,r=e.isFocused,n=e.theme,i=n.colors,o=n.borderRadius,s=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):void 0,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:r?i.primary:i.neutral30}}},dropdownIndicator:zt,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading: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"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator: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}},input:function(e){var t=e.isDisabled,r=e.value,n=e.theme,i=n.spacing,o=n.colors;return nt({margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80,transform:r?"translateZ(0)":""},Kt)},loadingIndicator: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"}},loadingMessage:At,menu:function(e){var t,r=e.placement,n=e.theme,o=n.borderRadius,s=n.spacing,a=n.colors;return i(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),i(t,"backgroundColor",a.neutral0),i(t,"borderRadius",o),i(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),i(t,"marginBottom",s.menuGutter),i(t,"marginTop",s.menuGutter),i(t,"position","absolute"),i(t,"width","100%"),i(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,r=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:r,paddingTop:r,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal: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}},multiValue: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}},multiValueLabel: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||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"}},multiValueRemove: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:void 0,display:"flex",paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}}},noOptionsMessage:Pt,option:function(e){var t=e.isDisabled,r=e.isFocused,n=e.isSelected,i=e.theme,o=i.spacing,s=i.colors;return{label:"option",backgroundColor:n?s.primary:r?s.primary25:"transparent",color:t?s.neutral20:n?s.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?void 0:n?s.primary:s.primary50}}},placeholder:function(e){var t=e.theme,r=t.spacing;return{label:"placeholder",color:t.colors.neutral50,gridArea:"1 / 1 / 2 / 3",marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2}},singleValue:function(e){var t=e.isDisabled,r=e.theme,n=r.spacing,i=r.colors;return{label:"singleValue",color:t?i.neutral40:i.neutral80,gridArea:"1 / 1 / 2 / 3",marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},valueContainer:function(e){var t=e.theme.spacing,r=e.isMulti,n=e.hasValue,i=e.selectProps.controlShouldRenderValue;return{alignItems:"center",display:r&&n&&i?"flex":"grid",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var Lr,jr={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}},Vr={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:vt(),captureMenuScroll:!vt(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var r=nt({ignoreCase:!0,ignoreAccents:!0,stringify:wr,trim:!0,matchFrom:"any"},Lr),n=r.ignoreCase,i=r.ignoreAccents,o=r.stringify,s=r.trim,a=r.matchFrom,l=s?yr(t):t,c=s?yr(o(e)):o(e);return n&&(l=l.toLowerCase(),c=c.toLowerCase()),i&&(l=vr(l),c=br(c)),"start"===a?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:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),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};function Fr(e,t,r,n){return{type:"option",data:t,isDisabled:$r(e,t,r),isSelected:Gr(e,t,r),label:Ur(e,t),value:zr(e,t),index:n}}function qr(e,t){return e.options.map((function(r,n){if("options"in r){var i=r.options.map((function(r,n){return Fr(e,r,t,n)})).filter((function(t){return Hr(e,t)}));return i.length>0?{type:"group",data:r,options:i,index:n}:void 0}var o=Fr(e,r,t,n);return Hr(e,o)?o:void 0})).filter(St)}function Br(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,nr(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Hr(e,t){var r=e.inputValue,n=void 0===r?"":r,i=t.data,o=t.isSelected,s=t.label,a=t.value;return(!Zr(e)||!o)&&Wr(e,{label:s,value:a,data:i},n)}var Ur=function(e,t){return e.getOptionLabel(t)},zr=function(e,t){return e.getOptionValue(t)};function $r(e,t,r){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,r)}function Gr(e,t,r){if(r.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,r);var n=zr(e,t);return r.some((function(t){return zr(e,t)===n}))}function Wr(e,t,r){return!e.filterOption||e.filterOption(t,r)}var Zr=function(e){var t=e.hideSelectedOptions,r=e.isMulti;return void 0===t?r:t},Xr=1,Yr=function(e){Qe(r,e);var t=st(r);function r(e){var n;return Xe(this,r),(n=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},n.blockOptionHover=!1,n.isComposing=!1,n.commonProps=void 0,n.initialTouchX=0,n.initialTouchY=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.focus=n.focusInput,n.blur=n.blurInput,n.onChange=function(e,t){var r=n.props,i=r.onChange,o=r.name;t.name=o,n.ariaOnChange(e,t),i(e,t)},n.setValue=function(e,t,r){var i=n.props,o=i.closeMenuOnSelect,s=i.isMulti,a=i.inputValue;n.onInputChange("",{action:"set-value",prevInputValue:a}),o&&(n.setState({inputIsHiddenAfterUpdate:!s}),n.onMenuClose()),n.setState({clearFocusValueOnUpdate:!0}),n.onChange(e,{action:t,option:r})},n.selectOption=function(e){var t=n.props,r=t.blurInputOnSelect,i=t.isMulti,o=t.name,s=n.state.selectValue,a=i&&n.isOptionSelected(e,s),l=n.isOptionDisabled(e,s);if(a){var c=n.getOptionValue(e);n.setValue(s.filter((function(e){return n.getOptionValue(e)!==c})),"deselect-option",e)}else{if(l)return void n.ariaOnChange(e,{action:"select-option",option:e,name:o});i?n.setValue([].concat(nr(s),[e]),"select-option",e):n.setValue(e,"select-option")}r&&n.blurInput()},n.removeValue=function(e){var t=n.props.isMulti,r=n.state.selectValue,i=n.getOptionValue(e),o=r.filter((function(e){return n.getOptionValue(e)!==i})),s=Ct(t,o,o[0]||null);n.onChange(s,{action:"remove-value",removedValue:e}),n.focusInput()},n.clearValue=function(){var e=n.state.selectValue;n.onChange(Ct(n.props.isMulti,[],null),{action:"clear",removedValues:e})},n.popValue=function(){var e=n.props.isMulti,t=n.state.selectValue,r=t[t.length-1],i=t.slice(0,t.length-1),o=Ct(e,i,i[0]||null);n.onChange(o,{action:"pop-value",removedValue:r})},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 ut.apply(void 0,[n.props.classNamePrefix].concat(t))},n.getOptionLabel=function(e){return Ur(n.props,e)},n.getOptionValue=function(e){return zr(n.props,e)},n.getStyles=function(e,t){var r=Rr[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.getComponents=function(){return e=n.props,nt(nt({},tr),e.components);var e},n.buildCategorizedOptions=function(){return qr(n.props,n.state.selectValue)},n.getCategorizedOptions=function(){return n.props.menuIsOpen?n.buildCategorizedOptions():[]},n.buildFocusableOptions=function(){return Br(n.buildCategorizedOptions())},n.getFocusableOptions=function(){return n.props.menuIsOpen?n.buildFocusableOptions():[]},n.ariaOnChange=function(e,t){n.setState({ariaSelection:nt({value:e},t)})},n.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),n.focusInput())},n.onMenuMouseMove=function(e){n.blockOptionHover=!1},n.onControlMouseDown=function(e){if(!e.defaultPrevented){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.setState({inputIsHiddenAfterUpdate:!r}),n.onMenuClose()):n.openMenu("first"),e.preventDefault()}},n.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(n.clearValue(),e.preventDefault(),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&&ft(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=n.props.inputValue,r=e.currentTarget.value;n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange(r,{action:"input-change",prevInputValue:t}),n.props.menuIsOpen||n.onMenuOpen()},n.onInputFocus=function(e){n.props.onFocus&&n.props.onFocus(e),n.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1},n.onInputBlur=function(e){var t=n.props.inputValue;n.menuListRef&&n.menuListRef.contains(document.activeElement)?n.inputRef.focus():(n.props.onBlur&&n.props.onBlur(e),n.onInputChange("",{action:"input-blur",prevInputValue:t}),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(){return Zr(n.props)},n.onKeyDown=function(e){var t=n.props,r=t.isMulti,i=t.backspaceRemovesValue,o=t.escapeClearsValue,s=t.inputValue,a=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,p=t.tabSelectsValue,d=t.openMenuOnFocus,f=n.state,h=f.focusedOption,m=f.focusedValue,g=f.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(n.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||s)return;n.focusValue("previous");break;case"ArrowRight":if(!r||s)return;n.focusValue("next");break;case"Delete":case"Backspace":if(s)return;if(m)n.removeValue(m);else{if(!i)return;r?n.popValue():a&&n.clearValue()}break;case"Tab":if(n.isComposing)return;if(e.shiftKey||!c||!p||!h||d&&n.isOptionSelected(h,g))return;n.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(n.isComposing)return;n.selectOption(h);break}return;case"Escape":c?(n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange("",{action:"menu-close",prevInputValue:s}),n.onMenuClose()):a&&o&&n.clearValue();break;case" ":if(s)return;if(!c){n.openMenu("first");break}if(!h)return;n.selectOption(h);break;case"ArrowUp":c?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":c?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!c)return;n.focusOption("pageup");break;case"PageDown":if(!c)return;n.focusOption("pagedown");break;case"Home":if(!c)return;n.focusOption("first");break;case"End":if(!c)return;n.focusOption("last");break;default:return}e.preventDefault()}},n.instancePrefix="react-select-"+(n.props.instanceId||++Xr),n.state.selectValue=pt(e.value),n}return Je(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:"componentDidUpdate",value:function(e){var t,r,n,i,o,s=this.props,a=s.isDisabled,l=s.menuIsOpen,c=this.state.isFocused;(c&&!a&&e.isDisabled||c&&l&&!e.menuIsOpen)&&this.focusInput(),c&&a&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,r=this.focusedOptionRef,n=t.getBoundingClientRect(),i=r.getBoundingClientRect(),o=r.offsetHeight/3,i.bottom+o>n.bottom?mt(t,Math.min(r.offsetTop+r.clientHeight-t.offsetHeight+o,t.scrollHeight)):i.top-o<n.top&&mt(t,Math.max(r.offsetTop-o,0)),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(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),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.buildFocusableOptions(),s="first"===e?0:o.length-1;if(!this.props.isMulti){var a=o.indexOf(n[0]);a>-1&&(s=a)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[s]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,r=t.selectValue,n=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=r.indexOf(n);n||(i=-1);var o=r.length-1,s=-1;if(r.length){switch(e){case"previous":s=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i<o&&(s=i+1)}this.setState({inputIsHidden:-1!==s,focusedValue:r[s]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,r=this.state.focusedOption,n=this.getFocusableOptions();if(n.length){var i=0,o=n.indexOf(r);r||(o=-1),"up"===e?i=o>0?o-1:n.length-1:"down"===e?i=(o+1)%n.length:"pageup"===e?(i=o-t)<0&&(i=0):"pagedown"===e?(i=o+t)>n.length-1&&(i=n.length-1):"last"===e&&(i=n.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:n[i],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(jr):nt(nt({},jr),this.props.theme):jr}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,r=this.getStyles,n=this.getValue,i=this.selectOption,o=this.setValue,s=this.props,a=s.isMulti,l=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:r,getValue:n,hasValue:this.hasValue(),isMulti:a,isRtl:l,options:c,selectOption:i,selectProps:s,setValue:o,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().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 $r(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Gr(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Wr(this.props,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:"renderInput",value:function(){var e=this.props,t=e.isDisabled,r=e.isSearchable,n=e.inputId,i=e.inputValue,o=e.tabIndex,s=e.form,a=e.menuIsOpen,l=this.getComponents().Input,p=this.state,d=p.inputIsHidden,f=p.ariaSelection,h=this.commonProps,m=n||this.getElementId("input"),g=nt(nt(nt({"aria-autocomplete":"list","aria-expanded":a,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],role:"combobox"},a&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!r&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return r?u.createElement(l,c({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:o,form:s,type:"text",value:i},g)):u.createElement(Or,c({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:lt,onFocus:this.onInputFocus,disabled:t,tabIndex:o,inputMode:"none",form:s,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),r=t.MultiValue,n=t.MultiValueContainer,i=t.MultiValueLabel,o=t.MultiValueRemove,s=t.SingleValue,a=t.Placeholder,l=this.commonProps,p=this.props,d=p.controlShouldRenderValue,f=p.isDisabled,h=p.isMulti,m=p.inputValue,g=p.placeholder,b=this.state,v=b.selectValue,y=b.focusedValue,w=b.isFocused;if(!this.hasValue()||!d)return m?null:u.createElement(a,c({},l,{key:"placeholder",isDisabled:f,isFocused:w,innerProps:{id:this.getElementId("placeholder")}}),g);if(h)return v.map((function(t,s){var a=t===y,p="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return u.createElement(r,c({},l,{components:{Container:n,Label:i,Remove:o},isFocused:a,isDisabled:f,key:p,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(m)return null;var x=v[0];return u.createElement(s,c({},l,{data:x,isDisabled:f}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,r=this.props,n=r.isDisabled,i=r.isLoading,o=this.state.isFocused;if(!this.isClearable()||!e||n||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return u.createElement(e,c({},t,{innerProps:s,isFocused:o}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,r=this.props,n=r.isDisabled,i=r.isLoading,o=this.state.isFocused;if(!e||!i)return null;return u.createElement(e,c({},t,{innerProps:{"aria-hidden":"true"},isDisabled:n,isFocused:o}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,r=e.IndicatorSeparator;if(!t||!r)return null;var n=this.commonProps,i=this.props.isDisabled,o=this.state.isFocused;return u.createElement(r,c({},n,{isDisabled:i,isFocused:o}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,r=this.props.isDisabled,n=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return u.createElement(e,c({},t,{innerProps:i,isDisabled:r,isFocused:n}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),r=t.Group,n=t.GroupHeading,i=t.Menu,o=t.MenuList,s=t.MenuPortal,a=t.LoadingMessage,l=t.NoOptionsMessage,p=t.Option,d=this.commonProps,f=this.state.focusedOption,h=this.props,m=h.captureMenuScroll,g=h.inputValue,b=h.isLoading,v=h.loadingMessage,y=h.minMenuHeight,w=h.maxMenuHeight,x=h.menuIsOpen,O=h.menuPlacement,S=h.menuPosition,C=h.menuPortalTarget,_=h.menuShouldBlockScroll,k=h.menuShouldScrollIntoView,E=h.noOptionsMessage,T=h.onMenuScrollToTop,N=h.onMenuScrollToBottom;if(!x)return null;var P,A=function(t,r){var n=t.type,i=t.data,o=t.isDisabled,s=t.isSelected,a=t.label,l=t.value,h=f===i,m=o?void 0:function(){return e.onOptionHover(i)},g=o?void 0:function(){return e.selectOption(i)},b="".concat(e.getElementId("option"),"-").concat(r),v={id:b,onClick:g,onMouseMove:m,onMouseOver:m,tabIndex:-1};return u.createElement(p,c({},d,{innerProps:v,data:i,isDisabled:o,isSelected:s,key:b,label:a,type:n,value:l,isFocused:h,innerRef:h?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())P=this.getCategorizedOptions().map((function(t){if("group"===t.type){var i=t.data,o=t.options,s=t.index,a="".concat(e.getElementId("group"),"-").concat(s),l="".concat(a,"-heading");return u.createElement(r,c({},d,{key:a,data:i,options:o,Heading:n,headingProps:{id:l,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return A(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return A(t,"".concat(t.index))}));else if(b){var M=v({inputValue:g});if(null===M)return null;P=u.createElement(a,d,M)}else{var D=E({inputValue:g});if(null===D)return null;P=u.createElement(l,d,D)}var I={minMenuHeight:y,maxMenuHeight:w,menuPlacement:O,menuPosition:S,menuShouldScrollIntoView:k},R=u.createElement(Tt,c({},d,I),(function(t){var r=t.ref,n=t.placerProps,s=n.placement,a=n.maxHeight;return u.createElement(i,c({},d,I,{innerRef:r,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:b,placement:s}),u.createElement(Ir,{captureEnabled:m,onTopArrive:T,onBottomArrive:N,lockEnabled:_},(function(t){return u.createElement(o,c({},d,{innerRef:function(r){e.getMenuListRef(r),t(r)},isLoading:b,maxHeight:a,focusedOption:f}),P)})))}));return C||"fixed"===S?u.createElement(s,c({},d,{appendTo:C,controlElement:this.controlRef,menuPlacement:O,menuPosition:S}),R):R}},{key:"renderFormField",value:function(){var e=this,t=this.props,r=t.delimiter,n=t.isDisabled,i=t.isMulti,o=t.name,s=this.state.selectValue;if(o&&!n){if(i){if(r){var a=s.map((function(t){return e.getOptionValue(t)})).join(r);return u.createElement("input",{name:o,type:"hidden",value:a})}var l=s.length>0?s.map((function(t,r){return u.createElement("input",{key:"i-".concat(r),name:o,type:"hidden",value:e.getOptionValue(t)})})):u.createElement("input",{name:o,type:"hidden"});return u.createElement("div",null,l)}var c=s[0]?this.getOptionValue(s[0]):"";return u.createElement("input",{name:o,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,r=t.ariaSelection,n=t.focusedOption,i=t.focusedValue,o=t.isFocused,s=t.selectValue,a=this.getFocusableOptions();return u.createElement(ur,c({},e,{id:this.getElementId("live-region"),ariaSelection:r,focusedOption:n,focusedValue:i,isFocused:o,selectValue:s,focusableOptions:a}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,r=e.IndicatorsContainer,n=e.SelectContainer,i=e.ValueContainer,o=this.props,s=o.className,a=o.id,l=o.isDisabled,p=o.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return u.createElement(n,c({},f,{className:s,innerProps:{id:a,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:d}),this.renderLiveRegion(),u.createElement(t,c({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:d,menuIsOpen:p}),u.createElement(i,c({},f,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),u.createElement(r,c({},f,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=t.prevProps,n=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,o=t.ariaSelection,s=t.isFocused,a=t.prevWasFocused,l=e.options,c=e.value,u=e.menuIsOpen,p=e.inputValue,d=e.isMulti,f=pt(c),h={};if(r&&(c!==r.value||l!==r.options||u!==r.menuIsOpen||p!==r.inputValue)){var m=u?function(e,t){return Br(qr(e,t))}(e,f):[],g=n?function(e,t){var r=e.focusedValue,n=e.selectValue.indexOf(r);if(n>-1){if(t.indexOf(r)>-1)return r;if(n<t.length)return t[n]}return null}(t,f):null,b=function(e,t){var r=e.focusedOption;return r&&t.indexOf(r)>-1?r:t[0]}(t,m);h={selectValue:f,focusedOption:b,focusedValue:g,clearFocusValueOnUpdate:!1}}var v=null!=i&&e!==r?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},y=o,w=s&&a;return s&&!w&&(y={value:Ct(d,f,f[0]||null),options:f,action:"initial-input-focus"},w=!a),"initial-input-focus"===(null==o?void 0:o.action)&&(y=null),nt(nt(nt({},h),v),{},{prevProps:e,ariaSelection:y,prevWasFocused:w})}}]),r}(u.Component);Yr.defaultProps=Vr;var Jr=(0,u.forwardRef)((function(e,t){var r=function(e){var t=e.defaultInputValue,r=void 0===t?"":t,n=e.defaultMenuIsOpen,i=void 0!==n&&n,o=e.defaultValue,s=void 0===o?null:o,a=e.inputValue,l=e.menuIsOpen,c=e.onChange,p=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,h=e.value,m=$e(e,rr),g=Ze((0,u.useState)(void 0!==a?a:r),2),b=g[0],v=g[1],y=Ze((0,u.useState)(void 0!==l?l:i),2),w=y[0],x=y[1],O=Ze((0,u.useState)(void 0!==h?h:s),2),S=O[0],C=O[1],_=(0,u.useCallback)((function(e,t){"function"==typeof c&&c(e,t),C(e)}),[c]),k=(0,u.useCallback)((function(e,t){var r;"function"==typeof p&&(r=p(e,t)),v(void 0!==r?r:e)}),[p]),E=(0,u.useCallback)((function(){"function"==typeof f&&f(),x(!0)}),[f]),T=(0,u.useCallback)((function(){"function"==typeof d&&d(),x(!1)}),[d]),N=void 0!==a?a:b,P=void 0!==l?l:w,A=void 0!==h?h:S;return nt(nt({},m),{},{inputValue:N,menuIsOpen:P,onChange:_,onInputChange:k,onMenuClose:T,onMenuOpen:E,value:A})}(e);return u.createElement(Yr,c({ref:t},r))}));u.Component;const Kr=Jr,Qr=window.wp.i18n,en=window.wp.compose;var tn=r(5697),rn=r.n(tn),nn=r(4184),on=r.n(nn),sn="/Users/sclark3/Local Sites/test-pods-local/app/public/wp-content/plugins/pods/ui/js/blocks/src/components/CheckboxGroup/index.js",an=void 0,ln=function(e){var t=e.id,r=e.className,n=e.heading,i=e.help,o=e.options,s=e.values,a=e.onChange,c=function(e,t){var r=nr(s),n=r.findIndex((function(t){return t.value===e}));-1!==n?r[n].checked=t:r.push({value:e,checked:t}),a(r)};return React.createElement("fieldset",{className:on()("components-block-fields-checkbox-group",r),__self:an,__source:{fileName:sn,lineNumber:43,columnNumber:3}},n&&React.createElement("legend",{__self:an,__source:{fileName:sn,lineNumber:44,columnNumber:17}},n),o.map((function(e){var t=s.find((function(t){return t.value===e.value}))||!1;return React.createElement(l.CheckboxControl,{key:e.value,label:e.label,checked:t.checked||!1,onChange:function(t){return c(e.value,t)},__self:an,__source:{fileName:sn,lineNumber:50,columnNumber:6}})})),!!i&&React.createElement("p",{id:t+"__help",className:"components-block-fields-checkbox-group__help",__self:an,__source:{fileName:sn,lineNumber:60,columnNumber:5}},i))};ln.propTypes={id:rn().string,className:rn().string,heading:rn().string,help:rn().string,options:rn().arrayOf(rn().shape({label:rn().string.isRequired,value:rn().string.isRequired})),values:rn().arrayOf(rn().shape({value:rn().string.isRequired,checked:rn().bool})),onChange:rn().func.isRequired},ln.defaultProps={id:"",className:null,heading:null,help:null,options:[],values:[]};const cn=ln;var un="/Users/sclark3/Local Sites/test-pods-local/app/public/wp-content/plugins/pods/ui/js/blocks/src/components/CheckboxControlExtended/index.js",pn=void 0,dn=function(e){var t=e.className,r=e.heading,n=e.label,i=e.help,o=e.checked,s=e.onChange;return React.createElement("fieldset",{className:on()("components-block-fields-checkbox-control",t),__self:pn,__source:{fileName:un,lineNumber:23,columnNumber:3}},r&&React.createElement("legend",{__self:pn,__source:{fileName:un,lineNumber:24,columnNumber:17}},r),React.createElement(l.CheckboxControl,{label:n,help:i,checked:o,onChange:s,__self:pn,__source:{fileName:un,lineNumber:25,columnNumber:4}}))};dn.propTypes={className:rn().string,heading:rn().string,label:rn().string,help:rn().string,checked:rn().bool,onChange:rn().func.isRequired},dn.defaultProps={className:null,heading:null,label:null,help:null,checked:!1};const fn=dn,hn=window.lodash,mn=window.wp.keycodes;var gn=["className","isShiftStepEnabled","max","min","onChange","onKeyDown","shiftStep","step"];function bn(e){var t=e.className,r=e.isShiftStepEnabled,n=void 0===r||r,i=e.max,o=void 0===i?1/0:i,s=e.min,a=void 0===s?-1/0:s,l=e.onChange,u=void 0===l?hn.noop:l,p=e.onKeyDown,d=void 0===p?hn.noop:p,f=e.shiftStep,h=void 0===f?10:f,m=e.step,g=void 0===m?1:m,b=$e(e,gn),v=(0,hn.clamp)(0,a,o),y=on()("component-number-control",t);return React.createElement("input",c({inputMode:"numeric"},b,{className:y,type:"number",onChange:function(e){u(e.target.value,{event:e})},onKeyDown:function(e){d(e);var t=e.target.value,r=""===t,i=e.shiftKey&&n?parseFloat(h):parseFloat(g),s=r?v:t;switch(s=parseFloat(s),e.keyCode){case mn.UP:e.preventDefault(),s+=i,s=(0,hn.clamp)(s,a,o),u(s.toString(),{event:e});break;case mn.DOWN:e.preventDefault(),s-=i,s=(0,hn.clamp)(s,a,o),u(s.toString(),{event:e})}},__self:this,__source:{fileName:"/Users/sclark3/Local Sites/test-pods-local/app/public/wp-content/plugins/pods/ui/js/blocks/src/components/NumberControl/index.js",lineNumber:70,columnNumber:3}}))}var vn="/Users/sclark3/Local Sites/test-pods-local/app/public/wp-content/plugins/pods/ui/js/blocks/src/blocks/components/RenderedField.js",yn=void 0;function wn(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 xn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wn(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const On=function(e){var t=e.field,r=e.attributes,n=e.setAttributes,o=t.name,s=t.type,c=t.fieldOptions,u=void 0===c?{}:c,p=r[o],d=function(e,t,r){return function(n){t(i({},e,"NumberControl"===r?parseInt(n,10):n))}}(o,n,s);switch(s){case"TextControl":var f=u.fieldType,h=void 0===f?"text":f,m=u.help,g=u.label;return React.createElement(l.TextControl,{key:o,label:g,value:p,type:h,help:m,onChange:d,__self:yn,__source:{fileName:vn,lineNumber:83,columnNumber:5}});case"TextareaControl":var b=u.help,v=u.label;return React.createElement(l.TextareaControl,{key:o,label:v,value:p,help:b,rows:"4",onChange:d,__self:yn,__source:{fileName:vn,lineNumber:100,columnNumber:5}});case"RichText":var y=u.tagName,w=void 0===y?"p":y;return React.createElement(a.RichText,{key:o,tagName:w,value:p,onChange:d,__self:yn,__source:{fileName:vn,lineNumber:114,columnNumber:5}});case"CheckboxControl":var x=u.label,O=u.help,S=u.heading,C=void 0===S?"":S;return React.createElement(fn,{key:o,heading:C,label:x,help:O,checked:p,onChange:d,__self:yn,__source:{fileName:vn,lineNumber:130,columnNumber:5}});case"CheckboxGroup":var _=u.help,k=u.options,E=u.heading,T=void 0===E?"":E;return React.createElement(cn,{key:o,heading:T,help:_,options:k,values:p,onChange:d,__self:yn,__source:{fileName:vn,lineNumber:148,columnNumber:5}});case"RadioControl":var N=u.help,P=u.options;return React.createElement(l.RadioControl,{key:o,help:N,options:P,selected:p,onChange:d,__self:yn,__source:{fileName:vn,lineNumber:165,columnNumber:5}});case"SelectControl":var A=u.options,M=u.multiple,D=u.label,I=(0,en.useInstanceId)(Kr),R="inspector-select-control-".concat(I);return React.createElement(l.BaseControl,{label:D,id:R,key:o,className:"full-width-base-control",__self:yn,__source:{fileName:vn,lineNumber:185,columnNumber:5}},React.createElement(Kr,{id:R,name:o,options:A,value:p,isMulti:M,onChange:d,styles:{container:function(e){return xn(xn({},e),{},{width:"100%"})}},__self:yn,__source:{fileName:vn,lineNumber:191,columnNumber:6}}));case"DateTimePicker":var L=u.is12Hour,j=u.label;return React.createElement(l.BaseControl,{label:j,key:o,__self:yn,__source:{fileName:vn,lineNumber:215,columnNumber:5}},React.createElement(l.DateTimePicker,{currentDate:p,onChange:d,is12Hour:L,__self:yn,__source:{fileName:vn,lineNumber:219,columnNumber:6}}));case"NumberControl":var V=u.isShiftStepEnabled,F=u.shiftStep,q=u.label,B=u.max,H=void 0===B?1/0:B,U=u.min,z=void 0===U?-1/0:U,$=u.step,G=void 0===$?1:$,W=(0,en.useInstanceId)(bn),Z="inspector-number-control-".concat(W);return React.createElement(l.BaseControl,{label:q,id:Z,key:o,__self:yn,__source:{fileName:vn,lineNumber:241,columnNumber:5}},React.createElement(bn,{id:Z,onChange:d,isShiftStepEnabled:V,shiftStep:F,max:H,min:z,step:G,value:p||"",__self:yn,__source:{fileName:vn,lineNumber:246,columnNumber:6}}));case"MediaUpload":return React.createElement("div",{__self:yn,__source:{fileName:vn,lineNumber:263,columnNumber:5}},React.createElement(a.MediaUploadCheck,{__self:yn,__source:{fileName:vn,lineNumber:264,columnNumber:6}},React.createElement(a.MediaUpload,{onSelect:function(e){d({id:e.id,url:e.url,title:e.title})},allowedTypes:["image"],value:p,render:function(e){var t=e.open;return React.createElement(l.Button,{onClick:t,isPrimary:!0,__self:yn,__source:{fileName:vn,lineNumber:272,columnNumber:9}},(0,Qr.__)("Upload"))},__self:yn,__source:{fileName:vn,lineNumber:265,columnNumber:7}})),!!p&&React.createElement(l.Button,{onClick:function(){return d(null)},isSecondary:!0,__self:yn,__source:{fileName:vn,lineNumber:279,columnNumber:7}},(0,Qr.__)("Remove Upload")),p&&!!p.title&&React.createElement("div",{__self:yn,__source:{fileName:vn,lineNumber:287,columnNumber:7}},p.title));case"ColorPicker":return React.createElement(l.ColorPicker,{color:p,onChangeComplete:function(e){return d(e.hex)},disableAlpha:!0,__self:yn,__source:{fileName:vn,lineNumber:296,columnNumber:5}});default:return null}};var Sn="/Users/sclark3/Local Sites/test-pods-local/app/public/wp-content/plugins/pods/ui/js/blocks/src/blocks/components/FieldInspectorControls.js",Cn=void 0;const _n=function(e){var t=e.fields,r=void 0===t?[]:t,n=e.attributes,i=e.setAttributes;return r.length?React.createElement("div",{className:"pods-inspector-rows",__self:Cn,__source:{fileName:Sn,lineNumber:29,columnNumber:3}},r.map((function(e){var t=e.name;return React.createElement(l.PanelRow,{key:t,className:"pods-inspector-row",__self:Cn,__source:{fileName:Sn,lineNumber:36,columnNumber:6}},React.createElement(On,{field:e,attributes:n,setAttributes:i,__self:Cn,__source:{fileName:Sn,lineNumber:37,columnNumber:7}}))}))):null};var kn=r(1036),En=r.n(kn);const Tn=window.wp.autop,Nn=window.wp.date,Pn=window.wp.serverSideRender;var An=r.n(Pn);function Mn(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Dn(e){return Dn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Dn(e)}const In=window.wp.element,Rn=window.wp.apiFetch;var Ln=r.n(Rn);const jn=window.wp.url;var Vn="/Users/sclark3/Local Sites/test-pods-local/app/public/wp-content/plugins/pods/ui/js/blocks/src/blocks/components/PodsServerSideRender.js",Fn=void 0;function qn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Dn(e);if(t){var i=Dn(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Mn(this,r)}}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 Hn(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){i(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 Un=function(e){Qe(r,e);var t=qn(r);function r(e){var n;return Xe(this,r),(n=t.call(this,e)).state={response:null},n}return Je(r,[{key:"componentDidMount",value:function(){this.isStillMounted=!0,this.fetch(this.props),this.fetch=(0,hn.debounce)(this.fetch,500)}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"componentDidUpdate",value:function(e){(0,hn.isEqual)(e,this.props)||this.fetch(this.props)}},{key:"fetch",value:function(e){var t=this;if(this.isStillMounted){null!==this.state.response&&this.setState({response:null});var r=e.block,n=e.attributes,i=void 0===n?null:n,o=e.httpMethod,s=void 0===o?"GET":o,a=e.urlQueryArgs,l="POST"===s,c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,jn.addQueryArgs)("/wp/v2/block-renderer/".concat(e),Hn(Hn({context:"edit"},null!==t?{attributes:t}:{}),r))}(r,l?null:i,void 0===a?{}:a),u=l?{attributes:i}:null,p=this.currentFetchRequest=Ln()({path:c,data:u,method:l?"POST":"GET"}).then((function(e){t.isStillMounted&&p===t.currentFetchRequest&&e&&t.setState({response:e.rendered})})).catch((function(e){t.isStillMounted&&p===t.currentFetchRequest&&t.setState({response:{error:!0,errorMsg:e.message}})}));return p}}},{key:"render",value:function(){var e=this,t=this.state.response,r=this.props,n=r.className,i=r.EmptyResponsePlaceholder,o=r.ErrorResponsePlaceholder,l=r.LoadingResponsePlaceholder;return""===t?React.createElement(i,c({response:t},this.props,{__self:this,__source:{fileName:Vn,lineNumber:117,columnNumber:11}})):t?t.error?React.createElement(o,c({response:t},this.props,{__self:this,__source:{fileName:Vn,lineNumber:126,columnNumber:5}})):s(t,{replace:function(t){if("innerblocks"===t.name)return void 0!==t.attribs.template&&(t.attribs.template=JSON.parse(t.attribs.template)),void 0!==t.attribs.allowedBlocks&&(t.attribs.allowedBlocks=JSON.parse(t.attribs.allowedBlocks)),void 0!==t.attribs.templateLock&&"false"===t.attribs.templateLock&&(t.attribs.templateLock=!1),React.createElement(a.InnerBlocks,c({className:n},t.attribs,{__self:e,__source:{fileName:Vn,lineNumber:144,columnNumber:13}}))}}):React.createElement(l,c({response:t},this.props,{__self:this,__source:{fileName:Vn,lineNumber:121,columnNumber:5}}))}}]),r}(In.Component);Un.defaultProps={EmptyResponsePlaceholder:function(e){var t=e.className;return React.createElement(l.Placeholder,{className:t,__self:Fn,__source:{fileName:Vn,lineNumber:153,columnNumber:3}},(0,Qr.__)("Block rendered as empty."))},ErrorResponsePlaceholder:function(e){var t=e.response,r=e.className,n=(0,Qr.sprintf)((0,Qr.__)("Error loading block: %s"),t.errorMsg);return React.createElement(l.Placeholder,{className:r,__self:Fn,__source:{fileName:Vn,lineNumber:163,columnNumber:10}},n)},LoadingResponsePlaceholder:function(e){var t=e.className;return React.createElement(l.Placeholder,{className:t,__self:Fn,__source:{fileName:Vn,lineNumber:167,columnNumber:4}},React.createElement(l.Spinner,{__self:Fn,__source:{fileName:Vn,lineNumber:168,columnNumber:5}}))}};const zn=Un;var $n={allowedTags:["blockquote","caption","div","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","li","ol","p","pre","section","table","tbody","td","th","thead","tr","ul","a","abbr","acronym","audio","b","bdi","bdo","big","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","label","map","mark","meter","noscript","object","output","picture","progress","q","ruby","s","samp","select","slot","small","span","strong","sub","sup","svg","template","textarea","time","u","tt","var","video","wbr"],allowedAttributes:{"*":["class","id","data-*","style"],iframe:["*"],a:["href","name","target"],img:["src","srcset","sizes","alt","width","height"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto"],allowedSchemesByTag:{},allowProtocolRelative:!0},Gn={allowedTags:[],allowedAttributes:{}};function Wn(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 Zn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Wn(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Xn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o=En()(e,$n),a=[];return t.forEach((function(e){var t="function"==typeof i?n(e,r,i):n(e,r);t&&(a[e.name]=Zn({},t.props));var s=t?(0,In.renderToString)(t):"";o=o.replace(new RegExp("{@".concat(e.name,"}"),"g"),s)})),s(o)};var Yn="/Users/sclark3/Local Sites/test-pods-local/app/public/wp-content/plugins/pods/ui/js/blocks/src/blocks/components/BlockPreview.js",Jn=void 0,Kn=function(e,t){var r=e.name,n=e.fieldOptions,i=e.type,o=t[r];if(void 0===o)return null;switch(i){case"TextControl":return React.createElement("div",{key:r,className:"field--textcontrol",__self:Jn,__source:{fileName:Yn,lineNumber:51,columnNumber:5}},En()(o,Gn));case"TextareaControl":var s=n.auto_p,l=En()(o,Gn);return React.createElement("div",{key:r,className:"field--textareacontrol",dangerouslySetInnerHTML:{__html:s?(0,Tn.autop)(l):l},__self:Jn,__source:{fileName:Yn,lineNumber:64,columnNumber:5}});case"RichText":return React.createElement(a.RichText.Content,{key:r,tagName:"p",value:o,className:"field--richtext",__self:Jn,__source:{fileName:Yn,lineNumber:75,columnNumber:5}});case"CheckboxControl":return React.createElement("div",{key:r,className:"field--checkbox",__self:Jn,__source:{fileName:Yn,lineNumber:85,columnNumber:5}},o?(0,Qr.__)("Yes"):(0,Qr.__)("No"));case"CheckboxGroup":var c=n.options,u=Array.isArray(o)?o.filter((function(e){return!!e.checked})):[];return React.createElement("div",{key:r,className:"field--checkbox-group",__self:Jn,__source:{fileName:Yn,lineNumber:100,columnNumber:5}},u.length?u.map((function(e,t){var r=c.find((function(t){return e.value===t.value}));return React.createElement("span",{className:"field--checkbox-group__item",key:e.value,__self:Jn,__source:{fileName:Yn,lineNumber:106,columnNumber:9}},r.label,t<u.length-1?", ":"")})):"N/A");case"RadioControl":var p=n.options.find((function(e){return o===e.value}));return React.createElement("div",{key:r,className:"field--radio-control",__self:Jn,__source:{fileName:Yn,lineNumber:125,columnNumber:5}},p?p.label:"N/A");case"SelectControl":if(!Array.isArray(o))return React.createElement("div",{key:r,className:"field--select-control",__self:Jn,__source:{fileName:Yn,lineNumber:134,columnNumber:6}},o.label||"N/A");var d=o;return React.createElement("div",{key:r,className:"field--select-control field--multiple-select-control",__self:Jn,__source:{fileName:Yn,lineNumber:142,columnNumber:5}},d.length?d.map((function(e,t){return React.createElement("span",{className:"field--select-group__item",key:e,__self:Jn,__source:{fileName:Yn,lineNumber:146,columnNumber:9}},e.label,t<d.length-1?", ":"")})):"N/A");case"DateTimePicker":var f=(0,Nn.__experimentalGetSettings)().formats.datetime;return React.createElement("div",{key:r,className:"field--date-time",__self:Jn,__source:{fileName:Yn,lineNumber:163,columnNumber:5}},React.createElement("time",{dateTime:(0,Nn.format)("c",o),__self:Jn,__source:{fileName:Yn,lineNumber:164,columnNumber:6}},(0,Nn.dateI18n)(f,o)));case"NumberControl":var h=(0,Nn.__experimentalGetSettings)().l10n.locale;return h=h.replace("_","-"),React.createElement("div",{key:r,className:"field--number",__self:Jn,__source:{fileName:Yn,lineNumber:178,columnNumber:5}},!!o&&o.toLocaleString(h));case"MediaUpload":return React.createElement("div",{key:r,className:"field--media-upload",__self:Jn,__source:{fileName:Yn,lineNumber:185,columnNumber:5}},o&&o.url||"N/A");case"ColorPicker":return React.createElement("div",{key:r,className:"field--color",style:{color:o},__self:Jn,__source:{fileName:Yn,lineNumber:192,columnNumber:5}},o);default:return null}};const Qn=function(e){var t=e.block,r=e.attributes,n=void 0===r?{}:r,i=e.context,o=void 0===i?{}:i,s=t.blockName,a=t.fields,l=void 0===a?[]:a,c=t.renderTemplate,u=t.renderType,p=t.supports,d=void 0===p?{jsx:!1}:p,f=t.usesContext;if("php"===u){var h={podsContext:{}};return(void 0===f?[]:f).forEach((function(e){var t;h.podsContext[e]=null!==(t=o[e])&&void 0!==t?t:null})),!0===d.jsx?React.createElement(zn,{block:s,attributes:n,urlQueryArgs:h,__self:Jn,__source:{fileName:Yn,lineNumber:234,columnNumber:5}}):React.createElement(An(),{block:s,attributes:n,urlQueryArgs:h,__self:Jn,__source:{fileName:Yn,lineNumber:243,columnNumber:4}})}return React.createElement(React.Fragment,null,Xn(c,l,n,Kn,o))};var ei="/Users/sclark3/Local Sites/test-pods-local/app/public/wp-content/plugins/pods/ui/js/blocks/src/blocks/createBlockEditComponent.js",ti=void 0;const ri=function(e){return function(t){var r=e.fields,n=void 0===r?[]:r,i=e.blockName,o=e.blockGroupLabel,s=t.className,c=t.attributes,u=void 0===c?{}:c,p=t.setAttributes,d=t.context,f=void 0===d?{}:d;return React.createElement("div",{className:s,__self:ti,__source:{fileName:ei,lineNumber:35,columnNumber:3}},React.createElement(a.InspectorControls,{__self:ti,__source:{fileName:ei,lineNumber:36,columnNumber:4}},React.createElement(l.PanelBody,{title:o,key:i,__self:ti,__source:{fileName:ei,lineNumber:37,columnNumber:5}},React.createElement(_n,{fields:n,attributes:u,setAttributes:p,__self:ti,__source:{fileName:ei,lineNumber:41,columnNumber:6}}))),React.createElement(Qn,{block:e,attributes:u,context:f,__self:ti,__source:{fileName:ei,lineNumber:48,columnNumber:4}}))}};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 ii(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){i(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}const oi=function(e){return e.reduce((function(e,t){if(!t.name)return e;var r=t.name,n=t.attributeOptions;return ii(ii({},e),{},i({},r,ii(ii({},n),{},{type:n.type||"string"})))}),{})};var si="/Users/sclark3/Local Sites/test-pods-local/app/public/wp-content/plugins/pods/ui/js/blocks/src/blocks/index.js",ai=void 0;function li(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 ci(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?li(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):li(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const ui=function(t){var r=t.blockName,i=t.fields,o=t.icon;o="pods"===o?React.createElement("svg",{width:"366",height:"364",viewBox:"0 0 366 364",fill:"none",xmlns:"http://www.w3.org/2000/svg",__self:ai,__source:{fileName:si,lineNumber:29,columnNumber:4}},React.createElement("mask",{id:"mask0","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"20",y:"20",width:"323",height:"323",__self:ai,__source:{fileName:si,lineNumber:29,columnNumber:103}},React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.9831 181.536C20.9831 270.512 93.6969 342.643 183.391 342.643V342.643C249.369 342.643 306.158 303.616 331.578 247.565V247.565C324.498 226.102 318.371 188.341 342.809 150.596V150.596C341.764 145.264 340.453 140.028 338.892 134.9V134.9C263.955 208.73 203.453 215.645 157.9 214.441V214.441C157.479 214.428 155.947 214.182 155.54 213.271V213.271C155.54 213.271 154.876 210.318 156.817 210.318V210.318C244.089 210.318 293.793 159.374 334.401 122.125V122.125C332.186 116.587 329.669 111.202 326.872 105.984V105.984C283.096 94.0368 266.274 58.4662 260.302 39.603V39.603C237.409 27.369 211.218 20.4269 183.391 20.4269V20.4269C93.6969 20.4269 20.9831 92.5574 20.9831 181.536V181.536ZM227.603 68.9767C227.603 68.9767 289.605 62.283 307.865 138.292V138.292C240.112 133.656 227.603 68.9767 227.603 68.9767V68.9767ZM202.795 100.959C202.795 100.959 257.765 99.1382 270.278 167.335V167.335C210.771 158.793 202.795 100.959 202.795 100.959V100.959ZM172.601 128.062C172.601 128.062 222.07 124.859 234.729 185.925V185.925C180.956 179.926 172.601 128.062 172.601 128.062V128.062ZM307.865 138.292C307.936 138.296 308 138.3 308.07 138.306V138.306L307.921 138.528C307.903 138.449 307.884 138.37 307.865 138.292V138.292ZM146.277 149.601C146.277 149.601 189.744 146.781 200.869 200.439V200.439C153.619 195.171 146.277 149.601 146.277 149.601V149.601ZM111.451 154.862C111.451 154.862 153.207 152.159 163.891 203.7V203.7C118.507 198.639 111.451 154.862 111.451 154.862V154.862ZM76.9799 157.234C76.9799 157.234 114.875 154.782 124.574 201.557V201.557C83.3817 196.962 76.9799 157.234 76.9799 157.234V157.234ZM39.5 164.081C39.5 164.081 71.2916 155.788 84.9886 193.798V193.798C83.4985 193.918 82.0535 193.976 80.6516 193.976V193.976C48.7552 193.975 39.5 164.081 39.5 164.081V164.081ZM310.084 167.245C310.06 167.175 310.035 167.102 310.013 167.033V167.033L310.233 167.093C310.184 167.143 310.134 167.194 310.084 167.245V167.245C333.75 238.013 291.599 276.531 291.599 276.531V276.531C291.599 276.531 261.982 216.144 310.084 167.245V167.245ZM270.278 167.335C270.337 167.343 270.396 167.351 270.455 167.36V167.36L270.317 167.544C270.305 167.473 270.293 167.406 270.278 167.335V167.335ZM234.729 185.925C234.782 185.931 234.838 185.937 234.89 185.943V185.943L234.769 186.111C234.756 186.046 234.744 185.988 234.729 185.925V185.925ZM275.24 192.061C275.232 191.992 275.224 191.919 275.218 191.849V191.849L275.405 191.966C275.35 191.999 275.296 192.03 275.24 192.061V192.061C282.645 263.228 236.486 286.583 236.486 286.583V286.583C236.486 286.583 221.57 223.215 275.24 192.061V192.061ZM85.0914 193.789L85.0296 193.912C85.0164 193.873 85.0009 193.834 84.9888 193.798V193.798C85.023 193.795 85.0572 193.792 85.0914 193.789V193.789ZM200.869 200.439C200.916 200.443 200.96 200.449 201.007 200.453V200.453L200.903 200.605C200.891 200.549 200.88 200.494 200.869 200.439V200.439ZM124.574 201.557C124.615 201.563 124.658 201.567 124.699 201.572V201.572L124.604 201.7C124.594 201.651 124.585 201.605 124.574 201.557V201.557ZM68.5101 213.185C68.5101 213.185 95.2467 187.93 129.068 216.089V216.089C118.738 224.846 108.962 227.859 100.399 227.859V227.859C81.5012 227.859 68.5101 213.185 68.5101 213.185V213.185ZM163.892 203.7C163.937 203.704 163.982 203.71 164.027 203.714V203.714L163.926 203.862C163.915 203.809 163.903 203.753 163.892 203.7V203.7ZM234.165 211.88C234.166 211.817 234.166 211.751 234.168 211.688V211.688L234.322 211.818C234.269 211.839 234.218 211.859 234.165 211.88V211.88C233.531 275.684 190.467 289.79 190.467 289.79V289.79C190.467 289.79 183.695 231.809 234.165 211.88V211.88ZM129.165 216.006V216.17C129.132 216.143 129.1 216.117 129.068 216.089V216.089C129.099 216.061 129.132 216.034 129.165 216.006V216.006ZM107.192 250.617C107.192 250.617 121.444 213.844 162.374 221.007V221.007C150.672 247.473 132.265 252.505 119.969 252.505V252.505C112.432 252.505 107.192 250.617 107.192 250.617V250.617ZM162.431 220.877L162.492 221.028C162.452 221.021 162.414 221.014 162.374 221.007V221.007C162.394 220.963 162.412 220.921 162.431 220.877V220.877ZM196.004 223.125C196.014 223.072 196.024 223.016 196.034 222.962V222.962L196.15 223.104C196.101 223.111 196.053 223.119 196.004 223.125V223.125C186.212 277.983 147.054 281.435 147.054 281.435V281.435C147.054 281.435 149.621 230.095 196.004 223.125V223.125Z",fill:"white",__self:ai,__source:{fileName:si,lineNumber:29,columnNumber:204}})),React.createElement("g",{mask:"url(#mask0)",__self:ai,__source:{fileName:si,lineNumber:29,columnNumber:4543}},React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.95319 9.48413H353.838V353.586H9.95319V9.48413Z",fill:"#95BF3B",__self:ai,__source:{fileName:si,lineNumber:29,columnNumber:4565}})),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M182.999 11.2219C88.3278 11.2219 11.3101 87.6245 11.3101 181.535C11.3101 275.448 88.3278 351.85 182.999 351.85C277.67 351.85 354.69 275.448 354.69 181.535C354.69 87.6245 277.67 11.2219 182.999 11.2219M182.999 363.071C82.0925 363.071 0 281.633 0 181.535C0 81.4362 82.0925 0 182.999 0C283.905 0 366 81.4362 366 181.535C366 281.633 283.905 363.071 182.999 363.071",fill:"#95BF3B",__self:ai,__source:{fileName:si,lineNumber:29,columnNumber:4684}})):s(o);var a=ci({},t);delete a.blockName,delete a.fields,delete a.renderType;if(a.attributes=oi(i),a.transforms&&a.transforms.from&&[]!==a.transforms.from){var l=[];a.transforms.from.forEach((function(e){if("shortcode"===e.type){var t=a.attributes;if(e.attributes=function(e,t){var r,i=null!==(r=e.attributes)&&void 0!==r?r:null;if(!i)return{};var o=Object.keys(i),s={};return o.forEach((function(e){var r,o=i[e];if("shortcode"===(null!==(r=o.source)&&void 0!==r?r:"")){var a,l,c,u;delete o.source;var p=null!==(a=null!==(l=o.selector)&&void 0!==l?l:o.attribute)&&void 0!==a?a:null,d=null!==(c=o.type)&&void 0!==c?c:"string",f=null!==(u=o.attribute)&&void 0!==u?u:e;if(!p)return;null!=o&&o.selector&&delete o.selector,o.shortcode=function(e,r){var i,s,a,l,c=e.named,u=r.shortcode,h=null!==(i=c[p])&&void 0!==i?i:null,m=null!==(s=t[f])&&void 0!==s?s:null,g=null!==(a=null==m?void 0:m.default)&&void 0!==a?a:null,b=null!==(l=u.content)&&void 0!==l?l:"";return null===h&&(h=g),"boolean"===d?null!==h&&("true"===h||!0===h||"1"===h||1===h||"yes"===h||"on"===h):"object"===d?null===h?{label:"",value:""}:"object"===n(h)?h:{label:h=h.toString(),value:h}:"array"===d?null===h?[]:Array.isArray(h)?h:h.split(","):"string"===d?null===h?"":h.toString():"integer"===d||"number"===d?null===h?0:parseInt(h):"string_integer"===d?(o.type="string",null===h?"0":parseInt(h).toString()):"content"===d?(o.type="string",""!==b?b.toString():null===h?"":h.toString()):h}}s[e]=o})),s}(e,t),(null==e||!e.isMatch)&&null!=e&&e.isMatchConfig){var r=e.isMatchConfig;delete e.isMatchConfig,e.isMatch=function(e){var t=e.named;return function(e,t){if(!e||!Array.isArray(e))return!0;var r=!0;return e.forEach((function(e){var n,i=null!==(n=t[e.name])&&void 0!==n?n:null;(null!=e&&e.required&&!i||null!=e&&e.excluded&&null!=i)&&(r=!1)})),r}(r,t)}}l.push(e)}else l.push(e)})),a.transforms.from=l}else delete a.transforms;(0,e.registerBlockType)(r,ci(ci({},a),{},{apiVersion:1,edit:ri(t),icon:o,save:function(){return null}}))};var pi=r(3379),di=r.n(pi),fi=r(7795),hi=r.n(fi),mi=r(569),gi=r.n(mi),bi=r(3565),vi=r.n(bi),yi=r(9216),wi=r.n(yi),xi=r(4589),Oi=r.n(xi),Si=r(5264),Ci={};Ci.styleTagTransform=Oi(),Ci.setAttributes=vi(),Ci.insert=gi().bind(null,"head"),Ci.domAPI=hi(),Ci.insertStyleElement=wi();di()(Si.Z,Ci);Si.Z&&Si.Z.locals&&Si.Z.locals;window.podsBlocksConfig.collections.forEach(t),window.podsBlocksConfig.blocks.forEach(ui)})()})();
ui/js/dfv/pods-dfv.min.asset.json CHANGED
@@ -1 +1 @@
1
- {"dependencies":["lodash","moment","react","react-dom","wp-api-fetch","wp-autop","wp-components","wp-compose","wp-data","wp-element","wp-hooks","wp-i18n","wp-keycodes","wp-plugins","wp-polyfill","wp-primitives","wp-url"],"version":"764c682388c7e2f2f26a"}
1
+ {"dependencies":["lodash","moment","react","react-dom","wp-api-fetch","wp-autop","wp-components","wp-compose","wp-data","wp-element","wp-hooks","wp-i18n","wp-keycodes","wp-plugins","wp-polyfill","wp-primitives","wp-url"],"version":"4969a4ce07ceca97538c"}
ui/js/dfv/pods-dfv.min.js CHANGED
@@ -1 +1 @@
1
- (()=>{var e={4184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var s=i.apply(null,n);s&&e.push(s)}}else if("object"===o)if(n.toString===Object.prototype.toString)for(var a in n)r.call(n,a)&&n[a]&&e.push(a);else e.push(n.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},1689:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(8081),i=n.n(r),o=n(3645),s=n.n(o)()(i());s.push([e.id,"/*!\n * https://github.com/arqex/react-datetime\n */\n\n.rdt {\n position: relative;\n}\n.rdtPicker {\n display: none;\n position: absolute;\n min-width: 250px;\n padding: 4px;\n margin-top: 1px;\n z-index: 99999 !important;\n background: #fff;\n box-shadow: 0 1px 3px rgba(0,0,0,.1);\n border: 1px solid #f9f9f9;\n}\n.rdtOpen .rdtPicker {\n display: block;\n}\n.rdtStatic .rdtPicker {\n box-shadow: none;\n position: static;\n}\n\n.rdtPicker .rdtTimeToggle {\n text-align: center;\n}\n\n.rdtPicker table {\n width: 100%;\n margin: 0;\n}\n.rdtPicker td,\n.rdtPicker th {\n text-align: center;\n height: 28px;\n}\n.rdtPicker td {\n cursor: pointer;\n}\n.rdtPicker td.rdtDay:hover,\n.rdtPicker td.rdtHour:hover,\n.rdtPicker td.rdtMinute:hover,\n.rdtPicker td.rdtSecond:hover,\n.rdtPicker .rdtTimeToggle:hover {\n background: #eeeeee;\n cursor: pointer;\n}\n.rdtPicker td.rdtOld,\n.rdtPicker td.rdtNew {\n color: #999999;\n}\n.rdtPicker td.rdtToday {\n position: relative;\n}\n.rdtPicker td.rdtToday:before {\n content: '';\n display: inline-block;\n border-left: 7px solid transparent;\n border-bottom: 7px solid #428bca;\n border-top-color: rgba(0, 0, 0, 0.2);\n position: absolute;\n bottom: 4px;\n right: 4px;\n}\n.rdtPicker td.rdtActive,\n.rdtPicker td.rdtActive:hover {\n background-color: #428bca;\n color: #fff;\n text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);\n}\n.rdtPicker td.rdtActive.rdtToday:before {\n border-bottom-color: #fff;\n}\n.rdtPicker td.rdtDisabled,\n.rdtPicker td.rdtDisabled:hover {\n background: none;\n color: #999999;\n cursor: not-allowed;\n}\n\n.rdtPicker td span.rdtOld {\n color: #999999;\n}\n.rdtPicker td span.rdtDisabled,\n.rdtPicker td span.rdtDisabled:hover {\n background: none;\n color: #999999;\n cursor: not-allowed;\n}\n.rdtPicker th {\n border-bottom: 1px solid #f9f9f9;\n}\n.rdtPicker .dow {\n width: 14.2857%;\n border-bottom: none;\n cursor: default;\n}\n.rdtPicker th.rdtSwitch {\n width: 100px;\n}\n.rdtPicker th.rdtNext,\n.rdtPicker th.rdtPrev {\n font-size: 21px;\n vertical-align: top;\n}\n\n.rdtPrev span,\n.rdtNext span {\n display: block;\n -webkit-touch-callout: none; /* iOS Safari */\n -webkit-user-select: none; /* Chrome/Safari/Opera */\n -khtml-user-select: none; /* Konqueror */\n -moz-user-select: none; /* Firefox */\n -ms-user-select: none; /* Internet Explorer/Edge */\n user-select: none;\n}\n\n.rdtPicker th.rdtDisabled,\n.rdtPicker th.rdtDisabled:hover {\n background: none;\n color: #999999;\n cursor: not-allowed;\n}\n.rdtPicker thead tr:first-of-type th {\n cursor: pointer;\n}\n.rdtPicker thead tr:first-of-type th:hover {\n background: #eeeeee;\n}\n\n.rdtPicker tfoot {\n border-top: 1px solid #f9f9f9;\n}\n\n.rdtPicker button {\n border: none;\n background: none;\n cursor: pointer;\n}\n.rdtPicker button:hover {\n background-color: #eee;\n}\n\n.rdtPicker thead button {\n width: 100%;\n height: 100%;\n}\n\ntd.rdtMonth,\ntd.rdtYear {\n height: 50px;\n width: 25%;\n cursor: pointer;\n}\ntd.rdtMonth:hover,\ntd.rdtYear:hover {\n background: #eee;\n}\n\n.rdtCounters {\n display: inline-block;\n}\n\n.rdtCounters > div {\n float: left;\n}\n\n.rdtCounter {\n height: 100px;\n}\n\n.rdtCounter {\n width: 40px;\n}\n\n.rdtCounterSeparator {\n line-height: 100px;\n}\n\n.rdtCounter .rdtBtn {\n height: 40%;\n line-height: 40px;\n cursor: pointer;\n display: block;\n\n -webkit-touch-callout: none; /* iOS Safari */\n -webkit-user-select: none; /* Chrome/Safari/Opera */\n -khtml-user-select: none; /* Konqueror */\n -moz-user-select: none; /* Firefox */\n -ms-user-select: none; /* Internet Explorer/Edge */\n user-select: none;\n}\n.rdtCounter .rdtBtn:hover {\n background: #eee;\n}\n.rdtCounter .rdtCount {\n height: 20%;\n font-size: 1.2em;\n}\n\n.rdtMilli {\n vertical-align: middle;\n padding-left: 8px;\n width: 48px;\n}\n\n.rdtMilli input {\n width: 100%;\n font-size: 1.2em;\n margin-top: 37px;\n}\n\n.rdtTime td {\n cursor: default;\n}\n",""]);const a=s},7006:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(8081),i=n.n(r),o=n(3645),s=n.n(o)()(i());s.push([e.id,"/*!\n * Quill Editor v1.3.7\n * https://quilljs.com/\n * Copyright (c) 2014, Jason Chen\n * Copyright (c) 2013, salesforce.com\n */\n.ql-container {\n box-sizing: border-box;\n font-family: Helvetica, Arial, sans-serif;\n font-size: 13px;\n height: 100%;\n margin: 0px;\n position: relative;\n}\n.ql-container.ql-disabled .ql-tooltip {\n visibility: hidden;\n}\n.ql-container.ql-disabled .ql-editor ul[data-checked] > li::before {\n pointer-events: none;\n}\n.ql-clipboard {\n left: -100000px;\n height: 1px;\n overflow-y: hidden;\n position: absolute;\n top: 50%;\n}\n.ql-clipboard p {\n margin: 0;\n padding: 0;\n}\n.ql-editor {\n box-sizing: border-box;\n line-height: 1.42;\n height: 100%;\n outline: none;\n overflow-y: auto;\n padding: 12px 15px;\n tab-size: 4;\n -moz-tab-size: 4;\n text-align: left;\n white-space: pre-wrap;\n word-wrap: break-word;\n}\n.ql-editor > * {\n cursor: text;\n}\n.ql-editor p,\n.ql-editor ol,\n.ql-editor ul,\n.ql-editor pre,\n.ql-editor blockquote,\n.ql-editor h1,\n.ql-editor h2,\n.ql-editor h3,\n.ql-editor h4,\n.ql-editor h5,\n.ql-editor h6 {\n margin: 0;\n padding: 0;\n counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol,\n.ql-editor ul {\n padding-left: 1.5em;\n}\n.ql-editor ol > li,\n.ql-editor ul > li {\n list-style-type: none;\n}\n.ql-editor ul > li::before {\n content: '\\2022';\n}\n.ql-editor ul[data-checked=true],\n.ql-editor ul[data-checked=false] {\n pointer-events: none;\n}\n.ql-editor ul[data-checked=true] > li *,\n.ql-editor ul[data-checked=false] > li * {\n pointer-events: all;\n}\n.ql-editor ul[data-checked=true] > li::before,\n.ql-editor ul[data-checked=false] > li::before {\n color: #777;\n cursor: pointer;\n pointer-events: all;\n}\n.ql-editor ul[data-checked=true] > li::before {\n content: '\\2611';\n}\n.ql-editor ul[data-checked=false] > li::before {\n content: '\\2610';\n}\n.ql-editor li::before {\n display: inline-block;\n white-space: nowrap;\n width: 1.2em;\n}\n.ql-editor li:not(.ql-direction-rtl)::before {\n margin-left: -1.5em;\n margin-right: 0.3em;\n text-align: right;\n}\n.ql-editor li.ql-direction-rtl::before {\n margin-left: 0.3em;\n margin-right: -1.5em;\n}\n.ql-editor ol li:not(.ql-direction-rtl),\n.ql-editor ul li:not(.ql-direction-rtl) {\n padding-left: 1.5em;\n}\n.ql-editor ol li.ql-direction-rtl,\n.ql-editor ul li.ql-direction-rtl {\n padding-right: 1.5em;\n}\n.ql-editor ol li {\n counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n counter-increment: list-0;\n}\n.ql-editor ol li:before {\n content: counter(list-0, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-1 {\n counter-increment: list-1;\n}\n.ql-editor ol li.ql-indent-1:before {\n content: counter(list-1, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-1 {\n counter-reset: list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-2 {\n counter-increment: list-2;\n}\n.ql-editor ol li.ql-indent-2:before {\n content: counter(list-2, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-2 {\n counter-reset: list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-3 {\n counter-increment: list-3;\n}\n.ql-editor ol li.ql-indent-3:before {\n content: counter(list-3, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-3 {\n counter-reset: list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-4 {\n counter-increment: list-4;\n}\n.ql-editor ol li.ql-indent-4:before {\n content: counter(list-4, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-4 {\n counter-reset: list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-5 {\n counter-increment: list-5;\n}\n.ql-editor ol li.ql-indent-5:before {\n content: counter(list-5, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-5 {\n counter-reset: list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-6 {\n counter-increment: list-6;\n}\n.ql-editor ol li.ql-indent-6:before {\n content: counter(list-6, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-6 {\n counter-reset: list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-7 {\n counter-increment: list-7;\n}\n.ql-editor ol li.ql-indent-7:before {\n content: counter(list-7, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-7 {\n counter-reset: list-8 list-9;\n}\n.ql-editor ol li.ql-indent-8 {\n counter-increment: list-8;\n}\n.ql-editor ol li.ql-indent-8:before {\n content: counter(list-8, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-8 {\n counter-reset: list-9;\n}\n.ql-editor ol li.ql-indent-9 {\n counter-increment: list-9;\n}\n.ql-editor ol li.ql-indent-9:before {\n content: counter(list-9, decimal) '. ';\n}\n.ql-editor .ql-indent-1:not(.ql-direction-rtl) {\n padding-left: 3em;\n}\n.ql-editor li.ql-indent-1:not(.ql-direction-rtl) {\n padding-left: 4.5em;\n}\n.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right {\n padding-right: 3em;\n}\n.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right {\n padding-right: 4.5em;\n}\n.ql-editor .ql-indent-2:not(.ql-direction-rtl) {\n padding-left: 6em;\n}\n.ql-editor li.ql-indent-2:not(.ql-direction-rtl) {\n padding-left: 7.5em;\n}\n.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right {\n padding-right: 6em;\n}\n.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right {\n padding-right: 7.5em;\n}\n.ql-editor .ql-indent-3:not(.ql-direction-rtl) {\n padding-left: 9em;\n}\n.ql-editor li.ql-indent-3:not(.ql-direction-rtl) {\n padding-left: 10.5em;\n}\n.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right {\n padding-right: 9em;\n}\n.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right {\n padding-right: 10.5em;\n}\n.ql-editor .ql-indent-4:not(.ql-direction-rtl) {\n padding-left: 12em;\n}\n.ql-editor li.ql-indent-4:not(.ql-direction-rtl) {\n padding-left: 13.5em;\n}\n.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right {\n padding-right: 12em;\n}\n.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right {\n padding-right: 13.5em;\n}\n.ql-editor .ql-indent-5:not(.ql-direction-rtl) {\n padding-left: 15em;\n}\n.ql-editor li.ql-indent-5:not(.ql-direction-rtl) {\n padding-left: 16.5em;\n}\n.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right {\n padding-right: 15em;\n}\n.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right {\n padding-right: 16.5em;\n}\n.ql-editor .ql-indent-6:not(.ql-direction-rtl) {\n padding-left: 18em;\n}\n.ql-editor li.ql-indent-6:not(.ql-direction-rtl) {\n padding-left: 19.5em;\n}\n.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right {\n padding-right: 18em;\n}\n.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right {\n padding-right: 19.5em;\n}\n.ql-editor .ql-indent-7:not(.ql-direction-rtl) {\n padding-left: 21em;\n}\n.ql-editor li.ql-indent-7:not(.ql-direction-rtl) {\n padding-left: 22.5em;\n}\n.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right {\n padding-right: 21em;\n}\n.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right {\n padding-right: 22.5em;\n}\n.ql-editor .ql-indent-8:not(.ql-direction-rtl) {\n padding-left: 24em;\n}\n.ql-editor li.ql-indent-8:not(.ql-direction-rtl) {\n padding-left: 25.5em;\n}\n.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right {\n padding-right: 24em;\n}\n.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right {\n padding-right: 25.5em;\n}\n.ql-editor .ql-indent-9:not(.ql-direction-rtl) {\n padding-left: 27em;\n}\n.ql-editor li.ql-indent-9:not(.ql-direction-rtl) {\n padding-left: 28.5em;\n}\n.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right {\n padding-right: 27em;\n}\n.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right {\n padding-right: 28.5em;\n}\n.ql-editor .ql-video {\n display: block;\n max-width: 100%;\n}\n.ql-editor .ql-video.ql-align-center {\n margin: 0 auto;\n}\n.ql-editor .ql-video.ql-align-right {\n margin: 0 0 0 auto;\n}\n.ql-editor .ql-bg-black {\n background-color: #000;\n}\n.ql-editor .ql-bg-red {\n background-color: #e60000;\n}\n.ql-editor .ql-bg-orange {\n background-color: #f90;\n}\n.ql-editor .ql-bg-yellow {\n background-color: #ff0;\n}\n.ql-editor .ql-bg-green {\n background-color: #008a00;\n}\n.ql-editor .ql-bg-blue {\n background-color: #06c;\n}\n.ql-editor .ql-bg-purple {\n background-color: #93f;\n}\n.ql-editor .ql-color-white {\n color: #fff;\n}\n.ql-editor .ql-color-red {\n color: #e60000;\n}\n.ql-editor .ql-color-orange {\n color: #f90;\n}\n.ql-editor .ql-color-yellow {\n color: #ff0;\n}\n.ql-editor .ql-color-green {\n color: #008a00;\n}\n.ql-editor .ql-color-blue {\n color: #06c;\n}\n.ql-editor .ql-color-purple {\n color: #93f;\n}\n.ql-editor .ql-font-serif {\n font-family: Georgia, Times New Roman, serif;\n}\n.ql-editor .ql-font-monospace {\n font-family: Monaco, Courier New, monospace;\n}\n.ql-editor .ql-size-small {\n font-size: 0.75em;\n}\n.ql-editor .ql-size-large {\n font-size: 1.5em;\n}\n.ql-editor .ql-size-huge {\n font-size: 2.5em;\n}\n.ql-editor .ql-direction-rtl {\n direction: rtl;\n text-align: inherit;\n}\n.ql-editor .ql-align-center {\n text-align: center;\n}\n.ql-editor .ql-align-justify {\n text-align: justify;\n}\n.ql-editor .ql-align-right {\n text-align: right;\n}\n.ql-editor.ql-blank::before {\n color: rgba(0,0,0,0.6);\n content: attr(data-placeholder);\n font-style: italic;\n left: 15px;\n pointer-events: none;\n position: absolute;\n right: 15px;\n}\n.ql-snow.ql-toolbar:after,\n.ql-snow .ql-toolbar:after {\n clear: both;\n content: '';\n display: table;\n}\n.ql-snow.ql-toolbar button,\n.ql-snow .ql-toolbar button {\n background: none;\n border: none;\n cursor: pointer;\n display: inline-block;\n float: left;\n height: 24px;\n padding: 3px 5px;\n width: 28px;\n}\n.ql-snow.ql-toolbar button svg,\n.ql-snow .ql-toolbar button svg {\n float: left;\n height: 100%;\n}\n.ql-snow.ql-toolbar button:active:hover,\n.ql-snow .ql-toolbar button:active:hover {\n outline: none;\n}\n.ql-snow.ql-toolbar input.ql-image[type=file],\n.ql-snow .ql-toolbar input.ql-image[type=file] {\n display: none;\n}\n.ql-snow.ql-toolbar button:hover,\n.ql-snow .ql-toolbar button:hover,\n.ql-snow.ql-toolbar button:focus,\n.ql-snow .ql-toolbar button:focus,\n.ql-snow.ql-toolbar button.ql-active,\n.ql-snow .ql-toolbar button.ql-active,\n.ql-snow.ql-toolbar .ql-picker-label:hover,\n.ql-snow .ql-toolbar .ql-picker-label:hover,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active,\n.ql-snow.ql-toolbar .ql-picker-item:hover,\n.ql-snow .ql-toolbar .ql-picker-item:hover,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected {\n color: #06c;\n}\n.ql-snow.ql-toolbar button:hover .ql-fill,\n.ql-snow .ql-toolbar button:hover .ql-fill,\n.ql-snow.ql-toolbar button:focus .ql-fill,\n.ql-snow .ql-toolbar button:focus .ql-fill,\n.ql-snow.ql-toolbar button.ql-active .ql-fill,\n.ql-snow .ql-toolbar button.ql-active .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,\n.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill {\n fill: #06c;\n}\n.ql-snow.ql-toolbar button:hover .ql-stroke,\n.ql-snow .ql-toolbar button:hover .ql-stroke,\n.ql-snow.ql-toolbar button:focus .ql-stroke,\n.ql-snow .ql-toolbar button:focus .ql-stroke,\n.ql-snow.ql-toolbar button.ql-active .ql-stroke,\n.ql-snow .ql-toolbar button.ql-active .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,\n.ql-snow.ql-toolbar button:hover .ql-stroke-miter,\n.ql-snow .ql-toolbar button:hover .ql-stroke-miter,\n.ql-snow.ql-toolbar button:focus .ql-stroke-miter,\n.ql-snow .ql-toolbar button:focus .ql-stroke-miter,\n.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,\n.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter {\n stroke: #06c;\n}\n@media (pointer: coarse) {\n .ql-snow.ql-toolbar button:hover:not(.ql-active),\n .ql-snow .ql-toolbar button:hover:not(.ql-active) {\n color: #444;\n }\n .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,\n .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,\n .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,\n .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill {\n fill: #444;\n }\n .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,\n .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,\n .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,\n .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter {\n stroke: #444;\n }\n}\n.ql-snow {\n box-sizing: border-box;\n}\n.ql-snow * {\n box-sizing: border-box;\n}\n.ql-snow .ql-hidden {\n display: none;\n}\n.ql-snow .ql-out-bottom,\n.ql-snow .ql-out-top {\n visibility: hidden;\n}\n.ql-snow .ql-tooltip {\n position: absolute;\n transform: translateY(10px);\n}\n.ql-snow .ql-tooltip a {\n cursor: pointer;\n text-decoration: none;\n}\n.ql-snow .ql-tooltip.ql-flip {\n transform: translateY(-10px);\n}\n.ql-snow .ql-formats {\n display: inline-block;\n vertical-align: middle;\n}\n.ql-snow .ql-formats:after {\n clear: both;\n content: '';\n display: table;\n}\n.ql-snow .ql-stroke {\n fill: none;\n stroke: #444;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-width: 2;\n}\n.ql-snow .ql-stroke-miter {\n fill: none;\n stroke: #444;\n stroke-miterlimit: 10;\n stroke-width: 2;\n}\n.ql-snow .ql-fill,\n.ql-snow .ql-stroke.ql-fill {\n fill: #444;\n}\n.ql-snow .ql-empty {\n fill: none;\n}\n.ql-snow .ql-even {\n fill-rule: evenodd;\n}\n.ql-snow .ql-thin,\n.ql-snow .ql-stroke.ql-thin {\n stroke-width: 1;\n}\n.ql-snow .ql-transparent {\n opacity: 0.4;\n}\n.ql-snow .ql-direction svg:last-child {\n display: none;\n}\n.ql-snow .ql-direction.ql-active svg:last-child {\n display: inline;\n}\n.ql-snow .ql-direction.ql-active svg:first-child {\n display: none;\n}\n.ql-snow .ql-editor h1 {\n font-size: 2em;\n}\n.ql-snow .ql-editor h2 {\n font-size: 1.5em;\n}\n.ql-snow .ql-editor h3 {\n font-size: 1.17em;\n}\n.ql-snow .ql-editor h4 {\n font-size: 1em;\n}\n.ql-snow .ql-editor h5 {\n font-size: 0.83em;\n}\n.ql-snow .ql-editor h6 {\n font-size: 0.67em;\n}\n.ql-snow .ql-editor a {\n text-decoration: underline;\n}\n.ql-snow .ql-editor blockquote {\n border-left: 4px solid #ccc;\n margin-bottom: 5px;\n margin-top: 5px;\n padding-left: 16px;\n}\n.ql-snow .ql-editor code,\n.ql-snow .ql-editor pre {\n background-color: #f0f0f0;\n border-radius: 3px;\n}\n.ql-snow .ql-editor pre {\n white-space: pre-wrap;\n margin-bottom: 5px;\n margin-top: 5px;\n padding: 5px 10px;\n}\n.ql-snow .ql-editor code {\n font-size: 85%;\n padding: 2px 4px;\n}\n.ql-snow .ql-editor pre.ql-syntax {\n background-color: #23241f;\n color: #f8f8f2;\n overflow: visible;\n}\n.ql-snow .ql-editor img {\n max-width: 100%;\n}\n.ql-snow .ql-picker {\n color: #444;\n display: inline-block;\n float: left;\n font-size: 14px;\n font-weight: 500;\n height: 24px;\n position: relative;\n vertical-align: middle;\n}\n.ql-snow .ql-picker-label {\n cursor: pointer;\n display: inline-block;\n height: 100%;\n padding-left: 8px;\n padding-right: 2px;\n position: relative;\n width: 100%;\n}\n.ql-snow .ql-picker-label::before {\n display: inline-block;\n line-height: 22px;\n}\n.ql-snow .ql-picker-options {\n background-color: #fff;\n display: none;\n min-width: 100%;\n padding: 4px 8px;\n position: absolute;\n white-space: nowrap;\n}\n.ql-snow .ql-picker-options .ql-picker-item {\n cursor: pointer;\n display: block;\n padding-bottom: 5px;\n padding-top: 5px;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-label {\n color: #ccc;\n z-index: 2;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill {\n fill: #ccc;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke {\n stroke: #ccc;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-options {\n display: block;\n margin-top: -1px;\n top: 100%;\n z-index: 1;\n}\n.ql-snow .ql-color-picker,\n.ql-snow .ql-icon-picker {\n width: 28px;\n}\n.ql-snow .ql-color-picker .ql-picker-label,\n.ql-snow .ql-icon-picker .ql-picker-label {\n padding: 2px 4px;\n}\n.ql-snow .ql-color-picker .ql-picker-label svg,\n.ql-snow .ql-icon-picker .ql-picker-label svg {\n right: 4px;\n}\n.ql-snow .ql-icon-picker .ql-picker-options {\n padding: 4px 0px;\n}\n.ql-snow .ql-icon-picker .ql-picker-item {\n height: 24px;\n width: 24px;\n padding: 2px 4px;\n}\n.ql-snow .ql-color-picker .ql-picker-options {\n padding: 3px 5px;\n width: 152px;\n}\n.ql-snow .ql-color-picker .ql-picker-item {\n border: 1px solid transparent;\n float: left;\n height: 16px;\n margin: 2px;\n padding: 0px;\n width: 16px;\n}\n.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg {\n position: absolute;\n margin-top: -9px;\n right: 0;\n top: 50%;\n width: 18px;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=''])::before {\n content: attr(data-label);\n}\n.ql-snow .ql-picker.ql-header {\n width: 98px;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item::before {\n content: 'Normal';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"1\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before {\n content: 'Heading 1';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"2\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before {\n content: 'Heading 2';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"3\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before {\n content: 'Heading 3';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"4\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before {\n content: 'Heading 4';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"5\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before {\n content: 'Heading 5';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"6\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before {\n content: 'Heading 6';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before {\n font-size: 2em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before {\n font-size: 1.5em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before {\n font-size: 1.17em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before {\n font-size: 1em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before {\n font-size: 0.83em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before {\n font-size: 0.67em;\n}\n.ql-snow .ql-picker.ql-font {\n width: 108px;\n}\n.ql-snow .ql-picker.ql-font .ql-picker-label::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item::before {\n content: 'Sans Serif';\n}\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before {\n content: 'Serif';\n}\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before {\n content: 'Monospace';\n}\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before {\n font-family: Georgia, Times New Roman, serif;\n}\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before {\n font-family: Monaco, Courier New, monospace;\n}\n.ql-snow .ql-picker.ql-size {\n width: 98px;\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item::before {\n content: 'Normal';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before {\n content: 'Small';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before {\n content: 'Large';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before {\n content: 'Huge';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before {\n font-size: 10px;\n}\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before {\n font-size: 18px;\n}\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before {\n font-size: 32px;\n}\n.ql-snow .ql-color-picker.ql-background .ql-picker-item {\n background-color: #fff;\n}\n.ql-snow .ql-color-picker.ql-color .ql-picker-item {\n background-color: #000;\n}\n.ql-toolbar.ql-snow {\n border: 1px solid #ccc;\n box-sizing: border-box;\n font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;\n padding: 8px;\n}\n.ql-toolbar.ql-snow .ql-formats {\n margin-right: 15px;\n}\n.ql-toolbar.ql-snow .ql-picker-label {\n border: 1px solid transparent;\n}\n.ql-toolbar.ql-snow .ql-picker-options {\n border: 1px solid transparent;\n box-shadow: rgba(0,0,0,0.2) 0 2px 8px;\n}\n.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label {\n border-color: #ccc;\n}\n.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {\n border-color: #ccc;\n}\n.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,\n.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover {\n border-color: #000;\n}\n.ql-toolbar.ql-snow + .ql-container.ql-snow {\n border-top: 0px;\n}\n.ql-snow .ql-tooltip {\n background-color: #fff;\n border: 1px solid #ccc;\n box-shadow: 0px 0px 5px #ddd;\n color: #444;\n padding: 5px 12px;\n white-space: nowrap;\n}\n.ql-snow .ql-tooltip::before {\n content: \"Visit URL:\";\n line-height: 26px;\n margin-right: 8px;\n}\n.ql-snow .ql-tooltip input[type=text] {\n display: none;\n border: 1px solid #ccc;\n font-size: 13px;\n height: 26px;\n margin: 0px;\n padding: 3px 5px;\n width: 170px;\n}\n.ql-snow .ql-tooltip a.ql-preview {\n display: inline-block;\n max-width: 200px;\n overflow-x: hidden;\n text-overflow: ellipsis;\n vertical-align: top;\n}\n.ql-snow .ql-tooltip a.ql-action::after {\n border-right: 1px solid #ccc;\n content: 'Edit';\n margin-left: 16px;\n padding-right: 8px;\n}\n.ql-snow .ql-tooltip a.ql-remove::before {\n content: 'Remove';\n margin-left: 8px;\n}\n.ql-snow .ql-tooltip a {\n line-height: 26px;\n}\n.ql-snow .ql-tooltip.ql-editing a.ql-preview,\n.ql-snow .ql-tooltip.ql-editing a.ql-remove {\n display: none;\n}\n.ql-snow .ql-tooltip.ql-editing input[type=text] {\n display: inline-block;\n}\n.ql-snow .ql-tooltip.ql-editing a.ql-action::after {\n border-right: 0px;\n content: 'Save';\n padding-right: 0px;\n}\n.ql-snow .ql-tooltip[data-mode=link]::before {\n content: \"Enter link:\";\n}\n.ql-snow .ql-tooltip[data-mode=formula]::before {\n content: \"Enter formula:\";\n}\n.ql-snow .ql-tooltip[data-mode=video]::before {\n content: \"Enter video:\";\n}\n.ql-snow a {\n color: #06c;\n}\n.ql-container.ql-snow {\n border: 1px solid #ccc;\n}\n",""]);const a=s},7430:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(8081),i=n.n(r),o=n(3645),s=n.n(o)()(i());s.push([e.id,"#misc-publishing-actions svg.dashicon{color:#82878c;vertical-align:middle;margin-right:.25em}#major-publishing-actions .editor-post-trash{margin-left:0;color:#a00}.pods-edit-pod-manage-field .pods-dfv-container{display:block;max-width:45em;width:65%}.pods-edit-pod-manage-field .pods-dfv-container-wysiwyg,.pods-edit-pod-manage-field .pods-dfv-container-code{width:100%}",""]);const a=s},2732:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(8081),i=n.n(r),o=n(3645),s=n.n(o)()(i());s.push([e.id,".pods-edit-pod-manage-field{zoom:1}.pods-edit-pod-manage-field .pods-field-option,.pods-edit-pod-manage-field .pods-field-option-group{background:#fcfcfc;border-bottom:1px solid #ccd0d4;box-sizing:border-box;display:flex;flex-flow:row nowrap;padding:10px}.pods-edit-pod-manage-field .pods-field-option>*,.pods-edit-pod-manage-field .pods-field-option-group>*{box-sizing:border-box}.pods-edit-pod-manage-field .pods-pick-values li{position:relative}.pods-edit-pod-manage-field .pods-pick-values li{margin:0}.pods-edit-pod-manage-field .pods-field-option:nth-child(odd),.pods-edit-pod-manage-field .pods-field-option-group:nth-child(odd){background:#fff}.pods-edit-pod-manage-field .pods-field-option .pods-field-label,.pods-edit-pod-manage-field .pods-field-option-group .pods-field-option-group-label{width:30%;flex:0 0 30%;padding-right:2%;padding-top:4px}.pods-edit-pod-manage-field .pods-field-option .pods-field-option__field,.pods-edit-pod-manage-field .pods-field-option-group .pods-field-option__field{width:70%;flex:0 0 70%}.pods-edit-pod-manage-field .pods-field-option .pods-pick-values .pods-field.pods-boolean{float:none;margin-left:0;width:auto;max-width:100%}.pods-edit-pod-manage-field label+div .pods-pick-values{width:96%}.pods-edit-pod-manage-field .pods-field-option .pods-form-ui-field-type-wysiwyg textarea{max-width:100%}.pods-edit-pod-manage-field .pods-field-option .pods-form-ui-field-type-file{padding-bottom:8px}.pods-edit-pod-manage-field .pods-field-option .pods-form-ui-field-type-file table.form-table tr.form-field td{padding:0;border-bottom:none}.pods-edit-pod-manage-field .pods-field-option .pods-form-ui-field-type-file table.form-table,.pods-edit-pod-manage-field .pods-field-option-group p.pods-field-option-group-label{margin-top:0}.pods-edit-pod-manage-field .pods-pick-values input[type=checkbox],.pods-edit-pod-manage-field .pods-pick-values input[type=radio]{margin:6px}.pods-edit-pod-manage-field .pods-pick-values ul{overflow:visible;margin:5px 0}.pods-edit-pod-manage-field .pods-pick-values ul .pods-field.pods-boolean,.pods-edit-pod-manage-field .pods-pick-values ul ul{margin:0}.pods-edit-pod-manage-field .pods-pick-values.pods-zebra{width:100%;max-width:100%}.pods-edit-pod-manage-field .pods-pick-values.pods-zebra li{margin-bottom:4px}.pods-edit-pod-manage-field .pods-pick-values.pods-zebra div.pods-boolean input{margin:4px}.pods-edit-pod-manage-field .pods-pick-values.pods-zebra div.pods-boolean label{padding:5px 0}.pods-edit-pod-manage-field .pods-pick-values li.pods-zebra-odd{display:block;width:50%;float:left;clear:both}.pods-edit-pod-manage-field .pods-pick-values li.pods-zebra-even{display:block;width:50%;float:left;clear:none}.pods-edit-pod-manage-field .pods-pick-values .regular-text{max-width:95%}.pods-edit-pod-manage-field li>.pods-field.pods-boolean:hover{background:#f5f5f5}.pods-edit-pod-manage-field input.pods-form-ui-no-label{position:relative}@media screen and (max-width: 782px){.pods-edit-pod-manage-field .pods-field-option label,.pods-edit-pod-manage-field .pods-field-option-group .pods-field-option-group-label{float:none;display:block;width:100%;max-width:none;padding-bottom:4px;margin-bottom:0;line-height:22px}.pods-edit-pod-manage-field .pods-field-option input[type=text],.pods-edit-pod-manage-field .pods-field-option textarea,.pods-edit-pod-manage-field .pods-field-option .pods-field.pods-boolean,.pods-edit-pod-manage-field .pods-pick-values,.pods-edit-pod-manage-field .pods-field-option .pods-form-ui-field-type-file,.pods-edit-pod-manage-field .pods-slider-field{display:block;margin:0;width:100%;max-width:none}.pods-edit-pod-manage-field .pods-field.pods-boolean label,.pods-edit-pod-manage-field .pods-field-option .pods-pick-values label{line-height:22px;font-size:14px;margin-left:34px}.pods-edit-pod-manage-field .pods-pick-values li.pods-zebra-odd,.pods-edit-pod-manage-field .pods-pick-values li.pods-zebra-even{display:block;width:100%;float:none;clear:both}}",""]);const a=s},989:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(8081),i=n.n(r),o=n(3645),s=n.n(o)()(i());s.push([e.id,".pods-field-group-wrapper{margin-bottom:10px;border:1px solid #ccd0d4;background-color:#fff;transition:border .2s ease-in-out,opacity .5s ease-in-out}.pods-field-group-wrapper--unsaved{border-left:5px #95bf3b}.pods-field-group-wrapper--deleting{opacity:.5;user-select:none}.pods-field-group-wrapper--errored{border-left:5px #a00 solid}.pods-field-group_name__error{color:#a00;display:inline-block;padding-left:.5em}.pods-field-group_name__id{font-size:13px;color:#999;display:inline;opacity:0;transition:200ms ease opacity}.pods-field-group-wrapper:hover .pods-field-group_name__id{opacity:1}.pods-field-group_buttons{color:#ccd0d4;opacity:0}.pods-field-group-wrapper:hover .pods-field-group_buttons{opacity:1}.pods-field-group_button{background:rgba(0,0,0,0);border:none;color:#007cba;cursor:pointer;height:auto;margin:.25em 0;overflow:visible;padding:0 .5em;position:relative}.pods-field-group_button:hover,.pods-field-group_button:focus{color:#00a0d2}.pods-field-group_manage,.pods-field-group_delete{border-right:none;margin-right:0}.pods-field-group_manage{color:#e1e1e1}.pods-field-group_delete{color:#a00}.pods-field-group_delete:hover,.pods-field-group_delete:hover:not(:disabled){color:#a02222}",""]);const a=s},2037:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(8081),i=n.n(r),o=n(3645),s=n.n(o)()(i());s.push([e.id,".opacity-ghost{transition:all .8s ease;opacity:.4;box-shadow:3px 3px 10px 3px rgba(0,0,0,.3);cursor:ns-resize}.pods-field-group_title{cursor:pointer;display:flex;padding:.5em;justify-content:space-between;color:#333;align-items:center}.pods-field-group_title>button{flex-shrink:0}.pods-field-group_name{cursor:pointer;margin-right:auto;padding:.5em;user-select:none}.pods-field-group_handle{cursor:move;display:inline-block;padding-right:13px;vertical-align:middle}.pods-button-group_container{display:flex;width:100%;justify-content:flex-end;margin-top:10px;margin-bottom:10px}.pods-button-group_add-new{text-align:center;border:2px dashed #ccd0d4;background:none;width:100%;padding:.7em 1em;transition:300ms ease background-color}.pods-button-group_add-new:focus,.pods-button-group_add-new:hover{background-color:#ccd0d4;cursor:pointer}.pods-field-group_toggle{cursor:pointer}.pods-button-group_item{padding:10px 20px;color:#333;text-decoration:none;transition:300ms ease background-color}.pods-button-group_item:hover{background-color:#e0e0e0}.pods-button-group_item:last-child{background-color:#94bf3a;color:#fff}.pods-button-group_item:last-child:hover{background-color:#7c9e33}.pods-field-group_settings{width:100%;height:100%}.pods-field-group_settings--visible{display:block}.pods-field-group_settings .components-modal__content{padding:0}.pods-field-group_settings .components-modal__header{padding:0 36px;margin-bottom:0}.pods-field-group_settings-container{width:100%;margin:0 auto;background-color:#eee;position:absolute;height:calc(100% - 56px)}.pods-field-group_settings-options{display:flex;width:100%;height:100%;overflow:hidden}.pods-field-group_heading{border-bottom:1px solid #e5e5e5;padding:10px;font-weight:bolder;font-size:16px}.pods-field-group_settings-sidebar{width:35%;background-color:#f3f3f3;position:absolute;left:0;height:100%}.pods-field-group_settings-sidebar-item{padding:10px;border-bottom:1px solid #c6cbd0;cursor:pointer;transition:300ms ease background-color}.pods-field-group_settings-sidebar-item:last-child{border-bottom:none}.pods-field-group_settings-sidebar-item--active{background-color:#eee;font-weight:bolder;margin-right:-2px}.pods-field-group_settings-sidebar-item:hover{background-color:#eee}.pods-field-group_settings-main,.pods-field-group_settings-advanced,.pods-field-group_settings-other{width:65%;padding:20px;position:absolute;left:35%}.pods-input-container{display:flex;align-items:center;padding-bottom:20px}.pods-input-container:last-child{padding-bottom:0}.pods-label_text{width:30%;padding-right:20px;font-weight:bold}.pods-input{width:70%}",""]);const a=s},843:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(8081),i=n.n(r),o=n(3645),s=n.n(o)()(i());s.push([e.id,".pods-field_outer-wrapper{background:#fff}.pods-field_outer-wrapper:nth-child(odd){background-color:#f9f9f9;transition:200ms ease background-color}.pods-field_wrapper--dragging{background:#e2e4e7}.pods-field_wrapper--dragging .pods-field_wrapper .pods-field_controls-container{opacity:0}.pods-field_wrapper--overlay{background:#fff;box-shadow:0 0 0 3px rgba(63,63,68,.05),-1px 0 4px 0 rgba(34,33,81,.01),0px 4px 4px 0 rgba(34,33,81,.25);z-index:999}.pods-field_wrapper--overlay .pods-field_wrapper .pods-field_controls-container{opacity:0}.pods-field_wrapper{display:flex;width:auto;align-items:center;padding:.7em 0;transition:border .2s ease-in-out,opacity .5s ease-in-out}.pods-field_wrapper:hover .pods-field_controls-container{opacity:1}.pods-field_wrapper--unsaved{border-left:5px #95bf3b solid}.pods-field_wrapper--deleting{opacity:.5;user-select:none}.pods-field_wrapper--errored{border-left:5px #a00 solid}.pods-field_handle{width:30px;flex:0 0 30px;opacity:.2;padding-left:10px;padding-right:10px;cursor:move;margin-bottom:1em}.pods-field_required{color:red}.pods-field_actions{display:flex}.pods-field_actions i{padding:10px;color:#0073aa}.pods-field_actions i:hover{cursor:pointer;color:#00a0d2}.pods-field_label{padding-left:0;user-select:none}.pods-field_id{font-size:13px;color:#999;display:inline;opacity:0;transition:200ms ease opacity}.pods-field_controls-container__error{color:#000}.pods-field_type,.pods-field_wrapper-label_type{width:60px;user-select:none}.pods-field_label,.pods-field_type{user-select:none}.pods-field_label:hover .pods-field_id,.pods-field_type:hover .pods-field_id{opacity:1;height:auto}.pods-field_label,.pods-field_name{color:#0073aa}.pods-field_label__link{cursor:pointer}.pods-field_label__link:hover{color:#00a0d2}.pods-field_name{cursor:pointer;user-select:none}.pods-field-group_name:hover>.pods-field-group_name__id{opacity:1}.pods-field_wrapper-labels{display:flex;width:100%;margin-top:.3em}.pods-field_wrapper-labels+.pods-field_wrapper-items{margin-top:.7em;width:100%}.pods-field_wrapper-label,.pods-field_label{width:calc(50% - 50px);flex:0 0 calc(50% - 50px)}.pods-field_wrapper-label:first-child{margin-left:50px}.pods-field_name,.pods-field_type,.pods-field_wrapper-label_name,.pods-field_wrapper-label_type{flex:0 0 calc(25% - 1em);padding-bottom:1em;padding-right:1em;overflow-wrap:break-word;width:calc(25% - 1em)}.pods-field_wrapper-label-items{width:172px;padding:1em 1em 1em 0;justify-content:flex-start;width:25%}.pods-field_wrapper-label-items:first-child{margin-left:40px;width:50%}.pods-field_wrapper-items{border:1px solid #ccd0d4;margin:1em 0}.pods-field_wrapper:nth-child(even){background-color:#e2e4e7}.pods-field_controls-container{color:#ccd0d4;margin-left:-0.5em;padding-top:.25em}.pods-field_button{background:rgba(0,0,0,0);border:none;color:#007cba;cursor:pointer;font-size:.95em;height:auto;overflow:visible;padding:0 .5em}.pods-field_button:hover,.pods-field_button:focus{color:#00a0d2}.pods-field_button.pods-field_delete{color:#a00}.pods-field_button.pods-field_delete:hover{color:#a02222}.pods-field_button.pods-field_delete::after{content:none}",""]);const a=s},7862:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(8081),i=n.n(r),o=n(3645),s=n.n(o)()(i());s.push([e.id,".pods-field_controls-container{opacity:0}.pods-field-list{margin:0 2em 2em;overflow:visible !important;display:flex;flex-flow:column nowrap}.pods-field-list__empty{padding:2em 0}.pods-field-list__empty--dropping{background:#ccd0d4}.pods-field-list__empty-message{margin:0;text-align:right}.pods-field-group_add_field_link{align-self:flex-end}",""]);const a=s},2607:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(8081),i=n.n(r),o=n(3645),s=n.n(o)()(i());s.push([e.id,".components-modal__frame.pods-settings-modal{height:90vh;width:90vw;max-width:950px}@media screen and (min-width: 851px){.components-modal__frame.pods-settings-modal{height:80vh;width:80vw}}.pods-settings-modal .components-modal__header{flex:0 0 auto;height:auto;padding:1em 2em}.pods-settings-modal .components-modal__content{display:flex;flex-flow:column nowrap}.pods-settings-modal__container{display:flex;flex:1 1 auto;flex-flow:column nowrap;overflow:hidden}@media screen and (min-width: 851px){.pods-settings-modal__container{flex-flow:row nowrap}}.pods-setting-modal__button-group{display:flex;flex:0 0 auto;justify-content:flex-end;padding:0 1em;width:100%}@media screen and (min-width: 851px){.pods-setting-modal__button-group{border-top:1px solid #e2e4e7;padding-top:12px;margin-left:-24px;margin-right:-24px;width:calc(100% + 48px);padding-right:24px;padding-left:24px;margin-bottom:-12px}}.pods-setting-modal__button-group button{margin-right:5px}.pods-settings-modal__tabs{display:flex;margin-bottom:1em;padding-bottom:.5em;overflow-x:scroll;min-width:200px}@media screen and (min-width: 851px){.pods-settings-modal__tabs{border-right:1px solid #e2e4e7;flex-flow:column nowrap;margin-bottom:0;margin-right:2em;margin-top:-24px;overflow-x:hidden;padding-top:24px;padding-bottom:0}}.pods-settings-modal__tab-item{font-size:14px;font-weight:700;padding:1em 1em 1em 1.1em;margin:0;text-align:center}@media screen and (min-width: 851px){.pods-settings-modal__tab-item{text-align:left;width:200px}}.pods-settings-modal__tab-item:hover{cursor:pointer}.pods-settings-modal__tab-item:focus{outline:1px solid #007cba;outline-offset:-1px}.pods-settings-modal__tab-item.pods-settings-modal__tab-item--active{color:#007cba;border-bottom:5px solid #007cba}@media screen and (min-width: 851px){.pods-settings-modal__tab-item.pods-settings-modal__tab-item--active{border-bottom:none;border-right:5px solid #007cba}}.pods-settings-modal__panel{margin:0;overflow-y:auto;padding-right:1em}@media screen and (min-width: 851px){.pods-settings-modal__panel{flex:1 1 auto}}.pods-settings-modal__panel .pods-field-option{margin-bottom:1em}.pod-field-group_settings-error-message{border:1px solid #ccd0d4;border-left:4px solid #a00;margin:-12px 0 12px;padding:12px;position:relative}@media screen and (min-width: 851px){.pod-field-group_settings-error-message{margin-bottom:36px}}.pods-field-option label{margin-bottom:.2em}.pods-field-option input[type=text],.pods-field-option textarea{width:100%;box-sizing:border-box}.components-modal__frame .pods-field-option input[type=checkbox]:checked{background:#fff}.rtl .pods-settings-modal__panel{padding-right:0;padding-left:1em}@media screen and (min-width: 851px){.rtl .pods-settings-modal__tabs{border-right:0;border-left:1px solid #e2e4e7;margin-right:0;margin-left:2em}}",""]);const a=s},3828:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(8081),i=n.n(r),o=n(3645),s=n.n(o)()(i());s.push([e.id,".pods-field-description{clear:both}",""]);const a=s},7007:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(8081),i=n.n(r),o=n(3645),s=n.n(o)()(i());s.push([e.id,".pods-field-label{margin-bottom:.2em;display:block}.pods-field-label__required{color:red}",""]);const a=s},3418:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(8081),i=n.n(r),o=n(3645),s=n.n(o)()(i());s.push([e.id,".pods-dfv-container .components-notice{margin-left:0;margin-right:0}.pods-dfv-container-text input,.pods-dfv-container-website input,.pods-dfv-container-phone input,.pods-dfv-container-email input,.pods-dfv-container-password input,.pods-dfv-container-paragraph input{width:100%}",""]);const a=s},4477:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(8081),i=n.n(r),o=n(3645),s=n.n(o)()(i());s.push([e.id,".pods-field-wrapper__repeatable-field-table{margin-bottom:10px}.pods-field-wrapper__item{display:flex;flex-flow:row nowrap;margin-bottom:1em}.pods-field-wrapper__repeatable{align-items:center;background:#f9f9f9;border:1px solid #82878c;margin-bottom:0;padding:0;position:relative;margin-top:-1px;transition:.1s background ease-in-out}.pods-field-wrapper__repeatable:first-child{margin-top:0}.pods-field-wrapper__repeatable:hover{background:#f0f0f0}.pods-field-wrapper__repeatable .pods-field-wrapper__field{padding:8px}.pods-field-wrapper__repeatable .components-accessible-toolbar{border:0}.pods-field-wrapper__repeatable .components-toolbar-group{background:rgba(0,0,0,0)}.pods-field-wrapper__controls{flex:0 1 auto}.pods-field-wrapper__field{flex:1 1 auto}.pods-field-wrapper__controls--start{padding-right:1em}.pods-field-wrapper__controls--end{padding-left:1em}.pods-field-wrapper__drag-handle{cursor:grab}.pods-field-wrapper__movers{display:flex;flex-flow:column nowrap;justify-content:center}.components-accessible-toolbar .components-button.pods-field-wrapper__mover{height:20px}",""]);const a=s},6478:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(8081),i=n.n(r),o=n(3645),s=n.n(o)()(i());s.push([e.id,".pods-help-tooltip__icon{cursor:pointer}.pods-help-tooltip__icon:focus{outline:1px solid #007cba;outline-offset:1px}.pods-help-tooltip__icon>svg{color:#ccc;vertical-align:middle}.pods-help-tooltip a{color:#fff}.pods-help-tooltip a:hover,.pods-help-tooltip a:focus{color:#ccd0d4}.pods-help-tooltip .dashicon{text-decoration:none}",""]);const a=s},1753:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(8081),i=n.n(r),o=n(3645),s=n.n(o)()(i());s.push([e.id,".pods-iframe-modal{height:100%;width:100%;max-height:calc(100% - 60px);max-width:calc(100% - 60px)}.pods-iframe-modal__iframe{height:100%;width:100%}",""]);const a=s},9160:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(8081),i=n.n(r),o=n(3645),s=n.n(o)()(i());s.push([e.id,".pods-boolean-group{background:#fff;margin:0 0 5px 0;padding:0;border-radius:0;border:1px solid #dfdfdf}.pods-boolean-group__option{background-color:#fff;border-bottom:1px solid #f4f4f4;margin:0;padding:.5em}.pods-boolean-group__option:nth-child(even){background:#fcfcfc}",""]);const a=s},515:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(8081),i=n.n(r),o=n(3645),s=n.n(o)()(i());s.push([e.id,".pods-code-field{border:1px solid #e5e5e5}.pods-code-field .cm-content{white-space:pre-wrap}.pods-code-field__input--readonly{opacity:.5}",""]);const a=s},7310:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(8081),i=n.n(r),o=n(3645),s=n.n(o)()(i());s.push([e.id,".pods-color-buttons__buttons{align-items:center;display:flex;flex-flow:row nowrap}.pods-color-buttons__buttons .button{margin-right:.5em}.pods-color-buttons__buttons--disabled .component-color-indicator{margin-left:0}.button.pods-color-select-button{align-items:center;display:flex;flex-flow:row nowrap}.button.pods-color-select-button>.component-color-indicator{display:block;margin-right:.5em}.pods-color-picker{padding:.5em;border:1px solid #ccd0d4;max-width:550px}.pods-color-buttons__value{display:block;padding-left:.5em}",""]);const a=s},4622:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(8081),i=n.n(r),o=n(3645),s=n.n(o)()(i());s.push([e.id,".pods-currency-container{position:relative}.pods-currency-sign{position:absolute;transform:translate(0, -50%);top:50%;pointer-events:none;min-width:10px;text-align:center;padding:1px 5px;line-height:28px;border-radius:3px 0 0 3px}input.pods-form-ui-field-type-currency{padding-left:30px}.pods-field-option .pods-form-ui-field.pods-form-ui-field-type-currency,.pods-field-option .pods-form-ui-field.pods-form-ui-field-type-currency-slider{max-width:500px}.pods-field-option .pods-form-ui-field.pods-form-ui-field-type-currency-slider{width:100%}",""]);const a=s},556:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(8081),i=n.n(r),o=n(3645),s=n.n(o)()(i());s.push([e.id,".pods-react-datetime-fix .rdtPicker{position:sticky !important;max-width:500px}.pods-react-datetime-fix .rdtPicker td,.pods-react-datetime-fix .rdtPicker th{padding:10px;vertical-align:middle}.pods-react-datetime-fix .rdtPicker th.rdtNext,.pods-react-datetime-fix .rdtPicker th.rdtPrev{vertical-align:top;line-height:1}.pods-react-datetime-fix .rdtPicker th.rdtNext span,.pods-react-datetime-fix .rdtPicker th.rdtPrev span{line-height:.6}.pods-field-option .pods-form-ui-field.pods-form-ui-field-type-datetime,.pods-field-option .pods-form-ui-field.pods-form-ui-field-type-date,.pods-field-option .pods-form-ui-field.pods-form-ui-field-type-time{max-width:300px}#side-sortables .pods-field-option .pods-form-ui-field.pods-form-ui-field-type-datetime,#side-sortables .pods-field-option .pods-form-ui-field.pods-form-ui-field-type-date,#side-sortables .pods-field-option .pods-form-ui-field.pods-form-ui-field-type-time{max-width:100%}",""]);const a=s},7442:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(8081),i=n.n(r),o=n(3645),s=n.n(o)()(i());s.push([e.id,"h3.pods-form-ui-heading.pods-form-ui-heading-label_heading{padding:8px 0 !important}",""]);const a=s},339:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(8081),i=n.n(r),o=n(3645),s=n.n(o)()(i());s.push([e.id,".pods-field-option .pods-form-ui-field.pods-form-ui-field-type-number,.pods-field-option .pods-form-ui-field.pods-form-ui-field-type-number-slider{max-width:500px}.pods-field-option .pods-form-ui-field.pods-form-ui-field-type-number-slider{width:100%}",""]);const a=s},3117:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(8081),i=n.n(r),o=n(3645),s=n.n(o)()(i());s.push([e.id,"#profile-page .form-table .pods-field-option .pods-form-ui-field.pods-form-ui-field-type-paragraph,.pods-field-option .pods-form-ui-field.pods-form-ui-field-type-paragraph{min-height:200px;width:100%;box-sizing:border-box}",""]);const a=s},2810:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(8081),i=n.n(r),o=n(3645),s=n.n(o)()(i());s.push([e.id,"ul.pods-checkbox-pick,ul.pods-checkbox-pick li{list-style:none}",""]);const a=s},4039:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(8081),i=n.n(r),o=n(3645),s=n.n(o)()(i());s.push([e.id,".pods-list-select-values{background:#fff;margin:0 0 5px 0;padding:0;border-radius:0;border:1px solid #dfdfdf}.pods-list-select-values:empty{display:none}.pods-list-select-item{display:block;padding:6px 10px;margin:0;border-bottom:1px solid #efefef}.pods-list-select-item:nth-child(even){background:#fcfcfc}.pods-list-select-item:hover{background:#f5f5f5}.pods-list-select-item:last-of-type{border-bottom:0}.pods-list-select-item--is-dragging{background:#efefef}.pods-list-select-item--overlay{box-shadow:0 0 0 3px rgba(63,63,68,.05),-1px 0 4px 0 rgba(34,33,81,.01),0px 4px 4px 0 rgba(34,33,81,.25)}.pods-list-select-item__inner{align-items:center;display:flex;flex-flow:row nowrap;margin:0}.pods-list-select-item__col{display:block;margin:0;padding:0;text-align:left}.pods-list-select-item__drag-handle{width:30px;flex:0 0 30px;opacity:.2;padding:4px 0}.pods-list-select-item__move-buttons{display:flex;flex-flow:column nowrap;padding-left:1px}.pods-list-select-item__move-buttons .pods-list-select-item__move-button{background:rgba(0,0,0,0);border:none;height:16px;padding:0}.pods-list-select-item__move-buttons .pods-list-select-item__move-button--disabled{opacity:.3}.pods-list-select-item__icon{width:40px;margin:0 10px;font-size:0;line-height:32px;text-align:center}.pods-list-select-item__icon:first-child{margin-left:0}.pods-list-select-item__icon>img{display:inline-block;vertical-align:middle;float:none;border-radius:2px;margin:0;max-height:100%;max-width:100%;width:auto}.pods-list-select-item__icon>span.pinkynail{font-size:32px;width:32px;height:32px}.pods-list-select-item__name{border-bottom:none;line-height:24px;margin:0;overflow:hidden;padding:3px 0;user-select:none;flex-grow:1;word-break:break-word}.pods-list-select-item__edit,.pods-list-select-item__view,.pods-list-select-item__remove{width:25px}.pods-list-select-item__link{display:block;opacity:.4;text-decoration:none;color:#616161}",""]);const a=s},2235:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(8081),i=n.n(r),o=n(3645),s=n.n(o)()(i());s.push([e.id,".pods-form-ui-field-select{width:100%;margin:0;max-width:100%}.pods-form-ui-field-select option{white-space:break-spaces;word-break:break-word}.pods-form-ui-field-select[readonly]{font-style:italic;color:gray}.pods-radio-pick,.pods-checkbox-pick{background:#fff;margin:0 0 5px 0;padding:0;border-radius:0;border:1px solid #dfdfdf;overflow:hidden;max-height:220px;overflow-y:auto}.pods-radio-pick__option,.pods-checkbox-pick__option{background-color:#fff;border-bottom:1px solid #f4f4f4;margin:0;padding:.5em}.pods-radio-pick__option:nth-child(even),.pods-checkbox-pick__option:nth-child(even){background:#fcfcfc}.pods-radio-pick__option .pods-field,.pods-checkbox-pick__option .pods-field{padding:0}.pods-checkbox-pick__option__label,.pods-radio-pick__option__label{display:inline-block;float:none !important;margin:0 !important;padding:0 !important}.pods-checkbox-pick--single{border:none}.pods-checkbox-pick__option--single{border-bottom:none}.pods-checkbox-pick__option--single .pods-checkbox-pick__option__label{margin-left:0}",""]);const a=s},8598:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(8081),i=n.n(r),o=n(3645),s=n.n(o)()(i());s.push([e.id,".pods-dfv-container .pods-tinymce-editor-container{border:none;background:rgba(0,0,0,0)}.pods-tinymce-editor-container .mce-tinymce{border:1px solid #e5e5e5;box-sizing:border-box}.pods-alternate-editor{width:100%}#profile-page .form-table .pods-field-option .wp-editor-container textarea.wp-editor-area,#profile-page .form-table .pods-field-option .wp-editor-container textarea.components-textarea-control__input,.pods-field-option .wp-editor-container textarea.wp-editor-area,.pods-field-option .wp-editor-container textarea.components-textarea-control__input{width:100%;border:none;margin-bottom:0;box-sizing:border-box}.pods-field-wrapper__repeatable-field-table div.quill{background-color:#fff}",""]);const a=s},110:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(8081),i=n.n(r),o=n(3645),s=n.n(o)()(i());s.push([e.id,'.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}',""]);const a=s},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(s[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&s[u[0]]||(void 0!==o&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},9996:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)};var n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function s(e,t){try{return t in e}catch(e){return!1}}function a(e,t,n){var i={};return n.isMergeableObject(e)&&o(e).forEach((function(t){i[t]=r(e[t],n)})),o(t).forEach((function(o){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(s(e,o)&&n.isMergeableObject(t[o])?i[o]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(o,n)(e[o],t[o],n):i[o]=r(t[o],n))})),i}function l(e,n,o){(o=o||{}).arrayMerge=o.arrayMerge||i,o.isMergeableObject=o.isMergeableObject||t,o.cloneUnlessOtherwiseSpecified=r;var s=Array.isArray(n);return s===Array.isArray(e)?s?o.arrayMerge(e,n,o):a(e,n,o):r(n,o)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})};var c=l;e.exports=c},9960:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},3150:e=>{"use strict";e.exports=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},8679:(e,t,n)=>{"use strict";var r=n(1296),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return r.isMemo(e)?s:a[e.$$typeof]||i}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=s;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=p(n);i&&i!==h&&e(t,i,r)}var s=u(n);d&&(s=s.concat(d(n)));for(var a=l(t),O=l(n),m=0;m<s.length;++m){var g=s[m];if(!(o[g]||r&&r[g]||O&&O[g]||a&&a[g])){var y=f(n,g);try{c(t,g,y)}catch(e){}}}}return t}},6103:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,O=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,v=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case a:case s:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case m:case O:case l:return e;default:return t}}case i:return t}}}function $(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=m,t.Memo=O,t.Portal=i,t.Profiler=a,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return $(e)||w(e)===u},t.isConcurrentMode=$,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===O},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===a},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===a||e===s||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===O||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===v||e.$$typeof===g)},t.typeOf=w},1296:(e,t,n)=>{"use strict";e.exports=n(6103)},8552:(e,t,n)=>{var r=n(852)(n(5639),"DataView");e.exports=r},1989:(e,t,n)=>{var r=n(1789),i=n(401),o=n(7667),s=n(1327),a=n(1866);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},8407:(e,t,n)=>{var r=n(7040),i=n(4125),o=n(2117),s=n(7518),a=n(4705);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},7071:(e,t,n)=>{var r=n(852)(n(5639),"Map");e.exports=r},3369:(e,t,n)=>{var r=n(4785),i=n(1285),o=n(6e3),s=n(9916),a=n(5265);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},3818:(e,t,n)=>{var r=n(852)(n(5639),"Promise");e.exports=r},8525:(e,t,n)=>{var r=n(852)(n(5639),"Set");e.exports=r},8668:(e,t,n)=>{var r=n(3369),i=n(619),o=n(2385);function s(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}s.prototype.add=s.prototype.push=i,s.prototype.has=o,e.exports=s},6384:(e,t,n)=>{var r=n(8407),i=n(7465),o=n(3779),s=n(7599),a=n(4758),l=n(4309);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=s,c.prototype.has=a,c.prototype.set=l,e.exports=c},2705:(e,t,n)=>{var r=n(5639).Symbol;e.exports=r},1149:(e,t,n)=>{var r=n(5639).Uint8Array;e.exports=r},577:(e,t,n)=>{var r=n(852)(n(5639),"WeakMap");e.exports=r},4963:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}},4636:(e,t,n)=>{var r=n(2545),i=n(5694),o=n(1469),s=n(4144),a=n(5776),l=n(6719),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),u=!n&&i(e),d=!n&&!u&&s(e),f=!n&&!u&&!d&&l(e),p=n||u||d||f,h=p?r(e.length,String):[],O=h.length;for(var m in e)!t&&!c.call(e,m)||p&&("length"==m||d&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||a(m,O))||h.push(m);return h}},2488:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},2908:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},8470:(e,t,n)=>{var r=n(7813);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},8866:(e,t,n)=>{var r=n(2488),i=n(1469);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},4239:(e,t,n)=>{var r=n(2705),i=n(9607),o=n(2333),s=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?i(e):o(e)}},9454:(e,t,n)=>{var r=n(4239),i=n(7005);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},939:(e,t,n)=>{var r=n(2492),i=n(7005);e.exports=function e(t,n,o,s,a){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,s,e,a))}},2492:(e,t,n)=>{var r=n(6384),i=n(7114),o=n(8351),s=n(6096),a=n(4160),l=n(1469),c=n(4144),u=n(6719),d="[object Arguments]",f="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,O,m,g){var y=l(e),b=l(t),v=y?f:a(e),w=b?f:a(t),$=(v=v==d?p:v)==p,_=(w=w==d?p:w)==p,x=v==w;if(x&&c(e)){if(!c(t))return!1;y=!0,$=!1}if(x&&!$)return g||(g=new r),y||u(e)?i(e,t,n,O,m,g):o(e,t,v,n,O,m,g);if(!(1&n)){var S=$&&h.call(e,"__wrapped__"),Q=_&&h.call(t,"__wrapped__");if(S||Q){var k=S?e.value():e,P=Q?t.value():t;return g||(g=new r),m(k,P,n,O,g)}}return!!x&&(g||(g=new r),s(e,t,n,O,m,g))}},8458:(e,t,n)=>{var r=n(3560),i=n(5346),o=n(3218),s=n(346),a=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,f=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?f:a).test(s(e))}},8749:(e,t,n)=>{var r=n(4239),i=n(1780),o=n(7005),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!s[r(e)]}},280:(e,t,n)=>{var r=n(5726),i=n(6916),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},2545:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},1717:e=>{e.exports=function(e){return function(t){return e(t)}}},4757:e=>{e.exports=function(e,t){return e.has(t)}},4429:(e,t,n)=>{var r=n(5639)["__core-js_shared__"];e.exports=r},7114:(e,t,n)=>{var r=n(8668),i=n(2908),o=n(4757);e.exports=function(e,t,n,s,a,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var f=l.get(e),p=l.get(t);if(f&&p)return f==t&&p==e;var h=-1,O=!0,m=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++h<u;){var g=e[h],y=t[h];if(s)var b=c?s(y,g,h,t,e,l):s(g,y,h,e,t,l);if(void 0!==b){if(b)continue;O=!1;break}if(m){if(!i(t,(function(e,t){if(!o(m,t)&&(g===e||a(g,e,n,s,l)))return m.push(t)}))){O=!1;break}}else if(g!==y&&!a(g,y,n,s,l)){O=!1;break}}return l.delete(e),l.delete(t),O}},8351:(e,t,n)=>{var r=n(2705),i=n(1149),o=n(7813),s=n(7114),a=n(8776),l=n(1814),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,d,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=a;case"[object Set]":var h=1&r;if(p||(p=l),e.size!=t.size&&!h)return!1;var O=f.get(e);if(O)return O==t;r|=2,f.set(e,t);var m=s(p(e),p(t),r,c,d,f);return f.delete(e),m;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},6096:(e,t,n)=>{var r=n(8234),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,s,a){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var f=c[d];if(!(l?f in t:i.call(t,f)))return!1}var p=a.get(e),h=a.get(t);if(p&&h)return p==t&&h==e;var O=!0;a.set(e,t),a.set(t,e);for(var m=l;++d<u;){var g=e[f=c[d]],y=t[f];if(o)var b=l?o(y,g,f,t,e,a):o(g,y,f,e,t,a);if(!(void 0===b?g===y||s(g,y,n,o,a):b)){O=!1;break}m||(m="constructor"==f)}if(O&&!m){var v=e.constructor,w=t.constructor;v==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof w&&w instanceof w||(O=!1)}return a.delete(e),a.delete(t),O}},1957:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},8234:(e,t,n)=>{var r=n(8866),i=n(9551),o=n(3674);e.exports=function(e){return r(e,o,i)}},5050:(e,t,n)=>{var r=n(7019);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},852:(e,t,n)=>{var r=n(8458),i=n(7801);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},9607:(e,t,n)=>{var r=n(2705),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var i=s.call(e);return r&&(t?e[a]=n:delete e[a]),i}},9551:(e,t,n)=>{var r=n(4963),i=n(479),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(e){return null==e?[]:(e=Object(e),r(s(e),(function(t){return o.call(e,t)})))}:i;e.exports=a},4160:(e,t,n)=>{var r=n(8552),i=n(7071),o=n(3818),s=n(8525),a=n(577),l=n(4239),c=n(346),u="[object Map]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",h="[object DataView]",O=c(r),m=c(i),g=c(o),y=c(s),b=c(a),v=l;(r&&v(new r(new ArrayBuffer(1)))!=h||i&&v(new i)!=u||o&&v(o.resolve())!=d||s&&v(new s)!=f||a&&v(new a)!=p)&&(v=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case O:return h;case m:return u;case g:return d;case y:return f;case b:return p}return t}),e.exports=v},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},1789:(e,t,n)=>{var r=n(4536);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:(e,t,n)=>{var r=n(4536),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},1327:(e,t,n)=>{var r=n(4536),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},1866:(e,t,n)=>{var r=n(4536);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},5776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},7019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:(e,t,n)=>{var r,i=n(4429),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},5726:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,t,n)=>{var r=n(8470),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},2117:(e,t,n)=>{var r=n(8470);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},7518:(e,t,n)=>{var r=n(8470);e.exports=function(e){return r(this.__data__,e)>-1}},4705:(e,t,n)=>{var r=n(8470);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},4785:(e,t,n)=>{var r=n(1989),i=n(8407),o=n(7071);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},1285:(e,t,n)=>{var r=n(5050);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},6e3:(e,t,n)=>{var r=n(5050);e.exports=function(e){return r(this,e).get(e)}},9916:(e,t,n)=>{var r=n(5050);e.exports=function(e){return r(this,e).has(e)}},5265:(e,t,n)=>{var r=n(5050);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},8776:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},4536:(e,t,n)=>{var r=n(852)(Object,"create");e.exports=r},6916:(e,t,n)=>{var r=n(5569)(Object.keys,Object);e.exports=r},4e3:(e,t,n)=>{e=n.nmd(e);var r=n(1957),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i&&r.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=a},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},5639:(e,t,n)=>{var r=n(1957),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},619:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2385:e=>{e.exports=function(e){return this.__data__.has(e)}},1814:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},7465:(e,t,n)=>{var r=n(8407);e.exports=function(){this.__data__=new r,this.size=0}},3779:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},7599:e=>{e.exports=function(e){return this.__data__.get(e)}},4758:e=>{e.exports=function(e){return this.__data__.has(e)}},4309:(e,t,n)=>{var r=n(8407),i=n(7071),o=n(3369);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<199)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(e,t),this.size=n.size,this}},346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},5694:(e,t,n)=>{var r=n(9454),i=n(7005),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&s.call(e,"callee")&&!a.call(e,"callee")};e.exports=l},1469:e=>{var t=Array.isArray;e.exports=t},8612:(e,t,n)=>{var r=n(3560),i=n(1780);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},4144:(e,t,n)=>{e=n.nmd(e);var r=n(5639),i=n(5062),o=t&&!t.nodeType&&t,s=o&&e&&!e.nodeType&&e,a=s&&s.exports===o?r.Buffer:void 0,l=(a?a.isBuffer:void 0)||i;e.exports=l},8446:(e,t,n)=>{var r=n(939);e.exports=function(e,t){return r(e,t)}},3560:(e,t,n)=>{var r=n(4239),i=n(3218);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},6719:(e,t,n)=>{var r=n(8749),i=n(1717),o=n(4e3),s=o&&o.isTypedArray,a=s?i(s):r;e.exports=a},3674:(e,t,n)=>{var r=n(4636),i=n(280),o=n(8612);e.exports=function(e){return o(e)?r(e):i(e)}},479:e=>{e.exports=function(){return[]}},5062:e=>{e.exports=function(){return!1}},9430:function(e,t){var n,r,i;r=[],void 0===(i="function"==typeof(n=function(){return function(e){function t(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function n(t){var n,r=t.exec(e.substring(O));if(r)return n=r[0],O+=n.length,n}for(var r,i,o,s,a,l=e.length,c=/^[ \t\n\r\u000c]+/,u=/^[, \t\n\r\u000c]+/,d=/^[^ \t\n\r\u000c]+/,f=/[,]+$/,p=/^\d+$/,h=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,O=0,m=[];;){if(n(u),O>=l)return m;r=n(d),i=[],","===r.slice(-1)?(r=r.replace(f,""),y()):g()}function g(){for(n(c),o="",s="in descriptor";;){if(a=e.charAt(O),"in descriptor"===s)if(t(a))o&&(i.push(o),o="",s="after descriptor");else{if(","===a)return O+=1,o&&i.push(o),void y();if("("===a)o+=a,s="in parens";else{if(""===a)return o&&i.push(o),void y();o+=a}}else if("in parens"===s)if(")"===a)o+=a,s="in descriptor";else{if(""===a)return i.push(o),void y();o+=a}else if("after descriptor"===s)if(t(a));else{if(""===a)return void y();s="in descriptor",O-=1}O+=1}}function y(){var t,n,o,s,a,l,c,u,d,f=!1,O={};for(s=0;s<i.length;s++)l=(a=i[s])[a.length-1],c=a.substring(0,a.length-1),u=parseInt(c,10),d=parseFloat(c),p.test(c)&&"w"===l?((t||n)&&(f=!0),0===u?f=!0:t=u):h.test(c)&&"x"===l?((t||n||o)&&(f=!0),d<0?f=!0:n=d):p.test(c)&&"h"===l?((o||n)&&(f=!0),0===u?f=!0:o=u):f=!0;f?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+a+"'."):(O.url=r,t&&(O.w=t),n&&(O.d=n),o&&(O.h=o),m.push(O))}}})?n.apply(t,r):n)||(e.exports=i)},4241:e=>{var t=String,n=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t}};e.exports=n(),e.exports.createColors=n},1353:(e,t,n)=>{"use strict";let r=n(1019);class i extends r{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}e.exports=i,i.default=i,r.registerAtRule(i)},9932:(e,t,n)=>{"use strict";let r=n(5631);class i extends r{constructor(e){super(e),this.type="comment"}}e.exports=i,i.default=i},1019:(e,t,n)=>{"use strict";let r,i,o,s,{isClean:a,my:l}=n(5513),c=n(4258),u=n(9932),d=n(5631);function f(e){return e.map((e=>(e.nodes&&(e.nodes=f(e.nodes)),delete e.source,e)))}function p(e){if(e[a]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)p(t)}class h extends d{push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}each(e){if(!this.proxyOf.nodes)return;let t,n,r=this.getIterator();for(;this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],n=e(this.proxyOf.nodes[t],t),!1!==n);)this.indexes[r]+=1;return delete this.indexes[r],n}walk(e){return this.each(((t,n)=>{let r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return!1!==r&&t.walk&&(r=t.walk(e)),r}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("decl"===n.type&&e.test(n.prop))return t(n,r)})):this.walk(((n,r)=>{if("decl"===n.type&&n.prop===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("decl"===e.type)return t(e,n)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("rule"===n.type&&e.test(n.selector))return t(n,r)})):this.walk(((n,r)=>{if("rule"===n.type&&n.selector===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("rule"===e.type)return t(e,n)})))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("atrule"===n.type&&e.test(n.name))return t(n,r)})):this.walk(((n,r)=>{if("atrule"===n.type&&n.name===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("atrule"===e.type)return t(e,n)})))}walkComments(e){return this.walk(((t,n)=>{if("comment"===t.type)return e(t,n)}))}append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}insertBefore(e,t){let n,r=0===(e=this.index(e))&&"prepend",i=this.normalize(t,this.proxyOf.nodes[e],r).reverse();for(let t of i)this.proxyOf.nodes.splice(e,0,t);for(let t in this.indexes)n=this.indexes[t],e<=n&&(this.indexes[t]=n+i.length);return this.markDirty(),this}insertAfter(e,t){e=this.index(e);let n,r=this.normalize(t,this.proxyOf.nodes[e]).reverse();for(let t of r)this.proxyOf.nodes.splice(e+1,0,t);for(let t in this.indexes)n=this.indexes[t],e<n&&(this.indexes[t]=n+r.length);return this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls((r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))})),this.markDirty(),this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}normalize(e,t){if("string"==typeof e)e=f(r(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new c(e)]}else if(e.selector)e=[new i(e)];else if(e.name)e=[new o(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new u(e)]}return e.map((e=>(e[l]||h.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[a]&&p(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e)))}getProxyProcessor(){return{set:(e,t,n)=>(e[t]===n||(e[t]=n,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0),get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...n)=>e[t](...n.map((e=>"function"==typeof e?(t,n)=>e(t.toProxy(),n):e))):"every"===t||"some"===t?n=>e[t](((e,...t)=>n(e.toProxy(),...t))):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map((e=>e.toProxy())):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}}h.registerParse=e=>{r=e},h.registerRule=e=>{i=e},h.registerAtRule=e=>{o=e},h.registerRoot=e=>{s=e},e.exports=h,h.default=h,h.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,o.prototype):"rule"===e.type?Object.setPrototypeOf(e,i.prototype):"decl"===e.type?Object.setPrototypeOf(e,c.prototype):"comment"===e.type?Object.setPrototypeOf(e,u.prototype):"root"===e.type&&Object.setPrototypeOf(e,s.prototype),e[l]=!0,e.nodes&&e.nodes.forEach((e=>{h.rebuild(e)}))}},2671:(e,t,n)=>{"use strict";let r=n(4241),i=n(2868);class o extends Error{constructor(e,t,n,r,i,s){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),r&&(this.source=r),s&&(this.plugin=s),void 0!==t&&void 0!==n&&("number"==typeof t?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,o)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=r.isColorSupported),i&&e&&(t=i(t));let n,o,s=t.split(/\r?\n/),a=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),c=String(l).length;if(e){let{bold:e,red:t,gray:i}=r.createColors(!0);n=n=>e(t(n)),o=e=>i(e)}else n=o=e=>e;return s.slice(a,l).map(((e,t)=>{let r=a+1+t,i=" "+(" "+r).slice(-c)+" | ";if(r===this.line){let t=o(i.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+o(i)+e+"\n "+t+n("^")}return" "+o(i)+e})).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}e.exports=o,o.default=o},4258:(e,t,n)=>{"use strict";let r=n(5631);class i extends r{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}e.exports=i,i.default=i},6461:(e,t,n)=>{"use strict";let r,i,o=n(1019);class s extends o{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new r(new i,this,e).stringify()}}s.registerLazyResult=e=>{r=e},s.registerProcessor=e=>{i=e},e.exports=s,s.default=s},250:(e,t,n)=>{"use strict";let r=n(4258),i=n(7981),o=n(9932),s=n(1353),a=n(5995),l=n(1025),c=n(1675);function u(e,t){if(Array.isArray(e))return e.map((e=>u(e)));let{inputs:n,...d}=e;if(n){t=[];for(let e of n){let n={...e,__proto__:a.prototype};n.map&&(n.map={...n.map,__proto__:i.prototype}),t.push(n)}}if(d.nodes&&(d.nodes=e.nodes.map((e=>u(e,t)))),d.source){let{inputId:e,...n}=d.source;d.source=n,null!=e&&(d.source.input=t[e])}if("root"===d.type)return new l(d);if("decl"===d.type)return new r(d);if("rule"===d.type)return new c(d);if("comment"===d.type)return new o(d);if("atrule"===d.type)return new s(d);throw new Error("Unknown node type: "+e.type)}e.exports=u,u.default=u},5995:(e,t,n)=>{"use strict";let{SourceMapConsumer:r,SourceMapGenerator:i}=n(209),{fileURLToPath:o,pathToFileURL:s}=n(7414),{resolve:a,isAbsolute:l}=n(9830),{nanoid:c}=n(2618),u=n(2868),d=n(2671),f=n(7981),p=Symbol("fromOffsetCache"),h=Boolean(r&&i),O=Boolean(a&&l);class m{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!O||/^\w+:\/\//.test(t.from)||l(t.from)?this.file=t.from:this.file=a(t.from)),O&&h){let e=new f(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+c(6)+">"),this.map&&(this.map.file=this.from)}fromOffset(e){let t,n;if(this[p])n=this[p];else{let e=this.css.split("\n");n=new Array(e.length);let t=0;for(let r=0,i=e.length;r<i;r++)n[r]=t,t+=e[r].length+1;this[p]=n}t=n[n.length-1];let r=0;if(e>=t)r=n.length-1;else{let t,i=n.length-2;for(;r<i;)if(t=r+(i-r>>1),e<n[t])i=t-1;else{if(!(e>=n[t+1])){r=t;break}r=t+1}}return{line:r+1,col:e-n[r]+1}}error(e,t,n,r={}){let i,o,a;if(t&&"object"==typeof t){let e=t,r=n;if("number"==typeof t.offset){let r=this.fromOffset(e.offset);t=r.line,n=r.col}else t=e.line,n=e.column;if("number"==typeof r.offset){let e=this.fromOffset(r.offset);o=e.line,a=e.col}else o=r.line,a=r.column}else if(!n){let e=this.fromOffset(t);t=e.line,n=e.col}let l=this.origin(t,n,o,a);return i=l?new d(e,void 0===l.endLine?l.line:{line:l.line,column:l.column},void 0===l.endLine?l.column:{line:l.endLine,column:l.endColumn},l.source,l.file,r.plugin):new d(e,void 0===o?t:{line:t,column:n},void 0===o?n:{line:o,column:a},this.css,this.file,r.plugin),i.input={line:t,column:n,endLine:o,endColumn:a,source:this.css},this.file&&(s&&(i.input.url=s(this.file).toString()),i.input.file=this.file),i}origin(e,t,n,r){if(!this.map)return!1;let i,a,c=this.map.consumer(),u=c.originalPositionFor({line:e,column:t});if(!u.source)return!1;"number"==typeof n&&(i=c.originalPositionFor({line:n,column:r})),a=l(u.source)?s(u.source):new URL(u.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let d={url:a.toString(),line:u.line,column:u.column,endLine:i&&i.line,endColumn:i&&i.column};if("file:"===a.protocol){if(!o)throw new Error("file: protocol is not available in this PostCSS build");d.file=o(a)}let f=c.sourceContentFor(u.source);return f&&(d.source=f),d}mapResolve(e){return/^\w+:\/\//.test(e)?e:a(this.map.consumer().sourceRoot||this.map.root||".",e)}get from(){return this.file||this.id}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}}e.exports=m,m.default=m,u&&u.registerInput&&u.registerInput(m)},1939:(e,t,n)=>{"use strict";let{isClean:r,my:i}=n(5513),o=n(8505),s=n(7088),a=n(1019),l=n(6461),c=(n(2448),n(3632)),u=n(6939),d=n(1025);const f={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},p={postcssPlugin:!0,prepare:!0,Once:!0,Document:!0,Root:!0,Declaration:!0,Rule:!0,AtRule:!0,Comment:!0,DeclarationExit:!0,RuleExit:!0,AtRuleExit:!0,CommentExit:!0,RootExit:!0,DocumentExit:!0,OnceExit:!0},h={postcssPlugin:!0,prepare:!0,Once:!0};function O(e){return"object"==typeof e&&"function"==typeof e.then}function m(e){let t=!1,n=f[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,0,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,0,n+"Exit"]:[n,n+"Exit"]}function g(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:m(e),{node:e,events:t,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function y(e){return e[r]=!1,e.nodes&&e.nodes.forEach((e=>y(e))),e}let b={};class v{constructor(e,t,n){let r;if(this.stringified=!1,this.processed=!1,"object"!=typeof t||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof v||t instanceof c)r=y(t.root),t.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{let e=u;n.syntax&&(e=n.syntax.parse),n.parser&&(e=n.parser),e.parse&&(e=e.parse);try{r=e(t,n)}catch(e){this.processed=!0,this.error=e}r&&!r[i]&&a.rebuild(r)}else r=y(t);this.result=new c(e,r,n),this.helpers={...b,result:this.result,postcss:b},this.plugins=this.processor.plugins.map((e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e))}get[Symbol.toStringTag](){return"LazyResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.stringify().css}get content(){return this.stringify().content}get map(){return this.stringify().map}get root(){return this.sync().root}get messages(){return this.sync().messages}warnings(){return this.sync().warnings()}toString(){return this.css}then(e,t){return this.async().then(e,t)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){if(O(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[r];)e[r]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=s;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=new o(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}walkSync(e){e[r]=!0;let t=m(e);for(let n of t)if(0===n)e.nodes&&e.each((e=>{e[r]||this.walkSync(e)}));else{let t=this.listeners[n];if(t&&this.visitSync(t,e.toProxy()))return}}visitSync(e,t){for(let[n,r]of e){let e;this.result.lastPlugin=n;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(O(e))throw this.getAsyncError()}}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map((t=>e.Once(t,this.helpers)));return O(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?n.postcssVersion:(e.plugin=n.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(O(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[r];){e[r]=!0;let t=[g(e)];for(;t.length>0;){let e=this.visitTick(t);if(O(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map((e=>n(e,this.helpers)));await Promise.all(t)}else await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if("object"==typeof t)for(let n in t){if(!p[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!h[n])if("object"==typeof t[n])for(let r in t[n])e(t,"*"===r?n:n+"-"+r.toLowerCase(),t[n][r]);else"function"==typeof t[n]&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(e){let t=e[e.length-1],{node:n,visitors:i}=t;if("root"!==n.type&&"document"!==n.type&&!n.parent)return void e.pop();if(i.length>0&&t.visitorIndex<i.length){let[e,r]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return r(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(0!==t.iterator){let i,o=t.iterator;for(;i=n.nodes[n.indexes[o]];)if(n.indexes[o]+=1,!i[r])return i[r]=!0,void e.push(g(i));t.iterator=0,delete n.indexes[o]}let o=t.events;for(;t.eventIndex<o.length;){let e=o[t.eventIndex];if(t.eventIndex+=1,0===e)return void(n.nodes&&n.nodes.length&&(n[r]=!0,t.iterator=n.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}}v.registerPostcss=e=>{b=e},e.exports=v,v.default=v,d.registerLazyResult(v),l.registerLazyResult(v)},4715:e=>{"use strict";let t={split(e,t,n){let r=[],i="",o=!1,s=0,a=!1,l="",c=!1;for(let n of e)c?c=!1:"\\"===n?c=!0:a?n===l&&(a=!1):'"'===n||"'"===n?(a=!0,l=n):"("===n?s+=1:")"===n?s>0&&(s-=1):0===s&&t.includes(n)&&(o=!0),o?(""!==i&&r.push(i.trim()),i="",o=!1):i+=n;return(n||""!==i)&&r.push(i.trim()),r},space:e=>t.split(e,[" ","\n","\t"]),comma:e=>t.split(e,[","],!0)};e.exports=t,t.default=t},8505:(e,t,n)=>{"use strict";let{SourceMapConsumer:r,SourceMapGenerator:i}=n(209),{dirname:o,resolve:s,relative:a,sep:l}=n(9830),{pathToFileURL:c}=n(7414),u=n(5995),d=Boolean(r&&i),f=Boolean(o&&s&&a&&l);e.exports=class{constructor(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}}));else{let e=new u(this.css,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((e=>e.inline)))}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((e=>e.withContent()))}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}setSourcesContent(){let e={};if(this.root)this.root.walk((t=>{if(t.source){let n=t.source.input.from;n&&!e[n]&&(e[n]=!0,this.map.setSourceContent(this.toUrl(this.path(n)),t.source.input.css))}}));else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}applyPrevMaps(){for(let e of this.previous()){let t,n=this.toUrl(this.path(e.file)),i=e.root||o(e.file);!1===this.mapOpts.sourcesContent?(t=new r(e.text),t.sourcesContent&&(t.sourcesContent=t.sourcesContent.map((()=>null)))):t=e.consumer(),this.map.applySourceMap(t,n,this.toUrl(this.path(i)))}}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((e=>e.annotation)))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=i.fromSourceMap(e)}else this.map=new i({file:this.outputFile()}),this.map.addMapping({source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>",generated:{line:1,column:0},original:{line:1,column:0}});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}path(e){if(0===e.indexOf("<"))return e;if(/^\w+:\/\//.test(e))return e;if(this.mapOpts.absolute)return e;let t=this.opts.to?o(this.opts.to):".";return"string"==typeof this.mapOpts.annotation&&(t=o(s(t,this.mapOpts.annotation))),e=a(t,e)}toUrl(e){return"\\"===l&&(e=e.replace(/\\/g,"/")),encodeURI(e).replace(/[#?]/g,encodeURIComponent)}sourcePath(e){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);if(this.mapOpts.absolute){if(c)return c(e.source.input.from).toString();throw new Error("`map.absolute` option is not available in this PostCSS build")}return this.toUrl(this.path(e.source.input.from))}generateString(){this.css="",this.map=new i({file:this.outputFile()});let e,t,n=1,r=1,o="<no source>",s={source:"",generated:{line:0,column:0},original:{line:0,column:0}};this.stringify(this.root,((i,a,l)=>{if(this.css+=i,a&&"end"!==l&&(s.generated.line=n,s.generated.column=r-1,a.source&&a.source.start?(s.source=this.sourcePath(a),s.original.line=a.source.start.line,s.original.column=a.source.start.column-1,this.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,this.map.addMapping(s))),e=i.match(/\n/g),e?(n+=e.length,t=i.lastIndexOf("\n"),r=i.length-t):r+=i.length,a&&"start"!==l){let e=a.parent||{raws:{}};("decl"!==a.type||a!==e.last||e.raws.semicolon)&&(a.source&&a.source.end?(s.source=this.sourcePath(a),s.original.line=a.source.end.line,s.original.column=a.source.end.column-1,s.generated.line=n,s.generated.column=r-2,this.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=r-1,this.map.addMapping(s)))}}))}generate(){if(this.clearAnnotation(),f&&d&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,(t=>{e+=t})),[e]}}}},7647:(e,t,n)=>{"use strict";let r=n(8505),i=n(7088),o=(n(2448),n(6939));const s=n(3632);class a{constructor(e,t,n){let o;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let a=i;this.result=new s(this._processor,o,this._opts),this.result.css=t;let l=this;Object.defineProperty(this.result,"root",{get:()=>l.root});let c=new r(a,o,this._opts,t);if(c.isMap()){let[e,t]=c.generate();e&&(this.result.css=e),t&&(this.result.map=t)}}get[Symbol.toStringTag](){return"NoWorkResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.result.css}get content(){return this.result.css}get map(){return this.result.map}get root(){if(this._root)return this._root;let e,t=o;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get messages(){return[]}warnings(){return[]}toString(){return this._css}then(e,t){return this.async().then(e,t)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}sync(){if(this.error)throw this.error;return this.result}}e.exports=a,a.default=a},5631:(e,t,n)=>{"use strict";let{isClean:r,my:i}=n(5513),o=n(2671),s=n(1062),a=n(7088);function l(e,t){let n=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;if("proxyCache"===r)continue;let i=e[r],o=typeof i;"parent"===r&&"object"===o?t&&(n[r]=t):"source"===r?n[r]=i:Array.isArray(i)?n[r]=i.map((e=>l(e,n))):("object"===o&&null!==i&&(i=l(i)),n[r]=i)}return n}class c{constructor(e={}){this.raws={},this[r]=!1,this[i]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let n of e[t])"function"==typeof n.clone?this.append(n.clone()):this.append(n)}else this[t]=e[t]}error(e,t={}){if(this.source){let{start:n,end:r}=this.rangeBy(t);return this.source.input.error(e,{line:n.line,column:n.column},{line:r.line,column:r.column},t)}return new o(e)}warn(e,t,n){let r={node:this};for(let e in n)r[e]=n[e];return e.warn(t,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(e=a){e.stringify&&(e=e.stringify);let t="";return e(this,(e=>{t+=e})),t}assign(e={}){for(let t in e)this[t]=e[t];return this}clone(e={}){let t=l(this);for(let n in e)t[n]=e[n];return t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let r of e)r===this?n=!0:n?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);n||this.remove()}return this}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}before(e){return this.parent.insertBefore(this,e),this}after(e){return this.parent.insertAfter(this,e),this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}raw(e,t){return(new s).raw(this,e,t)}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}toJSON(e,t){let n={},r=null==t;t=t||new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let r=this[e];if(Array.isArray(r))n[e]=r.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof r&&r.toJSON)n[e]=r.toJSON(null,t);else if("source"===e){let o=t.get(r.input);null==o&&(o=i,t.set(r.input,i),i++),n[e]={inputId:o,start:r.start,end:r.end}}else n[e]=r}return r&&(n.inputs=[...t.keys()].map((e=>e.toJSON()))),n}positionInside(e){let t=this.toString(),n=this.source.start.column,r=this.source.start.line;for(let i=0;i<e;i++)"\n"===t[i]?(n=1,r+=1):n+=1;return{line:r,column:n}}positionBy(e){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let n=this.toString().indexOf(e.word);-1!==n&&(t=this.positionInside(n))}return t}rangeBy(e){let t={line:this.source.start.line,column:this.source.start.column},n=this.source.end?{line:this.source.end.line,column:this.source.end.column+1}:{line:t.line,column:t.column+1};if(e.word){let r=this.toString().indexOf(e.word);-1!==r&&(t=this.positionInside(r),n=this.positionInside(r+e.word.length))}else e.start?t={line:e.start.line,column:e.start.column}:e.index&&(t=this.positionInside(e.index)),e.end?n={line:e.end.line,column:e.end.column}:e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={line:t.line,column:t.column+1}),{start:t,end:n}}getProxyProcessor(){return{set:(e,t,n)=>(e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0),get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t]}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}markDirty(){if(this[r]){this[r]=!1;let e=this;for(;e=e.parent;)e[r]=!1}}get proxyOf(){return this}}e.exports=c,c.default=c},6939:(e,t,n)=>{"use strict";let r=n(1019),i=n(8867),o=n(5995);function s(e,t){let n=new o(e,t),r=new i(n);try{r.parse()}catch(e){throw e}return r.root}e.exports=s,s.default=s,r.registerParse(s)},8867:(e,t,n)=>{"use strict";let r=n(4258),i=n(3852),o=n(9932),s=n(1353),a=n(1025),l=n(1675);const c={empty:!0,space:!0};e.exports=class{constructor(e){this.input=e,this.root=new a,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=i(this.input)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}comment(e){let t=new o;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]);let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}emptyRule(e){let t=new l;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}other(e){let t=!1,n=null,r=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],l=e;for(;l;){if(n=l[0],a.push(l),"("===n||"["===n)i||(i=l),o.push("("===n?")":"]");else if(s&&r&&"{"===n)i||(i=l),o.push("}");else if(0===o.length){if(";"===n){if(r)return void this.decl(a,s);break}if("{"===n)return void this.rule(a);if("}"===n){this.tokenizer.back(a.pop()),t=!0;break}":"===n&&(r=!0)}else n===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&r){if(!s)for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)}rule(e){e.pop();let t=new l;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}decl(e,t){let n=new r;this.init(n,e[0][2]);let i,o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(o[3]||o[2]||function(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}(e));"word"!==e[0][0];)1===e.length&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(i=e.shift(),":"===i[0]){n.raws.between+=i[1];break}"word"===i[0]&&/\w/.test(i[1])&&this.unknownWord([i]),n.raws.between+=i[1]}"_"!==n.prop[0]&&"*"!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let s,a=[];for(;e.length&&(s=e[0][0],"space"===s||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(i=e[t],"!important"===i[1].toLowerCase()){n.important=!0;let r=this.stringFrom(e,t);r=this.spacesFromEnd(e)+r," !important"!==r&&(n.raws.important=r);break}if("important"===i[1].toLowerCase()){let r=e.slice(0),i="";for(let e=t;e>0;e--){let t=r[e][0];if(0===i.trim().indexOf("!")&&"space"!==t)break;i=r.pop()[1]+i}0===i.trim().indexOf("!")&&(n.important=!0,n.raws.important=i,e=r)}if("space"!==i[0]&&"comment"!==i[0])break}e.some((e=>"space"!==e[0]&&"comment"!==e[0]))&&(n.raws.between+=a.map((e=>e[1])).join(""),a=[]),this.raw(n,"value",a.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}atrule(e){let t,n,r,i=new s;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);let o=!1,a=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),this.semicolon=!0;break}if("{"===t){a=!0;break}if("}"===t){if(l.length>0){for(r=l.length-1,n=l[r];n&&"space"===n[0];)n=l[--r];n&&(i.source.end=this.getPosition(n[3]||n[2]))}this.end(e);break}l.push(e)}else l.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(i.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(i,"params",l),o&&(e=l[l.length-1],i.source.end=this.getPosition(e[3]||e[2]),this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),a&&(i.nodes=[],this.current=i)}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{offset:e,line:t.line,column:t.col}}init(e,t){this.current.push(e),e.source={start:this.getPosition(t),input:this.input},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}raw(e,t,n,r){let i,o,s,a,l=n.length,u="",d=!0;for(let e=0;e<l;e+=1)i=n[e],o=i[0],"space"!==o||e!==l-1||r?"comment"===o?(a=n[e-1]?n[e-1][0]:"empty",s=n[e+1]?n[e+1][0]:"empty",c[a]||c[s]||","===u.slice(-1)?d=!1:u+=i[1]):u+=i[1]:d=!1;if(!d){let r=n.reduce(((e,t)=>e+t[1]),"");e.raws[t]={value:u,raw:r}}e[t]=u}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}colon(e){let t,n,r,i=0;for(let[o,s]of e.entries()){if(t=s,n=t[0],"("===n&&(i+=1),")"===n&&(i-=1),0===i&&":"===n){if(r){if("word"===r[0]&&"progid"===r[1])continue;return o}this.doubleColon(t)}r=t}return!1}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}precheckMissedSemicolon(){}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let n,r=0;for(let i=t-1;i>=0&&(n=e[i],"space"===n[0]||(r+=1,2!==r));i--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}}},20:(e,t,n)=>{"use strict";let r=n(2671),i=n(4258),o=n(1939),s=n(1019),a=n(1723),l=n(7088),c=n(250),u=n(6461),d=n(1728),f=n(9932),p=n(1353),h=n(3632),O=n(5995),m=n(6939),g=n(4715),y=n(1675),b=n(1025),v=n(5631);function w(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new a(e)}w.plugin=function(e,t){let n,r=!1;function i(...n){console&&console.warn&&!r&&(r=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let i=t(...n);return i.postcssPlugin=e,i.postcssVersion=(new a).version,i}return Object.defineProperty(i,"postcss",{get:()=>(n||(n=i()),n)}),i.process=function(e,t,n){return w([i(n)]).process(e,t)},i},w.stringify=l,w.parse=m,w.fromJSON=c,w.list=g,w.comment=e=>new f(e),w.atRule=e=>new p(e),w.decl=e=>new i(e),w.rule=e=>new y(e),w.root=e=>new b(e),w.document=e=>new u(e),w.CssSyntaxError=r,w.Declaration=i,w.Container=s,w.Processor=a,w.Document=u,w.Comment=f,w.Warning=d,w.AtRule=p,w.Result=h,w.Input=O,w.Rule=y,w.Root=b,w.Node=v,o.registerPostcss(w),e.exports=w,w.default=w},7981:(e,t,n)=>{"use strict";let{SourceMapConsumer:r,SourceMapGenerator:i}=n(209),{existsSync:o,readFileSync:s}=n(4777),{dirname:a,join:l}=n(9830);class c{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=a(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new r(this.text)),this.consumerCache}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(e,t){return!!e&&e.substr(0,t.length)===t}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let n=e.lastIndexOf(t.pop()),r=e.indexOf("*/",n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t;let n=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+n)}loadFile(e){if(this.root=a(e),o(e))return this.mapFile=e,s(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof r)return i.fromSourceMap(t).toString();if(t instanceof i)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let n=t(e);if(n){let e=this.loadFile(n);if(!e)throw new Error("Unable to load previous source map: "+n.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=l(a(e),t)),this.loadFile(t)}}}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}}e.exports=c,c.default=c},1723:(e,t,n)=>{"use strict";let r=n(7647),i=n(1939),o=n(6461),s=n(1025);class a{constructor(e=[]){this.version="8.4.16",this.plugins=this.normalize(e)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}process(e,t={}){return 0===this.plugins.length&&void 0===t.parser&&void 0===t.stringifier&&void 0===t.syntax?new r(this,e,t):new i(this,e,t)}normalize(e){let t=[];for(let n of e)if(!0===n.postcss?n=n():n.postcss&&(n=n.postcss),"object"==typeof n&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if("object"==typeof n&&n.postcssPlugin)t.push(n);else if("function"==typeof n)t.push(n);else{if("object"!=typeof n||!n.parse&&!n.stringify)throw new Error(n+" is not a PostCSS plugin")}return t}}e.exports=a,a.default=a,s.registerProcessor(a),o.registerProcessor(a)},3632:(e,t,n)=>{"use strict";let r=n(1728);class i{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new r(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter((e=>"warning"===e.type))}get content(){return this.css}}e.exports=i,i.default=i},1025:(e,t,n)=>{"use strict";let r,i,o=n(1019);class s extends o{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}removeChild(e,t){let n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}normalize(e,t,n){let r=super.normalize(e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of r)e.raws.before=t.raws.before;return r}toResult(e={}){return new r(new i,this,e).stringify()}}s.registerLazyResult=e=>{r=e},s.registerProcessor=e=>{i=e},e.exports=s,s.default=s,o.registerRoot(s)},1675:(e,t,n)=>{"use strict";let r=n(1019),i=n(4715);class o extends r{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return i.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}e.exports=o,o.default=o,r.registerRule(o)},1062:e=>{"use strict";const t={colon:": ",indent:" ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};class n{constructor(e){this.builder=e}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}document(e){this.body(e)}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}decl(e,t){let n=this.raw(e,"between","colon"),r=e.prop+n+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}atrule(e,t){let n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes)this.block(e,n+r);else{let i=(e.raws.between||"")+(t?";":"");this.builder(n+r+i,e)}}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let n=this.raw(e,"semicolon");for(let r=0;r<e.nodes.length;r++){let i=e.nodes[r],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==r||n)}}block(e,t){let n,r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")}raw(e,n,r){let i;if(r||(r=n),n&&(i=e.raws[n],void 0!==i))return i;let o=e.parent;if("before"===r){if(!o||"root"===o.type&&o.first===e)return"";if(o&&"document"===o.type)return""}if(!o)return t[r];let s=e.root();if(s.rawCache||(s.rawCache={}),void 0!==s.rawCache[r])return s.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);{let t="raw"+((a=r)[0].toUpperCase()+a.slice(1));this[t]?i=this[t](s,e):s.walk((e=>{if(i=e.raws[n],void 0!==i)return!1}))}var a;return void 0===i&&(i=t[r]),s.rawCache[r]=i,i}rawSemicolon(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1})),t}rawEmptyBody(e){let t;return e.walk((e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1})),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk((n=>{let r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==n.raws.before){let e=n.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}})),t}rawBeforeComment(e,t){let n;return e.walkComments((e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls((e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeRule(e){let t;return e.walk((n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return t=n.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeClose(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeOpen(e){let t;return e.walk((e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1})),t}rawColon(e){let t;return e.walkDecls((e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}beforeAfter(e,t){let n;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let r=e.parent,i=0;for(;r&&"root"!==r.type;)i+=1,r=r.parent;if(n.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<i;e++)n+=t}return n}rawValue(e,t){let n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n}}e.exports=n,n.default=n},7088:(e,t,n)=>{"use strict";let r=n(1062);function i(e,t){new r(t).stringify(e)}e.exports=i,i.default=i},5513:e=>{"use strict";e.exports.isClean=Symbol("isClean"),e.exports.my=Symbol("my")},3852:e=>{"use strict";const t="'".charCodeAt(0),n='"'.charCodeAt(0),r="\\".charCodeAt(0),i="/".charCodeAt(0),o="\n".charCodeAt(0),s=" ".charCodeAt(0),a="\f".charCodeAt(0),l="\t".charCodeAt(0),c="\r".charCodeAt(0),u="[".charCodeAt(0),d="]".charCodeAt(0),f="(".charCodeAt(0),p=")".charCodeAt(0),h="{".charCodeAt(0),O="}".charCodeAt(0),m=";".charCodeAt(0),g="*".charCodeAt(0),y=":".charCodeAt(0),b="@".charCodeAt(0),v=/[\t\n\f\r "#'()/;[\\\]{}]/g,w=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,$=/.[\n"'(/\\]/,_=/[\da-f]/i;e.exports=function(e,x={}){let S,Q,k,P,T,q,R,E,j,N,C=e.css.valueOf(),A=x.ignoreErrors,z=C.length,D=0,W=[],V=[];function X(t){throw e.error("Unclosed "+t,D)}return{back:function(e){V.push(e)},nextToken:function(e){if(V.length)return V.pop();if(D>=z)return;let x=!!e&&e.ignoreUnclosed;switch(S=C.charCodeAt(D),S){case o:case s:case l:case c:case a:Q=D;do{Q+=1,S=C.charCodeAt(Q)}while(S===s||S===o||S===l||S===c||S===a);N=["space",C.slice(D,Q)],D=Q-1;break;case u:case d:case h:case O:case y:case m:case p:{let e=String.fromCharCode(S);N=[e,e,D];break}case f:if(E=W.length?W.pop()[1]:"",j=C.charCodeAt(D+1),"url"===E&&j!==t&&j!==n&&j!==s&&j!==o&&j!==l&&j!==a&&j!==c){Q=D;do{if(q=!1,Q=C.indexOf(")",Q+1),-1===Q){if(A||x){Q=D;break}X("bracket")}for(R=Q;C.charCodeAt(R-1)===r;)R-=1,q=!q}while(q);N=["brackets",C.slice(D,Q+1),D,Q],D=Q}else Q=C.indexOf(")",D+1),P=C.slice(D,Q+1),-1===Q||$.test(P)?N=["(","(",D]:(N=["brackets",P,D,Q],D=Q);break;case t:case n:k=S===t?"'":'"',Q=D;do{if(q=!1,Q=C.indexOf(k,Q+1),-1===Q){if(A||x){Q=D+1;break}X("string")}for(R=Q;C.charCodeAt(R-1)===r;)R-=1,q=!q}while(q);N=["string",C.slice(D,Q+1),D,Q],D=Q;break;case b:v.lastIndex=D+1,v.test(C),Q=0===v.lastIndex?C.length-1:v.lastIndex-2,N=["at-word",C.slice(D,Q+1),D,Q],D=Q;break;case r:for(Q=D,T=!0;C.charCodeAt(Q+1)===r;)Q+=1,T=!T;if(S=C.charCodeAt(Q+1),T&&S!==i&&S!==s&&S!==o&&S!==l&&S!==c&&S!==a&&(Q+=1,_.test(C.charAt(Q)))){for(;_.test(C.charAt(Q+1));)Q+=1;C.charCodeAt(Q+1)===s&&(Q+=1)}N=["word",C.slice(D,Q+1),D,Q],D=Q;break;default:S===i&&C.charCodeAt(D+1)===g?(Q=C.indexOf("*/",D+2)+1,0===Q&&(A||x?Q=C.length:X("comment")),N=["comment",C.slice(D,Q+1),D,Q],D=Q):(w.lastIndex=D+1,w.test(C),Q=0===w.lastIndex?C.length-1:w.lastIndex-2,N=["word",C.slice(D,Q+1),D,Q],W.push(N),D=Q)}return D++,N},endOfFile:function(){return 0===V.length&&D>=z},position:function(){return D}}}},2448:e=>{"use strict";let t={};e.exports=function(e){t[e]||(t[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))}},1728:e=>{"use strict";class t{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}e.exports=t,t.default=t},2703:(e,t,n)=>{"use strict";var r=n(414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,s){if(s!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},5697:(e,t,n)=>{e.exports=n(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6095:function(e){var t;"undefined"!=typeof self&&self,t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),i=n(18),o=n(19),s=n(45),a=n(46),l=n(47),c=n(48),u=n(49),d=n(12),f=n(32),p=n(33),h=n(31),O=n(1),m={Scope:O.Scope,create:O.create,find:O.find,query:O.query,register:O.register,Container:r.default,Format:i.default,Leaf:o.default,Embed:c.default,Scroll:s.default,Block:l.default,Inline:a.default,Text:u.default,Attributor:{Attribute:d.default,Class:f.default,Style:p.default,Store:h.default}};t.default=m},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t){var n=this;return t="[Parchment] "+t,(n=e.call(this,t)||this).message=t,n.name=n.constructor.name,n}return i(t,e),t}(Error);t.ParchmentError=o;var s,a={},l={},c={},u={};function d(e,t){var n;if(void 0===t&&(t=s.ANY),"string"==typeof e)n=u[e]||a[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)n=u.text;else if("number"==typeof e)e&s.LEVEL&s.BLOCK?n=u.block:e&s.LEVEL&s.INLINE&&(n=u.inline);else if(e instanceof HTMLElement){var r=(e.getAttribute("class")||"").split(/\s+/);for(var i in r)if(n=l[r[i]])break;n=n||c[e.tagName]}return null==n?null:t&s.LEVEL&n.scope&&t&s.TYPE&n.scope?n:null}t.DATA_KEY="__blot",function(e){e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY"}(s=t.Scope||(t.Scope={})),t.create=function(e,t){var n=d(e);if(null==n)throw new o("Unable to create "+e+" blot");var r=n,i=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:r.create(t);return new r(i,t)},t.find=function e(n,r){return void 0===r&&(r=!1),null==n?null:null!=n[t.DATA_KEY]?n[t.DATA_KEY].blot:r?e(n.parentNode,r):null},t.query=d,t.register=function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(t.length>1)return t.map((function(t){return e(t)}));var r=t[0];if("string"!=typeof r.blotName&&"string"!=typeof r.attrName)throw new o("Invalid definition");if("abstract"===r.blotName)throw new o("Cannot register abstract class");if(u[r.blotName||r.attrName]=r,"string"==typeof r.keyName)a[r.keyName]=r;else if(null!=r.className&&(l[r.className]=r),null!=r.tagName){Array.isArray(r.tagName)?r.tagName=r.tagName.map((function(e){return e.toUpperCase()})):r.tagName=r.tagName.toUpperCase();var i=Array.isArray(r.tagName)?r.tagName:[r.tagName];i.forEach((function(e){null!=c[e]&&null!=r.className||(c[e]=r)}))}return r}},function(e,t,n){var r=n(51),i=n(11),o=n(3),s=n(20),a=String.fromCharCode(0),l=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};l.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},l.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},l.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},l.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=o(!0,{},e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(i(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},l.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},l.prototype.filter=function(e){return this.ops.filter(e)},l.prototype.forEach=function(e){this.ops.forEach(e)},l.prototype.map=function(e){return this.ops.map(e)},l.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(r){(e(r)?t:n).push(r)})),[t,n]},l.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},l.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+s.length(t):t.delete?e-t.delete:e}),0)},l.prototype.length=function(){return this.reduce((function(e,t){return e+s.length(t)}),0)},l.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var n=[],r=s.iterator(this.ops),i=0;i<t&&r.hasNext();){var o;i<e?o=r.next(e-i):(o=r.next(t-i),n.push(o)),i+=s.length(o)}return new l(n)},l.prototype.compose=function(e){var t=s.iterator(this.ops),n=s.iterator(e.ops),r=[],o=n.peek();if(null!=o&&"number"==typeof o.retain&&null==o.attributes){for(var a=o.retain;"insert"===t.peekType()&&t.peekLength()<=a;)a-=t.peekLength(),r.push(t.next());o.retain-a>0&&n.next(o.retain-a)}for(var c=new l(r);t.hasNext()||n.hasNext();)if("insert"===n.peekType())c.push(n.next());else if("delete"===t.peekType())c.push(t.next());else{var u=Math.min(t.peekLength(),n.peekLength()),d=t.next(u),f=n.next(u);if("number"==typeof f.retain){var p={};"number"==typeof d.retain?p.retain=u:p.insert=d.insert;var h=s.attributes.compose(d.attributes,f.attributes,"number"==typeof d.retain);if(h&&(p.attributes=h),c.push(p),!n.hasNext()&&i(c.ops[c.ops.length-1],p)){var O=new l(t.rest());return c.concat(O).chop()}}else"number"==typeof f.delete&&"number"==typeof d.retain&&c.push(f)}return c.chop()},l.prototype.concat=function(e){var t=new l(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},l.prototype.diff=function(e,t){if(this.ops===e.ops)return new l;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:a;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),o=new l,c=r(n[0],n[1],t),u=s.iterator(this.ops),d=s.iterator(e.ops);return c.forEach((function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case r.INSERT:n=Math.min(d.peekLength(),t),o.push(d.next(n));break;case r.DELETE:n=Math.min(t,u.peekLength()),u.next(n),o.delete(n);break;case r.EQUAL:n=Math.min(u.peekLength(),d.peekLength(),t);var a=u.next(n),l=d.next(n);i(a.insert,l.insert)?o.retain(n,s.attributes.diff(a.attributes,l.attributes)):o.push(l).delete(n)}t-=n}})),o.chop()},l.prototype.eachLine=function(e,t){t=t||"\n";for(var n=s.iterator(this.ops),r=new l,i=0;n.hasNext();){if("insert"!==n.peekType())return;var o=n.peek(),a=s.length(o)-n.peekLength(),c="string"==typeof o.insert?o.insert.indexOf(t,a)-a:-1;if(c<0)r.push(n.next());else if(c>0)r.push(n.next(c));else{if(!1===e(r,n.next(1).attributes||{},i))return;i+=1,r=new l}}r.length()>0&&e(r,{},i)},l.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var n=s.iterator(this.ops),r=s.iterator(e.ops),i=new l;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===r.peekType())if("insert"===r.peekType())i.push(r.next());else{var o=Math.min(n.peekLength(),r.peekLength()),a=n.next(o),c=r.next(o);if(a.delete)continue;c.delete?i.push(c):i.retain(o,s.attributes.transform(a.attributes,c.attributes,t))}else i.retain(s.length(n.next()));return i.chop()},l.prototype.transformPosition=function(e,t){t=!!t;for(var n=s.iterator(this.ops),r=0;n.hasNext()&&r<=e;){var i=n.peekLength(),o=n.peekType();n.next(),"delete"!==o?("insert"===o&&(r<e||!t)&&(e+=i),r+=i):e-=Math.min(i,e-r)}return e},e.exports=l},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var t,i=n.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(t in e);return void 0===t||n.call(e,t)},l=function(e,t){i&&"__proto__"===t.name?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(o)return o(e,t).value}return e[t]};e.exports=function e(){var t,n,r,i,o,u,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=c(d,n),d!==(i=c(t,n))&&(h&&i&&(a(i)||(o=s(i)))?(o?(o=!1,u=r&&s(r)?r:[]):u=r&&a(r)?r:{},l(d,{name:n,newValue:e(h,u,i)})):void 0!==i&&l(d,{name:n,newValue:i}));return d}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(r):void 0},o=d(n(3)),s=d(n(2)),a=d(n(0)),l=d(n(16)),c=d(n(6)),u=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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 h(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 O=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),r(t,[{key:"attach",value:function(){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new a.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new s.default).insert(this.value(),(0,o.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=a.default.query(e,a.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,r){this.format(n,r)}},{key:"insertAt",value:function(e,n,r){if("string"==typeof n&&n.endsWith("\n")){var o=a.default.create(m.blotName);this.parent.insertBefore(o,0===e?this:this.next),o.insertAt(0,n.slice(0,-1))}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r)}}]),t}(a.default.Embed);O.scope=a.default.Scope.BLOCK_BLOT;var m=function(e){function t(e){f(this,t);var n=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return h(t,e),r(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(a.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),g(t))}),new s.default).insert("\n",g(this))),this.cache.delta}},{key:"deleteAt",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),this.cache={}}},{key:"formatAt",value:function(e,n,r,o){n<=0||(a.default.query(r,a.default.Scope.BLOCK)?e+n===this.length()&&this.format(r,o):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(n,this.length()-e-1),r,o),this.cache={})}},{key:"insertAt",value:function(e,n,r){if(null!=r)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);if(0!==n.length){var o=n.split("\n"),s=o.shift();s.length>0&&(e<this.length()-1||null==this.children.tail?i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),s):this.children.tail.insertAt(this.children.tail.length(),s),this.cache={});var a=this;o.reduce((function(e,t){return(a=a.split(e,!0)).insertAt(0,t),t.length}),e+s.length)}}},{key:"insertBefore",value:function(e,n){var r=this.children.head;i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n),r instanceof l.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,n),this.cache={}}},{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-1)){var r=this.clone();return 0===e?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var o=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},o}}]),t}(a.default.Block);function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"==typeof e.formats&&(t=(0,o.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:g(e.parent,t))}m.blotName="block",m.tagName="P",m.defaultChild="break",m.allowedChildren=[c.default,a.default.Embed,u.default],t.bubbleFormats=g,t.BlockEmbed=O,t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();n(50);var s=m(n(2)),a=m(n(14)),l=m(n(8)),c=m(n(9)),u=m(n(0)),d=n(15),f=m(d),p=m(n(3)),h=m(n(10)),O=m(n(34));function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var b=(0,h.default)("quill"),v=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(y(this,e),this.options=w(t,r),this.container=this.options.container,null==this.container)return b.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var i=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new l.default,this.scroll=u.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new a.default(this.scroll),this.selection=new f.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(l.default.events.EDITOR_CHANGE,(function(e){e===l.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(l.default.events.SCROLL_UPDATE,(function(e,t){var r=n.selection.lastRange,i=r&&0===r.length?r.index:void 0;$.call(n,(function(){return n.editor.update(null,t,i)}),e)}));var o=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+i+"<p><br></p></div>");this.setContents(o),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return o(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),h.default.level(e)}},{key:"find",value:function(e){return e.__quill||u.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&b.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof e){var i=e.attrName||e.blotName;"string"==typeof i?this.register("formats/"+i,e,t):Object.keys(e).forEach((function(r){n.register(r,e[r],t)}))}else null==this.imports[e]||r||b.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?u.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),o(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var r=this,o=_(e,t,n),s=i(o,4);return e=s[0],t=s[1],n=s[3],$.call(this,(function(){return r.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;return $.call(this,(function(){var r=n.getSelection(!0),i=new s.default;if(null==r)return i;if(u.default.query(e,u.default.Scope.BLOCK))i=n.editor.formatLine(r.index,r.length,g({},e,t));else{if(0===r.length)return n.selection.format(e,t),i;i=n.editor.formatText(r.index,r.length,g({},e,t))}return n.setSelection(r,l.default.sources.SILENT),i}),r)}},{key:"formatLine",value:function(e,t,n,r,o){var s,a=this,l=_(e,t,n,r,o),c=i(l,4);return e=c[0],t=c[1],s=c[2],o=c[3],$.call(this,(function(){return a.editor.formatLine(e,t,s)}),o,e,0)}},{key:"formatText",value:function(e,t,n,r,o){var s,a=this,l=_(e,t,n,r,o),c=i(l,4);return e=c[0],t=c[1],s=c[2],o=c[3],$.call(this,(function(){return a.editor.formatText(e,t,s)}),o,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=_(e,t),r=i(n,2);return e=r[0],t=r[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=_(e,t),r=i(n,2);return e=r[0],t=r[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return $.call(this,(function(){return i.editor.insertEmbed(t,n,r)}),o,t)}},{key:"insertText",value:function(e,t,n,r,o){var s,a=this,l=_(e,0,n,r,o),c=i(l,4);return e=c[0],s=c[2],o=c[3],$.call(this,(function(){return a.editor.insertText(e,t,s)}),o,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var r=this,o=_(e,t,n),s=i(o,4);return e=s[0],t=s[1],n=s[3],$.call(this,(function(){return r.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API;return $.call(this,(function(){e=new s.default(e);var n=t.getLength(),r=t.editor.deleteText(0,n),i=t.editor.applyDelta(e),o=i.ops[i.ops.length-1];return null!=o&&"string"==typeof o.insert&&"\n"===o.insert[o.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),i.delete(1)),r.compose(i)}),n)}},{key:"setSelection",value:function(t,n,r){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var o=_(t,n,r),s=i(o,4);t=s[0],n=s[1],r=s[3],this.selection.setRange(new d.Range(t,n),r),r!==l.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API,n=(new s.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API;return $.call(this,(function(){return e=new s.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function w(e,t){if((t=(0,p.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==v.DEFAULTS.theme){if(t.theme=v.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=O.default;var n=(0,p.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var n=v.import("modules/"+t);return null==n?b.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,p.default)(!0,{},v.DEFAULTS,{modules:r},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function $(e,t,n,r){if(this.options.strict&&!this.isEnabled()&&t===l.default.sources.USER)return new s.default;var i=null==n?null:this.getSelection(),o=this.editor.delta,a=e();if(null!=i&&(!0===n&&(n=i.index),null==r?i=x(i,a,t):0!==r&&(i=x(i,n,r,t)),this.setSelection(i,l.default.sources.SILENT)),a.length()>0){var c,u,d=[l.default.events.TEXT_CHANGE,a,o,t];(c=this.emitter).emit.apply(c,[l.default.events.EDITOR_CHANGE].concat(d)),t!==l.default.sources.SILENT&&(u=this.emitter).emit.apply(u,d)}return a}function _(e,t,n,i,o){var s={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(o=i,i=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(o=i,i=n,n=t,t=0),"object"===(void 0===n?"undefined":r(n))?(s=n,o=i):"string"==typeof n&&(null!=i?s[n]=i:o=n),[e,t,s,o=o||l.default.sources.API]}function x(e,t,n,r){if(null==e)return null;var o=void 0,a=void 0;if(t instanceof s.default){var c=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,r!==l.default.sources.USER)})),u=i(c,2);o=u[0],a=u[1]}else{var f=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&r===l.default.sources.USER?e:n>=0?e+n:Math.max(t,e+n)})),p=i(f,2);o=p[0],a=p[1]}return new d.Range(o,a-o)}v.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},v.events=l.default.events,v.sources=l.default.sources,v.version="1.3.7",v.imports={delta:s.default,parchment:u.default,"core/module":c.default,"core/theme":O.default},t.expandConfig=w,t.overload=_,t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(r):void 0},o=a(n(7)),s=a(n(0));function a(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 u=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),r(t,[{key:"formatAt",value:function(e,n,r,o){if(t.compare(this.statics.blotName,r)<0&&s.default.query(r,s.default.Scope.BLOT)){var a=this.isolate(e,n);o&&a.wrap(r,o)}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,o)}},{key:"optimize",value:function(e){if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var r=t.order.indexOf(e),i=t.order.indexOf(n);return r>=0||i>=0?r-i:e===n?0:e<n?-1:1}}]),t}(s.default.Inline);u.allowedChildren=[u,s.default.Embed,o.default],u.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0);function o(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 a=function(e){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=i)&&r.__esModule?r:{default:r}).default.Text);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(r):void 0},o=s(n(54));function s(e){return e&&e.__esModule?e:{default:e}}var a=(0,s(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){var n;e.__quill&&e.__quill.emitter&&(n=e.__quill.emitter).handleDOM.apply(n,t)}))}))}));var l=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=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));return e.listeners={},e.on("error",a.error),e}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),r(t,[{key:"emit",value:function(){a.log.apply(a,arguments),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(this.listeners[e.type]||[]).forEach((function(t){var r=t.node,i=t.handler;(e.target===r||r.contains(e.target))&&i.apply(void 0,[e].concat(n))}))}},{key:"listenDOM",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),t}(o.default);l.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},l.sources={API:"api",SILENT:"silent",USER:"user"},t.default=l},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),this.quill=t,this.options=n};i.DEFAULTS={},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=["error","warn","log","info"],i="warn";function o(e){if(r.indexOf(e)<=r.indexOf(i)){for(var t,n=arguments.length,o=Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];(t=console)[e].apply(t,o)}}function s(e){return r.reduce((function(t,n){return t[n]=o.bind(console,n,e),t}),{})}o.level=s.level=function(e){i=e},t.default=s},function(e,t,n){var r=Array.prototype.slice,i=n(52),o=n(53),s=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:function(e,t,n){var c,u;if(a(e)||a(t))return!1;if(e.prototype!==t.prototype)return!1;if(o(e))return!!o(t)&&(e=r.call(e),t=r.call(t),s(e,t,n));if(l(e)){if(!l(t))return!1;if(e.length!==t.length)return!1;for(c=0;c<e.length;c++)if(e[c]!==t[c])return!1;return!0}try{var d=i(e),f=i(t)}catch(e){return!1}if(d.length!=f.length)return!1;for(d.sort(),f.sort(),c=d.length-1;c>=0;c--)if(d[c]!=f[c])return!1;for(c=d.length-1;c>=0;c--)if(u=d[c],!s(e[u],t[u],n))return!1;return typeof e==typeof t}(e,t,n))};function a(e){return null==e}function l(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var i=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|i:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=r.query(e,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(r):void 0},s=d(n(2)),a=d(n(0)),l=d(n(4)),c=d(n(6)),u=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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 h(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 O=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),t}(c.default);O.blotName="code",O.tagName="CODE";var m=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),i(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce((function(t,n){return t.insert(n).insert("\n",e.formats())}),new s.default)}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var i=this.descendant(u.default,this.length()-1),s=r(i,1)[0];null!=s&&s.deleteAt(s.length()-1,1),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}},{key:"formatAt",value:function(e,n,r,i){if(0!==n&&null!=a.default.query(r,a.default.Scope.BLOCK)&&(r!==this.statics.blotName||i!==this.statics.formats(this.domNode))){var o=this.newlineIndex(e);if(!(o<0||o>=e+n)){var s=this.newlineIndex(e,!0)+1,l=o-s+1,c=this.isolate(s,l),u=c.next;c.format(r,i),u instanceof t&&u.formatAt(0,e-s+n-l,r,i)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var i=this.descendant(u.default,e),o=r(i,2),s=o[0],a=o[1];s.insertAt(a,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var n=this.domNode.textContent.slice(e).indexOf("\n");return n>-1?e+n:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(a.default.create("text","\n")),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=a.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof a.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(l.default);m.blotName="code-block",m.tagName="PRE",m.TAB=" ",t.Code=O,t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=g(n(2)),a=g(n(20)),l=g(n(0)),c=g(n(13)),u=g(n(24)),d=n(4),f=g(d),p=g(n(16)),h=g(n(21)),O=g(n(11)),m=g(n(3));function g(e){return e&&e.__esModule?e:{default:e}}var y=/^[ -~]*$/,b=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scroll=t,this.delta=this.getDelta()}return o(e,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var o=this.scroll.length();return this.scroll.batchStart(),(e=function(e){return e.reduce((function(e,t){if(1===t.insert){var n=(0,h.default)(t.attributes);return delete n.image,e.insert({image:t.attributes.image},n)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||((t=(0,h.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"==typeof t.insert){var r=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(r,t.attributes)}return e.push(t)}),new s.default)}(e)).reduce((function(e,s){var c=s.retain||s.delete||s.insert.length||1,u=s.attributes||{};if(null!=s.insert){if("string"==typeof s.insert){var p=s.insert;p.endsWith("\n")&&n&&(n=!1,p=p.slice(0,-1)),e>=o&&!p.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,p);var h=t.scroll.line(e),O=i(h,2),g=O[0],y=O[1],b=(0,m.default)({},(0,d.bubbleFormats)(g));if(g instanceof f.default){var v=g.descendant(l.default.Leaf,y),w=i(v,1)[0];b=(0,m.default)(b,(0,d.bubbleFormats)(w))}u=a.default.attributes.diff(b,u)||{}}else if("object"===r(s.insert)){var $=Object.keys(s.insert)[0];if(null==$)return e;t.scroll.insertAt(e,$,s.insert[$])}o+=c}return Object.keys(u).forEach((function(n){t.scroll.formatAt(e,c,n,u[n])})),e+c}),0),e.reduce((function(e,n){return"number"==typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new s.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(i){if(null==n.scroll.whitelist||n.scroll.whitelist[i]){var o=n.scroll.lines(e,Math.max(t,1)),s=t;o.forEach((function(t){var o=t.length();if(t instanceof c.default){var a=e-t.offset(n.scroll),l=t.newlineIndex(a+s)-a+1;t.formatAt(a,l,i,r[i])}else t.format(i,r[i]);s-=o}))}})),this.scroll.optimize(),this.update((new s.default).retain(e).retain(t,(0,h.default)(r)))}},{key:"formatText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(i){n.scroll.formatAt(e,t,i,r[i])})),this.update((new s.default).retain(e).retain(t,(0,h.default)(r)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new s.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach((function(e){var t=i(e,1)[0];t instanceof f.default?n.push(t):t instanceof l.default.Leaf&&r.push(t)})):(n=this.scroll.lines(e,t),r=this.scroll.descendants(l.default.Leaf,e,t));var o=[n,r].map((function(e){if(0===e.length)return{};for(var t=(0,d.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=v((0,d.bubbleFormats)(n),t)}return t}));return m.default.apply(m.default,o)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"==typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new s.default).retain(e).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(r).forEach((function(i){n.scroll.formatAt(e,t.length,i,r[i])})),this.update((new s.default).retain(e).insert(t,(0,h.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===f.default.blotName&&!(e.children.length>1)&&e.children.head instanceof p.default}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),r=this.scroll.line(e+t),o=i(r,2),a=o[0],l=o[1],u=0,d=new s.default;null!=a&&(u=a instanceof c.default?a.newlineIndex(l)-l+1:a.length()-l,d=a.delta().slice(l,l+u-1).insert("\n"));var f=this.getContents(e,t+u).diff((new s.default).insert(n).concat(d)),p=(new s.default).retain(e).concat(f);return this.applyDelta(p)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(y)&&l.default.find(t[0].target)){var i=l.default.find(t[0].target),o=(0,d.bubbleFormats)(i),a=i.offset(this.scroll),c=t[0].oldValue.replace(u.default.CONTENTS,""),f=(new s.default).insert(c),p=(new s.default).insert(i.value()),h=(new s.default).retain(a).concat(f.diff(p,n));e=h.reduce((function(e,t){return t.insert?e.insert(t.insert,o):e.push(t)}),new s.default),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&(0,O.default)(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}]),e}();function v(e,t){return Object.keys(t).reduce((function(n,r){return null==e[r]||(t[r]===e[r]?n[r]=t[r]:Array.isArray(t[r])?t[r].indexOf(e[r])<0&&(n[r]=t[r].concat([e[r]])):n[r]=[t[r],e[r]]),n}),{})}t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=c(n(0)),s=c(n(21)),a=c(n(11)),l=c(n(8));function c(e){return e&&e.__esModule?e:{default:e}}function u(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var f=(0,c(n(10)).default)("quill:selection"),p=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(this,e),this.index=t,this.length=n},h=function(){function e(t,n){var r=this;d(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=o.default.create("cursor",this),this.lastRange=this.savedRange=new p(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,l.default.sources.USER),1)})),this.emitter.on(l.default.events.EDITOR_CHANGE,(function(e,t){e===l.default.events.TEXT_CHANGE&&t.length()>0&&r.update(l.default.sources.SILENT)})),this.emitter.on(l.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var e=r.getNativeRange();null!=e&&e.start.node!==r.cursor.textNode&&r.emitter.once(l.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(e){}}))}})),this.emitter.on(l.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,i=n.startNode,o=n.startOffset,s=n.endNode,a=n.endOffset;r.setNativeRange(i,o,s,a)}})),this.update(l.default.sources.SILENT)}return i(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(l.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!o.default.query(e,o.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=o.default.find(n.start.node,!1);if(null==r)return;if(r instanceof o.default.Leaf){var i=r.split(n.start.offset);r.parent.insertBefore(this.cursor,i)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var i=void 0,o=this.scroll.leaf(e),s=r(o,2),a=s[0],l=s[1];if(null==a)return null;var c=a.position(l,!0),u=r(c,2);i=u[0],l=u[1];var d=document.createRange();if(t>0){d.setStart(i,l);var f=this.scroll.leaf(e+t),p=r(f,2);if(a=p[0],l=p[1],null==a)return null;var h=a.position(l,!0),O=r(h,2);return i=O[0],l=O[1],d.setEnd(i,l),d.getBoundingClientRect()}var m="left",g=void 0;return i instanceof Text?(l<i.data.length?(d.setStart(i,l),d.setEnd(i,l+1)):(d.setStart(i,l-1),d.setEnd(i,l),m="right"),g=d.getBoundingClientRect()):(g=a.domNode.getBoundingClientRect(),l>0&&(m="right")),{bottom:g.top+g.height,height:g.height,left:g[m],right:g[m],top:g.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return f.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var i=n.map((function(e){var n=r(e,2),i=n[0],s=n[1],a=o.default.find(i,!0),l=a.offset(t.scroll);return 0===s?l:a instanceof o.default.Container?l+a.length():l+a.index(i,s)})),s=Math.min(Math.max.apply(Math,u(i)),this.scroll.length()-1),a=Math.min.apply(Math,[s].concat(u(i)));return new p(a,s-a)}},{key:"normalizeNative",value:function(e){if(!O(this.root,e.startContainer)||!e.collapsed&&!O(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],i=[],o=this.scroll.length();return n.forEach((function(e,n){e=Math.min(o-1,e);var s,a=t.scroll.leaf(e),l=r(a,2),c=l[0],u=l[1],d=c.position(u,0!==n),f=r(d,2);s=f[0],u=f[1],i.push(s,u)})),i.length<2&&(i=i.concat(i)),i}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var i=this.scroll.length()-1,o=this.scroll.line(Math.min(t.index,i)),s=r(o,1)[0],a=s;if(t.length>0){var l=this.scroll.line(Math.min(t.index+t.length,i));a=r(l,1)[0]}if(null!=s&&null!=a){var c=e.getBoundingClientRect();n.top<c.top?e.scrollTop-=c.top-n.top:n.bottom>c.bottom&&(e.scrollTop+=n.bottom-c.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(f.info("setNativeRange",e,t,n,r),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var o=document.getSelection();if(null!=o)if(null!=e){this.hasFocus()||this.root.focus();var s=(this.getNativeRange()||{}).native;if(null==s||i||e!==s.startContainer||t!==s.startOffset||n!==s.endContainer||r!==s.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var a=document.createRange();a.setStart(e,t),a.setEnd(n,r),o.removeAllRanges(),o.addRange(a)}}else o.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;if("string"==typeof t&&(n=t,t=!1),f.info("setRange",e),null!=e){var r=this.rangeToNative(e);this.setNativeRange.apply(this,u(r).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,t=this.lastRange,n=this.getRange(),i=r(n,2),o=i[0],c=i[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,a.default)(t,this.lastRange)){var u;!this.composing&&null!=c&&c.native.collapsed&&c.start.node!==this.cursor.textNode&&this.cursor.restore();var d,f=[l.default.events.SELECTION_CHANGE,(0,s.default)(this.lastRange),(0,s.default)(t),e];(u=this.emitter).emit.apply(u,[l.default.events.EDITOR_CHANGE].concat(f)),e!==l.default.sources.SILENT&&(d=this.emitter).emit.apply(d,f)}}}]),e}();function O(e,t){try{t.parentNode}catch(e){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=p,t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(r):void 0},s=n(0);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(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 c=function(e){function t(){return a(this,t),l(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:"insertInto",value:function(e,n){0===e.children.length?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(((r=s)&&r.__esModule?r:{default:r}).default.Embed);c.blotName="break",c.tagName="BR",t.default=c},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(44),s=n(30),a=n(1),l=function(e){function t(t){var n=e.call(this,t)||this;return n.build(),n}return i(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach((function(e){e.attach()}))},t.prototype.build=function(){var e=this;this.children=new o.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(t){try{var n=c(t);e.insertBefore(n,e.children.head||void 0)}catch(e){if(e instanceof a.ParchmentError)return;throw e}}))},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,n){e.deleteAt(t,n)}))},t.prototype.descendant=function(e,n){var r=this.children.find(n),i=r[0],o=r[1];return null==e.blotName&&e(i)||null!=e.blotName&&i instanceof e?[i,o]:i instanceof t?i.descendant(e,o):[null,-1]},t.prototype.descendants=function(e,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var i=[],o=r;return this.children.forEachAt(n,r,(function(n,r,s){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&i.push(n),n instanceof t&&(i=i.concat(n.descendants(e,r,o))),o-=s})),i},t.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,r){this.children.forEachAt(e,t,(function(e,t,i){e.formatAt(t,i,n,r)}))},t.prototype.insertAt=function(e,t,n){var r=this.children.find(e),i=r[0],o=r[1];if(i)i.insertAt(o,t,n);else{var s=null==n?a.create("text",t):a.create(t,n);this.appendChild(s)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new a.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)},t.prototype.moveChildren=function(e,t){this.children.forEach((function(n){e.insertBefore(n,t)}))},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var n=a.create(this.statics.defaultChild);this.appendChild(n),n.optimize(t)}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var r=this.children.find(e,n),i=r[0],o=r[1],s=[[this,e]];return i instanceof t?s.concat(i.path(o,n)):(null!=i&&s.push([i,o]),s)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),(function(e,r,i){e=e.split(r,t),n.appendChild(e)})),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var n=this,r=[],i=[];e.forEach((function(e){e.target===n.domNode&&"childList"===e.type&&(r.push.apply(r,e.addedNodes),i.push.apply(i,e.removedNodes))})),i.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=a.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==n.domNode||t.detach())}})),r.filter((function(e){return e.parentNode==n.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;null!=e.nextSibling&&(t=a.find(e.nextSibling));var r=c(e);r.next==t&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,t||void 0))}))},t}(s.default);function c(e){var t=a.find(e);if(null==t)try{t=a.create(e)}catch(n){t=a.create(a.Scope.INLINE),[].slice.call(e.childNodes).forEach((function(e){t.domNode.appendChild(e)})),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=l},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),s=n(31),a=n(17),l=n(1),c=function(e){function t(t){var n=e.call(this,t)||this;return n.attributes=new s.default(n.domNode),n}return i(t,e),t.formats=function(e){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var n=l.query(e);n instanceof o.default?this.attributes.attribute(n,t):t&&(null==n||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var r=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(r),r},t.prototype.update=function(t,n){var r=this;e.prototype.update.call(this,t,n),t.some((function(e){return e.target===r.domNode&&"attributes"===e.type}))&&this.attributes.build()},t.prototype.wrap=function(n,r){var i=e.prototype.wrap.call(this,n,r);return i instanceof t&&i.statics.scope===this.statics.scope&&this.attributes.move(i),i},t}(a.default);t.default=c},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(30),s=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=s.Scope.INLINE_BLOT,t}(o.default);t.default=a},function(e,t,n){var r=n(11),i=n(3),o={attributes:{compose:function(e,t,n){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var r=i(!0,{},t);for(var o in n||(r=Object.keys(r).reduce((function(e,t){return null!=r[t]&&(e[t]=r[t]),e}),{})),e)void 0!==e[o]&&void 0===t[o]&&(r[o]=e[o]);return Object.keys(r).length>0?r:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,i){return r(e[i],t[i])||(n[i]=void 0===t[i]?null:t[i]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!=typeof e)return t;if("object"==typeof t){if(!n)return t;var r=Object.keys(t).reduce((function(n,r){return void 0===e[r]&&(n[r]=t[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(e){return new s(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};function s(e){this.ops=e,this.index=0,this.offset=0}s.prototype.hasNext=function(){return this.peekLength()<1/0},s.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,r=o.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var i={};return t.attributes&&(i.attributes=t.attributes),"number"==typeof t.retain?i.retain=e:"string"==typeof t.insert?i.insert=t.insert.substr(n,e):i.insert=t.insert,i}return{retain:1/0}},s.prototype.peek=function(){return this.ops[this.index]},s.prototype.peekLength=function(){return this.ops[this.index]?o.length(this.ops[this.index])-this.offset:1/0},s.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},s.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}return[]},e.exports=o},function(e,t){var n=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var t,n,r;try{t=Map}catch(e){t=function(){}}try{n=Set}catch(e){n=function(){}}try{r=Promise}catch(e){r=function(){}}function i(o,a,l,c,u){"object"==typeof a&&(l=a.depth,c=a.prototype,u=a.includeNonEnumerable,a=a.circular);var d=[],f=[],p="undefined"!=typeof Buffer;return void 0===a&&(a=!0),void 0===l&&(l=1/0),function o(l,h){if(null===l)return null;if(0===h)return l;var O,m;if("object"!=typeof l)return l;if(e(l,t))O=new t;else if(e(l,n))O=new n;else if(e(l,r))O=new r((function(e,t){l.then((function(t){e(o(t,h-1))}),(function(e){t(o(e,h-1))}))}));else if(i.__isArray(l))O=[];else if(i.__isRegExp(l))O=new RegExp(l.source,s(l)),l.lastIndex&&(O.lastIndex=l.lastIndex);else if(i.__isDate(l))O=new Date(l.getTime());else{if(p&&Buffer.isBuffer(l))return O=Buffer.allocUnsafe?Buffer.allocUnsafe(l.length):new Buffer(l.length),l.copy(O),O;e(l,Error)?O=Object.create(l):void 0===c?(m=Object.getPrototypeOf(l),O=Object.create(m)):(O=Object.create(c),m=c)}if(a){var g=d.indexOf(l);if(-1!=g)return f[g];d.push(l),f.push(O)}for(var y in e(l,t)&&l.forEach((function(e,t){var n=o(t,h-1),r=o(e,h-1);O.set(n,r)})),e(l,n)&&l.forEach((function(e){var t=o(e,h-1);O.add(t)})),l){var b;m&&(b=Object.getOwnPropertyDescriptor(m,y)),b&&null==b.set||(O[y]=o(l[y],h-1))}if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(l);for(y=0;y<v.length;y++){var w=v[y];(!(_=Object.getOwnPropertyDescriptor(l,w))||_.enumerable||u)&&(O[w]=o(l[w],h-1),_.enumerable||Object.defineProperty(O,w,{enumerable:!1}))}}if(u){var $=Object.getOwnPropertyNames(l);for(y=0;y<$.length;y++){var _,x=$[y];(_=Object.getOwnPropertyDescriptor(l,x))&&_.enumerable||(O[x]=o(l[x],h-1),Object.defineProperty(O,x,{enumerable:!1}))}}return O}(o,l)}function o(e){return Object.prototype.toString.call(e)}function s(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return i.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},i.__objToStr=o,i.__isDate=function(e){return"object"==typeof e&&"[object Date]"===o(e)},i.__isArray=function(e){return"object"==typeof e&&"[object Array]"===o(e)},i.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===o(e)},i.__getRegExpFlags=s,i}();"object"==typeof e&&e.exports&&(e.exports=n)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(r):void 0},s=p(n(0)),a=p(n(8)),l=n(4),c=p(l),u=p(n(16)),d=p(n(13)),f=p(n(25));function p(e){return e&&e.__esModule?e:{default:e}}function h(e){return e instanceof c.default||e instanceof l.BlockEmbed}var O=function(e){function t(e,n){!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.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),r.domNode.addEventListener("DOMNodeInserted",(function(){})),r.optimize(),r.enable(),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:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,n){var i=this.line(e),s=r(i,2),a=s[0],c=s[1],f=this.line(e+n),p=r(f,1)[0];if(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=p&&a!==p&&c>0){if(a instanceof l.BlockEmbed||p instanceof l.BlockEmbed)return void this.optimize();if(a instanceof d.default){var h=a.newlineIndex(a.length(),!0);if(h>-1&&(a=a.split(h+1))===p)return void this.optimize()}else if(p instanceof d.default){var O=p.newlineIndex(0);O>-1&&p.split(O+1)}var m=p.children.head instanceof u.default?null:p.children.head;a.moveChildren(p,m),a.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,r,i){(null==this.whitelist||this.whitelist[r])&&(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,i),this.optimize())}},{key:"insertAt",value:function(e,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==r||null==s.default.query(n,s.default.Scope.BLOCK)){var i=s.default.create(this.statics.defaultChild);this.appendChild(i),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),i.insertAt(0,n,r)}else{var a=s.default.create(n,r);this.appendChild(a)}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===s.default.Scope.INLINE_BLOT){var r=s.default.create(this.statics.defaultChild);r.appendChild(e),e=r}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(h,e)}},{key:"lines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function e(t,n,r){var i=[],o=r;return t.children.forEachAt(n,r,(function(t,n,r){h(t)?i.push(t):t instanceof s.default.Container&&(i=i.concat(e(t,n,o))),o-=r})),i};return n(this,e,t)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(a.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=a.default.sources.USER;"string"==typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(a.default.events.SCROLL_BEFORE_UPDATE,n,e),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(a.default.events.SCROLL_UPDATE,n,e)}}}]),t}(s.default.Scroll);O.blotName="scroll",O.className="ql-editor",O.tagName="DIV",O.defaultChild="block",O.allowedChildren=[c.default,l.BlockEmbed,f.default],t.default=O},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=O(n(21)),a=O(n(11)),l=O(n(3)),c=O(n(2)),u=O(n(20)),d=O(n(0)),f=O(n(5)),p=O(n(10)),h=O(n(9));function O(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=(0,p.default)("quill:keyboard"),y=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",b=function(e){function t(e,n){!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,n));return r.bindings={},Object.keys(r.options.bindings).forEach((function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist.list)&&r.options.bindings[t]&&r.addBinding(r.options.bindings[t])})),r.addBinding({key:t.keys.ENTER,shiftKey:null},x),r.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},w),r.addBinding({key:t.keys.DELETE},{collapsed:!0},$)):(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},w),r.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},$)),r.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},_),r.addBinding({key:t.keys.DELETE},{collapsed:!1},_),r.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},w),r.listen(),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),o(t,null,[{key:"match",value:function(e,t){return t=k(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!t[n]!==e[n]&&null!==t[n]}))&&t.key===(e.which||e.keyCode)}}]),o(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=k(e);if(null==r||null==r.key)return g.warn("Attempted to add invalid keyboard binding",r);"function"==typeof t&&(t={handler:t}),"function"==typeof n&&(n={handler:n}),r=(0,l.default)(r,t,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var o=n.which||n.keyCode,s=(e.bindings[o]||[]).filter((function(e){return t.match(n,e)}));if(0!==s.length){var l=e.quill.getSelection();if(null!=l&&e.quill.hasFocus()){var c=e.quill.getLine(l.index),u=i(c,2),f=u[0],p=u[1],h=e.quill.getLeaf(l.index),O=i(h,2),m=O[0],g=O[1],y=0===l.length?[m,g]:e.quill.getLeaf(l.index+l.length),b=i(y,2),v=b[0],w=b[1],$=m instanceof d.default.Text?m.value().slice(0,g):"",_=v instanceof d.default.Text?v.value().slice(w):"",x={collapsed:0===l.length,empty:0===l.length&&f.length()<=1,format:e.quill.getFormat(l),offset:p,prefix:$,suffix:_};s.some((function(t){if(null!=t.collapsed&&t.collapsed!==x.collapsed)return!1;if(null!=t.empty&&t.empty!==x.empty)return!1;if(null!=t.offset&&t.offset!==x.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==x.format[e]})))return!1}else if("object"===r(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=x.format[e]:!1===t.format[e]?null==x.format[e]:(0,a.default)(t.format[e],x.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(x.prefix)||null!=t.suffix&&!t.suffix.test(x.suffix)||!0===t.handler.call(e,l,x))}))&&n.preventDefault()}}}}))}}]),t}(h.default);function v(e,t){var n,r=e===b.keys.LEFT?"prefix":"suffix";return m(n={key:e,shiftKey:t,altKey:null},r,/^$/),m(n,"handler",(function(n){var r=n.index;e===b.keys.RIGHT&&(r+=n.length+1);var o=this.quill.getLeaf(r);return!(i(o,1)[0]instanceof d.default.Embed&&(e===b.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,f.default.sources.USER):this.quill.setSelection(n.index-1,f.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,f.default.sources.USER):this.quill.setSelection(n.index+n.length+1,f.default.sources.USER),1))})),n}function w(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),r=i(n,1)[0],o={};if(0===t.offset){var s=this.quill.getLine(e.index-1),a=i(s,1)[0];if(null!=a&&a.length()>1){var l=r.formats(),c=this.quill.getFormat(e.index-1,1);o=u.default.attributes.diff(l,c)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-d,d,f.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(e.index-d,d,o,f.default.sources.USER),this.quill.focus()}}function $(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var r={},o=0,s=this.quill.getLine(e.index),a=i(s,1)[0];if(t.offset>=a.length()-1){var l=this.quill.getLine(e.index+1),c=i(l,1)[0];if(c){var d=a.formats(),p=this.quill.getFormat(e.index,1);r=u.default.attributes.diff(d,p)||{},o=c.length()}}this.quill.deleteText(e.index,n,f.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(e.index+o-1,n,r,f.default.sources.USER)}}function _(e){var t=this.quill.getLines(e),n={};if(t.length>1){var r=t[0].formats(),i=t[t.length-1].formats();n=u.default.attributes.diff(i,r)||{}}this.quill.deleteText(e,f.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,f.default.sources.USER),this.quill.setSelection(e.index,f.default.sources.SILENT),this.quill.focus()}function x(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var r=Object.keys(t.format).reduce((function(e,n){return d.default.query(n,d.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",r,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==r[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],f.default.sources.USER))}))}function S(e){return{key:b.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=d.default.query("code-block"),r=t.index,o=t.length,s=this.quill.scroll.descendant(n,r),a=i(s,2),l=a[0],c=a[1];if(null!=l){var u=this.quill.getIndex(l),p=l.newlineIndex(c,!0)+1,h=l.newlineIndex(u+c+o),O=l.domNode.textContent.slice(p,h).split("\n");c=0,O.forEach((function(t,i){e?(l.insertAt(p+c,n.TAB),c+=n.TAB.length,0===i?r+=n.TAB.length:o+=n.TAB.length):t.startsWith(n.TAB)&&(l.deleteAt(p+c,n.TAB.length),c-=n.TAB.length,0===i?r-=n.TAB.length:o-=n.TAB.length),c+=t.length+1})),this.quill.update(f.default.sources.USER),this.quill.setSelection(r,o,f.default.sources.SILENT)}}}}function Q(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],f.default.sources.USER)}}}function k(e){if("string"==typeof e||"number"==typeof e)return k({key:e});if("object"===(void 0===e?"undefined":r(e))&&(e=(0,s.default)(e,!1)),"string"==typeof e.key)if(null!=b.keys[e.key.toUpperCase()])e.key=b.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[y]=e.shortKey,delete e.shortKey),e}b.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},b.DEFAULTS={bindings:{bold:Q("bold"),italic:Q("italic"),underline:Q("underline"),indent:{key:b.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",f.default.sources.USER)}},outdent:{key:b.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",f.default.sources.USER)}},"outdent backspace":{key:b.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",f.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,f.default.sources.USER)}},"indent code-block":S(!0),"outdent code-block":S(!1),"remove tab":{key:b.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,f.default.sources.USER)}},tab:{key:b.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new c.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,f.default.sources.SILENT)}},"list empty enter":{key:b.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,f.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,f.default.sources.USER)}},"checklist enter":{key:b.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=i(t,2),r=n[0],o=n[1],s=(0,l.default)({},r.formats(),{list:"checked"}),a=(new c.default).retain(e.index).insert("\n",s).retain(r.length()-o-1).retain(1,{list:"unchecked"});this.quill.updateContents(a,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:b.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),r=i(n,2),o=r[0],s=r[1],a=(new c.default).retain(e.index).insert("\n",t.format).retain(o.length()-s-1).retain(1,{header:null});this.quill.updateContents(a,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,r=this.quill.getLine(e.index),o=i(r,2),s=o[0],a=o[1];if(a>n)return!0;var l=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(e.index," ",f.default.sources.USER),this.quill.history.cutoff();var u=(new c.default).retain(e.index-a).delete(n+1).retain(s.length()-2-a).retain(1,{list:l});this.quill.updateContents(u,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,f.default.sources.SILENT)}},"code exit":{key:b.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=i(t,2),r=n[0],o=n[1],s=(new c.default).retain(e.index+r.length()-o-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(s,f.default.sources.USER)}},"embed left":v(b.keys.LEFT,!1),"embed left shift":v(b.keys.LEFT,!0),"embed right":v(b.keys.RIGHT,!1),"embed right shift":v(b.keys.RIGHT,!0)}},t.default=b,t.SHORTKEY=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(r):void 0},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=l(n(0)),a=l(n(7));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e,n){!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.selection=n,r.textNode=document.createTextNode(t.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,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),o(t,null,[{key:"value",value:function(){}}]),o(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0!==this._length)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);for(var r=this,o=0;null!=r&&r.statics.scope!==s.default.Scope.BLOCK_BLOT;)o+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=t.CONTENTS.length,r.optimize(),r.formatAt(o,t.CONTENTS.length,e,n),this._length=0)}},{key:"index",value:function(e,n){return e===this.textNode?0:i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,n=this.selection.getNativeRange(),i=void 0,o=void 0,l=void 0;if(null!=n&&n.start.node===e&&n.end.node===e){var c=[e,n.start.offset,n.end.offset];i=c[0],o=c[1],l=c[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var u=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof a.default?(i=this.next.domNode,this.next.insertAt(0,u),this.textNode.data=t.CONTENTS):(this.textNode.data=u,this.parent.insertBefore(s.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=o){var d=[o,l].map((function(e){return Math.max(0,Math.min(i.data.length,e-1))})),f=r(d,2);return o=f[0],l=f[1],{startNode:i,startOffset:o,endNode:i,endOffset:l}}}}},{key:"update",value:function(e,t){var n=this;if(e.some((function(e){return"characterData"===e.type&&e.target===n.textNode}))){var r=this.restore();r&&(t.range=r)}}},{key:"value",value:function(){return""}}]),t}(s.default.Embed);c.blotName="cursor",c.className="ql-cursor",c.tagName="span",c.CONTENTS="\ufeff",t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(0)),i=n(4),o=s(i);function s(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 l(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 c=function(e){function t(){return a(this,t),l(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),t}(r.default.Container);c.allowedChildren=[o.default,i.BlockEmbed,c],t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(r):void 0},s=n(0),a=(r=s)&&r.__esModule?r:{default:r};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 u=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:"value",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join("")):n}}]),t}(a.default.Attributor.Style),d=new a.default.Attributor.Class("color","ql-color",{scope:a.default.Scope.INLINE}),f=new u("color","color",{scope:a.default.Scope.INLINE});t.ColorAttributor=u,t.ColorClass=d,t.ColorStyle=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(r):void 0},s=n(6);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(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 c=function(e){function t(){return a(this,t),l(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:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),n.setAttribute("href",e),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return u(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(((r=s)&&r.__esModule?r:{default:r}).default);function u(e,t){var n=document.createElement("a");n.href=e;var r=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(r)>-1}c.blotName="link",c.tagName="A",c.SANITIZED_URL="about:blank",c.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=c,t.sanitize=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=a(n(23)),s=a(n(107));function a(e){return e&&e.__esModule?e:{default:e}}var l=0;function c(e,t){e.setAttribute(t,!("true"===e.getAttribute(t)))}var u=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.keyCode){case o.default.keys.ENTER:n.togglePicker();break;case o.default.keys.ESCAPE:n.escape(),e.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return i(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),c(this.label,"aria-expanded"),c(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",(function(){t.selectItem(n,!0)})),n.addEventListener("keydown",(function(e){switch(e.keyCode){case o.default.keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case o.default.keys.ESCAPE:t.escape(),e.preventDefault()}})),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=s.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+l,l+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach((function(n){var r=e.buildItem(n);t.appendChild(r),!0===n.selected&&e.selectItem(r)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":r(Event))){var i=document.createEvent("Event");i.initEvent("change",!0,!0),this.select.dispatchEvent(i)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=g(n(0)),i=g(n(5)),o=n(4),s=g(o),a=g(n(16)),l=g(n(25)),c=g(n(24)),u=g(n(35)),d=g(n(6)),f=g(n(22)),p=g(n(7)),h=g(n(55)),O=g(n(42)),m=g(n(23));function g(e){return e&&e.__esModule?e:{default:e}}i.default.register({"blots/block":s.default,"blots/block/embed":o.BlockEmbed,"blots/break":a.default,"blots/container":l.default,"blots/cursor":c.default,"blots/embed":u.default,"blots/inline":d.default,"blots/scroll":f.default,"blots/text":p.default,"modules/clipboard":h.default,"modules/history":O.default,"modules/keyboard":m.default}),r.default.register(s.default,a.default,c.default,d.default,f.default,p.default),t.default=i.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(){function e(e){this.domNode=e,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"==typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return r.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,i){var o=this.isolate(e,t);if(null!=r.query(n,r.Scope.BLOT)&&i)o.wrap(n,i);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var s=r.create(this.statics.scope);o.wrap(s),s.format(n,i)}},e.prototype.insertAt=function(e,t,n){var i=null==n?r.create("text",t):r.create(t,n),o=this.split(e);this.parent.insertBefore(i,o)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"==typeof e?r.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"==typeof e?r.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),i=n(32),o=n(33),s=n(1),a=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=r.default.keys(this.domNode),n=i.default.keys(this.domNode),a=o.default.keys(this.domNode);t.concat(n).concat(a).forEach((function(t){var n=s.query(t,s.Scope.ATTRIBUTE);n instanceof r.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var r=t.attributes[n].value(t.domNode);e.format(n,r)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=a},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function o(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){o(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(o(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=s},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function o(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[o(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[o(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[o(this.keyName)];return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=n,this.modules={}}return r(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();i.DEFAULTS={modules:{}},i.themes={default:i},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(r):void 0},o=a(n(0)),s=a(n(7));function a(e){return e&&e.__esModule?e:{default:e}}var l="\ufeff",c=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 n=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 n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(e){n.contentNode.appendChild(e)})),n.leftGuard=document.createTextNode(l),n.rightGuard=document.createTextNode(l),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}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),r(t,[{key:"index",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"restore",value:function(e){var t=void 0,n=void 0,r=e.data.split(l).join("");if(e===this.leftGuard)if(this.prev instanceof s.default){var i=this.prev.length();this.prev.insertAt(i,r),t={startNode:this.prev.domNode,startOffset:i+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(o.default.create(n),this),t={startNode:n,startOffset:r.length};else e===this.rightGuard&&(this.next instanceof s.default?(this.next.insertAt(0,r),t={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(o.default.create(n),this.next),t={startNode:n,startOffset:r.length}));return e.data=l,t}},{key:"update",value:function(e,t){var n=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var r=n.restore(e.target);r&&(t.range=r)}}))}}]),t}(o.default.Embed);t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},s={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},a=new o.default.Attributor.Attribute("align","align",s),l=new o.default.Attributor.Class("align","ql-align",s),c=new o.default.Attributor.Style("align","text-align",s);t.AlignAttribute=a,t.AlignClass=l,t.AlignStyle=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},s=n(26),a=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),l=new s.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});t.BackgroundClass=a,t.BackgroundStyle=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},s={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},a=new o.default.Attributor.Attribute("direction","dir",s),l=new o.default.Attributor.Class("direction","ql-direction",s),c=new o.default.Attributor.Style("direction","direction",s);t.DirectionAttribute=a,t.DirectionClass=l,t.DirectionStyle=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(r):void 0},s=n(0),a=(r=s)&&r.__esModule?r:{default:r};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 u={scope:a.default.Scope.INLINE,whitelist:["serif","monospace"]},d=new a.default.Attributor.Class("font","ql-font",u),f=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:"value",value:function(e){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(a.default.Attributor.Style),p=new f("font","font-family",u);t.FontStyle=p,t.FontClass=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},s=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),a=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=s,t.SizeStyle=a},function(e,t,n){"use strict";e.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=s(n(0)),o=s(n(5));function s(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(e,n){!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,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(o.default.events.EDITOR_CHANGE,(function(e,t,n,i){e!==o.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&i!==o.default.sources.USER?r.transform(t):r.record(t,n))})),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),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),r(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],o.default.sources.USER),this.ignoreChange=!1;var r=l(n[e]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var i=this.stack.undo.pop();n=n.compose(i.undo),e=i.redo.compose(e)}else this.lastRecorded=r;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(s(n(9)).default);function l(e){var t=e.reduce((function(e,t){return e+=t.delete||0}),0),n=e.length()-t;return function(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=i.default.query(e,i.default.Scope.BLOCK)})))}(e)&&(n-=1),n}a.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=a,t.getLastChangeIndex=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(r):void 0},o=h(n(3)),s=h(n(2)),a=h(n(8)),l=h(n(23)),c=h(n(34)),u=h(n(59)),d=h(n(60)),f=h(n(28)),p=h(n(61));function h(e){return e&&e.__esModule?e:{default:e}}function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(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 g(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 y=[!1,"center","right","justify"],b=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],v=[!1,"serif","monospace"],w=["1","2","3",!1],$=["small",!1,"large","huge"],_=function(e){function t(e,n){O(this,t);var r=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return e.emitter.listenDOM("click",document.body,(function t(n){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach((function(e){e.container.contains(n.target)||e.close()}))})),r}return g(t,e),r(t,[{key:"addModule",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){(e.getAttribute("class")||"").split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n].rtl;else if("string"==typeof t[n])e.innerHTML=t[n];else{var r=e.value||"";null!=r&&t[n][r]&&(e.innerHTML=t[n][r])}}))}))}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&S(e,y),new d.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&S(e,b,"background"===n?"#ffffff":"#000000"),new u.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?S(e,v):e.classList.contains("ql-header")?S(e,w):e.classList.contains("ql-size")&&S(e,$)),new f.default(e)})),this.quill.on(a.default.events.EDITOR_CHANGE,(function(){n.pickers.forEach((function(e){e.update()}))}))}}]),t}(c.default);_.DEFAULTS=(0,o.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var r=e.quill.getSelection(!0);e.quill.updateContents((new s.default).retain(r.index).delete(r.length).insert({image:n.target.result}),a.default.sources.USER),e.quill.setSelection(r.index+1,a.default.sources.SILENT),t.value=""},n.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var x=function(e){function t(e,n){O(this,t);var r=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return g(t,e),r(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){l.default.match(t,"enter")?(e.save(),t.preventDefault()):l.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e,t,n=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var r=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",n,a.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",n,a.default.sources.USER)),this.quill.root.scrollTop=r;break;case"video":t=(e=n).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/),n=t?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e;case"formula":if(!n)break;var i=this.quill.getSelection(!0);if(null!=i){var o=i.index+i.length;this.quill.insertEmbed(o,this.root.getAttribute("data-mode"),n,a.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(o+1," ",a.default.sources.USER),this.quill.setSelection(o+2,a.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(p.default);function S(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var r=document.createElement("option");t===n?r.setAttribute("selected","selected"):r.setAttribute("value",t),e.appendChild(r)}))}t.BaseTooltip=x,t.default=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,r=this.iterator();n=r();){var i=n.length();if(e<i||t&&e===i&&(null==n.next||0!==n.next.length()))return[n,e];e-=i}return[null,0]},e.prototype.forEach=function(e){for(var t,n=this.iterator();t=n();)e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0))for(var r,i=this.find(e),o=i[0],s=e-i[1],a=this.iterator(o);(r=a())&&s<e+t;){var l=r.length();e>s?n(r,e-s,Math.min(t,s+l-e)):n(r,0,Math.min(l,e+t-s)),s+=l}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){for(var n,r=this.iterator();n=r();)t=e(t,n);return t},e}();t.default=r},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(17),s=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},l=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,a),n.attach(),n}return i(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,r,i){this.update(),e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.insertAt=function(t,n,r){this.update(),e.prototype.insertAt.call(this,t,n,r)},t.prototype.optimize=function(t,n){var r=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var i=[].slice.call(this.observer.takeRecords());i.length>0;)t.push(i.pop());for(var a=function(e,t){void 0===t&&(t=!0),null!=e&&e!==r&&null!=e.domNode.parentNode&&(null==e.domNode[s.DATA_KEY].mutations&&(e.domNode[s.DATA_KEY].mutations=[]),t&&a(e.parent))},l=function(e){null!=e.domNode[s.DATA_KEY]&&null!=e.domNode[s.DATA_KEY].mutations&&(e instanceof o.default&&e.children.forEach(l),e.optimize(n))},c=t,u=0;c.length>0;u+=1){if(u>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach((function(e){var t=s.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(a(s.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=s.find(e,!1);a(t,!1),t instanceof o.default&&t.children.forEach((function(e){a(e,!1)}))}))):"attributes"===e.type&&a(t.prev)),a(t))})),this.children.forEach(l),i=(c=[].slice.call(this.observer.takeRecords())).slice();i.length>0;)t.push(i.pop())}},t.prototype.update=function(t,n){var r=this;void 0===n&&(n={}),(t=t||this.observer.takeRecords()).map((function(e){var t=s.find(e.target,!0);return null==t?null:null==t.domNode[s.DATA_KEY].mutations?(t.domNode[s.DATA_KEY].mutations=[e],t):(t.domNode[s.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==r&&null!=e.domNode[s.DATA_KEY]&&e.update(e.domNode[s.DATA_KEY].mutations||[],n)})),null!=this.domNode[s.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[s.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=s.Scope.BLOCK_BLOT,t.tagName="DIV",t}(o.default);t.default=l},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(18),s=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,r){var i=this;n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):(this.children.forEach((function(e){e instanceof o.default||(e=e.wrap(t.blotName,!0)),i.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,r,i){null!=this.formats()[r]||s.query(r,s.Scope.ATTRIBUTE)?this.isolate(t,n).format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var i=this.next;i instanceof t&&i.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(r,i.formats())&&(i.moveChildren(this),i.remove())},t.blotName="inline",t.scope=s.Scope.INLINE_BLOT,t.tagName="SPAN",t}(o.default);t.default=a},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(18),s=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.formats=function(n){var r=s.query(t.blotName).tagName;if(n.tagName!==r)return e.formats.call(this,n)},t.prototype.format=function(n,r){null!=s.query(n,s.Scope.BLOCK)&&(n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,r,i){null!=s.query(r,s.Scope.BLOCK)?this.format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.insertAt=function(t,n,r){if(null==r||null!=s.query(n,s.Scope.INLINE))e.prototype.insertAt.call(this,t,n,r);else{var i=this.split(t),o=s.create(n,r);i.parent.insertBefore(o,i)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=s.Scope.BLOCK_BLOT,t.tagName="P",t}(o.default);t.default=a},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,r,i){0===t&&n===this.length()?this.format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19).default);t.default=o},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(19),s=n(1),a=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return i(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,r){null==r?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,r)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=s.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=s.Scope.INLINE_BLOT,t}(o.default);t.default=a},function(e,t,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:i.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,i=arguments[1],o=0;o<r;o++)if(t=n[o],e.call(i,t,o,n))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){var n=-1;function r(e,t,l){if(e==t)return e?[[0,e]]:[];(l<0||e.length<l)&&(l=null);var u=o(e,t),d=e.substring(0,u);u=s(e=e.substring(u),t=t.substring(u));var f=e.substring(e.length-u),p=function(e,t){var a;if(!e)return[[1,t]];if(!t)return[[n,e]];var l=e.length>t.length?e:t,c=e.length>t.length?t:e,u=l.indexOf(c);if(-1!=u)return a=[[1,l.substring(0,u)],[0,c],[1,l.substring(u+c.length)]],e.length>t.length&&(a[0][0]=a[2][0]=n),a;if(1==c.length)return[[n,e],[1,t]];var d=function(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;function i(e,t,n){for(var r,i,a,l,c=e.substring(n,n+Math.floor(e.length/4)),u=-1,d="";-1!=(u=t.indexOf(c,u+1));){var f=o(e.substring(n),t.substring(u)),p=s(e.substring(0,n),t.substring(0,u));d.length<p+f&&(d=t.substring(u-p,u)+t.substring(u,u+f),r=e.substring(0,n-p),i=e.substring(n+f),a=t.substring(0,u-p),l=t.substring(u+f))}return 2*d.length>=e.length?[r,i,a,l,d]:null}var a,l,c,u,d,f=i(n,r,Math.ceil(n.length/4)),p=i(n,r,Math.ceil(n.length/2));if(!f&&!p)return null;a=p?f&&f[4].length>p[4].length?f:p:f,e.length>t.length?(l=a[0],c=a[1],u=a[2],d=a[3]):(u=a[0],d=a[1],l=a[2],c=a[3]);var h=a[4];return[l,c,u,d,h]}(e,t);if(d){var f=d[0],p=d[1],h=d[2],O=d[3],m=d[4],g=r(f,h),y=r(p,O);return g.concat([[0,m]],y)}return function(e,t){for(var r=e.length,o=t.length,s=Math.ceil((r+o)/2),a=s,l=2*s,c=new Array(l),u=new Array(l),d=0;d<l;d++)c[d]=-1,u[d]=-1;c[a+1]=0,u[a+1]=0;for(var f=r-o,p=f%2!=0,h=0,O=0,m=0,g=0,y=0;y<s;y++){for(var b=-y+h;b<=y-O;b+=2){for(var v=a+b,w=(Q=b==-y||b!=y&&c[v-1]<c[v+1]?c[v+1]:c[v-1]+1)-b;Q<r&&w<o&&e.charAt(Q)==t.charAt(w);)Q++,w++;if(c[v]=Q,Q>r)O+=2;else if(w>o)h+=2;else if(p&&(x=a+f-b)>=0&&x<l&&-1!=u[x]&&Q>=(_=r-u[x]))return i(e,t,Q,w)}for(var $=-y+m;$<=y-g;$+=2){for(var _,x=a+$,S=(_=$==-y||$!=y&&u[x-1]<u[x+1]?u[x+1]:u[x-1]+1)-$;_<r&&S<o&&e.charAt(r-_-1)==t.charAt(o-S-1);)_++,S++;if(u[x]=_,_>r)g+=2;else if(S>o)m+=2;else if(!p){var Q;if((v=a+f-$)>=0&&v<l&&-1!=c[v])if(w=a+(Q=c[v])-v,Q>=(_=r-_))return i(e,t,Q,w)}}}return[[n,e],[1,t]]}(e,t)}(e=e.substring(0,e.length-u),t=t.substring(0,t.length-u));return d&&p.unshift([0,d]),f&&p.push([0,f]),a(p),null!=l&&(p=function(e,t){var r=function(e,t){if(0===t)return[0,e];for(var r=0,i=0;i<e.length;i++){var o=e[i];if(o[0]===n||0===o[0]){var s=r+o[1].length;if(t===s)return[i+1,e];if(t<s){e=e.slice();var a=t-r,l=[o[0],o[1].slice(0,a)],c=[o[0],o[1].slice(a)];return e.splice(i,1,l,c),[i+1,e]}r=s}}throw new Error("cursor_pos is out of bounds!")}(e,t),i=r[1],o=r[0],s=i[o],a=i[o+1];if(null==s)return e;if(0!==s[0])return e;if(null!=a&&s[1]+a[1]===a[1]+s[1])return i.splice(o,2,a,s),c(i,o,2);if(null!=a&&0===a[1].indexOf(s[1])){i.splice(o,2,[a[0],s[1]],[0,s[1]]);var l=a[1].slice(s[1].length);return l.length>0&&i.splice(o+2,0,[a[0],l]),c(i,o,3)}return e}(p,l)),p=function(e){for(var t=!1,r=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},i=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},o=2;o<e.length;o+=1)0===e[o-2][0]&&i(e[o-2][1])&&e[o-1][0]===n&&r(e[o-1][1])&&1===e[o][0]&&r(e[o][1])&&(t=!0,e[o-1][1]=e[o-2][1].slice(-1)+e[o-1][1],e[o][1]=e[o-2][1].slice(-1)+e[o][1],e[o-2][1]=e[o-2][1].slice(0,-1));if(!t)return e;var s=[];for(o=0;o<e.length;o+=1)e[o][1].length>0&&s.push(e[o]);return s}(p)}function i(e,t,n,i){var o=e.substring(0,n),s=t.substring(0,i),a=e.substring(n),l=t.substring(i),c=r(o,s),u=r(a,l);return c.concat(u)}function o(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,o=0;n<i;)e.substring(o,i)==t.substring(o,i)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i}function s(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,o=0;n<i;)e.substring(e.length-i,e.length-o)==t.substring(t.length-i,t.length-o)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i}function a(e){e.push([0,""]);for(var t,r=0,i=0,l=0,c="",u="";r<e.length;)switch(e[r][0]){case 1:l++,u+=e[r][1],r++;break;case n:i++,c+=e[r][1],r++;break;case 0:i+l>1?(0!==i&&0!==l&&(0!==(t=o(u,c))&&(r-i-l>0&&0==e[r-i-l-1][0]?e[r-i-l-1][1]+=u.substring(0,t):(e.splice(0,0,[0,u.substring(0,t)]),r++),u=u.substring(t),c=c.substring(t)),0!==(t=s(u,c))&&(e[r][1]=u.substring(u.length-t)+e[r][1],u=u.substring(0,u.length-t),c=c.substring(0,c.length-t))),0===i?e.splice(r-l,i+l,[1,u]):0===l?e.splice(r-i,i+l,[n,c]):e.splice(r-i-l,i+l,[n,c],[1,u]),r=r-i-l+(i?1:0)+(l?1:0)+1):0!==r&&0==e[r-1][0]?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,l=0,i=0,c="",u=""}""===e[e.length-1][1]&&e.pop();var d=!1;for(r=1;r<e.length-1;)0==e[r-1][0]&&0==e[r+1][0]&&(e[r][1].substring(e[r][1].length-e[r-1][1].length)==e[r-1][1]?(e[r][1]=e[r-1][1]+e[r][1].substring(0,e[r][1].length-e[r-1][1].length),e[r+1][1]=e[r-1][1]+e[r+1][1],e.splice(r-1,1),d=!0):e[r][1].substring(0,e[r+1][1].length)==e[r+1][1]&&(e[r-1][1]+=e[r+1][1],e[r][1]=e[r][1].substring(e[r+1][1].length)+e[r+1][1],e.splice(r+1,1),d=!0)),r++;d&&a(e)}var l=r;function c(e,t,n){for(var r=t+n-1;r>=0&&r>=t-1;r--)if(r+1<e.length){var i=e[r],o=e[r+1];i[0]===o[1]&&e.splice(r,2,[i[0],i[1]+o[1]])}return e}l.INSERT=1,l.DELETE=n,l.EQUAL=0,e.exports=l},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function i(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=n?r:i).supported=r,t.unsupported=i},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function i(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(r=!1)),s.prototype.eventNames=function(){var e,t,i=[];if(0===this._eventsCount)return i;for(t in e=this._events)n.call(e,t)&&i.push(r?t.slice(1):t);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e,t){var n=r?r+e:e,i=this._events[n];if(t)return!!i;if(!i)return[];if(i.fn)return[i.fn];for(var o=0,s=i.length,a=new Array(s);o<s;o++)a[o]=i[o].fn;return a},s.prototype.emit=function(e,t,n,i,o,s){var a=r?r+e:e;if(!this._events[a])return!1;var l,c,u=this._events[a],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,i),!0;case 5:return u.fn.call(u.context,t,n,i,o),!0;case 6:return u.fn.call(u.context,t,n,i,o,s),!0}for(c=1,l=new Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var f,p=u.length;for(c=0;c<p;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,n);break;case 4:u[c].fn.call(u[c].context,t,n,i);break;default:if(!l)for(f=1,l=new Array(d-1);f<d;f++)l[f-1]=arguments[f];u[c].fn.apply(u[c].context,l)}}return!0},s.prototype.on=function(e,t,n){var i=new o(t,n||this),s=r?r+e:e;return this._events[s]?this._events[s].fn?this._events[s]=[this._events[s],i]:this._events[s].push(i):(this._events[s]=i,this._eventsCount++),this},s.prototype.once=function(e,t,n){var i=new o(t,n||this,!0),s=r?r+e:e;return this._events[s]?this._events[s].fn?this._events[s]=[this._events[s],i]:this._events[s].push(i):(this._events[s]=i,this._eventsCount++),this},s.prototype.removeListener=function(e,t,n,o){var s=r?r+e:e;if(!this._events[s])return this;if(!t)return 0==--this._eventsCount?this._events=new i:delete this._events[s],this;var a=this._events[s];if(a.fn)a.fn!==t||o&&!a.once||n&&a.context!==n||(0==--this._eventsCount?this._events=new i:delete this._events[s]);else{for(var l=0,c=[],u=a.length;l<u;l++)(a[l].fn!==t||o&&!a[l].once||n&&a[l].context!==n)&&c.push(a[l]);c.length?this._events[s]=1===c.length?c[0]:c:0==--this._eventsCount?this._events=new i:delete this._events[s]}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&(0==--this._eventsCount?this._events=new i:delete this._events[t])):(this._events=new i,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prototype.setMaxListeners=function(){return this},s.prefixed=r,s.EventEmitter=s,void 0!==e&&(e.exports=s)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=b(n(3)),a=b(n(2)),l=b(n(0)),c=b(n(5)),u=b(n(10)),d=b(n(9)),f=n(36),p=n(37),h=b(n(13)),O=n(26),m=n(38),g=n(39),y=n(40);function b(e){return e&&e.__esModule?e:{default:e}}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=(0,u.default)("quill:clipboard"),$="__ql-matcher",_=[[Node.TEXT_NODE,z],[Node.TEXT_NODE,C],["br",function(e,t){return T(t,"\n")||t.insert("\n"),t}],[Node.ELEMENT_NODE,C],[Node.ELEMENT_NODE,N],[Node.ELEMENT_NODE,A],[Node.ELEMENT_NODE,j],[Node.ELEMENT_NODE,function(e,t){var n={},r=e.style||{};return r.fontStyle&&"italic"===P(e).fontStyle&&(n.italic=!0),r.fontWeight&&(P(e).fontWeight.startsWith("bold")||parseInt(P(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=k(t,n)),parseFloat(r.textIndent||0)>0&&(t=(new a.default).insert("\t").concat(t)),t}],["li",function(e,t){var n=l.default.query(e);if(null==n||"list-item"!==n.blotName||!T(t,"\n"))return t;for(var r=-1,i=e.parentNode;!i.classList.contains("ql-clipboard");)"list"===(l.default.query(i)||{}).blotName&&(r+=1),i=i.parentNode;return r<=0?t:t.compose((new a.default).retain(t.length()-1).retain(1,{indent:r}))}],["b",E.bind(E,"bold")],["i",E.bind(E,"italic")],["style",function(){return new a.default}]],x=[f.AlignAttribute,m.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),S=[f.AlignStyle,p.BackgroundStyle,O.ColorStyle,m.DirectionStyle,g.FontStyle,y.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),Q=function(e){function t(e,n){!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,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],_.concat(r.options.matchers).forEach((function(e){var t=i(e,2),o=t[0],s=t[1];(n.matchVisual||s!==A)&&r.addMatcher(o,s)})),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),o(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"==typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[h.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new a.default).insert(n,v({},h.default.blotName,t[h.default.blotName]))}var r=this.prepareMatching(),o=i(r,2),s=o[0],l=o[1],c=R(this.container,s,l);return T(c,"\n")&&null==c.ops[c.ops.length-1].attributes&&(c=c.compose((new a.default).retain(c.length()-1).delete(1))),w.log("convert",this.container.innerHTML,c),this.container.innerHTML="",c}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.default.sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,c.default.sources.SILENT);else{var r=this.convert(t);this.quill.updateContents((new a.default).retain(e).concat(r),n),this.quill.setSelection(e+r.length(),c.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new a.default).retain(n.index),i=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(c.default.sources.SILENT),setTimeout((function(){r=r.concat(t.convert()).delete(n.length),t.quill.updateContents(r,c.default.sources.USER),t.quill.setSelection(r.length()-n.length,c.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=i,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(r){var o=i(r,2),s=o[0],a=o[1];switch(s){case Node.TEXT_NODE:n.push(a);break;case Node.ELEMENT_NODE:t.push(a);break;default:[].forEach.call(e.container.querySelectorAll(s),(function(e){e[$]=e[$]||[],e[$].push(a)}))}})),[t,n]}}]),t}(d.default);function k(e,t,n){return"object"===(void 0===t?"undefined":r(t))?Object.keys(t).reduce((function(e,n){return k(e,n,t[n])}),e):e.reduce((function(e,r){return r.attributes&&r.attributes[t]?e.push(r):e.insert(r.insert,(0,s.default)({},v({},t,n),r.attributes))}),new a.default)}function P(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function T(e,t){for(var n="",r=e.ops.length-1;r>=0&&n.length<t.length;--r){var i=e.ops[r];if("string"!=typeof i.insert)break;n=i.insert+n}return n.slice(-1*t.length)===t}function q(e){if(0===e.childNodes.length)return!1;var t=P(e);return["block","list-item"].indexOf(t.display)>-1}function R(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new a.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(r,i){var o=R(i,t,n);return i.nodeType===e.ELEMENT_NODE&&(o=t.reduce((function(e,t){return t(i,e)}),o),o=(i[$]||[]).reduce((function(e,t){return t(i,e)}),o)),r.concat(o)}),new a.default):new a.default}function E(e,t,n){return k(n,e,!0)}function j(e,t){var n=l.default.Attributor.Attribute.keys(e),r=l.default.Attributor.Class.keys(e),i=l.default.Attributor.Style.keys(e),o={};return n.concat(r).concat(i).forEach((function(t){var n=l.default.query(t,l.default.Scope.ATTRIBUTE);null!=n&&(o[n.attrName]=n.value(e),o[n.attrName])||(null==(n=x[t])||n.attrName!==t&&n.keyName!==t||(o[n.attrName]=n.value(e)||void 0),null==(n=S[t])||n.attrName!==t&&n.keyName!==t||(n=S[t],o[n.attrName]=n.value(e)||void 0))})),Object.keys(o).length>0&&(t=k(t,o)),t}function N(e,t){var n=l.default.query(e);if(null==n)return t;if(n.prototype instanceof l.default.Embed){var r={},i=n.value(e);null!=i&&(r[n.blotName]=i,t=(new a.default).insert(r,n.formats(e)))}else"function"==typeof n.formats&&(t=k(t,n.blotName,n.formats(e)));return t}function C(e,t){return T(t,"\n")||(q(e)||t.length()>0&&e.nextSibling&&q(e.nextSibling))&&t.insert("\n"),t}function A(e,t){if(q(e)&&null!=e.nextElementSibling&&!T(t,"\n\n")){var n=e.offsetHeight+parseFloat(P(e).marginTop)+parseFloat(P(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function z(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!P(e.parentNode).whiteSpace.startsWith("pre")){var r=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,r.bind(r,!0)),(null==e.previousSibling&&q(e.parentNode)||null!=e.previousSibling&&q(e.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==e.nextSibling&&q(e.parentNode)||null!=e.nextSibling&&q(e.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return t.insert(n)}Q.DEFAULTS={matchers:[],matchVisual:!0},t.default=Q,t.matchAttributor=j,t.matchBlot=N,t.matchNewline=C,t.matchSpacing=A,t.matchText=z},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(r):void 0},s=n(6);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(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 c=function(e){function t(){return a(this,t),l(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:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(((r=s)&&r.__esModule?r:{default:r}).default);c.blotName="bold",c.tagName=["STRONG","B"],t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=u(n(2)),s=u(n(0)),a=u(n(5)),l=u(n(10)),c=u(n(9));function u(e){return e&&e.__esModule?e:{default:e}}function d(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 f=(0,l.default)("quill:toolbar"),p=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i,o=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(o.options.container)){var s=document.createElement("div");O(s,o.options.container),e.container.parentNode.insertBefore(s,e.container),o.container=s}else"string"==typeof o.options.container?o.container=document.querySelector(o.options.container):o.container=o.options.container;return o.container instanceof HTMLElement?(o.container.classList.add("ql-toolbar"),o.controls=[],o.handlers={},Object.keys(o.options.handlers).forEach((function(e){o.addHandler(e,o.options.handlers[e])})),[].forEach.call(o.container.querySelectorAll("button, select"),(function(e){o.attach(e)})),o.quill.on(a.default.events.EDITOR_CHANGE,(function(e,t){e===a.default.events.SELECTION_CHANGE&&o.update(t)})),o.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){var e=o.quill.selection.getRange(),t=r(e,1)[0];o.update(t)})),o):(i=f.error("Container required for toolbar",o.options),d(o,i))}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:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(n){if(n=n.slice("ql-".length),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void f.warn("ignoring attaching to disabled format",n,e);if(null==s.default.query(n))return void f.warn("ignoring attaching to nonexistent format",n,e)}var i="SELECT"===e.tagName?"change":"click";e.addEventListener(i,(function(i){var l=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var c=e.options[e.selectedIndex];l=!c.hasAttribute("selected")&&(c.value||!1)}else l=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),i.preventDefault();t.quill.focus();var u=t.quill.selection.getRange(),d=r(u,1)[0];if(null!=t.handlers[n])t.handlers[n].call(t,l);else if(s.default.query(n).prototype instanceof s.default.Embed){if(!(l=prompt("Enter "+n)))return;t.quill.updateContents((new o.default).retain(d.index).delete(d.length).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,l)),a.default.sources.USER)}else t.quill.format(n,l,a.default.sources.USER);t.update(d)})),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(n){var i=r(n,2),o=i[0],s=i[1];if("SELECT"===s.tagName){var a=void 0;if(null==e)a=null;else if(null==t[o])a=s.querySelector("option[selected]");else if(!Array.isArray(t[o])){var l=t[o];"string"==typeof l&&(l=l.replace(/\"/g,'\\"')),a=s.querySelector('option[value="'+l+'"]')}null==a?(s.value="",s.selectedIndex=-1):a.selected=!0}else if(null==e)s.classList.remove("ql-active");else if(s.hasAttribute("value")){var c=t[o]===s.getAttribute("value")||null!=t[o]&&t[o].toString()===s.getAttribute("value")||null==t[o]&&!s.getAttribute("value");s.classList.toggle("ql-active",c)}else s.classList.toggle("ql-active",null!=t[o])}))}}]),t}(c.default);function h(e,t,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+t),null!=n&&(r.value=n),e.appendChild(r)}function O(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach((function(e){if("string"==typeof e)h(n,e);else{var t=Object.keys(e)[0],r=e[t];Array.isArray(r)?function(e,t,n){var r=document.createElement("select");r.classList.add("ql-"+t),n.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),r.appendChild(t)})),e.appendChild(r)}(n,t,r):h(n,t,r)}})),e.appendChild(n)}))}p.DEFAULTS={},p.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(t){null!=s.default.query(t,s.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,a.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",a.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,a.default.sources.USER),this.quill.format("direction",e,a.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),r=parseInt(n.indent||0);if("+1"===e||"-1"===e){var i="+1"===e?1:-1;"rtl"===n.direction&&(i*=-1),this.quill.format("indent",r+i,a.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,a.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,a.default.sources.USER):this.quill.format("list","unchecked",a.default.sources.USER):this.quill.format("list",e,a.default.sources.USER)}}},t.default=p,t.ad