Instant Images – One Click Unsplash Uploads - Version 4.6.0

Version Description

  • January 2, 2022 = NEW: Added Pexels integration. This requires a valid API key. FIX: Fixed issue with filtering Unsplash search results by 'all'. FIX: Various admin UI/UX updates and tweaks to improve the look and feel.
Download this release

Release Info

Developer dcooney
Plugin Icon 128x128 Instant Images – One Click Unsplash Uploads
Version 4.6.0
Comparing to
See all releases

Code changes from version 4.5.1 to 4.6.0

README.txt CHANGED
@@ -1,18 +1,18 @@
1
- === Instant Images - One Click Unsplash and Pixabay Uploads ===
2
  Contributors: dcooney, connekthq
3
  Donate link: https://connekthq.com/donate/
4
- Tags: unsplash, pixabay, stock photo, prototyping, photos, media library, image upload, upload, free photos
5
  Requires at least: 4.0
6
- Tested up to: 5.8
7
  Stable tag: trunk
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
- One click uploads of Unsplash and Pixabay photos directly to your WordPress media library.
12
 
13
  == Description ==
14
 
15
- Instantly upload photos from Unsplash or Pixabay to your website without leaving WordPress!
16
 
17
  **Instant Images** is the fastest and easiest way to upload high quality FREE photos from [unsplash.com](http://unsplash.com) and [Pixabay](http://pixabay.com) directly to your media library.
18
 
@@ -91,6 +91,10 @@ No, there is no need to sign up from an Unsplash account to access the photos se
91
  Yes, Pixabay access requires an API key. You can get this by signing up for a free account at [Pixabay](https://pixabay.com/).
92
 
93
 
 
 
 
 
94
  == Installation ==
95
 
96
  How to install Instant Images.
@@ -128,6 +132,11 @@ How to install Instant Images.
128
 
129
  == Changelog ==
130
 
 
 
 
 
 
131
  = 4.5.1 - December 27, 2021 =
132
  NEW: Added Pixabay photo filters (Type, Category, Colors and Orientation).
133
  NEW: Added Unsplash search filters for Color, Orientation and Order.
1
+ === Instant Images - One Click Unsplash, Pixabay and Pexels Uploads ===
2
  Contributors: dcooney, connekthq
3
  Donate link: https://connekthq.com/donate/
4
+ Tags: unsplash, pixabay, pexels, stock photo, prototyping, photos, media library, image upload, upload, free photos
5
  Requires at least: 4.0
6
+ Tested up to: 5.8.2
7
  Stable tag: trunk
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
+ One click uploads of photos from Unsplash, Pixabay and Pexels directly to your WordPress media library.
12
 
13
  == Description ==
14
 
15
+ Instantly upload photos from Unsplash, Pixabay or Pexels to your website without leaving WordPress!
16
 
17
  **Instant Images** is the fastest and easiest way to upload high quality FREE photos from [unsplash.com](http://unsplash.com) and [Pixabay](http://pixabay.com) directly to your media library.
18
 
91
  Yes, Pixabay access requires an API key. You can get this by signing up for a free account at [Pixabay](https://pixabay.com/).
92
 
93
 
94
+ = Do I need an account at Pexels? =
95
+ Yes, Pexels access requires an API key. You can get this by signing up for a free account at [Pexels](https://pexels.com/).
96
+
97
+
98
  == Installation ==
99
 
100
  How to install Instant Images.
132
 
133
  == Changelog ==
134
 
135
+ = 4.6.0 - January 2, 2022 =
136
+ NEW: Added Pexels integration. This requires a valid API key.
137
+ FIX: Fixed issue with filtering Unsplash search results by 'all'.
138
+ FIX: Various admin UI/UX updates and tweaks to improve the look and feel.
139
+
140
  = 4.5.1 - December 27, 2021 =
141
  NEW: Added Pixabay photo filters (Type, Category, Colors and Orientation).
142
  NEW: Added Unsplash search filters for Color, Orientation and Order.
admin/includes/page-settings.php CHANGED
@@ -12,6 +12,12 @@
12
  <h2><?php esc_attr_e( 'What\'s New', 'instant-images' ); ?></h2>
13
  <p><?php esc_attr_e( 'The latest Instant Images updates.', 'instant-images' ); ?></p>
14
  <ul>
 
 
 
 
 
 
15
  <li>
16
  <p>
17
  <strong>Pixabay</strong>
12
  <h2><?php esc_attr_e( 'What\'s New', 'instant-images' ); ?></h2>
13
  <p><?php esc_attr_e( 'The latest Instant Images updates.', 'instant-images' ); ?></p>
14
  <ul>
15
+ <li>
16
+ <p>
17
+ <strong>Pexels</strong>
18
+ We've added support for the <a href="https://pexels.com/" target="_blank">Pexels</a> API. This requires your own API key.
19
+ </p>
20
+ </li>
21
  <li>
22
  <p>
23
  <strong>Pixabay</strong>
admin/includes/settings.php CHANGED
@@ -16,6 +16,9 @@ if ( ! defined( 'ABSPATH' ) ) {
16
  * @since 2.0
17
  */
18
  function instant_images_admin_init() {
 
 
 
19
  register_setting(
20
  'instant-img-setting-group',
21
  'instant_img_settings',
@@ -56,14 +59,24 @@ function instant_images_admin_init() {
56
  'unsplash_general_settings'
57
  );
58
 
59
- // Pixabay API Key.
60
- add_settings_field(
61
- 'pixabay_api',
62
- __( 'Pixabay API Key', 'instant-images' ),
63
- 'instant_images_pixabay_api_callback',
64
- 'instant-images',
65
- 'unsplash_general_settings'
66
- );
 
 
 
 
 
 
 
 
 
 
67
 
68
  // Button Display.
69
  add_settings_field(
@@ -177,7 +190,8 @@ function instant_images_tab_display_callback() {
177
  * @since 4.5
178
  */
179
  function instant_images_default_provider() {
180
- $options = get_option( 'instant_img_settings' );
 
181
  if ( ! isset( $options['default_provider'] ) ) {
182
  $options['default_provider'] = 'unsplash';
183
  }
@@ -186,34 +200,63 @@ function instant_images_default_provider() {
186
  <strong><?php esc_attr_e( 'Default Provider:', 'instant-images' ); ?></strong>
187
  </label>
188
  <select id="default_provider" name="instant_img_settings[default_provider]">
189
- <option value="unsplash" <?php selected( 'unsplash', $options['default_provider'] ); ?>><?php esc_attr_e( 'Unsplash', 'instant-images' ); ?></option>
190
- <option value="pixabay" <?php selected( 'pixabay', $options['default_provider'] ); ?>><?php esc_attr_e( 'Pixabay', 'instant-images' ); ?> (<?php esc_attr_e( 'Requires API Key', 'instant-images' ); ?>)</option>
 
 
 
 
 
 
 
191
  </select>
192
  <?php
193
  }
194
 
 
195
  /**
196
- * Set the Pizabay API key.
197
  *
198
  * @author ConnektMedia <support@connekthq.com>
199
  * @since 4.5
200
  */
201
- function instant_images_pixabay_api_callback() {
202
- $options = get_option( 'instant_img_settings' );
 
203
 
204
- if ( defined( 'INSTANT_IMAGES_PIXABAY_KEY' ) ) {
205
- $options['pixabay_api'] = INSTANT_IMAGES_PIXABAY_KEY; // Constant.
206
- } else {
207
- if ( ! isset( $options['pixabay_api'] ) ) {
208
- $options['pixabay_api'] = '';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
209
  }
210
  }
 
211
 
212
- ?>
213
- <label for="pixabay_api" style="cursor: default; margin-bottom: 3px;">
214
- <strong><?php esc_attr_e( 'Pixabay API Key:', 'instant-images' ); ?></strong>
215
- </label>
216
- <input type="text" id="pixabay_api" name="instant_img_settings[pixabay_api]" value="<?php echo wp_kses_post( $options['pixabay_api'] ); ?>" <?php echo defined( 'INSTANT_IMAGES_PIXABAY_KEY' ) ? ' readonly="readonly"' : ''; ?>>
217
- <span class="desc">&rarr; <a href="https://pixabay.com/" target="_blank"><?php esc_attr_e( 'Get API Key', 'instant-images' ); ?></a></span>
218
- <?php
 
219
  }
16
  * @since 2.0
17
  */
18
  function instant_images_admin_init() {
19
+
20
+ $providers = InstantImages::instant_img_get_providers();
21
+
22
  register_setting(
23
  'instant-img-setting-group',
24
  'instant_img_settings',
59
  'unsplash_general_settings'
60
  );
61
 
62
+ // Providers API Keys.
63
+ $count = 0;
64
+ foreach ( $providers as $provider ) {
65
+ if ( $provider['requires_key'] ) {
66
+ $count++;
67
+ $key = $provider['slug'] . '_api';
68
+ $title = $provider['name'] . __( 'API Key', 'instant-images' );
69
+ // Only set the callback on the first item as they are created only once.
70
+ $callback = 1 === $count ? 'instant_images_api_key_callback' : 'instant_images_callable';
71
+ add_settings_field(
72
+ $key,
73
+ $title,
74
+ $callback,
75
+ 'instant-images',
76
+ 'unsplash_general_settings'
77
+ );
78
+ }
79
+ }
80
 
81
  // Button Display.
82
  add_settings_field(
190
  * @since 4.5
191
  */
192
  function instant_images_default_provider() {
193
+ $providers = InstantImages::instant_img_get_providers();
194
+ $options = get_option( 'instant_img_settings' );
195
  if ( ! isset( $options['default_provider'] ) ) {
196
  $options['default_provider'] = 'unsplash';
197
  }
200
  <strong><?php esc_attr_e( 'Default Provider:', 'instant-images' ); ?></strong>
201
  </label>
202
  <select id="default_provider" name="instant_img_settings[default_provider]">
203
+ <?php foreach ( $providers as $provider ) { ?>
204
+ <option value="<?php echo esc_html( $provider['slug'] ); ?>" <?php selected( esc_html( $provider['slug'] ), $options['default_provider'] ); ?>>
205
+ <?php echo esc_html( $provider['name'] ); ?>
206
+ <?php
207
+ if ( $provider['requires_key'] ) {
208
+ ?>
209
+ (<?php esc_attr_e( 'Requires API Key', 'instant-images' ); ?>) <?php } ?>
210
+ </option>
211
+ <?php } ?>
212
  </select>
213
  <?php
214
  }
215
 
216
+
217
  /**
218
+ * Set the API keys for each required provider.
219
  *
220
  * @author ConnektMedia <support@connekthq.com>
221
  * @since 4.5
222
  */
223
+ function instant_images_api_key_callback() {
224
+ $providers = InstantImages::instant_img_get_providers();
225
+ $options = get_option( 'instant_img_settings' );
226
 
227
+ foreach ( $providers as $provider ) {
228
+ if ( $provider['requires_key'] ) {
229
+
230
+ $key = $provider['slug'] . '_api';
231
+ $title = $provider['name'] . ' ' . __( 'API Key', 'instant-images' );
232
+ $constant = $provider['constant'];
233
+ $url = $provider['url'];
234
+
235
+ if ( defined( $constant ) ) {
236
+ $options[ $key ] = constant( $constant );
237
+ } else {
238
+ if ( ! isset( $options[ $key ] ) ) {
239
+ $options[ $key ] = '';
240
+ }
241
+ }
242
+ ?>
243
+ <label for="<?php echo esc_html( $key ); ?>" style="cursor: default; margin-bottom: 3px;">
244
+ <strong><?php echo esc_attr( $title ); ?></strong>
245
+ </label>
246
+ <input type="text" id="<?php echo esc_html( $key ); ?>" name="instant_img_settings[<?php echo esc_html( $key ); ?>]" value="<?php echo wp_kses_post( $options[ $key ] ); ?>" <?php echo defined( 'INSTANT_IMAGES_PIXABAY_KEY' ) ? ' readonly="readonly"' : ''; ?>>
247
+ <span class="desc">&rarr; <a href="<?php echo wp_kses_post( $url ); ?>" target="_blank"><?php esc_attr_e( 'Get API Key', 'instant-images' ); ?></a></span>
248
+
249
+ <?php
250
  }
251
  }
252
+ }
253
 
254
+ /**
255
+ * Empty callback function for the API Key switcher.
256
+ *
257
+ * @author ConnektMedia <support@connekthq.com>
258
+ * @since 4.6
259
+ */
260
+ function instant_images_callable() {
261
+ return null;
262
  }
admin/views/app.php CHANGED
@@ -17,9 +17,9 @@ if ( ! defined( 'ABSPATH' ) ) {
17
  <span>
18
  <?php
19
  // translators: Instant Images tagline.
20
- $instant_images_tagline = __( 'One click photo uploads from %1$s and %2$s.', 'instant-images' );
21
  // @codingStandardsIgnoreStart
22
- echo sprintf( $instant_images_tagline, '<a href="https://unsplash.com/" target="_blank">Unsplash</a>', '<a href="https://pixabay.com/" target="_blank">Pixabay</a>' );
23
  // @codingStandardsIgnoreEnd
24
  ?>
25
  </h1>
17
  <span>
18
  <?php
19
  // translators: Instant Images tagline.
20
+ $instant_images_tagline = __( 'One click photo uploads from %1$s, %2$s and %3$s.', 'instant-images' );
21
  // @codingStandardsIgnoreStart
22
+ echo sprintf( $instant_images_tagline, '<a href="https://unsplash.com/" target="_blank">Unsplash</a>', '<a href="https://pixabay.com/" target="_blank">Pixabay</a>', '<a href="https://pexels.com/" target="_blank">Pexels</a>' );
23
  // @codingStandardsIgnoreEnd
24
  ?>
25
  </h1>
api/download.php CHANGED
@@ -64,8 +64,9 @@ function instant_images_download( WP_REST_Request $request ) {
64
 
65
  if ( $data ) {
66
 
 
67
  $id = $data['id']; // Image ID.
68
- $image_url = $data['image_url'] . '&fit=clip&w=' . $max_width . '&h=' . $max_height; // Image URL.
69
  $filename = sanitize_text_field( $data['filename'] ); // The filename.
70
  $title = sanitize_text_field( $data['title'] ); // Title.
71
  $alt = sanitize_text_field( $data['alt'] ); // Alt text.
@@ -172,12 +173,42 @@ function instant_images_download( WP_REST_Request $request ) {
172
  }
173
  }
174
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
175
 
176
  /**
177
  * Check if a remote image file exists.
178
  *
179
- * @param string $url The url to the remote image.
180
- * @return bool Whether the remote image exists.
181
  * @since 3.0
182
  * @author dcooney
183
  * @package InstantImages
@@ -187,8 +218,6 @@ function instant_images_remote_file_exists( $url ) {
187
  return 200 === wp_remote_retrieve_response_code( $response );
188
  }
189
 
190
-
191
-
192
  /**
193
  * Resize original image to max size (set in Instant Images settings)
194
  *
64
 
65
  if ( $data ) {
66
 
67
+ $provider = $data['provider'];
68
  $id = $data['id']; // Image ID.
69
+ $image_url = instant_images_generate_image_url( $provider, $data['image_url'], $max_width, $max_height ); // Image URL.
70
  $filename = sanitize_text_field( $data['filename'] ); // The filename.
71
  $title = sanitize_text_field( $data['title'] ); // Title.
72
  $alt = sanitize_text_field( $data['alt'] ); // Alt text.
173
  }
174
  }
175
 
176
+ /**
177
+ * Generate an image URL with cropping params.
178
+ *
179
+ * @param string $provider The image provider.
180
+ * @param string $url The image url.
181
+ * @param string $max_width The max width of the image.
182
+ * @param string $max_height The max height of the image.
183
+ * @return string The image path.
184
+ * @since 4.6
185
+ * @author dcooney
186
+ * @package InstantImages
187
+ */
188
+ function instant_images_generate_image_url( $provider, $url, $max_width, $max_height ) {
189
+ $image_url = '';
190
+
191
+ switch ( $provider ) {
192
+ case 'unsplash':
193
+ $image_url = $url . '&fit=clip&w=' . $max_width . '&h=' . $max_height;
194
+ break;
195
+
196
+ case 'pexels':
197
+ $image_url = $url . '?dpr=1&w=' . $max_width . '&h=' . $max_height;
198
+ break;
199
+
200
+ default:
201
+ $image_url = $url;
202
+ break;
203
+ }
204
+ return $image_url;
205
+ }
206
 
207
  /**
208
  * Check if a remote image file exists.
209
  *
210
+ * @param string $url The url to the remote image.
211
+ * @return bool Whether the remote image exists.
212
  * @since 3.0
213
  * @author dcooney
214
  * @package InstantImages
218
  return 200 === wp_remote_retrieve_response_code( $response );
219
  }
220
 
 
 
221
  /**
222
  * Resize original image to max size (set in Instant Images settings)
223
  *
dist/css/instant-images.css CHANGED
@@ -510,6 +510,10 @@ body.media_page_instant-images.overflow-hidden {
510
  filter: blur(1px);
511
  }
512
 
 
 
 
 
513
  .instant-img-container .control-nav--filters-wrap.inactive * {
514
  cursor: not-allowed;
515
  }
@@ -838,7 +842,7 @@ body.media_page_instant-images.overflow-hidden {
838
  top: -5px;
839
  width: calc(100% + 20px);
840
  height: calc(100% + 10px);
841
- min-height: 200px;
842
  background: rgba(255, 255, 255, 0.95) url(../img/ajax-loader-lg.gif) no-repeat center 90px;
843
  z-index: 999;
844
  -webkit-transition: all 0.25s ease;
@@ -1124,7 +1128,7 @@ body.media_page_instant-images.overflow-hidden {
1124
  }
1125
 
1126
  #photos .photo .options i.heart-like {
1127
- color: #d13714;
1128
  -webkit-transition: all 0.25s ease 0.05s;
1129
  -o-transition: all 0.25s ease 0.05s;
1130
  transition: all 0.25s ease 0.05s;
@@ -1285,7 +1289,7 @@ body.media_page_instant-images.overflow-hidden {
1285
  opacity: 0.25;
1286
  }
1287
 
1288
- #photos .photo .fade.user img,
1289
  #photos .photo .fade.user .user-wrap:before {
1290
  width: 20px;
1291
  max-width: 20px;
@@ -1296,7 +1300,7 @@ body.media_page_instant-images.overflow-hidden {
1296
  top: 8px;
1297
  }
1298
 
1299
- #photos .photo .fade.user img {
1300
  z-index: 1;
1301
  }
1302
 
@@ -1831,6 +1835,12 @@ body.loading .instant-img-container .loading-block {
1831
  fill: #586ec6 !important;
1832
  }
1833
 
 
 
 
 
 
 
1834
  .components-panel .instant-img-container .load-more-wrap {
1835
  display: block;
1836
  }
@@ -1860,14 +1870,15 @@ body.loading .instant-img-container .loading-block {
1860
  .components-panel #photos {
1861
  width: 100%;
1862
  margin: 0;
1863
- padding: 5px;
 
1864
  }
1865
 
1866
  .components-panel #photos .photo {
1867
  width: 100%;
1868
  display: block;
1869
  opacity: 1 !important;
1870
- margin: 0 0 5px;
1871
  padding: 0;
1872
  }
1873
 
@@ -2073,9 +2084,9 @@ body.loading .instant-img-container .loading-block {
2073
  border-radius: 2px;
2074
  -webkit-box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
2075
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
2076
- -webkit-transition: all 0.15s ease;
2077
- -o-transition: all 0.15s ease;
2078
- transition: all 0.15s ease;
2079
  }
2080
 
2081
  .instant-img-container #tooltip:after {
@@ -2110,14 +2121,36 @@ body.loading .instant-img-container .loading-block {
2110
 
2111
  .no-results {
2112
  display: block;
2113
- padding: 150px 100px;
2114
  text-align: center;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2115
  }
2116
 
2117
  .no-results h3 {
2118
  font-size: 24px;
2119
- line-height: 29px;
2120
- margin: 0 0 10px;
 
2121
  }
2122
 
2123
  .no-results p {
@@ -2131,72 +2164,6 @@ body.loading .instant-img-container .loading-block {
2131
  }
2132
  }
2133
 
2134
- .orientation-list {
2135
- display: -webkit-box;
2136
- display: -ms-flexbox;
2137
- display: flex;
2138
- -webkit-box-align: center;
2139
- -ms-flex-align: center;
2140
- align-items: center;
2141
- width: 100%;
2142
- padding: 7px 0;
2143
- margin: 0 0 10px;
2144
- border-top: 1px solid #efefef;
2145
- border-bottom: 1px solid #efefef;
2146
- position: relative;
2147
- top: -7px;
2148
- }
2149
-
2150
- .orientation-list span {
2151
- opacity: 0.5;
2152
- margin: 0 10px 0 0;
2153
- font-size: 13px;
2154
- }
2155
-
2156
- .orientation-list span i {
2157
- margin-right: 2px;
2158
- }
2159
-
2160
- .orientation-list ul {
2161
- -webkit-box-flex: 1;
2162
- -ms-flex: 1;
2163
- flex: 1;
2164
- display: -webkit-box;
2165
- display: -ms-flexbox;
2166
- display: flex;
2167
- }
2168
-
2169
- .orientation-list ul li {
2170
- margin: 0 1px 0 0;
2171
- -webkit-border-radius: 3px;
2172
- border-radius: 3px;
2173
- cursor: pointer;
2174
- padding: 4px 6px;
2175
- -webkit-transition: all 0.25s ease;
2176
- -o-transition: all 0.25s ease;
2177
- transition: all 0.25s ease;
2178
- border: 1px solid transparent;
2179
- color: #999;
2180
- font-size: 13px;
2181
- }
2182
-
2183
- .orientation-list ul li:hover {
2184
- color: #111;
2185
- }
2186
-
2187
- .orientation-list ul li:focus {
2188
- border-color: #586ec6;
2189
- color: #111;
2190
- outline: none;
2191
- }
2192
-
2193
- .orientation-list ul li.active {
2194
- background-color: #586ec6;
2195
- border-color: #586ec6;
2196
- color: #fff;
2197
- outline: none;
2198
- }
2199
-
2200
  .media-frame-router button#menu-item-instantimages.active {
2201
  background-color: #f7f7f7;
2202
  }
@@ -2219,19 +2186,29 @@ body.loading .instant-img-container .loading-block {
2219
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.045);
2220
  background-color: #f7f7f7;
2221
  position: relative;
 
2222
  }
2223
 
2224
  .provider-nav > div {
2225
  position: relative;
 
 
 
 
 
 
 
 
 
2226
  }
2227
 
2228
  .provider-nav--btn {
2229
  padding: 0 10px 0 36px;
 
2230
  height: 38px;
2231
  line-height: 38px;
2232
  border: 1px solid transparent;
2233
  background: transparent;
2234
- margin-right: 5px;
2235
  cursor: pointer;
2236
  position: relative;
2237
  -webkit-border-radius: 3px;
@@ -2284,6 +2261,12 @@ body.loading .instant-img-container .loading-block {
2284
  background-size: 20px 20px;
2285
  }
2286
 
 
 
 
 
 
 
2287
  .media-frame-content .instant-img-container .api-lightbox {
2288
  position: fixed;
2289
  }
@@ -2634,21 +2617,21 @@ body.loading .instant-img-container .loading-block {
2634
  display: block;
2635
  visibility: hidden;
2636
  opacity: 0;
2637
- -webkit-transform: scale(0.95);
2638
- -ms-transform: scale(0.95);
2639
- transform: scale(0.95);
2640
- -webkit-transition: opacity 0.1s ease-in-out, visibility 0.1s ease-in-out, -webkit-transform 0.2s cubic-bezier(0.24, 0.22, 0.015, 1.56);
2641
- transition: opacity 0.1s ease-in-out, visibility 0.1s ease-in-out, -webkit-transform 0.2s cubic-bezier(0.24, 0.22, 0.015, 1.56);
2642
- -o-transition: transform 0.2s cubic-bezier(0.24, 0.22, 0.015, 1.56), opacity 0.1s ease-in-out, visibility 0.1s ease-in-out;
2643
- transition: transform 0.2s cubic-bezier(0.24, 0.22, 0.015, 1.56), opacity 0.1s ease-in-out, visibility 0.1s ease-in-out;
2644
- transition: transform 0.2s cubic-bezier(0.24, 0.22, 0.015, 1.56), opacity 0.1s ease-in-out, visibility 0.1s ease-in-out, -webkit-transform 0.2s cubic-bezier(0.24, 0.22, 0.015, 1.56);
2645
  padding: 10px;
2646
  background-color: #fff;
2647
  border: 1px solid #e1e1e1;
2648
  -webkit-border-radius: 3px;
2649
  border-radius: 3px;
2650
- -webkit-box-shadow: 0 8px 16px rgba(69, 92, 182, 0.2);
2651
- box-shadow: 0 8px 16px rgba(69, 92, 182, 0.2);
2652
  z-index: 9999;
2653
  position: absolute;
2654
  top: 110%;
@@ -2738,8 +2721,7 @@ body.loading .instant-img-container .loading-block {
2738
 
2739
  .search-results-header--text {
2740
  font-size: 14px;
2741
- margin: 0;
2742
- padding-bottom: 10px;
2743
  color: #999;
2744
  }
2745
 
510
  filter: blur(1px);
511
  }
512
 
513
+ .instant-img-container .control-nav--filters-wrap.inactive i {
514
+ opacity: 0.4 !important;
515
+ }
516
+
517
  .instant-img-container .control-nav--filters-wrap.inactive * {
518
  cursor: not-allowed;
519
  }
842
  top: -5px;
843
  width: calc(100% + 20px);
844
  height: calc(100% + 10px);
845
+ min-height: 300px;
846
  background: rgba(255, 255, 255, 0.95) url(../img/ajax-loader-lg.gif) no-repeat center 90px;
847
  z-index: 999;
848
  -webkit-transition: all 0.25s ease;
1128
  }
1129
 
1130
  #photos .photo .options i.heart-like {
1131
+ color: #de4624;
1132
  -webkit-transition: all 0.25s ease 0.05s;
1133
  -o-transition: all 0.25s ease 0.05s;
1134
  transition: all 0.25s ease 0.05s;
1289
  opacity: 0.25;
1290
  }
1291
 
1292
+ #photos .photo .fade.user img.user-wrap--photo,
1293
  #photos .photo .fade.user .user-wrap:before {
1294
  width: 20px;
1295
  max-width: 20px;
1300
  top: 8px;
1301
  }
1302
 
1303
+ #photos .photo .fade.user img.user-wrap--photo {
1304
  z-index: 1;
1305
  }
1306
 
1835
  fill: #586ec6 !important;
1836
  }
1837
 
1838
+ button[aria-expanded="true"] .instant-images-sidebar-icon svg,
1839
+ button[aria-expanded="true"] .instant-images-sidebar-icon svg * {
1840
+ stroke: #aabbff !important;
1841
+ fill: #aabbff !important;
1842
+ }
1843
+
1844
  .components-panel .instant-img-container .load-more-wrap {
1845
  display: block;
1846
  }
1870
  .components-panel #photos {
1871
  width: 100%;
1872
  margin: 0;
1873
+ padding: 5px 10px;
1874
+ overflow: hidden;
1875
  }
1876
 
1877
  .components-panel #photos .photo {
1878
  width: 100%;
1879
  display: block;
1880
  opacity: 1 !important;
1881
+ margin: 0 0 10px;
1882
  padding: 0;
1883
  }
1884
 
2084
  border-radius: 2px;
2085
  -webkit-box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
2086
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
2087
+ -webkit-transition: opacity 0.15s ease;
2088
+ -o-transition: opacity 0.15s ease;
2089
+ transition: opacity 0.15s ease;
2090
  }
2091
 
2092
  .instant-img-container #tooltip:after {
2121
 
2122
  .no-results {
2123
  display: block;
2124
+ padding: 100px;
2125
  text-align: center;
2126
+ position: relative;
2127
+ }
2128
+
2129
+ .no-results::before {
2130
+ content: "\F002";
2131
+ font-family: "FontAwesome";
2132
+ display: block;
2133
+ position: absolute;
2134
+ z-index: 0;
2135
+ top: 50%;
2136
+ left: 50%;
2137
+ font-size: 85px;
2138
+ opacity: 0.1;
2139
+ -webkit-transform: translateY(-50%) translateX(-50%);
2140
+ -ms-transform: translateY(-50%) translateX(-50%);
2141
+ transform: translateY(-50%) translateX(-50%);
2142
+ }
2143
+
2144
+ .no-results > div {
2145
+ position: relative;
2146
+ z-index: 10;
2147
  }
2148
 
2149
  .no-results h3 {
2150
  font-size: 24px;
2151
+ line-height: 1.2;
2152
+ margin: 0 0 10px !important;
2153
+ font-weight: 700;
2154
  }
2155
 
2156
  .no-results p {
2164
  }
2165
  }
2166
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2167
  .media-frame-router button#menu-item-instantimages.active {
2168
  background-color: #f7f7f7;
2169
  }
2186
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.045);
2187
  background-color: #f7f7f7;
2188
  position: relative;
2189
+ overflow-x: auto;
2190
  }
2191
 
2192
  .provider-nav > div {
2193
  position: relative;
2194
+ margin: 0 5px;
2195
+ }
2196
+
2197
+ .provider-nav > div:first-of-type {
2198
+ margin-left: 0;
2199
+ }
2200
+
2201
+ .provider-nav > div:last-of-type {
2202
+ margin-left: 0;
2203
  }
2204
 
2205
  .provider-nav--btn {
2206
  padding: 0 10px 0 36px;
2207
+ margin: 0;
2208
  height: 38px;
2209
  line-height: 38px;
2210
  border: 1px solid transparent;
2211
  background: transparent;
 
2212
  cursor: pointer;
2213
  position: relative;
2214
  -webkit-border-radius: 3px;
2261
  background-size: 20px 20px;
2262
  }
2263
 
2264
+ [data-provider="pexels"] {
2265
+ background: url(../img/pexels.svg) no-repeat 10px center;
2266
+ -webkit-background-size: 20px 20px;
2267
+ background-size: 20px 20px;
2268
+ }
2269
+
2270
  .media-frame-content .instant-img-container .api-lightbox {
2271
  position: fixed;
2272
  }
2617
  display: block;
2618
  visibility: hidden;
2619
  opacity: 0;
2620
+ -webkit-transform: scale(0.9);
2621
+ -ms-transform: scale(0.9);
2622
+ transform: scale(0.9);
2623
+ -webkit-transition: opacity 0.15s ease-in-out, visibility 0.15s ease-in-out, -webkit-transform 0.25s cubic-bezier(0.24, 0.22, 0.015, 1.56);
2624
+ transition: opacity 0.15s ease-in-out, visibility 0.15s ease-in-out, -webkit-transform 0.25s cubic-bezier(0.24, 0.22, 0.015, 1.56);
2625
+ -o-transition: transform 0.25s cubic-bezier(0.24, 0.22, 0.015, 1.56), opacity 0.15s ease-in-out, visibility 0.15s ease-in-out;
2626
+ transition: transform 0.25s cubic-bezier(0.24, 0.22, 0.015, 1.56), opacity 0.15s ease-in-out, visibility 0.15s ease-in-out;
2627
+ transition: transform 0.25s cubic-bezier(0.24, 0.22, 0.015, 1.56), opacity 0.15s ease-in-out, visibility 0.15s ease-in-out, -webkit-transform 0.25s cubic-bezier(0.24, 0.22, 0.015, 1.56);
2628
  padding: 10px;
2629
  background-color: #fff;
2630
  border: 1px solid #e1e1e1;
2631
  -webkit-border-radius: 3px;
2632
  border-radius: 3px;
2633
+ -webkit-box-shadow: 0 8px 16px rgba(48, 63, 122, 0.175);
2634
+ box-shadow: 0 8px 16px rgba(48, 63, 122, 0.175);
2635
  z-index: 9999;
2636
  position: absolute;
2637
  top: 110%;
2721
 
2722
  .search-results-header--text {
2723
  font-size: 14px;
2724
+ margin: 0 0 15px;
 
2725
  color: #999;
2726
  }
2727
 
dist/css/instant-images.min.css CHANGED
@@ -1 +1 @@
1
- @import url(//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css);body.media_page_instant-images{background:#fff}body.media_page_instant-images #wpcontent{padding-left:0;padding-bottom:40px}@media screen and (max-width:800px){body.media_page_instant-images #wpcontent{padding-bottom:0}}body.media_page_instant-images #wpbody-content{padding-bottom:0}body.media_page_instant-images #wpfooter{padding-top:0;padding-bottom:0;line-height:40px;background:#f7f7f7;border-top:1px solid #efefef;position:fixed;bottom:0;z-index:1100}body.media_page_instant-images #wpfooter p{line-height:40px}@media screen and (max-width:800px){body.media_page_instant-images #wpfooter{display:none}}body.media_page_instant-images.overflow-hidden{overflow:hidden}.instant-img-container{font-size:14px;color:#666;position:relative}.instant-img-container .offscreen{position:absolute;overflow:hidden;clip:rect(0 0 0 0);height:1px;width:1px;margin:-1px;padding:0;border:0}.instant-img-container *{-webkit-box-sizing:border-box;box-sizing:border-box}.instant-img-container a{color:#586ec6;-webkit-transition:all .25s ease;-o-transition:all .25s ease;transition:all .25s ease}.instant-img-container a:hover{color:#5568ae;text-decoration:none}.instant-img-container img{max-width:100%}.instant-img-container p{color:#666;width:100%;display:block;clear:both;text-transform:none;padding:0;margin:0 0 15px;font-size:14px}.instant-img-container.loading .loading-block{display:block}.instant-img-container .error-messaging{padding:20px 20px 20px 60px;-webkit-border-radius:3px;border-radius:3px;background:#da4444;color:#fff;font-size:13px;line-height:1.5;margin-bottom:25px;display:block;position:relative}.instant-img-container .error-messaging:before{font-family:FontAwesome;content:"\F06A";display:block;left:17px;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);position:absolute;font-size:32px;opacity:.75}.instant-img-container .header-wrap{background:#f7f7f7 url(../img/logo-48x48.png) no-repeat 25px 20px;padding:20px 25px 20px 83px;min-height:88px;overflow:hidden;border-bottom:1px solid #efefef;position:relative}@media screen and (max-width:800px){.instant-img-container .header-wrap{background-position:center 20px;padding:80px 25px 20px;text-align:center}}.instant-img-container .header-wrap h1{padding:0;margin:4px 0 0;font-weight:700;font-size:26px;max-width:70%}@media screen and (max-width:800px){.instant-img-container .header-wrap h1{max-width:100%;width:100%;text-align:center}}.instant-img-container .header-wrap h1 em{font-weight:400;font-size:14px;background-color:rgba(0,0,0,.055);color:rgba(0,0,0,.5);display:inline-block;-webkit-border-radius:2px;border-radius:2px;padding:3px;position:relative;top:-2px;left:2px;text-shadow:1px 1px 1px hsla(0,0%,100%,.4);font-style:normal;line-height:1}.instant-img-container .header-wrap h1 span{display:block;padding:3px 0 0;color:#999;font-size:15px;font-weight:400}.instant-img-container .header-wrap button{position:absolute;right:25px;bottom:26px}@media screen and (max-width:800px){.instant-img-container .header-wrap button{position:static;margin-top:20px;display:inline-block}}.instant-img-container .header-wrap button i{margin-right:2px}.instant-img-container .instant-images-wrapper{padding:0 25px;display:block;overflow:hidden;min-height:400px;background:url(../img/ajax-loader-lg.gif) no-repeat 50%}.instant-img-container .instant-images-wrapper.loaded{background:none}.instant-img-container .permissions-warning{padding:0 25px}.instant-img-container .permissions-warning .inner{border-bottom:1px solid #efefef;padding:32px 0}.instant-img-container .permissions-warning input{max-width:500px}.instant-img-container .permissions-warning h3{font-size:22px;margin:0 0 15px}.instant-img-container .permissions-warning h3 i{margin:0 2px 0 0;position:relative}.instant-img-container .permissions-warning p:first-of-type{font-size:18px;margin:0 0 2px}.instant-img-container .loading-block{display:none;padding:50px;background:url(../img/ajax-loader-lg.gif) no-repeat 50%}.instant-img-container .load-more-wrap{margin:1% 0 0;padding:25px 0;text-align:center;display:none;border-top:1px solid #efefef}.instant-img-container .load-more-wrap button{display:inline-block;margin:0;padding:12px 15px;font-size:15px;font-weight:600;-webkit-transition:all .1s ease;-o-transition:all .1s ease;transition:all .1s ease;height:auto;line-height:1;cursor:pointer;background-image:none;background-repeat:no-repeat!important;background-position:15px!important}.instant-img-container .load-more-wrap button.disabled{opacity:.3;cursor:default}.instant-img-container .cnkt-main{width:100%;float:none;background:none!important;position:relative}.instant-img-container h2,.instant-img-container h3,.instant-img-container h4{margin-top:0}.instant-img-container .save-settings p.submit{float:left;margin:0 2px 0 0;width:auto}.instant-img-container .save-settings .loading{width:46px;height:28px;display:none;float:left;background:#fff url(../img/ajax-loader.gif) no-repeat 50%}#TB_ajaxContent{clear:both;line-height:1.4em;overflow:auto;text-align:left;width:100%!important;-webkit-box-sizing:border-box;box-sizing:border-box;padding:15px!important}.cnkt-sidebar .form-table{margin:0;border:none;position:relative;top:-5px}.cnkt-sidebar .form-table label,.cnkt-sidebar .form-table p,.cnkt-sidebar .form-table td{font-size:13px}.cnkt-sidebar .form-table label{color:#333;display:block;clear:both;float:none}.cnkt-sidebar .form-table label span{opacity:.8;font-size:13px;font-style:italic}.cnkt-sidebar .form-table th{display:none}.instant-img-container .form-table td{border-top:0;padding:0 0 10px;float:left;width:100%;margin:0}.cnkt-main .form-msg,.cnkt-sidebar .form-table .form-msg{display:block;line-height:18px;padding:12px 12px 12px 15px;margin:15px 0 0;color:#666;background-color:#fff9ea;border-left:5px solid #dfd8c2;-webkit-border-radius:2px;border-radius:2px}.cnkt-main .form-msg span,.cnkt-sidebar .form-table .form-msg span{display:block;padding:6px 0 3px}.instant-img-container h1,.instant-img-container h3,.instant-img-container h4{color:#222;margin-top:0}.instant-img-container h4+p{margin-top:-6px}.instant-img-container p.small{font-size:12px;margin-top:-10px;opacity:.7}.instant-img-container ul{padding:0;margin:0;list-style:none}.instant-img-container input,.instant-img-container label,.instant-img-container select,.instant-img-container textarea{-webkit-box-shadow:none;box-shadow:none}.instant-img-container .save-settings{padding-top:5px}.instant-img-container label{padding:5px 0}#unsplash-form-options h2,#unsplash-form-options p.desc{display:none}.instant-img-container input[type=number],.instant-img-container input[type=text],.instant-img-container textarea{padding:10px;line-height:1;background:#f7f7f7;width:100%;-webkit-border-radius:2px;border-radius:2px;height:auto}.instant-img-container input[type=text]:focus,.instant-img-container textarea:focus{border-color:#999;-webkit-box-shadow:0 0 3px #ccc;box-shadow:0 0 3px #ccc;background:#efefef}.instant-img-container .spacer{display:block;height:40px;overflow:hidden;clear:both;width:100%}.instant-img-container .spacer.sm{height:20px}.instant-img-container input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #fff inset;box-shadow:inset 0 0 0 1000px #fff}.instant-img-container .control-nav{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;margin:0 0 20px;padding:20px 0;list-style:none;border-bottom:1px solid #efefef}@media screen and (max-width:800px){.instant-img-container .control-nav{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}}.instant-img-container .control-nav:after{content:"";display:table;clear:both}.instant-img-container .control-nav--filters-wrap{-webkit-box-flex:1;-ms-flex:1;flex:1;position:relative;-webkit-transition:all .25s ease;-o-transition:all .25s ease;transition:all .25s ease}@media screen and (max-width:800px){.instant-img-container .control-nav--filters-wrap{-webkit-box-flex:0;-ms-flex:none;flex:none;width:100%}}.instant-img-container .control-nav--filters-wrap.inactive{opacity:.55;-webkit-filter:blur(1px);filter:blur(1px)}.instant-img-container .control-nav--filters-wrap.inactive *{cursor:not-allowed}.instant-img-container .control-nav--filters{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;width:100%}@media screen and (min-width:1024px){.instant-img-container .control-nav--filters{-webkit-column-gap:20px;-moz-column-gap:20px;column-gap:20px}}.instant-img-container .control-nav--filters:before{display:block;display:none;content:"\F0B0";font-family:FontAwesome;color:#efefef;font-size:24px;margin-right:10px}.instant-img-container .control-nav--filters label{border-left:none;display:block;min-width:125px;padding:0;margin:0}.instant-img-container .control-nav--filters label span{display:block;text-transform:uppercase;font-size:10px;padding-bottom:1px;padding-left:1px}.instant-img-container .control-nav--filters label:focus-within select:not[disabled]{border-color:#999;-webkit-box-shadow:0 0 1px 5px rgba(0,0,0,.025);box-shadow:0 0 1px 5px rgba(0,0,0,.025)}.instant-img-container .control-nav--filters select{text-transform:capitalize;width:100%;border-color:#ccc;color:#333;background-color:#f7f7f7;min-height:36px;line-height:36px;font-size:14px;padding:0 24px 0 8px}.instant-img-container .control-nav--filters select[disabled]{cursor:not-allowed}.instant-img-container .control-nav--filters select:not[disabled]:hover{border-color:#999;-webkit-box-shadow:0 0 1px 5px rgba(0,0,0,.025);box-shadow:0 0 1px 5px rgba(0,0,0,.025)}.instant-img-container .control-nav--search{display:-webkit-box;display:-ms-flexbox;display:flex;width:30%;max-width:350px;margin:0;margin-left:auto;padding:0 0 0 20px;position:relative}@media screen and (min-width:1270px){.instant-img-container .control-nav--search{width:35%}}@media screen and (max-width:800px){.instant-img-container .control-nav--search{width:100%;display:block;position:static;padding:0;text-align:left;max-width:100%;padding:10px 0}}.instant-img-container .control-nav--search .searchResults{position:absolute;right:100.5%;top:5px;width:auto;height:30px;line-height:30px;padding:0 0 0 8px;background:#586ec6;border:1px solid #455cb6;-webkit-border-radius:4px;border-radius:4px;z-index:9999;font-size:13px;font-weight:500;-webkit-transition:all .25s ease;-o-transition:all .25s ease;transition:all .25s ease;color:#fff;-webkit-box-shadow:0 2px 3px rgba(0,0,0,.05);box-shadow:0 2px 3px rgba(0,0,0,.05);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.instant-img-container .control-nav--search .searchResults span{cursor:help}.instant-img-container .control-nav--search .searchResults button{cursor:pointer;color:#fff;background-color:transparent!important;padding:0;height:auto;line-height:1;width:28px;font-weight:700;opacity:.65;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;font-size:14px;height:100%;border:none!important;-webkit-box-shadow:none!important;box-shadow:none!important}.instant-img-container .control-nav--search .searchResults button:focus,.instant-img-container .control-nav--search .searchResults button:hover{opacity:1}.instant-img-container .control-nav--search .searchResults:after,.instant-img-container .control-nav--search .searchResults:before{left:100%;top:50%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;z-index:100}.instant-img-container .control-nav--search .searchResults:after{border-color:hsla(62,46%,78%,0);border-left-color:#586ec6;border-width:6px;margin-top:-6px}.instant-img-container .control-nav--search .searchResults:before{border-color:transparent;border-left-color:#455cb6;border-width:7px;margin-top:-7px}.instant-img-container .control-nav--search .searchResults.hide{opacity:0;visibility:hidden}.instant-img-container .control-nav--search form{padding:0 1px 0 0;margin:0;position:relative;height:38px;display:block;width:100%}.instant-img-container .control-nav--search form:hover button[type=submit]{opacity:1}.instant-img-container .control-nav--search input{width:100%;padding:0 10px 0 38px;border:1px solid #ccc;background-color:#f7f7f7!important;height:38px;line-height:38px;-webkit-border-radius:999px;border-radius:999px;font-size:14px;-webkit-transition:border .25s ease;-o-transition:border .25s ease;transition:border .25s ease;background-position:right 10px center;background-repeat:no-repeat}.instant-img-container .control-nav--search input:focus{border-color:#999;-webkit-box-shadow:0 0 1px 5px rgba(0,0,0,.025);box-shadow:0 0 1px 5px rgba(0,0,0,.025)}.instant-img-container .control-nav--search input.searching{background-image:url(../img/ajax-loader.gif)}.instant-img-container .control-nav--search input[type=search]::-webkit-search-cancel-button,.instant-img-container .control-nav--search input[type=search]::-webkit-search-decoration,.instant-img-container .control-nav--search input[type=search]::-webkit-search-results-button,.instant-img-container .control-nav--search input[type=search]::-webkit-search-results-decoration{-webkit-appearance:none}.instant-img-container .control-nav--search button[type=submit]{position:absolute;left:2px;top:0;width:38px;height:38px;line-height:38px;-webkit-border-radius:100%;border-radius:100%;z-index:1;border:none!important;background:transparent!important;cursor:pointer;color:#333;-webkit-box-shadow:none!important;box-shadow:none!important;-webkit-transition:all .25s ease;-o-transition:all .25s ease;transition:all .25s ease;opacity:.75;margin:0;padding:0;font-size:16px}.instant-img-container .control-nav--search button[type=submit]:focus,.instant-img-container .control-nav--search button[type=submit]:hover{opacity:1}.instant-img-container .control-nav--search input[type=search]::-webkit-input-placeholder{color:#ccc;font-weight:400;font-style:normal;font-size:14px}.instant-img-container .control-nav--search input[type=search]:-moz-placeholder,.instant-img-container .control-nav--search input[type=search]::-moz-placeholder{color:#ccc;font-weight:400;font-style:normal;font-size:14px}.instant-img-container .control-nav--search input[type=search]:-ms-input-placeholder{color:#ccc;font-weight:400;font-style:normal;font-size:14px}#photos{width:100%;width:calc(100% + 10px);margin:0 0 0 -5px;padding:0;position:relative}#photos:after{visibility:hidden;opacity:0;display:block;content:"";position:absolute;left:-10px;top:-5px;width:calc(100% + 20px);height:calc(100% + 10px);min-height:200px;background:hsla(0,0%,100%,.95) url(../img/ajax-loader-lg.gif) no-repeat center 90px;z-index:999;-webkit-transition:all .25s ease;-o-transition:all .25s ease;transition:all .25s ease}#photos.loading:after{visibility:visible;opacity:1}#photos .photo{width:20%;margin:0;padding:0 5px 10px;opacity:0;-webkit-transition:opacity .3s ease;-o-transition:opacity .3s ease;transition:opacity .3s ease}#photos .photo--wrap{position:relative}#photos .photo.in-view{opacity:1}#photos .photo.in-progress .fade{opacity:0!important;visibility:hidden!important}#photos .photo .img-wrap{display:block;overflow:hidden;position:relative}@media screen and (min-width:2000px){#photos .photo{width:20%}}@media screen and (max-width:1500px){#photos .photo{width:25%}}@media screen and (max-width:1270px){#photos .photo{width:33.333333%}}@media screen and (max-width:800px){#photos .photo{width:50%}}@media screen and (max-width:600px){#photos .photo{width:100%;margin:0 0 2%}}#photos .photo:focus a.upload img{opacity:.6}#photos .photo:focus .fade{opacity:1;visibility:visible}#photos .photo:focus .fade.user{opacity:.7}#photos .photo:focus-within .user-controls{opacity:1}#photos .photo a.upload{display:block;position:relative;background-color:#222;background-position:50%;background-repeat:no-repeat;background-image:url(../img/ajax-loader.gif);overflow:hidden}#photos .photo a.upload.loaded{background-image:none}#photos .photo a.upload:active,#photos .photo a.upload:focus{outline:none;border:none}#photos .photo a.upload img{-webkit-transition:all .5s ease;-o-transition:all .5s ease;transition:all .5s ease;width:100%;height:auto!important;padding:0;vertical-align:top}#photos .photo a.upload .status{visibility:hidden;opacity:0;-webkit-transition:all .25s ease-in-out;-o-transition:all .25s ease-in-out;transition:all .25s ease-in-out;width:60px;height:60px;line-height:60px;-webkit-border-radius:4px;border-radius:4px;position:absolute;left:50%;top:50%;z-index:5;-webkit-transform:translate(-50%,-50%) scale(1.2);-ms-transform:translate(-50%,-50%) scale(1.2);transform:translate(-50%,-50%) scale(1.2);-webkit-box-shadow:0 2px 3px rgba(0,0,0,.25);box-shadow:0 2px 3px rgba(0,0,0,.25);background-position:50%;background-repeat:no-repeat}#photos .photo a.upload .status:before{font-family:FontAwesome;display:block;color:#fff;font-size:24px;opacity:.8}#photos .photo a.upload .status a{color:#fff}#photos .photo a.upload.errors .status,#photos .photo a.upload.success .status,#photos .photo a.upload.uploading .status{text-align:center;left:50%;top:50%;-webkit-transform:translate(-50%,-50%) scale(1);-ms-transform:translate(-50%,-50%) scale(1);transform:translate(-50%,-50%) scale(1)}#photos .photo a.upload.uploading{cursor:default!important}#photos .photo a.upload.uploading .status{visibility:visible;opacity:1;background:hsla(0,0%,100%,.95) url(../img/ajax-loader-lg.gif) no-repeat 50%;-webkit-background-size:24px 24px;background-size:24px 24px}#photos .photo a.upload.uploading .status:before{display:none}#photos .photo a.upload.success{cursor:default!important}#photos .photo a.upload.success .status{visibility:visible;opacity:1;background-color:#65c774}#photos .photo a.upload.success .status:before{content:"\F00C";color:#fff}#photos .photo a.upload.success img{-webkit-transform:scale(1)!important;-ms-transform:scale(1)!important;transform:scale(1)!important}#photos .photo a.upload.errors{cursor:help!important}#photos .photo a.upload.errors .status{visibility:visible;opacity:1;background-color:#df3333}#photos .photo a.upload.errors .status:before{content:"\F12A";color:#fff;opacity:.8}#photos .photo.uploaded a.upload img{opacity:.25!important}#photos .photo.uploaded .options,#photos .photo.uploaded .user-controls{opacity:0!important;visibility:hidden!important}#photos .photo.in-progress a.upload img,#photos .photo:hover a.upload img{opacity:.7;-webkit-transform:scale(1.075);-ms-transform:scale(1.075);transform:scale(1.075)}#photos .photo.in-progress .options,#photos .photo:hover .options{opacity:1;visibility:visible}#photos .photo.in-progress .options i.heart-like,#photos .photo:hover .options i.heart-like{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}#photos .photo.in-progress .user-controls,#photos .photo:hover .user-controls{opacity:1}#photos .photo.in-progress .notice-msg{top:0;opacity:1}#photos .photo.in-progress .options,#photos .photo.in-progress .user-controls{opacity:0!important}#photos .photo .options{position:absolute;top:5px;right:5px;z-index:6;display:inline-block;width:auto;cursor:default!important;-webkit-transition:all .3s ease;-o-transition:all .3s ease;transition:all .3s ease;opacity:0;visibility:hidden;font-size:13px}#photos .photo .options i{font-size:14px}#photos .photo .options i.heart-like{color:#d13714;-webkit-transition:all .25s ease .05s;-o-transition:all .25s ease .05s;transition:all .25s ease .05s;-webkit-transform:scale(.55);-ms-transform:scale(.55);transform:scale(.55);margin-right:2px;position:relative;top:0;font-size:14px;opacity:.9}#photos .photo .options a,#photos .photo .options span{display:inline-block;vertical-align:top;line-height:30px;padding:0 10px;padding-top:1px;background:hsla(0,0%,100%,.5);margin:0;-webkit-border-radius:2px;border-radius:2px;color:#23282d;-webkit-transition:all .3s ease;-o-transition:all .3s ease;transition:all .3s ease}#photos .photo .options span{cursor:default}#photos .photo .options span:focus,#photos .photo .options span:hover{background-color:#fff}#photos .photo .options a{margin-left:2px}#photos .photo .options a:focus,#photos .photo .options a:hover{background-color:#fff}#photos .photo .options a i{position:relative;top:1px;left:1px}#photos .photo .user-controls{position:absolute;z-index:6;bottom:0;left:0;width:100%;background:rgba(0,0,0,.4);padding:0;opacity:.35;-webkit-transition:all .3s ease;-o-transition:all .3s ease;transition:all .3s ease}#photos .photo .photo-options{float:right;text-align:right;max-width:50%}#photos .photo .fade{-webkit-transition:all .35s ease;-o-transition:all .35s ease;transition:all .35s ease;color:#fff;background:hsla(0,0%,100%,.75);background:transparent;-webkit-border-radius:2px;border-radius:2px;height:34px;line-height:34px;font-size:17px;z-index:6;float:left;margin:1px 1px 1px 0;padding:0;color:hsla(0,0%,100%,.75);border:none!important;outline:none;cursor:pointer}#photos .photo .fade.edit-photo,#photos .photo .fade.edit-photo-admin,#photos .photo .fade.insert,#photos .photo .fade.set-featured{display:inline-block;width:34px;text-align:center;position:relative}#photos .photo .fade.edit-photo-admin i,#photos .photo .fade.edit-photo i,#photos .photo .fade.insert i,#photos .photo .fade.set-featured i{line-height:27px;position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}#photos .photo .fade.edit-photo-admin:focus,#photos .photo .fade.edit-photo-admin:hover,#photos .photo .fade.edit-photo:focus,#photos .photo .fade.edit-photo:hover,#photos .photo .fade.insert:focus,#photos .photo .fade.insert:hover,#photos .photo .fade.set-featured:focus,#photos .photo .fade.set-featured:hover{color:#222;background:hsla(0,0%,100%,.95)}#photos .photo .fade.edit-photo-admin{display:none}#photos .photo .fade.user{background:none;font-size:13px;max-width:48%;cursor:pointer;text-decoration:none;border:none;line-height:35px;height:36px;margin:0}#photos .photo .fade.user:focus,#photos .photo .fade.user:hover{text-decoration:underline}#photos .photo .fade.user .user-wrap{position:relative;padding-left:35px;display:block;width:100%;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}#photos .photo .fade.user .user-wrap:before{content:"";display:block;z-index:0;background-color:#fff;height:20px;opacity:.25}#photos .photo .fade.user .user-wrap:before,#photos .photo .fade.user img{width:20px;max-width:20px;-webkit-border-radius:100%;border-radius:100%;position:absolute;left:8px;top:8px}#photos .photo .fade.user img{z-index:1}#photos .photo .notice-msg{position:absolute;z-index:999;top:-40px;left:0;height:40px;line-height:40px;width:100%;background:rgba(0,0,0,.6);text-align:center;color:hsla(0,0%,100%,.9);font-size:12px;margin:0;padding:0;-webkit-transition:all .25s ease-in-out;-o-transition:all .25s ease-in-out;transition:all .25s ease-in-out;opacity:0;z-index:9999}#photos .photo .notice-msg.has-error{top:-40px;opacity:0}#photos .edit-screen{position:absolute;left:0;top:0;width:100%;height:100%;z-index:999;background:hsla(0,0%,100%,.9);opacity:0;visibility:hidden;-webkit-transition:all .25s ease;-o-transition:all .25s ease;transition:all .25s ease;padding:5px;overflow-y:auto;-webkit-overflow-scrolling:touch;border:1px solid #e1e1e1;-webkit-transform:scale(1.025);-ms-transform:scale(1.025);transform:scale(1.025)}#photos .edit-screen.editing{visibility:visible;opacity:1;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}#photos .edit-screen--controls,#photos .edit-screen--title{display:block;background:#f7f7f7;border:1px solid #e1e1e1;padding:15px 10px;-webkit-border-radius:2px 2px 0 0;border-radius:2px 2px 0 0}#photos .edit-screen--controls .button-primary,#photos .edit-screen--title .button-primary{float:right}#photos .edit-screen--controls{-webkit-border-radius:0 0 3px 3px;border-radius:0 0 3px 3px}#photos .edit-screen--title{border-bottom:none;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:100%;padding:10px;-webkit-border-radius:3px 3px 0 0;border-radius:3px 3px 0 0}#photos .edit-screen--title>div{padding:5px 15px 5px 5px;-webkit-box-flex:1;-ms-flex:1;flex:1}#photos .edit-screen--title>div.preview{width:30%;padding:0;-webkit-background-size:cover;background-size:cover;background-position:50%;background-repeat:no-repeat;-webkit-border-radius:2px;border-radius:2px;-webkit-box-flex:0;-ms-flex:none;flex:none}#photos .edit-screen--title p{font-size:12px;line-height:1.45;margin:0;color:#999}#photos .edit-screen--title p.heading{color:#222;margin:0 0 3px;font-weight:600;text-transform:uppercase}#photos .edit-screen .add-attribution-row,#photos .edit-screen label{margin:0;padding:15px;display:block;background:#fff;border:1px solid #e1e1e1;border-bottom:none;position:relative}#photos .edit-screen .add-attribution-row{padding-top:0;margin-top:-15px;border-top:none}#photos .edit-screen .add-attribution-row button{cursor:pointer;font-size:11px;outline:none;padding:5px 0;border:none;background:none;text-decoration:underline}#photos .edit-screen .add-attribution-row button:focus,#photos .edit-screen .add-attribution-row button:hover{text-decoration:none}#photos .edit-screen span{display:block;font-size:11px;text-transform:uppercase;font-weight:600;margin:0 0 5px;color:#222;line-height:1}#photos .edit-screen textarea{resize:none;font-size:12px;line-height:1.35}#photos .edit-screen input{font-size:12px;padding:0 10px;margin:0;height:35px;line-height:35px}#photos .edit-screen em{position:absolute;bottom:15px;right:15px;height:35px;line-height:35px;background:#858585;-webkit-border-radius:0 2px 2px 0;border-radius:0 2px 2px 0;color:#e1e1e1;font-style:normal;font-size:11px;padding:0 10px}.instant-images-settings{display:none;background-color:#efefef;border-top:1px solid #e1e1e1;border-bottom:1px solid #e1e1e1}.instant-images-settings .cnkt-sidebar{padding:20px 25px;overflow:hidden;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;line-height:1.45}.instant-images-settings .cnkt-sidebar p{font-size:13px}.instant-images-settings .cnkt-sidebar .cta{width:100%;background:#fff;padding:0;position:relative;border:1px solid #e1e1e1;-webkit-border-radius:3px;border-radius:3px;overflow:hidden}@media screen and (min-width:800px){.instant-images-settings .cnkt-sidebar .cta{width:calc(65% - 10px)}}.instant-images-settings .cnkt-sidebar .cta.ii-whats-new{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2;padding-bottom:52px}@media screen and (min-width:800px){.instant-images-settings .cnkt-sidebar .cta.ii-whats-new{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}}.instant-images-settings .cnkt-sidebar .cta.ii-whats-new ul{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;list-style:none;margin:0;padding:15px}.instant-images-settings .cnkt-sidebar .cta.ii-whats-new ul li{line-height:1.45;width:100%;background-color:transparent;padding:5px;margin:0;position:relative;display:-webkit-box;display:-ms-flexbox;display:flex}@media screen and (min-width:1024px){.instant-images-settings .cnkt-sidebar .cta.ii-whats-new ul li{width:50%}}@media screen and (min-width:1270px){.instant-images-settings .cnkt-sidebar .cta.ii-whats-new ul li{width:33.333%}}.instant-images-settings .cnkt-sidebar .cta.ii-whats-new ul li p{font-size:13px;position:relative;z-index:1;margin:0;padding:15px;border:1px solid #e1e1e1}.instant-images-settings .cnkt-sidebar .cta.ii-whats-new ul li p strong{font-size:14px;display:block;font-weight:700;margin:0 0 5px;color:#333}.instant-images-settings .cnkt-sidebar .cta.ii-whats-new ul li code{font-size:12px;margin:0;padding:3px;background:#f7f7f7;-webkit-border-radius:2px;border-radius:2px;-webkit-box-shadow:0 0 0 1px #efefef;box-shadow:0 0 0 1px #efefef}.instant-images-settings .cnkt-sidebar .cta.ii-whats-new .with-love{position:absolute;left:0;bottom:0;width:100%;-webkit-border-radius:0 0 2px 2px;border-radius:0 0 2px 2px;background-color:#f7f7f7;border-top:1px solid #e1e1e1;text-align:center;margin:0;padding:15px}.instant-images-settings .cnkt-sidebar .cta.ii-whats-new .with-love p{margin:0}.instant-images-settings .cnkt-sidebar .cta.ii-settings{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}@media screen and (min-width:800px){.instant-images-settings .cnkt-sidebar .cta.ii-settings{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2;width:35%}}.instant-images-settings .cnkt-sidebar .cta.ii-settings input[type=number],.instant-images-settings .cnkt-sidebar .cta.ii-settings input[type=text],.instant-images-settings .cnkt-sidebar .cta.ii-settings select{background-color:#fff;width:100%;padding:5px 10px;border-color:#ccc;max-width:none}.instant-images-settings .cnkt-sidebar .cta.ii-settings input[type=number][readonly],.instant-images-settings .cnkt-sidebar .cta.ii-settings input[type=text][readonly],.instant-images-settings .cnkt-sidebar .cta.ii-settings select[readonly]{background-color:#f7f7f7;cursor:not-allowed;opacity:.65;border-color:#ccc!important;-webkit-box-shadow:none!important;box-shadow:none!important}.instant-images-settings .cnkt-sidebar .cta.ii-settings input[type=number],.instant-images-settings .cnkt-sidebar .cta.ii-settings input[type=text]{padding:10px}.instant-images-settings .cnkt-sidebar .cta.ii-settings span.desc{font-size:11px;display:block;padding:8px 2px 5px}.instant-images-settings .cnkt-sidebar .cta.ii-plugins{width:100%;margin-top:10px;-webkit-box-ordinal-group:4;-ms-flex-order:3;order:3}.instant-images-settings .cnkt-sidebar .cta.ii-plugins .cnkt-plugin-installer{width:100%;position:static;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:20px 20px 0}.instant-images-settings .cnkt-sidebar .cta.ii-plugins .cnkt-plugin-installer .plugin{width:100%;margin:0 0 20px;line-height:1.45}@media screen and (min-width:800px){.instant-images-settings .cnkt-sidebar .cta.ii-plugins .cnkt-plugin-installer .plugin{width:calc(50% - 10px)}}.instant-images-settings .cnkt-sidebar .cta.ii-plugins .cnkt-plugin-installer .plugin h2{margin-bottom:5px}.instant-images-settings .cnkt-sidebar .cta.ii-plugins .cnkt-plugin-installer:after{display:none}.instant-images-settings .cnkt-sidebar h2{border:none;padding:20px 20px 0;font-size:18px;font-weight:700}.instant-images-settings .cnkt-sidebar h2+p{padding:0 20px 16px;margin:0!important;border-bottom:1px solid #e1e1e1}.instant-images-settings .cnkt-sidebar h2,.instant-images-settings .cnkt-sidebar h2+p{background:#f7f7f7;margin:0}.instant-images-settings .cnkt-sidebar .cnkt-sidebar h3,.instant-images-settings .cnkt-sidebar .cnkt-sidebar h4{margin-top:0}.instant-images-settings .cnkt-sidebar .cta-wrap{display:block;padding:20px}.instant-images-settings .cnkt-sidebar .cta-wrap h4{padding:10px 0 7px;margin:0}.instant-images-settings .cnkt-sidebar .cta-wrap h4 span{display:inline-block;line-height:1;padding:8px 10px;-webkit-border-radius:2px;border-radius:2px;background:#ffc;color:#666}.instant-images-settings .cnkt-sidebar .cnkt-plugin-installer .plugin{width:48%;margin:2% 1% 0}@media screen and (max-width:1170px){.instant-images-settings .cnkt-sidebar .cnkt-plugin-installer .plugin{width:100%;margin:2% 0 0}}.instant-images-settings .cnkt-sidebar .cnkt-plugin-installer .plugin h2{border:none;padding:0;font-size:16px}.instant-images-settings .cnkt-sidebar .cnkt-plugin-installer .plugin h2+p{padding:0;margin:0!important;border-bottom:none}.instant-images-settings .cnkt-sidebar .cnkt-plugin-installer .plugin h2,.instant-images-settings .cnkt-sidebar .cnkt-plugin-installer .plugin h2+p{background:none;margin:0}.instant-images-settings table{margin-top:5px}.instant-img-container[data-media-popup=true]{background:#fff}.instant-img-container[data-media-popup=true] .header-wrap{display:none}.instant-img-container[data-media-popup=true] .instant-images-wrapper{padding:0 16px}body.loading .instant-img-container .loading-block{display:block}.instant-images-sidebar-icon,.instant-images-sidebar-icon svg{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto}.instant-images-sidebar-icon svg{height:20px;width:20px}.instant-images-sidebar-icon svg,.instant-images-sidebar-icon svg *{stroke:#586ec6!important;fill:#586ec6!important}.components-panel .instant-img-container .load-more-wrap{display:block}.components-panel .no-results{padding:40px}.components-panel .no-results h3{font-size:18px}.components-panel .no-results p{font-size:13px}.components-panel .search-results-text{font-size:12px;border-top:1px solid #ddd;border-color:#ddd}.components-panel .search-results-text .search-results-clear{display:none}.components-panel #photos{width:100%;margin:0;padding:5px}.components-panel #photos .photo{width:100%;display:block;opacity:1!important;margin:0 0 5px;padding:0}.components-panel .provider-nav{width:100%;padding:10px 5px;margin:0;border-bottom-color:#ddd}.components-panel .provider-nav button{font-size:13px;padding-left:36px}.components-panel .control-nav{padding:0 5px 5px;border-bottom:1px solid #ddd;margin:0 0 10px;display:block}.components-panel .control-nav .control-nav--spacer{display:none}.components-panel .control-nav--filters-wrap{-webkit-box-flex:0;-ms-flex:none;flex:none;width:100%;display:block}.components-panel .control-nav--filters{-webkit-column-gap:6px;-moz-column-gap:6px;column-gap:6px;padding:10px 0}.components-panel .control-nav--filters .filter-dropdown{width:calc(50% - 3px);display:none}.components-panel .control-nav--filters .filter-dropdown button{padding:5px;font-size:13px}.components-panel .control-nav--filters .filter-dropdown button.filter-dropdown--button{display:block}.components-panel .control-nav--filters .filter-dropdown button i{margin-left:auto;padding-right:5px}.components-panel .control-nav--filters .filter-dropdown--menu{width:106%;left:-3%;padding:8px}.components-panel .control-nav--filters .filter-dropdown--menu button{gap:8px}.components-panel .control-nav--filters .filter-dropdown:first-child,.components-panel .control-nav--filters .filter-dropdown:nth-child(2){display:block}.components-panel .control-nav--filters .filter-dropdown .filter-dropdown--button-label{display:block;font-size:10px;text-transform:uppercase;margin:0 0 2px}.components-panel .control-nav--filters .filter-dropdown .filter-dropdown--button-selected{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;font-size:14px}.components-panel .control-nav--search{float:none;width:100%;padding:0 0 10px;clear:both}.components-panel .control-nav--search form{height:auto}.components-panel .control-nav--search:before,.components-panel .control-nav--search button[type=submit]{display:none}.components-panel .control-nav--search input{line-height:40px;height:40px;padding-right:10px;padding-left:10px;border-color:#e2e4e7;font-size:13px;-webkit-border-radius:3px!important;border-radius:3px!important;background-position:8px}.components-panel .control-nav--search input.searching{padding-left:30px}.components-panel .control-nav--search input:focus{-webkit-box-shadow:none;box-shadow:none}.components-panel .control-nav--search input[type=search]::-webkit-input-placeholder{font-size:13px}.components-panel .control-nav--search input[type=search]:-moz-placeholder,.components-panel .control-nav--search input[type=search]::-moz-placeholder{font-size:13px}.components-panel .control-nav--search input[type=search]:-ms-input-placeholder{font-size:13px}.components-panel .control-nav--search .searchResults{right:2px;left:auto;top:2px;-webkit-border-radius:2px;border-radius:2px;font-size:12px;height:36px;line-height:35px}.components-panel .control-nav--search .searchResults:after,.components-panel .control-nav--search .searchResults:before{display:none}.components-panel .orientation-list{position:static;border-top:none;background:#f7f7f7;padding:5px 5px 5px 0;margin-bottom:5px;border-bottom-color:#ddd}.components-panel .orientation-list span{display:none}.components-panel .orientation-list ul{padding:0;width:100%}.instant-img-container #tooltip{display:inline-block;padding:8px 10px;background:#fff;position:fixed;left:auto;top:auto;z-index:999;display:block;opacity:0;visibility:hidden;margin-top:-37px;font-size:12px;color:#999;text-align:center;line-height:1;-webkit-border-radius:2px;border-radius:2px;-webkit-box-shadow:0 2px 3px rgba(0,0,0,.1);box-shadow:0 2px 3px rgba(0,0,0,.1);-webkit-transition:all .15s ease;-o-transition:all .15s ease;transition:all .15s ease}.instant-img-container #tooltip:after{top:100%;right:17px;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-color:hsla(0,0%,100%,0);border-top-color:#fff;border-width:5px;margin-left:-5px}.instant-img-container #tooltip.over{opacity:.9;visibility:visible}.instant-img-container #tooltip.above{margin-top:37px}.instant-img-container #tooltip.above:after{top:-5px;border-top:none;border-bottom-color:#fff}.no-results{display:block;padding:150px 100px;text-align:center}.no-results h3{font-size:24px;line-height:29px;margin:0 0 10px}.no-results p{font-size:16px;margin:0}@media screen and (max-width:800px){.no-results{padding:50px}}.orientation-list{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;padding:7px 0;margin:0 0 10px;border-top:1px solid #efefef;border-bottom:1px solid #efefef;position:relative;top:-7px}.orientation-list span{opacity:.5;margin:0 10px 0 0;font-size:13px}.orientation-list span i{margin-right:2px}.orientation-list ul{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex}.orientation-list ul li{margin:0 1px 0 0;-webkit-border-radius:3px;border-radius:3px;cursor:pointer;padding:4px 6px;-webkit-transition:all .25s ease;-o-transition:all .25s ease;transition:all .25s ease;border:1px solid transparent;color:#999;font-size:13px}.orientation-list ul li:hover{color:#111}.orientation-list ul li:focus{border-color:#586ec6;color:#111;outline:none}.orientation-list ul li.active{background-color:#586ec6;border-color:#586ec6;color:#fff;outline:none}.media-frame-router button#menu-item-instantimages.active{background-color:#f7f7f7}.media-frame-content .instant-img-container .load-more-wrap{display:block}.provider-nav{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:calc(100% + 50px);margin-left:-25px;padding:10px 25px;border-bottom:1px solid #efefef;-webkit-box-shadow:0 2px 5px rgba(0,0,0,.045);box-shadow:0 2px 5px rgba(0,0,0,.045);background-color:#f7f7f7}.provider-nav,.provider-nav>div{position:relative}.provider-nav--btn{padding:0 10px 0 36px;height:38px;line-height:38px;border:1px solid transparent;background:transparent;margin-right:5px;cursor:pointer;position:relative;-webkit-border-radius:3px;border-radius:3px;font-size:14px;color:#999;-webkit-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease;background-color:#f7f7f7}.provider-nav--btn:focus,.provider-nav--btn:hover{color:#333}.provider-nav--btn.active{background-color:#fff;border-color:#ccc;color:#333;cursor:default;-webkit-box-shadow:0 0 6px rgba(0,0,0,.075);box-shadow:0 0 6px rgba(0,0,0,.075)}.provider-nav--new{color:#333;background-color:#ffe732;font-size:9px;text-transform:uppercase;display:inline;padding:3px 4px;-webkit-border-radius:3px;border-radius:3px;margin-left:5px;position:relative;top:-1px;letter-spacing:-.05rem}[data-provider=unsplash]{background:url(../img/unsplash.svg) no-repeat 10px;-webkit-background-size:18px 18px;background-size:18px 18px}[data-provider=pixabay]{background:url(../img/pixabay.png) no-repeat 10px;-webkit-background-size:20px 20px;background-size:20px 20px}.media-frame-content .instant-img-container .api-lightbox{position:fixed}.components-panel .instant-img-container .api-lightbox{height:100%;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.instant-img-container .api-lightbox{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:99999;left:0;top:0;right:0;bottom:0;height:100vh;padding:5%;background-color:rgba(0,0,0,.75);font-size:13px}.instant-img-container .api-lightbox.active>div{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1);opacity:1}.instant-img-container .api-lightbox>div{max-width:450px;width:100%;padding:0;background-color:#fff;border:1px solid #e1e1e1;-webkit-border-radius:5px;border-radius:5px;-webkit-box-shadow:0 1px 5px rgba(0,0,0,.25);box-shadow:0 1px 5px rgba(0,0,0,.25);position:relative;-webkit-transform:scale(.95);-ms-transform:scale(.95);transform:scale(.95);opacity:0;-webkit-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.instant-img-container .api-lightbox>div>div{position:relative}.instant-img-container .api-lightbox--details{border-bottom:1px solid #e1e1e1;padding:25px;padding-bottom:20px;position:relative}.instant-img-container .api-lightbox--details:after,.instant-img-container .api-lightbox--details:before{top:100%;left:50px;border:solid transparent;content:"";height:0;width:0;position:absolute;pointer-events:none}.instant-img-container .api-lightbox--details:after{border-color:hsla(0,0%,100%,0);border-top-color:#fff;border-width:10px;margin-left:-10px}.instant-img-container .api-lightbox--details:before{border-color:rgba(194,225,245,0);border-top-color:#e1e1e1;border-width:11px;margin-left:-11px}.instant-img-container .api-lightbox--details h3{font-size:16px;line-height:18px;padding:0 0 0 25px;text-transform:uppercase;margin:0 0 10px;background-position:0}.instant-img-container .api-lightbox--details p{font-size:13px;margin:0 0 5px}.instant-img-container .api-lightbox--details p a{font-weight:500}.instant-img-container .api-lightbox--close{position:absolute;z-index:1;right:0;top:0;border:none;background-color:transparent;width:40px;height:40px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;font-size:25px;cursor:pointer;opacity:.5}.instant-img-container .api-lightbox--close:focus,.instant-img-container .api-lightbox--close:hover{opacity:1}.instant-img-container .api-lightbox form{display:block;background-color:#f7f7f7;padding:25px}.instant-img-container .api-lightbox button[type=submit],.instant-img-container .api-lightbox label{font-size:12px;text-transform:uppercase;font-weight:600;display:block;padding:0;margin:0 0 5px;cursor:pointer}.instant-img-container .api-lightbox--input-wrap{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;padding:0;margin-bottom:10px;background-color:#fff;border:1px solid #e1e1e1;-webkit-border-radius:3px;border-radius:3px;-webkit-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease}.instant-img-container .api-lightbox--input-wrap:focus-within{border-color:#999;-webkit-box-shadow:0 0 1px 4px rgba(0,0,0,.065);box-shadow:0 0 1px 4px rgba(0,0,0,.065)}.instant-img-container .api-lightbox--input-wrap span{width:40px;height:40px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-border-radius:2px 0 0 2px;border-radius:2px 0 0 2px;border-right:1px solid #e1e1e1;background-color:#f7f7f7}.instant-img-container .api-lightbox--input-wrap span i{font-size:16px}.instant-img-container .api-lightbox--input-wrap span.invalid{cursor:help}.instant-img-container .api-lightbox--input-wrap span.invalid i{color:#d4aa4d}.instant-img-container .api-lightbox--input-wrap span.valid i{color:#65c774}.instant-img-container .api-lightbox--input-wrap span.loading i{color:#333}.instant-img-container .api-lightbox--input-wrap input{line-height:40px;height:40px;padding:0 10px;background-color:transparent;border:none;-webkit-box-flex:1;-ms-flex:1;flex:1;font-size:12px}.instant-img-container .api-lightbox--input-wrap input::-webkit-input-placeholder{color:#999;font-weight:400;font-style:italic}.instant-img-container .api-lightbox--input-wrap input:-moz-placeholder,.instant-img-container .api-lightbox--input-wrap input::-moz-placeholder{color:#999;font-weight:400;font-style:italic}.instant-img-container .api-lightbox--input-wrap input:-ms-input-placeholder{color:#999;font-weight:400;font-style:italic}.instant-img-container .api-lightbox--input-wrap input:focus{background:transparent;outline:none;border:none;-webkit-box-shadow:none;box-shadow:none}.instant-img-container .api-lightbox button[type=submit]{width:100%;border:none;background-color:#586ec6;color:#fff;-webkit-border-radius:3px;border-radius:3px;padding:0 10px;line-height:46px;height:46px;margin:0}.instant-img-container .api-lightbox button[type=submit]:focus,.instant-img-container .api-lightbox button[type=submit]:hover{background-color:#455cb6}.instant-img-container .api-lightbox--response{color:#df3333;margin:0;font-size:13px;font-weight:500;padding:0 2px 12px}.instant-img-container .api-lightbox--response.valid{color:#51a75e}.filter-dropdown{position:relative}.filter-dropdown button{background-color:transparent;border:none;text-align:left;color:#999}.filter-dropdown button:not(disabled){cursor:pointer}.filter-dropdown--button{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:5px;padding:10px 2px 10px 0;text-transform:capitalize;color:#999;width:100%;font-size:14px}@media screen and (min-width:1500px){.filter-dropdown--button{font-size:15px}}.filter-dropdown--button span.filter-dropdown--button-label{padding-right:3px}.filter-dropdown--button span.filter-dropdown--button-selected{color:#333;font-weight:500}.filter-dropdown--button i{opacity:.4;margin-left:10px;font-size:14px}.filter-dropdown--button:focus i,.filter-dropdown--button:hover i{opacity:1}.filter-dropdown--menu{display:block;visibility:hidden;opacity:0;-webkit-transform:scale(.95);-ms-transform:scale(.95);transform:scale(.95);-webkit-transition:opacity .1s ease-in-out,visibility .1s ease-in-out,-webkit-transform .2s cubic-bezier(.24,.22,.015,1.56);transition:opacity .1s ease-in-out,visibility .1s ease-in-out,-webkit-transform .2s cubic-bezier(.24,.22,.015,1.56);-o-transition:transform .2s cubic-bezier(.24,.22,.015,1.56),opacity .1s ease-in-out,visibility .1s ease-in-out;transition:transform .2s cubic-bezier(.24,.22,.015,1.56),opacity .1s ease-in-out,visibility .1s ease-in-out;transition:transform .2s cubic-bezier(.24,.22,.015,1.56),opacity .1s ease-in-out,visibility .1s ease-in-out,-webkit-transform .2s cubic-bezier(.24,.22,.015,1.56);padding:10px;background-color:#fff;border:1px solid #e1e1e1;-webkit-border-radius:3px;border-radius:3px;-webkit-box-shadow:0 8px 16px rgba(69,92,182,.2);box-shadow:0 8px 16px rgba(69,92,182,.2);z-index:9999;position:absolute;top:110%;left:-12px;width:200px;max-height:350px;overflow-y:auto}.filter-dropdown--menu.expanded{visibility:visible;opacity:1;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1);top:100%}.filter-dropdown--menu button{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:10px;width:100%;text-transform:capitalize;padding:8px 5px;-webkit-transition:all .25 ease;-o-transition:all .25 ease;transition:all .25 ease;font-size:14px}.filter-dropdown--menu button:before{font-family:FontAwesome;content:"\F00C";display:block;color:#ccc;opacity:.4;font-size:10px}.filter-dropdown--menu button:focus,.filter-dropdown--menu button:hover{color:#333}.filter-dropdown--menu button:focus:before,.filter-dropdown--menu button:hover:before{opacity:.75}.filter-dropdown--menu button.selected{color:#333}.filter-dropdown--menu button.selected:before{color:#333;opacity:.75}.filter-dropdown--menu[data-key=color] button ._color,.filter-dropdown--menu[data-key=colors] button ._color{margin-left:auto;width:14px;height:14px;-webkit-border-radius:50%;border-radius:50%;background-color:currentColor;-webkit-box-shadow:0 0 0 1px rgba(0,0,0,.075);box-shadow:0 0 0 1px rgba(0,0,0,.075)}.search-results-header h2{font-size:34px;line-height:1;padding:0;margin:0 0 5px;text-transform:capitalize;font-weight:700}@media screen and (max-width:800px){.search-results-header h2{font-size:25px}}.search-results-header--text{font-size:14px;margin:0;padding-bottom:10px;color:#999}.search-results-header--text strong{color:#333;font-weight:600}.search-results-header--text button{border:none;background-color:transparent;font-size:13px;cursor:pointer;color:#586ec6;font-weight:400;padding:2px 0 0;margin:0}.search-results-header--text button:focus,.search-results-header--text button:hover{text-decoration:underline;color:#455cb6}.search-results-header .control-nav--filters-wrap{margin:0 0 15px}
1
+ @import url(//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css);body.media_page_instant-images{background:#fff}body.media_page_instant-images #wpcontent{padding-left:0;padding-bottom:40px}@media screen and (max-width:800px){body.media_page_instant-images #wpcontent{padding-bottom:0}}body.media_page_instant-images #wpbody-content{padding-bottom:0}body.media_page_instant-images #wpfooter{padding-top:0;padding-bottom:0;line-height:40px;background:#f7f7f7;border-top:1px solid #efefef;position:fixed;bottom:0;z-index:1100}body.media_page_instant-images #wpfooter p{line-height:40px}@media screen and (max-width:800px){body.media_page_instant-images #wpfooter{display:none}}body.media_page_instant-images.overflow-hidden{overflow:hidden}.instant-img-container{font-size:14px;color:#666;position:relative}.instant-img-container .offscreen{position:absolute;overflow:hidden;clip:rect(0 0 0 0);height:1px;width:1px;margin:-1px;padding:0;border:0}.instant-img-container *{-webkit-box-sizing:border-box;box-sizing:border-box}.instant-img-container a{color:#586ec6;-webkit-transition:all .25s ease;-o-transition:all .25s ease;transition:all .25s ease}.instant-img-container a:hover{color:#5568ae;text-decoration:none}.instant-img-container img{max-width:100%}.instant-img-container p{color:#666;width:100%;display:block;clear:both;text-transform:none;padding:0;margin:0 0 15px;font-size:14px}.instant-img-container.loading .loading-block{display:block}.instant-img-container .error-messaging{padding:20px 20px 20px 60px;-webkit-border-radius:3px;border-radius:3px;background:#da4444;color:#fff;font-size:13px;line-height:1.5;margin-bottom:25px;display:block;position:relative}.instant-img-container .error-messaging:before{font-family:FontAwesome;content:"\F06A";display:block;left:17px;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);position:absolute;font-size:32px;opacity:.75}.instant-img-container .header-wrap{background:#f7f7f7 url(../img/logo-48x48.png) no-repeat 25px 20px;padding:20px 25px 20px 83px;min-height:88px;overflow:hidden;border-bottom:1px solid #efefef;position:relative}@media screen and (max-width:800px){.instant-img-container .header-wrap{background-position:center 20px;padding:80px 25px 20px;text-align:center}}.instant-img-container .header-wrap h1{padding:0;margin:4px 0 0;font-weight:700;font-size:26px;max-width:70%}@media screen and (max-width:800px){.instant-img-container .header-wrap h1{max-width:100%;width:100%;text-align:center}}.instant-img-container .header-wrap h1 em{font-weight:400;font-size:14px;background-color:rgba(0,0,0,.055);color:rgba(0,0,0,.5);display:inline-block;-webkit-border-radius:2px;border-radius:2px;padding:3px;position:relative;top:-2px;left:2px;text-shadow:1px 1px 1px hsla(0,0%,100%,.4);font-style:normal;line-height:1}.instant-img-container .header-wrap h1 span{display:block;padding:3px 0 0;color:#999;font-size:15px;font-weight:400}.instant-img-container .header-wrap button{position:absolute;right:25px;bottom:26px}@media screen and (max-width:800px){.instant-img-container .header-wrap button{position:static;margin-top:20px;display:inline-block}}.instant-img-container .header-wrap button i{margin-right:2px}.instant-img-container .instant-images-wrapper{padding:0 25px;display:block;overflow:hidden;min-height:400px;background:url(../img/ajax-loader-lg.gif) no-repeat 50%}.instant-img-container .instant-images-wrapper.loaded{background:none}.instant-img-container .permissions-warning{padding:0 25px}.instant-img-container .permissions-warning .inner{border-bottom:1px solid #efefef;padding:32px 0}.instant-img-container .permissions-warning input{max-width:500px}.instant-img-container .permissions-warning h3{font-size:22px;margin:0 0 15px}.instant-img-container .permissions-warning h3 i{margin:0 2px 0 0;position:relative}.instant-img-container .permissions-warning p:first-of-type{font-size:18px;margin:0 0 2px}.instant-img-container .loading-block{display:none;padding:50px;background:url(../img/ajax-loader-lg.gif) no-repeat 50%}.instant-img-container .load-more-wrap{margin:1% 0 0;padding:25px 0;text-align:center;display:none;border-top:1px solid #efefef}.instant-img-container .load-more-wrap button{display:inline-block;margin:0;padding:12px 15px;font-size:15px;font-weight:600;-webkit-transition:all .1s ease;-o-transition:all .1s ease;transition:all .1s ease;height:auto;line-height:1;cursor:pointer;background-image:none;background-repeat:no-repeat!important;background-position:15px!important}.instant-img-container .load-more-wrap button.disabled{opacity:.3;cursor:default}.instant-img-container .cnkt-main{width:100%;float:none;background:none!important;position:relative}.instant-img-container h2,.instant-img-container h3,.instant-img-container h4{margin-top:0}.instant-img-container .save-settings p.submit{float:left;margin:0 2px 0 0;width:auto}.instant-img-container .save-settings .loading{width:46px;height:28px;display:none;float:left;background:#fff url(../img/ajax-loader.gif) no-repeat 50%}#TB_ajaxContent{clear:both;line-height:1.4em;overflow:auto;text-align:left;width:100%!important;-webkit-box-sizing:border-box;box-sizing:border-box;padding:15px!important}.cnkt-sidebar .form-table{margin:0;border:none;position:relative;top:-5px}.cnkt-sidebar .form-table label,.cnkt-sidebar .form-table p,.cnkt-sidebar .form-table td{font-size:13px}.cnkt-sidebar .form-table label{color:#333;display:block;clear:both;float:none}.cnkt-sidebar .form-table label span{opacity:.8;font-size:13px;font-style:italic}.cnkt-sidebar .form-table th{display:none}.instant-img-container .form-table td{border-top:0;padding:0 0 10px;float:left;width:100%;margin:0}.cnkt-main .form-msg,.cnkt-sidebar .form-table .form-msg{display:block;line-height:18px;padding:12px 12px 12px 15px;margin:15px 0 0;color:#666;background-color:#fff9ea;border-left:5px solid #dfd8c2;-webkit-border-radius:2px;border-radius:2px}.cnkt-main .form-msg span,.cnkt-sidebar .form-table .form-msg span{display:block;padding:6px 0 3px}.instant-img-container h1,.instant-img-container h3,.instant-img-container h4{color:#222;margin-top:0}.instant-img-container h4+p{margin-top:-6px}.instant-img-container p.small{font-size:12px;margin-top:-10px;opacity:.7}.instant-img-container ul{padding:0;margin:0;list-style:none}.instant-img-container input,.instant-img-container label,.instant-img-container select,.instant-img-container textarea{-webkit-box-shadow:none;box-shadow:none}.instant-img-container .save-settings{padding-top:5px}.instant-img-container label{padding:5px 0}#unsplash-form-options h2,#unsplash-form-options p.desc{display:none}.instant-img-container input[type=number],.instant-img-container input[type=text],.instant-img-container textarea{padding:10px;line-height:1;background:#f7f7f7;width:100%;-webkit-border-radius:2px;border-radius:2px;height:auto}.instant-img-container input[type=text]:focus,.instant-img-container textarea:focus{border-color:#999;-webkit-box-shadow:0 0 3px #ccc;box-shadow:0 0 3px #ccc;background:#efefef}.instant-img-container .spacer{display:block;height:40px;overflow:hidden;clear:both;width:100%}.instant-img-container .spacer.sm{height:20px}.instant-img-container input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #fff inset;box-shadow:inset 0 0 0 1000px #fff}.instant-img-container .control-nav{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;margin:0 0 20px;padding:20px 0;list-style:none;border-bottom:1px solid #efefef}@media screen and (max-width:800px){.instant-img-container .control-nav{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}}.instant-img-container .control-nav:after{content:"";display:table;clear:both}.instant-img-container .control-nav--filters-wrap{-webkit-box-flex:1;-ms-flex:1;flex:1;position:relative;-webkit-transition:all .25s ease;-o-transition:all .25s ease;transition:all .25s ease}@media screen and (max-width:800px){.instant-img-container .control-nav--filters-wrap{-webkit-box-flex:0;-ms-flex:none;flex:none;width:100%}}.instant-img-container .control-nav--filters-wrap.inactive{opacity:.55;-webkit-filter:blur(1px);filter:blur(1px)}.instant-img-container .control-nav--filters-wrap.inactive i{opacity:.4!important}.instant-img-container .control-nav--filters-wrap.inactive *{cursor:not-allowed}.instant-img-container .control-nav--filters{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;width:100%}@media screen and (min-width:1024px){.instant-img-container .control-nav--filters{-webkit-column-gap:20px;-moz-column-gap:20px;column-gap:20px}}.instant-img-container .control-nav--filters:before{display:block;display:none;content:"\F0B0";font-family:FontAwesome;color:#efefef;font-size:24px;margin-right:10px}.instant-img-container .control-nav--filters label{border-left:none;display:block;min-width:125px;padding:0;margin:0}.instant-img-container .control-nav--filters label span{display:block;text-transform:uppercase;font-size:10px;padding-bottom:1px;padding-left:1px}.instant-img-container .control-nav--filters label:focus-within select:not[disabled]{border-color:#999;-webkit-box-shadow:0 0 1px 5px rgba(0,0,0,.025);box-shadow:0 0 1px 5px rgba(0,0,0,.025)}.instant-img-container .control-nav--filters select{text-transform:capitalize;width:100%;border-color:#ccc;color:#333;background-color:#f7f7f7;min-height:36px;line-height:36px;font-size:14px;padding:0 24px 0 8px}.instant-img-container .control-nav--filters select[disabled]{cursor:not-allowed}.instant-img-container .control-nav--filters select:not[disabled]:hover{border-color:#999;-webkit-box-shadow:0 0 1px 5px rgba(0,0,0,.025);box-shadow:0 0 1px 5px rgba(0,0,0,.025)}.instant-img-container .control-nav--search{display:-webkit-box;display:-ms-flexbox;display:flex;width:30%;max-width:350px;margin:0;margin-left:auto;padding:0 0 0 20px;position:relative}@media screen and (min-width:1270px){.instant-img-container .control-nav--search{width:35%}}@media screen and (max-width:800px){.instant-img-container .control-nav--search{width:100%;display:block;position:static;padding:0;text-align:left;max-width:100%;padding:10px 0}}.instant-img-container .control-nav--search .searchResults{position:absolute;right:100.5%;top:5px;width:auto;height:30px;line-height:30px;padding:0 0 0 8px;background:#586ec6;border:1px solid #455cb6;-webkit-border-radius:4px;border-radius:4px;z-index:9999;font-size:13px;font-weight:500;-webkit-transition:all .25s ease;-o-transition:all .25s ease;transition:all .25s ease;color:#fff;-webkit-box-shadow:0 2px 3px rgba(0,0,0,.05);box-shadow:0 2px 3px rgba(0,0,0,.05);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.instant-img-container .control-nav--search .searchResults span{cursor:help}.instant-img-container .control-nav--search .searchResults button{cursor:pointer;color:#fff;background-color:transparent!important;padding:0;height:auto;line-height:1;width:28px;font-weight:700;opacity:.65;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;font-size:14px;height:100%;border:none!important;-webkit-box-shadow:none!important;box-shadow:none!important}.instant-img-container .control-nav--search .searchResults button:focus,.instant-img-container .control-nav--search .searchResults button:hover{opacity:1}.instant-img-container .control-nav--search .searchResults:after,.instant-img-container .control-nav--search .searchResults:before{left:100%;top:50%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;z-index:100}.instant-img-container .control-nav--search .searchResults:after{border-color:hsla(62,46%,78%,0);border-left-color:#586ec6;border-width:6px;margin-top:-6px}.instant-img-container .control-nav--search .searchResults:before{border-color:transparent;border-left-color:#455cb6;border-width:7px;margin-top:-7px}.instant-img-container .control-nav--search .searchResults.hide{opacity:0;visibility:hidden}.instant-img-container .control-nav--search form{padding:0 1px 0 0;margin:0;position:relative;height:38px;display:block;width:100%}.instant-img-container .control-nav--search form:hover button[type=submit]{opacity:1}.instant-img-container .control-nav--search input{width:100%;padding:0 10px 0 38px;border:1px solid #ccc;background-color:#f7f7f7!important;height:38px;line-height:38px;-webkit-border-radius:999px;border-radius:999px;font-size:14px;-webkit-transition:border .25s ease;-o-transition:border .25s ease;transition:border .25s ease;background-position:right 10px center;background-repeat:no-repeat}.instant-img-container .control-nav--search input:focus{border-color:#999;-webkit-box-shadow:0 0 1px 5px rgba(0,0,0,.025);box-shadow:0 0 1px 5px rgba(0,0,0,.025)}.instant-img-container .control-nav--search input.searching{background-image:url(../img/ajax-loader.gif)}.instant-img-container .control-nav--search input[type=search]::-webkit-search-cancel-button,.instant-img-container .control-nav--search input[type=search]::-webkit-search-decoration,.instant-img-container .control-nav--search input[type=search]::-webkit-search-results-button,.instant-img-container .control-nav--search input[type=search]::-webkit-search-results-decoration{-webkit-appearance:none}.instant-img-container .control-nav--search button[type=submit]{position:absolute;left:2px;top:0;width:38px;height:38px;line-height:38px;-webkit-border-radius:100%;border-radius:100%;z-index:1;border:none!important;background:transparent!important;cursor:pointer;color:#333;-webkit-box-shadow:none!important;box-shadow:none!important;-webkit-transition:all .25s ease;-o-transition:all .25s ease;transition:all .25s ease;opacity:.75;margin:0;padding:0;font-size:16px}.instant-img-container .control-nav--search button[type=submit]:focus,.instant-img-container .control-nav--search button[type=submit]:hover{opacity:1}.instant-img-container .control-nav--search input[type=search]::-webkit-input-placeholder{color:#ccc;font-weight:400;font-style:normal;font-size:14px}.instant-img-container .control-nav--search input[type=search]:-moz-placeholder,.instant-img-container .control-nav--search input[type=search]::-moz-placeholder{color:#ccc;font-weight:400;font-style:normal;font-size:14px}.instant-img-container .control-nav--search input[type=search]:-ms-input-placeholder{color:#ccc;font-weight:400;font-style:normal;font-size:14px}#photos{width:100%;width:calc(100% + 10px);margin:0 0 0 -5px;padding:0;position:relative}#photos:after{visibility:hidden;opacity:0;display:block;content:"";position:absolute;left:-10px;top:-5px;width:calc(100% + 20px);height:calc(100% + 10px);min-height:300px;background:hsla(0,0%,100%,.95) url(../img/ajax-loader-lg.gif) no-repeat center 90px;z-index:999;-webkit-transition:all .25s ease;-o-transition:all .25s ease;transition:all .25s ease}#photos.loading:after{visibility:visible;opacity:1}#photos .photo{width:20%;margin:0;padding:0 5px 10px;opacity:0;-webkit-transition:opacity .3s ease;-o-transition:opacity .3s ease;transition:opacity .3s ease}#photos .photo--wrap{position:relative}#photos .photo.in-view{opacity:1}#photos .photo.in-progress .fade{opacity:0!important;visibility:hidden!important}#photos .photo .img-wrap{display:block;overflow:hidden;position:relative}@media screen and (min-width:2000px){#photos .photo{width:20%}}@media screen and (max-width:1500px){#photos .photo{width:25%}}@media screen and (max-width:1270px){#photos .photo{width:33.333333%}}@media screen and (max-width:800px){#photos .photo{width:50%}}@media screen and (max-width:600px){#photos .photo{width:100%;margin:0 0 2%}}#photos .photo:focus a.upload img{opacity:.6}#photos .photo:focus .fade{opacity:1;visibility:visible}#photos .photo:focus .fade.user{opacity:.7}#photos .photo:focus-within .user-controls{opacity:1}#photos .photo a.upload{display:block;position:relative;background-color:#222;background-position:50%;background-repeat:no-repeat;background-image:url(../img/ajax-loader.gif);overflow:hidden}#photos .photo a.upload.loaded{background-image:none}#photos .photo a.upload:active,#photos .photo a.upload:focus{outline:none;border:none}#photos .photo a.upload img{-webkit-transition:all .5s ease;-o-transition:all .5s ease;transition:all .5s ease;width:100%;height:auto!important;padding:0;vertical-align:top}#photos .photo a.upload .status{visibility:hidden;opacity:0;-webkit-transition:all .25s ease-in-out;-o-transition:all .25s ease-in-out;transition:all .25s ease-in-out;width:60px;height:60px;line-height:60px;-webkit-border-radius:4px;border-radius:4px;position:absolute;left:50%;top:50%;z-index:5;-webkit-transform:translate(-50%,-50%) scale(1.2);-ms-transform:translate(-50%,-50%) scale(1.2);transform:translate(-50%,-50%) scale(1.2);-webkit-box-shadow:0 2px 3px rgba(0,0,0,.25);box-shadow:0 2px 3px rgba(0,0,0,.25);background-position:50%;background-repeat:no-repeat}#photos .photo a.upload .status:before{font-family:FontAwesome;display:block;color:#fff;font-size:24px;opacity:.8}#photos .photo a.upload .status a{color:#fff}#photos .photo a.upload.errors .status,#photos .photo a.upload.success .status,#photos .photo a.upload.uploading .status{text-align:center;left:50%;top:50%;-webkit-transform:translate(-50%,-50%) scale(1);-ms-transform:translate(-50%,-50%) scale(1);transform:translate(-50%,-50%) scale(1)}#photos .photo a.upload.uploading{cursor:default!important}#photos .photo a.upload.uploading .status{visibility:visible;opacity:1;background:hsla(0,0%,100%,.95) url(../img/ajax-loader-lg.gif) no-repeat 50%;-webkit-background-size:24px 24px;background-size:24px 24px}#photos .photo a.upload.uploading .status:before{display:none}#photos .photo a.upload.success{cursor:default!important}#photos .photo a.upload.success .status{visibility:visible;opacity:1;background-color:#65c774}#photos .photo a.upload.success .status:before{content:"\F00C";color:#fff}#photos .photo a.upload.success img{-webkit-transform:scale(1)!important;-ms-transform:scale(1)!important;transform:scale(1)!important}#photos .photo a.upload.errors{cursor:help!important}#photos .photo a.upload.errors .status{visibility:visible;opacity:1;background-color:#df3333}#photos .photo a.upload.errors .status:before{content:"\F12A";color:#fff;opacity:.8}#photos .photo.uploaded a.upload img{opacity:.25!important}#photos .photo.uploaded .options,#photos .photo.uploaded .user-controls{opacity:0!important;visibility:hidden!important}#photos .photo.in-progress a.upload img,#photos .photo:hover a.upload img{opacity:.7;-webkit-transform:scale(1.075);-ms-transform:scale(1.075);transform:scale(1.075)}#photos .photo.in-progress .options,#photos .photo:hover .options{opacity:1;visibility:visible}#photos .photo.in-progress .options i.heart-like,#photos .photo:hover .options i.heart-like{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}#photos .photo.in-progress .user-controls,#photos .photo:hover .user-controls{opacity:1}#photos .photo.in-progress .notice-msg{top:0;opacity:1}#photos .photo.in-progress .options,#photos .photo.in-progress .user-controls{opacity:0!important}#photos .photo .options{position:absolute;top:5px;right:5px;z-index:6;display:inline-block;width:auto;cursor:default!important;-webkit-transition:all .3s ease;-o-transition:all .3s ease;transition:all .3s ease;opacity:0;visibility:hidden;font-size:13px}#photos .photo .options i{font-size:14px}#photos .photo .options i.heart-like{color:#de4624;-webkit-transition:all .25s ease .05s;-o-transition:all .25s ease .05s;transition:all .25s ease .05s;-webkit-transform:scale(.55);-ms-transform:scale(.55);transform:scale(.55);margin-right:2px;position:relative;top:0;font-size:14px;opacity:.9}#photos .photo .options a,#photos .photo .options span{display:inline-block;vertical-align:top;line-height:30px;padding:0 10px;padding-top:1px;background:hsla(0,0%,100%,.5);margin:0;-webkit-border-radius:2px;border-radius:2px;color:#23282d;-webkit-transition:all .3s ease;-o-transition:all .3s ease;transition:all .3s ease}#photos .photo .options span{cursor:default}#photos .photo .options span:focus,#photos .photo .options span:hover{background-color:#fff}#photos .photo .options a{margin-left:2px}#photos .photo .options a:focus,#photos .photo .options a:hover{background-color:#fff}#photos .photo .options a i{position:relative;top:1px;left:1px}#photos .photo .user-controls{position:absolute;z-index:6;bottom:0;left:0;width:100%;background:rgba(0,0,0,.4);padding:0;opacity:.35;-webkit-transition:all .3s ease;-o-transition:all .3s ease;transition:all .3s ease}#photos .photo .photo-options{float:right;text-align:right;max-width:50%}#photos .photo .fade{-webkit-transition:all .35s ease;-o-transition:all .35s ease;transition:all .35s ease;color:#fff;background:hsla(0,0%,100%,.75);background:transparent;-webkit-border-radius:2px;border-radius:2px;height:34px;line-height:34px;font-size:17px;z-index:6;float:left;margin:1px 1px 1px 0;padding:0;color:hsla(0,0%,100%,.75);border:none!important;outline:none;cursor:pointer}#photos .photo .fade.edit-photo,#photos .photo .fade.edit-photo-admin,#photos .photo .fade.insert,#photos .photo .fade.set-featured{display:inline-block;width:34px;text-align:center;position:relative}#photos .photo .fade.edit-photo-admin i,#photos .photo .fade.edit-photo i,#photos .photo .fade.insert i,#photos .photo .fade.set-featured i{line-height:27px;position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}#photos .photo .fade.edit-photo-admin:focus,#photos .photo .fade.edit-photo-admin:hover,#photos .photo .fade.edit-photo:focus,#photos .photo .fade.edit-photo:hover,#photos .photo .fade.insert:focus,#photos .photo .fade.insert:hover,#photos .photo .fade.set-featured:focus,#photos .photo .fade.set-featured:hover{color:#222;background:hsla(0,0%,100%,.95)}#photos .photo .fade.edit-photo-admin{display:none}#photos .photo .fade.user{background:none;font-size:13px;max-width:48%;cursor:pointer;text-decoration:none;border:none;line-height:35px;height:36px;margin:0}#photos .photo .fade.user:focus,#photos .photo .fade.user:hover{text-decoration:underline}#photos .photo .fade.user .user-wrap{position:relative;padding-left:35px;display:block;width:100%;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}#photos .photo .fade.user .user-wrap:before{content:"";display:block;z-index:0;background-color:#fff;height:20px;opacity:.25}#photos .photo .fade.user .user-wrap:before,#photos .photo .fade.user img.user-wrap--photo{width:20px;max-width:20px;-webkit-border-radius:100%;border-radius:100%;position:absolute;left:8px;top:8px}#photos .photo .fade.user img.user-wrap--photo{z-index:1}#photos .photo .notice-msg{position:absolute;z-index:999;top:-40px;left:0;height:40px;line-height:40px;width:100%;background:rgba(0,0,0,.6);text-align:center;color:hsla(0,0%,100%,.9);font-size:12px;margin:0;padding:0;-webkit-transition:all .25s ease-in-out;-o-transition:all .25s ease-in-out;transition:all .25s ease-in-out;opacity:0;z-index:9999}#photos .photo .notice-msg.has-error{top:-40px;opacity:0}#photos .edit-screen{position:absolute;left:0;top:0;width:100%;height:100%;z-index:999;background:hsla(0,0%,100%,.9);opacity:0;visibility:hidden;-webkit-transition:all .25s ease;-o-transition:all .25s ease;transition:all .25s ease;padding:5px;overflow-y:auto;-webkit-overflow-scrolling:touch;border:1px solid #e1e1e1;-webkit-transform:scale(1.025);-ms-transform:scale(1.025);transform:scale(1.025)}#photos .edit-screen.editing{visibility:visible;opacity:1;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}#photos .edit-screen--controls,#photos .edit-screen--title{display:block;background:#f7f7f7;border:1px solid #e1e1e1;padding:15px 10px;-webkit-border-radius:2px 2px 0 0;border-radius:2px 2px 0 0}#photos .edit-screen--controls .button-primary,#photos .edit-screen--title .button-primary{float:right}#photos .edit-screen--controls{-webkit-border-radius:0 0 3px 3px;border-radius:0 0 3px 3px}#photos .edit-screen--title{border-bottom:none;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:100%;padding:10px;-webkit-border-radius:3px 3px 0 0;border-radius:3px 3px 0 0}#photos .edit-screen--title>div{padding:5px 15px 5px 5px;-webkit-box-flex:1;-ms-flex:1;flex:1}#photos .edit-screen--title>div.preview{width:30%;padding:0;-webkit-background-size:cover;background-size:cover;background-position:50%;background-repeat:no-repeat;-webkit-border-radius:2px;border-radius:2px;-webkit-box-flex:0;-ms-flex:none;flex:none}#photos .edit-screen--title p{font-size:12px;line-height:1.45;margin:0;color:#999}#photos .edit-screen--title p.heading{color:#222;margin:0 0 3px;font-weight:600;text-transform:uppercase}#photos .edit-screen .add-attribution-row,#photos .edit-screen label{margin:0;padding:15px;display:block;background:#fff;border:1px solid #e1e1e1;border-bottom:none;position:relative}#photos .edit-screen .add-attribution-row{padding-top:0;margin-top:-15px;border-top:none}#photos .edit-screen .add-attribution-row button{cursor:pointer;font-size:11px;outline:none;padding:5px 0;border:none;background:none;text-decoration:underline}#photos .edit-screen .add-attribution-row button:focus,#photos .edit-screen .add-attribution-row button:hover{text-decoration:none}#photos .edit-screen span{display:block;font-size:11px;text-transform:uppercase;font-weight:600;margin:0 0 5px;color:#222;line-height:1}#photos .edit-screen textarea{resize:none;font-size:12px;line-height:1.35}#photos .edit-screen input{font-size:12px;padding:0 10px;margin:0;height:35px;line-height:35px}#photos .edit-screen em{position:absolute;bottom:15px;right:15px;height:35px;line-height:35px;background:#858585;-webkit-border-radius:0 2px 2px 0;border-radius:0 2px 2px 0;color:#e1e1e1;font-style:normal;font-size:11px;padding:0 10px}.instant-images-settings{display:none;background-color:#efefef;border-top:1px solid #e1e1e1;border-bottom:1px solid #e1e1e1}.instant-images-settings .cnkt-sidebar{padding:20px 25px;overflow:hidden;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;line-height:1.45}.instant-images-settings .cnkt-sidebar p{font-size:13px}.instant-images-settings .cnkt-sidebar .cta{width:100%;background:#fff;padding:0;position:relative;border:1px solid #e1e1e1;-webkit-border-radius:3px;border-radius:3px;overflow:hidden}@media screen and (min-width:800px){.instant-images-settings .cnkt-sidebar .cta{width:calc(65% - 10px)}}.instant-images-settings .cnkt-sidebar .cta.ii-whats-new{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2;padding-bottom:52px}@media screen and (min-width:800px){.instant-images-settings .cnkt-sidebar .cta.ii-whats-new{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}}.instant-images-settings .cnkt-sidebar .cta.ii-whats-new ul{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;list-style:none;margin:0;padding:15px}.instant-images-settings .cnkt-sidebar .cta.ii-whats-new ul li{line-height:1.45;width:100%;background-color:transparent;padding:5px;margin:0;position:relative;display:-webkit-box;display:-ms-flexbox;display:flex}@media screen and (min-width:1024px){.instant-images-settings .cnkt-sidebar .cta.ii-whats-new ul li{width:50%}}@media screen and (min-width:1270px){.instant-images-settings .cnkt-sidebar .cta.ii-whats-new ul li{width:33.333%}}.instant-images-settings .cnkt-sidebar .cta.ii-whats-new ul li p{font-size:13px;position:relative;z-index:1;margin:0;padding:15px;border:1px solid #e1e1e1}.instant-images-settings .cnkt-sidebar .cta.ii-whats-new ul li p strong{font-size:14px;display:block;font-weight:700;margin:0 0 5px;color:#333}.instant-images-settings .cnkt-sidebar .cta.ii-whats-new ul li code{font-size:12px;margin:0;padding:3px;background:#f7f7f7;-webkit-border-radius:2px;border-radius:2px;-webkit-box-shadow:0 0 0 1px #efefef;box-shadow:0 0 0 1px #efefef}.instant-images-settings .cnkt-sidebar .cta.ii-whats-new .with-love{position:absolute;left:0;bottom:0;width:100%;-webkit-border-radius:0 0 2px 2px;border-radius:0 0 2px 2px;background-color:#f7f7f7;border-top:1px solid #e1e1e1;text-align:center;margin:0;padding:15px}.instant-images-settings .cnkt-sidebar .cta.ii-whats-new .with-love p{margin:0}.instant-images-settings .cnkt-sidebar .cta.ii-settings{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}@media screen and (min-width:800px){.instant-images-settings .cnkt-sidebar .cta.ii-settings{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2;width:35%}}.instant-images-settings .cnkt-sidebar .cta.ii-settings input[type=number],.instant-images-settings .cnkt-sidebar .cta.ii-settings input[type=text],.instant-images-settings .cnkt-sidebar .cta.ii-settings select{background-color:#fff;width:100%;padding:5px 10px;border-color:#ccc;max-width:none}.instant-images-settings .cnkt-sidebar .cta.ii-settings input[type=number][readonly],.instant-images-settings .cnkt-sidebar .cta.ii-settings input[type=text][readonly],.instant-images-settings .cnkt-sidebar .cta.ii-settings select[readonly]{background-color:#f7f7f7;cursor:not-allowed;opacity:.65;border-color:#ccc!important;-webkit-box-shadow:none!important;box-shadow:none!important}.instant-images-settings .cnkt-sidebar .cta.ii-settings input[type=number],.instant-images-settings .cnkt-sidebar .cta.ii-settings input[type=text]{padding:10px}.instant-images-settings .cnkt-sidebar .cta.ii-settings span.desc{font-size:11px;display:block;padding:8px 2px 5px}.instant-images-settings .cnkt-sidebar .cta.ii-plugins{width:100%;margin-top:10px;-webkit-box-ordinal-group:4;-ms-flex-order:3;order:3}.instant-images-settings .cnkt-sidebar .cta.ii-plugins .cnkt-plugin-installer{width:100%;position:static;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:20px 20px 0}.instant-images-settings .cnkt-sidebar .cta.ii-plugins .cnkt-plugin-installer .plugin{width:100%;margin:0 0 20px;line-height:1.45}@media screen and (min-width:800px){.instant-images-settings .cnkt-sidebar .cta.ii-plugins .cnkt-plugin-installer .plugin{width:calc(50% - 10px)}}.instant-images-settings .cnkt-sidebar .cta.ii-plugins .cnkt-plugin-installer .plugin h2{margin-bottom:5px}.instant-images-settings .cnkt-sidebar .cta.ii-plugins .cnkt-plugin-installer:after{display:none}.instant-images-settings .cnkt-sidebar h2{border:none;padding:20px 20px 0;font-size:18px;font-weight:700}.instant-images-settings .cnkt-sidebar h2+p{padding:0 20px 16px;margin:0!important;border-bottom:1px solid #e1e1e1}.instant-images-settings .cnkt-sidebar h2,.instant-images-settings .cnkt-sidebar h2+p{background:#f7f7f7;margin:0}.instant-images-settings .cnkt-sidebar .cnkt-sidebar h3,.instant-images-settings .cnkt-sidebar .cnkt-sidebar h4{margin-top:0}.instant-images-settings .cnkt-sidebar .cta-wrap{display:block;padding:20px}.instant-images-settings .cnkt-sidebar .cta-wrap h4{padding:10px 0 7px;margin:0}.instant-images-settings .cnkt-sidebar .cta-wrap h4 span{display:inline-block;line-height:1;padding:8px 10px;-webkit-border-radius:2px;border-radius:2px;background:#ffc;color:#666}.instant-images-settings .cnkt-sidebar .cnkt-plugin-installer .plugin{width:48%;margin:2% 1% 0}@media screen and (max-width:1170px){.instant-images-settings .cnkt-sidebar .cnkt-plugin-installer .plugin{width:100%;margin:2% 0 0}}.instant-images-settings .cnkt-sidebar .cnkt-plugin-installer .plugin h2{border:none;padding:0;font-size:16px}.instant-images-settings .cnkt-sidebar .cnkt-plugin-installer .plugin h2+p{padding:0;margin:0!important;border-bottom:none}.instant-images-settings .cnkt-sidebar .cnkt-plugin-installer .plugin h2,.instant-images-settings .cnkt-sidebar .cnkt-plugin-installer .plugin h2+p{background:none;margin:0}.instant-images-settings table{margin-top:5px}.instant-img-container[data-media-popup=true]{background:#fff}.instant-img-container[data-media-popup=true] .header-wrap{display:none}.instant-img-container[data-media-popup=true] .instant-images-wrapper{padding:0 16px}body.loading .instant-img-container .loading-block{display:block}.instant-images-sidebar-icon,.instant-images-sidebar-icon svg{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto}.instant-images-sidebar-icon svg{height:20px;width:20px}.instant-images-sidebar-icon svg,.instant-images-sidebar-icon svg *{stroke:#586ec6!important;fill:#586ec6!important}button[aria-expanded=true] .instant-images-sidebar-icon svg,button[aria-expanded=true] .instant-images-sidebar-icon svg *{stroke:#abf!important;fill:#abf!important}.components-panel .instant-img-container .load-more-wrap{display:block}.components-panel .no-results{padding:40px}.components-panel .no-results h3{font-size:18px}.components-panel .no-results p{font-size:13px}.components-panel .search-results-text{font-size:12px;border-top:1px solid #ddd;border-color:#ddd}.components-panel .search-results-text .search-results-clear{display:none}.components-panel #photos{width:100%;margin:0;padding:5px 10px;overflow:hidden}.components-panel #photos .photo{width:100%;display:block;opacity:1!important;margin:0 0 10px;padding:0}.components-panel .provider-nav{width:100%;padding:10px 5px;margin:0;border-bottom-color:#ddd}.components-panel .provider-nav button{font-size:13px;padding-left:36px}.components-panel .control-nav{padding:0 5px 5px;border-bottom:1px solid #ddd;margin:0 0 10px;display:block}.components-panel .control-nav .control-nav--spacer{display:none}.components-panel .control-nav--filters-wrap{-webkit-box-flex:0;-ms-flex:none;flex:none;width:100%;display:block}.components-panel .control-nav--filters{-webkit-column-gap:6px;-moz-column-gap:6px;column-gap:6px;padding:10px 0}.components-panel .control-nav--filters .filter-dropdown{width:calc(50% - 3px);display:none}.components-panel .control-nav--filters .filter-dropdown button{padding:5px;font-size:13px}.components-panel .control-nav--filters .filter-dropdown button.filter-dropdown--button{display:block}.components-panel .control-nav--filters .filter-dropdown button i{margin-left:auto;padding-right:5px}.components-panel .control-nav--filters .filter-dropdown--menu{width:106%;left:-3%;padding:8px}.components-panel .control-nav--filters .filter-dropdown--menu button{gap:8px}.components-panel .control-nav--filters .filter-dropdown:first-child,.components-panel .control-nav--filters .filter-dropdown:nth-child(2){display:block}.components-panel .control-nav--filters .filter-dropdown .filter-dropdown--button-label{display:block;font-size:10px;text-transform:uppercase;margin:0 0 2px}.components-panel .control-nav--filters .filter-dropdown .filter-dropdown--button-selected{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;font-size:14px}.components-panel .control-nav--search{float:none;width:100%;padding:0 0 10px;clear:both}.components-panel .control-nav--search form{height:auto}.components-panel .control-nav--search:before,.components-panel .control-nav--search button[type=submit]{display:none}.components-panel .control-nav--search input{line-height:40px;height:40px;padding-right:10px;padding-left:10px;border-color:#e2e4e7;font-size:13px;-webkit-border-radius:3px!important;border-radius:3px!important;background-position:8px}.components-panel .control-nav--search input.searching{padding-left:30px}.components-panel .control-nav--search input:focus{-webkit-box-shadow:none;box-shadow:none}.components-panel .control-nav--search input[type=search]::-webkit-input-placeholder{font-size:13px}.components-panel .control-nav--search input[type=search]:-moz-placeholder,.components-panel .control-nav--search input[type=search]::-moz-placeholder{font-size:13px}.components-panel .control-nav--search input[type=search]:-ms-input-placeholder{font-size:13px}.components-panel .control-nav--search .searchResults{right:2px;left:auto;top:2px;-webkit-border-radius:2px;border-radius:2px;font-size:12px;height:36px;line-height:35px}.components-panel .control-nav--search .searchResults:after,.components-panel .control-nav--search .searchResults:before{display:none}.components-panel .orientation-list{position:static;border-top:none;background:#f7f7f7;padding:5px 5px 5px 0;margin-bottom:5px;border-bottom-color:#ddd}.components-panel .orientation-list span{display:none}.components-panel .orientation-list ul{padding:0;width:100%}.instant-img-container #tooltip{display:inline-block;padding:8px 10px;background:#fff;position:fixed;left:auto;top:auto;z-index:999;display:block;opacity:0;visibility:hidden;margin-top:-37px;font-size:12px;color:#999;text-align:center;line-height:1;-webkit-border-radius:2px;border-radius:2px;-webkit-box-shadow:0 2px 3px rgba(0,0,0,.1);box-shadow:0 2px 3px rgba(0,0,0,.1);-webkit-transition:opacity .15s ease;-o-transition:opacity .15s ease;transition:opacity .15s ease}.instant-img-container #tooltip:after{top:100%;right:17px;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-color:hsla(0,0%,100%,0);border-top-color:#fff;border-width:5px;margin-left:-5px}.instant-img-container #tooltip.over{opacity:.9;visibility:visible}.instant-img-container #tooltip.above{margin-top:37px}.instant-img-container #tooltip.above:after{top:-5px;border-top:none;border-bottom-color:#fff}.no-results{display:block;padding:100px;text-align:center;position:relative}.no-results:before{content:"\F002";font-family:FontAwesome;display:block;position:absolute;z-index:0;top:50%;left:50%;font-size:85px;opacity:.1;-webkit-transform:translateY(-50%) translateX(-50%);-ms-transform:translateY(-50%) translateX(-50%);transform:translateY(-50%) translateX(-50%)}.no-results>div{position:relative;z-index:10}.no-results h3{font-size:24px;line-height:1.2;margin:0 0 10px!important;font-weight:700}.no-results p{font-size:16px;margin:0}@media screen and (max-width:800px){.no-results{padding:50px}}.media-frame-router button#menu-item-instantimages.active{background-color:#f7f7f7}.media-frame-content .instant-img-container .load-more-wrap{display:block}.provider-nav{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:calc(100% + 50px);margin-left:-25px;padding:10px 25px;border-bottom:1px solid #efefef;-webkit-box-shadow:0 2px 5px rgba(0,0,0,.045);box-shadow:0 2px 5px rgba(0,0,0,.045);background-color:#f7f7f7;position:relative;overflow-x:auto}.provider-nav>div{position:relative;margin:0 5px}.provider-nav>div:first-of-type,.provider-nav>div:last-of-type{margin-left:0}.provider-nav--btn{padding:0 10px 0 36px;margin:0;height:38px;line-height:38px;border:1px solid transparent;background:transparent;cursor:pointer;position:relative;-webkit-border-radius:3px;border-radius:3px;font-size:14px;color:#999;-webkit-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease;background-color:#f7f7f7}.provider-nav--btn:focus,.provider-nav--btn:hover{color:#333}.provider-nav--btn.active{background-color:#fff;border-color:#ccc;color:#333;cursor:default;-webkit-box-shadow:0 0 6px rgba(0,0,0,.075);box-shadow:0 0 6px rgba(0,0,0,.075)}.provider-nav--new{color:#333;background-color:#ffe732;font-size:9px;text-transform:uppercase;display:inline;padding:3px 4px;-webkit-border-radius:3px;border-radius:3px;margin-left:5px;position:relative;top:-1px;letter-spacing:-.05rem}[data-provider=unsplash]{background:url(../img/unsplash.svg) no-repeat 10px;-webkit-background-size:18px 18px;background-size:18px 18px}[data-provider=pixabay]{background:url(../img/pixabay.png) no-repeat 10px;-webkit-background-size:20px 20px;background-size:20px 20px}[data-provider=pexels]{background:url(../img/pexels.svg) no-repeat 10px;-webkit-background-size:20px 20px;background-size:20px 20px}.media-frame-content .instant-img-container .api-lightbox{position:fixed}.components-panel .instant-img-container .api-lightbox{height:100%;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.instant-img-container .api-lightbox{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:99999;left:0;top:0;right:0;bottom:0;height:100vh;padding:5%;background-color:rgba(0,0,0,.75);font-size:13px}.instant-img-container .api-lightbox.active>div{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1);opacity:1}.instant-img-container .api-lightbox>div{max-width:450px;width:100%;padding:0;background-color:#fff;border:1px solid #e1e1e1;-webkit-border-radius:5px;border-radius:5px;-webkit-box-shadow:0 1px 5px rgba(0,0,0,.25);box-shadow:0 1px 5px rgba(0,0,0,.25);position:relative;-webkit-transform:scale(.95);-ms-transform:scale(.95);transform:scale(.95);opacity:0;-webkit-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.instant-img-container .api-lightbox>div>div{position:relative}.instant-img-container .api-lightbox--details{border-bottom:1px solid #e1e1e1;padding:25px;padding-bottom:20px;position:relative}.instant-img-container .api-lightbox--details:after,.instant-img-container .api-lightbox--details:before{top:100%;left:50px;border:solid transparent;content:"";height:0;width:0;position:absolute;pointer-events:none}.instant-img-container .api-lightbox--details:after{border-color:hsla(0,0%,100%,0);border-top-color:#fff;border-width:10px;margin-left:-10px}.instant-img-container .api-lightbox--details:before{border-color:rgba(194,225,245,0);border-top-color:#e1e1e1;border-width:11px;margin-left:-11px}.instant-img-container .api-lightbox--details h3{font-size:16px;line-height:18px;padding:0 0 0 25px;text-transform:uppercase;margin:0 0 10px;background-position:0}.instant-img-container .api-lightbox--details p{font-size:13px;margin:0 0 5px}.instant-img-container .api-lightbox--details p a{font-weight:500}.instant-img-container .api-lightbox--close{position:absolute;z-index:1;right:0;top:0;border:none;background-color:transparent;width:40px;height:40px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;font-size:25px;cursor:pointer;opacity:.5}.instant-img-container .api-lightbox--close:focus,.instant-img-container .api-lightbox--close:hover{opacity:1}.instant-img-container .api-lightbox form{display:block;background-color:#f7f7f7;padding:25px}.instant-img-container .api-lightbox button[type=submit],.instant-img-container .api-lightbox label{font-size:12px;text-transform:uppercase;font-weight:600;display:block;padding:0;margin:0 0 5px;cursor:pointer}.instant-img-container .api-lightbox--input-wrap{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;padding:0;margin-bottom:10px;background-color:#fff;border:1px solid #e1e1e1;-webkit-border-radius:3px;border-radius:3px;-webkit-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease}.instant-img-container .api-lightbox--input-wrap:focus-within{border-color:#999;-webkit-box-shadow:0 0 1px 4px rgba(0,0,0,.065);box-shadow:0 0 1px 4px rgba(0,0,0,.065)}.instant-img-container .api-lightbox--input-wrap span{width:40px;height:40px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-border-radius:2px 0 0 2px;border-radius:2px 0 0 2px;border-right:1px solid #e1e1e1;background-color:#f7f7f7}.instant-img-container .api-lightbox--input-wrap span i{font-size:16px}.instant-img-container .api-lightbox--input-wrap span.invalid{cursor:help}.instant-img-container .api-lightbox--input-wrap span.invalid i{color:#d4aa4d}.instant-img-container .api-lightbox--input-wrap span.valid i{color:#65c774}.instant-img-container .api-lightbox--input-wrap span.loading i{color:#333}.instant-img-container .api-lightbox--input-wrap input{line-height:40px;height:40px;padding:0 10px;background-color:transparent;border:none;-webkit-box-flex:1;-ms-flex:1;flex:1;font-size:12px}.instant-img-container .api-lightbox--input-wrap input::-webkit-input-placeholder{color:#999;font-weight:400;font-style:italic}.instant-img-container .api-lightbox--input-wrap input:-moz-placeholder,.instant-img-container .api-lightbox--input-wrap input::-moz-placeholder{color:#999;font-weight:400;font-style:italic}.instant-img-container .api-lightbox--input-wrap input:-ms-input-placeholder{color:#999;font-weight:400;font-style:italic}.instant-img-container .api-lightbox--input-wrap input:focus{background:transparent;outline:none;border:none;-webkit-box-shadow:none;box-shadow:none}.instant-img-container .api-lightbox button[type=submit]{width:100%;border:none;background-color:#586ec6;color:#fff;-webkit-border-radius:3px;border-radius:3px;padding:0 10px;line-height:46px;height:46px;margin:0}.instant-img-container .api-lightbox button[type=submit]:focus,.instant-img-container .api-lightbox button[type=submit]:hover{background-color:#455cb6}.instant-img-container .api-lightbox--response{color:#df3333;margin:0;font-size:13px;font-weight:500;padding:0 2px 12px}.instant-img-container .api-lightbox--response.valid{color:#51a75e}.filter-dropdown{position:relative}.filter-dropdown button{background-color:transparent;border:none;text-align:left;color:#999}.filter-dropdown button:not(disabled){cursor:pointer}.filter-dropdown--button{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:5px;padding:10px 2px 10px 0;text-transform:capitalize;color:#999;width:100%;font-size:14px}@media screen and (min-width:1500px){.filter-dropdown--button{font-size:15px}}.filter-dropdown--button span.filter-dropdown--button-label{padding-right:3px}.filter-dropdown--button span.filter-dropdown--button-selected{color:#333;font-weight:500}.filter-dropdown--button i{opacity:.4;margin-left:10px;font-size:14px}.filter-dropdown--button:focus i,.filter-dropdown--button:hover i{opacity:1}.filter-dropdown--menu{display:block;visibility:hidden;opacity:0;-webkit-transform:scale(.9);-ms-transform:scale(.9);transform:scale(.9);-webkit-transition:opacity .15s ease-in-out,visibility .15s ease-in-out,-webkit-transform .25s cubic-bezier(.24,.22,.015,1.56);transition:opacity .15s ease-in-out,visibility .15s ease-in-out,-webkit-transform .25s cubic-bezier(.24,.22,.015,1.56);-o-transition:transform .25s cubic-bezier(.24,.22,.015,1.56),opacity .15s ease-in-out,visibility .15s ease-in-out;transition:transform .25s cubic-bezier(.24,.22,.015,1.56),opacity .15s ease-in-out,visibility .15s ease-in-out;transition:transform .25s cubic-bezier(.24,.22,.015,1.56),opacity .15s ease-in-out,visibility .15s ease-in-out,-webkit-transform .25s cubic-bezier(.24,.22,.015,1.56);padding:10px;background-color:#fff;border:1px solid #e1e1e1;-webkit-border-radius:3px;border-radius:3px;-webkit-box-shadow:0 8px 16px rgba(48,63,122,.175);box-shadow:0 8px 16px rgba(48,63,122,.175);z-index:9999;position:absolute;top:110%;left:-12px;width:200px;max-height:350px;overflow-y:auto}.filter-dropdown--menu.expanded{visibility:visible;opacity:1;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1);top:100%}.filter-dropdown--menu button{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:10px;width:100%;text-transform:capitalize;padding:8px 5px;-webkit-transition:all .25 ease;-o-transition:all .25 ease;transition:all .25 ease;font-size:14px}.filter-dropdown--menu button:before{font-family:FontAwesome;content:"\F00C";display:block;color:#ccc;opacity:.4;font-size:10px}.filter-dropdown--menu button:focus,.filter-dropdown--menu button:hover{color:#333}.filter-dropdown--menu button:focus:before,.filter-dropdown--menu button:hover:before{opacity:.75}.filter-dropdown--menu button.selected{color:#333}.filter-dropdown--menu button.selected:before{color:#333;opacity:.75}.filter-dropdown--menu[data-key=color] button ._color,.filter-dropdown--menu[data-key=colors] button ._color{margin-left:auto;width:14px;height:14px;-webkit-border-radius:50%;border-radius:50%;background-color:currentColor;-webkit-box-shadow:0 0 0 1px rgba(0,0,0,.075);box-shadow:0 0 0 1px rgba(0,0,0,.075)}.search-results-header h2{font-size:34px;line-height:1;padding:0;margin:0 0 5px;text-transform:capitalize;font-weight:700}@media screen and (max-width:800px){.search-results-header h2{font-size:25px}}.search-results-header--text{font-size:14px;margin:0 0 15px;color:#999}.search-results-header--text strong{color:#333;font-weight:600}.search-results-header--text button{border:none;background-color:transparent;font-size:13px;cursor:pointer;color:#586ec6;font-weight:400;padding:2px 0 0;margin:0}.search-results-header--text button:focus,.search-results-header--text button:hover{text-decoration:underline;color:#455cb6}.search-results-header .control-nav--filters-wrap{margin:0 0 15px}
dist/img/pexels.svg ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" viewBox="0 0 32 32">
2
+ <path d="M2 0h28a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2z" fill="#05A081"></path>
3
+ <path d="M13 21h3.863v-3.752h1.167a3.124 3.124 0 1 0 0-6.248H13v10zm5.863 2H11V9h7.03a5.124 5.124 0 0 1 .833 10.18V23z" fill="#fff"></path>
4
+ </svg>
dist/js/instant-images-block.js CHANGED
@@ -2182,10 +2182,10 @@ module.exports = {
2182
  /*!*****************************************!*\
2183
  !*** ./node_modules/axios/package.json ***!
2184
  \*****************************************/
2185
- /*! exports provided: _from, _id, _inBundle, _integrity, _location, _phantomChildren, _requested, _requiredBy, _resolved, _shasum, _spec, _where, author, browser, bugs, bundleDependencies, bundlesize, dependencies, deprecated, description, devDependencies, homepage, jsdelivr, keywords, license, main, name, repository, scripts, typings, unpkg, version, default */
2186
  /***/ (function(module) {
2187
 
2188
- module.exports = JSON.parse("{\"_from\":\"axios@^0.21.2\",\"_id\":\"axios@0.21.4\",\"_inBundle\":false,\"_integrity\":\"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==\",\"_location\":\"/axios\",\"_phantomChildren\":{},\"_requested\":{\"type\":\"range\",\"registry\":true,\"raw\":\"axios@^0.21.2\",\"name\":\"axios\",\"escapedName\":\"axios\",\"rawSpec\":\"^0.21.2\",\"saveSpec\":null,\"fetchSpec\":\"^0.21.2\"},\"_requiredBy\":[\"/\"],\"_resolved\":\"https://registry.npmjs.org/axios/-/axios-0.21.4.tgz\",\"_shasum\":\"c67b90dc0568e5c1cf2b0b858c43ba28e2eda575\",\"_spec\":\"axios@^0.21.2\",\"_where\":\"/Users/darrencooney/Local Sites/instant-images/app/public/wp-content/plugins/instant-images\",\"author\":{\"name\":\"Matt Zabriskie\"},\"browser\":{\"./lib/adapters/http.js\":\"./lib/adapters/xhr.js\"},\"bugs\":{\"url\":\"https://github.com/axios/axios/issues\"},\"bundleDependencies\":false,\"bundlesize\":[{\"path\":\"./dist/axios.min.js\",\"threshold\":\"5kB\"}],\"dependencies\":{\"follow-redirects\":\"^1.14.0\"},\"deprecated\":false,\"description\":\"Promise based HTTP client for the browser and node.js\",\"devDependencies\":{\"coveralls\":\"^3.0.0\",\"es6-promise\":\"^4.2.4\",\"grunt\":\"^1.3.0\",\"grunt-banner\":\"^0.6.0\",\"grunt-cli\":\"^1.2.0\",\"grunt-contrib-clean\":\"^1.1.0\",\"grunt-contrib-watch\":\"^1.0.0\",\"grunt-eslint\":\"^23.0.0\",\"grunt-karma\":\"^4.0.0\",\"grunt-mocha-test\":\"^0.13.3\",\"grunt-ts\":\"^6.0.0-beta.19\",\"grunt-webpack\":\"^4.0.2\",\"istanbul-instrumenter-loader\":\"^1.0.0\",\"jasmine-core\":\"^2.4.1\",\"karma\":\"^6.3.2\",\"karma-chrome-launcher\":\"^3.1.0\",\"karma-firefox-launcher\":\"^2.1.0\",\"karma-jasmine\":\"^1.1.1\",\"karma-jasmine-ajax\":\"^0.1.13\",\"karma-safari-launcher\":\"^1.0.0\",\"karma-sauce-launcher\":\"^4.3.6\",\"karma-sinon\":\"^1.0.5\",\"karma-sourcemap-loader\":\"^0.3.8\",\"karma-webpack\":\"^4.0.2\",\"load-grunt-tasks\":\"^3.5.2\",\"minimist\":\"^1.2.0\",\"mocha\":\"^8.2.1\",\"sinon\":\"^4.5.0\",\"terser-webpack-plugin\":\"^4.2.3\",\"typescript\":\"^4.0.5\",\"url-search-params\":\"^0.10.0\",\"webpack\":\"^4.44.2\",\"webpack-dev-server\":\"^3.11.0\"},\"homepage\":\"https://axios-http.com\",\"jsdelivr\":\"dist/axios.min.js\",\"keywords\":[\"xhr\",\"http\",\"ajax\",\"promise\",\"node\"],\"license\":\"MIT\",\"main\":\"index.js\",\"name\":\"axios\",\"repository\":{\"type\":\"git\",\"url\":\"git+https://github.com/axios/axios.git\"},\"scripts\":{\"build\":\"NODE_ENV=production grunt build\",\"coveralls\":\"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js\",\"examples\":\"node ./examples/server.js\",\"fix\":\"eslint --fix lib/**/*.js\",\"postversion\":\"git push && git push --tags\",\"preversion\":\"npm test\",\"start\":\"node ./sandbox/server.js\",\"test\":\"grunt test\",\"version\":\"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json\"},\"typings\":\"./index.d.ts\",\"unpkg\":\"dist/axios.min.js\",\"version\":\"0.21.4\"}");
2189
 
2190
  /***/ }),
2191
 
@@ -37715,6 +37715,10 @@ var _consoleStatus = __webpack_require__(/*! ../functions/consoleStatus */ "./sr
37715
 
37716
  var _consoleStatus2 = _interopRequireDefault(_consoleStatus);
37717
 
 
 
 
 
37718
  var _updatePluginSetting = __webpack_require__(/*! ../functions/updatePluginSetting */ "./src/js/functions/updatePluginSetting.js");
37719
 
37720
  var _updatePluginSetting2 = _interopRequireDefault(_updatePluginSetting);
@@ -37760,7 +37764,7 @@ var APILightbox = function (_React$Component) {
37760
  key: "handleSubmit",
37761
  value: function () {
37762
  var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(e) {
37763
- var self, key, response, ok, status, settingField;
37764
  return regeneratorRuntime.wrap(function _callee$(_context) {
37765
  while (1) {
37766
  switch (_context.prev = _context.next) {
@@ -37780,20 +37784,7 @@ var APILightbox = function (_React$Component) {
37780
  // Set localized variable.
37781
  instant_img_localize[this.provider + "_app_id"] = key;
37782
 
37783
- // Fetch API data.
37784
- _context.next = 8;
37785
- return fetch((0, _buildTestURL2.default)(this.provider));
37786
-
37787
- case 8:
37788
- response = _context.sent;
37789
-
37790
-
37791
- // Handle response.
37792
- ok = response.ok;
37793
- status = response.status;
37794
-
37795
  // Update the matching provider API key in the Instant Images settings.
37796
-
37797
  settingField = document.querySelector("input[name=\"instant_img_settings[" + this.provider + "_api]\"]");
37798
 
37799
  if (settingField) {
@@ -37803,10 +37794,25 @@ var APILightbox = function (_React$Component) {
37803
  // Update plugin settings via REST API.
37804
  (0, _updatePluginSetting2.default)(this.provider + "_api", key);
37805
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37806
  // Handle response actions.
 
37807
  if (ok) {
37808
  // Success.
37809
- this.setState({
37810
  status: "valid",
37811
  response: instant_img_localize.api_success_msg
37812
  });
@@ -37818,25 +37824,47 @@ var APILightbox = function (_React$Component) {
37818
  this.setState({ status: "invalid" });
37819
 
37820
  // Render console warning.
37821
- (0, _consoleStatus2.default)(this.provider, status);
37822
 
37823
  // Set response state.
37824
  if (status === 400 || status === 401) {
37825
  // Unsplash/Pixabay incorrect API key.
37826
- this.setState({ response: instant_img_localize.api_invalid_msg });
 
 
37827
  }
37828
  if (status === 429) {
37829
  // Pixabay - too many requests.
37830
- this.setState({ response: instant_img_localize.api_ratelimit_msg });
 
 
37831
  }
37832
  }
 
 
37833
 
37834
- case 15:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37835
  case "end":
37836
  return _context.stop();
37837
  }
37838
  }
37839
- }, _callee, this);
37840
  }));
37841
 
37842
  function handleSubmit(_x) {
@@ -38538,16 +38566,20 @@ var NoResults = function (_React$Component) {
38538
  "div",
38539
  { className: "no-results" },
38540
  _react2.default.createElement(
38541
- "h3",
38542
- null,
38543
- instant_img_localize.no_results,
38544
- " "
38545
- ),
38546
- _react2.default.createElement(
38547
- "p",
38548
  null,
38549
- instant_img_localize.no_results_desc,
38550
- " "
 
 
 
 
 
 
 
 
 
 
38551
  )
38552
  );
38553
  }
@@ -38588,6 +38620,10 @@ var _API = __webpack_require__(/*! ../constants/API.js */ "./src/js/constants/AP
38588
 
38589
  var _API2 = _interopRequireDefault(_API);
38590
 
 
 
 
 
38591
  var _generateAttribution = __webpack_require__(/*! ../functions/generateAttribution.js */ "./src/js/functions/generateAttribution.js.js");
38592
 
38593
  var _generateAttribution2 = _interopRequireDefault(_generateAttribution);
@@ -38596,6 +38632,10 @@ var _getProp = __webpack_require__(/*! ../functions/getProp */ "./src/js/functio
38596
 
38597
  var _getProp2 = _interopRequireDefault(_getProp);
38598
 
 
 
 
 
38599
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
38600
 
38601
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -38625,7 +38665,7 @@ var Photo = function (_React$Component) {
38625
  _this.img_title = instant_img_localize.photo_by + " " + _this.author;
38626
  _this.filename = result.id;
38627
  _this.title = _this.img_title;
38628
- _this.alt = result.alt_description ? result.alt_description : null;
38629
  _this.alt = _this.alt === null ? "" : _this.alt;
38630
  _this.caption = "";
38631
 
@@ -38719,6 +38759,7 @@ var Photo = function (_React$Component) {
38719
 
38720
  // Data Params
38721
  var data = {
 
38722
  id: target.getAttribute("data-id"),
38723
  image_url: target.getAttribute("data-url"),
38724
  filename: target.getAttribute("data-id") + ".jpg",
@@ -38755,9 +38796,9 @@ var Photo = function (_React$Component) {
38755
  // Success/Upload Complete
38756
  self.uploadComplete(target, photo, msg, edit_url, attachment.id);
38757
 
38758
- // Trigger Download Counter at Unsplash.
38759
  if (self.provider === "unsplash") {
38760
- self.triggerUnsplashDownload(id);
38761
  }
38762
 
38763
  // Set Featured Image [Gutenberg Sidebar]
@@ -38793,27 +38834,6 @@ var Photo = function (_React$Component) {
38793
  });
38794
  }
38795
 
38796
- /**
38797
- * Function to trigger download action at unsplash.com
38798
- * This is used to give authors download credits and nothing more
38799
- *
38800
- * @param {string} id The ID of the image
38801
- * @since 3.1
38802
- */
38803
-
38804
- }, {
38805
- key: "triggerUnsplashDownload",
38806
- value: function triggerUnsplashDownload(id) {
38807
- var url = this.api_provider.photo_api + "/" + id + "/download/" + this.api_provider.api_query_var + this.api_key;
38808
- fetch(url).then(function (data) {
38809
- return data.json();
38810
- }).then(function (data) {
38811
- // Success, nothing else happens here
38812
- }).catch(function (error) {
38813
- console.log(error);
38814
- });
38815
- }
38816
-
38817
  /**
38818
  * Function used to trigger a download and then set as featured image
38819
  *
@@ -38879,11 +38899,11 @@ var Photo = function (_React$Component) {
38879
  target.classList.add("success");
38880
  this.inProgress = false;
38881
 
38882
- // Remove uploaded and success states after 7.5 seconds.
38883
  setTimeout(function () {
38884
  photo.classList.remove("uploaded");
38885
  target.classList.remove("success");
38886
- }, 7500);
38887
 
38888
  // Gutenberg Sidebar
38889
  if (this.is_block_editor) {
@@ -39202,7 +39222,10 @@ var Photo = function (_React$Component) {
39202
  _react2.default.createElement(
39203
  "div",
39204
  { className: "user-wrap" },
39205
- this.user_photo && this.user_photo.length > 0 && _react2.default.createElement("img", { src: this.user_photo }),
 
 
 
39206
  this.provider === "unsplash" ? this.user : this.name
39207
  )
39208
  ),
@@ -39306,7 +39329,7 @@ var Photo = function (_React$Component) {
39306
  _react2.default.createElement(
39307
  "div",
39308
  { className: "options" },
39309
- _react2.default.createElement(
39310
  "span",
39311
  {
39312
  className: "likes tooltip--above",
@@ -39324,13 +39347,13 @@ var Photo = function (_React$Component) {
39324
  }),
39325
  " ",
39326
  this.likes
39327
- ),
39328
  _react2.default.createElement(
39329
  "a",
39330
  {
39331
  className: "tooltip--above",
39332
  href: this.link,
39333
- "data-title": this.provider === "unsplash" ? instant_img_localize.view_on_unsplash : instant_img_localize.view_on_pixabay,
39334
  onMouseEnter: function onMouseEnter(e) {
39335
  return _this2.showTooltip(e);
39336
  },
@@ -39346,7 +39369,7 @@ var Photo = function (_React$Component) {
39346
  _react2.default.createElement(
39347
  "span",
39348
  { className: "offscreen" },
39349
- this.provider === "unsplash" ? instant_img_localize.view_on_unsplash : instant_img_localize.view_on_pixabay
39350
  )
39351
  )
39352
  )
@@ -39531,6 +39554,8 @@ Object.defineProperty(exports, "__esModule", {
39531
 
39532
  var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
39533
 
 
 
39534
  var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
39535
 
39536
  var _masonryLayout = __webpack_require__(/*! masonry-layout */ "./node_modules/masonry-layout/masonry.js");
@@ -39553,13 +39578,17 @@ var _buildTestURL = __webpack_require__(/*! ../functions/buildTestURL */ "./src/
39553
 
39554
  var _buildTestURL2 = _interopRequireDefault(_buildTestURL);
39555
 
39556
- var _contentSafety = __webpack_require__(/*! ../functions/contentSafety */ "./src/js/functions/contentSafety.js");
 
 
 
 
39557
 
39558
- var _contentSafety2 = _interopRequireDefault(_contentSafety);
39559
 
39560
- var _createQS = __webpack_require__(/*! ../functions/createQS */ "./src/js/functions/createQS.js");
39561
 
39562
- var _createQS2 = _interopRequireDefault(_createQS);
39563
 
39564
  var _getResults = __webpack_require__(/*! ../functions/getResults */ "./src/js/functions/getResults.js");
39565
 
@@ -39607,6 +39636,8 @@ var _Tooltip2 = _interopRequireDefault(_Tooltip);
39607
 
39608
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
39609
 
 
 
39610
  function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
39611
 
39612
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -39626,15 +39657,16 @@ var PhotoList = function (_React$Component) {
39626
  // Get current provider settings.
39627
  var _this = _possibleConstructorReturn(this, (PhotoList.__proto__ || Object.getPrototypeOf(PhotoList)).call(this, props));
39628
 
39629
- _this.providers = ["Unsplash", "Pixabay"];
39630
  _this.provider = _this.props.provider; // Unsplash, Pixabay, etc.
39631
  _this.api_provider = _API2.default[_this.provider]; // The API settings for the provider.
39632
  _this.arr_key = _this.api_provider.arr_key;
 
39633
 
39634
  // API Vars.
39635
  _this.api_key = instant_img_localize[_this.provider + "_app_id"];
39636
- _this.api_url = "" + _this.api_provider.photo_api + _this.api_provider.api_query_var + _this.api_key + _API2.default.defaults.posts_per_page;
39637
- _this.search_api_url = "" + _this.api_provider.search_api + _this.api_provider.api_query_var + _this.api_key + _API2.default.defaults.posts_per_page;
39638
 
39639
  // Results state.
39640
  _this.results = (0, _getResults2.default)(_this.provider, _this.arr_key, _this.props.results);
@@ -39648,6 +39680,7 @@ var PhotoList = function (_React$Component) {
39648
 
39649
  _this.filters = {};
39650
  _this.search_filters = {};
 
39651
 
39652
  _this.orderby = _this.props.orderby; // Orderby
39653
  _this.page = _this.props.page; // Page
@@ -39692,58 +39725,22 @@ var PhotoList = function (_React$Component) {
39692
  }
39693
 
39694
  /**
39695
- * Test access to the REST API.
39696
  *
39697
- * @since 3.2
 
39698
  */
39699
 
39700
 
39701
  _createClass(PhotoList, [{
39702
- key: "test",
39703
- value: function test() {
39704
- var self = this;
39705
- var testURL = instant_img_localize.root + "instant-images/test/"; // REST Route
39706
- var restAPITest = new XMLHttpRequest();
39707
- restAPITest.open("POST", testURL, true);
39708
- restAPITest.setRequestHeader("X-WP-Nonce", instant_img_localize.nonce);
39709
- restAPITest.setRequestHeader("Content-Type", "application/json");
39710
- restAPITest.send();
39711
- restAPITest.onload = function () {
39712
- if (restAPITest.status >= 200 && restAPITest.status < 400) {
39713
- var response = JSON.parse(restAPITest.response);
39714
- var success = response.success;
39715
- if (!success) {
39716
- self.setState({ restapi_error: true });
39717
- }
39718
- } else {
39719
- // Error
39720
- self.setState({ restapi_error: true });
39721
- }
39722
- };
39723
- restAPITest.onerror = function (errorMsg) {
39724
- console.log(errorMsg);
39725
- self.setState({ restapi_error: true });
39726
- };
39727
- }
39728
-
39729
- /**
39730
- * Trigger Search.
39731
- *
39732
- * @param {Event} event The dispatched submit event.
39733
- * @since 3.0
39734
- */
39735
-
39736
- }, {
39737
  key: "search",
39738
  value: function search(event) {
39739
  event.preventDefault();
39740
-
39741
  var input = this.photoSearch.current;
39742
  var term = input.value;
39743
 
39744
  if (term.length > 2) {
39745
  input.classList.add("searching");
39746
- this.container.classList.add("loading");
39747
  this.search_term = term;
39748
  this.is_search = true;
39749
  this.doSearch(this.search_term);
@@ -39752,108 +39749,6 @@ var PhotoList = function (_React$Component) {
39752
  }
39753
  }
39754
 
39755
- /**
39756
- * Run the search.
39757
- *
39758
- * @param {string} term The search term.
39759
- * @since 3.0
39760
- */
39761
-
39762
- }, {
39763
- key: "doSearch",
39764
- value: function doSearch(term) {
39765
- var self = this;
39766
- var input = this.photoSearch.current;
39767
- var type = "term";
39768
-
39769
- this.photoTarget.current.classList.add("loading");
39770
- this.isLoading = true;
39771
-
39772
- this.page = 1; // Reset currentpage num.
39773
- this.toggleFilters(); // Disable filters.
39774
-
39775
- var url = this.search_api_url + "&page=" + this.page + "&" + this.api_provider.search_query_var + "=" + this.search_term + (0, _contentSafety2.default)(this.provider);
39776
-
39777
- // Search by ID.
39778
- // Allow users to search by photo by prepending id:{photo_id} to search terms.
39779
- var search_type = term.substring(0, 3);
39780
- if (search_type === "id:") {
39781
- type = "id";
39782
- term = term.replace("id:", "");
39783
- url = (0, _searchByID2.default)(this.provider, term, this.api_provider.photo_api, this.api_provider.api_query_var, this.api_key);
39784
- }
39785
-
39786
- // Get search filters.
39787
- var filters = (0, _createQS2.default)(this.search_filters);
39788
- url = filters !== "&" ? "" + url + filters : url;
39789
-
39790
- fetch(url).then(function (data) {
39791
- return data.json();
39792
- }).then(function (data) {
39793
- // Search term.
39794
- if (type === "term") {
39795
- var results = (0, _getResults2.default)(self.provider, self.arr_key, data, true);
39796
- self.total_results = data.total;
39797
-
39798
- // Check for returned data.
39799
- self.checkTotalResults(results.length);
39800
-
39801
- // Update Props.
39802
- self.results = results;
39803
- self.setState({
39804
- results: self.results,
39805
- search_filters: _filters2.default[self.provider].search
39806
- });
39807
- }
39808
-
39809
- // Search by ID.
39810
- if (type === "id" && data) {
39811
- // Convert return data to array.
39812
- var photoArray = [];
39813
-
39814
- // Get results via ID.
39815
- var result = (0, _getResults.getResultById)(self.provider, self.arr_key, data, true);
39816
-
39817
- // Data comes back differently in a search by ID.
39818
- if (data.errors) {
39819
- // If error was returned (Unsplash Only).
39820
- self.total_results = 0;
39821
- self.checkTotalResults("0");
39822
- } else {
39823
- // No errors, display results
39824
- photoArray.push(result);
39825
- self.total_results = 1;
39826
- self.checkTotalResults("1");
39827
- }
39828
-
39829
- self.results = photoArray;
39830
- self.setState({ results: self.results });
39831
- }
39832
-
39833
- // Delay for effect.
39834
- setTimeout(function () {
39835
- input.classList.remove("searching");
39836
- self.photoTarget.current.classList.remove("loading");
39837
- self.isLoading = false;
39838
- }, self.delay);
39839
- }).catch(function (error) {
39840
- console.log(error);
39841
-
39842
- // Error, reset all search parameters.
39843
- input.classList.remove("searching");
39844
- self.isLoading = false;
39845
- self.total_results = 0;
39846
- self.isDone = true;
39847
-
39848
- this.photoTarget.current.classList.remove("loading");
39849
- this.isLoading = false;
39850
-
39851
- // Update Props.
39852
- self.results = [];
39853
- self.setState({ results: self.results });
39854
- });
39855
- }
39856
-
39857
  /**
39858
  * Reset search results, settings and results view.
39859
  *
@@ -39889,6 +39784,161 @@ var PhotoList = function (_React$Component) {
39889
  }
39890
  }
39891
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39892
  /**
39893
  * Get the initial set of photos for the current view (New/Popular/Filters/etc...).
39894
  *
@@ -39900,63 +39950,104 @@ var PhotoList = function (_React$Component) {
39900
 
39901
  }, {
39902
  key: "getPhotos",
39903
- value: function getPhotos(view) {
39904
- var reset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
39905
- var switcher = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
 
 
 
 
 
 
 
 
 
 
39906
 
39907
- var self = this;
39908
 
39909
- if (this.isLoading && !reset) {
39910
- return; // exit if active
39911
- }
39912
 
39913
- this.photoTarget.current.classList.add("loading");
39914
- this.isLoading = true;
39915
- this.page = 1;
39916
- this.orderby = view;
39917
- this.results = [];
39918
- this.clearSearch();
39919
 
39920
- // Get filters.
39921
- var filters = (0, _createQS2.default)(this.filters);
 
39922
 
39923
- // Build URL.
39924
- var url = this.api_url + "&page=" + this.page + "&" + (0, _contentSafety2.default)(this.provider) + filters;
39925
 
39926
- fetch(url).then(function (data) {
39927
- return data.json();
39928
- }).then(function (data) {
39929
- var results = (0, _getResults2.default)(self.provider, self.arr_key, data);
39930
 
39931
- // Check for returned data
39932
- self.checkTotalResults(results.length);
 
39933
 
39934
- // Update Props.
39935
- self.results = results;
39936
 
39937
- // Set results state.
39938
- if (!switcher) {
39939
- self.setState({
39940
- results: results
39941
- });
39942
- } else {
39943
- self.setState({
39944
- results: results,
39945
- filters: _filters2.default[self.provider].filters
39946
- });
39947
- }
39948
 
39949
- // Delay for effect.
39950
- setTimeout(function () {
39951
- self.photoTarget.current.classList.remove("loading");
39952
- self.isLoading = false;
39953
- }, self.delay);
39954
- }).catch(function (error) {
39955
- console.log(error);
39956
- self.photoTarget.current.classList.remove("loading");
39957
- self.isLoading = false;
39958
- });
39959
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39960
 
39961
  /**
39962
  * Load next set of photos in infinite scroll style.
@@ -39966,52 +40057,91 @@ var PhotoList = function (_React$Component) {
39966
 
39967
  }, {
39968
  key: "loadMorePhotos",
39969
- value: function loadMorePhotos() {
39970
- var self = this;
39971
- this.page = parseInt(this.page) + 1;
39972
- this.container.classList.add("loading");
39973
- this.isLoading = true;
 
 
 
39974
 
39975
- var url = this.api_url + "&page=" + this.page + "&";
39976
- var filters = "";
 
39977
 
39978
- if (this.is_search) {
39979
- url = this.search_api_url + "&page=" + this.page + "&" + this.api_provider.search_query_var + "=" + this.search_term;
39980
- filters = (0, _createQS2.default)(this.search_filters);
39981
- } else {
39982
- filters = (0, _createQS2.default)(this.filters);
39983
- }
39984
 
39985
- // Build URL
39986
- url = filters ? "" + url + (0, _contentSafety2.default)(this.provider) + filters : url;
 
39987
 
39988
- fetch(url).then(function (data) {
39989
- return data.json();
39990
- }).then(function (data) {
39991
- var moreResults = (0, _getResults2.default)(self.provider, self.arr_key, data, self.is_search);
 
 
39992
 
39993
- // Unsplash search results are recieved in different JSON format
39994
- if (self.is_search && self.provider === "unsplash") {
39995
- moreResults = data.results;
39996
- }
39997
 
39998
- // Loop results, push items into array
39999
- moreResults && moreResults.map(function (data) {
40000
- self.results.push(data);
40001
- });
 
 
 
40002
 
40003
- // Check for returned data
40004
- self.checkTotalResults(data.length);
40005
 
40006
- // Update Props
40007
- self.setState({ results: self.results });
 
 
40008
 
40009
- self.isLoading = false;
40010
- }).catch(function (error) {
40011
- console.log(error);
40012
- self.isLoading = false;
40013
- });
40014
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40015
 
40016
  /**
40017
  * Filter the photo listing.
@@ -40023,7 +40153,7 @@ var PhotoList = function (_React$Component) {
40023
  }, {
40024
  key: "filterPhotos",
40025
  value: function filterPhotos(filter, value) {
40026
- if (this.filters[filter] && value === "#" || value === "") {
40027
  delete this.filters[filter];
40028
  } else {
40029
  this.filters[filter] = value;
@@ -40041,7 +40171,7 @@ var PhotoList = function (_React$Component) {
40041
  }, {
40042
  key: "filterSearch",
40043
  value: function filterSearch(filter, value) {
40044
- if (this.search_filters[filter] && value === "#" || value === "") {
40045
  delete this.search_filters[filter];
40046
  } else {
40047
  this.search_filters[filter] = value;
@@ -40119,54 +40249,64 @@ var PhotoList = function (_React$Component) {
40119
  }, {
40120
  key: "switchProvider",
40121
  value: function () {
40122
- var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(e) {
40123
- var target, provider, response, ok, status;
40124
- return regeneratorRuntime.wrap(function _callee$(_context) {
40125
  while (1) {
40126
- switch (_context.prev = _context.next) {
40127
  case 0:
40128
  target = e.currentTarget;
40129
  provider = target.dataset.provider;
40130
 
40131
  if (!(provider === this.provider)) {
40132
- _context.next = 4;
40133
  break;
40134
  }
40135
 
40136
- return _context.abrupt("return", false);
40137
 
40138
  case 4:
40139
  if (!_API2.default[provider].requires_key) {
40140
- _context.next = 14;
40141
  break;
40142
  }
40143
 
40144
- _context.next = 7;
40145
- return fetch((0, _buildTestURL2.default)(provider));
 
 
 
 
40146
 
40147
- case 7:
40148
- response = _context.sent;
40149
  ok = response.ok;
40150
  status = response.status;
40151
 
40152
- if (!(!ok || status === 400 || status === 401 || status === 500)) {
40153
- _context.next = 14;
40154
  break;
40155
  }
40156
 
40157
- this.setState({ api_lightbox: provider }); // Show API Lightbox.
 
40158
  document.body.classList.add("overflow-hidden");
40159
- return _context.abrupt("return");
40160
 
40161
- case 14:
 
 
40162
 
40163
- // Set new state provider.
40164
- this.provider = provider;
40165
- this.api_provider = _API2.default[this.provider];
40166
 
40167
- // Clear filters.
40168
- this.filters = {};
40169
- this.search_filters = {};
 
 
 
40170
 
40171
  // Remove active from buttons.
40172
  this.providerNav.current.querySelectorAll("button").forEach(function (button) {
@@ -40176,27 +40316,32 @@ var PhotoList = function (_React$Component) {
40176
  // Select active button.
40177
  target.classList.add("active");
40178
 
40179
- // Set current provider params.
 
 
40180
  this.arr_key = this.api_provider.arr_key;
40181
  this.api_key = instant_img_localize[this.provider + "_app_id"];
 
 
40182
 
40183
- this.api_url = "" + this.api_provider.photo_api + this.api_provider.api_query_var + this.api_key + _API2.default.defaults.posts_per_page;
40184
- this.search_api_url = "" + this.api_provider.search_api + this.api_provider.api_query_var + this.api_key + _API2.default.defaults.posts_per_page;
 
40185
 
40186
- // At last, get the photos.
40187
  this.view = "latest";
40188
  this.getPhotos(this.view, true, true);
40189
 
40190
- case 26:
40191
  case "end":
40192
- return _context.stop();
40193
  }
40194
  }
40195
- }, _callee, this);
40196
  }));
40197
 
40198
- function switchProvider(_x3) {
40199
- return _ref.apply(this, arguments);
40200
  }
40201
 
40202
  return switchProvider;
@@ -40237,7 +40382,7 @@ var PhotoList = function (_React$Component) {
40237
  value: function onScroll() {
40238
  var wHeight = window.innerHeight;
40239
  var scrollTop = window.pageYOffset;
40240
- var scrollH = document.body.scrollHeight - 400;
40241
  if (wHeight + scrollTop >= scrollH && !this.isLoading && !this.isDone) {
40242
  this.loadMorePhotos();
40243
  }
@@ -40253,7 +40398,7 @@ var PhotoList = function (_React$Component) {
40253
  }, {
40254
  key: "checkTotalResults",
40255
  value: function checkTotalResults(num) {
40256
- this.isDone = num == 0 ? true : false;
40257
  }
40258
 
40259
  /**
@@ -40326,6 +40471,40 @@ var PhotoList = function (_React$Component) {
40326
  tooltip.classList.remove("over");
40327
  }
40328
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40329
  // Component Updated
40330
 
40331
  }, {
@@ -40414,13 +40593,13 @@ var PhotoList = function (_React$Component) {
40414
  Object.entries(this.state.filters).length && _react2.default.createElement(
40415
  "div",
40416
  { className: "control-nav--filters" },
40417
- Object.entries(this.state.filters).map(function (_ref2, i) {
40418
- var _ref3 = _slicedToArray(_ref2, 2),
40419
- key = _ref3[0],
40420
- filter = _ref3[1];
40421
 
40422
  return _react2.default.createElement(_Filter2.default, {
40423
- key: key + "-" + i,
40424
  filterKey: key,
40425
  provider: _this4.provider,
40426
  data: filter,
@@ -40497,16 +40676,16 @@ var PhotoList = function (_React$Component) {
40497
  instant_img_localize.clear_search
40498
  )
40499
  ),
40500
- Object.entries(this.state.search_filters).length && _react2.default.createElement(
40501
  "div",
40502
  { className: "control-nav--filters-wrap" },
40503
  _react2.default.createElement(
40504
  "div",
40505
  { className: "control-nav--filters" },
40506
- Object.entries(this.state.search_filters).map(function (_ref4, i) {
40507
- var _ref5 = _slicedToArray(_ref4, 2),
40508
- key = _ref5[0],
40509
- filter = _ref5[1];
40510
 
40511
  return _react2.default.createElement(_Filter2.default, {
40512
  key: key + "-" + i,
@@ -40699,30 +40878,41 @@ module.exports = {
40699
  defaults: {
40700
  provider: "unsplash",
40701
  order: "latest",
40702
- posts_per_page: "&per_page=20"
40703
  },
40704
  unsplash: {
40705
  requires_key: false,
 
40706
  new: false,
40707
- filters: true,
40708
- api_query_var: "/?client_id=",
40709
- photo_api: "https://api.unsplash.com/photos",
40710
- collections_api: "https://api.unsplash.com/collections",
40711
- search_api: "https://api.unsplash.com/search/photos",
40712
- search_query_var: "query",
40713
- arr_key: "results",
40714
- orientation: ["landscape", "portrait", "squarish"]
40715
  },
40716
  pixabay: {
40717
  requires_key: true,
40718
- new: false,
40719
- filters: true,
40720
- api_query_var: "/?key=",
40721
- photo_api: "https://pixabay.com/api",
40722
- search_api: "https://pixabay.com/api",
40723
- search_query_var: "q",
40724
- arr_key: "hits",
40725
- orientation: ["horizontal", "vertical"]
 
 
 
 
 
 
 
 
 
 
 
40726
  }
40727
  };
40728
 
@@ -40739,6 +40929,32 @@ module.exports = {
40739
 
40740
 
40741
  module.exports = {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40742
  unsplash: {
40743
  filters: {
40744
  order_by: {
@@ -40821,14 +41037,25 @@ module.exports = {
40821
 
40822
 
40823
  Object.defineProperty(exports, "__esModule", {
40824
- value: true
40825
  });
 
 
 
40826
  exports.default = buildTestURL;
40827
 
40828
  var _API = __webpack_require__(/*! ../constants/API */ "./src/js/constants/API.js");
40829
 
40830
  var _API2 = _interopRequireDefault(_API);
40831
 
 
 
 
 
 
 
 
 
40832
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
40833
 
40834
  /**
@@ -40838,19 +41065,26 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
40838
  * @return {string} The API URL.
40839
  */
40840
  function buildTestURL(provider) {
40841
- var api = _API2.default[provider];
40842
- var api_key = instant_img_localize[provider + "_app_id"];
40843
- var url = "" + api.photo_api + api.api_query_var + api_key + "&per_page=5&page=1";
 
 
40844
 
40845
- return url;
 
 
 
 
 
40846
  }
40847
 
40848
  /***/ }),
40849
 
40850
- /***/ "./src/js/functions/consoleStatus.js":
40851
- /*!*******************************************!*\
40852
- !*** ./src/js/functions/consoleStatus.js ***!
40853
- \*******************************************/
40854
  /*! no static exports found */
40855
  /***/ (function(module, exports, __webpack_require__) {
40856
 
@@ -40860,38 +41094,32 @@ function buildTestURL(provider) {
40860
  Object.defineProperty(exports, "__esModule", {
40861
  value: true
40862
  });
40863
- exports.default = consoleStatus;
40864
  /**
40865
- * Display a console.warn message about API status.
40866
  *
40867
- * @param {string} provider The API service provider.
40868
- * @param {string} status The API status.
 
40869
  */
40870
- function consoleStatus(provider) {
40871
- var status = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
40872
-
40873
- var local = instant_img_localize;
40874
- if (status === 400 || status === 401) {
40875
- // Unsplash/Pixabay incorrect API key.
40876
- console.warn("[" + local.instant_images + " - " + status + " Error] " + capitalize(provider) + ": " + local.api_invalid_msg);
40877
  }
40878
- if (status === 429) {
40879
- // Pixabay - too many requests.
40880
- console.warn("[" + local.instant_images + " - " + status + " Error] " + capitalize(provider) + ": " + local.api_ratelimit_msg);
40881
- }
40882
- }
40883
 
40884
- function capitalize(s) {
40885
- if (typeof s !== "string") return "";
40886
- return s.charAt(0).toUpperCase() + s.slice(1);
40887
  }
40888
 
40889
  /***/ }),
40890
 
40891
- /***/ "./src/js/functions/contentSafety.js":
40892
- /*!*******************************************!*\
40893
- !*** ./src/js/functions/contentSafety.js ***!
40894
- \*******************************************/
40895
  /*! no static exports found */
40896
  /***/ (function(module, exports, __webpack_require__) {
40897
 
@@ -40899,41 +41127,25 @@ function capitalize(s) {
40899
 
40900
 
40901
  Object.defineProperty(exports, "__esModule", {
40902
- value: true
40903
  });
40904
- exports.default = contentSafety;
40905
  /**
40906
- * Set the photo safety for indicating that only images suitable for all ages should be returned.
40907
- * @see https://unsplash.com/documentation#content-safety
40908
- * @see https://pixabay.com/api/docs/
40909
  *
40910
- * @param {string} provider The current service provider.
40911
- * @return {string} The api string for filtering content.
40912
  */
40913
- function contentSafety(provider) {
40914
- var str = "";
40915
- switch (provider) {
40916
- case "unsplash":
40917
- if (instant_img_localize.unsplash_content_filter) {
40918
- str = "&content_filter=" + instant_img_localize.unsplash_content_filter;
40919
- }
40920
- break;
40921
-
40922
- case "pixabay":
40923
- if (instant_img_localize.pixabay_safesearch) {
40924
- str = "&safesearch=" + instant_img_localize.pixabay_safesearch;
40925
- }
40926
- break;
40927
- }
40928
- return str;
40929
  }
40930
 
40931
  /***/ }),
40932
 
40933
- /***/ "./src/js/functions/createQS.js":
40934
- /*!**************************************!*\
40935
- !*** ./src/js/functions/createQS.js ***!
40936
- \**************************************/
40937
  /*! no static exports found */
40938
  /***/ (function(module, exports, __webpack_require__) {
40939
 
@@ -40941,21 +41153,34 @@ function contentSafety(provider) {
40941
 
40942
 
40943
  Object.defineProperty(exports, "__esModule", {
40944
- value: true
40945
  });
40946
- exports.default = createQS;
 
 
 
 
 
 
 
40947
  /**
40948
- * Create a querystring from an object.
40949
  *
40950
- * @param {string} obj The object.
40951
- * @return {string} The generated querystring.
40952
  */
40953
- function createQS(obj) {
40954
- var qs = Object.keys(obj).map(function (key) {
40955
- return key + "=" + obj[key];
40956
- }).join("&");
40957
 
40958
- return "&" + qs;
 
 
 
 
 
 
 
 
40959
  }
40960
 
40961
  /***/ }),
@@ -40974,6 +41199,13 @@ Object.defineProperty(exports, "__esModule", {
40974
  value: true
40975
  });
40976
  exports.default = generateAttribution;
 
 
 
 
 
 
 
40977
  /**
40978
  * Get the API URL for searches by ID.
40979
  *
@@ -40983,18 +41215,50 @@ exports.default = generateAttribution;
40983
  * @return {string} The raw attribution HTML.
40984
  */
40985
  function generateAttribution(provider, url, name) {
40986
- var attribution = instant_img_localize.photo_by;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40987
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40988
  switch (provider) {
40989
- case "unsplash":
40990
- attribution += " <a href=\"" + url + "?utm_source=wordpress-instant-images&utm_medium=referral\">" + name + "</a> on <a href=\"" + instant_img_localize.unsplash_url + "/?utm_source=wordpress-instant-images&utm_medium=referral\">Unsplash</a>";
 
 
40991
  break;
40992
- case "pixabay":
40993
- attribution += " <a href=\"" + url + "?utm_source=wordpress-instant-images&utm_medium=referral\">" + name + "</a> on <a href=\"" + instant_img_localize.pixabay_url + "/?utm_source=wordpress-instant-images&utm_medium=referral\">Pixabay</a>";
40994
  break;
40995
  }
40996
 
40997
- return attribution;
40998
  }
40999
 
41000
  /***/ }),
@@ -41023,6 +41287,7 @@ exports.default = getProp;
41023
  */
41024
  function getProp(provider, result, attribute) {
41025
  var value = "";
 
41026
  switch (attribute) {
41027
  case "thumb":
41028
  if (provider === "pixabay") {
@@ -41031,6 +41296,9 @@ function getProp(provider, result, attribute) {
41031
  if (provider === "unsplash") {
41032
  value = result.urls.thumb;
41033
  }
 
 
 
41034
  break;
41035
 
41036
  case "img":
@@ -41040,6 +41308,9 @@ function getProp(provider, result, attribute) {
41040
  if (provider === "unsplash") {
41041
  value = result.urls.small;
41042
  }
 
 
 
41043
  break;
41044
 
41045
  case "full_size":
@@ -41049,6 +41320,9 @@ function getProp(provider, result, attribute) {
41049
  if (provider === "unsplash") {
41050
  value = result.urls.full;
41051
  }
 
 
 
41052
  break;
41053
 
41054
  case "author":
@@ -41058,6 +41332,9 @@ function getProp(provider, result, attribute) {
41058
  if (provider === "unsplash") {
41059
  value = result.user.name;
41060
  }
 
 
 
41061
  break;
41062
 
41063
  case "user":
@@ -41067,6 +41344,9 @@ function getProp(provider, result, attribute) {
41067
  if (provider === "unsplash") {
41068
  value = result.user.username;
41069
  }
 
 
 
41070
  break;
41071
 
41072
  case "name":
@@ -41076,6 +41356,9 @@ function getProp(provider, result, attribute) {
41076
  if (provider === "unsplash") {
41077
  value = result.user.name;
41078
  }
 
 
 
41079
  break;
41080
 
41081
  case "user_photo":
@@ -41085,14 +41368,20 @@ function getProp(provider, result, attribute) {
41085
  if (provider === "unsplash") {
41086
  value = result.user.profile_image.small;
41087
  }
 
 
 
41088
  break;
41089
 
41090
  case "user_url":
41091
  if (provider === "pixabay") {
41092
- value = instant_img_localize.pixabay_url + "/users/" + result.user + "-" + result.user_id + "/";
41093
  }
41094
  if (provider === "unsplash") {
41095
- value = instant_img_localize.unsplash_url + "/@" + result.user.username + "?utm_source=wordpress-instant-images&utm_medium=referral";
 
 
 
41096
  }
41097
  break;
41098
 
@@ -41103,6 +41392,9 @@ function getProp(provider, result, attribute) {
41103
  if (provider === "unsplash") {
41104
  value = result.links.html;
41105
  }
 
 
 
41106
  break;
41107
 
41108
  case "likes":
@@ -41112,6 +41404,21 @@ function getProp(provider, result, attribute) {
41112
  if (provider === "unsplash") {
41113
  value = result.likes;
41114
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41115
  break;
41116
  }
41117
 
@@ -41144,7 +41451,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
41144
  /**
41145
  * Get the default provider on page load.
41146
  *
41147
- * @return {string} The default service provider.
41148
  */
41149
  function getProvider() {
41150
  return instant_img_localize && instant_img_localize.default_provider ? instant_img_localize.default_provider : _API2.default.defaults.provider;
@@ -41152,6 +41459,110 @@ function getProvider() {
41152
 
41153
  /***/ }),
41154
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41155
  /***/ "./src/js/functions/getResults.js":
41156
  /*!****************************************!*\
41157
  !*** ./src/js/functions/getResults.js ***!
@@ -41167,6 +41578,7 @@ Object.defineProperty(exports, "__esModule", {
41167
  });
41168
  exports.default = getResults;
41169
  exports.getResultById = getResultById;
 
41170
  /**
41171
  * Access the results of different providers.
41172
  * Unsplash and Pixabay return results in different object formats.
@@ -41181,8 +41593,8 @@ function getResults(provider, key, data, is_search) {
41181
  if (!data) {
41182
  return [];
41183
  }
41184
-
41185
  var results = [];
 
41186
  switch (provider) {
41187
  case "unsplash":
41188
  if (is_search) {
@@ -41192,7 +41604,7 @@ function getResults(provider, key, data, is_search) {
41192
  }
41193
  break;
41194
 
41195
- case "pixabay":
41196
  results = data[key] || [];
41197
  break;
41198
  }
@@ -41216,6 +41628,7 @@ function getResultById(provider, key, data) {
41216
  var result = [];
41217
  switch (provider) {
41218
  case "unsplash":
 
41219
  result = data || [];
41220
  break;
41221
 
@@ -41227,6 +41640,28 @@ function getResultById(provider, key, data) {
41227
  return result;
41228
  }
41229
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41230
  /***/ }),
41231
 
41232
  /***/ "./src/js/functions/searchByID.js":
@@ -41244,23 +41679,32 @@ Object.defineProperty(exports, "__esModule", {
41244
  });
41245
  exports.default = searchByID;
41246
  /**
41247
- * Get the API URL for searches by ID.
 
41248
  *
41249
- * @param {string} provider The current service provider.
41250
- * @param {string} id The photo id.
41251
- * @param {string} attribute The base api URL.
41252
- * @param {string} app_id The provider API key.
41253
- * @return {string} The API URL.
41254
  */
41255
- function searchByID(provider, id, base_url, api_query_var, app_id) {
 
 
 
 
 
 
41256
  var url = "";
41257
  switch (provider) {
41258
  case "unsplash":
41259
- url = base_url + "/" + id + api_query_var + app_id;
41260
  break;
41261
 
41262
  case "pixabay":
41263
- url = "" + base_url + api_query_var + app_id + "&id=" + id;
 
 
 
 
41264
  break;
41265
  }
41266
 
@@ -41269,6 +41713,56 @@ function searchByID(provider, id, base_url, api_query_var, app_id) {
41269
 
41270
  /***/ }),
41271
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41272
  /***/ "./src/js/functions/updatePluginSetting.js":
41273
  /*!*************************************************!*\
41274
  !*** ./src/js/functions/updatePluginSetting.js ***!
@@ -41316,7 +41810,6 @@ function updatePluginSetting(setting, value) {
41316
 
41317
  _axios2.default.post(api, JSON.stringify(data), config).then(function (res) {
41318
  var response = res.data;
41319
- console.log(response);
41320
  }).catch(function (error) {
41321
  console.log(error);
41322
  });
2182
  /*!*****************************************!*\
2183
  !*** ./node_modules/axios/package.json ***!
2184
  \*****************************************/
2185
+ /*! exports provided: _args, _from, _id, _inBundle, _integrity, _location, _phantomChildren, _requested, _requiredBy, _resolved, _spec, _where, author, browser, bugs, bundlesize, dependencies, description, devDependencies, homepage, jsdelivr, keywords, license, main, name, repository, scripts, typings, unpkg, version, default */
2186
  /***/ (function(module) {
2187
 
2188
+ module.exports = JSON.parse("{\"_args\":[[\"axios@0.21.4\",\"/Users/darrencooney/Local Sites/instant-images/app/public/wp-content/plugins/instant-images\"]],\"_from\":\"axios@0.21.4\",\"_id\":\"axios@0.21.4\",\"_inBundle\":false,\"_integrity\":\"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==\",\"_location\":\"/axios\",\"_phantomChildren\":{},\"_requested\":{\"type\":\"version\",\"registry\":true,\"raw\":\"axios@0.21.4\",\"name\":\"axios\",\"escapedName\":\"axios\",\"rawSpec\":\"0.21.4\",\"saveSpec\":null,\"fetchSpec\":\"0.21.4\"},\"_requiredBy\":[\"/\"],\"_resolved\":\"https://registry.npmjs.org/axios/-/axios-0.21.4.tgz\",\"_spec\":\"0.21.4\",\"_where\":\"/Users/darrencooney/Local Sites/instant-images/app/public/wp-content/plugins/instant-images\",\"author\":{\"name\":\"Matt Zabriskie\"},\"browser\":{\"./lib/adapters/http.js\":\"./lib/adapters/xhr.js\"},\"bugs\":{\"url\":\"https://github.com/axios/axios/issues\"},\"bundlesize\":[{\"path\":\"./dist/axios.min.js\",\"threshold\":\"5kB\"}],\"dependencies\":{\"follow-redirects\":\"^1.14.0\"},\"description\":\"Promise based HTTP client for the browser and node.js\",\"devDependencies\":{\"coveralls\":\"^3.0.0\",\"es6-promise\":\"^4.2.4\",\"grunt\":\"^1.3.0\",\"grunt-banner\":\"^0.6.0\",\"grunt-cli\":\"^1.2.0\",\"grunt-contrib-clean\":\"^1.1.0\",\"grunt-contrib-watch\":\"^1.0.0\",\"grunt-eslint\":\"^23.0.0\",\"grunt-karma\":\"^4.0.0\",\"grunt-mocha-test\":\"^0.13.3\",\"grunt-ts\":\"^6.0.0-beta.19\",\"grunt-webpack\":\"^4.0.2\",\"istanbul-instrumenter-loader\":\"^1.0.0\",\"jasmine-core\":\"^2.4.1\",\"karma\":\"^6.3.2\",\"karma-chrome-launcher\":\"^3.1.0\",\"karma-firefox-launcher\":\"^2.1.0\",\"karma-jasmine\":\"^1.1.1\",\"karma-jasmine-ajax\":\"^0.1.13\",\"karma-safari-launcher\":\"^1.0.0\",\"karma-sauce-launcher\":\"^4.3.6\",\"karma-sinon\":\"^1.0.5\",\"karma-sourcemap-loader\":\"^0.3.8\",\"karma-webpack\":\"^4.0.2\",\"load-grunt-tasks\":\"^3.5.2\",\"minimist\":\"^1.2.0\",\"mocha\":\"^8.2.1\",\"sinon\":\"^4.5.0\",\"terser-webpack-plugin\":\"^4.2.3\",\"typescript\":\"^4.0.5\",\"url-search-params\":\"^0.10.0\",\"webpack\":\"^4.44.2\",\"webpack-dev-server\":\"^3.11.0\"},\"homepage\":\"https://axios-http.com\",\"jsdelivr\":\"dist/axios.min.js\",\"keywords\":[\"xhr\",\"http\",\"ajax\",\"promise\",\"node\"],\"license\":\"MIT\",\"main\":\"index.js\",\"name\":\"axios\",\"repository\":{\"type\":\"git\",\"url\":\"git+https://github.com/axios/axios.git\"},\"scripts\":{\"build\":\"NODE_ENV=production grunt build\",\"coveralls\":\"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js\",\"examples\":\"node ./examples/server.js\",\"fix\":\"eslint --fix lib/**/*.js\",\"postversion\":\"git push && git push --tags\",\"preversion\":\"npm test\",\"start\":\"node ./sandbox/server.js\",\"test\":\"grunt test\",\"version\":\"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json\"},\"typings\":\"./index.d.ts\",\"unpkg\":\"dist/axios.min.js\",\"version\":\"0.21.4\"}");
2189
 
2190
  /***/ }),
2191
 
37715
 
37716
  var _consoleStatus2 = _interopRequireDefault(_consoleStatus);
37717
 
37718
+ var _getHeaders = __webpack_require__(/*! ../functions/getHeaders */ "./src/js/functions/getHeaders.js");
37719
+
37720
+ var _getHeaders2 = _interopRequireDefault(_getHeaders);
37721
+
37722
  var _updatePluginSetting = __webpack_require__(/*! ../functions/updatePluginSetting */ "./src/js/functions/updatePluginSetting.js");
37723
 
37724
  var _updatePluginSetting2 = _interopRequireDefault(_updatePluginSetting);
37764
  key: "handleSubmit",
37765
  value: function () {
37766
  var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(e) {
37767
+ var self, key, settingField, headers, response, ok, status;
37768
  return regeneratorRuntime.wrap(function _callee$(_context) {
37769
  while (1) {
37770
  switch (_context.prev = _context.next) {
37784
  // Set localized variable.
37785
  instant_img_localize[this.provider + "_app_id"] = key;
37786
 
 
 
 
 
 
 
 
 
 
 
 
 
37787
  // Update the matching provider API key in the Instant Images settings.
 
37788
  settingField = document.querySelector("input[name=\"instant_img_settings[" + this.provider + "_api]\"]");
37789
 
37790
  if (settingField) {
37794
  // Update plugin settings via REST API.
37795
  (0, _updatePluginSetting2.default)(this.provider + "_api", key);
37796
 
37797
+ // Get authentication headers.
37798
+ headers = (0, _getHeaders2.default)(this.provider);
37799
+ _context.prev = 10;
37800
+ _context.next = 13;
37801
+ return fetch((0, _buildTestURL2.default)(self.provider), { headers: headers });
37802
+
37803
+ case 13:
37804
+ response = _context.sent;
37805
+
37806
+
37807
+ // Handle response.
37808
+ ok = response.ok;
37809
+ status = response.status;
37810
+
37811
  // Handle response actions.
37812
+
37813
  if (ok) {
37814
  // Success.
37815
+ self.setState({
37816
  status: "valid",
37817
  response: instant_img_localize.api_success_msg
37818
  });
37824
  this.setState({ status: "invalid" });
37825
 
37826
  // Render console warning.
37827
+ (0, _consoleStatus2.default)(self.provider, status);
37828
 
37829
  // Set response state.
37830
  if (status === 400 || status === 401) {
37831
  // Unsplash/Pixabay incorrect API key.
37832
+ self.setState({
37833
+ response: instant_img_localize.api_invalid_msg
37834
+ });
37835
  }
37836
  if (status === 429) {
37837
  // Pixabay - too many requests.
37838
+ self.setState({
37839
+ response: instant_img_localize.api_ratelimit_msg
37840
+ });
37841
  }
37842
  }
37843
+ _context.next = 24;
37844
+ break;
37845
 
37846
+ case 19:
37847
+ _context.prev = 19;
37848
+ _context.t0 = _context["catch"](10);
37849
+
37850
+ // Catch all other errors.
37851
+
37852
+ // Error/Invalid.
37853
+ this.setState({ status: "invalid" });
37854
+
37855
+ // Render console warning.
37856
+ (0, _consoleStatus2.default)(self.provider, 500);
37857
+
37858
+ self.setState({
37859
+ response: instant_img_localize.api_invalid_msg
37860
+ });
37861
+
37862
+ case 24:
37863
  case "end":
37864
  return _context.stop();
37865
  }
37866
  }
37867
+ }, _callee, this, [[10, 19]]);
37868
  }));
37869
 
37870
  function handleSubmit(_x) {
38566
  "div",
38567
  { className: "no-results" },
38568
  _react2.default.createElement(
38569
+ "div",
 
 
 
 
 
 
38570
  null,
38571
+ _react2.default.createElement(
38572
+ "h3",
38573
+ null,
38574
+ instant_img_localize.no_results,
38575
+ " "
38576
+ ),
38577
+ _react2.default.createElement(
38578
+ "p",
38579
+ null,
38580
+ instant_img_localize.no_results_desc,
38581
+ " "
38582
+ )
38583
  )
38584
  );
38585
  }
38620
 
38621
  var _API2 = _interopRequireDefault(_API);
38622
 
38623
+ var _capitalizeFirstLetter = __webpack_require__(/*! ../functions/capitalizeFirstLetter */ "./src/js/functions/capitalizeFirstLetter.js");
38624
+
38625
+ var _capitalizeFirstLetter2 = _interopRequireDefault(_capitalizeFirstLetter);
38626
+
38627
  var _generateAttribution = __webpack_require__(/*! ../functions/generateAttribution.js */ "./src/js/functions/generateAttribution.js.js");
38628
 
38629
  var _generateAttribution2 = _interopRequireDefault(_generateAttribution);
38632
 
38633
  var _getProp2 = _interopRequireDefault(_getProp);
38634
 
38635
+ var _unsplashDownload = __webpack_require__(/*! ../functions/unsplashDownload */ "./src/js/functions/unsplashDownload.js");
38636
+
38637
+ var _unsplashDownload2 = _interopRequireDefault(_unsplashDownload);
38638
+
38639
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
38640
 
38641
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
38665
  _this.img_title = instant_img_localize.photo_by + " " + _this.author;
38666
  _this.filename = result.id;
38667
  _this.title = _this.img_title;
38668
+ _this.alt = (0, _getProp2.default)(_this.provider, result, "alt");
38669
  _this.alt = _this.alt === null ? "" : _this.alt;
38670
  _this.caption = "";
38671
 
38759
 
38760
  // Data Params
38761
  var data = {
38762
+ provider: this.provider,
38763
  id: target.getAttribute("data-id"),
38764
  image_url: target.getAttribute("data-url"),
38765
  filename: target.getAttribute("data-id") + ".jpg",
38796
  // Success/Upload Complete
38797
  self.uploadComplete(target, photo, msg, edit_url, attachment.id);
38798
 
38799
+ // Trigger a download at Unsplash.
38800
  if (self.provider === "unsplash") {
38801
+ (0, _unsplashDownload2.default)(self, id);
38802
  }
38803
 
38804
  // Set Featured Image [Gutenberg Sidebar]
38834
  });
38835
  }
38836
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38837
  /**
38838
  * Function used to trigger a download and then set as featured image
38839
  *
38899
  target.classList.add("success");
38900
  this.inProgress = false;
38901
 
38902
+ // Remove uploaded and success states after 5 seconds.
38903
  setTimeout(function () {
38904
  photo.classList.remove("uploaded");
38905
  target.classList.remove("success");
38906
+ }, 5000);
38907
 
38908
  // Gutenberg Sidebar
38909
  if (this.is_block_editor) {
39222
  _react2.default.createElement(
39223
  "div",
39224
  { className: "user-wrap" },
39225
+ this.user_photo && this.user_photo.length > 0 && _react2.default.createElement("img", {
39226
+ className: "user-wrap--photo",
39227
+ src: this.user_photo
39228
+ }),
39229
  this.provider === "unsplash" ? this.user : this.name
39230
  )
39231
  ),
39329
  _react2.default.createElement(
39330
  "div",
39331
  { className: "options" },
39332
+ this.likes ? _react2.default.createElement(
39333
  "span",
39334
  {
39335
  className: "likes tooltip--above",
39347
  }),
39348
  " ",
39349
  this.likes
39350
+ ) : null,
39351
  _react2.default.createElement(
39352
  "a",
39353
  {
39354
  className: "tooltip--above",
39355
  href: this.link,
39356
+ "data-title": instant_img_localize.open_external + " " + (0, _capitalizeFirstLetter2.default)(this.provider),
39357
  onMouseEnter: function onMouseEnter(e) {
39358
  return _this2.showTooltip(e);
39359
  },
39369
  _react2.default.createElement(
39370
  "span",
39371
  { className: "offscreen" },
39372
+ instant_img_localize.open_external + " " + (0, _capitalizeFirstLetter2.default)(this.provider)
39373
  )
39374
  )
39375
  )
39554
 
39555
  var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
39556
 
39557
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
39558
+
39559
  var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
39560
 
39561
  var _masonryLayout = __webpack_require__(/*! masonry-layout */ "./node_modules/masonry-layout/masonry.js");
39578
 
39579
  var _buildTestURL2 = _interopRequireDefault(_buildTestURL);
39580
 
39581
+ var _buildURL = __webpack_require__(/*! ../functions/buildURL */ "./src/js/functions/buildURL.js");
39582
+
39583
+ var _buildURL2 = _interopRequireDefault(_buildURL);
39584
+
39585
+ var _getHeaders = __webpack_require__(/*! ../functions/getHeaders */ "./src/js/functions/getHeaders.js");
39586
 
39587
+ var _getHeaders2 = _interopRequireDefault(_getHeaders);
39588
 
39589
+ var _getQueryParams = __webpack_require__(/*! ../functions/getQueryParams */ "./src/js/functions/getQueryParams.js");
39590
 
39591
+ var _getQueryParams2 = _interopRequireDefault(_getQueryParams);
39592
 
39593
  var _getResults = __webpack_require__(/*! ../functions/getResults */ "./src/js/functions/getResults.js");
39594
 
39636
 
39637
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
39638
 
39639
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
39640
+
39641
  function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
39642
 
39643
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
39657
  // Get current provider settings.
39658
  var _this = _possibleConstructorReturn(this, (PhotoList.__proto__ || Object.getPrototypeOf(PhotoList)).call(this, props));
39659
 
39660
+ _this.providers = ["Unsplash", "Pixabay", "Pexels"];
39661
  _this.provider = _this.props.provider; // Unsplash, Pixabay, etc.
39662
  _this.api_provider = _API2.default[_this.provider]; // The API settings for the provider.
39663
  _this.arr_key = _this.api_provider.arr_key;
39664
+ _this.per_page = _API2.default.defaults.per_page;
39665
 
39666
  // API Vars.
39667
  _this.api_key = instant_img_localize[_this.provider + "_app_id"];
39668
+ _this.photo_api = _this.api_provider.photo_api;
39669
+ _this.search_api = _this.api_provider.search_api;
39670
 
39671
  // Results state.
39672
  _this.results = (0, _getResults2.default)(_this.provider, _this.arr_key, _this.props.results);
39680
 
39681
  _this.filters = {};
39682
  _this.search_filters = {};
39683
+ _this.show_search_filters = true;
39684
 
39685
  _this.orderby = _this.props.orderby; // Orderby
39686
  _this.page = _this.props.page; // Page
39725
  }
39726
 
39727
  /**
39728
+ * Trigger Search.
39729
  *
39730
+ * @param {Event} event The dispatched submit event.
39731
+ * @since 3.0
39732
  */
39733
 
39734
 
39735
  _createClass(PhotoList, [{
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39736
  key: "search",
39737
  value: function search(event) {
39738
  event.preventDefault();
 
39739
  var input = this.photoSearch.current;
39740
  var term = input.value;
39741
 
39742
  if (term.length > 2) {
39743
  input.classList.add("searching");
 
39744
  this.search_term = term;
39745
  this.is_search = true;
39746
  this.doSearch(this.search_term);
39749
  }
39750
  }
39751
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39752
  /**
39753
  * Reset search results, settings and results view.
39754
  *
39784
  }
39785
  }
39786
 
39787
+ /**
39788
+ * Perform a photo search.
39789
+ *
39790
+ * @param {string} term The search term.
39791
+ * @since 3.0
39792
+ */
39793
+
39794
+ }, {
39795
+ key: "doSearch",
39796
+ value: function () {
39797
+ var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(term) {
39798
+ var self, search_type, input, photoTarget, search_url, search_query, search_params, params, url, headers, response, ok, data, results, photoArray, result;
39799
+ return regeneratorRuntime.wrap(function _callee$(_context) {
39800
+ while (1) {
39801
+ switch (_context.prev = _context.next) {
39802
+ case 0:
39803
+ self = this;
39804
+ search_type = term.substring(0, 3) === "id:" ? "id" : "term";
39805
+ input = this.photoSearch.current;
39806
+ photoTarget = this.photoTarget.current;
39807
+
39808
+ // Set loading variables and options.
39809
+
39810
+ photoTarget.classList.add("loading");
39811
+ this.isLoading = true;
39812
+ this.page = 1; // Reset current page num.
39813
+ this.toggleFilters(); // Disable filters.
39814
+
39815
+ // Build API URL.
39816
+ search_url = this.search_api;
39817
+ search_query = {};
39818
+
39819
+
39820
+ if (search_type === "id") {
39821
+ search_url = (0, _searchByID2.default)(this, term);
39822
+ } else {
39823
+ search_query = _defineProperty({}, this.api_provider.search_var, this.search_term);
39824
+ }
39825
+
39826
+ // Build URL.
39827
+ search_params = _extends({}, search_query, this.search_filters, { page: this.page });
39828
+ params = (0, _getQueryParams2.default)(this.provider, search_params);
39829
+ url = (0, _buildURL2.default)(search_url, params);
39830
+
39831
+ // Create fetch request.
39832
+
39833
+ headers = (0, _getHeaders2.default)(this.provider);
39834
+ _context.next = 17;
39835
+ return fetch(url, { headers: headers });
39836
+
39837
+ case 17:
39838
+ response = _context.sent;
39839
+ ok = response.ok;
39840
+
39841
+ if (!ok) {
39842
+ _context.next = 43;
39843
+ break;
39844
+ }
39845
+
39846
+ _context.next = 22;
39847
+ return response.json();
39848
+
39849
+ case 22:
39850
+ data = _context.sent;
39851
+ _context.t0 = search_type;
39852
+ _context.next = _context.t0 === "term" ? 26 : _context.t0 === "id" ? 33 : 40;
39853
+ break;
39854
+
39855
+ case 26:
39856
+ results = (0, _getResults2.default)(this.provider, this.arr_key, data, true);
39857
+
39858
+
39859
+ this.total_results = (0, _getResults.getSearchTotalByProvider)(this.provider, data);
39860
+
39861
+ // Check for returned data.
39862
+ this.checkTotalResults(results.length);
39863
+
39864
+ // Update Props.
39865
+ this.show_search_filters = this.total_results > 0 ? true : false;
39866
+ this.results = results;
39867
+ this.setState({
39868
+ results: this.results,
39869
+ search_filters: _filters2.default[this.provider].search
39870
+ });
39871
+
39872
+ return _context.abrupt("break", 40);
39873
+
39874
+ case 33:
39875
+ // Convert return data to array.
39876
+ photoArray = [];
39877
+
39878
+ // Get results via ID.
39879
+
39880
+ result = (0, _getResults.getResultById)(this.provider, this.arr_key, data, true);
39881
+
39882
+ // Data comes back differently in a search by ID.
39883
+
39884
+ if (data.errors) {
39885
+ // If error was returned (Unsplash Only).
39886
+ this.total_results = 0;
39887
+ this.checkTotalResults("0");
39888
+ } else {
39889
+ // No errors, display results
39890
+ photoArray.push(result);
39891
+ this.total_results = 1;
39892
+ this.checkTotalResults("1");
39893
+ this.isDone = true;
39894
+ }
39895
+
39896
+ this.show_search_filters = false;
39897
+ this.results = photoArray;
39898
+ this.setState({ results: self.results });
39899
+ return _context.abrupt("break", 40);
39900
+
39901
+ case 40:
39902
+
39903
+ // Delay for effect.
39904
+ setTimeout(function () {
39905
+ input.classList.remove("searching");
39906
+ photoTarget.classList.remove("loading");
39907
+ self.isLoading = false;
39908
+ }, this.delay);
39909
+ _context.next = 51;
39910
+ break;
39911
+
39912
+ case 43:
39913
+ // Error handling.
39914
+
39915
+ // Reset all search parameters.
39916
+ this.isDone = true;
39917
+ this.isLoading = false;
39918
+ this.show_search_filters = false;
39919
+ this.total_results = 0;
39920
+ input.classList.remove("searching");
39921
+ photoTarget.classList.remove("loading");
39922
+
39923
+ // Update Props.
39924
+ this.results = [];
39925
+ this.setState({ results: this.results });
39926
+
39927
+ case 51:
39928
+ case "end":
39929
+ return _context.stop();
39930
+ }
39931
+ }
39932
+ }, _callee, this);
39933
+ }));
39934
+
39935
+ function doSearch(_x) {
39936
+ return _ref.apply(this, arguments);
39937
+ }
39938
+
39939
+ return doSearch;
39940
+ }()
39941
+
39942
  /**
39943
  * Get the initial set of photos for the current view (New/Popular/Filters/etc...).
39944
  *
39950
 
39951
  }, {
39952
  key: "getPhotos",
39953
+ value: function () {
39954
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(view) {
39955
+ var reset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
39956
+ var switcher = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
39957
+ var self, params, url, headers, response, ok, status, statusText, data, results;
39958
+ return regeneratorRuntime.wrap(function _callee2$(_context2) {
39959
+ while (1) {
39960
+ switch (_context2.prev = _context2.next) {
39961
+ case 0:
39962
+ if (!(this.isLoading && !reset)) {
39963
+ _context2.next = 2;
39964
+ break;
39965
+ }
39966
 
39967
+ return _context2.abrupt("return");
39968
 
39969
+ case 2:
39970
+ self = this;
 
39971
 
39972
+ this.photoTarget.current.classList.add("loading");
39973
+ this.isLoading = true;
39974
+ this.page = 1;
39975
+ this.orderby = view;
39976
+ this.results = [];
39977
+ this.clearSearch();
39978
 
39979
+ // Build URL.
39980
+ params = (0, _getQueryParams2.default)(this.provider, this.filters);
39981
+ url = (0, _buildURL2.default)(this.photo_api, params);
39982
 
39983
+ // Create fetch request.
 
39984
 
39985
+ headers = (0, _getHeaders2.default)(this.provider);
39986
+ _context2.next = 14;
39987
+ return fetch(url, { headers: headers });
 
39988
 
39989
+ case 14:
39990
+ response = _context2.sent;
39991
+ ok = response.ok, status = response.status, statusText = response.statusText;
39992
 
39993
+ // Status OK.
 
39994
 
39995
+ if (!ok) {
39996
+ _context2.next = 26;
39997
+ break;
39998
+ }
 
 
 
 
 
 
 
39999
 
40000
+ _context2.next = 19;
40001
+ return response.json();
40002
+
40003
+ case 19:
40004
+ data = _context2.sent;
40005
+ results = (0, _getResults2.default)(this.provider, this.arr_key, data);
40006
+
40007
+ this.checkTotalResults(results.length); // Check for returned data.
40008
+ this.results = results; // Update Props.
40009
+
40010
+ // Set results state.
40011
+ if (!switcher) {
40012
+ this.setState({
40013
+ results: results
40014
+ });
40015
+ } else {
40016
+ this.setState({
40017
+ results: results,
40018
+ filters: _filters2.default[this.provider].filters
40019
+ });
40020
+ }
40021
+ _context2.next = 29;
40022
+ break;
40023
+
40024
+ case 26:
40025
+ console.warn("Error: " + status + " - " + statusText);
40026
+ this.photoTarget.current.classList.remove("loading");
40027
+ this.isLoading = false;
40028
+
40029
+ case 29:
40030
+
40031
+ // Delay loading animatons for effect.
40032
+ setTimeout(function () {
40033
+ self.photoTarget.current.classList.remove("loading");
40034
+ self.isLoading = false;
40035
+ }, self.delay);
40036
+
40037
+ case 30:
40038
+ case "end":
40039
+ return _context2.stop();
40040
+ }
40041
+ }
40042
+ }, _callee2, this);
40043
+ }));
40044
+
40045
+ function getPhotos(_x4) {
40046
+ return _ref2.apply(this, arguments);
40047
+ }
40048
+
40049
+ return getPhotos;
40050
+ }()
40051
 
40052
  /**
40053
  * Load next set of photos in infinite scroll style.
40057
 
40058
  }, {
40059
  key: "loadMorePhotos",
40060
+ value: function () {
40061
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
40062
+ var self, search_query, loadmore_url, filters, loadmore_params, params, url, headers, response, ok, status, statusText, data, results;
40063
+ return regeneratorRuntime.wrap(function _callee3$(_context3) {
40064
+ while (1) {
40065
+ switch (_context3.prev = _context3.next) {
40066
+ case 0:
40067
+ self = this;
40068
 
40069
+ this.container.classList.add("loading");
40070
+ this.isLoading = true;
40071
+ this.page = parseInt(this.page) + 1;
40072
 
40073
+ // Get search query.
40074
+ search_query = {};
 
 
 
 
40075
 
40076
+ if (this.is_search) {
40077
+ search_query = _defineProperty({}, this.api_provider.search_var, this.search_term);
40078
+ }
40079
 
40080
+ // Build URL.
40081
+ loadmore_url = this.is_search ? this.search_api : this.photo_api;
40082
+ filters = this.is_search ? this.search_filters : this.filters;
40083
+ loadmore_params = _extends({}, filters, search_query, { page: this.page });
40084
+ params = (0, _getQueryParams2.default)(this.provider, loadmore_params);
40085
+ url = (0, _buildURL2.default)(loadmore_url, params);
40086
 
40087
+ // Create fetch request.
 
 
 
40088
 
40089
+ headers = (0, _getHeaders2.default)(this.provider);
40090
+ _context3.next = 14;
40091
+ return fetch(url, { headers: headers });
40092
+
40093
+ case 14:
40094
+ response = _context3.sent;
40095
+ ok = response.ok, status = response.status, statusText = response.statusText;
40096
 
40097
+ // Status OK.
 
40098
 
40099
+ if (!ok) {
40100
+ _context3.next = 27;
40101
+ break;
40102
+ }
40103
 
40104
+ _context3.next = 19;
40105
+ return response.json();
40106
+
40107
+ case 19:
40108
+ data = _context3.sent;
40109
+ results = (0, _getResults2.default)(this.provider, this.arr_key, data, this.is_search);
40110
+
40111
+ // Unsplash search results are returned in different JSON format
40112
+
40113
+ if (this.is_search && this.provider === "unsplash") {
40114
+ results = data.results;
40115
+ }
40116
+
40117
+ // Loop result & push items into array.
40118
+ results && results.map(function (data) {
40119
+ self.results.push(data);
40120
+ });
40121
+
40122
+ this.checkTotalResults(data.length); // Check for returned data.
40123
+ this.setState({ results: this.results }); // Update Props.
40124
+ _context3.next = 29;
40125
+ break;
40126
+
40127
+ case 27:
40128
+ console.warn("Error: " + status + " - " + statusText);
40129
+ self.isLoading = false;
40130
+
40131
+ case 29:
40132
+ case "end":
40133
+ return _context3.stop();
40134
+ }
40135
+ }
40136
+ }, _callee3, this);
40137
+ }));
40138
+
40139
+ function loadMorePhotos() {
40140
+ return _ref3.apply(this, arguments);
40141
+ }
40142
+
40143
+ return loadMorePhotos;
40144
+ }()
40145
 
40146
  /**
40147
  * Filter the photo listing.
40153
  }, {
40154
  key: "filterPhotos",
40155
  value: function filterPhotos(filter, value) {
40156
+ if (this.filters[filter] && value === "#" || value === "" || value === "all") {
40157
  delete this.filters[filter];
40158
  } else {
40159
  this.filters[filter] = value;
40171
  }, {
40172
  key: "filterSearch",
40173
  value: function filterSearch(filter, value) {
40174
+ if (this.search_filters[filter] && value === "#" || value === "" || value === "all") {
40175
  delete this.search_filters[filter];
40176
  } else {
40177
  this.search_filters[filter] = value;
40249
  }, {
40250
  key: "switchProvider",
40251
  value: function () {
40252
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(e) {
40253
+ var target, provider, headers, self, response, ok, status;
40254
+ return regeneratorRuntime.wrap(function _callee4$(_context4) {
40255
  while (1) {
40256
+ switch (_context4.prev = _context4.next) {
40257
  case 0:
40258
  target = e.currentTarget;
40259
  provider = target.dataset.provider;
40260
 
40261
  if (!(provider === this.provider)) {
40262
+ _context4.next = 4;
40263
  break;
40264
  }
40265
 
40266
+ return _context4.abrupt("return", false);
40267
 
40268
  case 4:
40269
  if (!_API2.default[provider].requires_key) {
40270
+ _context4.next = 24;
40271
  break;
40272
  }
40273
 
40274
+ // Get authentication headers.
40275
+ headers = (0, _getHeaders2.default)(provider);
40276
+ self = this;
40277
+ _context4.prev = 7;
40278
+ _context4.next = 10;
40279
+ return fetch((0, _buildTestURL2.default)(provider), { headers: headers });
40280
 
40281
+ case 10:
40282
+ response = _context4.sent;
40283
  ok = response.ok;
40284
  status = response.status;
40285
 
40286
+ if (!(!ok || status === 400 || status === 401 || status === 500 || status === 404)) {
40287
+ _context4.next = 17;
40288
  break;
40289
  }
40290
 
40291
+ // Catch forbidden and 404s.
40292
+ self.setState({ api_lightbox: provider }); // Show API Lightbox.
40293
  document.body.classList.add("overflow-hidden");
40294
+ return _context4.abrupt("return");
40295
 
40296
+ case 17:
40297
+ _context4.next = 24;
40298
+ break;
40299
 
40300
+ case 19:
40301
+ _context4.prev = 19;
40302
+ _context4.t0 = _context4["catch"](7);
40303
 
40304
+ // Catch all other errors.
40305
+ self.setState({ api_lightbox: provider }); // Show API Lightbox.
40306
+ document.body.classList.add("overflow-hidden");
40307
+ return _context4.abrupt("return");
40308
+
40309
+ case 24:
40310
 
40311
  // Remove active from buttons.
40312
  this.providerNav.current.querySelectorAll("button").forEach(function (button) {
40316
  // Select active button.
40317
  target.classList.add("active");
40318
 
40319
+ // Update API provider params.
40320
+ this.provider = provider;
40321
+ this.api_provider = _API2.default[this.provider];
40322
  this.arr_key = this.api_provider.arr_key;
40323
  this.api_key = instant_img_localize[this.provider + "_app_id"];
40324
+ this.photo_api = this.api_provider.photo_api;
40325
+ this.search_api = this.api_provider.search_api;
40326
 
40327
+ // Clear all filters.
40328
+ this.filters = {};
40329
+ this.search_filters = {};
40330
 
40331
+ // Finally, fetch the photos.
40332
  this.view = "latest";
40333
  this.getPhotos(this.view, true, true);
40334
 
40335
+ case 36:
40336
  case "end":
40337
+ return _context4.stop();
40338
  }
40339
  }
40340
+ }, _callee4, this, [[7, 19]]);
40341
  }));
40342
 
40343
+ function switchProvider(_x5) {
40344
+ return _ref4.apply(this, arguments);
40345
  }
40346
 
40347
  return switchProvider;
40382
  value: function onScroll() {
40383
  var wHeight = window.innerHeight;
40384
  var scrollTop = window.pageYOffset;
40385
+ var scrollH = document.body.scrollHeight - 200;
40386
  if (wHeight + scrollTop >= scrollH && !this.isLoading && !this.isDone) {
40387
  this.loadMorePhotos();
40388
  }
40398
  }, {
40399
  key: "checkTotalResults",
40400
  value: function checkTotalResults(num) {
40401
+ this.isDone = parseInt(num) === 0 ? true : false;
40402
  }
40403
 
40404
  /**
40471
  tooltip.classList.remove("over");
40472
  }
40473
 
40474
+ /**
40475
+ * Test access to the REST API.
40476
+ *
40477
+ * @since 3.2
40478
+ */
40479
+
40480
+ }, {
40481
+ key: "test",
40482
+ value: function test() {
40483
+ var self = this;
40484
+ var testURL = instant_img_localize.root + "instant-images/test/"; // REST Route
40485
+ var restAPITest = new XMLHttpRequest();
40486
+ restAPITest.open("POST", testURL, true);
40487
+ restAPITest.setRequestHeader("X-WP-Nonce", instant_img_localize.nonce);
40488
+ restAPITest.setRequestHeader("Content-Type", "application/json");
40489
+ restAPITest.send();
40490
+ restAPITest.onload = function () {
40491
+ if (restAPITest.status >= 200 && restAPITest.status < 400) {
40492
+ var response = JSON.parse(restAPITest.response);
40493
+ var success = response.success;
40494
+ if (!success) {
40495
+ self.setState({ restapi_error: true });
40496
+ }
40497
+ } else {
40498
+ // Error
40499
+ self.setState({ restapi_error: true });
40500
+ }
40501
+ };
40502
+ restAPITest.onerror = function (errorMsg) {
40503
+ console.log(errorMsg);
40504
+ self.setState({ restapi_error: true });
40505
+ };
40506
+ }
40507
+
40508
  // Component Updated
40509
 
40510
  }, {
40593
  Object.entries(this.state.filters).length && _react2.default.createElement(
40594
  "div",
40595
  { className: "control-nav--filters" },
40596
+ Object.entries(this.state.filters).map(function (_ref5, i) {
40597
+ var _ref6 = _slicedToArray(_ref5, 2),
40598
+ key = _ref6[0],
40599
+ filter = _ref6[1];
40600
 
40601
  return _react2.default.createElement(_Filter2.default, {
40602
+ key: key + "-" + _this4.provider + "-" + i,
40603
  filterKey: key,
40604
  provider: _this4.provider,
40605
  data: filter,
40676
  instant_img_localize.clear_search
40677
  )
40678
  ),
40679
+ this.show_search_filters && Object.entries(this.state.search_filters).length && _react2.default.createElement(
40680
  "div",
40681
  { className: "control-nav--filters-wrap" },
40682
  _react2.default.createElement(
40683
  "div",
40684
  { className: "control-nav--filters" },
40685
+ Object.entries(this.state.search_filters).map(function (_ref7, i) {
40686
+ var _ref8 = _slicedToArray(_ref7, 2),
40687
+ key = _ref8[0],
40688
+ filter = _ref8[1];
40689
 
40690
  return _react2.default.createElement(_Filter2.default, {
40691
  key: key + "-" + i,
40878
  defaults: {
40879
  provider: "unsplash",
40880
  order: "latest",
40881
+ per_page: "20"
40882
  },
40883
  unsplash: {
40884
  requires_key: false,
40885
+ auth_headers: false,
40886
  new: false,
40887
+ api_var: "client_id",
40888
+ api_query_var: "client_id=",
40889
+ collections_api: "https://api.unsplash.com/collections/",
40890
+ photo_api: "https://api.unsplash.com/photos/",
40891
+ search_api: "https://api.unsplash.com/search/photos/",
40892
+ search_var: "query",
40893
+ arr_key: "results"
 
40894
  },
40895
  pixabay: {
40896
  requires_key: true,
40897
+ auth_headers: false,
40898
+ new: true,
40899
+ api_var: "key",
40900
+ api_query_var: "key=",
40901
+ photo_api: "https://pixabay.com/api/",
40902
+ search_api: "https://pixabay.com/api/",
40903
+ search_var: "q",
40904
+ arr_key: "hits"
40905
+ },
40906
+ pexels: {
40907
+ requires_key: true,
40908
+ auth_headers: true,
40909
+ new: true,
40910
+ api_var: "",
40911
+ api_query_var: "",
40912
+ photo_api: "https://api.pexels.com/v1/curated/",
40913
+ search_api: "https://api.pexels.com/v1/search/",
40914
+ search_var: "query",
40915
+ arr_key: "photos"
40916
  }
40917
  };
40918
 
40929
 
40930
 
40931
  module.exports = {
40932
+ pexels: {
40933
+ filters: {
40934
+ order_by: {
40935
+ label: "orderby",
40936
+ default: "curated",
40937
+ filters: ["curated"]
40938
+ }
40939
+ },
40940
+ search: {
40941
+ orientation: {
40942
+ label: "orientation",
40943
+ default: "all",
40944
+ filters: ["all", "landscape", "portrait", "square"]
40945
+ },
40946
+ color: {
40947
+ label: "colors",
40948
+ default: "all",
40949
+ filters: ["all", "red", "orange", "yellow", "green", "turquoise", "blue", "violet", "pink", "brown", "black", "gray", "white"]
40950
+ },
40951
+ size: {
40952
+ label: "size",
40953
+ default: "all",
40954
+ filters: ["all", "large", "medium", "small"]
40955
+ }
40956
+ }
40957
+ },
40958
  unsplash: {
40959
  filters: {
40960
  order_by: {
41037
 
41038
 
41039
  Object.defineProperty(exports, "__esModule", {
41040
+ value: true
41041
  });
41042
+
41043
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
41044
+
41045
  exports.default = buildTestURL;
41046
 
41047
  var _API = __webpack_require__(/*! ../constants/API */ "./src/js/constants/API.js");
41048
 
41049
  var _API2 = _interopRequireDefault(_API);
41050
 
41051
+ var _buildURL = __webpack_require__(/*! ./buildURL */ "./src/js/functions/buildURL.js");
41052
+
41053
+ var _buildURL2 = _interopRequireDefault(_buildURL);
41054
+
41055
+ var _getQueryParams = __webpack_require__(/*! ./getQueryParams */ "./src/js/functions/getQueryParams.js");
41056
+
41057
+ var _getQueryParams2 = _interopRequireDefault(_getQueryParams);
41058
+
41059
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
41060
 
41061
  /**
41065
  * @return {string} The API URL.
41066
  */
41067
  function buildTestURL(provider) {
41068
+ var api = _API2.default[provider];
41069
+ var options = {
41070
+ per_page: 5,
41071
+ page: 1
41072
+ };
41073
 
41074
+ // Build URL.
41075
+ var params = (0, _getQueryParams2.default)(provider);
41076
+ params = _extends({}, params, options);
41077
+ var url = (0, _buildURL2.default)(api.photo_api, params);
41078
+
41079
+ return url;
41080
  }
41081
 
41082
  /***/ }),
41083
 
41084
+ /***/ "./src/js/functions/buildURL.js":
41085
+ /*!**************************************!*\
41086
+ !*** ./src/js/functions/buildURL.js ***!
41087
+ \**************************************/
41088
  /*! no static exports found */
41089
  /***/ (function(module, exports, __webpack_require__) {
41090
 
41094
  Object.defineProperty(exports, "__esModule", {
41095
  value: true
41096
  });
41097
+ exports.default = buildURL;
41098
  /**
41099
+ * Build the API query parameters
41100
  *
41101
+ * @param {string} url The base API URL.
41102
+ * @param {object} params The current params object.
41103
+ * @return {string} The new API URL with querystring params.
41104
  */
41105
+ function buildURL(url, params) {
41106
+ if (!url) {
41107
+ return "";
 
 
 
 
41108
  }
41109
+ var api_url = new URL(url);
41110
+ Object.keys(params).forEach(function (key) {
41111
+ api_url.searchParams.append(key, params[key]);
41112
+ });
 
41113
 
41114
+ return api_url;
 
 
41115
  }
41116
 
41117
  /***/ }),
41118
 
41119
+ /***/ "./src/js/functions/capitalizeFirstLetter.js":
41120
+ /*!***************************************************!*\
41121
+ !*** ./src/js/functions/capitalizeFirstLetter.js ***!
41122
+ \***************************************************/
41123
  /*! no static exports found */
41124
  /***/ (function(module, exports, __webpack_require__) {
41125
 
41127
 
41128
 
41129
  Object.defineProperty(exports, "__esModule", {
41130
+ value: true
41131
  });
41132
+ exports.default = capitalizeFirstLetter;
41133
  /**
41134
+ * Capitalize the first letter of a string.
 
 
41135
  *
41136
+ * @param {string} str The string to format.
41137
+ * @return {string} The formatted string.
41138
  */
41139
+ function capitalizeFirstLetter(str) {
41140
+ return str.charAt(0).toUpperCase() + str.slice(1);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41141
  }
41142
 
41143
  /***/ }),
41144
 
41145
+ /***/ "./src/js/functions/consoleStatus.js":
41146
+ /*!*******************************************!*\
41147
+ !*** ./src/js/functions/consoleStatus.js ***!
41148
+ \*******************************************/
41149
  /*! no static exports found */
41150
  /***/ (function(module, exports, __webpack_require__) {
41151
 
41153
 
41154
 
41155
  Object.defineProperty(exports, "__esModule", {
41156
+ value: true
41157
  });
41158
+ exports.default = consoleStatus;
41159
+
41160
+ var _capitalizeFirstLetter = __webpack_require__(/*! ./capitalizeFirstLetter */ "./src/js/functions/capitalizeFirstLetter.js");
41161
+
41162
+ var _capitalizeFirstLetter2 = _interopRequireDefault(_capitalizeFirstLetter);
41163
+
41164
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
41165
+
41166
  /**
41167
+ * Display a console.warn message about API status.
41168
  *
41169
+ * @param {string} provider The API service provider.
41170
+ * @param {string} status The API status.
41171
  */
41172
+ function consoleStatus(provider) {
41173
+ var status = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
 
 
41174
 
41175
+ var local = instant_img_localize;
41176
+ if (status === 400 || status === 401) {
41177
+ // Unsplash/Pixabay incorrect API key.
41178
+ console.warn("[" + local.instant_images + " - " + status + " Error] " + (0, _capitalizeFirstLetter2.default)(provider) + ": " + local.api_invalid_msg);
41179
+ }
41180
+ if (status === 429) {
41181
+ // Pixabay - too many requests.
41182
+ console.warn("[" + local.instant_images + " - " + status + " Error] " + (0, _capitalizeFirstLetter2.default)(provider) + ": " + local.api_ratelimit_msg);
41183
+ }
41184
  }
41185
 
41186
  /***/ }),
41199
  value: true
41200
  });
41201
  exports.default = generateAttribution;
41202
+
41203
+ var _capitalizeFirstLetter = __webpack_require__(/*! ./capitalizeFirstLetter */ "./src/js/functions/capitalizeFirstLetter.js");
41204
+
41205
+ var _capitalizeFirstLetter2 = _interopRequireDefault(_capitalizeFirstLetter);
41206
+
41207
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
41208
+
41209
  /**
41210
  * Get the API URL for searches by ID.
41211
  *
41215
  * @return {string} The raw attribution HTML.
41216
  */
41217
  function generateAttribution(provider, url, name) {
41218
+ var provider_url = provider + "_url";
41219
+ var referral = "?utm_source=wordpress-instant-images&utm_medium=referral";
41220
+ var attribution = instant_img_localize.photo_by + "<a href=\"" + url + "\">" + name + "</a> on <a href=\"" + instant_img_localize[provider_url] + "/?" + referral + "\">" + (0, _capitalizeFirstLetter2.default)(provider) + "</a>";
41221
+
41222
+ return attribution;
41223
+ }
41224
+
41225
+ /***/ }),
41226
+
41227
+ /***/ "./src/js/functions/getHeaders.js":
41228
+ /*!****************************************!*\
41229
+ !*** ./src/js/functions/getHeaders.js ***!
41230
+ \****************************************/
41231
+ /*! no static exports found */
41232
+ /***/ (function(module, exports, __webpack_require__) {
41233
+
41234
+ "use strict";
41235
+
41236
 
41237
+ Object.defineProperty(exports, "__esModule", {
41238
+ value: true
41239
+ });
41240
+ exports.default = getHeaders;
41241
+ /**
41242
+ * Build the required auth headers for the provider.
41243
+ *
41244
+ * @param {string} provider The current provider.
41245
+ * @return {object} The headers as an object.
41246
+ */
41247
+ function getHeaders(provider) {
41248
+ var api_key = instant_img_localize[provider + "_app_id"];
41249
+ var headers = {};
41250
  switch (provider) {
41251
+ case "pexels":
41252
+ headers = {
41253
+ Authorization: api_key
41254
+ };
41255
  break;
41256
+
41257
+ default:
41258
  break;
41259
  }
41260
 
41261
+ return headers;
41262
  }
41263
 
41264
  /***/ }),
41287
  */
41288
  function getProp(provider, result, attribute) {
41289
  var value = "";
41290
+ var referral = "?utm_source=wordpress-instant-images&utm_medium=referral";
41291
  switch (attribute) {
41292
  case "thumb":
41293
  if (provider === "pixabay") {
41296
  if (provider === "unsplash") {
41297
  value = result.urls.thumb;
41298
  }
41299
+ if (provider === "pexels") {
41300
+ value = result.src.tiny;
41301
+ }
41302
  break;
41303
 
41304
  case "img":
41308
  if (provider === "unsplash") {
41309
  value = result.urls.small;
41310
  }
41311
+ if (provider === "pexels") {
41312
+ value = result.src.large;
41313
+ }
41314
  break;
41315
 
41316
  case "full_size":
41320
  if (provider === "unsplash") {
41321
  value = result.urls.full;
41322
  }
41323
+ if (provider === "pexels") {
41324
+ value = result.src.original;
41325
+ }
41326
  break;
41327
 
41328
  case "author":
41332
  if (provider === "unsplash") {
41333
  value = result.user.name;
41334
  }
41335
+ if (provider === "pexels") {
41336
+ value = result.photographer;
41337
+ }
41338
  break;
41339
 
41340
  case "user":
41344
  if (provider === "unsplash") {
41345
  value = result.user.username;
41346
  }
41347
+ if (provider === "pexels") {
41348
+ value = result.photographer_id;
41349
+ }
41350
  break;
41351
 
41352
  case "name":
41356
  if (provider === "unsplash") {
41357
  value = result.user.name;
41358
  }
41359
+ if (provider === "pexels") {
41360
+ value = result.photographer;
41361
+ }
41362
  break;
41363
 
41364
  case "user_photo":
41368
  if (provider === "unsplash") {
41369
  value = result.user.profile_image.small;
41370
  }
41371
+ if (provider === "pexels") {
41372
+ value = false;
41373
+ }
41374
  break;
41375
 
41376
  case "user_url":
41377
  if (provider === "pixabay") {
41378
+ value = instant_img_localize.pixabay_url + "/users/" + result.user + "-" + result.user_id + "/?" + referral;
41379
  }
41380
  if (provider === "unsplash") {
41381
+ value = instant_img_localize.unsplash_url + "/@" + result.user.username + "?" + referral;
41382
+ }
41383
+ if (provider === "pexels") {
41384
+ value = result.photographer_url + "?" + referral;
41385
  }
41386
  break;
41387
 
41392
  if (provider === "unsplash") {
41393
  value = result.links.html;
41394
  }
41395
+ if (provider === "pexels") {
41396
+ value = result.url;
41397
+ }
41398
  break;
41399
 
41400
  case "likes":
41404
  if (provider === "unsplash") {
41405
  value = result.likes;
41406
  }
41407
+ if (provider === "pexels") {
41408
+ value = false;
41409
+ }
41410
+ break;
41411
+
41412
+ case "alt":
41413
+ if (provider === "pixabay") {
41414
+ value = result.alt_description;
41415
+ }
41416
+ if (provider === "unsplash") {
41417
+ value = result.alt_description;
41418
+ }
41419
+ if (provider === "pexels") {
41420
+ value = result.alt;
41421
+ }
41422
  break;
41423
  }
41424
 
41451
  /**
41452
  * Get the default provider on page load.
41453
  *
41454
+ * @return {string} The default service provider.
41455
  */
41456
  function getProvider() {
41457
  return instant_img_localize && instant_img_localize.default_provider ? instant_img_localize.default_provider : _API2.default.defaults.provider;
41459
 
41460
  /***/ }),
41461
 
41462
+ /***/ "./src/js/functions/getQueryParams.js":
41463
+ /*!********************************************!*\
41464
+ !*** ./src/js/functions/getQueryParams.js ***!
41465
+ \********************************************/
41466
+ /*! no static exports found */
41467
+ /***/ (function(module, exports, __webpack_require__) {
41468
+
41469
+ "use strict";
41470
+
41471
+
41472
+ Object.defineProperty(exports, "__esModule", {
41473
+ value: true
41474
+ });
41475
+
41476
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
41477
+
41478
+ exports.default = getQueryParams;
41479
+ exports.getAuth = getAuth;
41480
+ exports.getContentSafety = getContentSafety;
41481
+
41482
+ var _API = __webpack_require__(/*! ../constants/API */ "./src/js/constants/API.js");
41483
+
41484
+ var _API2 = _interopRequireDefault(_API);
41485
+
41486
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
41487
+
41488
+ /**
41489
+ * Build the API query parameters
41490
+ *
41491
+ * @param {string} provider The current service provider.
41492
+ * @param {object} filters Optional query filters to append to base params.
41493
+ * @return {object} Parameters used for the fetch request.
41494
+ */
41495
+ function getQueryParams(provider, filters) {
41496
+ if (!provider) {
41497
+ return {};
41498
+ }
41499
+
41500
+ // Default params.
41501
+ var params = {
41502
+ per_page: _API2.default.defaults.per_page
41503
+ };
41504
+
41505
+ params = getAuth(params, provider);
41506
+ params = getContentSafety(params, provider);
41507
+ params = _extends({}, params, filters);
41508
+
41509
+ /**
41510
+ * Display query params in the browser console.
41511
+ *
41512
+ * Global plugin hook.
41513
+ */
41514
+ if (instant_img_localize.query_debug) {
41515
+ console.table(params);
41516
+ }
41517
+ return params;
41518
+ }
41519
+
41520
+ /**
41521
+ * Set the photo safety for indicating that only images suitable for all ages should be returned.
41522
+ * @see https://unsplash.com/documentation#content-safety
41523
+ * @see https://pixabay.com/api/docs/
41524
+ *
41525
+ * @param {object} params The current params object.
41526
+ * @param {string} provider The current service provider.
41527
+ * @return {object} The fetch parameters object.
41528
+ */
41529
+ function getAuth(params, provider) {
41530
+ var has_auth = _API2.default[provider].api_var ? true : false;
41531
+ if (!has_auth || !provider) {
41532
+ return params;
41533
+ }
41534
+ params[_API2.default[provider].api_var] = instant_img_localize[provider + "_app_id"];
41535
+ return params;
41536
+ }
41537
+
41538
+ /**
41539
+ * Set the photo safety for indicating that only images suitable for all ages should be returned.
41540
+ * @see https://unsplash.com/documentation#content-safety
41541
+ * @see https://pixabay.com/api/docs/
41542
+ *
41543
+ * @param {object} params The current params object.
41544
+ * @param {string} provider The current service provider.
41545
+ * @return {object} The fetch parameters object.
41546
+ */
41547
+ function getContentSafety(params, provider) {
41548
+ switch (provider) {
41549
+ case "unsplash":
41550
+ if (instant_img_localize.unsplash_content_filter) {
41551
+ params.content_filter = instant_img_localize.unsplash_content_filter;
41552
+ }
41553
+ break;
41554
+
41555
+ case "pixabay":
41556
+ if (instant_img_localize.pixabay_safesearch) {
41557
+ params.safesearch = instant_img_localize.pixabay_safesearch;
41558
+ }
41559
+ break;
41560
+ }
41561
+ return params;
41562
+ }
41563
+
41564
+ /***/ }),
41565
+
41566
  /***/ "./src/js/functions/getResults.js":
41567
  /*!****************************************!*\
41568
  !*** ./src/js/functions/getResults.js ***!
41578
  });
41579
  exports.default = getResults;
41580
  exports.getResultById = getResultById;
41581
+ exports.getSearchTotalByProvider = getSearchTotalByProvider;
41582
  /**
41583
  * Access the results of different providers.
41584
  * Unsplash and Pixabay return results in different object formats.
41593
  if (!data) {
41594
  return [];
41595
  }
 
41596
  var results = [];
41597
+
41598
  switch (provider) {
41599
  case "unsplash":
41600
  if (is_search) {
41604
  }
41605
  break;
41606
 
41607
+ default:
41608
  results = data[key] || [];
41609
  break;
41610
  }
41628
  var result = [];
41629
  switch (provider) {
41630
  case "unsplash":
41631
+ case "pexels":
41632
  result = data || [];
41633
  break;
41634
 
41640
  return result;
41641
  }
41642
 
41643
+ /**
41644
+ * Get the total search results by provider.
41645
+ *
41646
+ * @param {string} provider The current service provider.
41647
+ * @param {object} obj The search data object.
41648
+ * @return {string} The total results.
41649
+ */
41650
+ function getSearchTotalByProvider(provider, obj) {
41651
+ var total = "";
41652
+ switch (provider) {
41653
+ case "pexels":
41654
+ total = obj.total_results;
41655
+ break;
41656
+
41657
+ default:
41658
+ total = obj.total;
41659
+ break;
41660
+ }
41661
+
41662
+ return total;
41663
+ }
41664
+
41665
  /***/ }),
41666
 
41667
  /***/ "./src/js/functions/searchByID.js":
41679
  });
41680
  exports.default = searchByID;
41681
  /**
41682
+ * Get the API URL for searching by ID.
41683
+ * Prepending id:{photo_id} to search terms will search photos by unique ID.
41684
  *
41685
+ * @param {object} options An object containing provider variables.
41686
+ * @param {string} term The photo search term.
41687
+ * @return {string} The search API URL.
 
 
41688
  */
41689
+ function searchByID(options, term) {
41690
+ var provider = options.provider,
41691
+ api_provider = options.api_provider;
41692
+ var photo_api = api_provider.photo_api;
41693
+
41694
+ var id = term.replace("id:", "");
41695
+
41696
  var url = "";
41697
  switch (provider) {
41698
  case "unsplash":
41699
+ url = "" + photo_api + id; // https://api.unsplash.com/photos/{PHOTO_ID}
41700
  break;
41701
 
41702
  case "pixabay":
41703
+ url = photo_api + "?id=" + id; // https://pixabay.com/api/?id={PHOTO_ID}
41704
+ break;
41705
+
41706
+ case "pexels":
41707
+ url = photo_api.replace("curated", "photos") + "/" + id; // https://api.pexels.com/v1/photos/{PHOTO_ID}
41708
  break;
41709
  }
41710
 
41713
 
41714
  /***/ }),
41715
 
41716
+ /***/ "./src/js/functions/unsplashDownload.js":
41717
+ /*!**********************************************!*\
41718
+ !*** ./src/js/functions/unsplashDownload.js ***!
41719
+ \**********************************************/
41720
+ /*! no static exports found */
41721
+ /***/ (function(module, exports, __webpack_require__) {
41722
+
41723
+ "use strict";
41724
+
41725
+
41726
+ Object.defineProperty(exports, "__esModule", {
41727
+ value: true
41728
+ });
41729
+ exports.default = unsplashDownload;
41730
+
41731
+ var _buildURL = __webpack_require__(/*! ./buildURL */ "./src/js/functions/buildURL.js");
41732
+
41733
+ var _buildURL2 = _interopRequireDefault(_buildURL);
41734
+
41735
+ var _getQueryParams = __webpack_require__(/*! ./getQueryParams */ "./src/js/functions/getQueryParams.js");
41736
+
41737
+ var _getQueryParams2 = _interopRequireDefault(_getQueryParams);
41738
+
41739
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
41740
+
41741
+ /**
41742
+ * Function to trigger download action at unsplash.com.
41743
+ * This is used to give authors download credits and nothing more.
41744
+ *
41745
+ * @param {object} vars Variables passed from component.
41746
+ * @param {string} id The ID of the image
41747
+ * @since 3.1
41748
+ */
41749
+ function unsplashDownload(vars, id) {
41750
+ var download_url = "" + vars.api_provider.photo_api + id + "/download";
41751
+ var params = (0, _getQueryParams2.default)("unsplash");
41752
+ var url = (0, _buildURL2.default)(download_url, params);
41753
+
41754
+ fetch(url).then(function (data) {
41755
+ return data.json();
41756
+ }).then(function (data) {
41757
+ // Success, nothing else happens here
41758
+ console.log("Image download successsfully triggered at Unsplash.");
41759
+ }).catch(function (error) {
41760
+ console.log(error);
41761
+ });
41762
+ }
41763
+
41764
+ /***/ }),
41765
+
41766
  /***/ "./src/js/functions/updatePluginSetting.js":
41767
  /*!*************************************************!*\
41768
  !*** ./src/js/functions/updatePluginSetting.js ***!
41810
 
41811
  _axios2.default.post(api, JSON.stringify(data), config).then(function (res) {
41812
  var response = res.data;
 
41813
  }).catch(function (error) {
41814
  console.log(error);
41815
  });
dist/js/instant-images-block.min.js CHANGED
@@ -1,14 +1,14 @@
1
- !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}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return 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=82)}([function(e,t,n){"use strict";e.exports=n(22)},function(e,t,n){"use strict";var r=n(10),i=Object.prototype.toString;function a(e){return"[object Array]"===i.call(e)}function o(e){return void 0===e}function l(e){return null!==e&&"object"==typeof e}function s(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===i.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),a(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:a,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!o(e)&&null!==e.constructor&&!o(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:l,isPlainObject:s,isUndefined:o,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:u,isStream:function(e){return l(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function e(){var t={};function n(n,r){s(t[r])&&s(n)?t[r]=e(t[r],n):s(n)?t[r]=e({},n):a(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)c(arguments[r],n);return t},extend:function(e,t,n){return c(t,(function(t,i){e[i]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},function(e,t,n){"use strict";e.exports={defaults:{provider:"unsplash",order:"latest",posts_per_page:"&per_page=20"},unsplash:{requires_key:!1,new:!1,filters:!0,api_query_var:"/?client_id=",photo_api:"https://api.unsplash.com/photos",collections_api:"https://api.unsplash.com/collections",search_api:"https://api.unsplash.com/search/photos",search_query_var:"query",arr_key:"results",orientation:["landscape","portrait","squarish"]},pixabay:{requires_key:!0,new:!1,filters:!0,api_query_var:"/?key=",photo_api:"https://pixabay.com/api",search_api:"https://pixabay.com/api",search_query_var:"q",arr_key:"hits",orientation:["horizontal","vertical"]}}},function(e,t,n){var r,i;"undefined"!=typeof window&&window,void 0===(i="function"==typeof(r=function(){"use strict";function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var n=this._events=this._events||{},r=n[e]=n[e]||[];return-1==r.indexOf(t)&&r.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var n=this._onceEvents=this._onceEvents||{};return(n[e]=n[e]||{})[t]=!0,this}},t.off=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){var r=n.indexOf(t);return-1!=r&&n.splice(r,1),this}},t.emitEvent=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){n=n.slice(0),t=t||[];for(var r=this._onceEvents&&this._onceEvents[e],i=0;i<n.length;i++){var a=n[i];r&&r[a]&&(this.off(e,a),delete r[a]),a.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e})?r.call(t,n,t,e):r)||(e.exports=i)},function(e,t,n){var r,i;
2
  /*!
3
  * getSize v2.0.3
4
  * measure size of elements
5
  * MIT license
6
- */window,void 0===(i="function"==typeof(r=function(){"use strict";function e(e){var t=parseFloat(e);return-1==e.indexOf("%")&&!isNaN(t)&&t}var t="undefined"==typeof console?function(){}:function(e){console.error(e)},n=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],r=n.length;function i(e){var n=getComputedStyle(e);return n||t("Style returned "+n+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),n}var a,o=!1;function l(t){if(function(){if(!o){o=!0;var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box";var n=document.body||document.documentElement;n.appendChild(t);var r=i(t);a=200==Math.round(e(r.width)),l.isBoxSizeOuter=a,n.removeChild(t)}}(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var s=i(t);if("none"==s.display)return function(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t<r;t++)e[n[t]]=0;return e}();var u={};u.width=t.offsetWidth,u.height=t.offsetHeight;for(var c=u.isBorderBox="border-box"==s.boxSizing,f=0;f<r;f++){var d=n[f],p=s[d],h=parseFloat(p);u[d]=isNaN(h)?0:h}var m=u.paddingLeft+u.paddingRight,v=u.paddingTop+u.paddingBottom,g=u.marginLeft+u.marginRight,y=u.marginTop+u.marginBottom,b=u.borderLeftWidth+u.borderRightWidth,_=u.borderTopWidth+u.borderBottomWidth,w=c&&a,k=e(s.width);!1!==k&&(u.width=k+(w?0:m+b));var E=e(s.height);return!1!==E&&(u.height=E+(w?0:v+_)),u.innerWidth=u.width-(m+b),u.innerHeight=u.height-(v+_),u.outerWidth=u.width+g,u.outerHeight=u.height+y,u}}return l})?r.call(t,n,t,e):r)||(e.exports=i)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=a.default[e],n=instant_img_localize[e+"_app_id"];return""+t.photo_api+t.api_query_var+n+"&per_page=5&page=1"};var r,i=n(2),a=(r=i)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";(function(t){var r=n(1),i=n(47),a=n(12),o={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(s=n(13)),s),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(l(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw a(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(o)})),e.exports=u}).call(this,n(19))},function(e,t,n){"use strict";
7
  /*
8
  object-assign
9
  (c) Sindre Sorhus
10
  @license MIT
11
- */var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,l,s=o(e),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))i.call(n,c)&&(s[c]=n[c]);if(r){l=r(n);for(var f=0;f<l.length;f++)a.call(n,l[f])&&(s[l[f]]=n[l[f]])}}return s}},function(e,t,n){"use strict";function r(e){return"string"!=typeof e?"":e.charAt(0).toUpperCase()+e.slice(1)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=instant_img_localize;400!==t&&401!==t||console.warn("["+n.instant_images+" - "+t+" Error] "+r(e)+": "+n.api_invalid_msg);429===t&&console.warn("["+n.instant_images+" - "+t+" Error] "+r(e)+": "+n.api_ratelimit_msg)}},function(e,t,n){e.exports=n(42)},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(1);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(r.isURLSearchParams(t))a=t.toString();else{var o=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),o.push(i(t)+"="+i(e))})))})),a=o.join("&")}if(a){var l=e.indexOf("#");-1!==l&&(e=e.slice(0,l)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(1),i=n(48),a=n(49),o=n(11),l=n(50),s=n(53),u=n(54),c=n(14);e.exports=function(e){return new Promise((function(t,n){var f=e.data,d=e.headers,p=e.responseType;r.isFormData(f)&&delete d["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(m+":"+v)}var g=l(e.baseURL,e.url);function y(){if(h){var r="getAllResponseHeaders"in h?s(h.getAllResponseHeaders()):null,a={data:p&&"text"!==p&&"json"!==p?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h};i(t,n,a),h=null}}if(h.open(e.method.toUpperCase(),o(g,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,"onloadend"in h?h.onloadend=y:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(y)},h.onabort=function(){h&&(n(c("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(c("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var b=(e.withCredentials||u(g))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;b&&(d[e.xsrfHeaderName]=b)}"setRequestHeader"in h&&r.forEach(d,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete d[t]:h.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),p&&"json"!==p&&(h.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),n(e),h=null)})),f||(f=null),h.send(f)}))}},function(e,t,n){"use strict";var r=n(12);e.exports=function(e,t,n,i,a){var o=new Error(e);return r(o,t,n,i,a)}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";var r=n(1);e.exports=function(e,t){t=t||{};var n={},i=["url","method","data"],a=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],l=["validateStatus"];function s(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function u(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=s(void 0,e[i])):n[i]=s(e[i],t[i])}r.forEach(i,(function(e){r.isUndefined(t[e])||(n[e]=s(void 0,t[e]))})),r.forEach(a,u),r.forEach(o,(function(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=s(void 0,e[i])):n[i]=s(void 0,t[i])})),r.forEach(l,(function(r){r in t?n[r]=s(e[r],t[r]):r in e&&(n[r]=s(void 0,e[r]))}));var c=i.concat(a).concat(o).concat(l),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===c.indexOf(e)}));return r.forEach(f,u),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(23)},function(e,t){var n,r,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var s,u=[],c=!1,f=-1;function d(){c&&s&&(c=!1,s.length?u=s.concat(u):f=-1,u.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=u.length;t;){for(s=u,u=[];++f<t;)s&&s[f].run();f=-1,t=u.length}s=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||c||l(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t="";switch(e){case"unsplash":instant_img_localize.unsplash_content_filter&&(t="&content_filter="+instant_img_localize.unsplash_content_filter);break;case"pixabay":instant_img_localize.pixabay_safesearch&&(t="&safesearch="+instant_img_localize.pixabay_safesearch)}return t}},function(e,t,n){var r;
12
  /*!
13
  Copyright (c) 2018 Jed Watson.
14
  Licensed under the MIT License (MIT), see
@@ -21,7 +21,7 @@ object-assign
21
  *
22
  * This source code is licensed under the MIT license found in the
23
  * LICENSE file in the root directory of this source tree.
24
- */var r=n(7),i=60103,a=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,l=60110,s=60112;t.Suspense=60113;var u=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;i=f("react.element"),a=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),o=f("react.provider"),l=f("react.context"),s=f("react.forward_ref"),t.Suspense=f("react.suspense"),u=f("react.memo"),c=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function g(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=v.prototype;var b=y.prototype=new g;b.constructor=y,r(b,v.prototype),b.isPureReactComponent=!0;var _={current:null},w=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,n){var r,a={},o=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(o=""+t.key),t)w.call(t,r)&&!k.hasOwnProperty(r)&&(a[r]=t[r]);var s=arguments.length-2;if(1===s)a.children=n;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];a.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===a[r]&&(a[r]=s[r]);return{$$typeof:i,type:e,key:o,ref:l,props:a,_owner:_.current}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var x=/\/+/g;function C(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function O(e,t,n,r,o){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case i:case a:s=!0}}if(s)return o=o(s=e),e=""===r?"."+C(s,0):r,Array.isArray(o)?(n="",null!=e&&(n=e.replace(x,"$&/")+"/"),O(o,t,n,"",(function(e){return e}))):null!=o&&(S(o)&&(o=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(x,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=""===r?".":r+":",Array.isArray(e))for(var u=0;u<e.length;u++){var c=r+C(l=e[u],u);s+=O(l,t,n,c,o)}else if("function"==typeof(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e)))for(e=c.call(e),u=0;!(l=e.next()).done;)s+=O(l=l.value,t,n,c=r+C(l,u++),o);else if("object"===l)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return s}function T(e,t,n){if(null==e)return e;var r=[],i=0;return O(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function P(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var L={current:null};function N(){var e=L.current;if(null===e)throw Error(p(321));return e}var z={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:_,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:T,forEach:function(e,t,n){T(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!S(e))throw Error(p(143));return e}},t.Component=v,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var a=r({},e.props),o=e.key,l=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,s=_.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)w.call(t,c)&&!k.hasOwnProperty(c)&&(a[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)a.children=n;else if(1<c){u=Array(c);for(var f=0;f<c;f++)u[f]=arguments[f+2];a.children=u}return{$$typeof:i,type:e.type,key:o,ref:l,props:a,_owner:s}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:l,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=S,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return N().useCallback(e,t)},t.useContext=function(e,t){return N().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return N().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return N().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return N().useLayoutEffect(e,t)},t.useMemo=function(e,t){return N().useMemo(e,t)},t.useReducer=function(e,t,n){return N().useReducer(e,t,n)},t.useRef=function(e){return N().useRef(e)},t.useState=function(e){return N().useState(e)},t.version="17.0.2"},function(e,t,n){"use strict";
25
  /** @license React v17.0.2
26
  * react-dom.production.min.js
27
  *
@@ -29,7 +29,7 @@ object-assign
29
  *
30
  * This source code is licensed under the MIT license found in the
31
  * LICENSE file in the root directory of this source tree.
32
- */var r=n(0),i=n(7),a=n(24);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(o(227));var l=new Set,s={};function u(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)l.add(t[e])}var f=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,h={},m={};function v(e,t,n,r,i,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new v(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".split(" ").forEach((function(e){g[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function _(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!p.call(m,e)||!p.call(h,e)&&(d.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new v(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(y,b);g[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=60103,E=60106,S=60107,x=60108,C=60114,O=60109,T=60110,P=60112,L=60113,N=60120,z=60115,I=60116,j=60121,R=60128,M=60129,F=60130,D=60131;if("function"==typeof Symbol&&Symbol.for){var A=Symbol.for;k=A("react.element"),E=A("react.portal"),S=A("react.fragment"),x=A("react.strict_mode"),C=A("react.profiler"),O=A("react.provider"),T=A("react.context"),P=A("react.forward_ref"),L=A("react.suspense"),N=A("react.suspense_list"),z=A("react.memo"),I=A("react.lazy"),j=A("react.block"),A("react.scope"),R=A("react.opaque.id"),M=A("react.debug_trace_mode"),F=A("react.offscreen"),D=A("react.legacy_hidden")}var U,B="function"==typeof Symbol&&Symbol.iterator;function W(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=B&&e[B]||e["@@iterator"])?e:null}function q(e){if(void 0===U)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);U=t&&t[1]||""}return"\n"+U+e}var H=!1;function V(e,t){if(!e||H)return"";H=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var i=e.stack.split("\n"),a=r.stack.split("\n"),o=i.length-1,l=a.length-1;1<=o&&0<=l&&i[o]!==a[l];)l--;for(;1<=o&&0<=l;o--,l--)if(i[o]!==a[l]){if(1!==o||1!==l)do{if(o--,0>--l||i[o]!==a[l])return"\n"+i[o].replace(" at new "," at ")}while(1<=o&&0<=l);break}}}finally{H=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?q(e):""}function $(e){switch(e.tag){case 5:return q(e.type);case 16:return q("Lazy");case 13:return q("Suspense");case 19:return q("SuspenseList");case 0:case 2:case 15:return e=V(e.type,!1);case 11:return e=V(e.type.render,!1);case 22:return e=V(e.type._render,!1);case 1:return e=V(e.type,!0);default:return""}}function Q(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case E:return"Portal";case C:return"Profiler";case x:return"StrictMode";case L:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case z:return Q(e.type);case j:return Q(e._render);case I:t=e._payload,e=e._init;try{return Q(e(t))}catch(e){}}return null}function G(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=Y(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function X(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Y(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=G(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&_(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=G(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ie(e,t.type,n):t.hasOwnProperty("defaultValue")&&ie(e,t.type,G(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ie(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ae(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function oe(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+G(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function le(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function se(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:G(n)}}function ue(e,t){var n=G(t.value),r=G(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml",de="http://www.w3.org/2000/svg";function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ve=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==de||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ge(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},be=["Webkit","ms","Moz","O"];function _e(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}function we(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=_e(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(ye).forEach((function(e){be.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ye[t]=ye[e]}))}));var ke=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ee(e,t){if(t){if(ke[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function Se(e,t){if(-1===e.indexOf("-"))return"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}}function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,Oe=null,Te=null;function Pe(e){if(e=Jr(e)){if("function"!=typeof Ce)throw Error(o(280));var t=e.stateNode;t&&(t=ei(t),Ce(e.stateNode,e.type,t))}}function Le(e){Oe?Te?Te.push(e):Te=[e]:Oe=e}function Ne(){if(Oe){var e=Oe,t=Te;if(Te=Oe=null,Pe(e),t)for(e=0;e<t.length;e++)Pe(t[e])}}function ze(e,t){return e(t)}function Ie(e,t,n,r,i){return e(t,n,r,i)}function je(){}var Re=ze,Me=!1,Fe=!1;function De(){null===Oe&&null===Te||(je(),Ne())}function Ae(e,t){var n=e.stateNode;if(null===n)return null;var r=ei(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}var Ue=!1;if(f)try{var Be={};Object.defineProperty(Be,"passive",{get:function(){Ue=!0}}),window.addEventListener("test",Be,Be),window.removeEventListener("test",Be,Be)}catch(e){Ue=!1}function We(e,t,n,r,i,a,o,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var qe=!1,He=null,Ve=!1,$e=null,Qe={onError:function(e){qe=!0,He=e}};function Ge(e,t,n,r,i,a,o,l,s){qe=!1,He=null,We.apply(Qe,arguments)}function Ye(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ke(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Xe(e){if(Ye(e)!==e)throw Error(o(188))}function Je(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ye(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Xe(i),e;if(a===r)return Xe(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var l=!1,s=i.child;s;){if(s===n){l=!0,n=i,r=a;break}if(s===r){l=!0,r=i,n=a;break}s=s.sibling}if(!l){for(s=a.child;s;){if(s===n){l=!0,n=a,r=i;break}if(s===r){l=!0,r=a,n=i;break}s=s.sibling}if(!l)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Ze(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,it=!1,at=[],ot=null,lt=null,st=null,ut=new Map,ct=new Map,ft=[],dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pt(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function ht(e,t){switch(e){case"focusin":case"focusout":ot=null;break;case"dragenter":case"dragleave":lt=null;break;case"mouseover":case"mouseout":st=null;break;case"pointerover":case"pointerout":ut.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ct.delete(t.pointerId)}}function mt(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e=pt(t,n,r,i,a),null!==t&&(null!==(t=Jr(t))&&tt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function vt(e){var t=Xr(e.target);if(null!==t){var n=Ye(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ke(n)))return e.blockedOn=t,void rt(e.lanePriority,(function(){a.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function gt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Jr(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function yt(e,t,n){gt(e)&&n.delete(t)}function bt(){for(it=!1;0<at.length;){var e=at[0];if(null!==e.blockedOn){null!==(e=Jr(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&at.shift()}null!==ot&&gt(ot)&&(ot=null),null!==lt&&gt(lt)&&(lt=null),null!==st&&gt(st)&&(st=null),ut.forEach(yt),ct.forEach(yt)}function _t(e,t){e.blockedOn===t&&(e.blockedOn=null,it||(it=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,bt)))}function wt(e){function t(t){return _t(t,e)}if(0<at.length){_t(at[0],e);for(var n=1;n<at.length;n++){var r=at[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==ot&&_t(ot,e),null!==lt&&_t(lt,e),null!==st&&_t(st,e),ut.forEach(t),ct.forEach(t),n=0;n<ft.length;n++)(r=ft[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ft.length&&null===(n=ft[0]).blockedOn;)vt(n),null===n.blockedOn&&ft.shift()}function kt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Et={animationend:kt("Animation","AnimationEnd"),animationiteration:kt("Animation","AnimationIteration"),animationstart:kt("Animation","AnimationStart"),transitionend:kt("Transition","TransitionEnd")},St={},xt={};function Ct(e){if(St[e])return St[e];if(!Et[e])return e;var t,n=Et[e];for(t in n)if(n.hasOwnProperty(t)&&t in xt)return St[e]=n[t];return e}f&&(xt=document.createElement("div").style,"AnimationEvent"in window||(delete Et.animationend.animation,delete Et.animationiteration.animation,delete Et.animationstart.animation),"TransitionEvent"in window||delete Et.transitionend.transition);var Ot=Ct("animationend"),Tt=Ct("animationiteration"),Pt=Ct("animationstart"),Lt=Ct("transitionend"),Nt=new Map,zt=new Map,It=["abort","abort",Ot,"animationEnd",Tt,"animationIteration",Pt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Lt,"transitionEnd","waiting","waiting"];function jt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),zt.set(r,t),Nt.set(r,i),u(i,[r])}}(0,a.unstable_now)();var Rt=8;function Mt(e){if(0!=(1&e))return Rt=15,1;if(0!=(2&e))return Rt=14,2;if(0!=(4&e))return Rt=13,4;var t=24&e;return 0!==t?(Rt=12,t):0!=(32&e)?(Rt=11,32):0!==(t=192&e)?(Rt=10,t):0!=(256&e)?(Rt=9,256):0!==(t=3584&e)?(Rt=8,t):0!=(4096&e)?(Rt=7,4096):0!==(t=4186112&e)?(Rt=6,t):0!==(t=62914560&e)?(Rt=5,t):67108864&e?(Rt=4,67108864):0!=(134217728&e)?(Rt=3,134217728):0!==(t=805306368&e)?(Rt=2,t):0!=(1073741824&e)?(Rt=1,1073741824):(Rt=8,e)}function Ft(e,t){var n=e.pendingLanes;if(0===n)return Rt=0;var r=0,i=0,a=e.expiredLanes,o=e.suspendedLanes,l=e.pingedLanes;if(0!==a)r=a,i=Rt=15;else if(0!==(a=134217727&n)){var s=a&~o;0!==s?(r=Mt(s),i=Rt):0!==(l&=a)&&(r=Mt(l),i=Rt)}else 0!==(a=n&~o)?(r=Mt(a),i=Rt):0!==l&&(r=Mt(l),i=Rt);if(0===r)return 0;if(r=n&((0>(r=31-qt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&o)){if(Mt(t),i<=Rt)return t;Rt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-qt(t)),r|=e[n],t&=~i;return r}function Dt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function At(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Ut(24&~t))?At(10,t):e;case 10:return 0===(e=Ut(192&~t))?At(8,t):e;case 8:return 0===(e=Ut(3584&~t))&&(0===(e=Ut(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Ut(805306368&~t))&&(t=268435456),t}throw Error(o(358,e))}function Ut(e){return e&-e}function Bt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Wt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-qt(t)]=n}var qt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Ht(e)/Vt|0)|0},Ht=Math.log,Vt=Math.LN2;var $t=a.unstable_UserBlockingPriority,Qt=a.unstable_runWithPriority,Gt=!0;function Yt(e,t,n,r){Me||je();var i=Xt,a=Me;Me=!0;try{Ie(i,e,t,n,r)}finally{(Me=a)||De()}}function Kt(e,t,n,r){Qt($t,Xt.bind(null,e,t,n,r))}function Xt(e,t,n,r){var i;if(Gt)if((i=0==(4&t))&&0<at.length&&-1<dt.indexOf(e))e=pt(null,e,t,n,r),at.push(e);else{var a=Jt(e,t,n,r);if(null===a)i&&ht(e,r);else{if(i){if(-1<dt.indexOf(e))return e=pt(a,e,t,n,r),void at.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return ot=mt(ot,e,t,n,r,i),!0;case"dragenter":return lt=mt(lt,e,t,n,r,i),!0;case"mouseover":return st=mt(st,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return ut.set(a,mt(ut.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,ct.set(a,mt(ct.get(a)||null,e,t,n,r,i)),!0}return!1}(a,e,t,n,r))return;ht(e,r)}Lr(e,t,r,null,n)}}}function Jt(e,t,n,r){var i=xe(r);if(null!==(i=Xr(i))){var a=Ye(i);if(null===a)i=null;else{var o=a.tag;if(13===o){if(null!==(i=Ke(a)))return i;i=null}else if(3===o){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return Lr(e,t,r,i,n),null}var Zt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,i="value"in Zt?Zt.value:Zt.textContent,a=i.length;for(e=0;e<r&&n[e]===i[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===i[a-t];t++);return tn=i.slice(e,1<t?1-t:void 0)}function rn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function an(){return!0}function on(){return!1}function ln(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?an:on,this.isPropagationStopped=on,this}return i(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var sn,un,cn,fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=ln(fn),pn=i({},fn,{view:0,detail:0}),hn=ln(pn),mn=i({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(sn=e.screenX-cn.screenX,un=e.screenY-cn.screenY):un=sn=0,cn=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:un}}),vn=ln(mn),gn=ln(i({},mn,{dataTransfer:0})),yn=ln(i({},pn,{relatedTarget:0})),bn=ln(i({},fn,{animationName:0,elapsedTime:0,pseudoElement:0})),_n=ln(i({},fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),wn=ln(i({},fn,{data:0})),kn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},En={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function Cn(){return xn}var On=ln(i({},pn,{key:function(e){if(e.key){var t=kn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?En[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Tn=ln(i({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=ln(i({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Ln=ln(i({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nn=ln(i({},mn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),zn=[9,13,27,32],In=f&&"CompositionEvent"in window,jn=null;f&&"documentMode"in document&&(jn=document.documentMode);var Rn=f&&"TextEvent"in window&&!jn,Mn=f&&(!In||jn&&8<jn&&11>=jn),Fn=String.fromCharCode(32),Dn=!1;function An(e,t){switch(e){case"keyup":return-1!==zn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Hn(e,t,n,r){Le(r),0<(t=zr(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,$n=null;function Qn(e){Sr(e,0)}function Gn(e){if(X(Zr(e)))return e}function Yn(e,t){if("change"===e)return t}var Kn=!1;if(f){var Xn;if(f){var Jn="oninput"in document;if(!Jn){var Zn=document.createElement("div");Zn.setAttribute("oninput","return;"),Jn="function"==typeof Zn.oninput}Xn=Jn}else Xn=!1;Kn=Xn&&(!document.documentMode||9<document.documentMode)}function er(){Vn&&(Vn.detachEvent("onpropertychange",tr),$n=Vn=null)}function tr(e){if("value"===e.propertyName&&Gn($n)){var t=[];if(Hn(t,$n,e,xe(e)),e=Qn,Me)e(t);else{Me=!0;try{ze(e,t)}finally{Me=!1,De()}}}}function nr(e,t,n){"focusin"===e?(er(),$n=n,(Vn=t).attachEvent("onpropertychange",tr)):"focusout"===e&&er()}function rr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn($n)}function ir(e,t){if("click"===e)return Gn(t)}function ar(e,t){if("input"===e||"change"===e)return Gn(t)}var or="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},lr=Object.prototype.hasOwnProperty;function sr(e,t){if(or(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!lr.call(t,n[r])||!or(e[n[r]],t[n[r]]))return!1;return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function fr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var pr=f&&"documentMode"in document&&11>=document.documentMode,hr=null,mr=null,vr=null,gr=!1;function yr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;gr||null==hr||hr!==J(r)||("selectionStart"in(r=hr)&&dr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&sr(vr,r)||(vr=r,0<(r=zr(mr,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=hr)))}jt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),jt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),jt(It,2);for(var br="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),_r=0;_r<br.length;_r++)zt.set(br[_r],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),kr=new Set("cancel close invalid load scroll toggle".split(" ").concat(wr));function Er(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,l,s,u){if(Ge.apply(this,arguments),qe){if(!qe)throw Error(o(198));var c=He;qe=!1,He=null,Ve||(Ve=!0,$e=c)}}(r,t,void 0,e),e.currentTarget=null}function Sr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==a&&i.isPropagationStopped())break e;Er(i,l,u),a=s}else for(o=0;o<r.length;o++){if(s=(l=r[o]).instance,u=l.currentTarget,l=l.listener,s!==a&&i.isPropagationStopped())break e;Er(i,l,u),a=s}}}if(Ve)throw e=$e,Ve=!1,$e=null,e}function xr(e,t){var n=ti(t),r=e+"__bubble";n.has(r)||(Pr(t,e,2,!1),n.add(r))}var Cr="_reactListening"+Math.random().toString(36).slice(2);function Or(e){e[Cr]||(e[Cr]=!0,l.forEach((function(t){kr.has(t)||Tr(t,!1,e,null),Tr(t,!0,e,null)})))}function Tr(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,a=n;if("selectionchange"===e&&9!==n.nodeType&&(a=n.ownerDocument),null!==r&&!t&&kr.has(e)){if("scroll"!==e)return;i|=2,a=r}var o=ti(a),l=e+"__"+(t?"capture":"bubble");o.has(l)||(t&&(i|=4),Pr(a,e,i,t),o.add(l))}function Pr(e,t,n,r){var i=zt.get(t);switch(void 0===i?2:i){case 0:i=Yt;break;case 1:i=Kt;break;default:i=Xt}n=i.bind(null,t,n,e),i=void 0,!Ue||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Lr(e,t,n,r,i){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var l=r.stateNode.containerInfo;if(l===i||8===l.nodeType&&l.parentNode===i)break;if(4===o)for(o=r.return;null!==o;){var s=o.tag;if((3===s||4===s)&&((s=o.stateNode.containerInfo)===i||8===s.nodeType&&s.parentNode===i))return;o=o.return}for(;null!==l;){if(null===(o=Xr(l)))return;if(5===(s=o.tag)||6===s){r=a=o;continue e}l=l.parentNode}}r=r.return}!function(e,t,n){if(Fe)return e(t,n);Fe=!0;try{Re(e,t,n)}finally{Fe=!1,De()}}((function(){var r=a,i=xe(n),o=[];e:{var l=Nt.get(e);if(void 0!==l){var s=dn,u=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":s=On;break;case"focusin":u="focus",s=yn;break;case"focusout":u="blur",s=yn;break;case"beforeblur":case"afterblur":s=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=vn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Pn;break;case Ot:case Tt:case Pt:s=bn;break;case Lt:s=Ln;break;case"scroll":s=hn;break;case"wheel":s=Nn;break;case"copy":case"cut":case"paste":s=_n;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Tn}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==l?l+"Capture":null:l;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==d&&(null!=(m=Ae(h,d))&&c.push(Nr(h,m,p)))),f)break;h=h.return}0<c.length&&(l=new s(l,u,null,n,i),o.push({event:l,listeners:c}))}}if(0==(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(u=n.relatedTarget||n.fromElement)||!Xr(u)&&!u[Yr])&&(s||l)&&(l=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?Xr(u):null)&&(u!==(f=Ye(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=vn,m="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Tn,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==s?l:Zr(s),p=null==u?l:Zr(u),(l=new c(m,h+"leave",s,n,i)).target=f,l.relatedTarget=p,m=null,Xr(i)===r&&((c=new c(d,h+"enter",u,n,i)).target=p,c.relatedTarget=f,m=c),f=m,s&&u)e:{for(d=u,h=0,p=c=s;p;p=Ir(p))h++;for(p=0,m=d;m;m=Ir(m))p++;for(;0<h-p;)c=Ir(c),h--;for(;0<p-h;)d=Ir(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=Ir(c),d=Ir(d)}c=null}else c=null;null!==s&&jr(o,l,s,c,!1),null!==u&&null!==f&&jr(o,f,u,c,!0)}if("select"===(s=(l=r?Zr(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var v=Yn;else if(qn(l))if(Kn)v=ar;else{v=rr;var g=nr}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(v=ir);switch(v&&(v=v(e,r))?Hn(o,v,n,i):(g&&g(e,l,r),"focusout"===e&&(g=l._wrapperState)&&g.controlled&&"number"===l.type&&ie(l,"number",l.value)),g=r?Zr(r):window,e){case"focusin":(qn(g)||"true"===g.contentEditable)&&(hr=g,mr=r,vr=null);break;case"focusout":vr=mr=hr=null;break;case"mousedown":gr=!0;break;case"contextmenu":case"mouseup":case"dragend":gr=!1,yr(o,n,i);break;case"selectionchange":if(pr)break;case"keydown":case"keyup":yr(o,n,i)}var y;if(In)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Bn?An(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Mn&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Bn&&(y=nn()):(en="value"in(Zt=i)?Zt.value:Zt.textContent,Bn=!0)),0<(g=zr(r,b)).length&&(b=new wn(b,e,null,n,i),o.push({event:b,listeners:g}),y?b.data=y:null!==(y=Un(n))&&(b.data=y))),(y=Rn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Dn=!0,Fn);case"textInput":return(e=t.data)===Fn&&Dn?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!In&&An(e,t)?(e=nn(),tn=en=Zt=null,Bn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mn&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&(0<(r=zr(r,"onBeforeInput")).length&&(i=new wn("onBeforeInput","beforeinput",null,n,i),o.push({event:i,listeners:r}),i.data=y))}Sr(o,t)}))}function Nr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function zr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,a=i.stateNode;5===i.tag&&null!==a&&(i=a,null!=(a=Ae(e,n))&&r.unshift(Nr(e,a,i)),null!=(a=Ae(e,t))&&r.push(Nr(e,a,i))),e=e.return}return r}function Ir(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function jr(e,t,n,r,i){for(var a=t._reactName,o=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,i?null!=(s=Ae(n,a))&&o.unshift(Nr(n,s,l)):i||null!=(s=Ae(n,a))&&o.push(Nr(n,s,l))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}function Rr(){}var Mr=null,Fr=null;function Dr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Ar(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Ur="function"==typeof setTimeout?setTimeout:void 0,Br="function"==typeof clearTimeout?clearTimeout:void 0;function Wr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function qr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Hr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Vr=0;var $r=Math.random().toString(36).slice(2),Qr="__reactFiber$"+$r,Gr="__reactProps$"+$r,Yr="__reactContainer$"+$r,Kr="__reactEvents$"+$r;function Xr(e){var t=e[Qr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Yr]||n[Qr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Hr(e);null!==e;){if(n=e[Qr])return n;e=Hr(e)}return t}n=(e=n).parentNode}return null}function Jr(e){return!(e=e[Qr]||e[Yr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Zr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function ei(e){return e[Gr]||null}function ti(e){var t=e[Kr];return void 0===t&&(t=e[Kr]=new Set),t}var ni=[],ri=-1;function ii(e){return{current:e}}function ai(e){0>ri||(e.current=ni[ri],ni[ri]=null,ri--)}function oi(e,t){ri++,ni[ri]=e.current,e.current=t}var li={},si=ii(li),ui=ii(!1),ci=li;function fi(e,t){var n=e.type.contextTypes;if(!n)return li;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function di(e){return null!=(e=e.childContextTypes)}function pi(){ai(ui),ai(si)}function hi(e,t,n){if(si.current!==li)throw Error(o(168));oi(si,t),oi(ui,n)}function mi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in e))throw Error(o(108,Q(t)||"Unknown",a));return i({},n,r)}function vi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||li,ci=si.current,oi(si,e),oi(ui,ui.current),!0}function gi(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=mi(e,t,ci),r.__reactInternalMemoizedMergedChildContext=e,ai(ui),ai(si),oi(si,e)):ai(ui),oi(ui,n)}var yi=null,bi=null,_i=a.unstable_runWithPriority,wi=a.unstable_scheduleCallback,ki=a.unstable_cancelCallback,Ei=a.unstable_shouldYield,Si=a.unstable_requestPaint,xi=a.unstable_now,Ci=a.unstable_getCurrentPriorityLevel,Oi=a.unstable_ImmediatePriority,Ti=a.unstable_UserBlockingPriority,Pi=a.unstable_NormalPriority,Li=a.unstable_LowPriority,Ni=a.unstable_IdlePriority,zi={},Ii=void 0!==Si?Si:function(){},ji=null,Ri=null,Mi=!1,Fi=xi(),Di=1e4>Fi?xi:function(){return xi()-Fi};function Ai(){switch(Ci()){case Oi:return 99;case Ti:return 98;case Pi:return 97;case Li:return 96;case Ni:return 95;default:throw Error(o(332))}}function Ui(e){switch(e){case 99:return Oi;case 98:return Ti;case 97:return Pi;case 96:return Li;case 95:return Ni;default:throw Error(o(332))}}function Bi(e,t){return e=Ui(e),_i(e,t)}function Wi(e,t,n){return e=Ui(e),wi(e,t,n)}function qi(){if(null!==Ri){var e=Ri;Ri=null,ki(e)}Hi()}function Hi(){if(!Mi&&null!==ji){Mi=!0;var e=0;try{var t=ji;Bi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),ji=null}catch(t){throw null!==ji&&(ji=ji.slice(e+1)),wi(Oi,qi),t}finally{Mi=!1}}}var Vi=w.ReactCurrentBatchConfig;function $i(e,t){if(e&&e.defaultProps){for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Qi=ii(null),Gi=null,Yi=null,Ki=null;function Xi(){Ki=Yi=Gi=null}function Ji(e){var t=Qi.current;ai(Qi),e.type._context._currentValue=t}function Zi(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ea(e,t){Gi=e,Ki=Yi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(zo=!0),e.firstContext=null)}function ta(e,t){if(Ki!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Ki=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Yi){if(null===Gi)throw Error(o(308));Yi=t,Gi.dependencies={lanes:0,firstContext:t,responders:null}}else Yi=Yi.next=t;return e._currentValue}var na=!1;function ra(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ia(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function aa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function oa(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function la(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?i=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?i=a=t:a=a.next=t}else i=a=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function sa(e,t,n,r){var a=e.updateQueue;na=!1;var o=a.firstBaseUpdate,l=a.lastBaseUpdate,s=a.shared.pending;if(null!==s){a.shared.pending=null;var u=s,c=u.next;u.next=null,null===l?o=c:l.next=c,l=u;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==l&&(null===d?f.firstBaseUpdate=c:d.next=c,f.lastBaseUpdate=u)}}if(null!==o){for(d=a.baseState,l=0,f=c=u=null;;){s=o.lane;var p=o.eventTime;if((r&s)===s){null!==f&&(f=f.next={eventTime:p,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var h=e,m=o;switch(s=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,s);break e}d=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null==(s="function"==typeof(h=m.payload)?h.call(p,d,s):h))break e;d=i({},d,s);break e;case 2:na=!0}}null!==o.callback&&(e.flags|=32,null===(s=a.effects)?a.effects=[o]:s.push(o))}else p={eventTime:p,lane:s,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===f?(c=f=p,u=d):f=f.next=p,l|=s;if(null===(o=o.next)){if(null===(s=a.shared.pending))break;o=s.next,s.next=null,a.lastBaseUpdate=s,a.shared.pending=null}}null===f&&(u=d),a.baseState=u,a.firstBaseUpdate=c,a.lastBaseUpdate=f,jl|=l,e.lanes=l,e.memoizedState=d}}function ua(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(o(191,i));i.call(r)}}}var ca=(new r.Component).refs;function fa(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var da={isMounted:function(e){return!!(e=e._reactInternals)&&Ye(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=as(),i=os(e),a=aa(r,i);a.payload=t,null!=n&&(a.callback=n),oa(e,a),ls(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=as(),i=os(e),a=aa(r,i);a.tag=1,a.payload=t,null!=n&&(a.callback=n),oa(e,a),ls(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=as(),r=os(e),i=aa(n,r);i.tag=2,null!=t&&(i.callback=t),oa(e,i),ls(e,r,n)}};function pa(e,t,n,r,i,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!t.prototype||!t.prototype.isPureReactComponent||(!sr(n,r)||!sr(i,a))}function ha(e,t,n){var r=!1,i=li,a=t.contextType;return"object"==typeof a&&null!==a?a=ta(a):(i=di(t)?ci:si.current,a=(r=null!=(r=t.contextTypes))?fi(e,i):li),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=da,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function ma(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&da.enqueueReplaceState(t,t.state,null)}function va(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=ca,ra(e);var a=t.contextType;"object"==typeof a&&null!==a?i.context=ta(a):(a=di(t)?ci:si.current,i.context=fi(e,a)),sa(e,n,i,r),i.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(fa(e,t,a,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&da.enqueueReplaceState(i,i.state,null),sa(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4)}var ga=Array.isArray;function ya(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===ca&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function ba(e,t){if("textarea"!==e.type)throw Error(o(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function _a(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=As(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function l(t){return e&&null===t.alternate&&(t.flags=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=qs(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=ya(e,t,n),r.return=e,r):((r=Us(n.type,n.key,n.props,null,e.mode,r)).ref=ya(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Hs(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=Bs(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=qs(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case k:return(n=Us(t.type,t.key,t.props,null,e.mode,n)).ref=ya(e,null,t),n.return=e,n;case E:return(t=Hs(t,e.mode,n)).return=e,t}if(ga(t)||W(t))return(t=Bs(t,e.mode,n,null)).return=e,t;ba(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===i?n.type===S?f(e,t,n.props.children,r,i):u(e,t,n,r):null;case E:return n.key===i?c(e,t,n,r):null}if(ga(n)||W(n))return null!==i?null:f(e,t,n,r,null);ba(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case k:return e=e.get(null===r.key?n:r.key)||null,r.type===S?f(t,e,r.props.children,i,r.key):u(t,e,r,i);case E:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(ga(r)||W(r))return f(t,e=e.get(n)||null,r,i,null);ba(t,r)}return null}function m(i,o,l,s){for(var u=null,c=null,f=o,m=o=0,v=null;null!==f&&m<l.length;m++){f.index>m?(v=f,f=null):v=f.sibling;var g=p(i,f,l[m],s);if(null===g){null===f&&(f=v);break}e&&f&&null===g.alternate&&t(i,f),o=a(g,o,m),null===c?u=g:c.sibling=g,c=g,f=v}if(m===l.length)return n(i,f),u;if(null===f){for(;m<l.length;m++)null!==(f=d(i,l[m],s))&&(o=a(f,o,m),null===c?u=f:c.sibling=f,c=f);return u}for(f=r(i,f);m<l.length;m++)null!==(v=h(f,i,m,l[m],s))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),o=a(v,o,m),null===c?u=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(i,e)})),u}function v(i,l,s,u){var c=W(s);if("function"!=typeof c)throw Error(o(150));if(null==(s=c.call(s)))throw Error(o(151));for(var f=c=null,m=l,v=l=0,g=null,y=s.next();null!==m&&!y.done;v++,y=s.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=p(i,m,y.value,u);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(i,m),l=a(b,l,v),null===f?c=b:f.sibling=b,f=b,m=g}if(y.done)return n(i,m),c;if(null===m){for(;!y.done;v++,y=s.next())null!==(y=d(i,y.value,u))&&(l=a(y,l,v),null===f?c=y:f.sibling=y,f=y);return c}for(m=r(i,m);!y.done;v++,y=s.next())null!==(y=h(m,i,v,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),l=a(y,l,v),null===f?c=y:f.sibling=y,f=y);return e&&m.forEach((function(e){return t(i,e)})),c}return function(e,r,a,s){var u="object"==typeof a&&null!==a&&a.type===S&&null===a.key;u&&(a=a.props.children);var c="object"==typeof a&&null!==a;if(c)switch(a.$$typeof){case k:e:{for(c=a.key,u=r;null!==u;){if(u.key===c){switch(u.tag){case 7:if(a.type===S){n(e,u.sibling),(r=i(u,a.props.children)).return=e,e=r;break e}break;default:if(u.elementType===a.type){n(e,u.sibling),(r=i(u,a.props)).ref=ya(e,u,a),r.return=e,e=r;break e}}n(e,u);break}t(e,u),u=u.sibling}a.type===S?((r=Bs(a.props.children,e.mode,s,a.key)).return=e,e=r):((s=Us(a.type,a.key,a.props,null,e.mode,s)).ref=ya(e,r,a),s.return=e,e=s)}return l(e);case E:e:{for(u=a.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=i(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Hs(a,e.mode,s)).return=e,e=r}return l(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,a)).return=e,e=r):(n(e,r),(r=qs(a,e.mode,s)).return=e,e=r),l(e);if(ga(a))return m(e,r,a,s);if(W(a))return v(e,r,a,s);if(c&&ba(e,a),void 0===a&&!u)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(o(152,Q(e.type)||"Component"))}return n(e,r)}}var wa=_a(!0),ka=_a(!1),Ea={},Sa=ii(Ea),xa=ii(Ea),Ca=ii(Ea);function Oa(e){if(e===Ea)throw Error(o(174));return e}function Ta(e,t){switch(oi(Ca,t),oi(xa,e),oi(Sa,Ea),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ai(Sa),oi(Sa,t)}function Pa(){ai(Sa),ai(xa),ai(Ca)}function La(e){Oa(Ca.current);var t=Oa(Sa.current),n=he(t,e.type);t!==n&&(oi(xa,e),oi(Sa,n))}function Na(e){xa.current===e&&(ai(Sa),ai(xa))}var za=ii(0);function Ia(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ja=null,Ra=null,Ma=!1;function Fa(e,t){var n=Fs(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Da(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Aa(e){if(Ma){var t=Ra;if(t){var n=t;if(!Da(e,t)){if(!(t=qr(n.nextSibling))||!Da(e,t))return e.flags=-1025&e.flags|2,Ma=!1,void(ja=e);Fa(ja,n)}ja=e,Ra=qr(t.firstChild)}else e.flags=-1025&e.flags|2,Ma=!1,ja=e}}function Ua(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ja=e}function Ba(e){if(e!==ja)return!1;if(!Ma)return Ua(e),Ma=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Ar(t,e.memoizedProps))for(t=Ra;t;)Fa(e,t),t=qr(t.nextSibling);if(Ua(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Ra=qr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Ra=null}}else Ra=ja?qr(e.stateNode.nextSibling):null;return!0}function Wa(){Ra=ja=null,Ma=!1}var qa=[];function Ha(){for(var e=0;e<qa.length;e++)qa[e]._workInProgressVersionPrimary=null;qa.length=0}var Va=w.ReactCurrentDispatcher,$a=w.ReactCurrentBatchConfig,Qa=0,Ga=null,Ya=null,Ka=null,Xa=!1,Ja=!1;function Za(){throw Error(o(321))}function eo(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!or(e[n],t[n]))return!1;return!0}function to(e,t,n,r,i,a){if(Qa=a,Ga=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Va.current=null===e||null===e.memoizedState?To:Po,e=n(r,i),Ja){a=0;do{if(Ja=!1,!(25>a))throw Error(o(301));a+=1,Ka=Ya=null,t.updateQueue=null,Va.current=Lo,e=n(r,i)}while(Ja)}if(Va.current=Oo,t=null!==Ya&&null!==Ya.next,Qa=0,Ka=Ya=Ga=null,Xa=!1,t)throw Error(o(300));return e}function no(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ka?Ga.memoizedState=Ka=e:Ka=Ka.next=e,Ka}function ro(){if(null===Ya){var e=Ga.alternate;e=null!==e?e.memoizedState:null}else e=Ya.next;var t=null===Ka?Ga.memoizedState:Ka.next;if(null!==t)Ka=t,Ya=e;else{if(null===e)throw Error(o(310));e={memoizedState:(Ya=e).memoizedState,baseState:Ya.baseState,baseQueue:Ya.baseQueue,queue:Ya.queue,next:null},null===Ka?Ga.memoizedState=Ka=e:Ka=Ka.next=e}return Ka}function io(e,t){return"function"==typeof t?t(e):t}function ao(e){var t=ro(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=Ya,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var l=i.next;i.next=a.next,a.next=l}r.baseQueue=i=a,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var s=l=a=null,u=i;do{var c=u.lane;if((Qa&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===s?(l=s=f,a=r):s=s.next=f,Ga.lanes|=c,jl|=c}u=u.next}while(null!==u&&u!==i);null===s?a=r:s.next=l,or(r,t.memoizedState)||(zo=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function oo(e){var t=ro(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var l=i=i.next;do{a=e(a,l.action),l=l.next}while(l!==i);or(a,t.memoizedState)||(zo=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function lo(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(Qa&e)===e)&&(t._workInProgressVersionPrimary=r,qa.push(t))),e)return n(t._source);throw qa.push(t),Error(o(350))}function so(e,t,n,r){var i=Cl;if(null===i)throw Error(o(349));var a=t._getVersion,l=a(t._source),s=Va.current,u=s.useState((function(){return lo(i,t,n)})),c=u[1],f=u[0];u=Ka;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var v=Ga;return e.memoizedState={refs:p,source:t,subscribe:r},s.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=a(t._source);if(!or(l,e)){e=n(t._source),or(f,e)||(c(e),e=os(v),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,o=e;0<o;){var s=31-qt(o),u=1<<s;r[s]|=e,o&=~u}}}),[n,t,r]),s.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=os(v);i.mutableReadLanes|=r&i.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),or(h,n)&&or(m,t)&&or(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:io,lastRenderedState:f}).dispatch=c=Co.bind(null,Ga,e),u.queue=e,u.baseQueue=null,f=lo(i,t,n),u.memoizedState=u.baseState=f),f}function uo(e,t,n){return so(ro(),e,t,n)}function co(e){var t=no();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:io,lastRenderedState:e}).dispatch=Co.bind(null,Ga,e),[t.memoizedState,e]}function fo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Ga.updateQueue)?(t={lastEffect:null},Ga.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function po(e){return e={current:e},no().memoizedState=e}function ho(){return ro().memoizedState}function mo(e,t,n,r){var i=no();Ga.flags|=e,i.memoizedState=fo(1|t,n,void 0,void 0===r?null:r)}function vo(e,t,n,r){var i=ro();r=void 0===r?null:r;var a=void 0;if(null!==Ya){var o=Ya.memoizedState;if(a=o.destroy,null!==r&&eo(r,o.deps))return void fo(t,n,a,r)}Ga.flags|=e,i.memoizedState=fo(1|t,n,a,r)}function go(e,t){return mo(516,4,e,t)}function yo(e,t){return vo(516,4,e,t)}function bo(e,t){return vo(4,2,e,t)}function _o(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function wo(e,t,n){return n=null!=n?n.concat([e]):null,vo(4,2,_o.bind(null,t,e),n)}function ko(){}function Eo(e,t){var n=ro();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&eo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function So(e,t){var n=ro();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&eo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function xo(e,t){var n=Ai();Bi(98>n?98:n,(function(){e(!0)})),Bi(97<n?97:n,(function(){var n=$a.transition;$a.transition=1;try{e(!1),t()}finally{$a.transition=n}}))}function Co(e,t,n){var r=as(),i=os(e),a={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(null===o?a.next=a:(a.next=o.next,o.next=a),t.pending=a,o=e.alternate,e===Ga||null!==o&&o===Ga)Ja=Xa=!0;else{if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var l=t.lastRenderedState,s=o(l,n);if(a.eagerReducer=o,a.eagerState=s,or(s,l))return}catch(e){}ls(e,i,r)}}var Oo={readContext:ta,useCallback:Za,useContext:Za,useEffect:Za,useImperativeHandle:Za,useLayoutEffect:Za,useMemo:Za,useReducer:Za,useRef:Za,useState:Za,useDebugValue:Za,useDeferredValue:Za,useTransition:Za,useMutableSource:Za,useOpaqueIdentifier:Za,unstable_isNewReconciler:!1},To={readContext:ta,useCallback:function(e,t){return no().memoizedState=[e,void 0===t?null:t],e},useContext:ta,useEffect:go,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,mo(4,2,_o.bind(null,t,e),n)},useLayoutEffect:function(e,t){return mo(4,2,e,t)},useMemo:function(e,t){var n=no();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=no();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Co.bind(null,Ga,e),[r.memoizedState,e]},useRef:po,useState:co,useDebugValue:ko,useDeferredValue:function(e){var t=co(e),n=t[0],r=t[1];return go((function(){var t=$a.transition;$a.transition=1;try{r(e)}finally{$a.transition=t}}),[e]),n},useTransition:function(){var e=co(!1),t=e[0];return po(e=xo.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=no();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},so(r,e,t,n)},useOpaqueIdentifier:function(){if(Ma){var e=!1,t=function(e){return{$$typeof:R,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Vr++).toString(36))),Error(o(355))})),n=co(t)[1];return 0==(2&Ga.mode)&&(Ga.flags|=516,fo(5,(function(){n("r:"+(Vr++).toString(36))}),void 0,null)),t}return co(t="r:"+(Vr++).toString(36)),t},unstable_isNewReconciler:!1},Po={readContext:ta,useCallback:Eo,useContext:ta,useEffect:yo,useImperativeHandle:wo,useLayoutEffect:bo,useMemo:So,useReducer:ao,useRef:ho,useState:function(){return ao(io)},useDebugValue:ko,useDeferredValue:function(e){var t=ao(io),n=t[0],r=t[1];return yo((function(){var t=$a.transition;$a.transition=1;try{r(e)}finally{$a.transition=t}}),[e]),n},useTransition:function(){var e=ao(io)[0];return[ho().current,e]},useMutableSource:uo,useOpaqueIdentifier:function(){return ao(io)[0]},unstable_isNewReconciler:!1},Lo={readContext:ta,useCallback:Eo,useContext:ta,useEffect:yo,useImperativeHandle:wo,useLayoutEffect:bo,useMemo:So,useReducer:oo,useRef:ho,useState:function(){return oo(io)},useDebugValue:ko,useDeferredValue:function(e){var t=oo(io),n=t[0],r=t[1];return yo((function(){var t=$a.transition;$a.transition=1;try{r(e)}finally{$a.transition=t}}),[e]),n},useTransition:function(){var e=oo(io)[0];return[ho().current,e]},useMutableSource:uo,useOpaqueIdentifier:function(){return oo(io)[0]},unstable_isNewReconciler:!1},No=w.ReactCurrentOwner,zo=!1;function Io(e,t,n,r){t.child=null===e?ka(t,null,n,r):wa(t,e.child,n,r)}function jo(e,t,n,r,i){n=n.render;var a=t.ref;return ea(t,i),r=to(e,t,n,r,a,i),null===e||zo?(t.flags|=1,Io(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,el(e,t,i))}function Ro(e,t,n,r,i,a){if(null===e){var o=n.type;return"function"!=typeof o||Ds(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Us(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Mo(e,t,o,r,i,a))}return o=e.child,0==(i&a)&&(i=o.memoizedProps,(n=null!==(n=n.compare)?n:sr)(i,r)&&e.ref===t.ref)?el(e,t,a):(t.flags|=1,(e=As(o,r)).ref=t.ref,e.return=t,t.child=e)}function Mo(e,t,n,r,i,a){if(null!==e&&sr(e.memoizedProps,r)&&e.ref===t.ref){if(zo=!1,0==(a&i))return t.lanes=e.lanes,el(e,t,a);0!=(16384&e.flags)&&(zo=!0)}return Ao(e,t,n,r,a)}function Fo(e,t,n){var r=t.pendingProps,i=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},ms(t,n);else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},ms(t,e),null;t.memoizedState={baseLanes:0},ms(t,null!==a?a.baseLanes:n)}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,ms(t,r);return Io(e,t,i,n),t.child}function Do(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Ao(e,t,n,r,i){var a=di(n)?ci:si.current;return a=fi(t,a),ea(t,i),n=to(e,t,n,r,a,i),null===e||zo?(t.flags|=1,Io(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,el(e,t,i))}function Uo(e,t,n,r,i){if(di(n)){var a=!0;vi(t)}else a=!1;if(ea(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),ha(t,n,r),va(t,n,r,i),r=!0;else if(null===e){var o=t.stateNode,l=t.memoizedProps;o.props=l;var s=o.context,u=n.contextType;"object"==typeof u&&null!==u?u=ta(u):u=fi(t,u=di(n)?ci:si.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;f||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(l!==r||s!==u)&&ma(t,o,r,u),na=!1;var d=t.memoizedState;o.state=d,sa(t,r,o,i),s=t.memoizedState,l!==r||d!==s||ui.current||na?("function"==typeof c&&(fa(t,n,c,r),s=t.memoizedState),(l=na||pa(t,n,l,r,d,s,u))?(f||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4)):("function"==typeof o.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=u,r=l):("function"==typeof o.componentDidMount&&(t.flags|=4),r=!1)}else{o=t.stateNode,ia(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:$i(t.type,l),o.props=u,f=t.pendingProps,d=o.context,"object"==typeof(s=n.contextType)&&null!==s?s=ta(s):s=fi(t,s=di(n)?ci:si.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(l!==f||d!==s)&&ma(t,o,r,s),na=!1,d=t.memoizedState,o.state=d,sa(t,r,o,i);var h=t.memoizedState;l!==f||d!==h||ui.current||na?("function"==typeof p&&(fa(t,n,p,r),h=t.memoizedState),(u=na||pa(t,n,u,r,d,h,s))?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,h,s),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof o.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),o.props=r,o.state=h,o.context=s,r=u):("function"!=typeof o.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Bo(e,t,n,r,a,i)}function Bo(e,t,n,r,i,a){Do(e,t);var o=0!=(64&t.flags);if(!r&&!o)return i&&gi(t,n,!1),el(e,t,a);r=t.stateNode,No.current=t;var l=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=wa(t,e.child,null,a),t.child=wa(t,null,l,a)):Io(e,t,l,a),t.memoizedState=r.state,i&&gi(t,n,!0),t.child}function Wo(e){var t=e.stateNode;t.pendingContext?hi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&hi(0,t.context,!1),Ta(e,t.containerInfo)}var qo,Ho,Vo,$o={dehydrated:null,retryLane:0};function Qo(e,t,n){var r,i=t.pendingProps,a=za.current,o=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(o=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),oi(za,1&a),null===e?(void 0!==i.fallback&&Aa(t),e=i.children,a=i.fallback,o?(e=Go(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=$o,e):"number"==typeof i.unstable_expectedLoadTime?(e=Go(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=$o,t.lanes=33554432,e):((n=Ws({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,o?(i=Ko(e,t,i.children,i.fallback,n),o=t.child,a=e.child.memoizedState,o.memoizedState=null===a?{baseLanes:n}:{baseLanes:a.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=$o,i):(n=Yo(e,t,i.children,n),t.memoizedState=null,n))}function Go(e,t,n,r){var i=e.mode,a=e.child;return t={mode:"hidden",children:t},0==(2&i)&&null!==a?(a.childLanes=0,a.pendingProps=t):a=Ws(t,i,0,null),n=Bs(n,i,r,null),a.return=e,n.return=e,a.sibling=n,e.child=a,n}function Yo(e,t,n,r){var i=e.child;return e=i.sibling,n=As(i,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Ko(e,t,n,r,i){var a=t.mode,o=e.child;e=o.sibling;var l={mode:"hidden",children:n};return 0==(2&a)&&t.child!==o?((n=t.child).childLanes=0,n.pendingProps=l,null!==(o=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=o,o.nextEffect=null):t.firstEffect=t.lastEffect=null):n=As(o,l),null!==e?r=As(e,r):(r=Bs(r,a,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Xo(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),Zi(e.return,t)}function Jo(e,t,n,r,i,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.lastEffect=a)}function Zo(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Io(e,t,r.children,n),0!=(2&(r=za.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Xo(e,n);else if(19===e.tag)Xo(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(oi(za,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Ia(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Jo(t,!1,i,n,a,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Ia(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Jo(t,!0,n,null,a,t.lastEffect);break;case"together":Jo(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function el(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),jl|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=As(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=As(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function tl(e,t){if(!Ma)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function nl(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return di(t.type)&&pi(),null;case 3:return Pa(),ai(ui),ai(si),Ha(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Ba(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Na(t);var a=Oa(Ca.current);if(n=t.type,null!==e&&null!=t.stateNode)Ho(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(o(166));return null}if(e=Oa(Sa.current),Ba(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Qr]=t,r[Gr]=l,n){case"dialog":xr("cancel",r),xr("close",r);break;case"iframe":case"object":case"embed":xr("load",r);break;case"video":case"audio":for(e=0;e<wr.length;e++)xr(wr[e],r);break;case"source":xr("error",r);break;case"img":case"image":case"link":xr("error",r),xr("load",r);break;case"details":xr("toggle",r);break;case"input":ee(r,l),xr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},xr("invalid",r);break;case"textarea":se(r,l),xr("invalid",r)}for(var u in Ee(n,l),e=null,l)l.hasOwnProperty(u)&&(a=l[u],"children"===u?"string"==typeof a?r.textContent!==a&&(e=["children",a]):"number"==typeof a&&r.textContent!==""+a&&(e=["children",""+a]):s.hasOwnProperty(u)&&null!=a&&"onScroll"===u&&xr("scroll",r));switch(n){case"input":K(r),re(r,l,!0);break;case"textarea":K(r),ce(r);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(r.onclick=Rr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(u=9===a.nodeType?a:a.ownerDocument,e===fe&&(e=pe(n)),e===fe?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[Qr]=t,e[Gr]=r,qo(e,t),t.stateNode=e,u=Se(n,r),n){case"dialog":xr("cancel",e),xr("close",e),a=r;break;case"iframe":case"object":case"embed":xr("load",e),a=r;break;case"video":case"audio":for(a=0;a<wr.length;a++)xr(wr[a],e);a=r;break;case"source":xr("error",e),a=r;break;case"img":case"image":case"link":xr("error",e),xr("load",e),a=r;break;case"details":xr("toggle",e),a=r;break;case"input":ee(e,r),a=Z(e,r),xr("invalid",e);break;case"option":a=ae(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=i({},r,{value:void 0}),xr("invalid",e);break;case"textarea":se(e,r),a=le(e,r),xr("invalid",e);break;default:a=r}Ee(n,a);var c=a;for(l in c)if(c.hasOwnProperty(l)){var f=c[l];"style"===l?we(e,f):"dangerouslySetInnerHTML"===l?null!=(f=f?f.__html:void 0)&&ve(e,f):"children"===l?"string"==typeof f?("textarea"!==n||""!==f)&&ge(e,f):"number"==typeof f&&ge(e,""+f):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(s.hasOwnProperty(l)?null!=f&&"onScroll"===l&&xr("scroll",e):null!=f&&_(e,l,f,u))}switch(n){case"input":K(e),re(e,r,!1);break;case"textarea":K(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+G(r.value));break;case"select":e.multiple=!!r.multiple,null!=(l=r.value)?oe(e,!!r.multiple,l,!1):null!=r.defaultValue&&oe(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=Rr)}Dr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Vo(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));n=Oa(Ca.current),Oa(Sa.current),Ba(t)?(r=t.stateNode,n=t.memoizedProps,r[Qr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Qr]=t,t.stateNode=r)}return null;case 13:return ai(za),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Ba(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&za.current)?0===Nl&&(Nl=3):(0!==Nl&&3!==Nl||(Nl=4),null===Cl||0==(134217727&jl)&&0==(134217727&Rl)||fs(Cl,Tl))),(r||n)&&(t.flags|=4),null);case 4:return Pa(),null===e&&Or(t.stateNode.containerInfo),null;case 10:return Ji(t),null;case 17:return di(t.type)&&pi(),null;case 19:if(ai(za),null===(r=t.memoizedState))return null;if(l=0!=(64&t.flags),null===(u=r.rendering))if(l)tl(r,!1);else{if(0!==Nl||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(u=Ia(e))){for(t.flags|=64,tl(r,!1),null!==(l=u.updateQueue)&&(t.updateQueue=l,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(l=n).flags&=2,l.nextEffect=null,l.firstEffect=null,l.lastEffect=null,null===(u=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=u.childLanes,l.lanes=u.lanes,l.child=u.child,l.memoizedProps=u.memoizedProps,l.memoizedState=u.memoizedState,l.updateQueue=u.updateQueue,l.type=u.type,e=u.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return oi(za,1&za.current|2),t.child}e=e.sibling}null!==r.tail&&Di()>Al&&(t.flags|=64,l=!0,tl(r,!1),t.lanes=33554432)}else{if(!l)if(null!==(e=Ia(u))){if(t.flags|=64,l=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),tl(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate&&!Ma)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Di()-r.renderingStartTime>Al&&1073741824!==n&&(t.flags|=64,l=!0,tl(r,!1),t.lanes=33554432);r.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=r.last)?n.sibling=u:t.child=u,r.last=u)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Di(),n.sibling=null,t=za.current,oi(za,l?1&t|2:1&t),n):null;case 23:case 24:return vs(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(o(156,t.tag))}function rl(e){switch(e.tag){case 1:di(e.type)&&pi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Pa(),ai(ui),ai(si),Ha(),0!=(64&(t=e.flags)))throw Error(o(285));return e.flags=-4097&t|64,e;case 5:return Na(e),null;case 13:return ai(za),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ai(za),null;case 4:return Pa(),null;case 10:return Ji(e),null;case 23:case 24:return vs(),null;default:return null}}function il(e,t){try{var n="",r=t;do{n+=$(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function al(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}qo=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ho=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,Oa(Sa.current);var o,l=null;switch(n){case"input":a=Z(e,a),r=Z(e,r),l=[];break;case"option":a=ae(e,a),r=ae(e,r),l=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),l=[];break;case"textarea":a=le(e,a),r=le(e,r),l=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(e.onclick=Rr)}for(f in Ee(n,r),n=null,a)if(!r.hasOwnProperty(f)&&a.hasOwnProperty(f)&&null!=a[f])if("style"===f){var u=a[f];for(o in u)u.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(s.hasOwnProperty(f)?l||(l=[]):(l=l||[]).push(f,null));for(f in r){var c=r[f];if(u=null!=a?a[f]:void 0,r.hasOwnProperty(f)&&c!==u&&(null!=c||null!=u))if("style"===f)if(u){for(o in u)!u.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&u[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(l||(l=[]),l.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(l=l||[]).push(f,c)):"children"===f?"string"!=typeof c&&"number"!=typeof c||(l=l||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(s.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&xr("scroll",e),l||u===c||(l=[])):"object"==typeof c&&null!==c&&c.$$typeof===R?c.toString():(l=l||[]).push(f,c))}n&&(l=l||[]).push("style",n);var f=l;(t.updateQueue=f)&&(t.flags|=4)}},Vo=function(e,t,n,r){n!==r&&(t.flags|=4)};var ol="function"==typeof WeakMap?WeakMap:Map;function ll(e,t,n){(n=aa(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ql||(ql=!0,Hl=r),al(0,t)},n}function sl(e,t,n){(n=aa(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return al(0,t),r(i)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Vl?Vl=new Set([this]):Vl.add(this),al(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var ul="function"==typeof WeakSet?WeakSet:Set;function cl(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Is(e,t)}else t.current=null}function fl(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:$i(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Wr(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(o(163))}function dl(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(Ls(n,e),Ps(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:$i(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&ua(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}ua(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Dr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&wt(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(o(163))}function pl(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,r.style.display=_e("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function hl(e,t){if(bi&&"function"==typeof bi.onCommitFiberUnmount)try{bi.onCommitFiberUnmount(yi,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))Ls(t,n);else{r=t;try{i()}catch(e){Is(r,e)}}n=n.next}while(n!==e)}break;case 1:if(cl(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Is(t,e)}break;case 5:cl(t);break;case 4:yl(e,t)}}function ml(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function vl(e){return 5===e.tag||3===e.tag||4===e.tag}function gl(e){e:{for(var t=e.return;null!==t;){if(vl(t))break e;t=t.return}throw Error(o(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(o(161))}16&n.flags&&(ge(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||vl(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,a=5===i||6===i;if(a)t=a?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=Rr));else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,a=5===i||6===i;if(a)t=a?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function yl(e,t){for(var n,r,i=t,a=!1;;){if(!a){a=i.return;e:for(;;){if(null===a)throw Error(o(160));switch(n=a.stateNode,a.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}a=a.return}a=!0}if(5===i.tag||6===i.tag){e:for(var l=e,s=i,u=s;;)if(hl(l,u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===s)break e;for(;null===u.sibling;){if(null===u.return||u.return===s)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}r?(l=n,s=i.stateNode,8===l.nodeType?l.parentNode.removeChild(s):l.removeChild(s)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(hl(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(a=!1)}i.sibling.return=i.return,i=i.sibling}}function bl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[Gr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Se(e,i),t=Se(e,r),i=0;i<a.length;i+=2){var l=a[i],s=a[i+1];"style"===l?we(n,s):"dangerouslySetInnerHTML"===l?ve(n,s):"children"===l?ge(n,s):_(n,l,s,t)}switch(e){case"input":ne(n,r);break;case"textarea":ue(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(a=r.value)?oe(n,!!r.multiple,a,!1):e!==!!r.multiple&&(null!=r.defaultValue?oe(n,!!r.multiple,r.defaultValue,!0):oe(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(o(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,wt(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(Dl=Di(),pl(t.child,!0)),void _l(t);case 19:return void _l(t);case 17:return;case 23:case 24:return void pl(t,null!==t.memoizedState)}throw Error(o(163))}function _l(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ul),t.forEach((function(t){var r=Rs.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function wl(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var kl=Math.ceil,El=w.ReactCurrentDispatcher,Sl=w.ReactCurrentOwner,xl=0,Cl=null,Ol=null,Tl=0,Pl=0,Ll=ii(0),Nl=0,zl=null,Il=0,jl=0,Rl=0,Ml=0,Fl=null,Dl=0,Al=1/0;function Ul(){Al=Di()+500}var Bl,Wl=null,ql=!1,Hl=null,Vl=null,$l=!1,Ql=null,Gl=90,Yl=[],Kl=[],Xl=null,Jl=0,Zl=null,es=-1,ts=0,ns=0,rs=null,is=!1;function as(){return 0!=(48&xl)?Di():-1!==es?es:es=Di()}function os(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Ai()?1:2;if(0===ts&&(ts=Il),0!==Vi.transition){0!==ns&&(ns=null!==Fl?Fl.pendingLanes:0),e=ts;var t=4186112&~ns;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Ai(),0!=(4&xl)&&98===e?e=At(12,ts):e=At(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ts),e}function ls(e,t,n){if(50<Jl)throw Jl=0,Zl=null,Error(o(185));if(null===(e=ss(e,t)))return null;Wt(e,t,n),e===Cl&&(Rl|=t,4===Nl&&fs(e,Tl));var r=Ai();1===t?0!=(8&xl)&&0==(48&xl)?ds(e):(us(e,n),0===xl&&(Ul(),qi())):(0==(4&xl)||98!==r&&99!==r||(null===Xl?Xl=new Set([e]):Xl.add(e)),us(e,n)),Fl=e}function ss(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function us(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,l=e.pendingLanes;0<l;){var s=31-qt(l),u=1<<s,c=a[s];if(-1===c){if(0==(u&r)||0!=(u&i)){c=t,Mt(u);var f=Rt;a[s]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=u);l&=~u}if(r=Ft(e,e===Cl?Tl:0),t=Rt,0===r)null!==n&&(n!==zi&&ki(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==zi&&ki(n)}15===t?(n=ds.bind(null,e),null===ji?(ji=[n],Ri=wi(Oi,Hi)):ji.push(n),n=zi):14===t?n=Wi(99,ds.bind(null,e)):n=Wi(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(o(358,e))}}(t),cs.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function cs(e){if(es=-1,ns=ts=0,0!=(48&xl))throw Error(o(327));var t=e.callbackNode;if(Ts()&&e.callbackNode!==t)return null;var n=Ft(e,e===Cl?Tl:0);if(0===n)return null;var r=n,i=xl;xl|=16;var a=bs();for(Cl===e&&Tl===r||(Ul(),gs(e,r));;)try{ks();break}catch(t){ys(e,t)}if(Xi(),El.current=a,xl=i,null!==Ol?r=0:(Cl=null,Tl=0,r=Nl),0!=(Il&Rl))gs(e,0);else if(0!==r){if(2===r&&(xl|=64,e.hydrate&&(e.hydrate=!1,Wr(e.containerInfo)),0!==(n=Dt(e))&&(r=_s(e,n))),1===r)throw t=zl,gs(e,0),fs(e,n),us(e,Di()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(o(345));case 2:xs(e);break;case 3:if(fs(e,n),(62914560&n)===n&&10<(r=Dl+500-Di())){if(0!==Ft(e,0))break;if(((i=e.suspendedLanes)&n)!==n){as(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ur(xs.bind(null,e),r);break}xs(e);break;case 4:if(fs(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var l=31-qt(n);a=1<<l,(l=r[l])>i&&(i=l),n&=~a}if(n=i,10<(n=(120>(n=Di()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*kl(n/1960))-n)){e.timeoutHandle=Ur(xs.bind(null,e),n);break}xs(e);break;case 5:xs(e);break;default:throw Error(o(329))}}return us(e,Di()),e.callbackNode===t?cs.bind(null,e):null}function fs(e,t){for(t&=~Ml,t&=~Rl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-qt(t),r=1<<n;e[n]=-1,t&=~r}}function ds(e){if(0!=(48&xl))throw Error(o(327));if(Ts(),e===Cl&&0!=(e.expiredLanes&Tl)){var t=Tl,n=_s(e,t);0!=(Il&Rl)&&(n=_s(e,t=Ft(e,t)))}else n=_s(e,t=Ft(e,0));if(0!==e.tag&&2===n&&(xl|=64,e.hydrate&&(e.hydrate=!1,Wr(e.containerInfo)),0!==(t=Dt(e))&&(n=_s(e,t))),1===n)throw n=zl,gs(e,0),fs(e,t),us(e,Di()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,xs(e),us(e,Di()),null}function ps(e,t){var n=xl;xl|=1;try{return e(t)}finally{0===(xl=n)&&(Ul(),qi())}}function hs(e,t){var n=xl;xl&=-2,xl|=8;try{return e(t)}finally{0===(xl=n)&&(Ul(),qi())}}function ms(e,t){oi(Ll,Pl),Pl|=t,Il|=t}function vs(){Pl=Ll.current,ai(Ll)}function gs(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Br(n)),null!==Ol)for(n=Ol.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&pi();break;case 3:Pa(),ai(ui),ai(si),Ha();break;case 5:Na(r);break;case 4:Pa();break;case 13:case 19:ai(za);break;case 10:Ji(r);break;case 23:case 24:vs()}n=n.return}Cl=e,Ol=As(e.current,null),Tl=Pl=Il=t,Nl=0,zl=null,Ml=Rl=jl=0}function ys(e,t){for(;;){var n=Ol;try{if(Xi(),Va.current=Oo,Xa){for(var r=Ga.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}Xa=!1}if(Qa=0,Ka=Ya=Ga=null,Ja=!1,Sl.current=null,null===n||null===n.return){Nl=1,zl=t,Ol=null;break}e:{var a=e,o=n.return,l=n,s=t;if(t=Tl,l.flags|=2048,l.firstEffect=l.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var u=s;if(0==(2&l.mode)){var c=l.alternate;c?(l.updateQueue=c.updateQueue,l.memoizedState=c.memoizedState,l.lanes=c.lanes):(l.updateQueue=null,l.memoizedState=null)}var f=0!=(1&za.current),d=o;do{var p;if(p=13===d.tag){var h=d.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var m=d.memoizedProps;p=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!f)}}if(p){var v=d.updateQueue;if(null===v){var g=new Set;g.add(u),d.updateQueue=g}else v.add(u);if(0==(2&d.mode)){if(d.flags|=64,l.flags|=16384,l.flags&=-2981,1===l.tag)if(null===l.alternate)l.tag=17;else{var y=aa(-1,1);y.tag=2,oa(l,y)}l.lanes|=1;break e}s=void 0,l=t;var b=a.pingCache;if(null===b?(b=a.pingCache=new ol,s=new Set,b.set(u,s)):void 0===(s=b.get(u))&&(s=new Set,b.set(u,s)),!s.has(l)){s.add(l);var _=js.bind(null,a,u,l);u.then(_,_)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);s=Error((Q(l.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Nl&&(Nl=2),s=il(s,l),d=o;do{switch(d.tag){case 3:a=s,d.flags|=4096,t&=-t,d.lanes|=t,la(d,ll(0,a,t));break e;case 1:a=s;var w=d.type,k=d.stateNode;if(0==(64&d.flags)&&("function"==typeof w.getDerivedStateFromError||null!==k&&"function"==typeof k.componentDidCatch&&(null===Vl||!Vl.has(k)))){d.flags|=4096,t&=-t,d.lanes|=t,la(d,sl(d,a,t));break e}}d=d.return}while(null!==d)}Ss(n)}catch(e){t=e,Ol===n&&null!==n&&(Ol=n=n.return);continue}break}}function bs(){var e=El.current;return El.current=Oo,null===e?Oo:e}function _s(e,t){var n=xl;xl|=16;var r=bs();for(Cl===e&&Tl===t||gs(e,t);;)try{ws();break}catch(t){ys(e,t)}if(Xi(),xl=n,El.current=r,null!==Ol)throw Error(o(261));return Cl=null,Tl=0,Nl}function ws(){for(;null!==Ol;)Es(Ol)}function ks(){for(;null!==Ol&&!Ei();)Es(Ol)}function Es(e){var t=Bl(e.alternate,e,Pl);e.memoizedProps=e.pendingProps,null===t?Ss(e):Ol=t,Sl.current=null}function Ss(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=nl(n,t,Pl)))return void(Ol=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Pl)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=rl(t)))return n.flags&=2047,void(Ol=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Ol=t);Ol=t=e}while(null!==t);0===Nl&&(Nl=5)}function xs(e){var t=Ai();return Bi(99,Cs.bind(null,e,t)),null}function Cs(e,t){do{Ts()}while(null!==Ql);if(0!=(48&xl))throw Error(o(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,a=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var l=e.eventTimes,s=e.expirationTimes;0<a;){var u=31-qt(a),c=1<<u;i[u]=0,l[u]=-1,s[u]=-1,a&=~c}if(null!==Xl&&0==(24&r)&&Xl.has(e)&&Xl.delete(e),e===Cl&&(Ol=Cl=null,Tl=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=xl,xl|=32,Sl.current=null,Mr=Gt,dr(l=fr())){if("selectionStart"in l)s={start:l.selectionStart,end:l.selectionEnd};else e:if(s=(s=l.ownerDocument)&&s.defaultView||window,(c=s.getSelection&&s.getSelection())&&0!==c.rangeCount){s=c.anchorNode,a=c.anchorOffset,u=c.focusNode,c=c.focusOffset;try{s.nodeType,u.nodeType}catch(e){s=null;break e}var f=0,d=-1,p=-1,h=0,m=0,v=l,g=null;t:for(;;){for(var y;v!==s||0!==a&&3!==v.nodeType||(d=f+a),v!==u||0!==c&&3!==v.nodeType||(p=f+c),3===v.nodeType&&(f+=v.nodeValue.length),null!==(y=v.firstChild);)g=v,v=y;for(;;){if(v===l)break t;if(g===s&&++h===a&&(d=f),g===u&&++m===c&&(p=f),null!==(y=v.nextSibling))break;g=(v=g).parentNode}v=y}s=-1===d||-1===p?null:{start:d,end:p}}else s=null;s=s||{start:0,end:0}}else s=null;Fr={focusedElem:l,selectionRange:s},Gt=!1,rs=null,is=!1,Wl=r;do{try{Os()}catch(e){if(null===Wl)throw Error(o(330));Is(Wl,e),Wl=Wl.nextEffect}}while(null!==Wl);rs=null,Wl=r;do{try{for(l=e;null!==Wl;){var b=Wl.flags;if(16&b&&ge(Wl.stateNode,""),128&b){var _=Wl.alternate;if(null!==_){var w=_.ref;null!==w&&("function"==typeof w?w(null):w.current=null)}}switch(1038&b){case 2:gl(Wl),Wl.flags&=-3;break;case 6:gl(Wl),Wl.flags&=-3,bl(Wl.alternate,Wl);break;case 1024:Wl.flags&=-1025;break;case 1028:Wl.flags&=-1025,bl(Wl.alternate,Wl);break;case 4:bl(Wl.alternate,Wl);break;case 8:yl(l,s=Wl);var k=s.alternate;ml(s),null!==k&&ml(k)}Wl=Wl.nextEffect}}catch(e){if(null===Wl)throw Error(o(330));Is(Wl,e),Wl=Wl.nextEffect}}while(null!==Wl);if(w=Fr,_=fr(),b=w.focusedElem,l=w.selectionRange,_!==b&&b&&b.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(b.ownerDocument.documentElement,b)){null!==l&&dr(b)&&(_=l.start,void 0===(w=l.end)&&(w=_),"selectionStart"in b?(b.selectionStart=_,b.selectionEnd=Math.min(w,b.value.length)):(w=(_=b.ownerDocument||document)&&_.defaultView||window).getSelection&&(w=w.getSelection(),s=b.textContent.length,k=Math.min(l.start,s),l=void 0===l.end?k:Math.min(l.end,s),!w.extend&&k>l&&(s=l,l=k,k=s),s=cr(b,k),a=cr(b,l),s&&a&&(1!==w.rangeCount||w.anchorNode!==s.node||w.anchorOffset!==s.offset||w.focusNode!==a.node||w.focusOffset!==a.offset)&&((_=_.createRange()).setStart(s.node,s.offset),w.removeAllRanges(),k>l?(w.addRange(_),w.extend(a.node,a.offset)):(_.setEnd(a.node,a.offset),w.addRange(_))))),_=[];for(w=b;w=w.parentNode;)1===w.nodeType&&_.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<_.length;b++)(w=_[b]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Gt=!!Mr,Fr=Mr=null,e.current=n,Wl=r;do{try{for(b=e;null!==Wl;){var E=Wl.flags;if(36&E&&dl(b,Wl.alternate,Wl),128&E){_=void 0;var S=Wl.ref;if(null!==S){var x=Wl.stateNode;switch(Wl.tag){case 5:_=x;break;default:_=x}"function"==typeof S?S(_):S.current=_}}Wl=Wl.nextEffect}}catch(e){if(null===Wl)throw Error(o(330));Is(Wl,e),Wl=Wl.nextEffect}}while(null!==Wl);Wl=null,Ii(),xl=i}else e.current=n;if($l)$l=!1,Ql=e,Gl=t;else for(Wl=r;null!==Wl;)t=Wl.nextEffect,Wl.nextEffect=null,8&Wl.flags&&((E=Wl).sibling=null,E.stateNode=null),Wl=t;if(0===(r=e.pendingLanes)&&(Vl=null),1===r?e===Zl?Jl++:(Jl=0,Zl=e):Jl=0,n=n.stateNode,bi&&"function"==typeof bi.onCommitFiberRoot)try{bi.onCommitFiberRoot(yi,n,void 0,64==(64&n.current.flags))}catch(e){}if(us(e,Di()),ql)throw ql=!1,e=Hl,Hl=null,e;return 0!=(8&xl)||qi(),null}function Os(){for(;null!==Wl;){var e=Wl.alternate;is||null===rs||(0!=(8&Wl.flags)?Ze(Wl,rs)&&(is=!0):13===Wl.tag&&wl(e,Wl)&&Ze(Wl,rs)&&(is=!0));var t=Wl.flags;0!=(256&t)&&fl(e,Wl),0==(512&t)||$l||($l=!0,Wi(97,(function(){return Ts(),null}))),Wl=Wl.nextEffect}}function Ts(){if(90!==Gl){var e=97<Gl?97:Gl;return Gl=90,Bi(e,Ns)}return!1}function Ps(e,t){Yl.push(t,e),$l||($l=!0,Wi(97,(function(){return Ts(),null})))}function Ls(e,t){Kl.push(t,e),$l||($l=!0,Wi(97,(function(){return Ts(),null})))}function Ns(){if(null===Ql)return!1;var e=Ql;if(Ql=null,0!=(48&xl))throw Error(o(331));var t=xl;xl|=32;var n=Kl;Kl=[];for(var r=0;r<n.length;r+=2){var i=n[r],a=n[r+1],l=i.destroy;if(i.destroy=void 0,"function"==typeof l)try{l()}catch(e){if(null===a)throw Error(o(330));Is(a,e)}}for(n=Yl,Yl=[],r=0;r<n.length;r+=2){i=n[r],a=n[r+1];try{var s=i.create;i.destroy=s()}catch(e){if(null===a)throw Error(o(330));Is(a,e)}}for(s=e.current.firstEffect;null!==s;)e=s.nextEffect,s.nextEffect=null,8&s.flags&&(s.sibling=null,s.stateNode=null),s=e;return xl=t,qi(),!0}function zs(e,t,n){oa(e,t=ll(0,t=il(n,t),1)),t=as(),null!==(e=ss(e,1))&&(Wt(e,1,t),us(e,t))}function Is(e,t){if(3===e.tag)zs(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){zs(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Vl||!Vl.has(r))){var i=sl(n,e=il(t,e),1);if(oa(n,i),i=as(),null!==(n=ss(n,1)))Wt(n,1,i),us(n,i);else if("function"==typeof r.componentDidCatch&&(null===Vl||!Vl.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function js(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=as(),e.pingedLanes|=e.suspendedLanes&n,Cl===e&&(Tl&n)===n&&(4===Nl||3===Nl&&(62914560&Tl)===Tl&&500>Di()-Dl?gs(e,0):Ml|=n),us(e,t)}function Rs(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Ai()?1:2:(0===ts&&(ts=Il),0===(t=Ut(62914560&~ts))&&(t=4194304))),n=as(),null!==(e=ss(e,t))&&(Wt(e,t,n),us(e,n))}function Ms(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Fs(e,t,n,r){return new Ms(e,t,n,r)}function Ds(e){return!(!(e=e.prototype)||!e.isReactComponent)}function As(e,t){var n=e.alternate;return null===n?((n=Fs(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Us(e,t,n,r,i,a){var l=2;if(r=e,"function"==typeof e)Ds(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case S:return Bs(n.children,i,a,t);case M:l=8,i|=16;break;case x:l=8,i|=1;break;case C:return(e=Fs(12,n,t,8|i)).elementType=C,e.type=C,e.lanes=a,e;case L:return(e=Fs(13,n,t,i)).type=L,e.elementType=L,e.lanes=a,e;case N:return(e=Fs(19,n,t,i)).elementType=N,e.lanes=a,e;case F:return Ws(n,i,a,t);case D:return(e=Fs(24,n,t,i)).elementType=D,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:l=10;break e;case T:l=9;break e;case P:l=11;break e;case z:l=14;break e;case I:l=16,r=null;break e;case j:l=22;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Fs(l,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Bs(e,t,n,r){return(e=Fs(7,e,r,t)).lanes=n,e}function Ws(e,t,n,r){return(e=Fs(23,e,r,t)).elementType=F,e.lanes=n,e}function qs(e,t,n){return(e=Fs(6,e,null,t)).lanes=n,e}function Hs(e,t,n){return(t=Fs(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vs(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Bt(0),this.expirationTimes=Bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.mutableSourceEagerHydrationData=null}function $s(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:E,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Qs(e,t,n,r){var i=t.current,a=as(),l=os(i);e:if(n){t:{if(Ye(n=n._reactInternals)!==n||1!==n.tag)throw Error(o(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(di(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(o(171))}if(1===n.tag){var u=n.type;if(di(u)){n=mi(n,u,s);break e}}n=s}else n=li;return null===t.context?t.context=n:t.pendingContext=n,(t=aa(a,l)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),oa(i,t),ls(i,l,a),l}function Gs(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Ys(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Ks(e,t){Ys(e,t),(e=e.alternate)&&Ys(e,t)}function Xs(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Vs(e,t,null!=n&&!0===n.hydrate),t=Fs(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ra(t),e[Yr]=n.current,Or(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function Js(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zs(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a._internalRoot;if("function"==typeof i){var l=i;i=function(){var e=Gs(o);l.call(e)}}Qs(t,o,e,i)}else{if(a=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Xs(e,0,t?{hydrate:!0}:void 0)}(n,r),o=a._internalRoot,"function"==typeof i){var s=i;i=function(){var e=Gs(o);s.call(e)}}hs((function(){Qs(t,o,e,i)}))}return Gs(o)}function eu(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Js(t))throw Error(o(200));return $s(e,t,null,n)}Bl=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||ui.current)zo=!0;else{if(0==(n&r)){switch(zo=!1,t.tag){case 3:Wo(t),Wa();break;case 5:La(t);break;case 1:di(t.type)&&vi(t);break;case 4:Ta(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;oi(Qi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Qo(e,t,n):(oi(za,1&za.current),null!==(t=el(e,t,n))?t.sibling:null);oi(za,1&za.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return Zo(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),oi(za,za.current),r)break;return null;case 23:case 24:return t.lanes=0,Fo(e,t,n)}return el(e,t,n)}zo=0!=(16384&e.flags)}else zo=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=fi(t,si.current),ea(t,n),i=to(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,di(r)){var a=!0;vi(t)}else a=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,ra(t);var l=r.getDerivedStateFromProps;"function"==typeof l&&fa(t,r,l,e),i.updater=da,t.stateNode=i,i._reactInternals=t,va(t,r,e,n),t=Bo(null,t,r,!0,a,n)}else t.tag=0,Io(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(a=i._init)(i._payload),t.type=i,a=t.tag=function(e){if("function"==typeof e)return Ds(e)?1:0;if(null!=e){if((e=e.$$typeof)===P)return 11;if(e===z)return 14}return 2}(i),e=$i(i,e),a){case 0:t=Ao(null,t,i,e,n);break e;case 1:t=Uo(null,t,i,e,n);break e;case 11:t=jo(null,t,i,e,n);break e;case 14:t=Ro(null,t,i,$i(i.type,e),r,n);break e}throw Error(o(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Ao(e,t,r,i=t.elementType===r?i:$i(r,i),n);case 1:return r=t.type,i=t.pendingProps,Uo(e,t,r,i=t.elementType===r?i:$i(r,i),n);case 3:if(Wo(t),r=t.updateQueue,null===e||null===r)throw Error(o(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,ia(e,t),sa(t,r,null,n),(r=t.memoizedState.element)===i)Wa(),t=el(e,t,n);else{if((a=(i=t.stateNode).hydrate)&&(Ra=qr(t.stateNode.containerInfo.firstChild),ja=t,a=Ma=!0),a){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(a=e[i])._workInProgressVersionPrimary=e[i+1],qa.push(a);for(n=ka(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Io(e,t,r,n),Wa();t=t.child}return t;case 5:return La(t),null===e&&Aa(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,l=i.children,Ar(r,i)?l=null:null!==a&&Ar(r,a)&&(t.flags|=16),Do(e,t),Io(e,t,l,n),t.child;case 6:return null===e&&Aa(t),null;case 13:return Qo(e,t,n);case 4:return Ta(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=wa(t,null,r,n):Io(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,jo(e,t,r,i=t.elementType===r?i:$i(r,i),n);case 7:return Io(e,t,t.pendingProps,n),t.child;case 8:case 12:return Io(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,l=t.memoizedProps,a=i.value;var s=t.type._context;if(oi(Qi,s._currentValue),s._currentValue=a,null!==l)if(s=l.value,0===(a=or(s,a)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(s,a):1073741823))){if(l.children===i.children&&!ui.current){t=el(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var u=s.dependencies;if(null!==u){l=s.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&a)){1===s.tag&&((c=aa(-1,n&-n)).tag=2,oa(s,c)),s.lanes|=n,null!==(c=s.alternate)&&(c.lanes|=n),Zi(s.return,n),u.lanes|=n;break}c=c.next}}else l=10===s.tag&&s.type===t.type?null:s.child;if(null!==l)l.return=s;else for(l=s;null!==l;){if(l===t){l=null;break}if(null!==(s=l.sibling)){s.return=l.return,l=s;break}l=l.return}s=l}Io(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(a=t.pendingProps).children,ea(t,n),r=r(i=ta(i,a.unstable_observedBits)),t.flags|=1,Io(e,t,r,n),t.child;case 14:return a=$i(i=t.type,t.pendingProps),Ro(e,t,i,a=$i(i.type,a),r,n);case 15:return Mo(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:$i(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,di(r)?(e=!0,vi(t)):e=!1,ea(t,n),ha(t,r,i),va(t,r,i,n),Bo(null,t,r,!0,e,n);case 19:return Zo(e,t,n);case 23:case 24:return Fo(e,t,n)}throw Error(o(156,t.tag))},Xs.prototype.render=function(e){Qs(e,this._internalRoot,null,null)},Xs.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Qs(null,e,null,(function(){t[Yr]=null}))},et=function(e){13===e.tag&&(ls(e,4,as()),Ks(e,4))},tt=function(e){13===e.tag&&(ls(e,67108864,as()),Ks(e,67108864))},nt=function(e){if(13===e.tag){var t=as(),n=os(e);ls(e,n,t),Ks(e,n)}},rt=function(e,t){return t()},Ce=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ei(r);if(!i)throw Error(o(90));X(r),ne(r,i)}}}break;case"textarea":ue(e,n);break;case"select":null!=(t=n.value)&&oe(e,!!n.multiple,t,!1)}},ze=ps,Ie=function(e,t,n,r,i){var a=xl;xl|=4;try{return Bi(98,e.bind(null,t,n,r,i))}finally{0===(xl=a)&&(Ul(),qi())}},je=function(){0==(49&xl)&&(function(){if(null!==Xl){var e=Xl;Xl=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,us(e,Di())}))}qi()}(),Ts())},Re=function(e,t){var n=xl;xl|=2;try{return e(t)}finally{0===(xl=n)&&(Ul(),qi())}};var tu={Events:[Jr,Zr,ei,Le,Ne,Ts,{current:!1}]},nu={findFiberByHostInstance:Xr,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},ru={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var iu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!iu.isDisabled&&iu.supportsFiber)try{yi=iu.inject(ru),bi=iu}catch(e){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=eu,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw Error(o(268,Object.keys(e)))}return e=null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=xl;if(0!=(48&n))return e(t);xl|=1;try{if(e)return Bi(99,e.bind(null,t))}finally{xl=n,qi()}},t.hydrate=function(e,t,n){if(!Js(t))throw Error(o(200));return Zs(null,e,t,!0,n)},t.render=function(e,t,n){if(!Js(t))throw Error(o(200));return Zs(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Js(e))throw Error(o(40));return!!e._reactRootContainer&&(hs((function(){Zs(null,null,e,!1,(function(){e._reactRootContainer=null,e[Yr]=null}))})),!0)},t.unstable_batchedUpdates=ps,t.unstable_createPortal=function(e,t){return eu(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Js(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return Zs(e,t,n,!1,r)},t.version="17.0.2"},function(e,t,n){"use strict";e.exports=n(25)},function(e,t,n){"use strict";
33
  /** @license React v0.20.2
34
  * scheduler.production.min.js
35
  *
@@ -37,24 +37,24 @@ object-assign
37
  *
38
  * This source code is licensed under the MIT license found in the
39
  * LICENSE file in the root directory of this source tree.
40
- */var r,i,a,o;if("object"==typeof performance&&"function"==typeof performance.now){var l=performance;t.unstable_now=function(){return l.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,f=null,d=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(d,0),e}};r=function(e){null!==c?setTimeout(r,0,e):(c=e,setTimeout(d,0))},i=function(e,t){f=setTimeout(e,t)},a=function(){clearTimeout(f)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var v=!1,g=null,y=-1,b=5,_=0;t.unstable_shouldYield=function(){return t.unstable_now()>=_},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):b=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,k=w.port2;w.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();_=e+b;try{g(!0,e)?k.postMessage(null):(v=!1,g=null)}catch(e){throw k.postMessage(null),e}}else v=!1},r=function(e){g=e,v||(v=!0,k.postMessage(null))},i=function(e,n){y=p((function(){e(t.unstable_now())}),n)},a=function(){h(y),y=-1}}function E(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<C(i,t)))break e;e[r]=t,e[n]=i,n=r}}function S(e){return void 0===(e=e[0])?null:e}function x(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var a=2*(r+1)-1,o=e[a],l=a+1,s=e[l];if(void 0!==o&&0>C(o,n))void 0!==s&&0>C(s,o)?(e[r]=s,e[l]=n,r=l):(e[r]=o,e[a]=n,r=a);else{if(!(void 0!==s&&0>C(s,n)))break e;e[r]=s,e[l]=n,r=l}}}return t}return null}function C(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var O=[],T=[],P=1,L=null,N=3,z=!1,I=!1,j=!1;function R(e){for(var t=S(T);null!==t;){if(null===t.callback)x(T);else{if(!(t.startTime<=e))break;x(T),t.sortIndex=t.expirationTime,E(O,t)}t=S(T)}}function M(e){if(j=!1,R(e),!I)if(null!==S(O))I=!0,r(F);else{var t=S(T);null!==t&&i(M,t.startTime-e)}}function F(e,n){I=!1,j&&(j=!1,a()),z=!0;var r=N;try{for(R(n),L=S(O);null!==L&&(!(L.expirationTime>n)||e&&!t.unstable_shouldYield());){var o=L.callback;if("function"==typeof o){L.callback=null,N=L.priorityLevel;var l=o(L.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?L.callback=l:L===S(O)&&x(O),R(n)}else x(O);L=S(O)}if(null!==L)var s=!0;else{var u=S(T);null!==u&&i(M,u.startTime-n),s=!1}return s}finally{L=null,N=r,z=!1}}var D=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){I||z||(I=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return N},t.unstable_getFirstCallbackNode=function(){return S(O)},t.unstable_next=function(e){switch(N){case 1:case 2:case 3:var t=3;break;default:t=N}var n=N;N=t;try{return e()}finally{N=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=D,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=N;N=e;try{return t()}finally{N=n}},t.unstable_scheduleCallback=function(e,n,o){var l=t.unstable_now();switch("object"==typeof o&&null!==o?o="number"==typeof(o=o.delay)&&0<o?l+o:l:o=l,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:P++,callback:n,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>l?(e.sortIndex=o,E(T,e),null===S(O)&&e===S(T)&&(j?a():j=!0,i(M,o-l))):(e.sortIndex=s,E(O,e),I||z||(I=!0,r(F))),e},t.unstable_wrapCallback=function(e){var t=N;return function(){var n=N;N=t;try{return e.apply(this,arguments)}finally{N=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,a=void 0;try{for(var o,l=e[Symbol.iterator]();!(r=(o=l.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(i)throw a}}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}}(),a=S(n(27)),o=S(n(0)),l=S(n(2)),s=S(n(32)),u=S(n(5)),c=S(n(20)),f=S(n(33)),d=n(34),p=S(d),h=S(n(35)),m=S(n(36)),v=S(n(60)),g=S(n(61)),y=S(n(63)),b=S(n(64)),_=S(n(65)),w=S(n(66)),k=S(n(69)),E=S(n(70));function S(e){return e&&e.__esModule?e:{default:e}}var x=n(71),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.providers=["Unsplash","Pixabay"],n.provider=n.props.provider,n.api_provider=l.default[n.provider],n.arr_key=n.api_provider.arr_key,n.api_key=instant_img_localize[n.provider+"_app_id"],n.api_url=""+n.api_provider.photo_api+n.api_provider.api_query_var+n.api_key+l.default.defaults.posts_per_page,n.search_api_url=""+n.api_provider.search_api+n.api_provider.api_query_var+n.api_key+l.default.defaults.posts_per_page,n.results=(0,p.default)(n.provider,n.arr_key,n.props.results),n.state={results:n.results,filters:s.default[n.provider].filters,search_filters:s.default[n.provider].search,restapi_error:!1,api_lightbox:!1},n.filters={},n.search_filters={},n.orderby=n.props.orderby,n.page=n.props.page,n.is_search=!1,n.search_term="",n.total_results=0,n.view="",n.isLoading=!1,n.isDone=!1,n.errorMsg="",n.msnry="",n.tooltipInterval="",n.delay=250,n.photoTarget=o.default.createRef(),n.providerNav=o.default.createRef(),n.controlNav=o.default.createRef(),n.photoSearch=o.default.createRef(),n.filterGroups=o.default.createRef(),n.editor=n.props.editor?n.props.editor:"classic",n.is_block_editor="gutenberg"===n.props.editor,n.is_media_router="media-router"===n.props.editor,n.SetFeaturedImage=n.props.SetFeaturedImage?n.props.SetFeaturedImage.bind(n):"",n.InsertImage=n.props.InsertImage?n.props.InsertImage.bind(n):"",n.is_block_editor?(n.container=document.querySelector("body"),n.container.classList.add("loading"),n.wrapper=document.querySelector("body")):(n.container=n.props.container.closest(".instant-img-container"),n.wrapper=n.props.container.closest(".instant-images-wrapper"),n.container.classList.add("loading")),n}var n,S;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:"test",value:function(){var e=this,t=instant_img_localize.root+"instant-images/test/",n=new XMLHttpRequest;n.open("POST",t,!0),n.setRequestHeader("X-WP-Nonce",instant_img_localize.nonce),n.setRequestHeader("Content-Type","application/json"),n.send(),n.onload=function(){n.status>=200&&n.status<400?JSON.parse(n.response).success||e.setState({restapi_error:!0}):e.setState({restapi_error:!0})},n.onerror=function(t){console.log(t),e.setState({restapi_error:!0})}}},{key:"search",value:function(e){e.preventDefault();var t=this.photoSearch.current,n=t.value;n.length>2?(t.classList.add("searching"),this.container.classList.add("loading"),this.search_term=n,this.is_search=!0,this.doSearch(this.search_term)):t.focus()}},{key:"doSearch",value:function(e){var t=this,n=this.photoSearch.current,r="term";this.photoTarget.current.classList.add("loading"),this.isLoading=!0,this.page=1,this.toggleFilters();var i=this.search_api_url+"&page="+this.page+"&"+this.api_provider.search_query_var+"="+this.search_term+(0,c.default)(this.provider);"id:"===e.substring(0,3)&&(r="id",e=e.replace("id:",""),i=(0,h.default)(this.provider,e,this.api_provider.photo_api,this.api_provider.api_query_var,this.api_key));var a=(0,f.default)(this.search_filters);i="&"!==a?""+i+a:i,fetch(i).then((function(e){return e.json()})).then((function(e){if("term"===r){var i=(0,p.default)(t.provider,t.arr_key,e,!0);t.total_results=e.total,t.checkTotalResults(i.length),t.results=i,t.setState({results:t.results,search_filters:s.default[t.provider].search})}if("id"===r&&e){var a=[],o=(0,d.getResultById)(t.provider,t.arr_key,e,!0);e.errors?(t.total_results=0,t.checkTotalResults("0")):(a.push(o),t.total_results=1,t.checkTotalResults("1")),t.results=a,t.setState({results:t.results})}setTimeout((function(){n.classList.remove("searching"),t.photoTarget.current.classList.remove("loading"),t.isLoading=!1}),t.delay)})).catch((function(e){console.log(e),n.classList.remove("searching"),t.isLoading=!1,t.total_results=0,t.isDone=!0,this.photoTarget.current.classList.remove("loading"),this.isLoading=!1,t.results=[],t.setState({results:t.results})}))}},{key:"clearSearch",value:function(){this.photoSearch.current.value="",this.total_results=0,this.is_search=!1,this.search_term="",this.search_filters={},this.toggleFilters()}},{key:"controlsClick",value:function(e,t){var n=e.currentTarget;this.view=t,n.classList.contains("active")||this.getPhotos(t)}},{key:"getPhotos",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=this;if(!this.isLoading||t){this.photoTarget.current.classList.add("loading"),this.isLoading=!0,this.page=1,this.orderby=e,this.results=[],this.clearSearch();var i=(0,f.default)(this.filters),a=this.api_url+"&page="+this.page+"&"+(0,c.default)(this.provider)+i;fetch(a).then((function(e){return e.json()})).then((function(e){var t=(0,p.default)(r.provider,r.arr_key,e);r.checkTotalResults(t.length),r.results=t,n?r.setState({results:t,filters:s.default[r.provider].filters}):r.setState({results:t}),setTimeout((function(){r.photoTarget.current.classList.remove("loading"),r.isLoading=!1}),r.delay)})).catch((function(e){console.log(e),r.photoTarget.current.classList.remove("loading"),r.isLoading=!1}))}}},{key:"loadMorePhotos",value:function(){var e=this;this.page=parseInt(this.page)+1,this.container.classList.add("loading"),this.isLoading=!0;var t=this.api_url+"&page="+this.page+"&",n="";this.is_search?(t=this.search_api_url+"&page="+this.page+"&"+this.api_provider.search_query_var+"="+this.search_term,n=(0,f.default)(this.search_filters)):n=(0,f.default)(this.filters),t=n?""+t+(0,c.default)(this.provider)+n:t,fetch(t).then((function(e){return e.json()})).then((function(t){var n=(0,p.default)(e.provider,e.arr_key,t,e.is_search);e.is_search&&"unsplash"===e.provider&&(n=t.results),n&&n.map((function(t){e.results.push(t)})),e.checkTotalResults(t.length),e.setState({results:e.results}),e.isLoading=!1})).catch((function(t){console.log(t),e.isLoading=!1}))}},{key:"filterPhotos",value:function(e,t){this.filters[e]&&"#"===t||""===t?delete this.filters[e]:this.filters[e]=t,this.getPhotos(this.view,!0)}},{key:"filterSearch",value:function(e,t){this.search_filters[e]&&"#"===t||""===t?delete this.search_filters[e]:this.search_filters[e]=t,this.doSearch(this.search_term)}},{key:"toggleFilters",value:function(){var e=this,t=this.filterGroups.current.querySelectorAll("button.filter-dropdown--button");t&&t.forEach((function(t){t.disabled=!!e.is_search})),this.is_search?this.filterGroups.current.classList.add("inactive"):this.filterGroups.current.classList.remove("inactive")}},{key:"afterVerifiedAPICallback",value:function(e){var t=this.providerNav.current.querySelector("button[data-provider="+e+"]");t&&(this.setState({api_lightbox:!1}),document.body.classList.remove("overflow-hidden"),t.click())}},{key:"closeAPILightbox",value:function(e){this.setState({api_lightbox:!1}),document.body.classList.remove("overflow-hidden");var t=this.providerNav.current.querySelector("button[data-provider="+e+"]");t&&t.focus({preventScroll:!0})}},{key:"switchProvider",value:(n=regeneratorRuntime.mark((function e(t){var n,r,i,a,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.currentTarget,(r=n.dataset.provider)!==this.provider){e.next=4;break}return e.abrupt("return",!1);case 4:if(!l.default[r].requires_key){e.next=14;break}return e.next=7,fetch((0,u.default)(r));case 7:if(i=e.sent,a=i.ok,o=i.status,a&&400!==o&&401!==o&&500!==o){e.next=14;break}return this.setState({api_lightbox:r}),document.body.classList.add("overflow-hidden"),e.abrupt("return");case 14:this.provider=r,this.api_provider=l.default[this.provider],this.filters={},this.search_filters={},this.providerNav.current.querySelectorAll("button").forEach((function(e){e.classList.remove("active")})),n.classList.add("active"),this.arr_key=this.api_provider.arr_key,this.api_key=instant_img_localize[this.provider+"_app_id"],this.api_url=""+this.api_provider.photo_api+this.api_provider.api_query_var+this.api_key+l.default.defaults.posts_per_page,this.search_api_url=""+this.api_provider.search_api+this.api_provider.api_query_var+this.api_key+l.default.defaults.posts_per_page,this.view="latest",this.getPhotos(this.view,!0,!0);case 26:case"end":return e.stop()}}),e,this)})),S=function(){var e=n.apply(this,arguments);return new Promise((function(t,n){return function r(i,a){try{var o=e[i](a),l=o.value}catch(e){return void n(e)}if(!o.done)return Promise.resolve(l).then((function(e){r("next",e)}),(function(e){r("throw",e)}));t(l)}("next")}))},function(e){return S.apply(this,arguments)})},{key:"renderLayout",value:function(){if(this.is_block_editor)return!1;var e=this,t=e.photoTarget.current;x(t,(function(){e.msnry=new a.default(t,{itemSelector:".photo"}),e.photoTarget.current.querySelectorAll(".photo").forEach((function(e){e.classList.add("in-view")}))}))}},{key:"onScroll",value:function(){window.innerHeight+window.pageYOffset>=document.body.scrollHeight-400&&!this.isLoading&&!this.isDone&&this.loadMorePhotos()}},{key:"checkTotalResults",value:function(e){this.isDone=0==e}},{key:"doneLoading",value:function(){var e=this;setTimeout((function(){e.isLoading=!1,e.container.classList.remove("loading")}),e.delay)}},{key:"showTooltip",value:function(e){var t=this,n=e.currentTarget,r=n.getBoundingClientRect(),i=Math.round(r.left),a=Math.round(r.top),o=this.container.querySelector("#tooltip");o.classList.remove("over"),n.classList.contains("tooltip--above")?o.classList.add("above"):o.classList.remove("above"),this.tooltipInterval=setInterval((function(){clearInterval(t.tooltipInterval),o.innerHTML=n.dataset.title,i=i-o.offsetWidth+n.offsetWidth+5,o.style.left=i+"px",o.style.top=a+"px",setTimeout((function(){o.classList.add("over")}),t.delay)}),750)}},{key:"hideTooltip",value:function(){clearInterval(this.tooltipInterval),this.container.querySelector("#tooltip").classList.remove("over")}},{key:"componentDidUpdate",value:function(){this.renderLayout(),this.doneLoading()}},{key:"componentDidMount",value:function(){var e=this;this.renderLayout(),this.doneLoading(),this.test(),this.container.classList.remove("loading"),this.wrapper.classList.add("loaded"),this.is_block_editor||this.is_media_router?(this.page=0,this.loadMorePhotos()):window.addEventListener("scroll",(function(){return e.onScroll()}))}},{key:"render",value:function(){var e=this;return o.default.createElement("div",{id:"photo-listing",className:this.provider},this.providers&&o.default.createElement("nav",{className:"provider-nav",ref:this.providerNav},this.providers.map((function(t,n){return o.default.createElement("div",{key:"provider-"+n},o.default.createElement("button",{"data-provider":t.toLowerCase(),onClick:function(t){return e.switchProvider(t)},className:e.provider===t.toLowerCase()?"provider-nav--btn active":"provider-nav--btn"},o.default.createElement("span",null,t),l.default[t.toLowerCase()].new&&o.default.createElement("span",{className:"provider-nav--new"},"New")))}))),this.state.api_lightbox&&o.default.createElement(m.default,{provider:this.state.api_lightbox,afterVerifiedAPICallback:this.afterVerifiedAPICallback.bind(this),closeAPILightbox:this.closeAPILightbox.bind(this)}),o.default.createElement("div",{className:"control-nav",ref:this.controlNav},o.default.createElement("div",{className:"control-nav--filters-wrap",ref:this.filterGroups},Object.entries(this.state.filters).length&&o.default.createElement("div",{className:"control-nav--filters"},Object.entries(this.state.filters).map((function(t,n){var i=r(t,2),a=i[0],l=i[1];return o.default.createElement(g.default,{key:a+"-"+n,filterKey:a,provider:e.provider,data:l,function:e.filterPhotos.bind(e)})})))),o.default.createElement("div",{className:"control-nav--search search-field",id:"search-bar"},o.default.createElement("form",{onSubmit:function(t){return e.search(t)},autoComplete:"off"},o.default.createElement("label",{htmlFor:"photo-search",className:"offscreen"},instant_img_localize.search_label),o.default.createElement("input",{type:"search",id:"photo-search",placeholder:instant_img_localize.search,ref:this.photoSearch}),o.default.createElement("button",{type:"submit",id:"photo-search-submit"},o.default.createElement("i",{className:"fa fa-search"})),o.default.createElement(k.default,{container:this.container,getPhotos:this.getPhotos.bind(this),isSearch:this.is_search,total:this.total_results,title:this.total_results+" "+instant_img_localize.search_results+" "+this.search_term})))),this.state.restapi_error&&o.default.createElement(v.default,null),this.is_search&&"gutenberg"!==this.editor&&o.default.createElement("div",{className:"search-results-header"},o.default.createElement("h2",null,this.search_term),o.default.createElement("div",{className:"search-results-header--text"},this.total_results+" "+instant_img_localize.search_results," ",o.default.createElement("strong",null,""+this.search_term)," - ",o.default.createElement("button",{title:instant_img_localize.clear_search,onClick:function(){return e.getPhotos("latest")}},instant_img_localize.clear_search)),Object.entries(this.state.search_filters).length&&o.default.createElement("div",{className:"control-nav--filters-wrap"},o.default.createElement("div",{className:"control-nav--filters"},Object.entries(this.state.search_filters).map((function(t,n){var i=r(t,2),a=i[0],l=i[1];return o.default.createElement(g.default,{key:a+"-"+n,filterKey:a,provider:e.provider,data:l,function:e.filterSearch.bind(e)})}))))),o.default.createElement("div",{id:"photos",className:"photo-target",ref:this.photoTarget},this.state.results.map((function(t,n){return o.default.createElement(w.default,{provider:e.provider,result:t,key:e.provider+"-"+t.id+"-"+n,editor:e.editor,mediaRouter:e.is_media_router,blockEditor:e.is_block_editor,SetFeaturedImage:e.SetFeaturedImage,InsertImage:e.InsertImage,showTooltip:e.showTooltip,hideTooltip:e.hideTooltip})}))),0==this.total_results&&!0===this.is_search&&o.default.createElement(_.default,null),o.default.createElement(y.default,null),o.default.createElement(b.default,{loadMorePhotos:this.loadMorePhotos.bind(this)}),o.default.createElement(E.default,null))}}]),t}(o.default.Component);t.default=C},function(e,t,n){var r,i,a;
41
  /*!
42
  * Masonry v4.2.2
43
  * Cascading grid layout library
44
  * https://masonry.desandro.com
45
  * MIT License
46
  * by David DeSandro
47
- */window,i=[n(28),n(4)],void 0===(a="function"==typeof(r=function(e,t){"use strict";var n=e.create("masonry");n.compatOptions.fitWidth="isFitWidth";var r=n.prototype;return r._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var e=0;e<this.cols;e++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},r.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var e=this.items[0],n=e&&e.element;this.columnWidth=n&&t(n).outerWidth||this.containerWidth}var r=this.columnWidth+=this.gutter,i=this.containerWidth+this.gutter,a=i/r,o=r-i%r;a=Math[o&&o<1?"round":"floor"](a),this.cols=Math.max(a,1)},r.getContainerWidth=function(){var e=this._getOption("fitWidth")?this.element.parentNode:this.element,n=t(e);this.containerWidth=n&&n.innerWidth},r._getItemLayoutPosition=function(e){e.getSize();var t=e.size.outerWidth%this.columnWidth,n=Math[t&&t<1?"round":"ceil"](e.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var r=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](n,e),i={x:this.columnWidth*r.col,y:r.y},a=r.y+e.size.outerHeight,o=n+r.col,l=r.col;l<o;l++)this.colYs[l]=a;return i},r._getTopColPosition=function(e){var t=this._getTopColGroup(e),n=Math.min.apply(Math,t);return{col:t.indexOf(n),y:n}},r._getTopColGroup=function(e){if(e<2)return this.colYs;for(var t=[],n=this.cols+1-e,r=0;r<n;r++)t[r]=this._getColGroupY(r,e);return t},r._getColGroupY=function(e,t){if(t<2)return this.colYs[e];var n=this.colYs.slice(e,e+t);return Math.max.apply(Math,n)},r._getHorizontalColPosition=function(e,t){var n=this.horizontalColIndex%this.cols;n=e>1&&n+e>this.cols?0:n;var r=t.size.outerWidth&&t.size.outerHeight;return this.horizontalColIndex=r?n+e:this.horizontalColIndex,{col:n,y:this._getColGroupY(n,e)}},r._manageStamp=function(e){var n=t(e),r=this._getElementOffset(e),i=this._getOption("originLeft")?r.left:r.right,a=i+n.outerWidth,o=Math.floor(i/this.columnWidth);o=Math.max(0,o);var l=Math.floor(a/this.columnWidth);l-=a%this.columnWidth?0:1,l=Math.min(this.cols-1,l);for(var s=(this._getOption("originTop")?r.top:r.bottom)+n.outerHeight,u=o;u<=l;u++)this.colYs[u]=Math.max(s,this.colYs[u])},r._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var e={height:this.maxY};return this._getOption("fitWidth")&&(e.width=this._getContainerFitWidth()),e},r._getContainerFitWidth=function(){for(var e=0,t=this.cols;--t&&0===this.colYs[t];)e++;return(this.cols-e)*this.columnWidth-this.gutter},r.needsResizeLayout=function(){var e=this.containerWidth;return this.getContainerWidth(),e!=this.containerWidth},n})?r.apply(t,i):r)||(e.exports=a)},function(e,t,n){var r,i;
48
  /*!
49
  * Outlayer v2.1.1
50
  * the brains and guts of a layout library
51
  * MIT license
52
- */!function(a,o){"use strict";r=[n(3),n(4),n(29),n(31)],void 0===(i=function(e,t,n,r){return function(e,t,n,r,i){var a=e.console,o=e.jQuery,l=function(){},s=0,u={};function c(e,t){var n=r.getQueryElement(e);if(n){this.element=n,o&&(this.$element=o(this.element)),this.options=r.extend({},this.constructor.defaults),this.option(t);var i=++s;this.element.outlayerGUID=i,u[i]=this,this._create(),this._getOption("initLayout")&&this.layout()}else a&&a.error("Bad element for "+this.constructor.namespace+": "+(n||e))}c.namespace="outlayer",c.Item=i,c.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var f=c.prototype;function d(e){function t(){e.apply(this,arguments)}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t}r.extend(f,t.prototype),f.option=function(e){r.extend(this.options,e)},f._getOption=function(e){var t=this.constructor.compatOptions[e];return t&&void 0!==this.options[t]?this.options[t]:this.options[e]},c.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},f._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),r.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},f.reloadItems=function(){this.items=this._itemize(this.element.children)},f._itemize=function(e){for(var t=this._filterFindItemElements(e),n=this.constructor.Item,r=[],i=0;i<t.length;i++){var a=new n(t[i],this);r.push(a)}return r},f._filterFindItemElements=function(e){return r.filterFindElements(e,this.options.itemSelector)},f.getItemElements=function(){return this.items.map((function(e){return e.element}))},f.layout=function(){this._resetLayout(),this._manageStamps();var e=this._getOption("layoutInstant"),t=void 0!==e?e:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},f._init=f.layout,f._resetLayout=function(){this.getSize()},f.getSize=function(){this.size=n(this.element)},f._getMeasurement=function(e,t){var r,i=this.options[e];i?("string"==typeof i?r=this.element.querySelector(i):i instanceof HTMLElement&&(r=i),this[e]=r?n(r)[t]:i):this[e]=0},f.layoutItems=function(e,t){e=this._getItemsForLayout(e),this._layoutItems(e,t),this._postLayout()},f._getItemsForLayout=function(e){return e.filter((function(e){return!e.isIgnored}))},f._layoutItems=function(e,t){if(this._emitCompleteOnItems("layout",e),e&&e.length){var n=[];e.forEach((function(e){var r=this._getItemLayoutPosition(e);r.item=e,r.isInstant=t||e.isLayoutInstant,n.push(r)}),this),this._processLayoutQueue(n)}},f._getItemLayoutPosition=function(){return{x:0,y:0}},f._processLayoutQueue=function(e){this.updateStagger(),e.forEach((function(e,t){this._positionItem(e.item,e.x,e.y,e.isInstant,t)}),this)},f.updateStagger=function(){var e=this.options.stagger;if(null!=e)return this.stagger=function(e){if("number"==typeof e)return e;var t=e.match(/(^\d*\.?\d*)(\w*)/),n=t&&t[1],r=t&&t[2];if(!n.length)return 0;return(n=parseFloat(n))*(p[r]||1)}(e),this.stagger;this.stagger=0},f._positionItem=function(e,t,n,r,i){r?e.goTo(t,n):(e.stagger(i*this.stagger),e.moveTo(t,n))},f._postLayout=function(){this.resizeContainer()},f.resizeContainer=function(){if(this._getOption("resizeContainer")){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},f._getContainerSize=l,f._setContainerMeasure=function(e,t){if(void 0!==e){var n=this.size;n.isBorderBox&&(e+=t?n.paddingLeft+n.paddingRight+n.borderLeftWidth+n.borderRightWidth:n.paddingBottom+n.paddingTop+n.borderTopWidth+n.borderBottomWidth),e=Math.max(e,0),this.element.style[t?"width":"height"]=e+"px"}},f._emitCompleteOnItems=function(e,t){var n=this;function r(){n.dispatchEvent(e+"Complete",null,[t])}var i=t.length;if(t&&i){var a=0;t.forEach((function(t){t.once(e,o)}))}else r();function o(){++a==i&&r()}},f.dispatchEvent=function(e,t,n){var r=t?[t].concat(n):n;if(this.emitEvent(e,r),o)if(this.$element=this.$element||o(this.element),t){var i=o.Event(t);i.type=e,this.$element.trigger(i,n)}else this.$element.trigger(e,n)},f.ignore=function(e){var t=this.getItem(e);t&&(t.isIgnored=!0)},f.unignore=function(e){var t=this.getItem(e);t&&delete t.isIgnored},f.stamp=function(e){(e=this._find(e))&&(this.stamps=this.stamps.concat(e),e.forEach(this.ignore,this))},f.unstamp=function(e){(e=this._find(e))&&e.forEach((function(e){r.removeFrom(this.stamps,e),this.unignore(e)}),this)},f._find=function(e){if(e)return"string"==typeof e&&(e=this.element.querySelectorAll(e)),e=r.makeArray(e)},f._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},f._getBoundingRect=function(){var e=this.element.getBoundingClientRect(),t=this.size;this._boundingRect={left:e.left+t.paddingLeft+t.borderLeftWidth,top:e.top+t.paddingTop+t.borderTopWidth,right:e.right-(t.paddingRight+t.borderRightWidth),bottom:e.bottom-(t.paddingBottom+t.borderBottomWidth)}},f._manageStamp=l,f._getElementOffset=function(e){var t=e.getBoundingClientRect(),r=this._boundingRect,i=n(e);return{left:t.left-r.left-i.marginLeft,top:t.top-r.top-i.marginTop,right:r.right-t.right-i.marginRight,bottom:r.bottom-t.bottom-i.marginBottom}},f.handleEvent=r.handleEvent,f.bindResize=function(){e.addEventListener("resize",this),this.isResizeBound=!0},f.unbindResize=function(){e.removeEventListener("resize",this),this.isResizeBound=!1},f.onresize=function(){this.resize()},r.debounceMethod(c,"onresize",100),f.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},f.needsResizeLayout=function(){var e=n(this.element);return this.size&&e&&e.innerWidth!==this.size.innerWidth},f.addItems=function(e){var t=this._itemize(e);return t.length&&(this.items=this.items.concat(t)),t},f.appended=function(e){var t=this.addItems(e);t.length&&(this.layoutItems(t,!0),this.reveal(t))},f.prepended=function(e){var t=this._itemize(e);if(t.length){var n=this.items.slice(0);this.items=t.concat(n),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(n)}},f.reveal=function(e){if(this._emitCompleteOnItems("reveal",e),e&&e.length){var t=this.updateStagger();e.forEach((function(e,n){e.stagger(n*t),e.reveal()}))}},f.hide=function(e){if(this._emitCompleteOnItems("hide",e),e&&e.length){var t=this.updateStagger();e.forEach((function(e,n){e.stagger(n*t),e.hide()}))}},f.revealItemElements=function(e){var t=this.getItems(e);this.reveal(t)},f.hideItemElements=function(e){var t=this.getItems(e);this.hide(t)},f.getItem=function(e){for(var t=0;t<this.items.length;t++){var n=this.items[t];if(n.element==e)return n}},f.getItems=function(e){e=r.makeArray(e);var t=[];return e.forEach((function(e){var n=this.getItem(e);n&&t.push(n)}),this),t},f.remove=function(e){var t=this.getItems(e);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach((function(e){e.remove(),r.removeFrom(this.items,e)}),this)},f.destroy=function(){var e=this.element.style;e.height="",e.position="",e.width="",this.items.forEach((function(e){e.destroy()})),this.unbindResize();var t=this.element.outlayerGUID;delete u[t],delete this.element.outlayerGUID,o&&o.removeData(this.element,this.constructor.namespace)},c.data=function(e){var t=(e=r.getQueryElement(e))&&e.outlayerGUID;return t&&u[t]},c.create=function(e,t){var n=d(c);return n.defaults=r.extend({},c.defaults),r.extend(n.defaults,t),n.compatOptions=r.extend({},c.compatOptions),n.namespace=e,n.data=c.data,n.Item=d(i),r.htmlInit(n,e),o&&o.bridget&&o.bridget(e,n),n};var p={ms:1,s:1e3};return c.Item=i,c}(a,e,t,n,r)}.apply(t,r))||(e.exports=i)}(window)},function(e,t,n){var r,i;!function(a,o){r=[n(30)],void 0===(i=function(e){return function(e,t){"use strict";var n={extend:function(e,t){for(var n in t)e[n]=t[n];return e},modulo:function(e,t){return(e%t+t)%t}},r=Array.prototype.slice;n.makeArray=function(e){return Array.isArray(e)?e:null==e?[]:"object"==typeof e&&"number"==typeof e.length?r.call(e):[e]},n.removeFrom=function(e,t){var n=e.indexOf(t);-1!=n&&e.splice(n,1)},n.getParent=function(e,n){for(;e.parentNode&&e!=document.body;)if(e=e.parentNode,t(e,n))return e},n.getQueryElement=function(e){return"string"==typeof e?document.querySelector(e):e},n.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},n.filterFindElements=function(e,r){e=n.makeArray(e);var i=[];return e.forEach((function(e){if(e instanceof HTMLElement)if(r){t(e,r)&&i.push(e);for(var n=e.querySelectorAll(r),a=0;a<n.length;a++)i.push(n[a])}else i.push(e)})),i},n.debounceMethod=function(e,t,n){n=n||100;var r=e.prototype[t],i=t+"Timeout";e.prototype[t]=function(){var e=this[i];clearTimeout(e);var t=arguments,a=this;this[i]=setTimeout((function(){r.apply(a,t),delete a[i]}),n)}},n.docReady=function(e){var t=document.readyState;"complete"==t||"interactive"==t?setTimeout(e):document.addEventListener("DOMContentLoaded",e)},n.toDashed=function(e){return e.replace(/(.)([A-Z])/g,(function(e,t,n){return t+"-"+n})).toLowerCase()};var i=e.console;return n.htmlInit=function(t,r){n.docReady((function(){var a=n.toDashed(r),o="data-"+a,l=document.querySelectorAll("["+o+"]"),s=document.querySelectorAll(".js-"+a),u=n.makeArray(l).concat(n.makeArray(s)),c=o+"-options",f=e.jQuery;u.forEach((function(e){var n,a=e.getAttribute(o)||e.getAttribute(c);try{n=a&&JSON.parse(a)}catch(t){return void(i&&i.error("Error parsing "+o+" on "+e.className+": "+t))}var l=new t(e,n);f&&f.data(e,r,l)}))}))},n}(a,e)}.apply(t,r))||(e.exports=i)}(window)},function(e,t,n){var r,i;!function(a,o){"use strict";void 0===(i="function"==typeof(r=o)?r.call(t,n,t,e):r)||(e.exports=i)}(window,(function(){"use strict";var e=function(){var e=window.Element.prototype;if(e.matches)return"matches";if(e.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],n=0;n<t.length;n++){var r=t[n]+"MatchesSelector";if(e[r])return r}}();return function(t,n){return t[e](n)}}))},function(e,t,n){var r,i,a;window,i=[n(3),n(4)],void 0===(a="function"==typeof(r=function(e,t){"use strict";var n=document.documentElement.style,r="string"==typeof n.transition?"transition":"WebkitTransition",i="string"==typeof n.transform?"transform":"WebkitTransform",a={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[r],o={transform:i,transition:r,transitionDuration:r+"Duration",transitionProperty:r+"Property",transitionDelay:r+"Delay"};function l(e,t){e&&(this.element=e,this.layout=t,this.position={x:0,y:0},this._create())}var s=l.prototype=Object.create(e.prototype);s.constructor=l,s._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},s.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},s.getSize=function(){this.size=t(this.element)},s.css=function(e){var t=this.element.style;for(var n in e)t[o[n]||n]=e[n]},s.getPosition=function(){var e=getComputedStyle(this.element),t=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),r=e[t?"left":"right"],i=e[n?"top":"bottom"],a=parseFloat(r),o=parseFloat(i),l=this.layout.size;-1!=r.indexOf("%")&&(a=a/100*l.width),-1!=i.indexOf("%")&&(o=o/100*l.height),a=isNaN(a)?0:a,o=isNaN(o)?0:o,a-=t?l.paddingLeft:l.paddingRight,o-=n?l.paddingTop:l.paddingBottom,this.position.x=a,this.position.y=o},s.layoutPosition=function(){var e=this.layout.size,t={},n=this.layout._getOption("originLeft"),r=this.layout._getOption("originTop"),i=n?"paddingLeft":"paddingRight",a=n?"left":"right",o=n?"right":"left",l=this.position.x+e[i];t[a]=this.getXValue(l),t[o]="";var s=r?"paddingTop":"paddingBottom",u=r?"top":"bottom",c=r?"bottom":"top",f=this.position.y+e[s];t[u]=this.getYValue(f),t[c]="",this.css(t),this.emitEvent("layout",[this])},s.getXValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!t?e/this.layout.size.width*100+"%":e+"px"},s.getYValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&t?e/this.layout.size.height*100+"%":e+"px"},s._transitionTo=function(e,t){this.getPosition();var n=this.position.x,r=this.position.y,i=e==this.position.x&&t==this.position.y;if(this.setPosition(e,t),!i||this.isTransitioning){var a=e-n,o=t-r,l={};l.transform=this.getTranslate(a,o),this.transition({to:l,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},s.getTranslate=function(e,t){return"translate3d("+(e=this.layout._getOption("originLeft")?e:-e)+"px, "+(t=this.layout._getOption("originTop")?t:-t)+"px, 0)"},s.goTo=function(e,t){this.setPosition(e,t),this.layoutPosition()},s.moveTo=s._transitionTo,s.setPosition=function(e,t){this.position.x=parseFloat(e),this.position.y=parseFloat(t)},s._nonTransition=function(e){for(var t in this.css(e.to),e.isCleaning&&this._removeStyles(e.to),e.onTransitionEnd)e.onTransitionEnd[t].call(this)},s.transition=function(e){if(parseFloat(this.layout.options.transitionDuration)){var t=this._transn;for(var n in e.onTransitionEnd)t.onEnd[n]=e.onTransitionEnd[n];for(n in e.to)t.ingProperties[n]=!0,e.isCleaning&&(t.clean[n]=!0);e.from&&(this.css(e.from),this.element.offsetHeight),this.enableTransition(e.to),this.css(e.to),this.isTransitioning=!0}else this._nonTransition(e)};var u="opacity,"+i.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()}));s.enableTransition=function(){if(!this.isTransitioning){var e=this.layout.options.transitionDuration;e="number"==typeof e?e+"ms":e,this.css({transitionProperty:u,transitionDuration:e,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(a,this,!1)}},s.onwebkitTransitionEnd=function(e){this.ontransitionend(e)},s.onotransitionend=function(e){this.ontransitionend(e)};var c={"-webkit-transform":"transform"};s.ontransitionend=function(e){if(e.target===this.element){var t=this._transn,n=c[e.propertyName]||e.propertyName;delete t.ingProperties[n],function(e){for(var t in e)return!1;return!0}(t.ingProperties)&&this.disableTransition(),n in t.clean&&(this.element.style[e.propertyName]="",delete t.clean[n]),n in t.onEnd&&(t.onEnd[n].call(this),delete t.onEnd[n]),this.emitEvent("transitionEnd",[this])}},s.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(a,this,!1),this.isTransitioning=!1},s._removeStyles=function(e){var t={};for(var n in e)t[n]="";this.css(t)};var f={transitionProperty:"",transitionDuration:"",transitionDelay:""};return s.removeTransitionStyles=function(){this.css(f)},s.stagger=function(e){e=isNaN(e)?0:e,this.staggerDelay=e+"ms"},s.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},s.remove=function(){r&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",(function(){this.removeElem()})),this.hide()):this.removeElem()},s.reveal=function(){delete this.isHidden,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:e.hiddenStyle,to:e.visibleStyle,isCleaning:!0,onTransitionEnd:t})},s.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},s.getHideRevealTransitionEndProperty=function(e){var t=this.layout.options[e];if(t.opacity)return"opacity";for(var n in t)return n},s.hide=function(){this.isHidden=!0,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:e.visibleStyle,to:e.hiddenStyle,isCleaning:!0,onTransitionEnd:t})},s.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},s.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},l})?r.apply(t,i):r)||(e.exports=a)},function(e,t,n){"use strict";e.exports={unsplash:{filters:{order_by:{label:"orderby",default:"latest",filters:["latest","popular","oldest"]}},search:{order_by:{label:"orderby",default:"relevance",filters:["relevance","latest"]},orientation:{label:"orientation",default:"all",filters:["all","landscape","portrait","squarish"]},color:{label:"colors",default:"all",filters:["all","black_and_white","black","white","yellow","orange","red","purple","magenta","green","teal","blue"]}}},pixabay:{filters:{order:{label:"orderby",default:"popular",filters:["latest","popular"]},image_type:{label:"type",default:"all",filters:["all","photo","illustration","vector"]},category:{label:"category",default:"all",filters:["all","backgrounds","fashion","nature","science","education","feelings","health","people","religion","places","animals","industry","computer","food","sports","transportation","travel","buildings","business","music"]},colors:{label:"colors",default:"all",filters:["all","grayscale","red","orange","yellow","green","turquoise","blue","lilac","pink","white","gray","black","brown","transparent"]},orientation:{label:"orientation",default:"all",filters:["all","horizontal","vertical"]}},search:{colors:{label:"colors",default:"all",filters:["all","grayscale","red","orange","yellow","green","turquoise","blue","lilac","pink","white","gray","black","brown","transparent"]},orientation:{label:"orientation",default:"all",filters:["all","horizontal","vertical"]}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"&"+Object.keys(e).map((function(t){return t+"="+e[t]})).join("&")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r){if(!n)return[];var i=[];switch(e){case"unsplash":i=r?n[t]||[]:n||[];break;case"pixabay":i=n[t]||[]}return i},t.getResultById=function(e,t,n){if(!n)return[];var r=[];switch(e){case"unsplash":r=n||[];break;case"pixabay":r=n[t]&&n[t][0]?n[t][0]:[]}return r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,i){var a="";switch(e){case"unsplash":a=n+"/"+t+r+i;break;case"pixabay":a=""+n+r+i+"&id="+t}return 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=u(n(37)),a=u(n(0)),o=u(n(5)),l=u(n(8)),s=u(n(41));function u(e){return e&&e.__esModule?e:{default:e}}var 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.lightbox=a.default.createRef(),n.provider=n.props.provider,n.api_key=instant_img_localize[n.provider+"_app_id"],n.inputRef=a.default.createRef(),n.loading=!1,n.state={status:"invalid",response:""},n.afterVerifiedAPICallback=n.props.afterVerifiedAPICallback.bind(n),n.closeAPILightbox=n.props.closeAPILightbox.bind(n),n.escFunction=n.escFunction.bind(n),n}var n,u;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:"handleSubmit",value:(n=regeneratorRuntime.mark((function e(t){var n,r,i,a,u,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),n=this,this.setState({status:"loading"}),(r=this.inputRef.current.value)||this.inputRef.current.focus({preventScroll:!0}),instant_img_localize[this.provider+"_app_id"]=r,e.next=8,fetch((0,o.default)(this.provider));case 8:i=e.sent,a=i.ok,u=i.status,(c=document.querySelector('input[name="instant_img_settings['+this.provider+'_api]"]'))&&(c.value=r),(0,s.default)(this.provider+"_api",r),a?(this.setState({status:"valid",response:instant_img_localize.api_success_msg}),setTimeout((function(){n.afterVerifiedAPICallback(n.provider)}),1500)):(this.setState({status:"invalid"}),(0,l.default)(this.provider,u),400!==u&&401!==u||this.setState({response:instant_img_localize.api_invalid_msg}),429===u&&this.setState({response:instant_img_localize.api_ratelimit_msg}));case 15:case"end":return e.stop()}}),e,this)})),u=function(){var e=n.apply(this,arguments);return new Promise((function(t,n){return function r(i,a){try{var o=e[i](a),l=o.value}catch(e){return void n(e)}if(!o.done)return Promise.resolve(l).then((function(e){r("next",e)}),(function(e){r("throw",e)}));t(l)}("next")}))},function(e){return u.apply(this,arguments)})},{key:"closeLightbox",value:function(){var e=this;this.lightbox.current.classList.remove("active"),setTimeout((function(){e.closeAPILightbox(this.provider)}),250)}},{key:"bkgClick",value:function(e){e.target===this.lightbox.current&&this.closeLightbox()}},{key:"escFunction",value:function(e){27===e.keyCode&&this.closeLightbox()}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.escFunction,!1),this.lightbox.current.classList.add("active")}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.escFunction,!1)}},{key:"render",value:function(){var e=this,t="invalid"===this.state.status?instant_img_localize.api_key_invalid:"";return a.default.createElement(i.default,null,a.default.createElement("div",{className:"api-lightbox",ref:this.lightbox,onClick:function(t){return e.bkgClick(t)},tabIndex:"-1"},a.default.createElement("div",null,a.default.createElement("div",null,a.default.createElement("button",{className:"api-lightbox--close",onClick:function(){return e.closeLightbox()}},"×",a.default.createElement("span",{className:"offscreen"},instant_img_localize.btnClose)),a.default.createElement("div",{className:"api-lightbox--details"},a.default.createElement("h3",{"data-provider":this.provider},this.provider),a.default.createElement("p",null,instant_img_localize[this.provider+"_api_desc"]),a.default.createElement("p",null,a.default.createElement("a",{href:instant_img_localize[this.provider+"_api_url"],target:"_blank"},instant_img_localize.get_api_key))),a.default.createElement("form",{onSubmit:function(t){return e.handleSubmit(t)}},a.default.createElement("label",{htmlFor:"key",className:"offscreen"},instant_img_localize.enter_api_key),a.default.createElement("div",{className:"api-lightbox--input-wrap"},a.default.createElement("span",{className:this.state.status,title:t&&t},"invalid"===this.state.status&&a.default.createElement("i",{className:"fa fa-exclamation-triangle","aria-hidden":"true"}),"valid"===this.state.status&&a.default.createElement("i",{className:"fa fa-check-circle","aria-hidden":"true"}),"loading"===this.state.status&&a.default.createElement("i",{className:"fa fa-spinner fa-spin","aria-hidden":"true"})),a.default.createElement("input",{type:"text",id:"key",ref:this.inputRef,placeholder:"Enter API Key",defaultValue:this.api_key})),this.state.response&&a.default.createElement("p",{className:"api-lightbox--response "+this.state.status},this.state.response),a.default.createElement("button",{type:"submit"},instant_img_localize.btnVerify))))))}}]),t}(a.default.Component);t.default=c},function(e,t,n){"use strict";function r(e){return(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})(e)}function i(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)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(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 n,r=s(e);if(t){var i=s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){if(t&&("object"===r(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 s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=n(0),c=n(18),f=n(38),d=n(73).createFocusTrap,p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(s,e);var t,n,r,l=o(s);function s(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=l.call(this,e)).tailoredFocusTrapOptions={returnFocusOnDeactivate:!1},t.returnFocusOnDeactivate=!0;var n=e.focusTrapOptions;for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&("returnFocusOnDeactivate"!==r?"onPostDeactivate"!==r?t.tailoredFocusTrapOptions[r]=n[r]:t.onPostDeactivate=n[r]:t.returnFocusOnDeactivate=!!n[r]);return t.focusTrapElements=e.containerElements||[],t.updatePreviousElement(),t}return t=s,(n=[{key:"getDocument",value:function(){return this.props.focusTrapOptions.document||("undefined"!=typeof document?document:void 0)}},{key:"getNodeForOption",value:function(e){var t=this.tailoredFocusTrapOptions[e];if(!t)return null;var n,r=t;if("string"==typeof t&&!(r=null===(n=this.getDocument())||void 0===n?void 0:n.querySelector(t)))throw new Error("`".concat(e,"` refers to no known node"));if("function"==typeof t&&!(r=t()))throw new Error("`".concat(e,"` did not return a node"));return r}},{key:"getReturnFocusNode",value:function(){var e=this.getNodeForOption("setReturnFocus");return e||this.previouslyFocusedElement}},{key:"updatePreviousElement",value:function(){var e=this.getDocument();e&&(this.previouslyFocusedElement=e.activeElement)}},{key:"deactivateTrap",value:function(){var e=this,t=this.tailoredFocusTrapOptions,n=t.checkCanReturnFocus,r=t.preventScroll,i=void 0!==r&&r;this.focusTrap&&this.focusTrap.deactivate({returnFocus:!1});var a=function(){var t=e.getReturnFocusNode();(null==t?void 0:t.focus)&&e.returnFocusOnDeactivate&&t.focus({preventScroll:i}),e.onPostDeactivate&&e.onPostDeactivate.call(null)};n?n(this.getReturnFocusNode()).then(a,a):a()}},{key:"setupFocusTrap",value:function(){if(!this.focusTrap){var e=this.focusTrapElements.map(c.findDOMNode);e.some(Boolean)&&(this.focusTrap=this.props._createFocusTrap(e,this.tailoredFocusTrapOptions),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause())}}},{key:"componentDidMount",value:function(){this.props.active&&this.setupFocusTrap()}},{key:"componentDidUpdate",value:function(e){if(this.focusTrap){e.containerElements!==this.props.containerElements&&this.focusTrap.updateContainerElements(this.props.containerElements);var t=!e.active&&this.props.active,n=e.active&&!this.props.active,r=!e.paused&&this.props.paused,i=e.paused&&!this.props.paused;if(t&&(this.updatePreviousElement(),this.focusTrap.activate()),n)return void this.deactivateTrap();r&&this.focusTrap.pause(),i&&this.focusTrap.unpause()}else e.containerElements!==this.props.containerElements&&(this.focusTrapElements=this.props.containerElements),this.props.active&&(this.updatePreviousElement(),this.setupFocusTrap())}},{key:"componentWillUnmount",value:function(){this.deactivateTrap()}},{key:"render",value:function(){var e=this,t=this.props.children?u.Children.only(this.props.children):void 0;if(t){if(t.type&&t.type===u.Fragment)throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");return u.cloneElement(t,{ref:function(n){var r=e.props.containerElements;t&&("function"==typeof t.ref?t.ref(n):t.ref&&(t.ref.current=n)),e.focusTrapElements=r||[n]}})}return null}}])&&i(t.prototype,n),r&&i(t,r),s}(u.Component),h="undefined"==typeof Element?Function:Element;p.propTypes={active:f.bool,paused:f.bool,focusTrapOptions:f.shape({document:f.object,onActivate:f.func,onPostActivate:f.func,checkCanFocusTrap:f.func,onDeactivate:f.func,onPostDeactivate:f.func,checkCanReturnFocus:f.func,initialFocus:f.oneOfType([f.instanceOf(h),f.string,f.func,f.bool]),fallbackFocus:f.oneOfType([f.instanceOf(h),f.string,f.func]),escapeDeactivates:f.oneOfType([f.bool,f.func]),clickOutsideDeactivates:f.oneOfType([f.bool,f.func]),returnFocusOnDeactivate:f.bool,setReturnFocus:f.oneOfType([f.instanceOf(h),f.string,f.func]),allowOutsideClick:f.oneOfType([f.bool,f.func]),preventScroll:f.bool}),containerElements:f.arrayOf(f.instanceOf(h)),children:f.oneOfType([f.element,f.instanceOf(h)])},p.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:d},e.exports=p},function(e,t,n){e.exports=n(39)()},function(e,t,n){"use strict";var r=n(40);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var l=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 l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=instant_img_localize.root+"instant-images/settings/",r={setting:e,value:t},i={headers:{"X-WP-Nonce":instant_img_localize.nonce,"Content-Type":"application/json"}};a.default.post(n,JSON.stringify(r),i).then((function(e){var t=e.data;console.log(t)})).catch((function(e){console.log(e)}))};var r,i=n(9),a=(r=i)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";var r=n(1),i=n(10),a=n(43),o=n(16);function l(e){var t=new a(e),n=i(a.prototype.request,t);return r.extend(n,a.prototype,t),r.extend(n,t),n}var s=l(n(6));s.Axios=a,s.create=function(e){return l(o(s.defaults,e))},s.Cancel=n(17),s.CancelToken=n(57),s.isCancel=n(15),s.all=function(e){return Promise.all(e)},s.spread=n(58),s.isAxiosError=n(59),e.exports=s,e.exports.default=s},function(e,t,n){"use strict";var r=n(1),i=n(11),a=n(44),o=n(45),l=n(16),s=n(55),u=s.validators;function c(e){this.defaults=e,this.interceptors={request:new a,response:new a}}c.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=l(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&s.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var i,a=[];if(this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected)})),!r){var c=[o,void 0];for(Array.prototype.unshift.apply(c,n),c=c.concat(a),i=Promise.resolve(e);c.length;)i=i.then(c.shift(),c.shift());return i}for(var f=e;n.length;){var d=n.shift(),p=n.shift();try{f=d(f)}catch(e){p(e);break}}try{i=o(f)}catch(e){return Promise.reject(e)}for(;a.length;)i=i.then(a.shift(),a.shift());return i},c.prototype.getUri=function(e){return e=l(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,n){return this.request(l(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,r){return this.request(l(r||{},{method:e,url:t,data:n}))}})),e.exports=c},function(e,t,n){"use strict";var r=n(1);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},function(e,t,n){"use strict";var r=n(1),i=n(46),a=n(15),o=n(6);function l(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||o.adapter)(e).then((function(t){return l(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return a(t)||(l(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(1),i=n(6);e.exports=function(e,t,n){var a=this||i;return r.forEach(n,(function(n){e=n.call(a,e,t)})),e}},function(e,t,n){"use strict";var r=n(1);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(14);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";var r=n(1);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,a,o){var l=[];l.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),r.isString(i)&&l.push("path="+i),r.isString(a)&&l.push("domain="+a),!0===o&&l.push("secure"),document.cookie=l.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(51),i=n(52);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(1),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,a,o={};return e?(r.forEach(e.split("\n"),(function(e){if(a=e.indexOf(":"),t=r.trim(e.substr(0,a)).toLowerCase(),n=r.trim(e.substr(a+1)),t){if(o[t]&&i.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},function(e,t,n){"use strict";var r=n(1);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(56),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={},o=r.version.split(".");function l(e,t){for(var n=t?t.split("."):o,r=e.split("."),i=0;i<3;i++){if(n[i]>r[i])return!0;if(n[i]<r[i])return!1}return!1}i.transitional=function(e,t,n){var i=t&&l(t);function o(e,t){return"[Axios v"+r.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,l){if(!1===e)throw new Error(o(r," has been removed in "+t));return i&&!a[r]&&(a[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,l)}},e.exports={isOlderVersion:l,assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),i=r.length;i-- >0;){var a=r[i],o=t[a];if(o){var l=e[a],s=void 0===l||o(l,a,e);if(!0!==s)throw new TypeError("option "+a+" must be "+s)}else if(!0!==n)throw Error("Unknown option "+a)}},validators:i}},function(e){e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')},function(e,t,n){"use strict";var r=n(17);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},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}}(),a=n(0),o=(r=a)&&r.__esModule?r:{default:r};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return l(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),i(t,[{key:"render",value:function(){return o.default.createElement("div",{className:"error-messaging"},o.default.createElement("span",{dangerouslySetInnerHTML:{__html:""+instant_img_localize.error_restapi+instant_img_localize.error_restapi_desc}}))}}]),t}(o.default.Component);t.default=u},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){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(62)),a=l(n(21)),o=l(n(0));function l(e){return e&&e.__esModule?e:{default:e}}var s=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.data=n.props.data,n.default=n.data.default,n.filterKey=n.props.filterKey,n.provider=n.props.provider,n.id=n.provider+"-"+n.filterKey,n.clickHandler=n.props.function.bind(n),n.toggleMenu=n.toggleMenu.bind(n),n.closeMenuOutside=n.closeMenuOutside.bind(n),n.focusOutside=n.focusOutside.bind(n),n.escClick=n.escClick.bind(n),n.isColor="colors"===n.filterKey||"color"===n.filterKey,n.state={expanded:!1,selected:n.data.default},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:"toggleMenu",value:function(e){var t=this;if(e.preventDefault(),e.currentTarget.disabled)return!1;this.state.expanded?this.setState({expanded:!1},(function(){document.removeEventListener("click",t.closeMenuOutside)})):this.setState({expanded:!0},(function(){document.addEventListener("click",t.closeMenuOutside)}))}},{key:"closeMenuOutside",value:function(e){var t=this;this.menu.contains(e.target)||this.trigger.contains(e.target)||this.setState({expanded:!1},(function(){document.removeEventListener("click",t.closeMenuOutside)}))}},{key:"focusOutside",value:function(e){this.dropdown.contains(e.target)||this.closeMenuOutside(e)}},{key:"escClick",value:function(e){"Escape"===e.key&&this.setState({expanded:!1})}},{key:"click",value:function(e,t){var n=this,r=this.state.selected!==t?t:this.default;this.setState({selected:r}),this.clickHandler(e,r),setTimeout((function(){n.trigger.click()}),100)}},{key:"convertColor",value:function(e){return"lilac"===e&&(e="DarkViolet"),"grayscale"!==e&&"black_and_white"!==e||(e="LightGray"),e}},{key:"componentDidMount",value:function(){i.init(this.dropdown,{selector:"button"}),document.addEventListener("keyup",this.focusOutside),document.addEventListener("keydown",this.escClick)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keyup",this.focusOutside),document.removeEventListener("keydown",this.escClick)}},{key:"render",value:function(){var e=this;return o.default.createElement("div",{className:"filter-dropdown",id:this.id,ref:function(t){e.dropdown=t}},o.default.createElement("button",{onClick:this.toggleMenu,className:"filter-dropdown--button","aria-expanded":this.state.expanded?"true":"false",ref:function(t){e.trigger=t}},o.default.createElement("span",{className:"filter-dropdown--button-label"},instant_img_localize.filters[this.data.label]),o.default.createElement("span",{className:"filter-dropdown--button-selected"},this.state.selected,o.default.createElement("i",{className:"fa fa-caret-down","aria-hidden":"true"}))),o.default.createElement("div",{className:(0,a.default)("filter-dropdown--menu",this.state.expanded?"expanded":null),"data-key":this.filterKey,"aria-hidden":this.state.expanded?"false":"true",ref:function(t){e.menu=t}},this.data.filters&&this.data.filters.map((function(t,n){return o.default.createElement("button",{key:n,className:(0,a.default)("filter-dropdown--item",e.state.selected===t?"selected":null),onClick:function(){return e.click(e.filterKey,t)}},t.replace(/_/g," "),"all"!==t&&"transparent"!==t&&e.isColor?o.default.createElement("span",{className:"_color",style:{color:e.convertColor(t)}}):null)}))))}}]),t}(o.default.Component);t.default=s},function(e,t,n){window,e.exports=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,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return 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=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.init=function(e,t){(t=Object.assign({},r,t)).target=e,t.next=t.next?t.next:"down",t.prev=t.prev?t.prev:"up",t.target&&t.selector&&(a(t),window.addEventListener(t.event,(function(e){i(e,t)})))};var r=n(1),i=n(2),a=n(7);n(8)},function(e,t,n){"use strict";e.exports={selector:"a",loop:!0,event:"keydown",next:"down right",prev:"up left"}},function(e,t,n){"use strict";var r=n(3),i=n(4),a=n(5),o=n(6);e.exports=function(e,t){var n=e.target,l=e.which||e.keycode,s=t.target.querySelectorAll(t.selector);s=s?Array.prototype.slice.call(s):s;var u=a(n,s);if(!s||!u)return!1;if(-1!==o(t.next,r).indexOf(l)){var c=i(n,s,"next");if(c<s.length)return s[c].focus(),e.preventDefault(),e.stopPropagation(),!1;if(t.loop)return s[0].focus(),e.preventDefault(),e.stopPropagation(),!1}if(-1!==o(t.prev,r).indexOf(l)){var f=i(n,s,"previous");if(f<s.length&&-1!==f)return s[f].focus(),e.preventDefault(),e.stopPropagation(),!1;if(t.loop)return s[s.length-1].focus(),e.preventDefault(),e.stopPropagation(),!1}return!0}},function(e,t,n){"use strict";e.exports={up:38,right:39,down:40,left:37,escape:27,enter:13,spacebar:32,tab:9}},function(e,t,n){"use strict";e.exports=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"next",r=Array.prototype.slice.call(t).indexOf(e);if(-1!==r)return"previous"===n?r-1:r+1}},function(e,t,n){"use strict";e.exports=function(e,t){return-1!==Array.prototype.slice.call(t).indexOf(e)}},function(e,t,n){"use strict";e.exports=function(e,t){for(var n=e.split(" "),r=[],i=0;i<n.length;i++)r.push(t[n[i]]);return r}},function(e,t,n){"use strict";e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!e.target||!e.selector)return!1;var t=e.target.querySelectorAll(e.selector);(t=t?Array.prototype.slice.call(t):t).forEach((function(e){e.tabIndex=0}))}},function(e,t,n){"use strict";"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i)for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])}return n},writable:!0,configurable:!0}),Array.prototype.forEach||(Array.prototype.forEach=function(e){var t,n;if(null==this)throw new TypeError("this is null or not defined");var r=Object(this),i=r.length>>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(arguments.length>1&&(t=arguments[1]),n=0;n<i;){var a;n in r&&(a=r[n],e.call(t,a,n,r)),n++}})}])},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}}(),a=n(0),o=(r=a)&&r.__esModule?r:{default:r};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return l(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),i(t,[{key:"render",value:function(){return o.default.createElement("div",{className:"loading-block"})}}]),t}(o.default.Component);t.default=u},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}}(),a=n(0),o=(r=a)&&r.__esModule?r:{default:r};var l=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.loadMorePhotos=n.props.loadMorePhotos.bind(n),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),i(t,[{key:"render",value:function(){var e=this;return o.default.createElement("div",{className:"load-more-wrap"},o.default.createElement("button",{type:"button",className:"button",onClick:function(){return e.loadMorePhotos()}},instant_img_localize.load_more))}}]),t}(o.default.Component);t.default=l},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}}(),a=n(0),o=(r=a)&&r.__esModule?r:{default:r};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return l(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),i(t,[{key:"render",value:function(){return o.default.createElement("div",{className:"no-results"},o.default.createElement("h3",null,instant_img_localize.no_results," "),o.default.createElement("p",null,instant_img_localize.no_results_desc," "))}}]),t}(o.default.Component);t.default=u},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=u(n(9)),a=u(n(0)),o=u(n(2)),l=u(n(67)),s=u(n(68));function u(e){return e&&e.__esModule?e:{default:e}}var 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));n.provider=n.props.provider,n.api_provider=o.default[n.provider],n.api_key=instant_img_localize[n.provider+"_app_id"];var r=n.props.result;return n.id=r.id,n.thumb=(0,s.default)(n.provider,r,"thumb"),n.img=(0,s.default)(n.provider,r,"img"),n.full_size=(0,s.default)(n.provider,r,"full_size"),n.author=(0,s.default)(n.provider,r,"author"),n.img_title=instant_img_localize.photo_by+" "+n.author,n.filename=r.id,n.title=n.img_title,n.alt=r.alt_description?r.alt_description:null,n.alt=null===n.alt?"":n.alt,n.caption="",n.user=(0,s.default)(n.provider,r,"user"),n.name=(0,s.default)(n.provider,r,"name"),n.user_photo=(0,s.default)(n.provider,r,"user_photo"),n.user_url=(0,s.default)(n.provider,r,"user_url"),n.link=(0,s.default)(n.provider,r,"link"),n.likes=(0,s.default)(n.provider,r,"likes"),n.attribution=(0,l.default)(n.provider,n.user_url,n.name),n.view_all=instant_img_localize.view_all,n.inProgress=!1,n.container=document.querySelector(".instant-img-container"),n.showTooltip=n.props.showTooltip.bind(n),n.hideTooltip=n.props.hideTooltip.bind(n),n.setAsFeaturedImage=!1,n.insertIntoPost=!1,n.is_media_router=n.props.mediaRouter,n.is_block_editor=n.props.blockEditor,n.SetFeaturedImage=n.props.SetFeaturedImage,n.InsertImage=n.props.InsertImage,n.displayGutenbergControl=!!n.is_block_editor,n.state={filename:n.filename,title:n.title,alt:n.alt,caption:n.caption},n.photo=a.default.createRef(),n.photoUpload=a.default.createRef(),n.editScreen=a.default.createRef(),n.captionRef=a.default.createRef(),n.noticeMsg=a.default.createRef(),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:"download",value:function(e){e.preventDefault();var t=this,n=e.currentTarget,r=t.photo.current,a=t.noticeMsg.current;if(n.classList.contains("upload")||(n=t.photoUpload.current),n.classList.contains("success")||this.inProgress)return!1;this.inProgress=!0,n.classList.add("uploading"),r.classList.add("in-progress"),a.innerHTML=instant_img_localize.saving,setTimeout((function(){a.innerHTML=instant_img_localize.resizing,setTimeout((function(){a.innerHTML=instant_img_localize.resizing_still}),5e3)}),3e3);var o=instant_img_localize.root+"instant-images/download/",l={id:n.getAttribute("data-id"),image_url:n.getAttribute("data-url"),filename:n.getAttribute("data-id")+".jpg",custom_filename:n.getAttribute("data-filename"),title:n.getAttribute("data-title"),alt:n.getAttribute("data-alt"),caption:n.getAttribute("data-caption"),parent_id:instant_img_localize.parent_id},s={headers:{"X-WP-Nonce":instant_img_localize.nonce,"Content-Type":"application/json"}};i.default.post(o,JSON.stringify(l),s).then((function(e){var i=e.data;if(i){var o=i.success,l=i.id,s=i.attachment,u=i.admin_url,c=i.msg;if(o){var f=u+"post.php?post="+s.id+"&action=edit";t.uploadComplete(n,r,c,f,s.id),"unsplash"===t.provider&&t.triggerUnsplashDownload(l),t.displayGutenbergControl&&t.setAsFeaturedImage&&(t.SetFeaturedImage(s.id),t.setAsFeaturedImage=!1,t.closeMediaModal()),t.displayGutenbergControl&&t.insertIntoPost&&(s.url&&(t.InsertImage(s.url,s.caption,s.alt),t.closeMediaModal()),t.insertIntoPost=!1),"true"!==t.container.dataset.mediaPopup||t.is_block_editor||(window.location="media-upload.php?type=image&tab=library&attachment_id="+s.id)}else t.uploadError(n,r,a,c)}else t.uploadError(n,r,a,instant_img_localize.error_upload)})).catch((function(e){console.log(e)}))}},{key:"triggerUnsplashDownload",value:function(e){var t=this.api_provider.photo_api+"/"+e+"/download/"+this.api_provider.api_query_var+this.api_key;fetch(t).then((function(e){return e.json()})).then((function(e){})).catch((function(e){console.log(e)}))}},{key:"setFeaturedImageClick",value:function(e){this.hideTooltip(e);var t=this.photoUpload.current;t&&(this.setAsFeaturedImage=!0,t.click())}},{key:"insertImageIntoPost",value:function(e){this.hideTooltip(e);var t=this.photoUpload.current;t&&(this.insertIntoPost=!0,t.click())}},{key:"uploadComplete",value:function(e,t,n,r,i){this.setImageTitle(e,n),t.classList.remove("in-progress"),t.classList.add("uploaded"),t.querySelector(".edit-photo").style.display="none",t.querySelector(".edit-photo-admin").style.display="inline-block",t.querySelector(".edit-photo-admin").href=r,t.querySelector(".edit-photo-admin").target="_balnk",e.classList.remove("uploading"),e.classList.remove("resizing"),e.classList.add("success"),this.inProgress=!1,setTimeout((function(){t.classList.remove("uploaded"),e.classList.remove("success")}),7500),this.is_block_editor&&(t.querySelector(".insert").style.display="none",t.querySelector(".set-featured").style.display="none"),this.mediaRouter(i),this.container.classList.contains("editor")&&void 0!==wp.media&&(null!==wp.media.frame.content.get()?(wp.media.frame.content.get().collection.props.set({ignore:+new Date}),wp.media.frame.content.get().options.selection.reset()):wp.media.frame.library.props.set({ignore:+new Date}))}},{key:"mediaRouter",value:function(e){if(this.is_media_router&&wp.media&&wp.media.frame&&wp.media.frame.el){var t=wp.media.frame.el.querySelector("#menu-item-browse");t&&t.click(),setTimeout((function(){null!==wp.media.frame.content.get()&&wp.media.frame.content.get().collection._requery(!0);var t=wp.media.frame.state().get("selection"),n=parseInt(e);t.reset(n?[wp.media.attachment(n)]:[])}),150)}}},{key:"uploadError",value:function(e,t,n){e.classList.remove("uploading"),e.classList.remove("resizing"),e.classList.add("errors"),this.setImageTitle(e,n),this.inProgress=!1,t.classList.add("has-error"),console.warn(n)}},{key:"setImageTitle",value:function(e,t){e.setAttribute("title",t)}},{key:"showEditScreen",value:function(e){e.preventDefault();var t=this;this.hideTooltip(e),t.editScreen.current.classList.add("editing"),setTimeout((function(){t.editScreen.current.focus({preventScroll:!0})}),150)}},{key:"handleEditChange",value:function(e){var t=e.target.name;"filename"===t&&this.setState({filename:e.target.value}),"title"===t&&this.setState({title:e.target.value}),"alt"===t&&this.setState({alt:e.target.value}),"caption"===t&&this.setState({caption:e.target.value})}},{key:"saveEditChange",value:function(){var e=this.photo.current.querySelector('input[name="filename"]');this.filename=e.value;var t=this.photo.current.querySelector('input[name="title"]');this.title=t.value;var n=this.photo.current.querySelector('input[name="alt"]');this.alt=n.value;var r=this.photo.current.querySelector('textarea[name="caption"]');this.caption=r.value,this.editScreen.current.classList.remove("editing"),this.photoUpload.current.click()}},{key:"cancelEditChange",value:function(e){var t=this.photo.current.querySelector('input[name="filename"]');t.value=t.dataset.original,this.setState({filename:t.value});var n=this.photo.current.querySelector('input[name="title"]');n.value=n.dataset.original,this.setState({title:n.value});var r=this.photo.current.querySelector('input[name="alt"]');r.value=r.dataset.original,this.setState({alt:r.value});var i=this.photo.current.querySelector('textarea[name="caption"]');i.value=i.dataset.original,this.setState({caption:i.value}),this.editScreen.current.classList.remove("editing"),this.photoUpload.current.focus({preventScrol:!0})}},{key:"closeMediaModal",value:function(){var e=document.querySelector(".media-modal");if(e){var t=e.querySelector("button.media-modal-close");if(!t)return!1;t.click()}}},{key:"addAttribution",value:function(e){e.preventDefault();this.captionRef.current.value=this.attribution,this.setState({caption:this.attribution})}},{key:"render",value:function(){var e=this,t=1===parseInt(this.likes)?instant_img_localize.likes:instant_img_localize.likes_plural;return a.default.createElement("article",{className:"photo",ref:this.photo},a.default.createElement("div",{className:"photo--wrap"},a.default.createElement("div",{className:"img-wrap"},a.default.createElement("a",{className:"upload loaded",href:this.full_size,ref:this.photoUpload,"data-id":this.id,"data-url":this.full_size,"data-filename":this.state.filename,"data-title":this.state.title,"data-alt":this.state.alt,"data-caption":this.state.caption,title:instant_img_localize.upload,onClick:function(t){return e.download(t)}},a.default.createElement("img",{src:this.img,alt:""}),a.default.createElement("div",{className:"status"})),a.default.createElement("div",{className:"notice-msg",ref:this.noticeMsg}),a.default.createElement("div",{className:"user-controls"},a.default.createElement("a",{className:"user fade",href:this.user_url,target:"_blank",title:"unsplash"===this.provider?this.view_all+" @ "+this.user:this.view_all+" "+this.name},a.default.createElement("div",{className:"user-wrap"},this.user_photo&&this.user_photo.length>0&&a.default.createElement("img",{src:this.user_photo}),"unsplash"===this.provider?this.user:this.name)),a.default.createElement("div",{className:"photo-options"},this.displayGutenbergControl&&a.default.createElement("button",{type:"button",className:"set-featured fade","data-title":instant_img_localize.set_as_featured,onMouseEnter:function(t){return e.showTooltip(t)},onMouseLeave:function(t){return e.hideTooltip(t)},onClick:function(t){return e.setFeaturedImageClick(t)}},a.default.createElement("i",{className:"fa fa-picture-o","aria-hidden":"true"}),a.default.createElement("span",{className:"offscreen"},instant_img_localize.set_as_featured)),this.displayGutenbergControl&&a.default.createElement("button",{type:"button",className:"insert fade","data-title":instant_img_localize.insert_into_post,onMouseEnter:function(t){return e.showTooltip(t)},onMouseLeave:function(t){return e.hideTooltip(t)},onClick:function(t){return e.insertImageIntoPost(t)}},a.default.createElement("i",{className:"fa fa-plus","aria-hidden":"true"}),a.default.createElement("span",{className:"offscreen"},instant_img_localize.insert_into_post)),a.default.createElement("a",{href:"#",className:"edit-photo-admin fade","data-title":instant_img_localize.edit_upload,onMouseEnter:function(t){return e.showTooltip(t)},onMouseLeave:function(t){return e.hideTooltip(t)}},a.default.createElement("i",{className:"fa fa-pencil","aria-hidden":"true"}),a.default.createElement("span",{className:"offscreen"},instant_img_localize.edit_upload)),a.default.createElement("button",{type:"button",className:"edit-photo fade","data-title":instant_img_localize.edit_details,onMouseEnter:function(t){return e.showTooltip(t)},onMouseLeave:function(t){return e.hideTooltip(t)},onClick:function(t){return e.showEditScreen(t)}},a.default.createElement("i",{className:"fa fa-cog","aria-hidden":"true"}),a.default.createElement("span",{className:"offscreen"},instant_img_localize.edit_details)))),a.default.createElement("div",{className:"options"},a.default.createElement("span",{className:"likes tooltip--above","data-title":this.likes+" "+t,onMouseEnter:function(t){return e.showTooltip(t)},onMouseLeave:function(t){return e.hideTooltip(t)}},a.default.createElement("i",{className:"fa fa-heart heart-like","aria-hidden":"true"})," ",this.likes),a.default.createElement("a",{className:"tooltip--above",href:this.link,"data-title":"unsplash"===this.provider?instant_img_localize.view_on_unsplash:instant_img_localize.view_on_pixabay,onMouseEnter:function(t){return e.showTooltip(t)},onMouseLeave:function(t){return e.hideTooltip(t)},target:"_blank"},a.default.createElement("i",{className:"fa fa-external-link","aria-hidden":"true"}),a.default.createElement("span",{className:"offscreen"},"unsplash"===this.provider?instant_img_localize.view_on_unsplash:instant_img_localize.view_on_pixabay)))),a.default.createElement("div",{className:"edit-screen",tabIndex:"0",ref:this.editScreen},a.default.createElement("div",{className:"edit-screen--title"},a.default.createElement("div",null,a.default.createElement("p",{className:"heading"},instant_img_localize.edit_details),a.default.createElement("p",null,instant_img_localize.edit_details_intro)),a.default.createElement("div",{className:"preview",style:{backgroundImage:"url("+this.thumb+")"}})),a.default.createElement("label",null,a.default.createElement("span",null,instant_img_localize.edit_filename,":"),a.default.createElement("input",{type:"text",name:"filename","data-original":this.filename,placeholder:this.filename,value:this.state.filename,onChange:function(t){return e.handleEditChange(t)}}),a.default.createElement("em",null,".jpg")),a.default.createElement("label",null,a.default.createElement("span",null,instant_img_localize.edit_title,":"),a.default.createElement("input",{type:"text",name:"title","data-original":this.title,placeholder:this.title,value:this.state.title||"",onChange:function(t){return e.handleEditChange(t)}})),a.default.createElement("label",null,a.default.createElement("span",null,instant_img_localize.edit_alt,":"),a.default.createElement("input",{type:"text",name:"alt","data-original":this.alt,value:this.state.alt||"",onChange:function(t){return e.handleEditChange(t)}})),a.default.createElement("label",null,a.default.createElement("span",null,instant_img_localize.edit_caption,":"),a.default.createElement("textarea",{rows:"4",name:"caption","data-original":"",onChange:function(t){return e.handleEditChange(t)},value:this.state.caption||"",ref:this.captionRef})),a.default.createElement("div",{className:"add-attribution-row"},a.default.createElement("button",{onClick:function(t){return e.addAttribution(t)},type:"button"},instant_img_localize.attribution)),a.default.createElement("div",{className:"edit-screen--controls"},a.default.createElement("button",{type:"button",className:"button",onClick:function(t){return e.cancelEditChange(t)}},instant_img_localize.cancel)," "," ",a.default.createElement("button",{type:"button",className:"button button-primary",onClick:function(){return e.saveEditChange()}},instant_img_localize.upload_now)))))}}]),t}(a.default.Component);t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=instant_img_localize.photo_by;switch(e){case"unsplash":r+=' <a href="'+t+'?utm_source=wordpress-instant-images&utm_medium=referral">'+n+'</a> on <a href="'+instant_img_localize.unsplash_url+'/?utm_source=wordpress-instant-images&utm_medium=referral">Unsplash</a>';break;case"pixabay":r+=' <a href="'+t+'?utm_source=wordpress-instant-images&utm_medium=referral">'+n+'</a> on <a href="'+instant_img_localize.pixabay_url+'/?utm_source=wordpress-instant-images&utm_medium=referral">Pixabay</a>'}return r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r="";switch(n){case"thumb":"pixabay"===e&&(r=t.previewURL),"unsplash"===e&&(r=t.urls.thumb);break;case"img":"pixabay"===e&&(r=t.webformatURL),"unsplash"===e&&(r=t.urls.small);break;case"full_size":"pixabay"===e&&(r=t.largeImageURL),"unsplash"===e&&(r=t.urls.full);break;case"author":"pixabay"===e&&(r=t.user),"unsplash"===e&&(r=t.user.name);break;case"user":"pixabay"===e&&(r=t.user_id),"unsplash"===e&&(r=t.user.username);break;case"name":"pixabay"===e&&(r=t.user),"unsplash"===e&&(r=t.user.name);break;case"user_photo":"pixabay"===e&&(r=t.userImageURL),"unsplash"===e&&(r=t.user.profile_image.small);break;case"user_url":"pixabay"===e&&(r=instant_img_localize.pixabay_url+"/users/"+t.user+"-"+t.user_id+"/"),"unsplash"===e&&(r=instant_img_localize.unsplash_url+"/@"+t.user.username+"?utm_source=wordpress-instant-images&utm_medium=referral");break;case"link":"pixabay"===e&&(r=t.pageURL),"unsplash"===e&&(r=t.links.html);break;case"likes":"pixabay"===e&&(r=t.likes),"unsplash"===e&&(r=t.likes)}return r}},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}}(),a=n(0),o=(r=a)&&r.__esModule?r:{default:r};var l=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.getPhotos=n.props.getPhotos.bind(n),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),i(t,[{key:"render",value:function(){var e=this;return o.default.createElement("div",{className:this.props.isSearch?"searchResults":"searchResults hide"},o.default.createElement("span",{title:this.props.title},this.props.total),o.default.createElement("button",{type:"button",title:instant_img_localize.clear_search,onClick:function(){return e.getPhotos("latest")}},"x",o.default.createElement("span",{className:"offscreen"},instant_img_localize.clear_search)))}}]),t}(o.default.Component);t.default=l},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}}(),a=n(0),o=(r=a)&&r.__esModule?r:{default:r};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return l(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),i(t,[{key:"render",value:function(){return o.default.createElement("div",{id:"tooltip"})}}]),t}(o.default.Component);t.default=u},function(e,t,n){var r,i;
53
  /*!
54
  * imagesLoaded v4.1.4
55
  * JavaScript is all like "You images are done yet or what?"
56
  * MIT License
57
- */!function(a,o){"use strict";r=[n(3)],void 0===(i=function(e){return function(e,t){var n=e.jQuery,r=e.console;function i(e,t){for(var n in t)e[n]=t[n];return e}var a=Array.prototype.slice;function o(e,t,l){if(!(this instanceof o))return new o(e,t,l);var s,u=e;("string"==typeof e&&(u=document.querySelectorAll(e)),u)?(this.elements=(s=u,Array.isArray(s)?s:"object"==typeof s&&"number"==typeof s.length?a.call(s):[s]),this.options=i({},this.options),"function"==typeof t?l=t:i(this.options,t),l&&this.on("always",l),this.getImages(),n&&(this.jqDeferred=new n.Deferred),setTimeout(this.check.bind(this))):r.error("Bad element for imagesLoaded "+(u||e))}o.prototype=Object.create(t.prototype),o.prototype.options={},o.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},o.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),!0===this.options.background&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&l[t]){for(var n=e.querySelectorAll("img"),r=0;r<n.length;r++){var i=n[r];this.addImage(i)}if("string"==typeof this.options.background){var a=e.querySelectorAll(this.options.background);for(r=0;r<a.length;r++){var o=a[r];this.addElementBackgroundImages(o)}}}};var l={1:!0,9:!0,11:!0};function s(e){this.img=e}function u(e,t){this.url=e,this.element=t,this.img=new Image}return o.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var n=/url\((['"])?(.*?)\1\)/gi,r=n.exec(t.backgroundImage);null!==r;){var i=r&&r[2];i&&this.addBackground(i,e),r=n.exec(t.backgroundImage)}},o.prototype.addImage=function(e){var t=new s(e);this.images.push(t)},o.prototype.addBackground=function(e,t){var n=new u(e,t);this.images.push(n)},o.prototype.check=function(){var e=this;function t(t,n,r){setTimeout((function(){e.progress(t,n,r)}))}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach((function(e){e.once("progress",t),e.check()})):this.complete()},o.prototype.progress=function(e,t,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&r&&r.log("progress: "+n,e,t)},o.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},s.prototype=Object.create(t.prototype),s.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},s.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},s.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},s.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},s.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},s.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},s.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},u.prototype=Object.create(s.prototype),u.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},u.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},u.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},o.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&((n=t).fn.imagesLoaded=function(e,t){return new o(this,e,t).jqDeferred.promise(n(this))})},o.makeJQueryPlugin(),o}(a,e)}.apply(t,r))||(e.exports=i)}("undefined"!=typeof window?window:this)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return instant_img_localize&&instant_img_localize.default_provider?instant_img_localize.default_provider:a.default.defaults.provider};var r,i=n(2),a=(r=i)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";n.r(t),n.d(t,"createFocusTrap",(function(){return E}));
58
  /*!
59
  * tabbable 5.2.1
60
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
@@ -64,4 +64,4 @@ var r=["input","select","textarea","a[href]","button","[tabindex]","audio[contro
64
  * focus-trap 6.7.1
65
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
66
  */
67
- function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}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 g,y=(g=[],{activateTrap:function(e){if(g.length>0){var t=g[g.length-1];t!==e&&t.pause()}var n=g.indexOf(e);-1===n||g.splice(n,1),g.push(e)},deactivateTrap:function(e){var t=g.indexOf(e);-1!==t&&g.splice(t,1),g.length>0&&g[g.length-1].unpause()}}),b=function(e){return setTimeout(e,0)},_=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},w=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e.apply(void 0,n):e},k=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},E=function(e,t){var n,r=(null==t?void 0:t.document)||document,i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),a={containers:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},u=function(e,t,n){return e&&void 0!==e[t]?e[t]:i[n||t]},c=function(e){return!(!e||!a.containers.some((function(t){return t.contains(e)})))},f=function(e){var t=i[e];if("function"==typeof t){for(var n=arguments.length,a=new Array(n>1?n-1:0),o=1;o<n;o++)a[o-1]=arguments[o];t=t.apply(void 0,a)}if(!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var l=t;if("string"==typeof t&&!(l=r.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return l},p=function(){var e=f("initialFocus");if(!1===e)return!1;if(void 0===e)if(c(r.activeElement))e=r.activeElement;else{var t=a.tabbableGroups[0];e=t&&t.firstTabbableNode||f("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},g=function(){if(a.tabbableGroups=a.containers.map((function(e){var t,n,r,i=(n=[],r=[],o(e,(t=t||{}).includeContainer,d.bind(null,t)).forEach((function(e,t){var i=l(e);0===i?n.push(e):r.push({documentOrder:t,tabIndex:i,node:e})})),r.sort(s).map((function(e){return e.node})).concat(n));if(i.length>0)return{container:e,firstTabbableNode:i[0],lastTabbableNode:i[i.length-1]}})).filter((function(e){return!!e})),a.tabbableGroups.length<=0&&!f("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},E=function e(t){!1!==t&&t!==r.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!i.preventScroll}),a.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(p()))},S=function(e){var t=f("setReturnFocus",e);return t||!1!==t&&e},x=function(e){var t=k(e);c(t)||(w(i.clickOutsideDeactivates,e)?n.deactivate({returnFocus:i.returnFocusOnDeactivate&&!h(t)}):w(i.allowOutsideClick,e)||e.preventDefault())},C=function(e){var t=k(e),n=c(t);n||t instanceof Document?n&&(a.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),E(a.mostRecentlyFocusedNode||p()))},O=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==w(i.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=k(e);g();var n=null;if(a.tabbableGroups.length>0){var r=_(a.tabbableGroups,(function(e){return e.container.contains(t)}));if(r<0)n=e.shiftKey?a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:a.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var i=_(a.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(i<0&&a.tabbableGroups[r].container===t&&(i=r),i>=0){var o=0===i?a.tabbableGroups.length-1:i-1;n=a.tabbableGroups[o].lastTabbableNode}}else{var l=_(a.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(l<0&&a.tabbableGroups[r].container===t&&(l=r),l>=0){var s=l===a.tabbableGroups.length-1?0:l+1;n=a.tabbableGroups[s].firstTabbableNode}}}else n=f("fallbackFocus");n&&(e.preventDefault(),E(n))}(e)},T=function(e){if(!w(i.clickOutsideDeactivates,e)){var t=k(e);c(t)||w(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())}},P=function(){if(a.active)return y.activateTrap(n),a.delayInitialFocusTimer=i.delayInitialFocus?b((function(){E(p())})):E(p()),r.addEventListener("focusin",C,!0),r.addEventListener("mousedown",x,{capture:!0,passive:!1}),r.addEventListener("touchstart",x,{capture:!0,passive:!1}),r.addEventListener("click",T,{capture:!0,passive:!1}),r.addEventListener("keydown",O,{capture:!0,passive:!1}),n},L=function(){if(a.active)return r.removeEventListener("focusin",C,!0),r.removeEventListener("mousedown",x,!0),r.removeEventListener("touchstart",x,!0),r.removeEventListener("click",T,!0),r.removeEventListener("keydown",O,!0),n};return(n={activate:function(e){if(a.active)return this;var t=u(e,"onActivate"),n=u(e,"onPostActivate"),i=u(e,"checkCanFocusTrap");i||g(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=r.activeElement,t&&t();var o=function(){i&&g(),P(),n&&n()};return i?(i(a.containers.concat()).then(o,o),this):(o(),this)},deactivate:function(e){if(!a.active)return this;clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,L(),a.active=!1,a.paused=!1,y.deactivateTrap(n);var t=u(e,"onDeactivate"),r=u(e,"onPostDeactivate"),i=u(e,"checkCanReturnFocus");t&&t();var o=u(e,"returnFocus","returnFocusOnDeactivate"),l=function(){b((function(){o&&E(S(a.nodeFocusedBeforeActivation)),r&&r()}))};return o&&i?(i(S(a.nodeFocusedBeforeActivation)).then(l,l),this):(l(),this)},pause:function(){return a.paused||!a.active||(a.paused=!0,L()),this},unpause:function(){return a.paused&&a.active?(a.paused=!1,g(),P(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return a.containers=t.map((function(e){return"string"==typeof e?r.querySelector(e):e})),a.active&&g(),this}}).updateContainerElements(e),n}},,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(21),a=(r=i)&&r.__esModule?r:{default:r};t.default=function(e){var t=e.color,n=void 0===t?"unsplash":t;return React.createElement("span",{className:(0,a.default)("instant-images-sidebar-icon","color-"+n)},React.createElement("svg",{viewBox:"0 0 31 58",width:"13px",height:"24px"},React.createElement("title",null,"Instant Images Logo"),React.createElement("polygon",{points:"20 0 20 23 31 23 11 58 11 34 0 34 20 0",fill:"#4a7bc5"})))}},,,function(e,t,n){"use strict";var r=a(n(83)),i=a(n(86));function a(e){return e&&e.__esModule?e:{default:e}}var o=wp.element.Fragment;(0,wp.plugins.registerPlugin)("instant-images",{render:function(){return React.createElement(o,null,React.createElement(i.default,null),React.createElement(r.default,null))}})},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,a=void 0;try{for(var o,l=e[Symbol.iterator]();!(r=(o=l.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(i)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=p(n(0)),a=p(n(26)),o=p(n(2)),l=p(n(5)),s=p(n(8)),u=p(n(72)),c=p(n(79)),f=p(n(84)),d=p(n(85));function p(e){return e&&e.__esModule?e:{default:e}}var h=wp.editPost.PluginSidebar,m=wp.element,v=m.useState,g=m.useEffect;t.default=function(){var e=v(),t=r(e,2),n=t[0],p=t[1],m=(0,u.default)(),y=o.default.defaults.provider,b=o.default.defaults.order,_=o.default[m].requires_key;return g((function(){var e,t;(e=regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!_){e.next=9;break}return e.next=3,fetch((0,l.default)(m));case 3:t=e.sent,n=t.ok,r=t.status,n?p(m):(p(y),(0,s.default)(m,r)),e.next=10;break;case 9:p(y);case 10:case"end":return e.stop()}}),e,this)})),t=function(){var t=e.apply(this,arguments);return new Promise((function(e,n){return function r(i,a){try{var o=t[i](a),l=o.value}catch(e){return void n(e)}if(!o.done)return Promise.resolve(l).then((function(e){r("next",e)}),(function(e){r("throw",e)}));e(l)}("next")}))},function(){return t.apply(this,arguments)})()}),[]),i.default.createElement(h,{icon:i.default.createElement(c.default,{borderless:!0,color:"unsplash"}),name:"instant-images-sidebar",title:"Instant Images"},i.default.createElement("div",{className:"instant-img-container"},n&&i.default.createElement(a.default,{editor:"gutenberg",page:1,orderby:b,provider:n,SetFeaturedImage:d.default,InsertImage:f.default})))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=wp.blocks.createBlock;t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(""===e)return!1;var i=r("core/image",{url:e,caption:t,alt:n});wp.data.dispatch("core/editor").insertBlocks(i)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=wp.data.dispatch;t.default=function(e){if(null===e)return!1;r("core/editor").editPost({featured_media:e})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(79),a=(r=i)&&r.__esModule?r:{default:r};var o=wp.editPost.PluginSidebarMoreMenuItem;t.default=function(){return React.createElement(o,{icon:React.createElement(a.default,{color:"unsplash"}),target:"instant-images-sidebar",className:"instant-images-menu-item"},"Instant Images")}}]);
1
+ !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}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return 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=85)}([function(e,t,n){"use strict";e.exports=n(25)},function(e,t,n){"use strict";var r=n(14),i=Object.prototype.toString;function a(e){return"[object Array]"===i.call(e)}function o(e){return void 0===e}function l(e){return null!==e&&"object"==typeof e}function s(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===i.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),a(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:a,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!o(e)&&null!==e.constructor&&!o(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:l,isPlainObject:s,isUndefined:o,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:u,isStream:function(e){return l(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function e(){var t={};function n(n,r){s(t[r])&&s(n)?t[r]=e(t[r],n):s(n)?t[r]=e({},n):a(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)c(arguments[r],n);return t},extend:function(e,t,n){return c(t,(function(t,i){e[i]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},function(e,t,n){"use strict";e.exports={defaults:{provider:"unsplash",order:"latest",per_page:"20"},unsplash:{requires_key:!1,auth_headers:!1,new:!1,api_var:"client_id",api_query_var:"client_id=",collections_api:"https://api.unsplash.com/collections/",photo_api:"https://api.unsplash.com/photos/",search_api:"https://api.unsplash.com/search/photos/",search_var:"query",arr_key:"results"},pixabay:{requires_key:!0,auth_headers:!1,new:!0,api_var:"key",api_query_var:"key=",photo_api:"https://pixabay.com/api/",search_api:"https://pixabay.com/api/",search_var:"q",arr_key:"hits"},pexels:{requires_key:!0,auth_headers:!0,new:!0,api_var:"",api_query_var:"",photo_api:"https://api.pexels.com/v1/curated/",search_api:"https://api.pexels.com/v1/search/",search_var:"query",arr_key:"photos"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e)return"";var n=new URL(e);return Object.keys(t).forEach((function(e){n.searchParams.append(e,t[e])})),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e,t){if(!e)return{};var n={per_page:o.default.defaults.per_page};n=s(n=l(n,e),e),n=r({},n,t),instant_img_localize.query_debug&&console.table(n);return n},t.getAuth=l,t.getContentSafety=s;var i,a=n(2),o=(i=a)&&i.__esModule?i:{default:i};function l(e,t){return!!o.default[t].api_var&&t?(e[o.default[t].api_var]=instant_img_localize[t+"_app_id"],e):e}function s(e,t){switch(t){case"unsplash":instant_img_localize.unsplash_content_filter&&(e.content_filter=instant_img_localize.unsplash_content_filter);break;case"pixabay":instant_img_localize.pixabay_safesearch&&(e.safesearch=instant_img_localize.pixabay_safesearch)}return e}},function(e,t,n){var r,i;"undefined"!=typeof window&&window,void 0===(i="function"==typeof(r=function(){"use strict";function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var n=this._events=this._events||{},r=n[e]=n[e]||[];return-1==r.indexOf(t)&&r.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var n=this._onceEvents=this._onceEvents||{};return(n[e]=n[e]||{})[t]=!0,this}},t.off=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){var r=n.indexOf(t);return-1!=r&&n.splice(r,1),this}},t.emitEvent=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){n=n.slice(0),t=t||[];for(var r=this._onceEvents&&this._onceEvents[e],i=0;i<n.length;i++){var a=n[i];r&&r[a]&&(this.off(e,a),delete r[a]),a.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e})?r.call(t,n,t,e):r)||(e.exports=i)},function(e,t,n){var r,i;
2
  /*!
3
  * getSize v2.0.3
4
  * measure size of elements
5
  * MIT license
6
+ */window,void 0===(i="function"==typeof(r=function(){"use strict";function e(e){var t=parseFloat(e);return-1==e.indexOf("%")&&!isNaN(t)&&t}var t="undefined"==typeof console?function(){}:function(e){console.error(e)},n=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],r=n.length;function i(e){var n=getComputedStyle(e);return n||t("Style returned "+n+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),n}var a,o=!1;function l(t){if(function(){if(!o){o=!0;var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box";var n=document.body||document.documentElement;n.appendChild(t);var r=i(t);a=200==Math.round(e(r.width)),l.isBoxSizeOuter=a,n.removeChild(t)}}(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var s=i(t);if("none"==s.display)return function(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t<r;t++)e[n[t]]=0;return e}();var u={};u.width=t.offsetWidth,u.height=t.offsetHeight;for(var c=u.isBorderBox="border-box"==s.boxSizing,f=0;f<r;f++){var d=n[f],p=s[d],h=parseFloat(p);u[d]=isNaN(h)?0:h}var m=u.paddingLeft+u.paddingRight,v=u.paddingTop+u.paddingBottom,g=u.marginLeft+u.marginRight,y=u.marginTop+u.marginBottom,b=u.borderLeftWidth+u.borderRightWidth,_=u.borderTopWidth+u.borderBottomWidth,w=c&&a,k=e(s.width);!1!==k&&(u.width=k+(w?0:m+b));var E=e(s.height);return!1!==E&&(u.height=E+(w?0:v+_)),u.innerWidth=u.width-(m+b),u.innerHeight=u.height-(v+_),u.outerWidth=u.width+g,u.outerHeight=u.height+y,u}}return l})?r.call(t,n,t,e):r)||(e.exports=i)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e){var t=i.default[e],n=(0,o.default)(e);return n=r({},n,{per_page:5,page:1}),(0,a.default)(t.photo_api,n)};var i=l(n(2)),a=l(n(3)),o=l(n(4));function l(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t,n){"use strict";(function(t){var r=n(1),i=n(49),a=n(16),o={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(s=n(17)),s),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(l(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw a(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(o)})),e.exports=u}).call(this,n(23))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=instant_img_localize[e+"_app_id"],n={};switch(e){case"pexels":n={Authorization:t}}return n}},function(e,t,n){"use strict";
7
  /*
8
  object-assign
9
  (c) Sindre Sorhus
10
  @license MIT
11
+ */var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,l,s=o(e),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))i.call(n,c)&&(s[c]=n[c]);if(r){l=r(n);for(var f=0;f<l.length;f++)a.call(n,l[f])&&(s[l[f]]=n[l[f]])}}return s}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=instant_img_localize;400!==t&&401!==t||console.warn("["+n.instant_images+" - "+t+" Error] "+(0,a.default)(e)+": "+n.api_invalid_msg);429===t&&console.warn("["+n.instant_images+" - "+t+" Error] "+(0,a.default)(e)+": "+n.api_ratelimit_msg)};var r,i=n(8),a=(r=i)&&r.__esModule?r:{default:r}},function(e,t,n){e.exports=n(44)},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(1);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(r.isURLSearchParams(t))a=t.toString();else{var o=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),o.push(i(t)+"="+i(e))})))})),a=o.join("&")}if(a){var l=e.indexOf("#");-1!==l&&(e=e.slice(0,l)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(1),i=n(50),a=n(51),o=n(15),l=n(52),s=n(55),u=n(56),c=n(18);e.exports=function(e){return new Promise((function(t,n){var f=e.data,d=e.headers,p=e.responseType;r.isFormData(f)&&delete d["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(m+":"+v)}var g=l(e.baseURL,e.url);function y(){if(h){var r="getAllResponseHeaders"in h?s(h.getAllResponseHeaders()):null,a={data:p&&"text"!==p&&"json"!==p?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h};i(t,n,a),h=null}}if(h.open(e.method.toUpperCase(),o(g,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,"onloadend"in h?h.onloadend=y:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(y)},h.onabort=function(){h&&(n(c("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(c("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var b=(e.withCredentials||u(g))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;b&&(d[e.xsrfHeaderName]=b)}"setRequestHeader"in h&&r.forEach(d,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete d[t]:h.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),p&&"json"!==p&&(h.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),n(e),h=null)})),f||(f=null),h.send(f)}))}},function(e,t,n){"use strict";var r=n(16);e.exports=function(e,t,n,i,a){var o=new Error(e);return r(o,t,n,i,a)}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";var r=n(1);e.exports=function(e,t){t=t||{};var n={},i=["url","method","data"],a=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],l=["validateStatus"];function s(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function u(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=s(void 0,e[i])):n[i]=s(e[i],t[i])}r.forEach(i,(function(e){r.isUndefined(t[e])||(n[e]=s(void 0,t[e]))})),r.forEach(a,u),r.forEach(o,(function(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=s(void 0,e[i])):n[i]=s(void 0,t[i])})),r.forEach(l,(function(r){r in t?n[r]=s(e[r],t[r]):r in e&&(n[r]=s(void 0,e[r]))}));var c=i.concat(a).concat(o).concat(l),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===c.indexOf(e)}));return r.forEach(f,u),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(26)},function(e,t){var n,r,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var s,u=[],c=!1,f=-1;function d(){c&&s&&(c=!1,s.length?u=s.concat(u):f=-1,u.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=u.length;t;){for(s=u,u=[];++f<t;)s&&s[f].run();f=-1,t=u.length}s=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||c||l(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){var r;
12
  /*!
13
  Copyright (c) 2018 Jed Watson.
14
  Licensed under the MIT License (MIT), see
21
  *
22
  * This source code is licensed under the MIT license found in the
23
  * LICENSE file in the root directory of this source tree.
24
+ */var r=n(11),i=60103,a=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,l=60110,s=60112;t.Suspense=60113;var u=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;i=f("react.element"),a=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),o=f("react.provider"),l=f("react.context"),s=f("react.forward_ref"),t.Suspense=f("react.suspense"),u=f("react.memo"),c=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function g(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=v.prototype;var b=y.prototype=new g;b.constructor=y,r(b,v.prototype),b.isPureReactComponent=!0;var _={current:null},w=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,n){var r,a={},o=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(o=""+t.key),t)w.call(t,r)&&!k.hasOwnProperty(r)&&(a[r]=t[r]);var s=arguments.length-2;if(1===s)a.children=n;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];a.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===a[r]&&(a[r]=s[r]);return{$$typeof:i,type:e,key:o,ref:l,props:a,_owner:_.current}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var S=/\/+/g;function O(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function C(e,t,n,r,o){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case i:case a:s=!0}}if(s)return o=o(s=e),e=""===r?"."+O(s,0):r,Array.isArray(o)?(n="",null!=e&&(n=e.replace(S,"$&/")+"/"),C(o,t,n,"",(function(e){return e}))):null!=o&&(x(o)&&(o=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(S,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=""===r?".":r+":",Array.isArray(e))for(var u=0;u<e.length;u++){var c=r+O(l=e[u],u);s+=C(l,t,n,c,o)}else if("function"==typeof(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e)))for(e=c.call(e),u=0;!(l=e.next()).done;)s+=C(l=l.value,t,n,c=r+O(l,u++),o);else if("object"===l)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return s}function T(e,t,n){if(null==e)return e;var r=[],i=0;return C(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function P(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var L={current:null};function N(){var e=L.current;if(null===e)throw Error(p(321));return e}var z={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:_,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:T,forEach:function(e,t,n){T(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!x(e))throw Error(p(143));return e}},t.Component=v,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var a=r({},e.props),o=e.key,l=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,s=_.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)w.call(t,c)&&!k.hasOwnProperty(c)&&(a[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)a.children=n;else if(1<c){u=Array(c);for(var f=0;f<c;f++)u[f]=arguments[f+2];a.children=u}return{$$typeof:i,type:e.type,key:o,ref:l,props:a,_owner:s}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:l,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=x,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return N().useCallback(e,t)},t.useContext=function(e,t){return N().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return N().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return N().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return N().useLayoutEffect(e,t)},t.useMemo=function(e,t){return N().useMemo(e,t)},t.useReducer=function(e,t,n){return N().useReducer(e,t,n)},t.useRef=function(e){return N().useRef(e)},t.useState=function(e){return N().useState(e)},t.version="17.0.2"},function(e,t,n){"use strict";
25
  /** @license React v17.0.2
26
  * react-dom.production.min.js
27
  *
29
  *
30
  * This source code is licensed under the MIT license found in the
31
  * LICENSE file in the root directory of this source tree.
32
+ */var r=n(0),i=n(11),a=n(27);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(o(227));var l=new Set,s={};function u(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)l.add(t[e])}var f=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,h={},m={};function v(e,t,n,r,i,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new v(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".split(" ").forEach((function(e){g[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function _(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!p.call(m,e)||!p.call(h,e)&&(d.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new v(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(y,b);g[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=60103,E=60106,x=60107,S=60108,O=60114,C=60109,T=60110,P=60112,L=60113,N=60120,z=60115,I=60116,j=60121,R=60128,M=60129,F=60130,D=60131;if("function"==typeof Symbol&&Symbol.for){var A=Symbol.for;k=A("react.element"),E=A("react.portal"),x=A("react.fragment"),S=A("react.strict_mode"),O=A("react.profiler"),C=A("react.provider"),T=A("react.context"),P=A("react.forward_ref"),L=A("react.suspense"),N=A("react.suspense_list"),z=A("react.memo"),I=A("react.lazy"),j=A("react.block"),A("react.scope"),R=A("react.opaque.id"),M=A("react.debug_trace_mode"),F=A("react.offscreen"),D=A("react.legacy_hidden")}var U,B="function"==typeof Symbol&&Symbol.iterator;function W(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=B&&e[B]||e["@@iterator"])?e:null}function q(e){if(void 0===U)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);U=t&&t[1]||""}return"\n"+U+e}var H=!1;function V(e,t){if(!e||H)return"";H=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var i=e.stack.split("\n"),a=r.stack.split("\n"),o=i.length-1,l=a.length-1;1<=o&&0<=l&&i[o]!==a[l];)l--;for(;1<=o&&0<=l;o--,l--)if(i[o]!==a[l]){if(1!==o||1!==l)do{if(o--,0>--l||i[o]!==a[l])return"\n"+i[o].replace(" at new "," at ")}while(1<=o&&0<=l);break}}}finally{H=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?q(e):""}function $(e){switch(e.tag){case 5:return q(e.type);case 16:return q("Lazy");case 13:return q("Suspense");case 19:return q("SuspenseList");case 0:case 2:case 15:return e=V(e.type,!1);case 11:return e=V(e.type.render,!1);case 22:return e=V(e.type._render,!1);case 1:return e=V(e.type,!0);default:return""}}function Q(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case E:return"Portal";case O:return"Profiler";case S:return"StrictMode";case L:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case z:return Q(e.type);case j:return Q(e._render);case I:t=e._payload,e=e._init;try{return Q(e(t))}catch(e){}}return null}function G(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=Y(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function X(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Y(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=G(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&_(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=G(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ie(e,t.type,n):t.hasOwnProperty("defaultValue")&&ie(e,t.type,G(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ie(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ae(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function oe(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+G(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function le(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function se(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:G(n)}}function ue(e,t){var n=G(t.value),r=G(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml",de="http://www.w3.org/2000/svg";function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ve=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==de||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ge(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},be=["Webkit","ms","Moz","O"];function _e(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}function we(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=_e(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(ye).forEach((function(e){be.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ye[t]=ye[e]}))}));var ke=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ee(e,t){if(t){if(ke[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function xe(e,t){if(-1===e.indexOf("-"))return"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}}function Se(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Oe=null,Ce=null,Te=null;function Pe(e){if(e=Jr(e)){if("function"!=typeof Oe)throw Error(o(280));var t=e.stateNode;t&&(t=ei(t),Oe(e.stateNode,e.type,t))}}function Le(e){Ce?Te?Te.push(e):Te=[e]:Ce=e}function Ne(){if(Ce){var e=Ce,t=Te;if(Te=Ce=null,Pe(e),t)for(e=0;e<t.length;e++)Pe(t[e])}}function ze(e,t){return e(t)}function Ie(e,t,n,r,i){return e(t,n,r,i)}function je(){}var Re=ze,Me=!1,Fe=!1;function De(){null===Ce&&null===Te||(je(),Ne())}function Ae(e,t){var n=e.stateNode;if(null===n)return null;var r=ei(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}var Ue=!1;if(f)try{var Be={};Object.defineProperty(Be,"passive",{get:function(){Ue=!0}}),window.addEventListener("test",Be,Be),window.removeEventListener("test",Be,Be)}catch(e){Ue=!1}function We(e,t,n,r,i,a,o,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var qe=!1,He=null,Ve=!1,$e=null,Qe={onError:function(e){qe=!0,He=e}};function Ge(e,t,n,r,i,a,o,l,s){qe=!1,He=null,We.apply(Qe,arguments)}function Ye(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ke(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Xe(e){if(Ye(e)!==e)throw Error(o(188))}function Je(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ye(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Xe(i),e;if(a===r)return Xe(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var l=!1,s=i.child;s;){if(s===n){l=!0,n=i,r=a;break}if(s===r){l=!0,r=i,n=a;break}s=s.sibling}if(!l){for(s=a.child;s;){if(s===n){l=!0,n=a,r=i;break}if(s===r){l=!0,r=a,n=i;break}s=s.sibling}if(!l)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Ze(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,it=!1,at=[],ot=null,lt=null,st=null,ut=new Map,ct=new Map,ft=[],dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pt(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function ht(e,t){switch(e){case"focusin":case"focusout":ot=null;break;case"dragenter":case"dragleave":lt=null;break;case"mouseover":case"mouseout":st=null;break;case"pointerover":case"pointerout":ut.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ct.delete(t.pointerId)}}function mt(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e=pt(t,n,r,i,a),null!==t&&(null!==(t=Jr(t))&&tt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function vt(e){var t=Xr(e.target);if(null!==t){var n=Ye(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ke(n)))return e.blockedOn=t,void rt(e.lanePriority,(function(){a.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function gt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Jr(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function yt(e,t,n){gt(e)&&n.delete(t)}function bt(){for(it=!1;0<at.length;){var e=at[0];if(null!==e.blockedOn){null!==(e=Jr(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&at.shift()}null!==ot&&gt(ot)&&(ot=null),null!==lt&&gt(lt)&&(lt=null),null!==st&&gt(st)&&(st=null),ut.forEach(yt),ct.forEach(yt)}function _t(e,t){e.blockedOn===t&&(e.blockedOn=null,it||(it=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,bt)))}function wt(e){function t(t){return _t(t,e)}if(0<at.length){_t(at[0],e);for(var n=1;n<at.length;n++){var r=at[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==ot&&_t(ot,e),null!==lt&&_t(lt,e),null!==st&&_t(st,e),ut.forEach(t),ct.forEach(t),n=0;n<ft.length;n++)(r=ft[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ft.length&&null===(n=ft[0]).blockedOn;)vt(n),null===n.blockedOn&&ft.shift()}function kt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Et={animationend:kt("Animation","AnimationEnd"),animationiteration:kt("Animation","AnimationIteration"),animationstart:kt("Animation","AnimationStart"),transitionend:kt("Transition","TransitionEnd")},xt={},St={};function Ot(e){if(xt[e])return xt[e];if(!Et[e])return e;var t,n=Et[e];for(t in n)if(n.hasOwnProperty(t)&&t in St)return xt[e]=n[t];return e}f&&(St=document.createElement("div").style,"AnimationEvent"in window||(delete Et.animationend.animation,delete Et.animationiteration.animation,delete Et.animationstart.animation),"TransitionEvent"in window||delete Et.transitionend.transition);var Ct=Ot("animationend"),Tt=Ot("animationiteration"),Pt=Ot("animationstart"),Lt=Ot("transitionend"),Nt=new Map,zt=new Map,It=["abort","abort",Ct,"animationEnd",Tt,"animationIteration",Pt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Lt,"transitionEnd","waiting","waiting"];function jt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),zt.set(r,t),Nt.set(r,i),u(i,[r])}}(0,a.unstable_now)();var Rt=8;function Mt(e){if(0!=(1&e))return Rt=15,1;if(0!=(2&e))return Rt=14,2;if(0!=(4&e))return Rt=13,4;var t=24&e;return 0!==t?(Rt=12,t):0!=(32&e)?(Rt=11,32):0!==(t=192&e)?(Rt=10,t):0!=(256&e)?(Rt=9,256):0!==(t=3584&e)?(Rt=8,t):0!=(4096&e)?(Rt=7,4096):0!==(t=4186112&e)?(Rt=6,t):0!==(t=62914560&e)?(Rt=5,t):67108864&e?(Rt=4,67108864):0!=(134217728&e)?(Rt=3,134217728):0!==(t=805306368&e)?(Rt=2,t):0!=(1073741824&e)?(Rt=1,1073741824):(Rt=8,e)}function Ft(e,t){var n=e.pendingLanes;if(0===n)return Rt=0;var r=0,i=0,a=e.expiredLanes,o=e.suspendedLanes,l=e.pingedLanes;if(0!==a)r=a,i=Rt=15;else if(0!==(a=134217727&n)){var s=a&~o;0!==s?(r=Mt(s),i=Rt):0!==(l&=a)&&(r=Mt(l),i=Rt)}else 0!==(a=n&~o)?(r=Mt(a),i=Rt):0!==l&&(r=Mt(l),i=Rt);if(0===r)return 0;if(r=n&((0>(r=31-qt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&o)){if(Mt(t),i<=Rt)return t;Rt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-qt(t)),r|=e[n],t&=~i;return r}function Dt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function At(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Ut(24&~t))?At(10,t):e;case 10:return 0===(e=Ut(192&~t))?At(8,t):e;case 8:return 0===(e=Ut(3584&~t))&&(0===(e=Ut(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Ut(805306368&~t))&&(t=268435456),t}throw Error(o(358,e))}function Ut(e){return e&-e}function Bt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Wt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-qt(t)]=n}var qt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Ht(e)/Vt|0)|0},Ht=Math.log,Vt=Math.LN2;var $t=a.unstable_UserBlockingPriority,Qt=a.unstable_runWithPriority,Gt=!0;function Yt(e,t,n,r){Me||je();var i=Xt,a=Me;Me=!0;try{Ie(i,e,t,n,r)}finally{(Me=a)||De()}}function Kt(e,t,n,r){Qt($t,Xt.bind(null,e,t,n,r))}function Xt(e,t,n,r){var i;if(Gt)if((i=0==(4&t))&&0<at.length&&-1<dt.indexOf(e))e=pt(null,e,t,n,r),at.push(e);else{var a=Jt(e,t,n,r);if(null===a)i&&ht(e,r);else{if(i){if(-1<dt.indexOf(e))return e=pt(a,e,t,n,r),void at.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return ot=mt(ot,e,t,n,r,i),!0;case"dragenter":return lt=mt(lt,e,t,n,r,i),!0;case"mouseover":return st=mt(st,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return ut.set(a,mt(ut.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,ct.set(a,mt(ct.get(a)||null,e,t,n,r,i)),!0}return!1}(a,e,t,n,r))return;ht(e,r)}Lr(e,t,r,null,n)}}}function Jt(e,t,n,r){var i=Se(r);if(null!==(i=Xr(i))){var a=Ye(i);if(null===a)i=null;else{var o=a.tag;if(13===o){if(null!==(i=Ke(a)))return i;i=null}else if(3===o){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return Lr(e,t,r,i,n),null}var Zt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,i="value"in Zt?Zt.value:Zt.textContent,a=i.length;for(e=0;e<r&&n[e]===i[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===i[a-t];t++);return tn=i.slice(e,1<t?1-t:void 0)}function rn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function an(){return!0}function on(){return!1}function ln(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?an:on,this.isPropagationStopped=on,this}return i(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var sn,un,cn,fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=ln(fn),pn=i({},fn,{view:0,detail:0}),hn=ln(pn),mn=i({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:On,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(sn=e.screenX-cn.screenX,un=e.screenY-cn.screenY):un=sn=0,cn=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:un}}),vn=ln(mn),gn=ln(i({},mn,{dataTransfer:0})),yn=ln(i({},pn,{relatedTarget:0})),bn=ln(i({},fn,{animationName:0,elapsedTime:0,pseudoElement:0})),_n=ln(i({},fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),wn=ln(i({},fn,{data:0})),kn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},En={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function On(){return Sn}var Cn=ln(i({},pn,{key:function(e){if(e.key){var t=kn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?En[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:On,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Tn=ln(i({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=ln(i({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:On})),Ln=ln(i({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nn=ln(i({},mn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),zn=[9,13,27,32],In=f&&"CompositionEvent"in window,jn=null;f&&"documentMode"in document&&(jn=document.documentMode);var Rn=f&&"TextEvent"in window&&!jn,Mn=f&&(!In||jn&&8<jn&&11>=jn),Fn=String.fromCharCode(32),Dn=!1;function An(e,t){switch(e){case"keyup":return-1!==zn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Hn(e,t,n,r){Le(r),0<(t=zr(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,$n=null;function Qn(e){xr(e,0)}function Gn(e){if(X(Zr(e)))return e}function Yn(e,t){if("change"===e)return t}var Kn=!1;if(f){var Xn;if(f){var Jn="oninput"in document;if(!Jn){var Zn=document.createElement("div");Zn.setAttribute("oninput","return;"),Jn="function"==typeof Zn.oninput}Xn=Jn}else Xn=!1;Kn=Xn&&(!document.documentMode||9<document.documentMode)}function er(){Vn&&(Vn.detachEvent("onpropertychange",tr),$n=Vn=null)}function tr(e){if("value"===e.propertyName&&Gn($n)){var t=[];if(Hn(t,$n,e,Se(e)),e=Qn,Me)e(t);else{Me=!0;try{ze(e,t)}finally{Me=!1,De()}}}}function nr(e,t,n){"focusin"===e?(er(),$n=n,(Vn=t).attachEvent("onpropertychange",tr)):"focusout"===e&&er()}function rr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn($n)}function ir(e,t){if("click"===e)return Gn(t)}function ar(e,t){if("input"===e||"change"===e)return Gn(t)}var or="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},lr=Object.prototype.hasOwnProperty;function sr(e,t){if(or(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!lr.call(t,n[r])||!or(e[n[r]],t[n[r]]))return!1;return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function fr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var pr=f&&"documentMode"in document&&11>=document.documentMode,hr=null,mr=null,vr=null,gr=!1;function yr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;gr||null==hr||hr!==J(r)||("selectionStart"in(r=hr)&&dr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&sr(vr,r)||(vr=r,0<(r=zr(mr,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=hr)))}jt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),jt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),jt(It,2);for(var br="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),_r=0;_r<br.length;_r++)zt.set(br[_r],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),kr=new Set("cancel close invalid load scroll toggle".split(" ").concat(wr));function Er(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,l,s,u){if(Ge.apply(this,arguments),qe){if(!qe)throw Error(o(198));var c=He;qe=!1,He=null,Ve||(Ve=!0,$e=c)}}(r,t,void 0,e),e.currentTarget=null}function xr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==a&&i.isPropagationStopped())break e;Er(i,l,u),a=s}else for(o=0;o<r.length;o++){if(s=(l=r[o]).instance,u=l.currentTarget,l=l.listener,s!==a&&i.isPropagationStopped())break e;Er(i,l,u),a=s}}}if(Ve)throw e=$e,Ve=!1,$e=null,e}function Sr(e,t){var n=ti(t),r=e+"__bubble";n.has(r)||(Pr(t,e,2,!1),n.add(r))}var Or="_reactListening"+Math.random().toString(36).slice(2);function Cr(e){e[Or]||(e[Or]=!0,l.forEach((function(t){kr.has(t)||Tr(t,!1,e,null),Tr(t,!0,e,null)})))}function Tr(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,a=n;if("selectionchange"===e&&9!==n.nodeType&&(a=n.ownerDocument),null!==r&&!t&&kr.has(e)){if("scroll"!==e)return;i|=2,a=r}var o=ti(a),l=e+"__"+(t?"capture":"bubble");o.has(l)||(t&&(i|=4),Pr(a,e,i,t),o.add(l))}function Pr(e,t,n,r){var i=zt.get(t);switch(void 0===i?2:i){case 0:i=Yt;break;case 1:i=Kt;break;default:i=Xt}n=i.bind(null,t,n,e),i=void 0,!Ue||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Lr(e,t,n,r,i){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var l=r.stateNode.containerInfo;if(l===i||8===l.nodeType&&l.parentNode===i)break;if(4===o)for(o=r.return;null!==o;){var s=o.tag;if((3===s||4===s)&&((s=o.stateNode.containerInfo)===i||8===s.nodeType&&s.parentNode===i))return;o=o.return}for(;null!==l;){if(null===(o=Xr(l)))return;if(5===(s=o.tag)||6===s){r=a=o;continue e}l=l.parentNode}}r=r.return}!function(e,t,n){if(Fe)return e(t,n);Fe=!0;try{Re(e,t,n)}finally{Fe=!1,De()}}((function(){var r=a,i=Se(n),o=[];e:{var l=Nt.get(e);if(void 0!==l){var s=dn,u=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":s=Cn;break;case"focusin":u="focus",s=yn;break;case"focusout":u="blur",s=yn;break;case"beforeblur":case"afterblur":s=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=vn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Pn;break;case Ct:case Tt:case Pt:s=bn;break;case Lt:s=Ln;break;case"scroll":s=hn;break;case"wheel":s=Nn;break;case"copy":case"cut":case"paste":s=_n;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Tn}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==l?l+"Capture":null:l;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==d&&(null!=(m=Ae(h,d))&&c.push(Nr(h,m,p)))),f)break;h=h.return}0<c.length&&(l=new s(l,u,null,n,i),o.push({event:l,listeners:c}))}}if(0==(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(u=n.relatedTarget||n.fromElement)||!Xr(u)&&!u[Yr])&&(s||l)&&(l=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?Xr(u):null)&&(u!==(f=Ye(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=vn,m="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Tn,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==s?l:Zr(s),p=null==u?l:Zr(u),(l=new c(m,h+"leave",s,n,i)).target=f,l.relatedTarget=p,m=null,Xr(i)===r&&((c=new c(d,h+"enter",u,n,i)).target=p,c.relatedTarget=f,m=c),f=m,s&&u)e:{for(d=u,h=0,p=c=s;p;p=Ir(p))h++;for(p=0,m=d;m;m=Ir(m))p++;for(;0<h-p;)c=Ir(c),h--;for(;0<p-h;)d=Ir(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=Ir(c),d=Ir(d)}c=null}else c=null;null!==s&&jr(o,l,s,c,!1),null!==u&&null!==f&&jr(o,f,u,c,!0)}if("select"===(s=(l=r?Zr(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var v=Yn;else if(qn(l))if(Kn)v=ar;else{v=rr;var g=nr}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(v=ir);switch(v&&(v=v(e,r))?Hn(o,v,n,i):(g&&g(e,l,r),"focusout"===e&&(g=l._wrapperState)&&g.controlled&&"number"===l.type&&ie(l,"number",l.value)),g=r?Zr(r):window,e){case"focusin":(qn(g)||"true"===g.contentEditable)&&(hr=g,mr=r,vr=null);break;case"focusout":vr=mr=hr=null;break;case"mousedown":gr=!0;break;case"contextmenu":case"mouseup":case"dragend":gr=!1,yr(o,n,i);break;case"selectionchange":if(pr)break;case"keydown":case"keyup":yr(o,n,i)}var y;if(In)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Bn?An(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Mn&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Bn&&(y=nn()):(en="value"in(Zt=i)?Zt.value:Zt.textContent,Bn=!0)),0<(g=zr(r,b)).length&&(b=new wn(b,e,null,n,i),o.push({event:b,listeners:g}),y?b.data=y:null!==(y=Un(n))&&(b.data=y))),(y=Rn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Dn=!0,Fn);case"textInput":return(e=t.data)===Fn&&Dn?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!In&&An(e,t)?(e=nn(),tn=en=Zt=null,Bn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mn&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&(0<(r=zr(r,"onBeforeInput")).length&&(i=new wn("onBeforeInput","beforeinput",null,n,i),o.push({event:i,listeners:r}),i.data=y))}xr(o,t)}))}function Nr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function zr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,a=i.stateNode;5===i.tag&&null!==a&&(i=a,null!=(a=Ae(e,n))&&r.unshift(Nr(e,a,i)),null!=(a=Ae(e,t))&&r.push(Nr(e,a,i))),e=e.return}return r}function Ir(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function jr(e,t,n,r,i){for(var a=t._reactName,o=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,i?null!=(s=Ae(n,a))&&o.unshift(Nr(n,s,l)):i||null!=(s=Ae(n,a))&&o.push(Nr(n,s,l))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}function Rr(){}var Mr=null,Fr=null;function Dr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Ar(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Ur="function"==typeof setTimeout?setTimeout:void 0,Br="function"==typeof clearTimeout?clearTimeout:void 0;function Wr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function qr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Hr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Vr=0;var $r=Math.random().toString(36).slice(2),Qr="__reactFiber$"+$r,Gr="__reactProps$"+$r,Yr="__reactContainer$"+$r,Kr="__reactEvents$"+$r;function Xr(e){var t=e[Qr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Yr]||n[Qr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Hr(e);null!==e;){if(n=e[Qr])return n;e=Hr(e)}return t}n=(e=n).parentNode}return null}function Jr(e){return!(e=e[Qr]||e[Yr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Zr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function ei(e){return e[Gr]||null}function ti(e){var t=e[Kr];return void 0===t&&(t=e[Kr]=new Set),t}var ni=[],ri=-1;function ii(e){return{current:e}}function ai(e){0>ri||(e.current=ni[ri],ni[ri]=null,ri--)}function oi(e,t){ri++,ni[ri]=e.current,e.current=t}var li={},si=ii(li),ui=ii(!1),ci=li;function fi(e,t){var n=e.type.contextTypes;if(!n)return li;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function di(e){return null!=(e=e.childContextTypes)}function pi(){ai(ui),ai(si)}function hi(e,t,n){if(si.current!==li)throw Error(o(168));oi(si,t),oi(ui,n)}function mi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in e))throw Error(o(108,Q(t)||"Unknown",a));return i({},n,r)}function vi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||li,ci=si.current,oi(si,e),oi(ui,ui.current),!0}function gi(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=mi(e,t,ci),r.__reactInternalMemoizedMergedChildContext=e,ai(ui),ai(si),oi(si,e)):ai(ui),oi(ui,n)}var yi=null,bi=null,_i=a.unstable_runWithPriority,wi=a.unstable_scheduleCallback,ki=a.unstable_cancelCallback,Ei=a.unstable_shouldYield,xi=a.unstable_requestPaint,Si=a.unstable_now,Oi=a.unstable_getCurrentPriorityLevel,Ci=a.unstable_ImmediatePriority,Ti=a.unstable_UserBlockingPriority,Pi=a.unstable_NormalPriority,Li=a.unstable_LowPriority,Ni=a.unstable_IdlePriority,zi={},Ii=void 0!==xi?xi:function(){},ji=null,Ri=null,Mi=!1,Fi=Si(),Di=1e4>Fi?Si:function(){return Si()-Fi};function Ai(){switch(Oi()){case Ci:return 99;case Ti:return 98;case Pi:return 97;case Li:return 96;case Ni:return 95;default:throw Error(o(332))}}function Ui(e){switch(e){case 99:return Ci;case 98:return Ti;case 97:return Pi;case 96:return Li;case 95:return Ni;default:throw Error(o(332))}}function Bi(e,t){return e=Ui(e),_i(e,t)}function Wi(e,t,n){return e=Ui(e),wi(e,t,n)}function qi(){if(null!==Ri){var e=Ri;Ri=null,ki(e)}Hi()}function Hi(){if(!Mi&&null!==ji){Mi=!0;var e=0;try{var t=ji;Bi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),ji=null}catch(t){throw null!==ji&&(ji=ji.slice(e+1)),wi(Ci,qi),t}finally{Mi=!1}}}var Vi=w.ReactCurrentBatchConfig;function $i(e,t){if(e&&e.defaultProps){for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Qi=ii(null),Gi=null,Yi=null,Ki=null;function Xi(){Ki=Yi=Gi=null}function Ji(e){var t=Qi.current;ai(Qi),e.type._context._currentValue=t}function Zi(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ea(e,t){Gi=e,Ki=Yi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(zo=!0),e.firstContext=null)}function ta(e,t){if(Ki!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Ki=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Yi){if(null===Gi)throw Error(o(308));Yi=t,Gi.dependencies={lanes:0,firstContext:t,responders:null}}else Yi=Yi.next=t;return e._currentValue}var na=!1;function ra(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ia(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function aa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function oa(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function la(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?i=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?i=a=t:a=a.next=t}else i=a=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function sa(e,t,n,r){var a=e.updateQueue;na=!1;var o=a.firstBaseUpdate,l=a.lastBaseUpdate,s=a.shared.pending;if(null!==s){a.shared.pending=null;var u=s,c=u.next;u.next=null,null===l?o=c:l.next=c,l=u;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==l&&(null===d?f.firstBaseUpdate=c:d.next=c,f.lastBaseUpdate=u)}}if(null!==o){for(d=a.baseState,l=0,f=c=u=null;;){s=o.lane;var p=o.eventTime;if((r&s)===s){null!==f&&(f=f.next={eventTime:p,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var h=e,m=o;switch(s=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,s);break e}d=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null==(s="function"==typeof(h=m.payload)?h.call(p,d,s):h))break e;d=i({},d,s);break e;case 2:na=!0}}null!==o.callback&&(e.flags|=32,null===(s=a.effects)?a.effects=[o]:s.push(o))}else p={eventTime:p,lane:s,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===f?(c=f=p,u=d):f=f.next=p,l|=s;if(null===(o=o.next)){if(null===(s=a.shared.pending))break;o=s.next,s.next=null,a.lastBaseUpdate=s,a.shared.pending=null}}null===f&&(u=d),a.baseState=u,a.firstBaseUpdate=c,a.lastBaseUpdate=f,jl|=l,e.lanes=l,e.memoizedState=d}}function ua(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(o(191,i));i.call(r)}}}var ca=(new r.Component).refs;function fa(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var da={isMounted:function(e){return!!(e=e._reactInternals)&&Ye(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=as(),i=os(e),a=aa(r,i);a.payload=t,null!=n&&(a.callback=n),oa(e,a),ls(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=as(),i=os(e),a=aa(r,i);a.tag=1,a.payload=t,null!=n&&(a.callback=n),oa(e,a),ls(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=as(),r=os(e),i=aa(n,r);i.tag=2,null!=t&&(i.callback=t),oa(e,i),ls(e,r,n)}};function pa(e,t,n,r,i,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!t.prototype||!t.prototype.isPureReactComponent||(!sr(n,r)||!sr(i,a))}function ha(e,t,n){var r=!1,i=li,a=t.contextType;return"object"==typeof a&&null!==a?a=ta(a):(i=di(t)?ci:si.current,a=(r=null!=(r=t.contextTypes))?fi(e,i):li),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=da,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function ma(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&da.enqueueReplaceState(t,t.state,null)}function va(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=ca,ra(e);var a=t.contextType;"object"==typeof a&&null!==a?i.context=ta(a):(a=di(t)?ci:si.current,i.context=fi(e,a)),sa(e,n,i,r),i.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(fa(e,t,a,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&da.enqueueReplaceState(i,i.state,null),sa(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4)}var ga=Array.isArray;function ya(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===ca&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function ba(e,t){if("textarea"!==e.type)throw Error(o(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function _a(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=As(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function l(t){return e&&null===t.alternate&&(t.flags=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=qs(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=ya(e,t,n),r.return=e,r):((r=Us(n.type,n.key,n.props,null,e.mode,r)).ref=ya(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Hs(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=Bs(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=qs(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case k:return(n=Us(t.type,t.key,t.props,null,e.mode,n)).ref=ya(e,null,t),n.return=e,n;case E:return(t=Hs(t,e.mode,n)).return=e,t}if(ga(t)||W(t))return(t=Bs(t,e.mode,n,null)).return=e,t;ba(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===i?n.type===x?f(e,t,n.props.children,r,i):u(e,t,n,r):null;case E:return n.key===i?c(e,t,n,r):null}if(ga(n)||W(n))return null!==i?null:f(e,t,n,r,null);ba(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case k:return e=e.get(null===r.key?n:r.key)||null,r.type===x?f(t,e,r.props.children,i,r.key):u(t,e,r,i);case E:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(ga(r)||W(r))return f(t,e=e.get(n)||null,r,i,null);ba(t,r)}return null}function m(i,o,l,s){for(var u=null,c=null,f=o,m=o=0,v=null;null!==f&&m<l.length;m++){f.index>m?(v=f,f=null):v=f.sibling;var g=p(i,f,l[m],s);if(null===g){null===f&&(f=v);break}e&&f&&null===g.alternate&&t(i,f),o=a(g,o,m),null===c?u=g:c.sibling=g,c=g,f=v}if(m===l.length)return n(i,f),u;if(null===f){for(;m<l.length;m++)null!==(f=d(i,l[m],s))&&(o=a(f,o,m),null===c?u=f:c.sibling=f,c=f);return u}for(f=r(i,f);m<l.length;m++)null!==(v=h(f,i,m,l[m],s))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),o=a(v,o,m),null===c?u=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(i,e)})),u}function v(i,l,s,u){var c=W(s);if("function"!=typeof c)throw Error(o(150));if(null==(s=c.call(s)))throw Error(o(151));for(var f=c=null,m=l,v=l=0,g=null,y=s.next();null!==m&&!y.done;v++,y=s.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=p(i,m,y.value,u);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(i,m),l=a(b,l,v),null===f?c=b:f.sibling=b,f=b,m=g}if(y.done)return n(i,m),c;if(null===m){for(;!y.done;v++,y=s.next())null!==(y=d(i,y.value,u))&&(l=a(y,l,v),null===f?c=y:f.sibling=y,f=y);return c}for(m=r(i,m);!y.done;v++,y=s.next())null!==(y=h(m,i,v,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),l=a(y,l,v),null===f?c=y:f.sibling=y,f=y);return e&&m.forEach((function(e){return t(i,e)})),c}return function(e,r,a,s){var u="object"==typeof a&&null!==a&&a.type===x&&null===a.key;u&&(a=a.props.children);var c="object"==typeof a&&null!==a;if(c)switch(a.$$typeof){case k:e:{for(c=a.key,u=r;null!==u;){if(u.key===c){switch(u.tag){case 7:if(a.type===x){n(e,u.sibling),(r=i(u,a.props.children)).return=e,e=r;break e}break;default:if(u.elementType===a.type){n(e,u.sibling),(r=i(u,a.props)).ref=ya(e,u,a),r.return=e,e=r;break e}}n(e,u);break}t(e,u),u=u.sibling}a.type===x?((r=Bs(a.props.children,e.mode,s,a.key)).return=e,e=r):((s=Us(a.type,a.key,a.props,null,e.mode,s)).ref=ya(e,r,a),s.return=e,e=s)}return l(e);case E:e:{for(u=a.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=i(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Hs(a,e.mode,s)).return=e,e=r}return l(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,a)).return=e,e=r):(n(e,r),(r=qs(a,e.mode,s)).return=e,e=r),l(e);if(ga(a))return m(e,r,a,s);if(W(a))return v(e,r,a,s);if(c&&ba(e,a),void 0===a&&!u)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(o(152,Q(e.type)||"Component"))}return n(e,r)}}var wa=_a(!0),ka=_a(!1),Ea={},xa=ii(Ea),Sa=ii(Ea),Oa=ii(Ea);function Ca(e){if(e===Ea)throw Error(o(174));return e}function Ta(e,t){switch(oi(Oa,t),oi(Sa,e),oi(xa,Ea),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ai(xa),oi(xa,t)}function Pa(){ai(xa),ai(Sa),ai(Oa)}function La(e){Ca(Oa.current);var t=Ca(xa.current),n=he(t,e.type);t!==n&&(oi(Sa,e),oi(xa,n))}function Na(e){Sa.current===e&&(ai(xa),ai(Sa))}var za=ii(0);function Ia(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ja=null,Ra=null,Ma=!1;function Fa(e,t){var n=Fs(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Da(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Aa(e){if(Ma){var t=Ra;if(t){var n=t;if(!Da(e,t)){if(!(t=qr(n.nextSibling))||!Da(e,t))return e.flags=-1025&e.flags|2,Ma=!1,void(ja=e);Fa(ja,n)}ja=e,Ra=qr(t.firstChild)}else e.flags=-1025&e.flags|2,Ma=!1,ja=e}}function Ua(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ja=e}function Ba(e){if(e!==ja)return!1;if(!Ma)return Ua(e),Ma=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Ar(t,e.memoizedProps))for(t=Ra;t;)Fa(e,t),t=qr(t.nextSibling);if(Ua(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Ra=qr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Ra=null}}else Ra=ja?qr(e.stateNode.nextSibling):null;return!0}function Wa(){Ra=ja=null,Ma=!1}var qa=[];function Ha(){for(var e=0;e<qa.length;e++)qa[e]._workInProgressVersionPrimary=null;qa.length=0}var Va=w.ReactCurrentDispatcher,$a=w.ReactCurrentBatchConfig,Qa=0,Ga=null,Ya=null,Ka=null,Xa=!1,Ja=!1;function Za(){throw Error(o(321))}function eo(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!or(e[n],t[n]))return!1;return!0}function to(e,t,n,r,i,a){if(Qa=a,Ga=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Va.current=null===e||null===e.memoizedState?To:Po,e=n(r,i),Ja){a=0;do{if(Ja=!1,!(25>a))throw Error(o(301));a+=1,Ka=Ya=null,t.updateQueue=null,Va.current=Lo,e=n(r,i)}while(Ja)}if(Va.current=Co,t=null!==Ya&&null!==Ya.next,Qa=0,Ka=Ya=Ga=null,Xa=!1,t)throw Error(o(300));return e}function no(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ka?Ga.memoizedState=Ka=e:Ka=Ka.next=e,Ka}function ro(){if(null===Ya){var e=Ga.alternate;e=null!==e?e.memoizedState:null}else e=Ya.next;var t=null===Ka?Ga.memoizedState:Ka.next;if(null!==t)Ka=t,Ya=e;else{if(null===e)throw Error(o(310));e={memoizedState:(Ya=e).memoizedState,baseState:Ya.baseState,baseQueue:Ya.baseQueue,queue:Ya.queue,next:null},null===Ka?Ga.memoizedState=Ka=e:Ka=Ka.next=e}return Ka}function io(e,t){return"function"==typeof t?t(e):t}function ao(e){var t=ro(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=Ya,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var l=i.next;i.next=a.next,a.next=l}r.baseQueue=i=a,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var s=l=a=null,u=i;do{var c=u.lane;if((Qa&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===s?(l=s=f,a=r):s=s.next=f,Ga.lanes|=c,jl|=c}u=u.next}while(null!==u&&u!==i);null===s?a=r:s.next=l,or(r,t.memoizedState)||(zo=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function oo(e){var t=ro(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var l=i=i.next;do{a=e(a,l.action),l=l.next}while(l!==i);or(a,t.memoizedState)||(zo=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function lo(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(Qa&e)===e)&&(t._workInProgressVersionPrimary=r,qa.push(t))),e)return n(t._source);throw qa.push(t),Error(o(350))}function so(e,t,n,r){var i=Ol;if(null===i)throw Error(o(349));var a=t._getVersion,l=a(t._source),s=Va.current,u=s.useState((function(){return lo(i,t,n)})),c=u[1],f=u[0];u=Ka;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var v=Ga;return e.memoizedState={refs:p,source:t,subscribe:r},s.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=a(t._source);if(!or(l,e)){e=n(t._source),or(f,e)||(c(e),e=os(v),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,o=e;0<o;){var s=31-qt(o),u=1<<s;r[s]|=e,o&=~u}}}),[n,t,r]),s.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=os(v);i.mutableReadLanes|=r&i.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),or(h,n)&&or(m,t)&&or(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:io,lastRenderedState:f}).dispatch=c=Oo.bind(null,Ga,e),u.queue=e,u.baseQueue=null,f=lo(i,t,n),u.memoizedState=u.baseState=f),f}function uo(e,t,n){return so(ro(),e,t,n)}function co(e){var t=no();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:io,lastRenderedState:e}).dispatch=Oo.bind(null,Ga,e),[t.memoizedState,e]}function fo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Ga.updateQueue)?(t={lastEffect:null},Ga.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function po(e){return e={current:e},no().memoizedState=e}function ho(){return ro().memoizedState}function mo(e,t,n,r){var i=no();Ga.flags|=e,i.memoizedState=fo(1|t,n,void 0,void 0===r?null:r)}function vo(e,t,n,r){var i=ro();r=void 0===r?null:r;var a=void 0;if(null!==Ya){var o=Ya.memoizedState;if(a=o.destroy,null!==r&&eo(r,o.deps))return void fo(t,n,a,r)}Ga.flags|=e,i.memoizedState=fo(1|t,n,a,r)}function go(e,t){return mo(516,4,e,t)}function yo(e,t){return vo(516,4,e,t)}function bo(e,t){return vo(4,2,e,t)}function _o(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function wo(e,t,n){return n=null!=n?n.concat([e]):null,vo(4,2,_o.bind(null,t,e),n)}function ko(){}function Eo(e,t){var n=ro();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&eo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function xo(e,t){var n=ro();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&eo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function So(e,t){var n=Ai();Bi(98>n?98:n,(function(){e(!0)})),Bi(97<n?97:n,(function(){var n=$a.transition;$a.transition=1;try{e(!1),t()}finally{$a.transition=n}}))}function Oo(e,t,n){var r=as(),i=os(e),a={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(null===o?a.next=a:(a.next=o.next,o.next=a),t.pending=a,o=e.alternate,e===Ga||null!==o&&o===Ga)Ja=Xa=!0;else{if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var l=t.lastRenderedState,s=o(l,n);if(a.eagerReducer=o,a.eagerState=s,or(s,l))return}catch(e){}ls(e,i,r)}}var Co={readContext:ta,useCallback:Za,useContext:Za,useEffect:Za,useImperativeHandle:Za,useLayoutEffect:Za,useMemo:Za,useReducer:Za,useRef:Za,useState:Za,useDebugValue:Za,useDeferredValue:Za,useTransition:Za,useMutableSource:Za,useOpaqueIdentifier:Za,unstable_isNewReconciler:!1},To={readContext:ta,useCallback:function(e,t){return no().memoizedState=[e,void 0===t?null:t],e},useContext:ta,useEffect:go,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,mo(4,2,_o.bind(null,t,e),n)},useLayoutEffect:function(e,t){return mo(4,2,e,t)},useMemo:function(e,t){var n=no();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=no();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Oo.bind(null,Ga,e),[r.memoizedState,e]},useRef:po,useState:co,useDebugValue:ko,useDeferredValue:function(e){var t=co(e),n=t[0],r=t[1];return go((function(){var t=$a.transition;$a.transition=1;try{r(e)}finally{$a.transition=t}}),[e]),n},useTransition:function(){var e=co(!1),t=e[0];return po(e=So.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=no();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},so(r,e,t,n)},useOpaqueIdentifier:function(){if(Ma){var e=!1,t=function(e){return{$$typeof:R,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Vr++).toString(36))),Error(o(355))})),n=co(t)[1];return 0==(2&Ga.mode)&&(Ga.flags|=516,fo(5,(function(){n("r:"+(Vr++).toString(36))}),void 0,null)),t}return co(t="r:"+(Vr++).toString(36)),t},unstable_isNewReconciler:!1},Po={readContext:ta,useCallback:Eo,useContext:ta,useEffect:yo,useImperativeHandle:wo,useLayoutEffect:bo,useMemo:xo,useReducer:ao,useRef:ho,useState:function(){return ao(io)},useDebugValue:ko,useDeferredValue:function(e){var t=ao(io),n=t[0],r=t[1];return yo((function(){var t=$a.transition;$a.transition=1;try{r(e)}finally{$a.transition=t}}),[e]),n},useTransition:function(){var e=ao(io)[0];return[ho().current,e]},useMutableSource:uo,useOpaqueIdentifier:function(){return ao(io)[0]},unstable_isNewReconciler:!1},Lo={readContext:ta,useCallback:Eo,useContext:ta,useEffect:yo,useImperativeHandle:wo,useLayoutEffect:bo,useMemo:xo,useReducer:oo,useRef:ho,useState:function(){return oo(io)},useDebugValue:ko,useDeferredValue:function(e){var t=oo(io),n=t[0],r=t[1];return yo((function(){var t=$a.transition;$a.transition=1;try{r(e)}finally{$a.transition=t}}),[e]),n},useTransition:function(){var e=oo(io)[0];return[ho().current,e]},useMutableSource:uo,useOpaqueIdentifier:function(){return oo(io)[0]},unstable_isNewReconciler:!1},No=w.ReactCurrentOwner,zo=!1;function Io(e,t,n,r){t.child=null===e?ka(t,null,n,r):wa(t,e.child,n,r)}function jo(e,t,n,r,i){n=n.render;var a=t.ref;return ea(t,i),r=to(e,t,n,r,a,i),null===e||zo?(t.flags|=1,Io(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,el(e,t,i))}function Ro(e,t,n,r,i,a){if(null===e){var o=n.type;return"function"!=typeof o||Ds(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Us(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Mo(e,t,o,r,i,a))}return o=e.child,0==(i&a)&&(i=o.memoizedProps,(n=null!==(n=n.compare)?n:sr)(i,r)&&e.ref===t.ref)?el(e,t,a):(t.flags|=1,(e=As(o,r)).ref=t.ref,e.return=t,t.child=e)}function Mo(e,t,n,r,i,a){if(null!==e&&sr(e.memoizedProps,r)&&e.ref===t.ref){if(zo=!1,0==(a&i))return t.lanes=e.lanes,el(e,t,a);0!=(16384&e.flags)&&(zo=!0)}return Ao(e,t,n,r,a)}function Fo(e,t,n){var r=t.pendingProps,i=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},ms(t,n);else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},ms(t,e),null;t.memoizedState={baseLanes:0},ms(t,null!==a?a.baseLanes:n)}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,ms(t,r);return Io(e,t,i,n),t.child}function Do(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Ao(e,t,n,r,i){var a=di(n)?ci:si.current;return a=fi(t,a),ea(t,i),n=to(e,t,n,r,a,i),null===e||zo?(t.flags|=1,Io(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,el(e,t,i))}function Uo(e,t,n,r,i){if(di(n)){var a=!0;vi(t)}else a=!1;if(ea(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),ha(t,n,r),va(t,n,r,i),r=!0;else if(null===e){var o=t.stateNode,l=t.memoizedProps;o.props=l;var s=o.context,u=n.contextType;"object"==typeof u&&null!==u?u=ta(u):u=fi(t,u=di(n)?ci:si.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;f||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(l!==r||s!==u)&&ma(t,o,r,u),na=!1;var d=t.memoizedState;o.state=d,sa(t,r,o,i),s=t.memoizedState,l!==r||d!==s||ui.current||na?("function"==typeof c&&(fa(t,n,c,r),s=t.memoizedState),(l=na||pa(t,n,l,r,d,s,u))?(f||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4)):("function"==typeof o.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=u,r=l):("function"==typeof o.componentDidMount&&(t.flags|=4),r=!1)}else{o=t.stateNode,ia(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:$i(t.type,l),o.props=u,f=t.pendingProps,d=o.context,"object"==typeof(s=n.contextType)&&null!==s?s=ta(s):s=fi(t,s=di(n)?ci:si.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(l!==f||d!==s)&&ma(t,o,r,s),na=!1,d=t.memoizedState,o.state=d,sa(t,r,o,i);var h=t.memoizedState;l!==f||d!==h||ui.current||na?("function"==typeof p&&(fa(t,n,p,r),h=t.memoizedState),(u=na||pa(t,n,u,r,d,h,s))?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,h,s),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof o.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),o.props=r,o.state=h,o.context=s,r=u):("function"!=typeof o.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Bo(e,t,n,r,a,i)}function Bo(e,t,n,r,i,a){Do(e,t);var o=0!=(64&t.flags);if(!r&&!o)return i&&gi(t,n,!1),el(e,t,a);r=t.stateNode,No.current=t;var l=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=wa(t,e.child,null,a),t.child=wa(t,null,l,a)):Io(e,t,l,a),t.memoizedState=r.state,i&&gi(t,n,!0),t.child}function Wo(e){var t=e.stateNode;t.pendingContext?hi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&hi(0,t.context,!1),Ta(e,t.containerInfo)}var qo,Ho,Vo,$o={dehydrated:null,retryLane:0};function Qo(e,t,n){var r,i=t.pendingProps,a=za.current,o=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(o=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),oi(za,1&a),null===e?(void 0!==i.fallback&&Aa(t),e=i.children,a=i.fallback,o?(e=Go(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=$o,e):"number"==typeof i.unstable_expectedLoadTime?(e=Go(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=$o,t.lanes=33554432,e):((n=Ws({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,o?(i=Ko(e,t,i.children,i.fallback,n),o=t.child,a=e.child.memoizedState,o.memoizedState=null===a?{baseLanes:n}:{baseLanes:a.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=$o,i):(n=Yo(e,t,i.children,n),t.memoizedState=null,n))}function Go(e,t,n,r){var i=e.mode,a=e.child;return t={mode:"hidden",children:t},0==(2&i)&&null!==a?(a.childLanes=0,a.pendingProps=t):a=Ws(t,i,0,null),n=Bs(n,i,r,null),a.return=e,n.return=e,a.sibling=n,e.child=a,n}function Yo(e,t,n,r){var i=e.child;return e=i.sibling,n=As(i,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Ko(e,t,n,r,i){var a=t.mode,o=e.child;e=o.sibling;var l={mode:"hidden",children:n};return 0==(2&a)&&t.child!==o?((n=t.child).childLanes=0,n.pendingProps=l,null!==(o=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=o,o.nextEffect=null):t.firstEffect=t.lastEffect=null):n=As(o,l),null!==e?r=As(e,r):(r=Bs(r,a,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Xo(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),Zi(e.return,t)}function Jo(e,t,n,r,i,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.lastEffect=a)}function Zo(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Io(e,t,r.children,n),0!=(2&(r=za.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Xo(e,n);else if(19===e.tag)Xo(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(oi(za,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Ia(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Jo(t,!1,i,n,a,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Ia(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Jo(t,!0,n,null,a,t.lastEffect);break;case"together":Jo(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function el(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),jl|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=As(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=As(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function tl(e,t){if(!Ma)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function nl(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return di(t.type)&&pi(),null;case 3:return Pa(),ai(ui),ai(si),Ha(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Ba(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Na(t);var a=Ca(Oa.current);if(n=t.type,null!==e&&null!=t.stateNode)Ho(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(o(166));return null}if(e=Ca(xa.current),Ba(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Qr]=t,r[Gr]=l,n){case"dialog":Sr("cancel",r),Sr("close",r);break;case"iframe":case"object":case"embed":Sr("load",r);break;case"video":case"audio":for(e=0;e<wr.length;e++)Sr(wr[e],r);break;case"source":Sr("error",r);break;case"img":case"image":case"link":Sr("error",r),Sr("load",r);break;case"details":Sr("toggle",r);break;case"input":ee(r,l),Sr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},Sr("invalid",r);break;case"textarea":se(r,l),Sr("invalid",r)}for(var u in Ee(n,l),e=null,l)l.hasOwnProperty(u)&&(a=l[u],"children"===u?"string"==typeof a?r.textContent!==a&&(e=["children",a]):"number"==typeof a&&r.textContent!==""+a&&(e=["children",""+a]):s.hasOwnProperty(u)&&null!=a&&"onScroll"===u&&Sr("scroll",r));switch(n){case"input":K(r),re(r,l,!0);break;case"textarea":K(r),ce(r);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(r.onclick=Rr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(u=9===a.nodeType?a:a.ownerDocument,e===fe&&(e=pe(n)),e===fe?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[Qr]=t,e[Gr]=r,qo(e,t),t.stateNode=e,u=xe(n,r),n){case"dialog":Sr("cancel",e),Sr("close",e),a=r;break;case"iframe":case"object":case"embed":Sr("load",e),a=r;break;case"video":case"audio":for(a=0;a<wr.length;a++)Sr(wr[a],e);a=r;break;case"source":Sr("error",e),a=r;break;case"img":case"image":case"link":Sr("error",e),Sr("load",e),a=r;break;case"details":Sr("toggle",e),a=r;break;case"input":ee(e,r),a=Z(e,r),Sr("invalid",e);break;case"option":a=ae(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=i({},r,{value:void 0}),Sr("invalid",e);break;case"textarea":se(e,r),a=le(e,r),Sr("invalid",e);break;default:a=r}Ee(n,a);var c=a;for(l in c)if(c.hasOwnProperty(l)){var f=c[l];"style"===l?we(e,f):"dangerouslySetInnerHTML"===l?null!=(f=f?f.__html:void 0)&&ve(e,f):"children"===l?"string"==typeof f?("textarea"!==n||""!==f)&&ge(e,f):"number"==typeof f&&ge(e,""+f):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(s.hasOwnProperty(l)?null!=f&&"onScroll"===l&&Sr("scroll",e):null!=f&&_(e,l,f,u))}switch(n){case"input":K(e),re(e,r,!1);break;case"textarea":K(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+G(r.value));break;case"select":e.multiple=!!r.multiple,null!=(l=r.value)?oe(e,!!r.multiple,l,!1):null!=r.defaultValue&&oe(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=Rr)}Dr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Vo(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));n=Ca(Oa.current),Ca(xa.current),Ba(t)?(r=t.stateNode,n=t.memoizedProps,r[Qr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Qr]=t,t.stateNode=r)}return null;case 13:return ai(za),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Ba(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&za.current)?0===Nl&&(Nl=3):(0!==Nl&&3!==Nl||(Nl=4),null===Ol||0==(134217727&jl)&&0==(134217727&Rl)||fs(Ol,Tl))),(r||n)&&(t.flags|=4),null);case 4:return Pa(),null===e&&Cr(t.stateNode.containerInfo),null;case 10:return Ji(t),null;case 17:return di(t.type)&&pi(),null;case 19:if(ai(za),null===(r=t.memoizedState))return null;if(l=0!=(64&t.flags),null===(u=r.rendering))if(l)tl(r,!1);else{if(0!==Nl||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(u=Ia(e))){for(t.flags|=64,tl(r,!1),null!==(l=u.updateQueue)&&(t.updateQueue=l,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(l=n).flags&=2,l.nextEffect=null,l.firstEffect=null,l.lastEffect=null,null===(u=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=u.childLanes,l.lanes=u.lanes,l.child=u.child,l.memoizedProps=u.memoizedProps,l.memoizedState=u.memoizedState,l.updateQueue=u.updateQueue,l.type=u.type,e=u.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return oi(za,1&za.current|2),t.child}e=e.sibling}null!==r.tail&&Di()>Al&&(t.flags|=64,l=!0,tl(r,!1),t.lanes=33554432)}else{if(!l)if(null!==(e=Ia(u))){if(t.flags|=64,l=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),tl(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate&&!Ma)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Di()-r.renderingStartTime>Al&&1073741824!==n&&(t.flags|=64,l=!0,tl(r,!1),t.lanes=33554432);r.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=r.last)?n.sibling=u:t.child=u,r.last=u)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Di(),n.sibling=null,t=za.current,oi(za,l?1&t|2:1&t),n):null;case 23:case 24:return vs(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(o(156,t.tag))}function rl(e){switch(e.tag){case 1:di(e.type)&&pi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Pa(),ai(ui),ai(si),Ha(),0!=(64&(t=e.flags)))throw Error(o(285));return e.flags=-4097&t|64,e;case 5:return Na(e),null;case 13:return ai(za),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ai(za),null;case 4:return Pa(),null;case 10:return Ji(e),null;case 23:case 24:return vs(),null;default:return null}}function il(e,t){try{var n="",r=t;do{n+=$(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function al(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}qo=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ho=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,Ca(xa.current);var o,l=null;switch(n){case"input":a=Z(e,a),r=Z(e,r),l=[];break;case"option":a=ae(e,a),r=ae(e,r),l=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),l=[];break;case"textarea":a=le(e,a),r=le(e,r),l=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(e.onclick=Rr)}for(f in Ee(n,r),n=null,a)if(!r.hasOwnProperty(f)&&a.hasOwnProperty(f)&&null!=a[f])if("style"===f){var u=a[f];for(o in u)u.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(s.hasOwnProperty(f)?l||(l=[]):(l=l||[]).push(f,null));for(f in r){var c=r[f];if(u=null!=a?a[f]:void 0,r.hasOwnProperty(f)&&c!==u&&(null!=c||null!=u))if("style"===f)if(u){for(o in u)!u.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&u[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(l||(l=[]),l.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(l=l||[]).push(f,c)):"children"===f?"string"!=typeof c&&"number"!=typeof c||(l=l||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(s.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&Sr("scroll",e),l||u===c||(l=[])):"object"==typeof c&&null!==c&&c.$$typeof===R?c.toString():(l=l||[]).push(f,c))}n&&(l=l||[]).push("style",n);var f=l;(t.updateQueue=f)&&(t.flags|=4)}},Vo=function(e,t,n,r){n!==r&&(t.flags|=4)};var ol="function"==typeof WeakMap?WeakMap:Map;function ll(e,t,n){(n=aa(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ql||(ql=!0,Hl=r),al(0,t)},n}function sl(e,t,n){(n=aa(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return al(0,t),r(i)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Vl?Vl=new Set([this]):Vl.add(this),al(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var ul="function"==typeof WeakSet?WeakSet:Set;function cl(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Is(e,t)}else t.current=null}function fl(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:$i(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Wr(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(o(163))}function dl(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(Ls(n,e),Ps(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:$i(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&ua(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}ua(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Dr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&wt(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(o(163))}function pl(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,r.style.display=_e("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function hl(e,t){if(bi&&"function"==typeof bi.onCommitFiberUnmount)try{bi.onCommitFiberUnmount(yi,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))Ls(t,n);else{r=t;try{i()}catch(e){Is(r,e)}}n=n.next}while(n!==e)}break;case 1:if(cl(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Is(t,e)}break;case 5:cl(t);break;case 4:yl(e,t)}}function ml(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function vl(e){return 5===e.tag||3===e.tag||4===e.tag}function gl(e){e:{for(var t=e.return;null!==t;){if(vl(t))break e;t=t.return}throw Error(o(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(o(161))}16&n.flags&&(ge(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||vl(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,a=5===i||6===i;if(a)t=a?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=Rr));else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,a=5===i||6===i;if(a)t=a?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function yl(e,t){for(var n,r,i=t,a=!1;;){if(!a){a=i.return;e:for(;;){if(null===a)throw Error(o(160));switch(n=a.stateNode,a.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}a=a.return}a=!0}if(5===i.tag||6===i.tag){e:for(var l=e,s=i,u=s;;)if(hl(l,u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===s)break e;for(;null===u.sibling;){if(null===u.return||u.return===s)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}r?(l=n,s=i.stateNode,8===l.nodeType?l.parentNode.removeChild(s):l.removeChild(s)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(hl(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(a=!1)}i.sibling.return=i.return,i=i.sibling}}function bl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[Gr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),xe(e,i),t=xe(e,r),i=0;i<a.length;i+=2){var l=a[i],s=a[i+1];"style"===l?we(n,s):"dangerouslySetInnerHTML"===l?ve(n,s):"children"===l?ge(n,s):_(n,l,s,t)}switch(e){case"input":ne(n,r);break;case"textarea":ue(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(a=r.value)?oe(n,!!r.multiple,a,!1):e!==!!r.multiple&&(null!=r.defaultValue?oe(n,!!r.multiple,r.defaultValue,!0):oe(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(o(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,wt(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(Dl=Di(),pl(t.child,!0)),void _l(t);case 19:return void _l(t);case 17:return;case 23:case 24:return void pl(t,null!==t.memoizedState)}throw Error(o(163))}function _l(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ul),t.forEach((function(t){var r=Rs.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function wl(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var kl=Math.ceil,El=w.ReactCurrentDispatcher,xl=w.ReactCurrentOwner,Sl=0,Ol=null,Cl=null,Tl=0,Pl=0,Ll=ii(0),Nl=0,zl=null,Il=0,jl=0,Rl=0,Ml=0,Fl=null,Dl=0,Al=1/0;function Ul(){Al=Di()+500}var Bl,Wl=null,ql=!1,Hl=null,Vl=null,$l=!1,Ql=null,Gl=90,Yl=[],Kl=[],Xl=null,Jl=0,Zl=null,es=-1,ts=0,ns=0,rs=null,is=!1;function as(){return 0!=(48&Sl)?Di():-1!==es?es:es=Di()}function os(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Ai()?1:2;if(0===ts&&(ts=Il),0!==Vi.transition){0!==ns&&(ns=null!==Fl?Fl.pendingLanes:0),e=ts;var t=4186112&~ns;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Ai(),0!=(4&Sl)&&98===e?e=At(12,ts):e=At(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ts),e}function ls(e,t,n){if(50<Jl)throw Jl=0,Zl=null,Error(o(185));if(null===(e=ss(e,t)))return null;Wt(e,t,n),e===Ol&&(Rl|=t,4===Nl&&fs(e,Tl));var r=Ai();1===t?0!=(8&Sl)&&0==(48&Sl)?ds(e):(us(e,n),0===Sl&&(Ul(),qi())):(0==(4&Sl)||98!==r&&99!==r||(null===Xl?Xl=new Set([e]):Xl.add(e)),us(e,n)),Fl=e}function ss(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function us(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,l=e.pendingLanes;0<l;){var s=31-qt(l),u=1<<s,c=a[s];if(-1===c){if(0==(u&r)||0!=(u&i)){c=t,Mt(u);var f=Rt;a[s]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=u);l&=~u}if(r=Ft(e,e===Ol?Tl:0),t=Rt,0===r)null!==n&&(n!==zi&&ki(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==zi&&ki(n)}15===t?(n=ds.bind(null,e),null===ji?(ji=[n],Ri=wi(Ci,Hi)):ji.push(n),n=zi):14===t?n=Wi(99,ds.bind(null,e)):n=Wi(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(o(358,e))}}(t),cs.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function cs(e){if(es=-1,ns=ts=0,0!=(48&Sl))throw Error(o(327));var t=e.callbackNode;if(Ts()&&e.callbackNode!==t)return null;var n=Ft(e,e===Ol?Tl:0);if(0===n)return null;var r=n,i=Sl;Sl|=16;var a=bs();for(Ol===e&&Tl===r||(Ul(),gs(e,r));;)try{ks();break}catch(t){ys(e,t)}if(Xi(),El.current=a,Sl=i,null!==Cl?r=0:(Ol=null,Tl=0,r=Nl),0!=(Il&Rl))gs(e,0);else if(0!==r){if(2===r&&(Sl|=64,e.hydrate&&(e.hydrate=!1,Wr(e.containerInfo)),0!==(n=Dt(e))&&(r=_s(e,n))),1===r)throw t=zl,gs(e,0),fs(e,n),us(e,Di()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(o(345));case 2:Ss(e);break;case 3:if(fs(e,n),(62914560&n)===n&&10<(r=Dl+500-Di())){if(0!==Ft(e,0))break;if(((i=e.suspendedLanes)&n)!==n){as(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ur(Ss.bind(null,e),r);break}Ss(e);break;case 4:if(fs(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var l=31-qt(n);a=1<<l,(l=r[l])>i&&(i=l),n&=~a}if(n=i,10<(n=(120>(n=Di()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*kl(n/1960))-n)){e.timeoutHandle=Ur(Ss.bind(null,e),n);break}Ss(e);break;case 5:Ss(e);break;default:throw Error(o(329))}}return us(e,Di()),e.callbackNode===t?cs.bind(null,e):null}function fs(e,t){for(t&=~Ml,t&=~Rl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-qt(t),r=1<<n;e[n]=-1,t&=~r}}function ds(e){if(0!=(48&Sl))throw Error(o(327));if(Ts(),e===Ol&&0!=(e.expiredLanes&Tl)){var t=Tl,n=_s(e,t);0!=(Il&Rl)&&(n=_s(e,t=Ft(e,t)))}else n=_s(e,t=Ft(e,0));if(0!==e.tag&&2===n&&(Sl|=64,e.hydrate&&(e.hydrate=!1,Wr(e.containerInfo)),0!==(t=Dt(e))&&(n=_s(e,t))),1===n)throw n=zl,gs(e,0),fs(e,t),us(e,Di()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ss(e),us(e,Di()),null}function ps(e,t){var n=Sl;Sl|=1;try{return e(t)}finally{0===(Sl=n)&&(Ul(),qi())}}function hs(e,t){var n=Sl;Sl&=-2,Sl|=8;try{return e(t)}finally{0===(Sl=n)&&(Ul(),qi())}}function ms(e,t){oi(Ll,Pl),Pl|=t,Il|=t}function vs(){Pl=Ll.current,ai(Ll)}function gs(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Br(n)),null!==Cl)for(n=Cl.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&pi();break;case 3:Pa(),ai(ui),ai(si),Ha();break;case 5:Na(r);break;case 4:Pa();break;case 13:case 19:ai(za);break;case 10:Ji(r);break;case 23:case 24:vs()}n=n.return}Ol=e,Cl=As(e.current,null),Tl=Pl=Il=t,Nl=0,zl=null,Ml=Rl=jl=0}function ys(e,t){for(;;){var n=Cl;try{if(Xi(),Va.current=Co,Xa){for(var r=Ga.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}Xa=!1}if(Qa=0,Ka=Ya=Ga=null,Ja=!1,xl.current=null,null===n||null===n.return){Nl=1,zl=t,Cl=null;break}e:{var a=e,o=n.return,l=n,s=t;if(t=Tl,l.flags|=2048,l.firstEffect=l.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var u=s;if(0==(2&l.mode)){var c=l.alternate;c?(l.updateQueue=c.updateQueue,l.memoizedState=c.memoizedState,l.lanes=c.lanes):(l.updateQueue=null,l.memoizedState=null)}var f=0!=(1&za.current),d=o;do{var p;if(p=13===d.tag){var h=d.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var m=d.memoizedProps;p=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!f)}}if(p){var v=d.updateQueue;if(null===v){var g=new Set;g.add(u),d.updateQueue=g}else v.add(u);if(0==(2&d.mode)){if(d.flags|=64,l.flags|=16384,l.flags&=-2981,1===l.tag)if(null===l.alternate)l.tag=17;else{var y=aa(-1,1);y.tag=2,oa(l,y)}l.lanes|=1;break e}s=void 0,l=t;var b=a.pingCache;if(null===b?(b=a.pingCache=new ol,s=new Set,b.set(u,s)):void 0===(s=b.get(u))&&(s=new Set,b.set(u,s)),!s.has(l)){s.add(l);var _=js.bind(null,a,u,l);u.then(_,_)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);s=Error((Q(l.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Nl&&(Nl=2),s=il(s,l),d=o;do{switch(d.tag){case 3:a=s,d.flags|=4096,t&=-t,d.lanes|=t,la(d,ll(0,a,t));break e;case 1:a=s;var w=d.type,k=d.stateNode;if(0==(64&d.flags)&&("function"==typeof w.getDerivedStateFromError||null!==k&&"function"==typeof k.componentDidCatch&&(null===Vl||!Vl.has(k)))){d.flags|=4096,t&=-t,d.lanes|=t,la(d,sl(d,a,t));break e}}d=d.return}while(null!==d)}xs(n)}catch(e){t=e,Cl===n&&null!==n&&(Cl=n=n.return);continue}break}}function bs(){var e=El.current;return El.current=Co,null===e?Co:e}function _s(e,t){var n=Sl;Sl|=16;var r=bs();for(Ol===e&&Tl===t||gs(e,t);;)try{ws();break}catch(t){ys(e,t)}if(Xi(),Sl=n,El.current=r,null!==Cl)throw Error(o(261));return Ol=null,Tl=0,Nl}function ws(){for(;null!==Cl;)Es(Cl)}function ks(){for(;null!==Cl&&!Ei();)Es(Cl)}function Es(e){var t=Bl(e.alternate,e,Pl);e.memoizedProps=e.pendingProps,null===t?xs(e):Cl=t,xl.current=null}function xs(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=nl(n,t,Pl)))return void(Cl=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Pl)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=rl(t)))return n.flags&=2047,void(Cl=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Cl=t);Cl=t=e}while(null!==t);0===Nl&&(Nl=5)}function Ss(e){var t=Ai();return Bi(99,Os.bind(null,e,t)),null}function Os(e,t){do{Ts()}while(null!==Ql);if(0!=(48&Sl))throw Error(o(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,a=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var l=e.eventTimes,s=e.expirationTimes;0<a;){var u=31-qt(a),c=1<<u;i[u]=0,l[u]=-1,s[u]=-1,a&=~c}if(null!==Xl&&0==(24&r)&&Xl.has(e)&&Xl.delete(e),e===Ol&&(Cl=Ol=null,Tl=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=Sl,Sl|=32,xl.current=null,Mr=Gt,dr(l=fr())){if("selectionStart"in l)s={start:l.selectionStart,end:l.selectionEnd};else e:if(s=(s=l.ownerDocument)&&s.defaultView||window,(c=s.getSelection&&s.getSelection())&&0!==c.rangeCount){s=c.anchorNode,a=c.anchorOffset,u=c.focusNode,c=c.focusOffset;try{s.nodeType,u.nodeType}catch(e){s=null;break e}var f=0,d=-1,p=-1,h=0,m=0,v=l,g=null;t:for(;;){for(var y;v!==s||0!==a&&3!==v.nodeType||(d=f+a),v!==u||0!==c&&3!==v.nodeType||(p=f+c),3===v.nodeType&&(f+=v.nodeValue.length),null!==(y=v.firstChild);)g=v,v=y;for(;;){if(v===l)break t;if(g===s&&++h===a&&(d=f),g===u&&++m===c&&(p=f),null!==(y=v.nextSibling))break;g=(v=g).parentNode}v=y}s=-1===d||-1===p?null:{start:d,end:p}}else s=null;s=s||{start:0,end:0}}else s=null;Fr={focusedElem:l,selectionRange:s},Gt=!1,rs=null,is=!1,Wl=r;do{try{Cs()}catch(e){if(null===Wl)throw Error(o(330));Is(Wl,e),Wl=Wl.nextEffect}}while(null!==Wl);rs=null,Wl=r;do{try{for(l=e;null!==Wl;){var b=Wl.flags;if(16&b&&ge(Wl.stateNode,""),128&b){var _=Wl.alternate;if(null!==_){var w=_.ref;null!==w&&("function"==typeof w?w(null):w.current=null)}}switch(1038&b){case 2:gl(Wl),Wl.flags&=-3;break;case 6:gl(Wl),Wl.flags&=-3,bl(Wl.alternate,Wl);break;case 1024:Wl.flags&=-1025;break;case 1028:Wl.flags&=-1025,bl(Wl.alternate,Wl);break;case 4:bl(Wl.alternate,Wl);break;case 8:yl(l,s=Wl);var k=s.alternate;ml(s),null!==k&&ml(k)}Wl=Wl.nextEffect}}catch(e){if(null===Wl)throw Error(o(330));Is(Wl,e),Wl=Wl.nextEffect}}while(null!==Wl);if(w=Fr,_=fr(),b=w.focusedElem,l=w.selectionRange,_!==b&&b&&b.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(b.ownerDocument.documentElement,b)){null!==l&&dr(b)&&(_=l.start,void 0===(w=l.end)&&(w=_),"selectionStart"in b?(b.selectionStart=_,b.selectionEnd=Math.min(w,b.value.length)):(w=(_=b.ownerDocument||document)&&_.defaultView||window).getSelection&&(w=w.getSelection(),s=b.textContent.length,k=Math.min(l.start,s),l=void 0===l.end?k:Math.min(l.end,s),!w.extend&&k>l&&(s=l,l=k,k=s),s=cr(b,k),a=cr(b,l),s&&a&&(1!==w.rangeCount||w.anchorNode!==s.node||w.anchorOffset!==s.offset||w.focusNode!==a.node||w.focusOffset!==a.offset)&&((_=_.createRange()).setStart(s.node,s.offset),w.removeAllRanges(),k>l?(w.addRange(_),w.extend(a.node,a.offset)):(_.setEnd(a.node,a.offset),w.addRange(_))))),_=[];for(w=b;w=w.parentNode;)1===w.nodeType&&_.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<_.length;b++)(w=_[b]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Gt=!!Mr,Fr=Mr=null,e.current=n,Wl=r;do{try{for(b=e;null!==Wl;){var E=Wl.flags;if(36&E&&dl(b,Wl.alternate,Wl),128&E){_=void 0;var x=Wl.ref;if(null!==x){var S=Wl.stateNode;switch(Wl.tag){case 5:_=S;break;default:_=S}"function"==typeof x?x(_):x.current=_}}Wl=Wl.nextEffect}}catch(e){if(null===Wl)throw Error(o(330));Is(Wl,e),Wl=Wl.nextEffect}}while(null!==Wl);Wl=null,Ii(),Sl=i}else e.current=n;if($l)$l=!1,Ql=e,Gl=t;else for(Wl=r;null!==Wl;)t=Wl.nextEffect,Wl.nextEffect=null,8&Wl.flags&&((E=Wl).sibling=null,E.stateNode=null),Wl=t;if(0===(r=e.pendingLanes)&&(Vl=null),1===r?e===Zl?Jl++:(Jl=0,Zl=e):Jl=0,n=n.stateNode,bi&&"function"==typeof bi.onCommitFiberRoot)try{bi.onCommitFiberRoot(yi,n,void 0,64==(64&n.current.flags))}catch(e){}if(us(e,Di()),ql)throw ql=!1,e=Hl,Hl=null,e;return 0!=(8&Sl)||qi(),null}function Cs(){for(;null!==Wl;){var e=Wl.alternate;is||null===rs||(0!=(8&Wl.flags)?Ze(Wl,rs)&&(is=!0):13===Wl.tag&&wl(e,Wl)&&Ze(Wl,rs)&&(is=!0));var t=Wl.flags;0!=(256&t)&&fl(e,Wl),0==(512&t)||$l||($l=!0,Wi(97,(function(){return Ts(),null}))),Wl=Wl.nextEffect}}function Ts(){if(90!==Gl){var e=97<Gl?97:Gl;return Gl=90,Bi(e,Ns)}return!1}function Ps(e,t){Yl.push(t,e),$l||($l=!0,Wi(97,(function(){return Ts(),null})))}function Ls(e,t){Kl.push(t,e),$l||($l=!0,Wi(97,(function(){return Ts(),null})))}function Ns(){if(null===Ql)return!1;var e=Ql;if(Ql=null,0!=(48&Sl))throw Error(o(331));var t=Sl;Sl|=32;var n=Kl;Kl=[];for(var r=0;r<n.length;r+=2){var i=n[r],a=n[r+1],l=i.destroy;if(i.destroy=void 0,"function"==typeof l)try{l()}catch(e){if(null===a)throw Error(o(330));Is(a,e)}}for(n=Yl,Yl=[],r=0;r<n.length;r+=2){i=n[r],a=n[r+1];try{var s=i.create;i.destroy=s()}catch(e){if(null===a)throw Error(o(330));Is(a,e)}}for(s=e.current.firstEffect;null!==s;)e=s.nextEffect,s.nextEffect=null,8&s.flags&&(s.sibling=null,s.stateNode=null),s=e;return Sl=t,qi(),!0}function zs(e,t,n){oa(e,t=ll(0,t=il(n,t),1)),t=as(),null!==(e=ss(e,1))&&(Wt(e,1,t),us(e,t))}function Is(e,t){if(3===e.tag)zs(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){zs(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Vl||!Vl.has(r))){var i=sl(n,e=il(t,e),1);if(oa(n,i),i=as(),null!==(n=ss(n,1)))Wt(n,1,i),us(n,i);else if("function"==typeof r.componentDidCatch&&(null===Vl||!Vl.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function js(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=as(),e.pingedLanes|=e.suspendedLanes&n,Ol===e&&(Tl&n)===n&&(4===Nl||3===Nl&&(62914560&Tl)===Tl&&500>Di()-Dl?gs(e,0):Ml|=n),us(e,t)}function Rs(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Ai()?1:2:(0===ts&&(ts=Il),0===(t=Ut(62914560&~ts))&&(t=4194304))),n=as(),null!==(e=ss(e,t))&&(Wt(e,t,n),us(e,n))}function Ms(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Fs(e,t,n,r){return new Ms(e,t,n,r)}function Ds(e){return!(!(e=e.prototype)||!e.isReactComponent)}function As(e,t){var n=e.alternate;return null===n?((n=Fs(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Us(e,t,n,r,i,a){var l=2;if(r=e,"function"==typeof e)Ds(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case x:return Bs(n.children,i,a,t);case M:l=8,i|=16;break;case S:l=8,i|=1;break;case O:return(e=Fs(12,n,t,8|i)).elementType=O,e.type=O,e.lanes=a,e;case L:return(e=Fs(13,n,t,i)).type=L,e.elementType=L,e.lanes=a,e;case N:return(e=Fs(19,n,t,i)).elementType=N,e.lanes=a,e;case F:return Ws(n,i,a,t);case D:return(e=Fs(24,n,t,i)).elementType=D,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:l=10;break e;case T:l=9;break e;case P:l=11;break e;case z:l=14;break e;case I:l=16,r=null;break e;case j:l=22;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Fs(l,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Bs(e,t,n,r){return(e=Fs(7,e,r,t)).lanes=n,e}function Ws(e,t,n,r){return(e=Fs(23,e,r,t)).elementType=F,e.lanes=n,e}function qs(e,t,n){return(e=Fs(6,e,null,t)).lanes=n,e}function Hs(e,t,n){return(t=Fs(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vs(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Bt(0),this.expirationTimes=Bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.mutableSourceEagerHydrationData=null}function $s(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:E,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Qs(e,t,n,r){var i=t.current,a=as(),l=os(i);e:if(n){t:{if(Ye(n=n._reactInternals)!==n||1!==n.tag)throw Error(o(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(di(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(o(171))}if(1===n.tag){var u=n.type;if(di(u)){n=mi(n,u,s);break e}}n=s}else n=li;return null===t.context?t.context=n:t.pendingContext=n,(t=aa(a,l)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),oa(i,t),ls(i,l,a),l}function Gs(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Ys(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Ks(e,t){Ys(e,t),(e=e.alternate)&&Ys(e,t)}function Xs(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Vs(e,t,null!=n&&!0===n.hydrate),t=Fs(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ra(t),e[Yr]=n.current,Cr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function Js(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zs(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a._internalRoot;if("function"==typeof i){var l=i;i=function(){var e=Gs(o);l.call(e)}}Qs(t,o,e,i)}else{if(a=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Xs(e,0,t?{hydrate:!0}:void 0)}(n,r),o=a._internalRoot,"function"==typeof i){var s=i;i=function(){var e=Gs(o);s.call(e)}}hs((function(){Qs(t,o,e,i)}))}return Gs(o)}function eu(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Js(t))throw Error(o(200));return $s(e,t,null,n)}Bl=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||ui.current)zo=!0;else{if(0==(n&r)){switch(zo=!1,t.tag){case 3:Wo(t),Wa();break;case 5:La(t);break;case 1:di(t.type)&&vi(t);break;case 4:Ta(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;oi(Qi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Qo(e,t,n):(oi(za,1&za.current),null!==(t=el(e,t,n))?t.sibling:null);oi(za,1&za.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return Zo(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),oi(za,za.current),r)break;return null;case 23:case 24:return t.lanes=0,Fo(e,t,n)}return el(e,t,n)}zo=0!=(16384&e.flags)}else zo=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=fi(t,si.current),ea(t,n),i=to(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,di(r)){var a=!0;vi(t)}else a=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,ra(t);var l=r.getDerivedStateFromProps;"function"==typeof l&&fa(t,r,l,e),i.updater=da,t.stateNode=i,i._reactInternals=t,va(t,r,e,n),t=Bo(null,t,r,!0,a,n)}else t.tag=0,Io(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(a=i._init)(i._payload),t.type=i,a=t.tag=function(e){if("function"==typeof e)return Ds(e)?1:0;if(null!=e){if((e=e.$$typeof)===P)return 11;if(e===z)return 14}return 2}(i),e=$i(i,e),a){case 0:t=Ao(null,t,i,e,n);break e;case 1:t=Uo(null,t,i,e,n);break e;case 11:t=jo(null,t,i,e,n);break e;case 14:t=Ro(null,t,i,$i(i.type,e),r,n);break e}throw Error(o(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Ao(e,t,r,i=t.elementType===r?i:$i(r,i),n);case 1:return r=t.type,i=t.pendingProps,Uo(e,t,r,i=t.elementType===r?i:$i(r,i),n);case 3:if(Wo(t),r=t.updateQueue,null===e||null===r)throw Error(o(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,ia(e,t),sa(t,r,null,n),(r=t.memoizedState.element)===i)Wa(),t=el(e,t,n);else{if((a=(i=t.stateNode).hydrate)&&(Ra=qr(t.stateNode.containerInfo.firstChild),ja=t,a=Ma=!0),a){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(a=e[i])._workInProgressVersionPrimary=e[i+1],qa.push(a);for(n=ka(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Io(e,t,r,n),Wa();t=t.child}return t;case 5:return La(t),null===e&&Aa(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,l=i.children,Ar(r,i)?l=null:null!==a&&Ar(r,a)&&(t.flags|=16),Do(e,t),Io(e,t,l,n),t.child;case 6:return null===e&&Aa(t),null;case 13:return Qo(e,t,n);case 4:return Ta(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=wa(t,null,r,n):Io(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,jo(e,t,r,i=t.elementType===r?i:$i(r,i),n);case 7:return Io(e,t,t.pendingProps,n),t.child;case 8:case 12:return Io(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,l=t.memoizedProps,a=i.value;var s=t.type._context;if(oi(Qi,s._currentValue),s._currentValue=a,null!==l)if(s=l.value,0===(a=or(s,a)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(s,a):1073741823))){if(l.children===i.children&&!ui.current){t=el(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var u=s.dependencies;if(null!==u){l=s.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&a)){1===s.tag&&((c=aa(-1,n&-n)).tag=2,oa(s,c)),s.lanes|=n,null!==(c=s.alternate)&&(c.lanes|=n),Zi(s.return,n),u.lanes|=n;break}c=c.next}}else l=10===s.tag&&s.type===t.type?null:s.child;if(null!==l)l.return=s;else for(l=s;null!==l;){if(l===t){l=null;break}if(null!==(s=l.sibling)){s.return=l.return,l=s;break}l=l.return}s=l}Io(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(a=t.pendingProps).children,ea(t,n),r=r(i=ta(i,a.unstable_observedBits)),t.flags|=1,Io(e,t,r,n),t.child;case 14:return a=$i(i=t.type,t.pendingProps),Ro(e,t,i,a=$i(i.type,a),r,n);case 15:return Mo(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:$i(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,di(r)?(e=!0,vi(t)):e=!1,ea(t,n),ha(t,r,i),va(t,r,i,n),Bo(null,t,r,!0,e,n);case 19:return Zo(e,t,n);case 23:case 24:return Fo(e,t,n)}throw Error(o(156,t.tag))},Xs.prototype.render=function(e){Qs(e,this._internalRoot,null,null)},Xs.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Qs(null,e,null,(function(){t[Yr]=null}))},et=function(e){13===e.tag&&(ls(e,4,as()),Ks(e,4))},tt=function(e){13===e.tag&&(ls(e,67108864,as()),Ks(e,67108864))},nt=function(e){if(13===e.tag){var t=as(),n=os(e);ls(e,n,t),Ks(e,n)}},rt=function(e,t){return t()},Oe=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ei(r);if(!i)throw Error(o(90));X(r),ne(r,i)}}}break;case"textarea":ue(e,n);break;case"select":null!=(t=n.value)&&oe(e,!!n.multiple,t,!1)}},ze=ps,Ie=function(e,t,n,r,i){var a=Sl;Sl|=4;try{return Bi(98,e.bind(null,t,n,r,i))}finally{0===(Sl=a)&&(Ul(),qi())}},je=function(){0==(49&Sl)&&(function(){if(null!==Xl){var e=Xl;Xl=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,us(e,Di())}))}qi()}(),Ts())},Re=function(e,t){var n=Sl;Sl|=2;try{return e(t)}finally{0===(Sl=n)&&(Ul(),qi())}};var tu={Events:[Jr,Zr,ei,Le,Ne,Ts,{current:!1}]},nu={findFiberByHostInstance:Xr,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},ru={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var iu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!iu.isDisabled&&iu.supportsFiber)try{yi=iu.inject(ru),bi=iu}catch(e){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=eu,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw Error(o(268,Object.keys(e)))}return e=null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Sl;if(0!=(48&n))return e(t);Sl|=1;try{if(e)return Bi(99,e.bind(null,t))}finally{Sl=n,qi()}},t.hydrate=function(e,t,n){if(!Js(t))throw Error(o(200));return Zs(null,e,t,!0,n)},t.render=function(e,t,n){if(!Js(t))throw Error(o(200));return Zs(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Js(e))throw Error(o(40));return!!e._reactRootContainer&&(hs((function(){Zs(null,null,e,!1,(function(){e._reactRootContainer=null,e[Yr]=null}))})),!0)},t.unstable_batchedUpdates=ps,t.unstable_createPortal=function(e,t){return eu(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Js(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return Zs(e,t,n,!1,r)},t.version="17.0.2"},function(e,t,n){"use strict";e.exports=n(28)},function(e,t,n){"use strict";
33
  /** @license React v0.20.2
34
  * scheduler.production.min.js
35
  *
37
  *
38
  * This source code is licensed under the MIT license found in the
39
  * LICENSE file in the root directory of this source tree.
40
+ */var r,i,a,o;if("object"==typeof performance&&"function"==typeof performance.now){var l=performance;t.unstable_now=function(){return l.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,f=null,d=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(d,0),e}};r=function(e){null!==c?setTimeout(r,0,e):(c=e,setTimeout(d,0))},i=function(e,t){f=setTimeout(e,t)},a=function(){clearTimeout(f)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var v=!1,g=null,y=-1,b=5,_=0;t.unstable_shouldYield=function(){return t.unstable_now()>=_},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):b=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,k=w.port2;w.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();_=e+b;try{g(!0,e)?k.postMessage(null):(v=!1,g=null)}catch(e){throw k.postMessage(null),e}}else v=!1},r=function(e){g=e,v||(v=!0,k.postMessage(null))},i=function(e,n){y=p((function(){e(t.unstable_now())}),n)},a=function(){h(y),y=-1}}function E(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<O(i,t)))break e;e[r]=t,e[n]=i,n=r}}function x(e){return void 0===(e=e[0])?null:e}function S(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var a=2*(r+1)-1,o=e[a],l=a+1,s=e[l];if(void 0!==o&&0>O(o,n))void 0!==s&&0>O(s,o)?(e[r]=s,e[l]=n,r=l):(e[r]=o,e[a]=n,r=a);else{if(!(void 0!==s&&0>O(s,n)))break e;e[r]=s,e[l]=n,r=l}}}return t}return null}function O(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var C=[],T=[],P=1,L=null,N=3,z=!1,I=!1,j=!1;function R(e){for(var t=x(T);null!==t;){if(null===t.callback)S(T);else{if(!(t.startTime<=e))break;S(T),t.sortIndex=t.expirationTime,E(C,t)}t=x(T)}}function M(e){if(j=!1,R(e),!I)if(null!==x(C))I=!0,r(F);else{var t=x(T);null!==t&&i(M,t.startTime-e)}}function F(e,n){I=!1,j&&(j=!1,a()),z=!0;var r=N;try{for(R(n),L=x(C);null!==L&&(!(L.expirationTime>n)||e&&!t.unstable_shouldYield());){var o=L.callback;if("function"==typeof o){L.callback=null,N=L.priorityLevel;var l=o(L.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?L.callback=l:L===x(C)&&S(C),R(n)}else S(C);L=x(C)}if(null!==L)var s=!0;else{var u=x(T);null!==u&&i(M,u.startTime-n),s=!1}return s}finally{L=null,N=r,z=!1}}var D=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){I||z||(I=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return N},t.unstable_getFirstCallbackNode=function(){return x(C)},t.unstable_next=function(e){switch(N){case 1:case 2:case 3:var t=3;break;default:t=N}var n=N;N=t;try{return e()}finally{N=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=D,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=N;N=e;try{return t()}finally{N=n}},t.unstable_scheduleCallback=function(e,n,o){var l=t.unstable_now();switch("object"==typeof o&&null!==o?o="number"==typeof(o=o.delay)&&0<o?l+o:l:o=l,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:P++,callback:n,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>l?(e.sortIndex=o,E(T,e),null===x(C)&&e===x(T)&&(j?a():j=!0,i(M,o-l))):(e.sortIndex=s,E(C,e),I||z||(I=!0,r(F))),e},t.unstable_wrapCallback=function(e){var t=N;return function(){var n=N;N=t;try{return e.apply(this,arguments)}finally{N=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,a=void 0;try{for(var o,l=e[Symbol.iterator]();!(r=(o=l.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(i)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=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=O(n(30)),l=O(n(0)),s=O(n(2)),u=O(n(35)),c=O(n(7)),f=O(n(3)),d=O(n(10)),p=O(n(4)),h=n(36),m=O(h),v=O(n(37)),g=O(n(38)),y=O(n(62)),b=O(n(63)),_=O(n(65)),w=O(n(66)),k=O(n(67)),E=O(n(68)),x=O(n(72)),S=O(n(73));function O(e){return e&&e.__esModule?e:{default:e}}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(e){return function(){var t=e.apply(this,arguments);return new Promise((function(e,n){return function r(i,a){try{var o=t[i](a),l=o.value}catch(e){return void n(e)}if(!o.done)return Promise.resolve(l).then((function(e){r("next",e)}),(function(e){r("throw",e)}));e(l)}("next")}))}}var P=n(74),L=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.providers=["Unsplash","Pixabay","Pexels"],n.provider=n.props.provider,n.api_provider=s.default[n.provider],n.arr_key=n.api_provider.arr_key,n.per_page=s.default.defaults.per_page,n.api_key=instant_img_localize[n.provider+"_app_id"],n.photo_api=n.api_provider.photo_api,n.search_api=n.api_provider.search_api,n.results=(0,m.default)(n.provider,n.arr_key,n.props.results),n.state={results:n.results,filters:u.default[n.provider].filters,search_filters:u.default[n.provider].search,restapi_error:!1,api_lightbox:!1},n.filters={},n.search_filters={},n.show_search_filters=!0,n.orderby=n.props.orderby,n.page=n.props.page,n.is_search=!1,n.search_term="",n.total_results=0,n.view="",n.isLoading=!1,n.isDone=!1,n.errorMsg="",n.msnry="",n.tooltipInterval="",n.delay=250,n.photoTarget=l.default.createRef(),n.providerNav=l.default.createRef(),n.controlNav=l.default.createRef(),n.photoSearch=l.default.createRef(),n.filterGroups=l.default.createRef(),n.editor=n.props.editor?n.props.editor:"classic",n.is_block_editor="gutenberg"===n.props.editor,n.is_media_router="media-router"===n.props.editor,n.SetFeaturedImage=n.props.SetFeaturedImage?n.props.SetFeaturedImage.bind(n):"",n.InsertImage=n.props.InsertImage?n.props.InsertImage.bind(n):"",n.is_block_editor?(n.container=document.querySelector("body"),n.container.classList.add("loading"),n.wrapper=document.querySelector("body")):(n.container=n.props.container.closest(".instant-img-container"),n.wrapper=n.props.container.closest(".instant-images-wrapper"),n.container.classList.add("loading")),n}var n,O,L,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),a(t,[{key:"search",value:function(e){e.preventDefault();var t=this.photoSearch.current,n=t.value;n.length>2?(t.classList.add("searching"),this.search_term=n,this.is_search=!0,this.doSearch(this.search_term)):t.focus()}},{key:"clearSearch",value:function(){this.photoSearch.current.value="",this.total_results=0,this.is_search=!1,this.search_term="",this.search_filters={},this.toggleFilters()}},{key:"controlsClick",value:function(e,t){var n=e.currentTarget;this.view=t,n.classList.contains("active")||this.getPhotos(t)}},{key:"doSearch",value:(N=T(regeneratorRuntime.mark((function e(t){var n,r,a,o,l,s,c,g,y,b,_,w,k,E,x;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this,r="id:"===t.substring(0,3)?"id":"term",a=this.photoSearch.current,(o=this.photoTarget.current).classList.add("loading"),this.isLoading=!0,this.page=1,this.toggleFilters(),l=this.search_api,s={},"id"===r?l=(0,v.default)(this,t):s=C({},this.api_provider.search_var,this.search_term),c=i({},s,this.search_filters,{page:this.page}),g=(0,p.default)(this.provider,c),y=(0,f.default)(l,g),b=(0,d.default)(this.provider),e.next=17,fetch(y,{headers:b});case 17:if(!(_=e.sent).ok){e.next=43;break}return e.next=22,_.json();case 22:w=e.sent,e.t0=r,e.next="term"===e.t0?26:"id"===e.t0?33:40;break;case 26:return k=(0,m.default)(this.provider,this.arr_key,w,!0),this.total_results=(0,h.getSearchTotalByProvider)(this.provider,w),this.checkTotalResults(k.length),this.show_search_filters=this.total_results>0,this.results=k,this.setState({results:this.results,search_filters:u.default[this.provider].search}),e.abrupt("break",40);case 33:return E=[],x=(0,h.getResultById)(this.provider,this.arr_key,w,!0),w.errors?(this.total_results=0,this.checkTotalResults("0")):(E.push(x),this.total_results=1,this.checkTotalResults("1"),this.isDone=!0),this.show_search_filters=!1,this.results=E,this.setState({results:n.results}),e.abrupt("break",40);case 40:setTimeout((function(){a.classList.remove("searching"),o.classList.remove("loading"),n.isLoading=!1}),this.delay),e.next=51;break;case 43:this.isDone=!0,this.isLoading=!1,this.show_search_filters=!1,this.total_results=0,a.classList.remove("searching"),o.classList.remove("loading"),this.results=[],this.setState({results:this.results});case 51:case"end":return e.stop()}}),e,this)}))),function(e){return N.apply(this,arguments)})},{key:"getPhotos",value:(L=T(regeneratorRuntime.mark((function e(t){var n,r,i,a,o,l,s,c,h,v,g=arguments.length>1&&void 0!==arguments[1]&&arguments[1],y=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isLoading||g){e.next=2;break}return e.abrupt("return");case 2:return n=this,this.photoTarget.current.classList.add("loading"),this.isLoading=!0,this.page=1,this.orderby=t,this.results=[],this.clearSearch(),r=(0,p.default)(this.provider,this.filters),i=(0,f.default)(this.photo_api,r),a=(0,d.default)(this.provider),e.next=14,fetch(i,{headers:a});case 14:if(o=e.sent,l=o.ok,s=o.status,c=o.statusText,!l){e.next=26;break}return e.next=19,o.json();case 19:h=e.sent,v=(0,m.default)(this.provider,this.arr_key,h),this.checkTotalResults(v.length),this.results=v,y?this.setState({results:v,filters:u.default[this.provider].filters}):this.setState({results:v}),e.next=29;break;case 26:console.warn("Error: "+s+" - "+c),this.photoTarget.current.classList.remove("loading"),this.isLoading=!1;case 29:setTimeout((function(){n.photoTarget.current.classList.remove("loading"),n.isLoading=!1}),n.delay);case 30:case"end":return e.stop()}}),e,this)}))),function(e){return L.apply(this,arguments)})},{key:"loadMorePhotos",value:(O=T(regeneratorRuntime.mark((function e(){var t,n,r,a,o,l,s,u,c,h,v,g,y,b;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this,this.container.classList.add("loading"),this.isLoading=!0,this.page=parseInt(this.page)+1,n={},this.is_search&&(n=C({},this.api_provider.search_var,this.search_term)),r=this.is_search?this.search_api:this.photo_api,a=this.is_search?this.search_filters:this.filters,o=i({},a,n,{page:this.page}),l=(0,p.default)(this.provider,o),s=(0,f.default)(r,l),u=(0,d.default)(this.provider),e.next=14,fetch(s,{headers:u});case 14:if(c=e.sent,h=c.ok,v=c.status,g=c.statusText,!h){e.next=27;break}return e.next=19,c.json();case 19:y=e.sent,b=(0,m.default)(this.provider,this.arr_key,y,this.is_search),this.is_search&&"unsplash"===this.provider&&(b=y.results),b&&b.map((function(e){t.results.push(e)})),this.checkTotalResults(y.length),this.setState({results:this.results}),e.next=29;break;case 27:console.warn("Error: "+v+" - "+g),t.isLoading=!1;case 29:case"end":return e.stop()}}),e,this)}))),function(){return O.apply(this,arguments)})},{key:"filterPhotos",value:function(e,t){this.filters[e]&&"#"===t||""===t||"all"===t?delete this.filters[e]:this.filters[e]=t,this.getPhotos(this.view,!0)}},{key:"filterSearch",value:function(e,t){this.search_filters[e]&&"#"===t||""===t||"all"===t?delete this.search_filters[e]:this.search_filters[e]=t,this.doSearch(this.search_term)}},{key:"toggleFilters",value:function(){var e=this,t=this.filterGroups.current.querySelectorAll("button.filter-dropdown--button");t&&t.forEach((function(t){t.disabled=!!e.is_search})),this.is_search?this.filterGroups.current.classList.add("inactive"):this.filterGroups.current.classList.remove("inactive")}},{key:"afterVerifiedAPICallback",value:function(e){var t=this.providerNav.current.querySelector("button[data-provider="+e+"]");t&&(this.setState({api_lightbox:!1}),document.body.classList.remove("overflow-hidden"),t.click())}},{key:"closeAPILightbox",value:function(e){this.setState({api_lightbox:!1}),document.body.classList.remove("overflow-hidden");var t=this.providerNav.current.querySelector("button[data-provider="+e+"]");t&&t.focus({preventScroll:!0})}},{key:"switchProvider",value:(n=T(regeneratorRuntime.mark((function e(t){var n,r,i,a,o,l,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.currentTarget,(r=n.dataset.provider)!==this.provider){e.next=4;break}return e.abrupt("return",!1);case 4:if(!s.default[r].requires_key){e.next=24;break}return i=(0,d.default)(r),a=this,e.prev=7,e.next=10,fetch((0,c.default)(r),{headers:i});case 10:if(o=e.sent,l=o.ok,u=o.status,l&&400!==u&&401!==u&&500!==u&&404!==u){e.next=17;break}return a.setState({api_lightbox:r}),document.body.classList.add("overflow-hidden"),e.abrupt("return");case 17:e.next=24;break;case 19:return e.prev=19,e.t0=e.catch(7),a.setState({api_lightbox:r}),document.body.classList.add("overflow-hidden"),e.abrupt("return");case 24:this.providerNav.current.querySelectorAll("button").forEach((function(e){e.classList.remove("active")})),n.classList.add("active"),this.provider=r,this.api_provider=s.default[this.provider],this.arr_key=this.api_provider.arr_key,this.api_key=instant_img_localize[this.provider+"_app_id"],this.photo_api=this.api_provider.photo_api,this.search_api=this.api_provider.search_api,this.filters={},this.search_filters={},this.view="latest",this.getPhotos(this.view,!0,!0);case 36:case"end":return e.stop()}}),e,this,[[7,19]])}))),function(e){return n.apply(this,arguments)})},{key:"renderLayout",value:function(){if(this.is_block_editor)return!1;var e=this,t=e.photoTarget.current;P(t,(function(){e.msnry=new o.default(t,{itemSelector:".photo"}),e.photoTarget.current.querySelectorAll(".photo").forEach((function(e){e.classList.add("in-view")}))}))}},{key:"onScroll",value:function(){window.innerHeight+window.pageYOffset>=document.body.scrollHeight-200&&!this.isLoading&&!this.isDone&&this.loadMorePhotos()}},{key:"checkTotalResults",value:function(e){this.isDone=0===parseInt(e)}},{key:"doneLoading",value:function(){var e=this;setTimeout((function(){e.isLoading=!1,e.container.classList.remove("loading")}),e.delay)}},{key:"showTooltip",value:function(e){var t=this,n=e.currentTarget,r=n.getBoundingClientRect(),i=Math.round(r.left),a=Math.round(r.top),o=this.container.querySelector("#tooltip");o.classList.remove("over"),n.classList.contains("tooltip--above")?o.classList.add("above"):o.classList.remove("above"),this.tooltipInterval=setInterval((function(){clearInterval(t.tooltipInterval),o.innerHTML=n.dataset.title,i=i-o.offsetWidth+n.offsetWidth+5,o.style.left=i+"px",o.style.top=a+"px",setTimeout((function(){o.classList.add("over")}),t.delay)}),750)}},{key:"hideTooltip",value:function(){clearInterval(this.tooltipInterval),this.container.querySelector("#tooltip").classList.remove("over")}},{key:"test",value:function(){var e=this,t=instant_img_localize.root+"instant-images/test/",n=new XMLHttpRequest;n.open("POST",t,!0),n.setRequestHeader("X-WP-Nonce",instant_img_localize.nonce),n.setRequestHeader("Content-Type","application/json"),n.send(),n.onload=function(){n.status>=200&&n.status<400?JSON.parse(n.response).success||e.setState({restapi_error:!0}):e.setState({restapi_error:!0})},n.onerror=function(t){console.log(t),e.setState({restapi_error:!0})}}},{key:"componentDidUpdate",value:function(){this.renderLayout(),this.doneLoading()}},{key:"componentDidMount",value:function(){var e=this;this.renderLayout(),this.doneLoading(),this.test(),this.container.classList.remove("loading"),this.wrapper.classList.add("loaded"),this.is_block_editor||this.is_media_router?(this.page=0,this.loadMorePhotos()):window.addEventListener("scroll",(function(){return e.onScroll()}))}},{key:"render",value:function(){var e=this;return l.default.createElement("div",{id:"photo-listing",className:this.provider},this.providers&&l.default.createElement("nav",{className:"provider-nav",ref:this.providerNav},this.providers.map((function(t,n){return l.default.createElement("div",{key:"provider-"+n},l.default.createElement("button",{"data-provider":t.toLowerCase(),onClick:function(t){return e.switchProvider(t)},className:e.provider===t.toLowerCase()?"provider-nav--btn active":"provider-nav--btn"},l.default.createElement("span",null,t),s.default[t.toLowerCase()].new&&l.default.createElement("span",{className:"provider-nav--new"},"New")))}))),this.state.api_lightbox&&l.default.createElement(g.default,{provider:this.state.api_lightbox,afterVerifiedAPICallback:this.afterVerifiedAPICallback.bind(this),closeAPILightbox:this.closeAPILightbox.bind(this)}),l.default.createElement("div",{className:"control-nav",ref:this.controlNav},l.default.createElement("div",{className:"control-nav--filters-wrap",ref:this.filterGroups},Object.entries(this.state.filters).length&&l.default.createElement("div",{className:"control-nav--filters"},Object.entries(this.state.filters).map((function(t,n){var i=r(t,2),a=i[0],o=i[1];return l.default.createElement(b.default,{key:a+"-"+e.provider+"-"+n,filterKey:a,provider:e.provider,data:o,function:e.filterPhotos.bind(e)})})))),l.default.createElement("div",{className:"control-nav--search search-field",id:"search-bar"},l.default.createElement("form",{onSubmit:function(t){return e.search(t)},autoComplete:"off"},l.default.createElement("label",{htmlFor:"photo-search",className:"offscreen"},instant_img_localize.search_label),l.default.createElement("input",{type:"search",id:"photo-search",placeholder:instant_img_localize.search,ref:this.photoSearch}),l.default.createElement("button",{type:"submit",id:"photo-search-submit"},l.default.createElement("i",{className:"fa fa-search"})),l.default.createElement(x.default,{container:this.container,getPhotos:this.getPhotos.bind(this),isSearch:this.is_search,total:this.total_results,title:this.total_results+" "+instant_img_localize.search_results+" "+this.search_term})))),this.state.restapi_error&&l.default.createElement(y.default,null),this.is_search&&"gutenberg"!==this.editor&&l.default.createElement("div",{className:"search-results-header"},l.default.createElement("h2",null,this.search_term),l.default.createElement("div",{className:"search-results-header--text"},this.total_results+" "+instant_img_localize.search_results," ",l.default.createElement("strong",null,""+this.search_term)," - ",l.default.createElement("button",{title:instant_img_localize.clear_search,onClick:function(){return e.getPhotos("latest")}},instant_img_localize.clear_search)),this.show_search_filters&&Object.entries(this.state.search_filters).length&&l.default.createElement("div",{className:"control-nav--filters-wrap"},l.default.createElement("div",{className:"control-nav--filters"},Object.entries(this.state.search_filters).map((function(t,n){var i=r(t,2),a=i[0],o=i[1];return l.default.createElement(b.default,{key:a+"-"+n,filterKey:a,provider:e.provider,data:o,function:e.filterSearch.bind(e)})}))))),l.default.createElement("div",{id:"photos",className:"photo-target",ref:this.photoTarget},this.state.results.map((function(t,n){return l.default.createElement(E.default,{provider:e.provider,result:t,key:e.provider+"-"+t.id+"-"+n,editor:e.editor,mediaRouter:e.is_media_router,blockEditor:e.is_block_editor,SetFeaturedImage:e.SetFeaturedImage,InsertImage:e.InsertImage,showTooltip:e.showTooltip,hideTooltip:e.hideTooltip})}))),0==this.total_results&&!0===this.is_search&&l.default.createElement(k.default,null),l.default.createElement(_.default,null),l.default.createElement(w.default,{loadMorePhotos:this.loadMorePhotos.bind(this)}),l.default.createElement(S.default,null))}}]),t}(l.default.Component);t.default=L},function(e,t,n){var r,i,a;
41
  /*!
42
  * Masonry v4.2.2
43
  * Cascading grid layout library
44
  * https://masonry.desandro.com
45
  * MIT License
46
  * by David DeSandro
47
+ */window,i=[n(31),n(6)],void 0===(a="function"==typeof(r=function(e,t){"use strict";var n=e.create("masonry");n.compatOptions.fitWidth="isFitWidth";var r=n.prototype;return r._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var e=0;e<this.cols;e++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},r.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var e=this.items[0],n=e&&e.element;this.columnWidth=n&&t(n).outerWidth||this.containerWidth}var r=this.columnWidth+=this.gutter,i=this.containerWidth+this.gutter,a=i/r,o=r-i%r;a=Math[o&&o<1?"round":"floor"](a),this.cols=Math.max(a,1)},r.getContainerWidth=function(){var e=this._getOption("fitWidth")?this.element.parentNode:this.element,n=t(e);this.containerWidth=n&&n.innerWidth},r._getItemLayoutPosition=function(e){e.getSize();var t=e.size.outerWidth%this.columnWidth,n=Math[t&&t<1?"round":"ceil"](e.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var r=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](n,e),i={x:this.columnWidth*r.col,y:r.y},a=r.y+e.size.outerHeight,o=n+r.col,l=r.col;l<o;l++)this.colYs[l]=a;return i},r._getTopColPosition=function(e){var t=this._getTopColGroup(e),n=Math.min.apply(Math,t);return{col:t.indexOf(n),y:n}},r._getTopColGroup=function(e){if(e<2)return this.colYs;for(var t=[],n=this.cols+1-e,r=0;r<n;r++)t[r]=this._getColGroupY(r,e);return t},r._getColGroupY=function(e,t){if(t<2)return this.colYs[e];var n=this.colYs.slice(e,e+t);return Math.max.apply(Math,n)},r._getHorizontalColPosition=function(e,t){var n=this.horizontalColIndex%this.cols;n=e>1&&n+e>this.cols?0:n;var r=t.size.outerWidth&&t.size.outerHeight;return this.horizontalColIndex=r?n+e:this.horizontalColIndex,{col:n,y:this._getColGroupY(n,e)}},r._manageStamp=function(e){var n=t(e),r=this._getElementOffset(e),i=this._getOption("originLeft")?r.left:r.right,a=i+n.outerWidth,o=Math.floor(i/this.columnWidth);o=Math.max(0,o);var l=Math.floor(a/this.columnWidth);l-=a%this.columnWidth?0:1,l=Math.min(this.cols-1,l);for(var s=(this._getOption("originTop")?r.top:r.bottom)+n.outerHeight,u=o;u<=l;u++)this.colYs[u]=Math.max(s,this.colYs[u])},r._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var e={height:this.maxY};return this._getOption("fitWidth")&&(e.width=this._getContainerFitWidth()),e},r._getContainerFitWidth=function(){for(var e=0,t=this.cols;--t&&0===this.colYs[t];)e++;return(this.cols-e)*this.columnWidth-this.gutter},r.needsResizeLayout=function(){var e=this.containerWidth;return this.getContainerWidth(),e!=this.containerWidth},n})?r.apply(t,i):r)||(e.exports=a)},function(e,t,n){var r,i;
48
  /*!
49
  * Outlayer v2.1.1
50
  * the brains and guts of a layout library
51
  * MIT license
52
+ */!function(a,o){"use strict";r=[n(5),n(6),n(32),n(34)],void 0===(i=function(e,t,n,r){return function(e,t,n,r,i){var a=e.console,o=e.jQuery,l=function(){},s=0,u={};function c(e,t){var n=r.getQueryElement(e);if(n){this.element=n,o&&(this.$element=o(this.element)),this.options=r.extend({},this.constructor.defaults),this.option(t);var i=++s;this.element.outlayerGUID=i,u[i]=this,this._create(),this._getOption("initLayout")&&this.layout()}else a&&a.error("Bad element for "+this.constructor.namespace+": "+(n||e))}c.namespace="outlayer",c.Item=i,c.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var f=c.prototype;function d(e){function t(){e.apply(this,arguments)}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t}r.extend(f,t.prototype),f.option=function(e){r.extend(this.options,e)},f._getOption=function(e){var t=this.constructor.compatOptions[e];return t&&void 0!==this.options[t]?this.options[t]:this.options[e]},c.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},f._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),r.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},f.reloadItems=function(){this.items=this._itemize(this.element.children)},f._itemize=function(e){for(var t=this._filterFindItemElements(e),n=this.constructor.Item,r=[],i=0;i<t.length;i++){var a=new n(t[i],this);r.push(a)}return r},f._filterFindItemElements=function(e){return r.filterFindElements(e,this.options.itemSelector)},f.getItemElements=function(){return this.items.map((function(e){return e.element}))},f.layout=function(){this._resetLayout(),this._manageStamps();var e=this._getOption("layoutInstant"),t=void 0!==e?e:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},f._init=f.layout,f._resetLayout=function(){this.getSize()},f.getSize=function(){this.size=n(this.element)},f._getMeasurement=function(e,t){var r,i=this.options[e];i?("string"==typeof i?r=this.element.querySelector(i):i instanceof HTMLElement&&(r=i),this[e]=r?n(r)[t]:i):this[e]=0},f.layoutItems=function(e,t){e=this._getItemsForLayout(e),this._layoutItems(e,t),this._postLayout()},f._getItemsForLayout=function(e){return e.filter((function(e){return!e.isIgnored}))},f._layoutItems=function(e,t){if(this._emitCompleteOnItems("layout",e),e&&e.length){var n=[];e.forEach((function(e){var r=this._getItemLayoutPosition(e);r.item=e,r.isInstant=t||e.isLayoutInstant,n.push(r)}),this),this._processLayoutQueue(n)}},f._getItemLayoutPosition=function(){return{x:0,y:0}},f._processLayoutQueue=function(e){this.updateStagger(),e.forEach((function(e,t){this._positionItem(e.item,e.x,e.y,e.isInstant,t)}),this)},f.updateStagger=function(){var e=this.options.stagger;if(null!=e)return this.stagger=function(e){if("number"==typeof e)return e;var t=e.match(/(^\d*\.?\d*)(\w*)/),n=t&&t[1],r=t&&t[2];if(!n.length)return 0;return(n=parseFloat(n))*(p[r]||1)}(e),this.stagger;this.stagger=0},f._positionItem=function(e,t,n,r,i){r?e.goTo(t,n):(e.stagger(i*this.stagger),e.moveTo(t,n))},f._postLayout=function(){this.resizeContainer()},f.resizeContainer=function(){if(this._getOption("resizeContainer")){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},f._getContainerSize=l,f._setContainerMeasure=function(e,t){if(void 0!==e){var n=this.size;n.isBorderBox&&(e+=t?n.paddingLeft+n.paddingRight+n.borderLeftWidth+n.borderRightWidth:n.paddingBottom+n.paddingTop+n.borderTopWidth+n.borderBottomWidth),e=Math.max(e,0),this.element.style[t?"width":"height"]=e+"px"}},f._emitCompleteOnItems=function(e,t){var n=this;function r(){n.dispatchEvent(e+"Complete",null,[t])}var i=t.length;if(t&&i){var a=0;t.forEach((function(t){t.once(e,o)}))}else r();function o(){++a==i&&r()}},f.dispatchEvent=function(e,t,n){var r=t?[t].concat(n):n;if(this.emitEvent(e,r),o)if(this.$element=this.$element||o(this.element),t){var i=o.Event(t);i.type=e,this.$element.trigger(i,n)}else this.$element.trigger(e,n)},f.ignore=function(e){var t=this.getItem(e);t&&(t.isIgnored=!0)},f.unignore=function(e){var t=this.getItem(e);t&&delete t.isIgnored},f.stamp=function(e){(e=this._find(e))&&(this.stamps=this.stamps.concat(e),e.forEach(this.ignore,this))},f.unstamp=function(e){(e=this._find(e))&&e.forEach((function(e){r.removeFrom(this.stamps,e),this.unignore(e)}),this)},f._find=function(e){if(e)return"string"==typeof e&&(e=this.element.querySelectorAll(e)),e=r.makeArray(e)},f._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},f._getBoundingRect=function(){var e=this.element.getBoundingClientRect(),t=this.size;this._boundingRect={left:e.left+t.paddingLeft+t.borderLeftWidth,top:e.top+t.paddingTop+t.borderTopWidth,right:e.right-(t.paddingRight+t.borderRightWidth),bottom:e.bottom-(t.paddingBottom+t.borderBottomWidth)}},f._manageStamp=l,f._getElementOffset=function(e){var t=e.getBoundingClientRect(),r=this._boundingRect,i=n(e);return{left:t.left-r.left-i.marginLeft,top:t.top-r.top-i.marginTop,right:r.right-t.right-i.marginRight,bottom:r.bottom-t.bottom-i.marginBottom}},f.handleEvent=r.handleEvent,f.bindResize=function(){e.addEventListener("resize",this),this.isResizeBound=!0},f.unbindResize=function(){e.removeEventListener("resize",this),this.isResizeBound=!1},f.onresize=function(){this.resize()},r.debounceMethod(c,"onresize",100),f.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},f.needsResizeLayout=function(){var e=n(this.element);return this.size&&e&&e.innerWidth!==this.size.innerWidth},f.addItems=function(e){var t=this._itemize(e);return t.length&&(this.items=this.items.concat(t)),t},f.appended=function(e){var t=this.addItems(e);t.length&&(this.layoutItems(t,!0),this.reveal(t))},f.prepended=function(e){var t=this._itemize(e);if(t.length){var n=this.items.slice(0);this.items=t.concat(n),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(n)}},f.reveal=function(e){if(this._emitCompleteOnItems("reveal",e),e&&e.length){var t=this.updateStagger();e.forEach((function(e,n){e.stagger(n*t),e.reveal()}))}},f.hide=function(e){if(this._emitCompleteOnItems("hide",e),e&&e.length){var t=this.updateStagger();e.forEach((function(e,n){e.stagger(n*t),e.hide()}))}},f.revealItemElements=function(e){var t=this.getItems(e);this.reveal(t)},f.hideItemElements=function(e){var t=this.getItems(e);this.hide(t)},f.getItem=function(e){for(var t=0;t<this.items.length;t++){var n=this.items[t];if(n.element==e)return n}},f.getItems=function(e){e=r.makeArray(e);var t=[];return e.forEach((function(e){var n=this.getItem(e);n&&t.push(n)}),this),t},f.remove=function(e){var t=this.getItems(e);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach((function(e){e.remove(),r.removeFrom(this.items,e)}),this)},f.destroy=function(){var e=this.element.style;e.height="",e.position="",e.width="",this.items.forEach((function(e){e.destroy()})),this.unbindResize();var t=this.element.outlayerGUID;delete u[t],delete this.element.outlayerGUID,o&&o.removeData(this.element,this.constructor.namespace)},c.data=function(e){var t=(e=r.getQueryElement(e))&&e.outlayerGUID;return t&&u[t]},c.create=function(e,t){var n=d(c);return n.defaults=r.extend({},c.defaults),r.extend(n.defaults,t),n.compatOptions=r.extend({},c.compatOptions),n.namespace=e,n.data=c.data,n.Item=d(i),r.htmlInit(n,e),o&&o.bridget&&o.bridget(e,n),n};var p={ms:1,s:1e3};return c.Item=i,c}(a,e,t,n,r)}.apply(t,r))||(e.exports=i)}(window)},function(e,t,n){var r,i;!function(a,o){r=[n(33)],void 0===(i=function(e){return function(e,t){"use strict";var n={extend:function(e,t){for(var n in t)e[n]=t[n];return e},modulo:function(e,t){return(e%t+t)%t}},r=Array.prototype.slice;n.makeArray=function(e){return Array.isArray(e)?e:null==e?[]:"object"==typeof e&&"number"==typeof e.length?r.call(e):[e]},n.removeFrom=function(e,t){var n=e.indexOf(t);-1!=n&&e.splice(n,1)},n.getParent=function(e,n){for(;e.parentNode&&e!=document.body;)if(e=e.parentNode,t(e,n))return e},n.getQueryElement=function(e){return"string"==typeof e?document.querySelector(e):e},n.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},n.filterFindElements=function(e,r){e=n.makeArray(e);var i=[];return e.forEach((function(e){if(e instanceof HTMLElement)if(r){t(e,r)&&i.push(e);for(var n=e.querySelectorAll(r),a=0;a<n.length;a++)i.push(n[a])}else i.push(e)})),i},n.debounceMethod=function(e,t,n){n=n||100;var r=e.prototype[t],i=t+"Timeout";e.prototype[t]=function(){var e=this[i];clearTimeout(e);var t=arguments,a=this;this[i]=setTimeout((function(){r.apply(a,t),delete a[i]}),n)}},n.docReady=function(e){var t=document.readyState;"complete"==t||"interactive"==t?setTimeout(e):document.addEventListener("DOMContentLoaded",e)},n.toDashed=function(e){return e.replace(/(.)([A-Z])/g,(function(e,t,n){return t+"-"+n})).toLowerCase()};var i=e.console;return n.htmlInit=function(t,r){n.docReady((function(){var a=n.toDashed(r),o="data-"+a,l=document.querySelectorAll("["+o+"]"),s=document.querySelectorAll(".js-"+a),u=n.makeArray(l).concat(n.makeArray(s)),c=o+"-options",f=e.jQuery;u.forEach((function(e){var n,a=e.getAttribute(o)||e.getAttribute(c);try{n=a&&JSON.parse(a)}catch(t){return void(i&&i.error("Error parsing "+o+" on "+e.className+": "+t))}var l=new t(e,n);f&&f.data(e,r,l)}))}))},n}(a,e)}.apply(t,r))||(e.exports=i)}(window)},function(e,t,n){var r,i;!function(a,o){"use strict";void 0===(i="function"==typeof(r=o)?r.call(t,n,t,e):r)||(e.exports=i)}(window,(function(){"use strict";var e=function(){var e=window.Element.prototype;if(e.matches)return"matches";if(e.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],n=0;n<t.length;n++){var r=t[n]+"MatchesSelector";if(e[r])return r}}();return function(t,n){return t[e](n)}}))},function(e,t,n){var r,i,a;window,i=[n(5),n(6)],void 0===(a="function"==typeof(r=function(e,t){"use strict";var n=document.documentElement.style,r="string"==typeof n.transition?"transition":"WebkitTransition",i="string"==typeof n.transform?"transform":"WebkitTransform",a={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[r],o={transform:i,transition:r,transitionDuration:r+"Duration",transitionProperty:r+"Property",transitionDelay:r+"Delay"};function l(e,t){e&&(this.element=e,this.layout=t,this.position={x:0,y:0},this._create())}var s=l.prototype=Object.create(e.prototype);s.constructor=l,s._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},s.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},s.getSize=function(){this.size=t(this.element)},s.css=function(e){var t=this.element.style;for(var n in e)t[o[n]||n]=e[n]},s.getPosition=function(){var e=getComputedStyle(this.element),t=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),r=e[t?"left":"right"],i=e[n?"top":"bottom"],a=parseFloat(r),o=parseFloat(i),l=this.layout.size;-1!=r.indexOf("%")&&(a=a/100*l.width),-1!=i.indexOf("%")&&(o=o/100*l.height),a=isNaN(a)?0:a,o=isNaN(o)?0:o,a-=t?l.paddingLeft:l.paddingRight,o-=n?l.paddingTop:l.paddingBottom,this.position.x=a,this.position.y=o},s.layoutPosition=function(){var e=this.layout.size,t={},n=this.layout._getOption("originLeft"),r=this.layout._getOption("originTop"),i=n?"paddingLeft":"paddingRight",a=n?"left":"right",o=n?"right":"left",l=this.position.x+e[i];t[a]=this.getXValue(l),t[o]="";var s=r?"paddingTop":"paddingBottom",u=r?"top":"bottom",c=r?"bottom":"top",f=this.position.y+e[s];t[u]=this.getYValue(f),t[c]="",this.css(t),this.emitEvent("layout",[this])},s.getXValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!t?e/this.layout.size.width*100+"%":e+"px"},s.getYValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&t?e/this.layout.size.height*100+"%":e+"px"},s._transitionTo=function(e,t){this.getPosition();var n=this.position.x,r=this.position.y,i=e==this.position.x&&t==this.position.y;if(this.setPosition(e,t),!i||this.isTransitioning){var a=e-n,o=t-r,l={};l.transform=this.getTranslate(a,o),this.transition({to:l,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},s.getTranslate=function(e,t){return"translate3d("+(e=this.layout._getOption("originLeft")?e:-e)+"px, "+(t=this.layout._getOption("originTop")?t:-t)+"px, 0)"},s.goTo=function(e,t){this.setPosition(e,t),this.layoutPosition()},s.moveTo=s._transitionTo,s.setPosition=function(e,t){this.position.x=parseFloat(e),this.position.y=parseFloat(t)},s._nonTransition=function(e){for(var t in this.css(e.to),e.isCleaning&&this._removeStyles(e.to),e.onTransitionEnd)e.onTransitionEnd[t].call(this)},s.transition=function(e){if(parseFloat(this.layout.options.transitionDuration)){var t=this._transn;for(var n in e.onTransitionEnd)t.onEnd[n]=e.onTransitionEnd[n];for(n in e.to)t.ingProperties[n]=!0,e.isCleaning&&(t.clean[n]=!0);e.from&&(this.css(e.from),this.element.offsetHeight),this.enableTransition(e.to),this.css(e.to),this.isTransitioning=!0}else this._nonTransition(e)};var u="opacity,"+i.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()}));s.enableTransition=function(){if(!this.isTransitioning){var e=this.layout.options.transitionDuration;e="number"==typeof e?e+"ms":e,this.css({transitionProperty:u,transitionDuration:e,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(a,this,!1)}},s.onwebkitTransitionEnd=function(e){this.ontransitionend(e)},s.onotransitionend=function(e){this.ontransitionend(e)};var c={"-webkit-transform":"transform"};s.ontransitionend=function(e){if(e.target===this.element){var t=this._transn,n=c[e.propertyName]||e.propertyName;delete t.ingProperties[n],function(e){for(var t in e)return!1;return!0}(t.ingProperties)&&this.disableTransition(),n in t.clean&&(this.element.style[e.propertyName]="",delete t.clean[n]),n in t.onEnd&&(t.onEnd[n].call(this),delete t.onEnd[n]),this.emitEvent("transitionEnd",[this])}},s.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(a,this,!1),this.isTransitioning=!1},s._removeStyles=function(e){var t={};for(var n in e)t[n]="";this.css(t)};var f={transitionProperty:"",transitionDuration:"",transitionDelay:""};return s.removeTransitionStyles=function(){this.css(f)},s.stagger=function(e){e=isNaN(e)?0:e,this.staggerDelay=e+"ms"},s.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},s.remove=function(){r&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",(function(){this.removeElem()})),this.hide()):this.removeElem()},s.reveal=function(){delete this.isHidden,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:e.hiddenStyle,to:e.visibleStyle,isCleaning:!0,onTransitionEnd:t})},s.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},s.getHideRevealTransitionEndProperty=function(e){var t=this.layout.options[e];if(t.opacity)return"opacity";for(var n in t)return n},s.hide=function(){this.isHidden=!0,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:e.visibleStyle,to:e.hiddenStyle,isCleaning:!0,onTransitionEnd:t})},s.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},s.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},l})?r.apply(t,i):r)||(e.exports=a)},function(e,t,n){"use strict";e.exports={pexels:{filters:{order_by:{label:"orderby",default:"curated",filters:["curated"]}},search:{orientation:{label:"orientation",default:"all",filters:["all","landscape","portrait","square"]},color:{label:"colors",default:"all",filters:["all","red","orange","yellow","green","turquoise","blue","violet","pink","brown","black","gray","white"]},size:{label:"size",default:"all",filters:["all","large","medium","small"]}}},unsplash:{filters:{order_by:{label:"orderby",default:"latest",filters:["latest","popular","oldest"]}},search:{order_by:{label:"orderby",default:"relevance",filters:["relevance","latest"]},orientation:{label:"orientation",default:"all",filters:["all","landscape","portrait","squarish"]},color:{label:"colors",default:"all",filters:["all","black_and_white","black","white","yellow","orange","red","purple","magenta","green","teal","blue"]}}},pixabay:{filters:{order:{label:"orderby",default:"popular",filters:["latest","popular"]},image_type:{label:"type",default:"all",filters:["all","photo","illustration","vector"]},category:{label:"category",default:"all",filters:["all","backgrounds","fashion","nature","science","education","feelings","health","people","religion","places","animals","industry","computer","food","sports","transportation","travel","buildings","business","music"]},colors:{label:"colors",default:"all",filters:["all","grayscale","red","orange","yellow","green","turquoise","blue","lilac","pink","white","gray","black","brown","transparent"]},orientation:{label:"orientation",default:"all",filters:["all","horizontal","vertical"]}},search:{colors:{label:"colors",default:"all",filters:["all","grayscale","red","orange","yellow","green","turquoise","blue","lilac","pink","white","gray","black","brown","transparent"]},orientation:{label:"orientation",default:"all",filters:["all","horizontal","vertical"]}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r){if(!n)return[];var i=[];switch(e){case"unsplash":i=r?n[t]||[]:n||[];break;default:i=n[t]||[]}return i},t.getResultById=function(e,t,n){if(!n)return[];var r=[];switch(e){case"unsplash":case"pexels":r=n||[];break;case"pixabay":r=n[t]&&n[t][0]?n[t][0]:[]}return r},t.getSearchTotalByProvider=function(e,t){var n="";switch(e){case"pexels":n=t.total_results;break;default:n=t.total}return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.provider,r=e.api_provider.photo_api,i=t.replace("id:",""),a="";switch(n){case"unsplash":a=""+r+i;break;case"pixabay":a=r+"?id="+i;break;case"pexels":a=r.replace("curated","photos")+"/"+i}return 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=c(n(39)),a=c(n(0)),o=c(n(7)),l=c(n(12)),s=c(n(10)),u=c(n(43));function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var 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.lightbox=a.default.createRef(),n.provider=n.props.provider,n.api_key=instant_img_localize[n.provider+"_app_id"],n.inputRef=a.default.createRef(),n.loading=!1,n.state={status:"invalid",response:""},n.afterVerifiedAPICallback=n.props.afterVerifiedAPICallback.bind(n),n.closeAPILightbox=n.props.closeAPILightbox.bind(n),n.escFunction=n.escFunction.bind(n),n}var n,c;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:"handleSubmit",value:(n=regeneratorRuntime.mark((function e(t){var n,r,i,a,c,f,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),n=this,this.setState({status:"loading"}),(r=this.inputRef.current.value)||this.inputRef.current.focus({preventScroll:!0}),instant_img_localize[this.provider+"_app_id"]=r,(i=document.querySelector('input[name="instant_img_settings['+this.provider+'_api]"]'))&&(i.value=r),(0,u.default)(this.provider+"_api",r),a=(0,s.default)(this.provider),e.prev=10,e.next=13,fetch((0,o.default)(n.provider),{headers:a});case 13:c=e.sent,f=c.ok,d=c.status,f?(n.setState({status:"valid",response:instant_img_localize.api_success_msg}),setTimeout((function(){n.afterVerifiedAPICallback(n.provider)}),1500)):(this.setState({status:"invalid"}),(0,l.default)(n.provider,d),400!==d&&401!==d||n.setState({response:instant_img_localize.api_invalid_msg}),429===d&&n.setState({response:instant_img_localize.api_ratelimit_msg})),e.next=24;break;case 19:e.prev=19,e.t0=e.catch(10),this.setState({status:"invalid"}),(0,l.default)(n.provider,500),n.setState({response:instant_img_localize.api_invalid_msg});case 24:case"end":return e.stop()}}),e,this,[[10,19]])})),c=function(){var e=n.apply(this,arguments);return new Promise((function(t,n){return function r(i,a){try{var o=e[i](a),l=o.value}catch(e){return void n(e)}if(!o.done)return Promise.resolve(l).then((function(e){r("next",e)}),(function(e){r("throw",e)}));t(l)}("next")}))},function(e){return c.apply(this,arguments)})},{key:"closeLightbox",value:function(){var e=this;this.lightbox.current.classList.remove("active"),setTimeout((function(){e.closeAPILightbox(this.provider)}),250)}},{key:"bkgClick",value:function(e){e.target===this.lightbox.current&&this.closeLightbox()}},{key:"escFunction",value:function(e){27===e.keyCode&&this.closeLightbox()}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.escFunction,!1),this.lightbox.current.classList.add("active")}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.escFunction,!1)}},{key:"render",value:function(){var e=this,t="invalid"===this.state.status?instant_img_localize.api_key_invalid:"";return a.default.createElement(i.default,null,a.default.createElement("div",{className:"api-lightbox",ref:this.lightbox,onClick:function(t){return e.bkgClick(t)},tabIndex:"-1"},a.default.createElement("div",null,a.default.createElement("div",null,a.default.createElement("button",{className:"api-lightbox--close",onClick:function(){return e.closeLightbox()}},"×",a.default.createElement("span",{className:"offscreen"},instant_img_localize.btnClose)),a.default.createElement("div",{className:"api-lightbox--details"},a.default.createElement("h3",{"data-provider":this.provider},this.provider),a.default.createElement("p",null,instant_img_localize[this.provider+"_api_desc"]),a.default.createElement("p",null,a.default.createElement("a",{href:instant_img_localize[this.provider+"_api_url"],target:"_blank"},instant_img_localize.get_api_key))),a.default.createElement("form",{onSubmit:function(t){return e.handleSubmit(t)}},a.default.createElement("label",{htmlFor:"key",className:"offscreen"},instant_img_localize.enter_api_key),a.default.createElement("div",{className:"api-lightbox--input-wrap"},a.default.createElement("span",{className:this.state.status,title:t&&t},"invalid"===this.state.status&&a.default.createElement("i",{className:"fa fa-exclamation-triangle","aria-hidden":"true"}),"valid"===this.state.status&&a.default.createElement("i",{className:"fa fa-check-circle","aria-hidden":"true"}),"loading"===this.state.status&&a.default.createElement("i",{className:"fa fa-spinner fa-spin","aria-hidden":"true"})),a.default.createElement("input",{type:"text",id:"key",ref:this.inputRef,placeholder:"Enter API Key",defaultValue:this.api_key})),this.state.response&&a.default.createElement("p",{className:"api-lightbox--response "+this.state.status},this.state.response),a.default.createElement("button",{type:"submit"},instant_img_localize.btnVerify))))))}}]),t}(a.default.Component);t.default=f},function(e,t,n){"use strict";function r(e){return(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})(e)}function i(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)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(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 n,r=s(e);if(t){var i=s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){if(t&&("object"===r(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 s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=n(0),c=n(22),f=n(40),d=n(76).createFocusTrap,p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(s,e);var t,n,r,l=o(s);function s(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=l.call(this,e)).tailoredFocusTrapOptions={returnFocusOnDeactivate:!1},t.returnFocusOnDeactivate=!0;var n=e.focusTrapOptions;for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&("returnFocusOnDeactivate"!==r?"onPostDeactivate"!==r?t.tailoredFocusTrapOptions[r]=n[r]:t.onPostDeactivate=n[r]:t.returnFocusOnDeactivate=!!n[r]);return t.focusTrapElements=e.containerElements||[],t.updatePreviousElement(),t}return t=s,(n=[{key:"getDocument",value:function(){return this.props.focusTrapOptions.document||("undefined"!=typeof document?document:void 0)}},{key:"getNodeForOption",value:function(e){var t=this.tailoredFocusTrapOptions[e];if(!t)return null;var n,r=t;if("string"==typeof t&&!(r=null===(n=this.getDocument())||void 0===n?void 0:n.querySelector(t)))throw new Error("`".concat(e,"` refers to no known node"));if("function"==typeof t&&!(r=t()))throw new Error("`".concat(e,"` did not return a node"));return r}},{key:"getReturnFocusNode",value:function(){var e=this.getNodeForOption("setReturnFocus");return e||this.previouslyFocusedElement}},{key:"updatePreviousElement",value:function(){var e=this.getDocument();e&&(this.previouslyFocusedElement=e.activeElement)}},{key:"deactivateTrap",value:function(){var e=this,t=this.tailoredFocusTrapOptions,n=t.checkCanReturnFocus,r=t.preventScroll,i=void 0!==r&&r;this.focusTrap&&this.focusTrap.deactivate({returnFocus:!1});var a=function(){var t=e.getReturnFocusNode();(null==t?void 0:t.focus)&&e.returnFocusOnDeactivate&&t.focus({preventScroll:i}),e.onPostDeactivate&&e.onPostDeactivate.call(null)};n?n(this.getReturnFocusNode()).then(a,a):a()}},{key:"setupFocusTrap",value:function(){if(!this.focusTrap){var e=this.focusTrapElements.map(c.findDOMNode);e.some(Boolean)&&(this.focusTrap=this.props._createFocusTrap(e,this.tailoredFocusTrapOptions),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause())}}},{key:"componentDidMount",value:function(){this.props.active&&this.setupFocusTrap()}},{key:"componentDidUpdate",value:function(e){if(this.focusTrap){e.containerElements!==this.props.containerElements&&this.focusTrap.updateContainerElements(this.props.containerElements);var t=!e.active&&this.props.active,n=e.active&&!this.props.active,r=!e.paused&&this.props.paused,i=e.paused&&!this.props.paused;if(t&&(this.updatePreviousElement(),this.focusTrap.activate()),n)return void this.deactivateTrap();r&&this.focusTrap.pause(),i&&this.focusTrap.unpause()}else e.containerElements!==this.props.containerElements&&(this.focusTrapElements=this.props.containerElements),this.props.active&&(this.updatePreviousElement(),this.setupFocusTrap())}},{key:"componentWillUnmount",value:function(){this.deactivateTrap()}},{key:"render",value:function(){var e=this,t=this.props.children?u.Children.only(this.props.children):void 0;if(t){if(t.type&&t.type===u.Fragment)throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");return u.cloneElement(t,{ref:function(n){var r=e.props.containerElements;t&&("function"==typeof t.ref?t.ref(n):t.ref&&(t.ref.current=n)),e.focusTrapElements=r||[n]}})}return null}}])&&i(t.prototype,n),r&&i(t,r),s}(u.Component),h="undefined"==typeof Element?Function:Element;p.propTypes={active:f.bool,paused:f.bool,focusTrapOptions:f.shape({document:f.object,onActivate:f.func,onPostActivate:f.func,checkCanFocusTrap:f.func,onDeactivate:f.func,onPostDeactivate:f.func,checkCanReturnFocus:f.func,initialFocus:f.oneOfType([f.instanceOf(h),f.string,f.func,f.bool]),fallbackFocus:f.oneOfType([f.instanceOf(h),f.string,f.func]),escapeDeactivates:f.oneOfType([f.bool,f.func]),clickOutsideDeactivates:f.oneOfType([f.bool,f.func]),returnFocusOnDeactivate:f.bool,setReturnFocus:f.oneOfType([f.instanceOf(h),f.string,f.func]),allowOutsideClick:f.oneOfType([f.bool,f.func]),preventScroll:f.bool}),containerElements:f.arrayOf(f.instanceOf(h)),children:f.oneOfType([f.element,f.instanceOf(h)])},p.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:d},e.exports=p},function(e,t,n){e.exports=n(41)()},function(e,t,n){"use strict";var r=n(42);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var l=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 l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=instant_img_localize.root+"instant-images/settings/",r={setting:e,value:t},i={headers:{"X-WP-Nonce":instant_img_localize.nonce,"Content-Type":"application/json"}};a.default.post(n,JSON.stringify(r),i).then((function(e){e.data})).catch((function(e){console.log(e)}))};var r,i=n(13),a=(r=i)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";var r=n(1),i=n(14),a=n(45),o=n(20);function l(e){var t=new a(e),n=i(a.prototype.request,t);return r.extend(n,a.prototype,t),r.extend(n,t),n}var s=l(n(9));s.Axios=a,s.create=function(e){return l(o(s.defaults,e))},s.Cancel=n(21),s.CancelToken=n(59),s.isCancel=n(19),s.all=function(e){return Promise.all(e)},s.spread=n(60),s.isAxiosError=n(61),e.exports=s,e.exports.default=s},function(e,t,n){"use strict";var r=n(1),i=n(15),a=n(46),o=n(47),l=n(20),s=n(57),u=s.validators;function c(e){this.defaults=e,this.interceptors={request:new a,response:new a}}c.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=l(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&s.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var i,a=[];if(this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected)})),!r){var c=[o,void 0];for(Array.prototype.unshift.apply(c,n),c=c.concat(a),i=Promise.resolve(e);c.length;)i=i.then(c.shift(),c.shift());return i}for(var f=e;n.length;){var d=n.shift(),p=n.shift();try{f=d(f)}catch(e){p(e);break}}try{i=o(f)}catch(e){return Promise.reject(e)}for(;a.length;)i=i.then(a.shift(),a.shift());return i},c.prototype.getUri=function(e){return e=l(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,n){return this.request(l(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,r){return this.request(l(r||{},{method:e,url:t,data:n}))}})),e.exports=c},function(e,t,n){"use strict";var r=n(1);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},function(e,t,n){"use strict";var r=n(1),i=n(48),a=n(19),o=n(9);function l(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||o.adapter)(e).then((function(t){return l(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return a(t)||(l(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(1),i=n(9);e.exports=function(e,t,n){var a=this||i;return r.forEach(n,(function(n){e=n.call(a,e,t)})),e}},function(e,t,n){"use strict";var r=n(1);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(18);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";var r=n(1);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,a,o){var l=[];l.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),r.isString(i)&&l.push("path="+i),r.isString(a)&&l.push("domain="+a),!0===o&&l.push("secure"),document.cookie=l.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(53),i=n(54);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(1),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,a,o={};return e?(r.forEach(e.split("\n"),(function(e){if(a=e.indexOf(":"),t=r.trim(e.substr(0,a)).toLowerCase(),n=r.trim(e.substr(a+1)),t){if(o[t]&&i.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},function(e,t,n){"use strict";var r=n(1);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(58),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={},o=r.version.split(".");function l(e,t){for(var n=t?t.split("."):o,r=e.split("."),i=0;i<3;i++){if(n[i]>r[i])return!0;if(n[i]<r[i])return!1}return!1}i.transitional=function(e,t,n){var i=t&&l(t);function o(e,t){return"[Axios v"+r.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,l){if(!1===e)throw new Error(o(r," has been removed in "+t));return i&&!a[r]&&(a[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,l)}},e.exports={isOlderVersion:l,assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),i=r.length;i-- >0;){var a=r[i],o=t[a];if(o){var l=e[a],s=void 0===l||o(l,a,e);if(!0!==s)throw new TypeError("option "+a+" must be "+s)}else if(!0!==n)throw Error("Unknown option "+a)}},validators:i}},function(e){e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')},function(e,t,n){"use strict";var r=n(21);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},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}}(),a=n(0),o=(r=a)&&r.__esModule?r:{default:r};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return l(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),i(t,[{key:"render",value:function(){return o.default.createElement("div",{className:"error-messaging"},o.default.createElement("span",{dangerouslySetInnerHTML:{__html:""+instant_img_localize.error_restapi+instant_img_localize.error_restapi_desc}}))}}]),t}(o.default.Component);t.default=u},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){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(64)),a=l(n(24)),o=l(n(0));function l(e){return e&&e.__esModule?e:{default:e}}var s=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.data=n.props.data,n.default=n.data.default,n.filterKey=n.props.filterKey,n.provider=n.props.provider,n.id=n.provider+"-"+n.filterKey,n.clickHandler=n.props.function.bind(n),n.toggleMenu=n.toggleMenu.bind(n),n.closeMenuOutside=n.closeMenuOutside.bind(n),n.focusOutside=n.focusOutside.bind(n),n.escClick=n.escClick.bind(n),n.isColor="colors"===n.filterKey||"color"===n.filterKey,n.state={expanded:!1,selected:n.data.default},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:"toggleMenu",value:function(e){var t=this;if(e.preventDefault(),e.currentTarget.disabled)return!1;this.state.expanded?this.setState({expanded:!1},(function(){document.removeEventListener("click",t.closeMenuOutside)})):this.setState({expanded:!0},(function(){document.addEventListener("click",t.closeMenuOutside)}))}},{key:"closeMenuOutside",value:function(e){var t=this;this.menu.contains(e.target)||this.trigger.contains(e.target)||this.setState({expanded:!1},(function(){document.removeEventListener("click",t.closeMenuOutside)}))}},{key:"focusOutside",value:function(e){this.dropdown.contains(e.target)||this.closeMenuOutside(e)}},{key:"escClick",value:function(e){"Escape"===e.key&&this.setState({expanded:!1})}},{key:"click",value:function(e,t){var n=this,r=this.state.selected!==t?t:this.default;this.setState({selected:r}),this.clickHandler(e,r),setTimeout((function(){n.trigger.click()}),100)}},{key:"convertColor",value:function(e){return"lilac"===e&&(e="DarkViolet"),"grayscale"!==e&&"black_and_white"!==e||(e="LightGray"),e}},{key:"componentDidMount",value:function(){i.init(this.dropdown,{selector:"button"}),document.addEventListener("keyup",this.focusOutside),document.addEventListener("keydown",this.escClick)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keyup",this.focusOutside),document.removeEventListener("keydown",this.escClick)}},{key:"render",value:function(){var e=this;return o.default.createElement("div",{className:"filter-dropdown",id:this.id,ref:function(t){e.dropdown=t}},o.default.createElement("button",{onClick:this.toggleMenu,className:"filter-dropdown--button","aria-expanded":this.state.expanded?"true":"false",ref:function(t){e.trigger=t}},o.default.createElement("span",{className:"filter-dropdown--button-label"},instant_img_localize.filters[this.data.label]),o.default.createElement("span",{className:"filter-dropdown--button-selected"},this.state.selected,o.default.createElement("i",{className:"fa fa-caret-down","aria-hidden":"true"}))),o.default.createElement("div",{className:(0,a.default)("filter-dropdown--menu",this.state.expanded?"expanded":null),"data-key":this.filterKey,"aria-hidden":this.state.expanded?"false":"true",ref:function(t){e.menu=t}},this.data.filters&&this.data.filters.map((function(t,n){return o.default.createElement("button",{key:n,className:(0,a.default)("filter-dropdown--item",e.state.selected===t?"selected":null),onClick:function(){return e.click(e.filterKey,t)}},t.replace(/_/g," "),"all"!==t&&"transparent"!==t&&e.isColor?o.default.createElement("span",{className:"_color",style:{color:e.convertColor(t)}}):null)}))))}}]),t}(o.default.Component);t.default=s},function(e,t,n){window,e.exports=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,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return 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=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.init=function(e,t){(t=Object.assign({},r,t)).target=e,t.next=t.next?t.next:"down",t.prev=t.prev?t.prev:"up",t.target&&t.selector&&(a(t),window.addEventListener(t.event,(function(e){i(e,t)})))};var r=n(1),i=n(2),a=n(7);n(8)},function(e,t,n){"use strict";e.exports={selector:"a",loop:!0,event:"keydown",next:"down right",prev:"up left"}},function(e,t,n){"use strict";var r=n(3),i=n(4),a=n(5),o=n(6);e.exports=function(e,t){var n=e.target,l=e.which||e.keycode,s=t.target.querySelectorAll(t.selector);s=s?Array.prototype.slice.call(s):s;var u=a(n,s);if(!s||!u)return!1;if(-1!==o(t.next,r).indexOf(l)){var c=i(n,s,"next");if(c<s.length)return s[c].focus(),e.preventDefault(),e.stopPropagation(),!1;if(t.loop)return s[0].focus(),e.preventDefault(),e.stopPropagation(),!1}if(-1!==o(t.prev,r).indexOf(l)){var f=i(n,s,"previous");if(f<s.length&&-1!==f)return s[f].focus(),e.preventDefault(),e.stopPropagation(),!1;if(t.loop)return s[s.length-1].focus(),e.preventDefault(),e.stopPropagation(),!1}return!0}},function(e,t,n){"use strict";e.exports={up:38,right:39,down:40,left:37,escape:27,enter:13,spacebar:32,tab:9}},function(e,t,n){"use strict";e.exports=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"next",r=Array.prototype.slice.call(t).indexOf(e);if(-1!==r)return"previous"===n?r-1:r+1}},function(e,t,n){"use strict";e.exports=function(e,t){return-1!==Array.prototype.slice.call(t).indexOf(e)}},function(e,t,n){"use strict";e.exports=function(e,t){for(var n=e.split(" "),r=[],i=0;i<n.length;i++)r.push(t[n[i]]);return r}},function(e,t,n){"use strict";e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!e.target||!e.selector)return!1;var t=e.target.querySelectorAll(e.selector);(t=t?Array.prototype.slice.call(t):t).forEach((function(e){e.tabIndex=0}))}},function(e,t,n){"use strict";"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i)for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])}return n},writable:!0,configurable:!0}),Array.prototype.forEach||(Array.prototype.forEach=function(e){var t,n;if(null==this)throw new TypeError("this is null or not defined");var r=Object(this),i=r.length>>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(arguments.length>1&&(t=arguments[1]),n=0;n<i;){var a;n in r&&(a=r[n],e.call(t,a,n,r)),n++}})}])},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}}(),a=n(0),o=(r=a)&&r.__esModule?r:{default:r};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return l(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),i(t,[{key:"render",value:function(){return o.default.createElement("div",{className:"loading-block"})}}]),t}(o.default.Component);t.default=u},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}}(),a=n(0),o=(r=a)&&r.__esModule?r:{default:r};var l=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.loadMorePhotos=n.props.loadMorePhotos.bind(n),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),i(t,[{key:"render",value:function(){var e=this;return o.default.createElement("div",{className:"load-more-wrap"},o.default.createElement("button",{type:"button",className:"button",onClick:function(){return e.loadMorePhotos()}},instant_img_localize.load_more))}}]),t}(o.default.Component);t.default=l},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}}(),a=n(0),o=(r=a)&&r.__esModule?r:{default:r};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return l(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),i(t,[{key:"render",value:function(){return o.default.createElement("div",{className:"no-results"},o.default.createElement("div",null,o.default.createElement("h3",null,instant_img_localize.no_results," "),o.default.createElement("p",null,instant_img_localize.no_results_desc," ")))}}]),t}(o.default.Component);t.default=u},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=f(n(13)),a=f(n(0)),o=f(n(2)),l=f(n(8)),s=f(n(69)),u=f(n(70)),c=f(n(71));function f(e){return e&&e.__esModule?e:{default:e}}var d=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));n.provider=n.props.provider,n.api_provider=o.default[n.provider],n.api_key=instant_img_localize[n.provider+"_app_id"];var r=n.props.result;return n.id=r.id,n.thumb=(0,u.default)(n.provider,r,"thumb"),n.img=(0,u.default)(n.provider,r,"img"),n.full_size=(0,u.default)(n.provider,r,"full_size"),n.author=(0,u.default)(n.provider,r,"author"),n.img_title=instant_img_localize.photo_by+" "+n.author,n.filename=r.id,n.title=n.img_title,n.alt=(0,u.default)(n.provider,r,"alt"),n.alt=null===n.alt?"":n.alt,n.caption="",n.user=(0,u.default)(n.provider,r,"user"),n.name=(0,u.default)(n.provider,r,"name"),n.user_photo=(0,u.default)(n.provider,r,"user_photo"),n.user_url=(0,u.default)(n.provider,r,"user_url"),n.link=(0,u.default)(n.provider,r,"link"),n.likes=(0,u.default)(n.provider,r,"likes"),n.attribution=(0,s.default)(n.provider,n.user_url,n.name),n.view_all=instant_img_localize.view_all,n.inProgress=!1,n.container=document.querySelector(".instant-img-container"),n.showTooltip=n.props.showTooltip.bind(n),n.hideTooltip=n.props.hideTooltip.bind(n),n.setAsFeaturedImage=!1,n.insertIntoPost=!1,n.is_media_router=n.props.mediaRouter,n.is_block_editor=n.props.blockEditor,n.SetFeaturedImage=n.props.SetFeaturedImage,n.InsertImage=n.props.InsertImage,n.displayGutenbergControl=!!n.is_block_editor,n.state={filename:n.filename,title:n.title,alt:n.alt,caption:n.caption},n.photo=a.default.createRef(),n.photoUpload=a.default.createRef(),n.editScreen=a.default.createRef(),n.captionRef=a.default.createRef(),n.noticeMsg=a.default.createRef(),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:"download",value:function(e){e.preventDefault();var t=this,n=e.currentTarget,r=t.photo.current,a=t.noticeMsg.current;if(n.classList.contains("upload")||(n=t.photoUpload.current),n.classList.contains("success")||this.inProgress)return!1;this.inProgress=!0,n.classList.add("uploading"),r.classList.add("in-progress"),a.innerHTML=instant_img_localize.saving,setTimeout((function(){a.innerHTML=instant_img_localize.resizing,setTimeout((function(){a.innerHTML=instant_img_localize.resizing_still}),5e3)}),3e3);var o=instant_img_localize.root+"instant-images/download/",l={provider:this.provider,id:n.getAttribute("data-id"),image_url:n.getAttribute("data-url"),filename:n.getAttribute("data-id")+".jpg",custom_filename:n.getAttribute("data-filename"),title:n.getAttribute("data-title"),alt:n.getAttribute("data-alt"),caption:n.getAttribute("data-caption"),parent_id:instant_img_localize.parent_id},s={headers:{"X-WP-Nonce":instant_img_localize.nonce,"Content-Type":"application/json"}};i.default.post(o,JSON.stringify(l),s).then((function(e){var i=e.data;if(i){var o=i.success,l=i.id,s=i.attachment,u=i.admin_url,f=i.msg;if(o){var d=u+"post.php?post="+s.id+"&action=edit";t.uploadComplete(n,r,f,d,s.id),"unsplash"===t.provider&&(0,c.default)(t,l),t.displayGutenbergControl&&t.setAsFeaturedImage&&(t.SetFeaturedImage(s.id),t.setAsFeaturedImage=!1,t.closeMediaModal()),t.displayGutenbergControl&&t.insertIntoPost&&(s.url&&(t.InsertImage(s.url,s.caption,s.alt),t.closeMediaModal()),t.insertIntoPost=!1),"true"!==t.container.dataset.mediaPopup||t.is_block_editor||(window.location="media-upload.php?type=image&tab=library&attachment_id="+s.id)}else t.uploadError(n,r,a,f)}else t.uploadError(n,r,a,instant_img_localize.error_upload)})).catch((function(e){console.log(e)}))}},{key:"setFeaturedImageClick",value:function(e){this.hideTooltip(e);var t=this.photoUpload.current;t&&(this.setAsFeaturedImage=!0,t.click())}},{key:"insertImageIntoPost",value:function(e){this.hideTooltip(e);var t=this.photoUpload.current;t&&(this.insertIntoPost=!0,t.click())}},{key:"uploadComplete",value:function(e,t,n,r,i){this.setImageTitle(e,n),t.classList.remove("in-progress"),t.classList.add("uploaded"),t.querySelector(".edit-photo").style.display="none",t.querySelector(".edit-photo-admin").style.display="inline-block",t.querySelector(".edit-photo-admin").href=r,t.querySelector(".edit-photo-admin").target="_balnk",e.classList.remove("uploading"),e.classList.remove("resizing"),e.classList.add("success"),this.inProgress=!1,setTimeout((function(){t.classList.remove("uploaded"),e.classList.remove("success")}),5e3),this.is_block_editor&&(t.querySelector(".insert").style.display="none",t.querySelector(".set-featured").style.display="none"),this.mediaRouter(i),this.container.classList.contains("editor")&&void 0!==wp.media&&(null!==wp.media.frame.content.get()?(wp.media.frame.content.get().collection.props.set({ignore:+new Date}),wp.media.frame.content.get().options.selection.reset()):wp.media.frame.library.props.set({ignore:+new Date}))}},{key:"mediaRouter",value:function(e){if(this.is_media_router&&wp.media&&wp.media.frame&&wp.media.frame.el){var t=wp.media.frame.el.querySelector("#menu-item-browse");t&&t.click(),setTimeout((function(){null!==wp.media.frame.content.get()&&wp.media.frame.content.get().collection._requery(!0);var t=wp.media.frame.state().get("selection"),n=parseInt(e);t.reset(n?[wp.media.attachment(n)]:[])}),150)}}},{key:"uploadError",value:function(e,t,n){e.classList.remove("uploading"),e.classList.remove("resizing"),e.classList.add("errors"),this.setImageTitle(e,n),this.inProgress=!1,t.classList.add("has-error"),console.warn(n)}},{key:"setImageTitle",value:function(e,t){e.setAttribute("title",t)}},{key:"showEditScreen",value:function(e){e.preventDefault();var t=this;this.hideTooltip(e),t.editScreen.current.classList.add("editing"),setTimeout((function(){t.editScreen.current.focus({preventScroll:!0})}),150)}},{key:"handleEditChange",value:function(e){var t=e.target.name;"filename"===t&&this.setState({filename:e.target.value}),"title"===t&&this.setState({title:e.target.value}),"alt"===t&&this.setState({alt:e.target.value}),"caption"===t&&this.setState({caption:e.target.value})}},{key:"saveEditChange",value:function(){var e=this.photo.current.querySelector('input[name="filename"]');this.filename=e.value;var t=this.photo.current.querySelector('input[name="title"]');this.title=t.value;var n=this.photo.current.querySelector('input[name="alt"]');this.alt=n.value;var r=this.photo.current.querySelector('textarea[name="caption"]');this.caption=r.value,this.editScreen.current.classList.remove("editing"),this.photoUpload.current.click()}},{key:"cancelEditChange",value:function(e){var t=this.photo.current.querySelector('input[name="filename"]');t.value=t.dataset.original,this.setState({filename:t.value});var n=this.photo.current.querySelector('input[name="title"]');n.value=n.dataset.original,this.setState({title:n.value});var r=this.photo.current.querySelector('input[name="alt"]');r.value=r.dataset.original,this.setState({alt:r.value});var i=this.photo.current.querySelector('textarea[name="caption"]');i.value=i.dataset.original,this.setState({caption:i.value}),this.editScreen.current.classList.remove("editing"),this.photoUpload.current.focus({preventScrol:!0})}},{key:"closeMediaModal",value:function(){var e=document.querySelector(".media-modal");if(e){var t=e.querySelector("button.media-modal-close");if(!t)return!1;t.click()}}},{key:"addAttribution",value:function(e){e.preventDefault();this.captionRef.current.value=this.attribution,this.setState({caption:this.attribution})}},{key:"render",value:function(){var e=this,t=1===parseInt(this.likes)?instant_img_localize.likes:instant_img_localize.likes_plural;return a.default.createElement("article",{className:"photo",ref:this.photo},a.default.createElement("div",{className:"photo--wrap"},a.default.createElement("div",{className:"img-wrap"},a.default.createElement("a",{className:"upload loaded",href:this.full_size,ref:this.photoUpload,"data-id":this.id,"data-url":this.full_size,"data-filename":this.state.filename,"data-title":this.state.title,"data-alt":this.state.alt,"data-caption":this.state.caption,title:instant_img_localize.upload,onClick:function(t){return e.download(t)}},a.default.createElement("img",{src:this.img,alt:""}),a.default.createElement("div",{className:"status"})),a.default.createElement("div",{className:"notice-msg",ref:this.noticeMsg}),a.default.createElement("div",{className:"user-controls"},a.default.createElement("a",{className:"user fade",href:this.user_url,target:"_blank",title:"unsplash"===this.provider?this.view_all+" @ "+this.user:this.view_all+" "+this.name},a.default.createElement("div",{className:"user-wrap"},this.user_photo&&this.user_photo.length>0&&a.default.createElement("img",{className:"user-wrap--photo",src:this.user_photo}),"unsplash"===this.provider?this.user:this.name)),a.default.createElement("div",{className:"photo-options"},this.displayGutenbergControl&&a.default.createElement("button",{type:"button",className:"set-featured fade","data-title":instant_img_localize.set_as_featured,onMouseEnter:function(t){return e.showTooltip(t)},onMouseLeave:function(t){return e.hideTooltip(t)},onClick:function(t){return e.setFeaturedImageClick(t)}},a.default.createElement("i",{className:"fa fa-picture-o","aria-hidden":"true"}),a.default.createElement("span",{className:"offscreen"},instant_img_localize.set_as_featured)),this.displayGutenbergControl&&a.default.createElement("button",{type:"button",className:"insert fade","data-title":instant_img_localize.insert_into_post,onMouseEnter:function(t){return e.showTooltip(t)},onMouseLeave:function(t){return e.hideTooltip(t)},onClick:function(t){return e.insertImageIntoPost(t)}},a.default.createElement("i",{className:"fa fa-plus","aria-hidden":"true"}),a.default.createElement("span",{className:"offscreen"},instant_img_localize.insert_into_post)),a.default.createElement("a",{href:"#",className:"edit-photo-admin fade","data-title":instant_img_localize.edit_upload,onMouseEnter:function(t){return e.showTooltip(t)},onMouseLeave:function(t){return e.hideTooltip(t)}},a.default.createElement("i",{className:"fa fa-pencil","aria-hidden":"true"}),a.default.createElement("span",{className:"offscreen"},instant_img_localize.edit_upload)),a.default.createElement("button",{type:"button",className:"edit-photo fade","data-title":instant_img_localize.edit_details,onMouseEnter:function(t){return e.showTooltip(t)},onMouseLeave:function(t){return e.hideTooltip(t)},onClick:function(t){return e.showEditScreen(t)}},a.default.createElement("i",{className:"fa fa-cog","aria-hidden":"true"}),a.default.createElement("span",{className:"offscreen"},instant_img_localize.edit_details)))),a.default.createElement("div",{className:"options"},this.likes?a.default.createElement("span",{className:"likes tooltip--above","data-title":this.likes+" "+t,onMouseEnter:function(t){return e.showTooltip(t)},onMouseLeave:function(t){return e.hideTooltip(t)}},a.default.createElement("i",{className:"fa fa-heart heart-like","aria-hidden":"true"})," ",this.likes):null,a.default.createElement("a",{className:"tooltip--above",href:this.link,"data-title":instant_img_localize.open_external+" "+(0,l.default)(this.provider),onMouseEnter:function(t){return e.showTooltip(t)},onMouseLeave:function(t){return e.hideTooltip(t)},target:"_blank"},a.default.createElement("i",{className:"fa fa-external-link","aria-hidden":"true"}),a.default.createElement("span",{className:"offscreen"},instant_img_localize.open_external+" "+(0,l.default)(this.provider))))),a.default.createElement("div",{className:"edit-screen",tabIndex:"0",ref:this.editScreen},a.default.createElement("div",{className:"edit-screen--title"},a.default.createElement("div",null,a.default.createElement("p",{className:"heading"},instant_img_localize.edit_details),a.default.createElement("p",null,instant_img_localize.edit_details_intro)),a.default.createElement("div",{className:"preview",style:{backgroundImage:"url("+this.thumb+")"}})),a.default.createElement("label",null,a.default.createElement("span",null,instant_img_localize.edit_filename,":"),a.default.createElement("input",{type:"text",name:"filename","data-original":this.filename,placeholder:this.filename,value:this.state.filename,onChange:function(t){return e.handleEditChange(t)}}),a.default.createElement("em",null,".jpg")),a.default.createElement("label",null,a.default.createElement("span",null,instant_img_localize.edit_title,":"),a.default.createElement("input",{type:"text",name:"title","data-original":this.title,placeholder:this.title,value:this.state.title||"",onChange:function(t){return e.handleEditChange(t)}})),a.default.createElement("label",null,a.default.createElement("span",null,instant_img_localize.edit_alt,":"),a.default.createElement("input",{type:"text",name:"alt","data-original":this.alt,value:this.state.alt||"",onChange:function(t){return e.handleEditChange(t)}})),a.default.createElement("label",null,a.default.createElement("span",null,instant_img_localize.edit_caption,":"),a.default.createElement("textarea",{rows:"4",name:"caption","data-original":"",onChange:function(t){return e.handleEditChange(t)},value:this.state.caption||"",ref:this.captionRef})),a.default.createElement("div",{className:"add-attribution-row"},a.default.createElement("button",{onClick:function(t){return e.addAttribution(t)},type:"button"},instant_img_localize.attribution)),a.default.createElement("div",{className:"edit-screen--controls"},a.default.createElement("button",{type:"button",className:"button",onClick:function(t){return e.cancelEditChange(t)}},instant_img_localize.cancel)," "," ",a.default.createElement("button",{type:"button",className:"button button-primary",onClick:function(){return e.saveEditChange()}},instant_img_localize.upload_now)))))}}]),t}(a.default.Component);t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=e+"_url";return instant_img_localize.photo_by+'<a href="'+t+'">'+n+'</a> on <a href="'+instant_img_localize[r]+'/??utm_source=wordpress-instant-images&utm_medium=referral">'+(0,a.default)(e)+"</a>"};var r,i=n(8),a=(r=i)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r="",i="?utm_source=wordpress-instant-images&utm_medium=referral";switch(n){case"thumb":"pixabay"===e&&(r=t.previewURL),"unsplash"===e&&(r=t.urls.thumb),"pexels"===e&&(r=t.src.tiny);break;case"img":"pixabay"===e&&(r=t.webformatURL),"unsplash"===e&&(r=t.urls.small),"pexels"===e&&(r=t.src.large);break;case"full_size":"pixabay"===e&&(r=t.largeImageURL),"unsplash"===e&&(r=t.urls.full),"pexels"===e&&(r=t.src.original);break;case"author":"pixabay"===e&&(r=t.user),"unsplash"===e&&(r=t.user.name),"pexels"===e&&(r=t.photographer);break;case"user":"pixabay"===e&&(r=t.user_id),"unsplash"===e&&(r=t.user.username),"pexels"===e&&(r=t.photographer_id);break;case"name":"pixabay"===e&&(r=t.user),"unsplash"===e&&(r=t.user.name),"pexels"===e&&(r=t.photographer);break;case"user_photo":"pixabay"===e&&(r=t.userImageURL),"unsplash"===e&&(r=t.user.profile_image.small),"pexels"===e&&(r=!1);break;case"user_url":"pixabay"===e&&(r=instant_img_localize.pixabay_url+"/users/"+t.user+"-"+t.user_id+"/?"+i),"unsplash"===e&&(r=instant_img_localize.unsplash_url+"/@"+t.user.username+"?"+i),"pexels"===e&&(r=t.photographer_url+"?"+i);break;case"link":"pixabay"===e&&(r=t.pageURL),"unsplash"===e&&(r=t.links.html),"pexels"===e&&(r=t.url);break;case"likes":"pixabay"===e&&(r=t.likes),"unsplash"===e&&(r=t.likes),"pexels"===e&&(r=!1);break;case"alt":"pixabay"===e&&(r=t.alt_description),"unsplash"===e&&(r=t.alt_description),"pexels"===e&&(r=t.alt)}return r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=""+e.api_provider.photo_api+t+"/download",a=(0,i.default)("unsplash"),o=(0,r.default)(n,a);fetch(o).then((function(e){return e.json()})).then((function(e){console.log("Image download successsfully triggered at Unsplash.")})).catch((function(e){console.log(e)}))};var r=a(n(3)),i=a(n(4));function a(e){return e&&e.__esModule?e:{default:e}}},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}}(),a=n(0),o=(r=a)&&r.__esModule?r:{default:r};var l=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.getPhotos=n.props.getPhotos.bind(n),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),i(t,[{key:"render",value:function(){var e=this;return o.default.createElement("div",{className:this.props.isSearch?"searchResults":"searchResults hide"},o.default.createElement("span",{title:this.props.title},this.props.total),o.default.createElement("button",{type:"button",title:instant_img_localize.clear_search,onClick:function(){return e.getPhotos("latest")}},"x",o.default.createElement("span",{className:"offscreen"},instant_img_localize.clear_search)))}}]),t}(o.default.Component);t.default=l},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}}(),a=n(0),o=(r=a)&&r.__esModule?r:{default:r};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return l(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),i(t,[{key:"render",value:function(){return o.default.createElement("div",{id:"tooltip"})}}]),t}(o.default.Component);t.default=u},function(e,t,n){var r,i;
53
  /*!
54
  * imagesLoaded v4.1.4
55
  * JavaScript is all like "You images are done yet or what?"
56
  * MIT License
57
+ */!function(a,o){"use strict";r=[n(5)],void 0===(i=function(e){return function(e,t){var n=e.jQuery,r=e.console;function i(e,t){for(var n in t)e[n]=t[n];return e}var a=Array.prototype.slice;function o(e,t,l){if(!(this instanceof o))return new o(e,t,l);var s,u=e;("string"==typeof e&&(u=document.querySelectorAll(e)),u)?(this.elements=(s=u,Array.isArray(s)?s:"object"==typeof s&&"number"==typeof s.length?a.call(s):[s]),this.options=i({},this.options),"function"==typeof t?l=t:i(this.options,t),l&&this.on("always",l),this.getImages(),n&&(this.jqDeferred=new n.Deferred),setTimeout(this.check.bind(this))):r.error("Bad element for imagesLoaded "+(u||e))}o.prototype=Object.create(t.prototype),o.prototype.options={},o.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},o.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),!0===this.options.background&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&l[t]){for(var n=e.querySelectorAll("img"),r=0;r<n.length;r++){var i=n[r];this.addImage(i)}if("string"==typeof this.options.background){var a=e.querySelectorAll(this.options.background);for(r=0;r<a.length;r++){var o=a[r];this.addElementBackgroundImages(o)}}}};var l={1:!0,9:!0,11:!0};function s(e){this.img=e}function u(e,t){this.url=e,this.element=t,this.img=new Image}return o.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var n=/url\((['"])?(.*?)\1\)/gi,r=n.exec(t.backgroundImage);null!==r;){var i=r&&r[2];i&&this.addBackground(i,e),r=n.exec(t.backgroundImage)}},o.prototype.addImage=function(e){var t=new s(e);this.images.push(t)},o.prototype.addBackground=function(e,t){var n=new u(e,t);this.images.push(n)},o.prototype.check=function(){var e=this;function t(t,n,r){setTimeout((function(){e.progress(t,n,r)}))}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach((function(e){e.once("progress",t),e.check()})):this.complete()},o.prototype.progress=function(e,t,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&r&&r.log("progress: "+n,e,t)},o.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},s.prototype=Object.create(t.prototype),s.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},s.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},s.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},s.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},s.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},s.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},s.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},u.prototype=Object.create(s.prototype),u.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},u.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},u.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},o.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&((n=t).fn.imagesLoaded=function(e,t){return new o(this,e,t).jqDeferred.promise(n(this))})},o.makeJQueryPlugin(),o}(a,e)}.apply(t,r))||(e.exports=i)}("undefined"!=typeof window?window:this)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return instant_img_localize&&instant_img_localize.default_provider?instant_img_localize.default_provider:a.default.defaults.provider};var r,i=n(2),a=(r=i)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";n.r(t),n.d(t,"createFocusTrap",(function(){return E}));
58
  /*!
59
  * tabbable 5.2.1
60
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
64
  * focus-trap 6.7.1
65
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
66
  */
67
+ function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}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 g,y=(g=[],{activateTrap:function(e){if(g.length>0){var t=g[g.length-1];t!==e&&t.pause()}var n=g.indexOf(e);-1===n||g.splice(n,1),g.push(e)},deactivateTrap:function(e){var t=g.indexOf(e);-1!==t&&g.splice(t,1),g.length>0&&g[g.length-1].unpause()}}),b=function(e){return setTimeout(e,0)},_=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},w=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e.apply(void 0,n):e},k=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},E=function(e,t){var n,r=(null==t?void 0:t.document)||document,i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),a={containers:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},u=function(e,t,n){return e&&void 0!==e[t]?e[t]:i[n||t]},c=function(e){return!(!e||!a.containers.some((function(t){return t.contains(e)})))},f=function(e){var t=i[e];if("function"==typeof t){for(var n=arguments.length,a=new Array(n>1?n-1:0),o=1;o<n;o++)a[o-1]=arguments[o];t=t.apply(void 0,a)}if(!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var l=t;if("string"==typeof t&&!(l=r.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return l},p=function(){var e=f("initialFocus");if(!1===e)return!1;if(void 0===e)if(c(r.activeElement))e=r.activeElement;else{var t=a.tabbableGroups[0];e=t&&t.firstTabbableNode||f("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},g=function(){if(a.tabbableGroups=a.containers.map((function(e){var t,n,r,i=(n=[],r=[],o(e,(t=t||{}).includeContainer,d.bind(null,t)).forEach((function(e,t){var i=l(e);0===i?n.push(e):r.push({documentOrder:t,tabIndex:i,node:e})})),r.sort(s).map((function(e){return e.node})).concat(n));if(i.length>0)return{container:e,firstTabbableNode:i[0],lastTabbableNode:i[i.length-1]}})).filter((function(e){return!!e})),a.tabbableGroups.length<=0&&!f("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},E=function e(t){!1!==t&&t!==r.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!i.preventScroll}),a.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(p()))},x=function(e){var t=f("setReturnFocus",e);return t||!1!==t&&e},S=function(e){var t=k(e);c(t)||(w(i.clickOutsideDeactivates,e)?n.deactivate({returnFocus:i.returnFocusOnDeactivate&&!h(t)}):w(i.allowOutsideClick,e)||e.preventDefault())},O=function(e){var t=k(e),n=c(t);n||t instanceof Document?n&&(a.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),E(a.mostRecentlyFocusedNode||p()))},C=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==w(i.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=k(e);g();var n=null;if(a.tabbableGroups.length>0){var r=_(a.tabbableGroups,(function(e){return e.container.contains(t)}));if(r<0)n=e.shiftKey?a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:a.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var i=_(a.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(i<0&&a.tabbableGroups[r].container===t&&(i=r),i>=0){var o=0===i?a.tabbableGroups.length-1:i-1;n=a.tabbableGroups[o].lastTabbableNode}}else{var l=_(a.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(l<0&&a.tabbableGroups[r].container===t&&(l=r),l>=0){var s=l===a.tabbableGroups.length-1?0:l+1;n=a.tabbableGroups[s].firstTabbableNode}}}else n=f("fallbackFocus");n&&(e.preventDefault(),E(n))}(e)},T=function(e){if(!w(i.clickOutsideDeactivates,e)){var t=k(e);c(t)||w(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())}},P=function(){if(a.active)return y.activateTrap(n),a.delayInitialFocusTimer=i.delayInitialFocus?b((function(){E(p())})):E(p()),r.addEventListener("focusin",O,!0),r.addEventListener("mousedown",S,{capture:!0,passive:!1}),r.addEventListener("touchstart",S,{capture:!0,passive:!1}),r.addEventListener("click",T,{capture:!0,passive:!1}),r.addEventListener("keydown",C,{capture:!0,passive:!1}),n},L=function(){if(a.active)return r.removeEventListener("focusin",O,!0),r.removeEventListener("mousedown",S,!0),r.removeEventListener("touchstart",S,!0),r.removeEventListener("click",T,!0),r.removeEventListener("keydown",C,!0),n};return(n={activate:function(e){if(a.active)return this;var t=u(e,"onActivate"),n=u(e,"onPostActivate"),i=u(e,"checkCanFocusTrap");i||g(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=r.activeElement,t&&t();var o=function(){i&&g(),P(),n&&n()};return i?(i(a.containers.concat()).then(o,o),this):(o(),this)},deactivate:function(e){if(!a.active)return this;clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,L(),a.active=!1,a.paused=!1,y.deactivateTrap(n);var t=u(e,"onDeactivate"),r=u(e,"onPostDeactivate"),i=u(e,"checkCanReturnFocus");t&&t();var o=u(e,"returnFocus","returnFocusOnDeactivate"),l=function(){b((function(){o&&E(x(a.nodeFocusedBeforeActivation)),r&&r()}))};return o&&i?(i(x(a.nodeFocusedBeforeActivation)).then(l,l),this):(l(),this)},pause:function(){return a.paused||!a.active||(a.paused=!0,L()),this},unpause:function(){return a.paused&&a.active?(a.paused=!1,g(),P(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return a.containers=t.map((function(e){return"string"==typeof e?r.querySelector(e):e})),a.active&&g(),this}}).updateContainerElements(e),n}},,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(24),a=(r=i)&&r.__esModule?r:{default:r};t.default=function(e){var t=e.color,n=void 0===t?"unsplash":t;return React.createElement("span",{className:(0,a.default)("instant-images-sidebar-icon","color-"+n)},React.createElement("svg",{viewBox:"0 0 31 58",width:"13px",height:"24px"},React.createElement("title",null,"Instant Images Logo"),React.createElement("polygon",{points:"20 0 20 23 31 23 11 58 11 34 0 34 20 0",fill:"#4a7bc5"})))}},,,function(e,t,n){"use strict";var r=a(n(86)),i=a(n(89));function a(e){return e&&e.__esModule?e:{default:e}}var o=wp.element.Fragment;(0,wp.plugins.registerPlugin)("instant-images",{render:function(){return React.createElement(o,null,React.createElement(i.default,null),React.createElement(r.default,null))}})},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,a=void 0;try{for(var o,l=e[Symbol.iterator]();!(r=(o=l.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(i)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=p(n(0)),a=p(n(29)),o=p(n(2)),l=p(n(7)),s=p(n(12)),u=p(n(75)),c=p(n(82)),f=p(n(87)),d=p(n(88));function p(e){return e&&e.__esModule?e:{default:e}}var h=wp.editPost.PluginSidebar,m=wp.element,v=m.useState,g=m.useEffect;t.default=function(){var e=v(),t=r(e,2),n=t[0],p=t[1],m=(0,u.default)(),y=o.default.defaults.provider,b=o.default.defaults.order,_=o.default[m].requires_key;return g((function(){var e,t;(e=regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!_){e.next=9;break}return e.next=3,fetch((0,l.default)(m));case 3:t=e.sent,n=t.ok,r=t.status,n?p(m):(p(y),(0,s.default)(m,r)),e.next=10;break;case 9:p(y);case 10:case"end":return e.stop()}}),e,this)})),t=function(){var t=e.apply(this,arguments);return new Promise((function(e,n){return function r(i,a){try{var o=t[i](a),l=o.value}catch(e){return void n(e)}if(!o.done)return Promise.resolve(l).then((function(e){r("next",e)}),(function(e){r("throw",e)}));e(l)}("next")}))},function(){return t.apply(this,arguments)})()}),[]),i.default.createElement(h,{icon:i.default.createElement(c.default,{borderless:!0,color:"unsplash"}),name:"instant-images-sidebar",title:"Instant Images"},i.default.createElement("div",{className:"instant-img-container"},n&&i.default.createElement(a.default,{editor:"gutenberg",page:1,orderby:b,provider:n,SetFeaturedImage:d.default,InsertImage:f.default})))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=wp.blocks.createBlock;t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(""===e)return!1;var i=r("core/image",{url:e,caption:t,alt:n});wp.data.dispatch("core/editor").insertBlocks(i)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=wp.data.dispatch;t.default=function(e){if(null===e)return!1;r("core/editor").editPost({featured_media:e})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(82),a=(r=i)&&r.__esModule?r:{default:r};var o=wp.editPost.PluginSidebarMoreMenuItem;t.default=function(){return React.createElement(o,{icon:React.createElement(a.default,{color:"unsplash"}),target:"instant-images-sidebar",className:"instant-images-menu-item"},"Instant Images")}}]);
dist/js/instant-images-media.js CHANGED
@@ -2182,10 +2182,10 @@ module.exports = {
2182
  /*!*****************************************!*\
2183
  !*** ./node_modules/axios/package.json ***!
2184
  \*****************************************/
2185
- /*! exports provided: _from, _id, _inBundle, _integrity, _location, _phantomChildren, _requested, _requiredBy, _resolved, _shasum, _spec, _where, author, browser, bugs, bundleDependencies, bundlesize, dependencies, deprecated, description, devDependencies, homepage, jsdelivr, keywords, license, main, name, repository, scripts, typings, unpkg, version, default */
2186
  /***/ (function(module) {
2187
 
2188
- module.exports = JSON.parse("{\"_from\":\"axios@^0.21.2\",\"_id\":\"axios@0.21.4\",\"_inBundle\":false,\"_integrity\":\"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==\",\"_location\":\"/axios\",\"_phantomChildren\":{},\"_requested\":{\"type\":\"range\",\"registry\":true,\"raw\":\"axios@^0.21.2\",\"name\":\"axios\",\"escapedName\":\"axios\",\"rawSpec\":\"^0.21.2\",\"saveSpec\":null,\"fetchSpec\":\"^0.21.2\"},\"_requiredBy\":[\"/\"],\"_resolved\":\"https://registry.npmjs.org/axios/-/axios-0.21.4.tgz\",\"_shasum\":\"c67b90dc0568e5c1cf2b0b858c43ba28e2eda575\",\"_spec\":\"axios@^0.21.2\",\"_where\":\"/Users/darrencooney/Local Sites/instant-images/app/public/wp-content/plugins/instant-images\",\"author\":{\"name\":\"Matt Zabriskie\"},\"browser\":{\"./lib/adapters/http.js\":\"./lib/adapters/xhr.js\"},\"bugs\":{\"url\":\"https://github.com/axios/axios/issues\"},\"bundleDependencies\":false,\"bundlesize\":[{\"path\":\"./dist/axios.min.js\",\"threshold\":\"5kB\"}],\"dependencies\":{\"follow-redirects\":\"^1.14.0\"},\"deprecated\":false,\"description\":\"Promise based HTTP client for the browser and node.js\",\"devDependencies\":{\"coveralls\":\"^3.0.0\",\"es6-promise\":\"^4.2.4\",\"grunt\":\"^1.3.0\",\"grunt-banner\":\"^0.6.0\",\"grunt-cli\":\"^1.2.0\",\"grunt-contrib-clean\":\"^1.1.0\",\"grunt-contrib-watch\":\"^1.0.0\",\"grunt-eslint\":\"^23.0.0\",\"grunt-karma\":\"^4.0.0\",\"grunt-mocha-test\":\"^0.13.3\",\"grunt-ts\":\"^6.0.0-beta.19\",\"grunt-webpack\":\"^4.0.2\",\"istanbul-instrumenter-loader\":\"^1.0.0\",\"jasmine-core\":\"^2.4.1\",\"karma\":\"^6.3.2\",\"karma-chrome-launcher\":\"^3.1.0\",\"karma-firefox-launcher\":\"^2.1.0\",\"karma-jasmine\":\"^1.1.1\",\"karma-jasmine-ajax\":\"^0.1.13\",\"karma-safari-launcher\":\"^1.0.0\",\"karma-sauce-launcher\":\"^4.3.6\",\"karma-sinon\":\"^1.0.5\",\"karma-sourcemap-loader\":\"^0.3.8\",\"karma-webpack\":\"^4.0.2\",\"load-grunt-tasks\":\"^3.5.2\",\"minimist\":\"^1.2.0\",\"mocha\":\"^8.2.1\",\"sinon\":\"^4.5.0\",\"terser-webpack-plugin\":\"^4.2.3\",\"typescript\":\"^4.0.5\",\"url-search-params\":\"^0.10.0\",\"webpack\":\"^4.44.2\",\"webpack-dev-server\":\"^3.11.0\"},\"homepage\":\"https://axios-http.com\",\"jsdelivr\":\"dist/axios.min.js\",\"keywords\":[\"xhr\",\"http\",\"ajax\",\"promise\",\"node\"],\"license\":\"MIT\",\"main\":\"index.js\",\"name\":\"axios\",\"repository\":{\"type\":\"git\",\"url\":\"git+https://github.com/axios/axios.git\"},\"scripts\":{\"build\":\"NODE_ENV=production grunt build\",\"coveralls\":\"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js\",\"examples\":\"node ./examples/server.js\",\"fix\":\"eslint --fix lib/**/*.js\",\"postversion\":\"git push && git push --tags\",\"preversion\":\"npm test\",\"start\":\"node ./sandbox/server.js\",\"test\":\"grunt test\",\"version\":\"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json\"},\"typings\":\"./index.d.ts\",\"unpkg\":\"dist/axios.min.js\",\"version\":\"0.21.4\"}");
2189
 
2190
  /***/ }),
2191
 
@@ -39221,6 +39221,10 @@ var _consoleStatus = __webpack_require__(/*! ../functions/consoleStatus */ "./sr
39221
 
39222
  var _consoleStatus2 = _interopRequireDefault(_consoleStatus);
39223
 
 
 
 
 
39224
  var _updatePluginSetting = __webpack_require__(/*! ../functions/updatePluginSetting */ "./src/js/functions/updatePluginSetting.js");
39225
 
39226
  var _updatePluginSetting2 = _interopRequireDefault(_updatePluginSetting);
@@ -39266,7 +39270,7 @@ var APILightbox = function (_React$Component) {
39266
  key: "handleSubmit",
39267
  value: function () {
39268
  var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(e) {
39269
- var self, key, response, ok, status, settingField;
39270
  return regeneratorRuntime.wrap(function _callee$(_context) {
39271
  while (1) {
39272
  switch (_context.prev = _context.next) {
@@ -39286,20 +39290,7 @@ var APILightbox = function (_React$Component) {
39286
  // Set localized variable.
39287
  instant_img_localize[this.provider + "_app_id"] = key;
39288
 
39289
- // Fetch API data.
39290
- _context.next = 8;
39291
- return fetch((0, _buildTestURL2.default)(this.provider));
39292
-
39293
- case 8:
39294
- response = _context.sent;
39295
-
39296
-
39297
- // Handle response.
39298
- ok = response.ok;
39299
- status = response.status;
39300
-
39301
  // Update the matching provider API key in the Instant Images settings.
39302
-
39303
  settingField = document.querySelector("input[name=\"instant_img_settings[" + this.provider + "_api]\"]");
39304
 
39305
  if (settingField) {
@@ -39309,10 +39300,25 @@ var APILightbox = function (_React$Component) {
39309
  // Update plugin settings via REST API.
39310
  (0, _updatePluginSetting2.default)(this.provider + "_api", key);
39311
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39312
  // Handle response actions.
 
39313
  if (ok) {
39314
  // Success.
39315
- this.setState({
39316
  status: "valid",
39317
  response: instant_img_localize.api_success_msg
39318
  });
@@ -39324,25 +39330,47 @@ var APILightbox = function (_React$Component) {
39324
  this.setState({ status: "invalid" });
39325
 
39326
  // Render console warning.
39327
- (0, _consoleStatus2.default)(this.provider, status);
39328
 
39329
  // Set response state.
39330
  if (status === 400 || status === 401) {
39331
  // Unsplash/Pixabay incorrect API key.
39332
- this.setState({ response: instant_img_localize.api_invalid_msg });
 
 
39333
  }
39334
  if (status === 429) {
39335
  // Pixabay - too many requests.
39336
- this.setState({ response: instant_img_localize.api_ratelimit_msg });
 
 
39337
  }
39338
  }
 
 
39339
 
39340
- case 15:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39341
  case "end":
39342
  return _context.stop();
39343
  }
39344
  }
39345
- }, _callee, this);
39346
  }));
39347
 
39348
  function handleSubmit(_x) {
@@ -40044,16 +40072,20 @@ var NoResults = function (_React$Component) {
40044
  "div",
40045
  { className: "no-results" },
40046
  _react2.default.createElement(
40047
- "h3",
40048
- null,
40049
- instant_img_localize.no_results,
40050
- " "
40051
- ),
40052
- _react2.default.createElement(
40053
- "p",
40054
  null,
40055
- instant_img_localize.no_results_desc,
40056
- " "
 
 
 
 
 
 
 
 
 
 
40057
  )
40058
  );
40059
  }
@@ -40094,6 +40126,10 @@ var _API = __webpack_require__(/*! ../constants/API.js */ "./src/js/constants/AP
40094
 
40095
  var _API2 = _interopRequireDefault(_API);
40096
 
 
 
 
 
40097
  var _generateAttribution = __webpack_require__(/*! ../functions/generateAttribution.js */ "./src/js/functions/generateAttribution.js.js");
40098
 
40099
  var _generateAttribution2 = _interopRequireDefault(_generateAttribution);
@@ -40102,6 +40138,10 @@ var _getProp = __webpack_require__(/*! ../functions/getProp */ "./src/js/functio
40102
 
40103
  var _getProp2 = _interopRequireDefault(_getProp);
40104
 
 
 
 
 
40105
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
40106
 
40107
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -40131,7 +40171,7 @@ var Photo = function (_React$Component) {
40131
  _this.img_title = instant_img_localize.photo_by + " " + _this.author;
40132
  _this.filename = result.id;
40133
  _this.title = _this.img_title;
40134
- _this.alt = result.alt_description ? result.alt_description : null;
40135
  _this.alt = _this.alt === null ? "" : _this.alt;
40136
  _this.caption = "";
40137
 
@@ -40225,6 +40265,7 @@ var Photo = function (_React$Component) {
40225
 
40226
  // Data Params
40227
  var data = {
 
40228
  id: target.getAttribute("data-id"),
40229
  image_url: target.getAttribute("data-url"),
40230
  filename: target.getAttribute("data-id") + ".jpg",
@@ -40261,9 +40302,9 @@ var Photo = function (_React$Component) {
40261
  // Success/Upload Complete
40262
  self.uploadComplete(target, photo, msg, edit_url, attachment.id);
40263
 
40264
- // Trigger Download Counter at Unsplash.
40265
  if (self.provider === "unsplash") {
40266
- self.triggerUnsplashDownload(id);
40267
  }
40268
 
40269
  // Set Featured Image [Gutenberg Sidebar]
@@ -40299,27 +40340,6 @@ var Photo = function (_React$Component) {
40299
  });
40300
  }
40301
 
40302
- /**
40303
- * Function to trigger download action at unsplash.com
40304
- * This is used to give authors download credits and nothing more
40305
- *
40306
- * @param {string} id The ID of the image
40307
- * @since 3.1
40308
- */
40309
-
40310
- }, {
40311
- key: "triggerUnsplashDownload",
40312
- value: function triggerUnsplashDownload(id) {
40313
- var url = this.api_provider.photo_api + "/" + id + "/download/" + this.api_provider.api_query_var + this.api_key;
40314
- fetch(url).then(function (data) {
40315
- return data.json();
40316
- }).then(function (data) {
40317
- // Success, nothing else happens here
40318
- }).catch(function (error) {
40319
- console.log(error);
40320
- });
40321
- }
40322
-
40323
  /**
40324
  * Function used to trigger a download and then set as featured image
40325
  *
@@ -40385,11 +40405,11 @@ var Photo = function (_React$Component) {
40385
  target.classList.add("success");
40386
  this.inProgress = false;
40387
 
40388
- // Remove uploaded and success states after 7.5 seconds.
40389
  setTimeout(function () {
40390
  photo.classList.remove("uploaded");
40391
  target.classList.remove("success");
40392
- }, 7500);
40393
 
40394
  // Gutenberg Sidebar
40395
  if (this.is_block_editor) {
@@ -40708,7 +40728,10 @@ var Photo = function (_React$Component) {
40708
  _react2.default.createElement(
40709
  "div",
40710
  { className: "user-wrap" },
40711
- this.user_photo && this.user_photo.length > 0 && _react2.default.createElement("img", { src: this.user_photo }),
 
 
 
40712
  this.provider === "unsplash" ? this.user : this.name
40713
  )
40714
  ),
@@ -40812,7 +40835,7 @@ var Photo = function (_React$Component) {
40812
  _react2.default.createElement(
40813
  "div",
40814
  { className: "options" },
40815
- _react2.default.createElement(
40816
  "span",
40817
  {
40818
  className: "likes tooltip--above",
@@ -40830,13 +40853,13 @@ var Photo = function (_React$Component) {
40830
  }),
40831
  " ",
40832
  this.likes
40833
- ),
40834
  _react2.default.createElement(
40835
  "a",
40836
  {
40837
  className: "tooltip--above",
40838
  href: this.link,
40839
- "data-title": this.provider === "unsplash" ? instant_img_localize.view_on_unsplash : instant_img_localize.view_on_pixabay,
40840
  onMouseEnter: function onMouseEnter(e) {
40841
  return _this2.showTooltip(e);
40842
  },
@@ -40852,7 +40875,7 @@ var Photo = function (_React$Component) {
40852
  _react2.default.createElement(
40853
  "span",
40854
  { className: "offscreen" },
40855
- this.provider === "unsplash" ? instant_img_localize.view_on_unsplash : instant_img_localize.view_on_pixabay
40856
  )
40857
  )
40858
  )
@@ -41037,6 +41060,8 @@ Object.defineProperty(exports, "__esModule", {
41037
 
41038
  var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
41039
 
 
 
41040
  var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
41041
 
41042
  var _masonryLayout = __webpack_require__(/*! masonry-layout */ "./node_modules/masonry-layout/masonry.js");
@@ -41059,13 +41084,17 @@ var _buildTestURL = __webpack_require__(/*! ../functions/buildTestURL */ "./src/
41059
 
41060
  var _buildTestURL2 = _interopRequireDefault(_buildTestURL);
41061
 
41062
- var _contentSafety = __webpack_require__(/*! ../functions/contentSafety */ "./src/js/functions/contentSafety.js");
41063
 
41064
- var _contentSafety2 = _interopRequireDefault(_contentSafety);
41065
 
41066
- var _createQS = __webpack_require__(/*! ../functions/createQS */ "./src/js/functions/createQS.js");
41067
 
41068
- var _createQS2 = _interopRequireDefault(_createQS);
 
 
 
 
41069
 
41070
  var _getResults = __webpack_require__(/*! ../functions/getResults */ "./src/js/functions/getResults.js");
41071
 
@@ -41113,6 +41142,8 @@ var _Tooltip2 = _interopRequireDefault(_Tooltip);
41113
 
41114
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
41115
 
 
 
41116
  function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
41117
 
41118
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -41132,15 +41163,16 @@ var PhotoList = function (_React$Component) {
41132
  // Get current provider settings.
41133
  var _this = _possibleConstructorReturn(this, (PhotoList.__proto__ || Object.getPrototypeOf(PhotoList)).call(this, props));
41134
 
41135
- _this.providers = ["Unsplash", "Pixabay"];
41136
  _this.provider = _this.props.provider; // Unsplash, Pixabay, etc.
41137
  _this.api_provider = _API2.default[_this.provider]; // The API settings for the provider.
41138
  _this.arr_key = _this.api_provider.arr_key;
 
41139
 
41140
  // API Vars.
41141
  _this.api_key = instant_img_localize[_this.provider + "_app_id"];
41142
- _this.api_url = "" + _this.api_provider.photo_api + _this.api_provider.api_query_var + _this.api_key + _API2.default.defaults.posts_per_page;
41143
- _this.search_api_url = "" + _this.api_provider.search_api + _this.api_provider.api_query_var + _this.api_key + _API2.default.defaults.posts_per_page;
41144
 
41145
  // Results state.
41146
  _this.results = (0, _getResults2.default)(_this.provider, _this.arr_key, _this.props.results);
@@ -41154,6 +41186,7 @@ var PhotoList = function (_React$Component) {
41154
 
41155
  _this.filters = {};
41156
  _this.search_filters = {};
 
41157
 
41158
  _this.orderby = _this.props.orderby; // Orderby
41159
  _this.page = _this.props.page; // Page
@@ -41198,58 +41231,22 @@ var PhotoList = function (_React$Component) {
41198
  }
41199
 
41200
  /**
41201
- * Test access to the REST API.
41202
  *
41203
- * @since 3.2
 
41204
  */
41205
 
41206
 
41207
  _createClass(PhotoList, [{
41208
- key: "test",
41209
- value: function test() {
41210
- var self = this;
41211
- var testURL = instant_img_localize.root + "instant-images/test/"; // REST Route
41212
- var restAPITest = new XMLHttpRequest();
41213
- restAPITest.open("POST", testURL, true);
41214
- restAPITest.setRequestHeader("X-WP-Nonce", instant_img_localize.nonce);
41215
- restAPITest.setRequestHeader("Content-Type", "application/json");
41216
- restAPITest.send();
41217
- restAPITest.onload = function () {
41218
- if (restAPITest.status >= 200 && restAPITest.status < 400) {
41219
- var response = JSON.parse(restAPITest.response);
41220
- var success = response.success;
41221
- if (!success) {
41222
- self.setState({ restapi_error: true });
41223
- }
41224
- } else {
41225
- // Error
41226
- self.setState({ restapi_error: true });
41227
- }
41228
- };
41229
- restAPITest.onerror = function (errorMsg) {
41230
- console.log(errorMsg);
41231
- self.setState({ restapi_error: true });
41232
- };
41233
- }
41234
-
41235
- /**
41236
- * Trigger Search.
41237
- *
41238
- * @param {Event} event The dispatched submit event.
41239
- * @since 3.0
41240
- */
41241
-
41242
- }, {
41243
  key: "search",
41244
  value: function search(event) {
41245
  event.preventDefault();
41246
-
41247
  var input = this.photoSearch.current;
41248
  var term = input.value;
41249
 
41250
  if (term.length > 2) {
41251
  input.classList.add("searching");
41252
- this.container.classList.add("loading");
41253
  this.search_term = term;
41254
  this.is_search = true;
41255
  this.doSearch(this.search_term);
@@ -41258,108 +41255,6 @@ var PhotoList = function (_React$Component) {
41258
  }
41259
  }
41260
 
41261
- /**
41262
- * Run the search.
41263
- *
41264
- * @param {string} term The search term.
41265
- * @since 3.0
41266
- */
41267
-
41268
- }, {
41269
- key: "doSearch",
41270
- value: function doSearch(term) {
41271
- var self = this;
41272
- var input = this.photoSearch.current;
41273
- var type = "term";
41274
-
41275
- this.photoTarget.current.classList.add("loading");
41276
- this.isLoading = true;
41277
-
41278
- this.page = 1; // Reset currentpage num.
41279
- this.toggleFilters(); // Disable filters.
41280
-
41281
- var url = this.search_api_url + "&page=" + this.page + "&" + this.api_provider.search_query_var + "=" + this.search_term + (0, _contentSafety2.default)(this.provider);
41282
-
41283
- // Search by ID.
41284
- // Allow users to search by photo by prepending id:{photo_id} to search terms.
41285
- var search_type = term.substring(0, 3);
41286
- if (search_type === "id:") {
41287
- type = "id";
41288
- term = term.replace("id:", "");
41289
- url = (0, _searchByID2.default)(this.provider, term, this.api_provider.photo_api, this.api_provider.api_query_var, this.api_key);
41290
- }
41291
-
41292
- // Get search filters.
41293
- var filters = (0, _createQS2.default)(this.search_filters);
41294
- url = filters !== "&" ? "" + url + filters : url;
41295
-
41296
- fetch(url).then(function (data) {
41297
- return data.json();
41298
- }).then(function (data) {
41299
- // Search term.
41300
- if (type === "term") {
41301
- var results = (0, _getResults2.default)(self.provider, self.arr_key, data, true);
41302
- self.total_results = data.total;
41303
-
41304
- // Check for returned data.
41305
- self.checkTotalResults(results.length);
41306
-
41307
- // Update Props.
41308
- self.results = results;
41309
- self.setState({
41310
- results: self.results,
41311
- search_filters: _filters2.default[self.provider].search
41312
- });
41313
- }
41314
-
41315
- // Search by ID.
41316
- if (type === "id" && data) {
41317
- // Convert return data to array.
41318
- var photoArray = [];
41319
-
41320
- // Get results via ID.
41321
- var result = (0, _getResults.getResultById)(self.provider, self.arr_key, data, true);
41322
-
41323
- // Data comes back differently in a search by ID.
41324
- if (data.errors) {
41325
- // If error was returned (Unsplash Only).
41326
- self.total_results = 0;
41327
- self.checkTotalResults("0");
41328
- } else {
41329
- // No errors, display results
41330
- photoArray.push(result);
41331
- self.total_results = 1;
41332
- self.checkTotalResults("1");
41333
- }
41334
-
41335
- self.results = photoArray;
41336
- self.setState({ results: self.results });
41337
- }
41338
-
41339
- // Delay for effect.
41340
- setTimeout(function () {
41341
- input.classList.remove("searching");
41342
- self.photoTarget.current.classList.remove("loading");
41343
- self.isLoading = false;
41344
- }, self.delay);
41345
- }).catch(function (error) {
41346
- console.log(error);
41347
-
41348
- // Error, reset all search parameters.
41349
- input.classList.remove("searching");
41350
- self.isLoading = false;
41351
- self.total_results = 0;
41352
- self.isDone = true;
41353
-
41354
- this.photoTarget.current.classList.remove("loading");
41355
- this.isLoading = false;
41356
-
41357
- // Update Props.
41358
- self.results = [];
41359
- self.setState({ results: self.results });
41360
- });
41361
- }
41362
-
41363
  /**
41364
  * Reset search results, settings and results view.
41365
  *
@@ -41395,6 +41290,161 @@ var PhotoList = function (_React$Component) {
41395
  }
41396
  }
41397
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41398
  /**
41399
  * Get the initial set of photos for the current view (New/Popular/Filters/etc...).
41400
  *
@@ -41406,63 +41456,104 @@ var PhotoList = function (_React$Component) {
41406
 
41407
  }, {
41408
  key: "getPhotos",
41409
- value: function getPhotos(view) {
41410
- var reset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
41411
- var switcher = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
 
 
 
 
 
 
 
 
 
 
41412
 
41413
- var self = this;
41414
 
41415
- if (this.isLoading && !reset) {
41416
- return; // exit if active
41417
- }
41418
 
41419
- this.photoTarget.current.classList.add("loading");
41420
- this.isLoading = true;
41421
- this.page = 1;
41422
- this.orderby = view;
41423
- this.results = [];
41424
- this.clearSearch();
41425
 
41426
- // Get filters.
41427
- var filters = (0, _createQS2.default)(this.filters);
 
41428
 
41429
- // Build URL.
41430
- var url = this.api_url + "&page=" + this.page + "&" + (0, _contentSafety2.default)(this.provider) + filters;
41431
 
41432
- fetch(url).then(function (data) {
41433
- return data.json();
41434
- }).then(function (data) {
41435
- var results = (0, _getResults2.default)(self.provider, self.arr_key, data);
41436
 
41437
- // Check for returned data
41438
- self.checkTotalResults(results.length);
 
41439
 
41440
- // Update Props.
41441
- self.results = results;
41442
 
41443
- // Set results state.
41444
- if (!switcher) {
41445
- self.setState({
41446
- results: results
41447
- });
41448
- } else {
41449
- self.setState({
41450
- results: results,
41451
- filters: _filters2.default[self.provider].filters
41452
- });
41453
- }
41454
 
41455
- // Delay for effect.
41456
- setTimeout(function () {
41457
- self.photoTarget.current.classList.remove("loading");
41458
- self.isLoading = false;
41459
- }, self.delay);
41460
- }).catch(function (error) {
41461
- console.log(error);
41462
- self.photoTarget.current.classList.remove("loading");
41463
- self.isLoading = false;
41464
- });
41465
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41466
 
41467
  /**
41468
  * Load next set of photos in infinite scroll style.
@@ -41472,52 +41563,91 @@ var PhotoList = function (_React$Component) {
41472
 
41473
  }, {
41474
  key: "loadMorePhotos",
41475
- value: function loadMorePhotos() {
41476
- var self = this;
41477
- this.page = parseInt(this.page) + 1;
41478
- this.container.classList.add("loading");
41479
- this.isLoading = true;
 
 
 
41480
 
41481
- var url = this.api_url + "&page=" + this.page + "&";
41482
- var filters = "";
 
41483
 
41484
- if (this.is_search) {
41485
- url = this.search_api_url + "&page=" + this.page + "&" + this.api_provider.search_query_var + "=" + this.search_term;
41486
- filters = (0, _createQS2.default)(this.search_filters);
41487
- } else {
41488
- filters = (0, _createQS2.default)(this.filters);
41489
- }
41490
 
41491
- // Build URL
41492
- url = filters ? "" + url + (0, _contentSafety2.default)(this.provider) + filters : url;
 
41493
 
41494
- fetch(url).then(function (data) {
41495
- return data.json();
41496
- }).then(function (data) {
41497
- var moreResults = (0, _getResults2.default)(self.provider, self.arr_key, data, self.is_search);
 
 
41498
 
41499
- // Unsplash search results are recieved in different JSON format
41500
- if (self.is_search && self.provider === "unsplash") {
41501
- moreResults = data.results;
41502
- }
41503
 
41504
- // Loop results, push items into array
41505
- moreResults && moreResults.map(function (data) {
41506
- self.results.push(data);
41507
- });
41508
 
41509
- // Check for returned data
41510
- self.checkTotalResults(data.length);
 
41511
 
41512
- // Update Props
41513
- self.setState({ results: self.results });
41514
 
41515
- self.isLoading = false;
41516
- }).catch(function (error) {
41517
- console.log(error);
41518
- self.isLoading = false;
41519
- });
41520
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41521
 
41522
  /**
41523
  * Filter the photo listing.
@@ -41529,7 +41659,7 @@ var PhotoList = function (_React$Component) {
41529
  }, {
41530
  key: "filterPhotos",
41531
  value: function filterPhotos(filter, value) {
41532
- if (this.filters[filter] && value === "#" || value === "") {
41533
  delete this.filters[filter];
41534
  } else {
41535
  this.filters[filter] = value;
@@ -41547,7 +41677,7 @@ var PhotoList = function (_React$Component) {
41547
  }, {
41548
  key: "filterSearch",
41549
  value: function filterSearch(filter, value) {
41550
- if (this.search_filters[filter] && value === "#" || value === "") {
41551
  delete this.search_filters[filter];
41552
  } else {
41553
  this.search_filters[filter] = value;
@@ -41625,54 +41755,64 @@ var PhotoList = function (_React$Component) {
41625
  }, {
41626
  key: "switchProvider",
41627
  value: function () {
41628
- var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(e) {
41629
- var target, provider, response, ok, status;
41630
- return regeneratorRuntime.wrap(function _callee$(_context) {
41631
  while (1) {
41632
- switch (_context.prev = _context.next) {
41633
  case 0:
41634
  target = e.currentTarget;
41635
  provider = target.dataset.provider;
41636
 
41637
  if (!(provider === this.provider)) {
41638
- _context.next = 4;
41639
  break;
41640
  }
41641
 
41642
- return _context.abrupt("return", false);
41643
 
41644
  case 4:
41645
  if (!_API2.default[provider].requires_key) {
41646
- _context.next = 14;
41647
  break;
41648
  }
41649
 
41650
- _context.next = 7;
41651
- return fetch((0, _buildTestURL2.default)(provider));
 
 
 
 
41652
 
41653
- case 7:
41654
- response = _context.sent;
41655
  ok = response.ok;
41656
  status = response.status;
41657
 
41658
- if (!(!ok || status === 400 || status === 401 || status === 500)) {
41659
- _context.next = 14;
41660
  break;
41661
  }
41662
 
41663
- this.setState({ api_lightbox: provider }); // Show API Lightbox.
 
41664
  document.body.classList.add("overflow-hidden");
41665
- return _context.abrupt("return");
41666
 
41667
- case 14:
 
 
41668
 
41669
- // Set new state provider.
41670
- this.provider = provider;
41671
- this.api_provider = _API2.default[this.provider];
41672
 
41673
- // Clear filters.
41674
- this.filters = {};
41675
- this.search_filters = {};
 
 
 
41676
 
41677
  // Remove active from buttons.
41678
  this.providerNav.current.querySelectorAll("button").forEach(function (button) {
@@ -41682,27 +41822,32 @@ var PhotoList = function (_React$Component) {
41682
  // Select active button.
41683
  target.classList.add("active");
41684
 
41685
- // Set current provider params.
 
 
41686
  this.arr_key = this.api_provider.arr_key;
41687
  this.api_key = instant_img_localize[this.provider + "_app_id"];
 
 
41688
 
41689
- this.api_url = "" + this.api_provider.photo_api + this.api_provider.api_query_var + this.api_key + _API2.default.defaults.posts_per_page;
41690
- this.search_api_url = "" + this.api_provider.search_api + this.api_provider.api_query_var + this.api_key + _API2.default.defaults.posts_per_page;
 
41691
 
41692
- // At last, get the photos.
41693
  this.view = "latest";
41694
  this.getPhotos(this.view, true, true);
41695
 
41696
- case 26:
41697
  case "end":
41698
- return _context.stop();
41699
  }
41700
  }
41701
- }, _callee, this);
41702
  }));
41703
 
41704
- function switchProvider(_x3) {
41705
- return _ref.apply(this, arguments);
41706
  }
41707
 
41708
  return switchProvider;
@@ -41743,7 +41888,7 @@ var PhotoList = function (_React$Component) {
41743
  value: function onScroll() {
41744
  var wHeight = window.innerHeight;
41745
  var scrollTop = window.pageYOffset;
41746
- var scrollH = document.body.scrollHeight - 400;
41747
  if (wHeight + scrollTop >= scrollH && !this.isLoading && !this.isDone) {
41748
  this.loadMorePhotos();
41749
  }
@@ -41759,7 +41904,7 @@ var PhotoList = function (_React$Component) {
41759
  }, {
41760
  key: "checkTotalResults",
41761
  value: function checkTotalResults(num) {
41762
- this.isDone = num == 0 ? true : false;
41763
  }
41764
 
41765
  /**
@@ -41832,6 +41977,40 @@ var PhotoList = function (_React$Component) {
41832
  tooltip.classList.remove("over");
41833
  }
41834
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41835
  // Component Updated
41836
 
41837
  }, {
@@ -41920,13 +42099,13 @@ var PhotoList = function (_React$Component) {
41920
  Object.entries(this.state.filters).length && _react2.default.createElement(
41921
  "div",
41922
  { className: "control-nav--filters" },
41923
- Object.entries(this.state.filters).map(function (_ref2, i) {
41924
- var _ref3 = _slicedToArray(_ref2, 2),
41925
- key = _ref3[0],
41926
- filter = _ref3[1];
41927
 
41928
  return _react2.default.createElement(_Filter2.default, {
41929
- key: key + "-" + i,
41930
  filterKey: key,
41931
  provider: _this4.provider,
41932
  data: filter,
@@ -42003,16 +42182,16 @@ var PhotoList = function (_React$Component) {
42003
  instant_img_localize.clear_search
42004
  )
42005
  ),
42006
- Object.entries(this.state.search_filters).length && _react2.default.createElement(
42007
  "div",
42008
  { className: "control-nav--filters-wrap" },
42009
  _react2.default.createElement(
42010
  "div",
42011
  { className: "control-nav--filters" },
42012
- Object.entries(this.state.search_filters).map(function (_ref4, i) {
42013
- var _ref5 = _slicedToArray(_ref4, 2),
42014
- key = _ref5[0],
42015
- filter = _ref5[1];
42016
 
42017
  return _react2.default.createElement(_Filter2.default, {
42018
  key: key + "-" + i,
@@ -42205,30 +42384,41 @@ module.exports = {
42205
  defaults: {
42206
  provider: "unsplash",
42207
  order: "latest",
42208
- posts_per_page: "&per_page=20"
42209
  },
42210
  unsplash: {
42211
  requires_key: false,
 
42212
  new: false,
42213
- filters: true,
42214
- api_query_var: "/?client_id=",
42215
- photo_api: "https://api.unsplash.com/photos",
42216
- collections_api: "https://api.unsplash.com/collections",
42217
- search_api: "https://api.unsplash.com/search/photos",
42218
- search_query_var: "query",
42219
- arr_key: "results",
42220
- orientation: ["landscape", "portrait", "squarish"]
42221
  },
42222
  pixabay: {
42223
  requires_key: true,
42224
- new: false,
42225
- filters: true,
42226
- api_query_var: "/?key=",
42227
- photo_api: "https://pixabay.com/api",
42228
- search_api: "https://pixabay.com/api",
42229
- search_query_var: "q",
42230
- arr_key: "hits",
42231
- orientation: ["horizontal", "vertical"]
 
 
 
 
 
 
 
 
 
 
 
42232
  }
42233
  };
42234
 
@@ -42245,6 +42435,32 @@ module.exports = {
42245
 
42246
 
42247
  module.exports = {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42248
  unsplash: {
42249
  filters: {
42250
  order_by: {
@@ -42327,14 +42543,25 @@ module.exports = {
42327
 
42328
 
42329
  Object.defineProperty(exports, "__esModule", {
42330
- value: true
42331
  });
 
 
 
42332
  exports.default = buildTestURL;
42333
 
42334
  var _API = __webpack_require__(/*! ../constants/API */ "./src/js/constants/API.js");
42335
 
42336
  var _API2 = _interopRequireDefault(_API);
42337
 
 
 
 
 
 
 
 
 
42338
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
42339
 
42340
  /**
@@ -42344,19 +42571,26 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
42344
  * @return {string} The API URL.
42345
  */
42346
  function buildTestURL(provider) {
42347
- var api = _API2.default[provider];
42348
- var api_key = instant_img_localize[provider + "_app_id"];
42349
- var url = "" + api.photo_api + api.api_query_var + api_key + "&per_page=5&page=1";
 
 
42350
 
42351
- return url;
 
 
 
 
 
42352
  }
42353
 
42354
  /***/ }),
42355
 
42356
- /***/ "./src/js/functions/consoleStatus.js":
42357
- /*!*******************************************!*\
42358
- !*** ./src/js/functions/consoleStatus.js ***!
42359
- \*******************************************/
42360
  /*! no static exports found */
42361
  /***/ (function(module, exports, __webpack_require__) {
42362
 
@@ -42366,38 +42600,32 @@ function buildTestURL(provider) {
42366
  Object.defineProperty(exports, "__esModule", {
42367
  value: true
42368
  });
42369
- exports.default = consoleStatus;
42370
  /**
42371
- * Display a console.warn message about API status.
42372
  *
42373
- * @param {string} provider The API service provider.
42374
- * @param {string} status The API status.
 
42375
  */
42376
- function consoleStatus(provider) {
42377
- var status = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
42378
-
42379
- var local = instant_img_localize;
42380
- if (status === 400 || status === 401) {
42381
- // Unsplash/Pixabay incorrect API key.
42382
- console.warn("[" + local.instant_images + " - " + status + " Error] " + capitalize(provider) + ": " + local.api_invalid_msg);
42383
  }
42384
- if (status === 429) {
42385
- // Pixabay - too many requests.
42386
- console.warn("[" + local.instant_images + " - " + status + " Error] " + capitalize(provider) + ": " + local.api_ratelimit_msg);
42387
- }
42388
- }
42389
 
42390
- function capitalize(s) {
42391
- if (typeof s !== "string") return "";
42392
- return s.charAt(0).toUpperCase() + s.slice(1);
42393
  }
42394
 
42395
  /***/ }),
42396
 
42397
- /***/ "./src/js/functions/contentSafety.js":
42398
- /*!*******************************************!*\
42399
- !*** ./src/js/functions/contentSafety.js ***!
42400
- \*******************************************/
42401
  /*! no static exports found */
42402
  /***/ (function(module, exports, __webpack_require__) {
42403
 
@@ -42405,41 +42633,25 @@ function capitalize(s) {
42405
 
42406
 
42407
  Object.defineProperty(exports, "__esModule", {
42408
- value: true
42409
  });
42410
- exports.default = contentSafety;
42411
  /**
42412
- * Set the photo safety for indicating that only images suitable for all ages should be returned.
42413
- * @see https://unsplash.com/documentation#content-safety
42414
- * @see https://pixabay.com/api/docs/
42415
  *
42416
- * @param {string} provider The current service provider.
42417
- * @return {string} The api string for filtering content.
42418
  */
42419
- function contentSafety(provider) {
42420
- var str = "";
42421
- switch (provider) {
42422
- case "unsplash":
42423
- if (instant_img_localize.unsplash_content_filter) {
42424
- str = "&content_filter=" + instant_img_localize.unsplash_content_filter;
42425
- }
42426
- break;
42427
-
42428
- case "pixabay":
42429
- if (instant_img_localize.pixabay_safesearch) {
42430
- str = "&safesearch=" + instant_img_localize.pixabay_safesearch;
42431
- }
42432
- break;
42433
- }
42434
- return str;
42435
  }
42436
 
42437
  /***/ }),
42438
 
42439
- /***/ "./src/js/functions/createQS.js":
42440
- /*!**************************************!*\
42441
- !*** ./src/js/functions/createQS.js ***!
42442
- \**************************************/
42443
  /*! no static exports found */
42444
  /***/ (function(module, exports, __webpack_require__) {
42445
 
@@ -42447,21 +42659,34 @@ function contentSafety(provider) {
42447
 
42448
 
42449
  Object.defineProperty(exports, "__esModule", {
42450
- value: true
42451
  });
42452
- exports.default = createQS;
 
 
 
 
 
 
 
42453
  /**
42454
- * Create a querystring from an object.
42455
  *
42456
- * @param {string} obj The object.
42457
- * @return {string} The generated querystring.
42458
  */
42459
- function createQS(obj) {
42460
- var qs = Object.keys(obj).map(function (key) {
42461
- return key + "=" + obj[key];
42462
- }).join("&");
42463
 
42464
- return "&" + qs;
 
 
 
 
 
 
 
 
42465
  }
42466
 
42467
  /***/ }),
@@ -42480,6 +42705,13 @@ Object.defineProperty(exports, "__esModule", {
42480
  value: true
42481
  });
42482
  exports.default = generateAttribution;
 
 
 
 
 
 
 
42483
  /**
42484
  * Get the API URL for searches by ID.
42485
  *
@@ -42489,18 +42721,50 @@ exports.default = generateAttribution;
42489
  * @return {string} The raw attribution HTML.
42490
  */
42491
  function generateAttribution(provider, url, name) {
42492
- var attribution = instant_img_localize.photo_by;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42493
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42494
  switch (provider) {
42495
- case "unsplash":
42496
- attribution += " <a href=\"" + url + "?utm_source=wordpress-instant-images&utm_medium=referral\">" + name + "</a> on <a href=\"" + instant_img_localize.unsplash_url + "/?utm_source=wordpress-instant-images&utm_medium=referral\">Unsplash</a>";
 
 
42497
  break;
42498
- case "pixabay":
42499
- attribution += " <a href=\"" + url + "?utm_source=wordpress-instant-images&utm_medium=referral\">" + name + "</a> on <a href=\"" + instant_img_localize.pixabay_url + "/?utm_source=wordpress-instant-images&utm_medium=referral\">Pixabay</a>";
42500
  break;
42501
  }
42502
 
42503
- return attribution;
42504
  }
42505
 
42506
  /***/ }),
@@ -42529,6 +42793,7 @@ exports.default = getProp;
42529
  */
42530
  function getProp(provider, result, attribute) {
42531
  var value = "";
 
42532
  switch (attribute) {
42533
  case "thumb":
42534
  if (provider === "pixabay") {
@@ -42537,6 +42802,9 @@ function getProp(provider, result, attribute) {
42537
  if (provider === "unsplash") {
42538
  value = result.urls.thumb;
42539
  }
 
 
 
42540
  break;
42541
 
42542
  case "img":
@@ -42546,6 +42814,9 @@ function getProp(provider, result, attribute) {
42546
  if (provider === "unsplash") {
42547
  value = result.urls.small;
42548
  }
 
 
 
42549
  break;
42550
 
42551
  case "full_size":
@@ -42555,6 +42826,9 @@ function getProp(provider, result, attribute) {
42555
  if (provider === "unsplash") {
42556
  value = result.urls.full;
42557
  }
 
 
 
42558
  break;
42559
 
42560
  case "author":
@@ -42564,6 +42838,9 @@ function getProp(provider, result, attribute) {
42564
  if (provider === "unsplash") {
42565
  value = result.user.name;
42566
  }
 
 
 
42567
  break;
42568
 
42569
  case "user":
@@ -42573,6 +42850,9 @@ function getProp(provider, result, attribute) {
42573
  if (provider === "unsplash") {
42574
  value = result.user.username;
42575
  }
 
 
 
42576
  break;
42577
 
42578
  case "name":
@@ -42582,6 +42862,9 @@ function getProp(provider, result, attribute) {
42582
  if (provider === "unsplash") {
42583
  value = result.user.name;
42584
  }
 
 
 
42585
  break;
42586
 
42587
  case "user_photo":
@@ -42591,14 +42874,20 @@ function getProp(provider, result, attribute) {
42591
  if (provider === "unsplash") {
42592
  value = result.user.profile_image.small;
42593
  }
 
 
 
42594
  break;
42595
 
42596
  case "user_url":
42597
  if (provider === "pixabay") {
42598
- value = instant_img_localize.pixabay_url + "/users/" + result.user + "-" + result.user_id + "/";
42599
  }
42600
  if (provider === "unsplash") {
42601
- value = instant_img_localize.unsplash_url + "/@" + result.user.username + "?utm_source=wordpress-instant-images&utm_medium=referral";
 
 
 
42602
  }
42603
  break;
42604
 
@@ -42609,6 +42898,9 @@ function getProp(provider, result, attribute) {
42609
  if (provider === "unsplash") {
42610
  value = result.links.html;
42611
  }
 
 
 
42612
  break;
42613
 
42614
  case "likes":
@@ -42618,6 +42910,21 @@ function getProp(provider, result, attribute) {
42618
  if (provider === "unsplash") {
42619
  value = result.likes;
42620
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42621
  break;
42622
  }
42623
 
@@ -42650,7 +42957,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
42650
  /**
42651
  * Get the default provider on page load.
42652
  *
42653
- * @return {string} The default service provider.
42654
  */
42655
  function getProvider() {
42656
  return instant_img_localize && instant_img_localize.default_provider ? instant_img_localize.default_provider : _API2.default.defaults.provider;
@@ -42658,6 +42965,110 @@ function getProvider() {
42658
 
42659
  /***/ }),
42660
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42661
  /***/ "./src/js/functions/getResults.js":
42662
  /*!****************************************!*\
42663
  !*** ./src/js/functions/getResults.js ***!
@@ -42673,6 +43084,7 @@ Object.defineProperty(exports, "__esModule", {
42673
  });
42674
  exports.default = getResults;
42675
  exports.getResultById = getResultById;
 
42676
  /**
42677
  * Access the results of different providers.
42678
  * Unsplash and Pixabay return results in different object formats.
@@ -42687,8 +43099,8 @@ function getResults(provider, key, data, is_search) {
42687
  if (!data) {
42688
  return [];
42689
  }
42690
-
42691
  var results = [];
 
42692
  switch (provider) {
42693
  case "unsplash":
42694
  if (is_search) {
@@ -42698,7 +43110,7 @@ function getResults(provider, key, data, is_search) {
42698
  }
42699
  break;
42700
 
42701
- case "pixabay":
42702
  results = data[key] || [];
42703
  break;
42704
  }
@@ -42722,6 +43134,7 @@ function getResultById(provider, key, data) {
42722
  var result = [];
42723
  switch (provider) {
42724
  case "unsplash":
 
42725
  result = data || [];
42726
  break;
42727
 
@@ -42733,6 +43146,28 @@ function getResultById(provider, key, data) {
42733
  return result;
42734
  }
42735
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42736
  /***/ }),
42737
 
42738
  /***/ "./src/js/functions/helpers.js":
@@ -42846,23 +43281,32 @@ Object.defineProperty(exports, "__esModule", {
42846
  });
42847
  exports.default = searchByID;
42848
  /**
42849
- * Get the API URL for searches by ID.
 
42850
  *
42851
- * @param {string} provider The current service provider.
42852
- * @param {string} id The photo id.
42853
- * @param {string} attribute The base api URL.
42854
- * @param {string} app_id The provider API key.
42855
- * @return {string} The API URL.
42856
  */
42857
- function searchByID(provider, id, base_url, api_query_var, app_id) {
 
 
 
 
 
 
42858
  var url = "";
42859
  switch (provider) {
42860
  case "unsplash":
42861
- url = base_url + "/" + id + api_query_var + app_id;
42862
  break;
42863
 
42864
  case "pixabay":
42865
- url = "" + base_url + api_query_var + app_id + "&id=" + id;
 
 
 
 
42866
  break;
42867
  }
42868
 
@@ -42871,6 +43315,56 @@ function searchByID(provider, id, base_url, api_query_var, app_id) {
42871
 
42872
  /***/ }),
42873
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42874
  /***/ "./src/js/functions/updatePluginSetting.js":
42875
  /*!*************************************************!*\
42876
  !*** ./src/js/functions/updatePluginSetting.js ***!
@@ -42918,7 +43412,6 @@ function updatePluginSetting(setting, value) {
42918
 
42919
  _axios2.default.post(api, JSON.stringify(data), config).then(function (res) {
42920
  var response = res.data;
42921
- console.log(response);
42922
  }).catch(function (error) {
42923
  console.log(error);
42924
  });
2182
  /*!*****************************************!*\
2183
  !*** ./node_modules/axios/package.json ***!
2184
  \*****************************************/
2185
+ /*! exports provided: _args, _from, _id, _inBundle, _integrity, _location, _phantomChildren, _requested, _requiredBy, _resolved, _spec, _where, author, browser, bugs, bundlesize, dependencies, description, devDependencies, homepage, jsdelivr, keywords, license, main, name, repository, scripts, typings, unpkg, version, default */
2186
  /***/ (function(module) {
2187
 
2188
+ module.exports = JSON.parse("{\"_args\":[[\"axios@0.21.4\",\"/Users/darrencooney/Local Sites/instant-images/app/public/wp-content/plugins/instant-images\"]],\"_from\":\"axios@0.21.4\",\"_id\":\"axios@0.21.4\",\"_inBundle\":false,\"_integrity\":\"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==\",\"_location\":\"/axios\",\"_phantomChildren\":{},\"_requested\":{\"type\":\"version\",\"registry\":true,\"raw\":\"axios@0.21.4\",\"name\":\"axios\",\"escapedName\":\"axios\",\"rawSpec\":\"0.21.4\",\"saveSpec\":null,\"fetchSpec\":\"0.21.4\"},\"_requiredBy\":[\"/\"],\"_resolved\":\"https://registry.npmjs.org/axios/-/axios-0.21.4.tgz\",\"_spec\":\"0.21.4\",\"_where\":\"/Users/darrencooney/Local Sites/instant-images/app/public/wp-content/plugins/instant-images\",\"author\":{\"name\":\"Matt Zabriskie\"},\"browser\":{\"./lib/adapters/http.js\":\"./lib/adapters/xhr.js\"},\"bugs\":{\"url\":\"https://github.com/axios/axios/issues\"},\"bundlesize\":[{\"path\":\"./dist/axios.min.js\",\"threshold\":\"5kB\"}],\"dependencies\":{\"follow-redirects\":\"^1.14.0\"},\"description\":\"Promise based HTTP client for the browser and node.js\",\"devDependencies\":{\"coveralls\":\"^3.0.0\",\"es6-promise\":\"^4.2.4\",\"grunt\":\"^1.3.0\",\"grunt-banner\":\"^0.6.0\",\"grunt-cli\":\"^1.2.0\",\"grunt-contrib-clean\":\"^1.1.0\",\"grunt-contrib-watch\":\"^1.0.0\",\"grunt-eslint\":\"^23.0.0\",\"grunt-karma\":\"^4.0.0\",\"grunt-mocha-test\":\"^0.13.3\",\"grunt-ts\":\"^6.0.0-beta.19\",\"grunt-webpack\":\"^4.0.2\",\"istanbul-instrumenter-loader\":\"^1.0.0\",\"jasmine-core\":\"^2.4.1\",\"karma\":\"^6.3.2\",\"karma-chrome-launcher\":\"^3.1.0\",\"karma-firefox-launcher\":\"^2.1.0\",\"karma-jasmine\":\"^1.1.1\",\"karma-jasmine-ajax\":\"^0.1.13\",\"karma-safari-launcher\":\"^1.0.0\",\"karma-sauce-launcher\":\"^4.3.6\",\"karma-sinon\":\"^1.0.5\",\"karma-sourcemap-loader\":\"^0.3.8\",\"karma-webpack\":\"^4.0.2\",\"load-grunt-tasks\":\"^3.5.2\",\"minimist\":\"^1.2.0\",\"mocha\":\"^8.2.1\",\"sinon\":\"^4.5.0\",\"terser-webpack-plugin\":\"^4.2.3\",\"typescript\":\"^4.0.5\",\"url-search-params\":\"^0.10.0\",\"webpack\":\"^4.44.2\",\"webpack-dev-server\":\"^3.11.0\"},\"homepage\":\"https://axios-http.com\",\"jsdelivr\":\"dist/axios.min.js\",\"keywords\":[\"xhr\",\"http\",\"ajax\",\"promise\",\"node\"],\"license\":\"MIT\",\"main\":\"index.js\",\"name\":\"axios\",\"repository\":{\"type\":\"git\",\"url\":\"git+https://github.com/axios/axios.git\"},\"scripts\":{\"build\":\"NODE_ENV=production grunt build\",\"coveralls\":\"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js\",\"examples\":\"node ./examples/server.js\",\"fix\":\"eslint --fix lib/**/*.js\",\"postversion\":\"git push && git push --tags\",\"preversion\":\"npm test\",\"start\":\"node ./sandbox/server.js\",\"test\":\"grunt test\",\"version\":\"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json\"},\"typings\":\"./index.d.ts\",\"unpkg\":\"dist/axios.min.js\",\"version\":\"0.21.4\"}");
2189
 
2190
  /***/ }),
2191
 
39221
 
39222
  var _consoleStatus2 = _interopRequireDefault(_consoleStatus);
39223
 
39224
+ var _getHeaders = __webpack_require__(/*! ../functions/getHeaders */ "./src/js/functions/getHeaders.js");
39225
+
39226
+ var _getHeaders2 = _interopRequireDefault(_getHeaders);
39227
+
39228
  var _updatePluginSetting = __webpack_require__(/*! ../functions/updatePluginSetting */ "./src/js/functions/updatePluginSetting.js");
39229
 
39230
  var _updatePluginSetting2 = _interopRequireDefault(_updatePluginSetting);
39270
  key: "handleSubmit",
39271
  value: function () {
39272
  var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(e) {
39273
+ var self, key, settingField, headers, response, ok, status;
39274
  return regeneratorRuntime.wrap(function _callee$(_context) {
39275
  while (1) {
39276
  switch (_context.prev = _context.next) {
39290
  // Set localized variable.
39291
  instant_img_localize[this.provider + "_app_id"] = key;
39292
 
 
 
 
 
 
 
 
 
 
 
 
 
39293
  // Update the matching provider API key in the Instant Images settings.
 
39294
  settingField = document.querySelector("input[name=\"instant_img_settings[" + this.provider + "_api]\"]");
39295
 
39296
  if (settingField) {
39300
  // Update plugin settings via REST API.
39301
  (0, _updatePluginSetting2.default)(this.provider + "_api", key);
39302
 
39303
+ // Get authentication headers.
39304
+ headers = (0, _getHeaders2.default)(this.provider);
39305
+ _context.prev = 10;
39306
+ _context.next = 13;
39307
+ return fetch((0, _buildTestURL2.default)(self.provider), { headers: headers });
39308
+
39309
+ case 13:
39310
+ response = _context.sent;
39311
+
39312
+
39313
+ // Handle response.
39314
+ ok = response.ok;
39315
+ status = response.status;
39316
+
39317
  // Handle response actions.
39318
+
39319
  if (ok) {
39320
  // Success.
39321
+ self.setState({
39322
  status: "valid",
39323
  response: instant_img_localize.api_success_msg
39324
  });
39330
  this.setState({ status: "invalid" });
39331
 
39332
  // Render console warning.
39333
+ (0, _consoleStatus2.default)(self.provider, status);
39334
 
39335
  // Set response state.
39336
  if (status === 400 || status === 401) {
39337
  // Unsplash/Pixabay incorrect API key.
39338
+ self.setState({
39339
+ response: instant_img_localize.api_invalid_msg
39340
+ });
39341
  }
39342
  if (status === 429) {
39343
  // Pixabay - too many requests.
39344
+ self.setState({
39345
+ response: instant_img_localize.api_ratelimit_msg
39346
+ });
39347
  }
39348
  }
39349
+ _context.next = 24;
39350
+ break;
39351
 
39352
+ case 19:
39353
+ _context.prev = 19;
39354
+ _context.t0 = _context["catch"](10);
39355
+
39356
+ // Catch all other errors.
39357
+
39358
+ // Error/Invalid.
39359
+ this.setState({ status: "invalid" });
39360
+
39361
+ // Render console warning.
39362
+ (0, _consoleStatus2.default)(self.provider, 500);
39363
+
39364
+ self.setState({
39365
+ response: instant_img_localize.api_invalid_msg
39366
+ });
39367
+
39368
+ case 24:
39369
  case "end":
39370
  return _context.stop();
39371
  }
39372
  }
39373
+ }, _callee, this, [[10, 19]]);
39374
  }));
39375
 
39376
  function handleSubmit(_x) {
40072
  "div",
40073
  { className: "no-results" },
40074
  _react2.default.createElement(
40075
+ "div",
 
 
 
 
 
 
40076
  null,
40077
+ _react2.default.createElement(
40078
+ "h3",
40079
+ null,
40080
+ instant_img_localize.no_results,
40081
+ " "
40082
+ ),
40083
+ _react2.default.createElement(
40084
+ "p",
40085
+ null,
40086
+ instant_img_localize.no_results_desc,
40087
+ " "
40088
+ )
40089
  )
40090
  );
40091
  }
40126
 
40127
  var _API2 = _interopRequireDefault(_API);
40128
 
40129
+ var _capitalizeFirstLetter = __webpack_require__(/*! ../functions/capitalizeFirstLetter */ "./src/js/functions/capitalizeFirstLetter.js");
40130
+
40131
+ var _capitalizeFirstLetter2 = _interopRequireDefault(_capitalizeFirstLetter);
40132
+
40133
  var _generateAttribution = __webpack_require__(/*! ../functions/generateAttribution.js */ "./src/js/functions/generateAttribution.js.js");
40134
 
40135
  var _generateAttribution2 = _interopRequireDefault(_generateAttribution);
40138
 
40139
  var _getProp2 = _interopRequireDefault(_getProp);
40140
 
40141
+ var _unsplashDownload = __webpack_require__(/*! ../functions/unsplashDownload */ "./src/js/functions/unsplashDownload.js");
40142
+
40143
+ var _unsplashDownload2 = _interopRequireDefault(_unsplashDownload);
40144
+
40145
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
40146
 
40147
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
40171
  _this.img_title = instant_img_localize.photo_by + " " + _this.author;
40172
  _this.filename = result.id;
40173
  _this.title = _this.img_title;
40174
+ _this.alt = (0, _getProp2.default)(_this.provider, result, "alt");
40175
  _this.alt = _this.alt === null ? "" : _this.alt;
40176
  _this.caption = "";
40177
 
40265
 
40266
  // Data Params
40267
  var data = {
40268
+ provider: this.provider,
40269
  id: target.getAttribute("data-id"),
40270
  image_url: target.getAttribute("data-url"),
40271
  filename: target.getAttribute("data-id") + ".jpg",
40302
  // Success/Upload Complete
40303
  self.uploadComplete(target, photo, msg, edit_url, attachment.id);
40304
 
40305
+ // Trigger a download at Unsplash.
40306
  if (self.provider === "unsplash") {
40307
+ (0, _unsplashDownload2.default)(self, id);
40308
  }
40309
 
40310
  // Set Featured Image [Gutenberg Sidebar]
40340
  });
40341
  }
40342
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40343
  /**
40344
  * Function used to trigger a download and then set as featured image
40345
  *
40405
  target.classList.add("success");
40406
  this.inProgress = false;
40407
 
40408
+ // Remove uploaded and success states after 5 seconds.
40409
  setTimeout(function () {
40410
  photo.classList.remove("uploaded");
40411
  target.classList.remove("success");
40412
+ }, 5000);
40413
 
40414
  // Gutenberg Sidebar
40415
  if (this.is_block_editor) {
40728
  _react2.default.createElement(
40729
  "div",
40730
  { className: "user-wrap" },
40731
+ this.user_photo && this.user_photo.length > 0 && _react2.default.createElement("img", {
40732
+ className: "user-wrap--photo",
40733
+ src: this.user_photo
40734
+ }),
40735
  this.provider === "unsplash" ? this.user : this.name
40736
  )
40737
  ),
40835
  _react2.default.createElement(
40836
  "div",
40837
  { className: "options" },
40838
+ this.likes ? _react2.default.createElement(
40839
  "span",
40840
  {
40841
  className: "likes tooltip--above",
40853
  }),
40854
  " ",
40855
  this.likes
40856
+ ) : null,
40857
  _react2.default.createElement(
40858
  "a",
40859
  {
40860
  className: "tooltip--above",
40861
  href: this.link,
40862
+ "data-title": instant_img_localize.open_external + " " + (0, _capitalizeFirstLetter2.default)(this.provider),
40863
  onMouseEnter: function onMouseEnter(e) {
40864
  return _this2.showTooltip(e);
40865
  },
40875
  _react2.default.createElement(
40876
  "span",
40877
  { className: "offscreen" },
40878
+ instant_img_localize.open_external + " " + (0, _capitalizeFirstLetter2.default)(this.provider)
40879
  )
40880
  )
40881
  )
41060
 
41061
  var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
41062
 
41063
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
41064
+
41065
  var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
41066
 
41067
  var _masonryLayout = __webpack_require__(/*! masonry-layout */ "./node_modules/masonry-layout/masonry.js");
41084
 
41085
  var _buildTestURL2 = _interopRequireDefault(_buildTestURL);
41086
 
41087
+ var _buildURL = __webpack_require__(/*! ../functions/buildURL */ "./src/js/functions/buildURL.js");
41088
 
41089
+ var _buildURL2 = _interopRequireDefault(_buildURL);
41090
 
41091
+ var _getHeaders = __webpack_require__(/*! ../functions/getHeaders */ "./src/js/functions/getHeaders.js");
41092
 
41093
+ var _getHeaders2 = _interopRequireDefault(_getHeaders);
41094
+
41095
+ var _getQueryParams = __webpack_require__(/*! ../functions/getQueryParams */ "./src/js/functions/getQueryParams.js");
41096
+
41097
+ var _getQueryParams2 = _interopRequireDefault(_getQueryParams);
41098
 
41099
  var _getResults = __webpack_require__(/*! ../functions/getResults */ "./src/js/functions/getResults.js");
41100
 
41142
 
41143
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
41144
 
41145
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
41146
+
41147
  function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
41148
 
41149
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
41163
  // Get current provider settings.
41164
  var _this = _possibleConstructorReturn(this, (PhotoList.__proto__ || Object.getPrototypeOf(PhotoList)).call(this, props));
41165
 
41166
+ _this.providers = ["Unsplash", "Pixabay", "Pexels"];
41167
  _this.provider = _this.props.provider; // Unsplash, Pixabay, etc.
41168
  _this.api_provider = _API2.default[_this.provider]; // The API settings for the provider.
41169
  _this.arr_key = _this.api_provider.arr_key;
41170
+ _this.per_page = _API2.default.defaults.per_page;
41171
 
41172
  // API Vars.
41173
  _this.api_key = instant_img_localize[_this.provider + "_app_id"];
41174
+ _this.photo_api = _this.api_provider.photo_api;
41175
+ _this.search_api = _this.api_provider.search_api;
41176
 
41177
  // Results state.
41178
  _this.results = (0, _getResults2.default)(_this.provider, _this.arr_key, _this.props.results);
41186
 
41187
  _this.filters = {};
41188
  _this.search_filters = {};
41189
+ _this.show_search_filters = true;
41190
 
41191
  _this.orderby = _this.props.orderby; // Orderby
41192
  _this.page = _this.props.page; // Page
41231
  }
41232
 
41233
  /**
41234
+ * Trigger Search.
41235
  *
41236
+ * @param {Event} event The dispatched submit event.
41237
+ * @since 3.0
41238
  */
41239
 
41240
 
41241
  _createClass(PhotoList, [{
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41242
  key: "search",
41243
  value: function search(event) {
41244
  event.preventDefault();
 
41245
  var input = this.photoSearch.current;
41246
  var term = input.value;
41247
 
41248
  if (term.length > 2) {
41249
  input.classList.add("searching");
 
41250
  this.search_term = term;
41251
  this.is_search = true;
41252
  this.doSearch(this.search_term);
41255
  }
41256
  }
41257
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41258
  /**
41259
  * Reset search results, settings and results view.
41260
  *
41290
  }
41291
  }
41292
 
41293
+ /**
41294
+ * Perform a photo search.
41295
+ *
41296
+ * @param {string} term The search term.
41297
+ * @since 3.0
41298
+ */
41299
+
41300
+ }, {
41301
+ key: "doSearch",
41302
+ value: function () {
41303
+ var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(term) {
41304
+ var self, search_type, input, photoTarget, search_url, search_query, search_params, params, url, headers, response, ok, data, results, photoArray, result;
41305
+ return regeneratorRuntime.wrap(function _callee$(_context) {
41306
+ while (1) {
41307
+ switch (_context.prev = _context.next) {
41308
+ case 0:
41309
+ self = this;
41310
+ search_type = term.substring(0, 3) === "id:" ? "id" : "term";
41311
+ input = this.photoSearch.current;
41312
+ photoTarget = this.photoTarget.current;
41313
+
41314
+ // Set loading variables and options.
41315
+
41316
+ photoTarget.classList.add("loading");
41317
+ this.isLoading = true;
41318
+ this.page = 1; // Reset current page num.
41319
+ this.toggleFilters(); // Disable filters.
41320
+
41321
+ // Build API URL.
41322
+ search_url = this.search_api;
41323
+ search_query = {};
41324
+
41325
+
41326
+ if (search_type === "id") {
41327
+ search_url = (0, _searchByID2.default)(this, term);
41328
+ } else {
41329
+ search_query = _defineProperty({}, this.api_provider.search_var, this.search_term);
41330
+ }
41331
+
41332
+ // Build URL.
41333
+ search_params = _extends({}, search_query, this.search_filters, { page: this.page });
41334
+ params = (0, _getQueryParams2.default)(this.provider, search_params);
41335
+ url = (0, _buildURL2.default)(search_url, params);
41336
+
41337
+ // Create fetch request.
41338
+
41339
+ headers = (0, _getHeaders2.default)(this.provider);
41340
+ _context.next = 17;
41341
+ return fetch(url, { headers: headers });
41342
+
41343
+ case 17:
41344
+ response = _context.sent;
41345
+ ok = response.ok;
41346
+
41347
+ if (!ok) {
41348
+ _context.next = 43;
41349
+ break;
41350
+ }
41351
+
41352
+ _context.next = 22;
41353
+ return response.json();
41354
+
41355
+ case 22:
41356
+ data = _context.sent;
41357
+ _context.t0 = search_type;
41358
+ _context.next = _context.t0 === "term" ? 26 : _context.t0 === "id" ? 33 : 40;
41359
+ break;
41360
+
41361
+ case 26:
41362
+ results = (0, _getResults2.default)(this.provider, this.arr_key, data, true);
41363
+
41364
+
41365
+ this.total_results = (0, _getResults.getSearchTotalByProvider)(this.provider, data);
41366
+
41367
+ // Check for returned data.
41368
+ this.checkTotalResults(results.length);
41369
+
41370
+ // Update Props.
41371
+ this.show_search_filters = this.total_results > 0 ? true : false;
41372
+ this.results = results;
41373
+ this.setState({
41374
+ results: this.results,
41375
+ search_filters: _filters2.default[this.provider].search
41376
+ });
41377
+
41378
+ return _context.abrupt("break", 40);
41379
+
41380
+ case 33:
41381
+ // Convert return data to array.
41382
+ photoArray = [];
41383
+
41384
+ // Get results via ID.
41385
+
41386
+ result = (0, _getResults.getResultById)(this.provider, this.arr_key, data, true);
41387
+
41388
+ // Data comes back differently in a search by ID.
41389
+
41390
+ if (data.errors) {
41391
+ // If error was returned (Unsplash Only).
41392
+ this.total_results = 0;
41393
+ this.checkTotalResults("0");
41394
+ } else {
41395
+ // No errors, display results
41396
+ photoArray.push(result);
41397
+ this.total_results = 1;
41398
+ this.checkTotalResults("1");
41399
+ this.isDone = true;
41400
+ }
41401
+
41402
+ this.show_search_filters = false;
41403
+ this.results = photoArray;
41404
+ this.setState({ results: self.results });
41405
+ return _context.abrupt("break", 40);
41406
+
41407
+ case 40:
41408
+
41409
+ // Delay for effect.
41410
+ setTimeout(function () {
41411
+ input.classList.remove("searching");
41412
+ photoTarget.classList.remove("loading");
41413
+ self.isLoading = false;
41414
+ }, this.delay);
41415
+ _context.next = 51;
41416
+ break;
41417
+
41418
+ case 43:
41419
+ // Error handling.
41420
+
41421
+ // Reset all search parameters.
41422
+ this.isDone = true;
41423
+ this.isLoading = false;
41424
+ this.show_search_filters = false;
41425
+ this.total_results = 0;
41426
+ input.classList.remove("searching");
41427
+ photoTarget.classList.remove("loading");
41428
+
41429
+ // Update Props.
41430
+ this.results = [];
41431
+ this.setState({ results: this.results });
41432
+
41433
+ case 51:
41434
+ case "end":
41435
+ return _context.stop();
41436
+ }
41437
+ }
41438
+ }, _callee, this);
41439
+ }));
41440
+
41441
+ function doSearch(_x) {
41442
+ return _ref.apply(this, arguments);
41443
+ }
41444
+
41445
+ return doSearch;
41446
+ }()
41447
+
41448
  /**
41449
  * Get the initial set of photos for the current view (New/Popular/Filters/etc...).
41450
  *
41456
 
41457
  }, {
41458
  key: "getPhotos",
41459
+ value: function () {
41460
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(view) {
41461
+ var reset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
41462
+ var switcher = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
41463
+ var self, params, url, headers, response, ok, status, statusText, data, results;
41464
+ return regeneratorRuntime.wrap(function _callee2$(_context2) {
41465
+ while (1) {
41466
+ switch (_context2.prev = _context2.next) {
41467
+ case 0:
41468
+ if (!(this.isLoading && !reset)) {
41469
+ _context2.next = 2;
41470
+ break;
41471
+ }
41472
 
41473
+ return _context2.abrupt("return");
41474
 
41475
+ case 2:
41476
+ self = this;
 
41477
 
41478
+ this.photoTarget.current.classList.add("loading");
41479
+ this.isLoading = true;
41480
+ this.page = 1;
41481
+ this.orderby = view;
41482
+ this.results = [];
41483
+ this.clearSearch();
41484
 
41485
+ // Build URL.
41486
+ params = (0, _getQueryParams2.default)(this.provider, this.filters);
41487
+ url = (0, _buildURL2.default)(this.photo_api, params);
41488
 
41489
+ // Create fetch request.
 
41490
 
41491
+ headers = (0, _getHeaders2.default)(this.provider);
41492
+ _context2.next = 14;
41493
+ return fetch(url, { headers: headers });
 
41494
 
41495
+ case 14:
41496
+ response = _context2.sent;
41497
+ ok = response.ok, status = response.status, statusText = response.statusText;
41498
 
41499
+ // Status OK.
 
41500
 
41501
+ if (!ok) {
41502
+ _context2.next = 26;
41503
+ break;
41504
+ }
 
 
 
 
 
 
 
41505
 
41506
+ _context2.next = 19;
41507
+ return response.json();
41508
+
41509
+ case 19:
41510
+ data = _context2.sent;
41511
+ results = (0, _getResults2.default)(this.provider, this.arr_key, data);
41512
+
41513
+ this.checkTotalResults(results.length); // Check for returned data.
41514
+ this.results = results; // Update Props.
41515
+
41516
+ // Set results state.
41517
+ if (!switcher) {
41518
+ this.setState({
41519
+ results: results
41520
+ });
41521
+ } else {
41522
+ this.setState({
41523
+ results: results,
41524
+ filters: _filters2.default[this.provider].filters
41525
+ });
41526
+ }
41527
+ _context2.next = 29;
41528
+ break;
41529
+
41530
+ case 26:
41531
+ console.warn("Error: " + status + " - " + statusText);
41532
+ this.photoTarget.current.classList.remove("loading");
41533
+ this.isLoading = false;
41534
+
41535
+ case 29:
41536
+
41537
+ // Delay loading animatons for effect.
41538
+ setTimeout(function () {
41539
+ self.photoTarget.current.classList.remove("loading");
41540
+ self.isLoading = false;
41541
+ }, self.delay);
41542
+
41543
+ case 30:
41544
+ case "end":
41545
+ return _context2.stop();
41546
+ }
41547
+ }
41548
+ }, _callee2, this);
41549
+ }));
41550
+
41551
+ function getPhotos(_x4) {
41552
+ return _ref2.apply(this, arguments);
41553
+ }
41554
+
41555
+ return getPhotos;
41556
+ }()
41557
 
41558
  /**
41559
  * Load next set of photos in infinite scroll style.
41563
 
41564
  }, {
41565
  key: "loadMorePhotos",
41566
+ value: function () {
41567
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
41568
+ var self, search_query, loadmore_url, filters, loadmore_params, params, url, headers, response, ok, status, statusText, data, results;
41569
+ return regeneratorRuntime.wrap(function _callee3$(_context3) {
41570
+ while (1) {
41571
+ switch (_context3.prev = _context3.next) {
41572
+ case 0:
41573
+ self = this;
41574
 
41575
+ this.container.classList.add("loading");
41576
+ this.isLoading = true;
41577
+ this.page = parseInt(this.page) + 1;
41578
 
41579
+ // Get search query.
41580
+ search_query = {};
 
 
 
 
41581
 
41582
+ if (this.is_search) {
41583
+ search_query = _defineProperty({}, this.api_provider.search_var, this.search_term);
41584
+ }
41585
 
41586
+ // Build URL.
41587
+ loadmore_url = this.is_search ? this.search_api : this.photo_api;
41588
+ filters = this.is_search ? this.search_filters : this.filters;
41589
+ loadmore_params = _extends({}, filters, search_query, { page: this.page });
41590
+ params = (0, _getQueryParams2.default)(this.provider, loadmore_params);
41591
+ url = (0, _buildURL2.default)(loadmore_url, params);
41592
 
41593
+ // Create fetch request.
 
 
 
41594
 
41595
+ headers = (0, _getHeaders2.default)(this.provider);
41596
+ _context3.next = 14;
41597
+ return fetch(url, { headers: headers });
 
41598
 
41599
+ case 14:
41600
+ response = _context3.sent;
41601
+ ok = response.ok, status = response.status, statusText = response.statusText;
41602
 
41603
+ // Status OK.
 
41604
 
41605
+ if (!ok) {
41606
+ _context3.next = 27;
41607
+ break;
41608
+ }
41609
+
41610
+ _context3.next = 19;
41611
+ return response.json();
41612
+
41613
+ case 19:
41614
+ data = _context3.sent;
41615
+ results = (0, _getResults2.default)(this.provider, this.arr_key, data, this.is_search);
41616
+
41617
+ // Unsplash search results are returned in different JSON format
41618
+
41619
+ if (this.is_search && this.provider === "unsplash") {
41620
+ results = data.results;
41621
+ }
41622
+
41623
+ // Loop result & push items into array.
41624
+ results && results.map(function (data) {
41625
+ self.results.push(data);
41626
+ });
41627
+
41628
+ this.checkTotalResults(data.length); // Check for returned data.
41629
+ this.setState({ results: this.results }); // Update Props.
41630
+ _context3.next = 29;
41631
+ break;
41632
+
41633
+ case 27:
41634
+ console.warn("Error: " + status + " - " + statusText);
41635
+ self.isLoading = false;
41636
+
41637
+ case 29:
41638
+ case "end":
41639
+ return _context3.stop();
41640
+ }
41641
+ }
41642
+ }, _callee3, this);
41643
+ }));
41644
+
41645
+ function loadMorePhotos() {
41646
+ return _ref3.apply(this, arguments);
41647
+ }
41648
+
41649
+ return loadMorePhotos;
41650
+ }()
41651
 
41652
  /**
41653
  * Filter the photo listing.
41659
  }, {
41660
  key: "filterPhotos",
41661
  value: function filterPhotos(filter, value) {
41662
+ if (this.filters[filter] && value === "#" || value === "" || value === "all") {
41663
  delete this.filters[filter];
41664
  } else {
41665
  this.filters[filter] = value;
41677
  }, {
41678
  key: "filterSearch",
41679
  value: function filterSearch(filter, value) {
41680
+ if (this.search_filters[filter] && value === "#" || value === "" || value === "all") {
41681
  delete this.search_filters[filter];
41682
  } else {
41683
  this.search_filters[filter] = value;
41755
  }, {
41756
  key: "switchProvider",
41757
  value: function () {
41758
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(e) {
41759
+ var target, provider, headers, self, response, ok, status;
41760
+ return regeneratorRuntime.wrap(function _callee4$(_context4) {
41761
  while (1) {
41762
+ switch (_context4.prev = _context4.next) {
41763
  case 0:
41764
  target = e.currentTarget;
41765
  provider = target.dataset.provider;
41766
 
41767
  if (!(provider === this.provider)) {
41768
+ _context4.next = 4;
41769
  break;
41770
  }
41771
 
41772
+ return _context4.abrupt("return", false);
41773
 
41774
  case 4:
41775
  if (!_API2.default[provider].requires_key) {
41776
+ _context4.next = 24;
41777
  break;
41778
  }
41779
 
41780
+ // Get authentication headers.
41781
+ headers = (0, _getHeaders2.default)(provider);
41782
+ self = this;
41783
+ _context4.prev = 7;
41784
+ _context4.next = 10;
41785
+ return fetch((0, _buildTestURL2.default)(provider), { headers: headers });
41786
 
41787
+ case 10:
41788
+ response = _context4.sent;
41789
  ok = response.ok;
41790
  status = response.status;
41791
 
41792
+ if (!(!ok || status === 400 || status === 401 || status === 500 || status === 404)) {
41793
+ _context4.next = 17;
41794
  break;
41795
  }
41796
 
41797
+ // Catch forbidden and 404s.
41798
+ self.setState({ api_lightbox: provider }); // Show API Lightbox.
41799
  document.body.classList.add("overflow-hidden");
41800
+ return _context4.abrupt("return");
41801
 
41802
+ case 17:
41803
+ _context4.next = 24;
41804
+ break;
41805
 
41806
+ case 19:
41807
+ _context4.prev = 19;
41808
+ _context4.t0 = _context4["catch"](7);
41809
 
41810
+ // Catch all other errors.
41811
+ self.setState({ api_lightbox: provider }); // Show API Lightbox.
41812
+ document.body.classList.add("overflow-hidden");
41813
+ return _context4.abrupt("return");
41814
+
41815
+ case 24:
41816
 
41817
  // Remove active from buttons.
41818
  this.providerNav.current.querySelectorAll("button").forEach(function (button) {
41822
  // Select active button.
41823
  target.classList.add("active");
41824
 
41825
+ // Update API provider params.
41826
+ this.provider = provider;
41827
+ this.api_provider = _API2.default[this.provider];
41828
  this.arr_key = this.api_provider.arr_key;
41829
  this.api_key = instant_img_localize[this.provider + "_app_id"];
41830
+ this.photo_api = this.api_provider.photo_api;
41831
+ this.search_api = this.api_provider.search_api;
41832
 
41833
+ // Clear all filters.
41834
+ this.filters = {};
41835
+ this.search_filters = {};
41836
 
41837
+ // Finally, fetch the photos.
41838
  this.view = "latest";
41839
  this.getPhotos(this.view, true, true);
41840
 
41841
+ case 36:
41842
  case "end":
41843
+ return _context4.stop();
41844
  }
41845
  }
41846
+ }, _callee4, this, [[7, 19]]);
41847
  }));
41848
 
41849
+ function switchProvider(_x5) {
41850
+ return _ref4.apply(this, arguments);
41851
  }
41852
 
41853
  return switchProvider;
41888
  value: function onScroll() {
41889
  var wHeight = window.innerHeight;
41890
  var scrollTop = window.pageYOffset;
41891
+ var scrollH = document.body.scrollHeight - 200;
41892
  if (wHeight + scrollTop >= scrollH && !this.isLoading && !this.isDone) {
41893
  this.loadMorePhotos();
41894
  }
41904
  }, {
41905
  key: "checkTotalResults",
41906
  value: function checkTotalResults(num) {
41907
+ this.isDone = parseInt(num) === 0 ? true : false;
41908
  }
41909
 
41910
  /**
41977
  tooltip.classList.remove("over");
41978
  }
41979
 
41980
+ /**
41981
+ * Test access to the REST API.
41982
+ *
41983
+ * @since 3.2
41984
+ */
41985
+
41986
+ }, {
41987
+ key: "test",
41988
+ value: function test() {
41989
+ var self = this;
41990
+ var testURL = instant_img_localize.root + "instant-images/test/"; // REST Route
41991
+ var restAPITest = new XMLHttpRequest();
41992
+ restAPITest.open("POST", testURL, true);
41993
+ restAPITest.setRequestHeader("X-WP-Nonce", instant_img_localize.nonce);
41994
+ restAPITest.setRequestHeader("Content-Type", "application/json");
41995
+ restAPITest.send();
41996
+ restAPITest.onload = function () {
41997
+ if (restAPITest.status >= 200 && restAPITest.status < 400) {
41998
+ var response = JSON.parse(restAPITest.response);
41999
+ var success = response.success;
42000
+ if (!success) {
42001
+ self.setState({ restapi_error: true });
42002
+ }
42003
+ } else {
42004
+ // Error
42005
+ self.setState({ restapi_error: true });
42006
+ }
42007
+ };
42008
+ restAPITest.onerror = function (errorMsg) {
42009
+ console.log(errorMsg);
42010
+ self.setState({ restapi_error: true });
42011
+ };
42012
+ }
42013
+
42014
  // Component Updated
42015
 
42016
  }, {
42099
  Object.entries(this.state.filters).length && _react2.default.createElement(
42100
  "div",
42101
  { className: "control-nav--filters" },
42102
+ Object.entries(this.state.filters).map(function (_ref5, i) {
42103
+ var _ref6 = _slicedToArray(_ref5, 2),
42104
+ key = _ref6[0],
42105
+ filter = _ref6[1];
42106
 
42107
  return _react2.default.createElement(_Filter2.default, {
42108
+ key: key + "-" + _this4.provider + "-" + i,
42109
  filterKey: key,
42110
  provider: _this4.provider,
42111
  data: filter,
42182
  instant_img_localize.clear_search
42183
  )
42184
  ),
42185
+ this.show_search_filters && Object.entries(this.state.search_filters).length && _react2.default.createElement(
42186
  "div",
42187
  { className: "control-nav--filters-wrap" },
42188
  _react2.default.createElement(
42189
  "div",
42190
  { className: "control-nav--filters" },
42191
+ Object.entries(this.state.search_filters).map(function (_ref7, i) {
42192
+ var _ref8 = _slicedToArray(_ref7, 2),
42193
+ key = _ref8[0],
42194
+ filter = _ref8[1];
42195
 
42196
  return _react2.default.createElement(_Filter2.default, {
42197
  key: key + "-" + i,
42384
  defaults: {
42385
  provider: "unsplash",
42386
  order: "latest",
42387
+ per_page: "20"
42388
  },
42389
  unsplash: {
42390
  requires_key: false,
42391
+ auth_headers: false,
42392
  new: false,
42393
+ api_var: "client_id",
42394
+ api_query_var: "client_id=",
42395
+ collections_api: "https://api.unsplash.com/collections/",
42396
+ photo_api: "https://api.unsplash.com/photos/",
42397
+ search_api: "https://api.unsplash.com/search/photos/",
42398
+ search_var: "query",
42399
+ arr_key: "results"
 
42400
  },
42401
  pixabay: {
42402
  requires_key: true,
42403
+ auth_headers: false,
42404
+ new: true,
42405
+ api_var: "key",
42406
+ api_query_var: "key=",
42407
+ photo_api: "https://pixabay.com/api/",
42408
+ search_api: "https://pixabay.com/api/",
42409
+ search_var: "q",
42410
+ arr_key: "hits"
42411
+ },
42412
+ pexels: {
42413
+ requires_key: true,
42414
+ auth_headers: true,
42415
+ new: true,
42416
+ api_var: "",
42417
+ api_query_var: "",
42418
+ photo_api: "https://api.pexels.com/v1/curated/",
42419
+ search_api: "https://api.pexels.com/v1/search/",
42420
+ search_var: "query",
42421
+ arr_key: "photos"
42422
  }
42423
  };
42424
 
42435
 
42436
 
42437
  module.exports = {
42438
+ pexels: {
42439
+ filters: {
42440
+ order_by: {
42441
+ label: "orderby",
42442
+ default: "curated",
42443
+ filters: ["curated"]
42444
+ }
42445
+ },
42446
+ search: {
42447
+ orientation: {
42448
+ label: "orientation",
42449
+ default: "all",
42450
+ filters: ["all", "landscape", "portrait", "square"]
42451
+ },
42452
+ color: {
42453
+ label: "colors",
42454
+ default: "all",
42455
+ filters: ["all", "red", "orange", "yellow", "green", "turquoise", "blue", "violet", "pink", "brown", "black", "gray", "white"]
42456
+ },
42457
+ size: {
42458
+ label: "size",
42459
+ default: "all",
42460
+ filters: ["all", "large", "medium", "small"]
42461
+ }
42462
+ }
42463
+ },
42464
  unsplash: {
42465
  filters: {
42466
  order_by: {
42543
 
42544
 
42545
  Object.defineProperty(exports, "__esModule", {
42546
+ value: true
42547
  });
42548
+
42549
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
42550
+
42551
  exports.default = buildTestURL;
42552
 
42553
  var _API = __webpack_require__(/*! ../constants/API */ "./src/js/constants/API.js");
42554
 
42555
  var _API2 = _interopRequireDefault(_API);
42556
 
42557
+ var _buildURL = __webpack_require__(/*! ./buildURL */ "./src/js/functions/buildURL.js");
42558
+
42559
+ var _buildURL2 = _interopRequireDefault(_buildURL);
42560
+
42561
+ var _getQueryParams = __webpack_require__(/*! ./getQueryParams */ "./src/js/functions/getQueryParams.js");
42562
+
42563
+ var _getQueryParams2 = _interopRequireDefault(_getQueryParams);
42564
+
42565
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
42566
 
42567
  /**
42571
  * @return {string} The API URL.
42572
  */
42573
  function buildTestURL(provider) {
42574
+ var api = _API2.default[provider];
42575
+ var options = {
42576
+ per_page: 5,
42577
+ page: 1
42578
+ };
42579
 
42580
+ // Build URL.
42581
+ var params = (0, _getQueryParams2.default)(provider);
42582
+ params = _extends({}, params, options);
42583
+ var url = (0, _buildURL2.default)(api.photo_api, params);
42584
+
42585
+ return url;
42586
  }
42587
 
42588
  /***/ }),
42589
 
42590
+ /***/ "./src/js/functions/buildURL.js":
42591
+ /*!**************************************!*\
42592
+ !*** ./src/js/functions/buildURL.js ***!
42593
+ \**************************************/
42594
  /*! no static exports found */
42595
  /***/ (function(module, exports, __webpack_require__) {
42596
 
42600
  Object.defineProperty(exports, "__esModule", {
42601
  value: true
42602
  });
42603
+ exports.default = buildURL;
42604
  /**
42605
+ * Build the API query parameters
42606
  *
42607
+ * @param {string} url The base API URL.
42608
+ * @param {object} params The current params object.
42609
+ * @return {string} The new API URL with querystring params.
42610
  */
42611
+ function buildURL(url, params) {
42612
+ if (!url) {
42613
+ return "";
 
 
 
 
42614
  }
42615
+ var api_url = new URL(url);
42616
+ Object.keys(params).forEach(function (key) {
42617
+ api_url.searchParams.append(key, params[key]);
42618
+ });
 
42619
 
42620
+ return api_url;
 
 
42621
  }
42622
 
42623
  /***/ }),
42624
 
42625
+ /***/ "./src/js/functions/capitalizeFirstLetter.js":
42626
+ /*!***************************************************!*\
42627
+ !*** ./src/js/functions/capitalizeFirstLetter.js ***!
42628
+ \***************************************************/
42629
  /*! no static exports found */
42630
  /***/ (function(module, exports, __webpack_require__) {
42631
 
42633
 
42634
 
42635
  Object.defineProperty(exports, "__esModule", {
42636
+ value: true
42637
  });
42638
+ exports.default = capitalizeFirstLetter;
42639
  /**
42640
+ * Capitalize the first letter of a string.
 
 
42641
  *
42642
+ * @param {string} str The string to format.
42643
+ * @return {string} The formatted string.
42644
  */
42645
+ function capitalizeFirstLetter(str) {
42646
+ return str.charAt(0).toUpperCase() + str.slice(1);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42647
  }
42648
 
42649
  /***/ }),
42650
 
42651
+ /***/ "./src/js/functions/consoleStatus.js":
42652
+ /*!*******************************************!*\
42653
+ !*** ./src/js/functions/consoleStatus.js ***!
42654
+ \*******************************************/
42655
  /*! no static exports found */
42656
  /***/ (function(module, exports, __webpack_require__) {
42657
 
42659
 
42660
 
42661
  Object.defineProperty(exports, "__esModule", {
42662
+ value: true
42663
  });
42664
+ exports.default = consoleStatus;
42665
+
42666
+ var _capitalizeFirstLetter = __webpack_require__(/*! ./capitalizeFirstLetter */ "./src/js/functions/capitalizeFirstLetter.js");
42667
+
42668
+ var _capitalizeFirstLetter2 = _interopRequireDefault(_capitalizeFirstLetter);
42669
+
42670
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
42671
+
42672
  /**
42673
+ * Display a console.warn message about API status.
42674
  *
42675
+ * @param {string} provider The API service provider.
42676
+ * @param {string} status The API status.
42677
  */
42678
+ function consoleStatus(provider) {
42679
+ var status = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
 
 
42680
 
42681
+ var local = instant_img_localize;
42682
+ if (status === 400 || status === 401) {
42683
+ // Unsplash/Pixabay incorrect API key.
42684
+ console.warn("[" + local.instant_images + " - " + status + " Error] " + (0, _capitalizeFirstLetter2.default)(provider) + ": " + local.api_invalid_msg);
42685
+ }
42686
+ if (status === 429) {
42687
+ // Pixabay - too many requests.
42688
+ console.warn("[" + local.instant_images + " - " + status + " Error] " + (0, _capitalizeFirstLetter2.default)(provider) + ": " + local.api_ratelimit_msg);
42689
+ }
42690
  }
42691
 
42692
  /***/ }),
42705
  value: true
42706
  });
42707
  exports.default = generateAttribution;
42708
+
42709
+ var _capitalizeFirstLetter = __webpack_require__(/*! ./capitalizeFirstLetter */ "./src/js/functions/capitalizeFirstLetter.js");
42710
+
42711
+ var _capitalizeFirstLetter2 = _interopRequireDefault(_capitalizeFirstLetter);
42712
+
42713
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
42714
+
42715
  /**
42716
  * Get the API URL for searches by ID.
42717
  *
42721
  * @return {string} The raw attribution HTML.
42722
  */
42723
  function generateAttribution(provider, url, name) {
42724
+ var provider_url = provider + "_url";
42725
+ var referral = "?utm_source=wordpress-instant-images&utm_medium=referral";
42726
+ var attribution = instant_img_localize.photo_by + "<a href=\"" + url + "\">" + name + "</a> on <a href=\"" + instant_img_localize[provider_url] + "/?" + referral + "\">" + (0, _capitalizeFirstLetter2.default)(provider) + "</a>";
42727
+
42728
+ return attribution;
42729
+ }
42730
+
42731
+ /***/ }),
42732
+
42733
+ /***/ "./src/js/functions/getHeaders.js":
42734
+ /*!****************************************!*\
42735
+ !*** ./src/js/functions/getHeaders.js ***!
42736
+ \****************************************/
42737
+ /*! no static exports found */
42738
+ /***/ (function(module, exports, __webpack_require__) {
42739
+
42740
+ "use strict";
42741
 
42742
+
42743
+ Object.defineProperty(exports, "__esModule", {
42744
+ value: true
42745
+ });
42746
+ exports.default = getHeaders;
42747
+ /**
42748
+ * Build the required auth headers for the provider.
42749
+ *
42750
+ * @param {string} provider The current provider.
42751
+ * @return {object} The headers as an object.
42752
+ */
42753
+ function getHeaders(provider) {
42754
+ var api_key = instant_img_localize[provider + "_app_id"];
42755
+ var headers = {};
42756
  switch (provider) {
42757
+ case "pexels":
42758
+ headers = {
42759
+ Authorization: api_key
42760
+ };
42761
  break;
42762
+
42763
+ default:
42764
  break;
42765
  }
42766
 
42767
+ return headers;
42768
  }
42769
 
42770
  /***/ }),
42793
  */
42794
  function getProp(provider, result, attribute) {
42795
  var value = "";
42796
+ var referral = "?utm_source=wordpress-instant-images&utm_medium=referral";
42797
  switch (attribute) {
42798
  case "thumb":
42799
  if (provider === "pixabay") {
42802
  if (provider === "unsplash") {
42803
  value = result.urls.thumb;
42804
  }
42805
+ if (provider === "pexels") {
42806
+ value = result.src.tiny;
42807
+ }
42808
  break;
42809
 
42810
  case "img":
42814
  if (provider === "unsplash") {
42815
  value = result.urls.small;
42816
  }
42817
+ if (provider === "pexels") {
42818
+ value = result.src.large;
42819
+ }
42820
  break;
42821
 
42822
  case "full_size":
42826
  if (provider === "unsplash") {
42827
  value = result.urls.full;
42828
  }
42829
+ if (provider === "pexels") {
42830
+ value = result.src.original;
42831
+ }
42832
  break;
42833
 
42834
  case "author":
42838
  if (provider === "unsplash") {
42839
  value = result.user.name;
42840
  }
42841
+ if (provider === "pexels") {
42842
+ value = result.photographer;
42843
+ }
42844
  break;
42845
 
42846
  case "user":
42850
  if (provider === "unsplash") {
42851
  value = result.user.username;
42852
  }
42853
+ if (provider === "pexels") {
42854
+ value = result.photographer_id;
42855
+ }
42856
  break;
42857
 
42858
  case "name":
42862
  if (provider === "unsplash") {
42863
  value = result.user.name;
42864
  }
42865
+ if (provider === "pexels") {
42866
+ value = result.photographer;
42867
+ }
42868
  break;
42869
 
42870
  case "user_photo":
42874
  if (provider === "unsplash") {
42875
  value = result.user.profile_image.small;
42876
  }
42877
+ if (provider === "pexels") {
42878
+ value = false;
42879
+ }
42880
  break;
42881
 
42882
  case "user_url":
42883
  if (provider === "pixabay") {
42884
+ value = instant_img_localize.pixabay_url + "/users/" + result.user + "-" + result.user_id + "/?" + referral;
42885
  }
42886
  if (provider === "unsplash") {
42887
+ value = instant_img_localize.unsplash_url + "/@" + result.user.username + "?" + referral;
42888
+ }
42889
+ if (provider === "pexels") {
42890
+ value = result.photographer_url + "?" + referral;
42891
  }
42892
  break;
42893
 
42898
  if (provider === "unsplash") {
42899
  value = result.links.html;
42900
  }
42901
+ if (provider === "pexels") {
42902
+ value = result.url;
42903
+ }
42904
  break;
42905
 
42906
  case "likes":
42910
  if (provider === "unsplash") {
42911
  value = result.likes;
42912
  }
42913
+ if (provider === "pexels") {
42914
+ value = false;
42915
+ }
42916
+ break;
42917
+
42918
+ case "alt":
42919
+ if (provider === "pixabay") {
42920
+ value = result.alt_description;
42921
+ }
42922
+ if (provider === "unsplash") {
42923
+ value = result.alt_description;
42924
+ }
42925
+ if (provider === "pexels") {
42926
+ value = result.alt;
42927
+ }
42928
  break;
42929
  }
42930
 
42957
  /**
42958
  * Get the default provider on page load.
42959
  *
42960
+ * @return {string} The default service provider.
42961
  */
42962
  function getProvider() {
42963
  return instant_img_localize && instant_img_localize.default_provider ? instant_img_localize.default_provider : _API2.default.defaults.provider;
42965
 
42966
  /***/ }),
42967
 
42968
+ /***/ "./src/js/functions/getQueryParams.js":
42969
+ /*!********************************************!*\
42970
+ !*** ./src/js/functions/getQueryParams.js ***!
42971
+ \********************************************/
42972
+ /*! no static exports found */
42973
+ /***/ (function(module, exports, __webpack_require__) {
42974
+
42975
+ "use strict";
42976
+
42977
+
42978
+ Object.defineProperty(exports, "__esModule", {
42979
+ value: true
42980
+ });
42981
+
42982
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
42983
+
42984
+ exports.default = getQueryParams;
42985
+ exports.getAuth = getAuth;
42986
+ exports.getContentSafety = getContentSafety;
42987
+
42988
+ var _API = __webpack_require__(/*! ../constants/API */ "./src/js/constants/API.js");
42989
+
42990
+ var _API2 = _interopRequireDefault(_API);
42991
+
42992
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
42993
+
42994
+ /**
42995
+ * Build the API query parameters
42996
+ *
42997
+ * @param {string} provider The current service provider.
42998
+ * @param {object} filters Optional query filters to append to base params.
42999
+ * @return {object} Parameters used for the fetch request.
43000
+ */
43001
+ function getQueryParams(provider, filters) {
43002
+ if (!provider) {
43003
+ return {};
43004
+ }
43005
+
43006
+ // Default params.
43007
+ var params = {
43008
+ per_page: _API2.default.defaults.per_page
43009
+ };
43010
+
43011
+ params = getAuth(params, provider);
43012
+ params = getContentSafety(params, provider);
43013
+ params = _extends({}, params, filters);
43014
+
43015
+ /**
43016
+ * Display query params in the browser console.
43017
+ *
43018
+ * Global plugin hook.
43019
+ */
43020
+ if (instant_img_localize.query_debug) {
43021
+ console.table(params);
43022
+ }
43023
+ return params;
43024
+ }
43025
+
43026
+ /**
43027
+ * Set the photo safety for indicating that only images suitable for all ages should be returned.
43028
+ * @see https://unsplash.com/documentation#content-safety
43029
+ * @see https://pixabay.com/api/docs/
43030
+ *
43031
+ * @param {object} params The current params object.
43032
+ * @param {string} provider The current service provider.
43033
+ * @return {object} The fetch parameters object.
43034
+ */
43035
+ function getAuth(params, provider) {
43036
+ var has_auth = _API2.default[provider].api_var ? true : false;
43037
+ if (!has_auth || !provider) {
43038
+ return params;
43039
+ }
43040
+ params[_API2.default[provider].api_var] = instant_img_localize[provider + "_app_id"];
43041
+ return params;
43042
+ }
43043
+
43044
+ /**
43045
+ * Set the photo safety for indicating that only images suitable for all ages should be returned.
43046
+ * @see https://unsplash.com/documentation#content-safety
43047
+ * @see https://pixabay.com/api/docs/
43048
+ *
43049
+ * @param {object} params The current params object.
43050
+ * @param {string} provider The current service provider.
43051
+ * @return {object} The fetch parameters object.
43052
+ */
43053
+ function getContentSafety(params, provider) {
43054
+ switch (provider) {
43055
+ case "unsplash":
43056
+ if (instant_img_localize.unsplash_content_filter) {
43057
+ params.content_filter = instant_img_localize.unsplash_content_filter;
43058
+ }
43059
+ break;
43060
+
43061
+ case "pixabay":
43062
+ if (instant_img_localize.pixabay_safesearch) {
43063
+ params.safesearch = instant_img_localize.pixabay_safesearch;
43064
+ }
43065
+ break;
43066
+ }
43067
+ return params;
43068
+ }
43069
+
43070
+ /***/ }),
43071
+
43072
  /***/ "./src/js/functions/getResults.js":
43073
  /*!****************************************!*\
43074
  !*** ./src/js/functions/getResults.js ***!
43084
  });
43085
  exports.default = getResults;
43086
  exports.getResultById = getResultById;
43087
+ exports.getSearchTotalByProvider = getSearchTotalByProvider;
43088
  /**
43089
  * Access the results of different providers.
43090
  * Unsplash and Pixabay return results in different object formats.
43099
  if (!data) {
43100
  return [];
43101
  }
 
43102
  var results = [];
43103
+
43104
  switch (provider) {
43105
  case "unsplash":
43106
  if (is_search) {
43110
  }
43111
  break;
43112
 
43113
+ default:
43114
  results = data[key] || [];
43115
  break;
43116
  }
43134
  var result = [];
43135
  switch (provider) {
43136
  case "unsplash":
43137
+ case "pexels":
43138
  result = data || [];
43139
  break;
43140
 
43146
  return result;
43147
  }
43148
 
43149
+ /**
43150
+ * Get the total search results by provider.
43151
+ *
43152
+ * @param {string} provider The current service provider.
43153
+ * @param {object} obj The search data object.
43154
+ * @return {string} The total results.
43155
+ */
43156
+ function getSearchTotalByProvider(provider, obj) {
43157
+ var total = "";
43158
+ switch (provider) {
43159
+ case "pexels":
43160
+ total = obj.total_results;
43161
+ break;
43162
+
43163
+ default:
43164
+ total = obj.total;
43165
+ break;
43166
+ }
43167
+
43168
+ return total;
43169
+ }
43170
+
43171
  /***/ }),
43172
 
43173
  /***/ "./src/js/functions/helpers.js":
43281
  });
43282
  exports.default = searchByID;
43283
  /**
43284
+ * Get the API URL for searching by ID.
43285
+ * Prepending id:{photo_id} to search terms will search photos by unique ID.
43286
  *
43287
+ * @param {object} options An object containing provider variables.
43288
+ * @param {string} term The photo search term.
43289
+ * @return {string} The search API URL.
 
 
43290
  */
43291
+ function searchByID(options, term) {
43292
+ var provider = options.provider,
43293
+ api_provider = options.api_provider;
43294
+ var photo_api = api_provider.photo_api;
43295
+
43296
+ var id = term.replace("id:", "");
43297
+
43298
  var url = "";
43299
  switch (provider) {
43300
  case "unsplash":
43301
+ url = "" + photo_api + id; // https://api.unsplash.com/photos/{PHOTO_ID}
43302
  break;
43303
 
43304
  case "pixabay":
43305
+ url = photo_api + "?id=" + id; // https://pixabay.com/api/?id={PHOTO_ID}
43306
+ break;
43307
+
43308
+ case "pexels":
43309
+ url = photo_api.replace("curated", "photos") + "/" + id; // https://api.pexels.com/v1/photos/{PHOTO_ID}
43310
  break;
43311
  }
43312
 
43315
 
43316
  /***/ }),
43317
 
43318
+ /***/ "./src/js/functions/unsplashDownload.js":
43319
+ /*!**********************************************!*\
43320
+ !*** ./src/js/functions/unsplashDownload.js ***!
43321
+ \**********************************************/
43322
+ /*! no static exports found */
43323
+ /***/ (function(module, exports, __webpack_require__) {
43324
+
43325
+ "use strict";
43326
+
43327
+
43328
+ Object.defineProperty(exports, "__esModule", {
43329
+ value: true
43330
+ });
43331
+ exports.default = unsplashDownload;
43332
+
43333
+ var _buildURL = __webpack_require__(/*! ./buildURL */ "./src/js/functions/buildURL.js");
43334
+
43335
+ var _buildURL2 = _interopRequireDefault(_buildURL);
43336
+
43337
+ var _getQueryParams = __webpack_require__(/*! ./getQueryParams */ "./src/js/functions/getQueryParams.js");
43338
+
43339
+ var _getQueryParams2 = _interopRequireDefault(_getQueryParams);
43340
+
43341
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
43342
+
43343
+ /**
43344
+ * Function to trigger download action at unsplash.com.
43345
+ * This is used to give authors download credits and nothing more.
43346
+ *
43347
+ * @param {object} vars Variables passed from component.
43348
+ * @param {string} id The ID of the image
43349
+ * @since 3.1
43350
+ */
43351
+ function unsplashDownload(vars, id) {
43352
+ var download_url = "" + vars.api_provider.photo_api + id + "/download";
43353
+ var params = (0, _getQueryParams2.default)("unsplash");
43354
+ var url = (0, _buildURL2.default)(download_url, params);
43355
+
43356
+ fetch(url).then(function (data) {
43357
+ return data.json();
43358
+ }).then(function (data) {
43359
+ // Success, nothing else happens here
43360
+ console.log("Image download successsfully triggered at Unsplash.");
43361
+ }).catch(function (error) {
43362
+ console.log(error);
43363
+ });
43364
+ }
43365
+
43366
+ /***/ }),
43367
+
43368
  /***/ "./src/js/functions/updatePluginSetting.js":
43369
  /*!*************************************************!*\
43370
  !*** ./src/js/functions/updatePluginSetting.js ***!
43412
 
43413
  _axios2.default.post(api, JSON.stringify(data), config).then(function (res) {
43414
  var response = res.data;
 
43415
  }).catch(function (error) {
43416
  console.log(error);
43417
  });
dist/js/instant-images-media.min.js CHANGED
@@ -1,14 +1,14 @@
1
- !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}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return 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=81)}([function(e,t,n){"use strict";e.exports=n(22)},function(e,t,n){"use strict";var r=n(10),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return void 0===e}function l(e){return null!==e&&"object"==typeof e}function s(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===i.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:l,isPlainObject:s,isUndefined:a,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:u,isStream:function(e){return l(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function e(){var t={};function n(n,r){s(t[r])&&s(n)?t[r]=e(t[r],n):s(n)?t[r]=e({},n):o(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)c(arguments[r],n);return t},extend:function(e,t,n){return c(t,(function(t,i){e[i]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},function(e,t,n){"use strict";e.exports={defaults:{provider:"unsplash",order:"latest",posts_per_page:"&per_page=20"},unsplash:{requires_key:!1,new:!1,filters:!0,api_query_var:"/?client_id=",photo_api:"https://api.unsplash.com/photos",collections_api:"https://api.unsplash.com/collections",search_api:"https://api.unsplash.com/search/photos",search_query_var:"query",arr_key:"results",orientation:["landscape","portrait","squarish"]},pixabay:{requires_key:!0,new:!1,filters:!0,api_query_var:"/?key=",photo_api:"https://pixabay.com/api",search_api:"https://pixabay.com/api",search_query_var:"q",arr_key:"hits",orientation:["horizontal","vertical"]}}},function(e,t,n){var r,i;"undefined"!=typeof window&&window,void 0===(i="function"==typeof(r=function(){"use strict";function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var n=this._events=this._events||{},r=n[e]=n[e]||[];return-1==r.indexOf(t)&&r.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var n=this._onceEvents=this._onceEvents||{};return(n[e]=n[e]||{})[t]=!0,this}},t.off=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){var r=n.indexOf(t);return-1!=r&&n.splice(r,1),this}},t.emitEvent=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){n=n.slice(0),t=t||[];for(var r=this._onceEvents&&this._onceEvents[e],i=0;i<n.length;i++){var o=n[i];r&&r[o]&&(this.off(e,o),delete r[o]),o.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e})?r.call(t,n,t,e):r)||(e.exports=i)},function(e,t,n){var r,i;
2
  /*!
3
  * getSize v2.0.3
4
  * measure size of elements
5
  * MIT license
6
- */window,void 0===(i="function"==typeof(r=function(){"use strict";function e(e){var t=parseFloat(e);return-1==e.indexOf("%")&&!isNaN(t)&&t}var t="undefined"==typeof console?function(){}:function(e){console.error(e)},n=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],r=n.length;function i(e){var n=getComputedStyle(e);return n||t("Style returned "+n+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),n}var o,a=!1;function l(t){if(function(){if(!a){a=!0;var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box";var n=document.body||document.documentElement;n.appendChild(t);var r=i(t);o=200==Math.round(e(r.width)),l.isBoxSizeOuter=o,n.removeChild(t)}}(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var s=i(t);if("none"==s.display)return function(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t<r;t++)e[n[t]]=0;return e}();var u={};u.width=t.offsetWidth,u.height=t.offsetHeight;for(var c=u.isBorderBox="border-box"==s.boxSizing,f=0;f<r;f++){var d=n[f],p=s[d],h=parseFloat(p);u[d]=isNaN(h)?0:h}var m=u.paddingLeft+u.paddingRight,v=u.paddingTop+u.paddingBottom,y=u.marginLeft+u.marginRight,g=u.marginTop+u.marginBottom,b=u.borderLeftWidth+u.borderRightWidth,_=u.borderTopWidth+u.borderBottomWidth,w=c&&o,k=e(s.width);!1!==k&&(u.width=k+(w?0:m+b));var E=e(s.height);return!1!==E&&(u.height=E+(w?0:v+_)),u.innerWidth=u.width-(m+b),u.innerHeight=u.height-(v+_),u.outerWidth=u.width+y,u.outerHeight=u.height+g,u}}return l})?r.call(t,n,t,e):r)||(e.exports=i)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=o.default[e],n=instant_img_localize[e+"_app_id"];return""+t.photo_api+t.api_query_var+n+"&per_page=5&page=1"};var r,i=n(2),o=(r=i)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";(function(t){var r=n(1),i=n(47),o=n(12),a={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(s=n(13)),s),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(l(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw o(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(a)})),e.exports=u}).call(this,n(19))},function(e,t,n){"use strict";
7
  /*
8
  object-assign
9
  (c) Sindre Sorhus
10
  @license MIT
11
- */var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,l,s=a(e),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))i.call(n,c)&&(s[c]=n[c]);if(r){l=r(n);for(var f=0;f<l.length;f++)o.call(n,l[f])&&(s[l[f]]=n[l[f]])}}return s}},function(e,t,n){"use strict";function r(e){return"string"!=typeof e?"":e.charAt(0).toUpperCase()+e.slice(1)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=instant_img_localize;400!==t&&401!==t||console.warn("["+n.instant_images+" - "+t+" Error] "+r(e)+": "+n.api_invalid_msg);429===t&&console.warn("["+n.instant_images+" - "+t+" Error] "+r(e)+": "+n.api_ratelimit_msg)}},function(e,t,n){e.exports=n(42)},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(1);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var l=e.indexOf("#");-1!==l&&(e=e.slice(0,l)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(1),i=n(48),o=n(49),a=n(11),l=n(50),s=n(53),u=n(54),c=n(14);e.exports=function(e){return new Promise((function(t,n){var f=e.data,d=e.headers,p=e.responseType;r.isFormData(f)&&delete d["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(m+":"+v)}var y=l(e.baseURL,e.url);function g(){if(h){var r="getAllResponseHeaders"in h?s(h.getAllResponseHeaders()):null,o={data:p&&"text"!==p&&"json"!==p?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h};i(t,n,o),h=null}}if(h.open(e.method.toUpperCase(),a(y,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(g)},h.onabort=function(){h&&(n(c("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(c("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var b=(e.withCredentials||u(y))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;b&&(d[e.xsrfHeaderName]=b)}"setRequestHeader"in h&&r.forEach(d,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete d[t]:h.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),p&&"json"!==p&&(h.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),n(e),h=null)})),f||(f=null),h.send(f)}))}},function(e,t,n){"use strict";var r=n(12);e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";var r=n(1);e.exports=function(e,t){t=t||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],l=["validateStatus"];function s(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function u(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=s(void 0,e[i])):n[i]=s(e[i],t[i])}r.forEach(i,(function(e){r.isUndefined(t[e])||(n[e]=s(void 0,t[e]))})),r.forEach(o,u),r.forEach(a,(function(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=s(void 0,e[i])):n[i]=s(void 0,t[i])})),r.forEach(l,(function(r){r in t?n[r]=s(e[r],t[r]):r in e&&(n[r]=s(void 0,e[r]))}));var c=i.concat(o).concat(a).concat(l),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===c.indexOf(e)}));return r.forEach(f,u),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(23)},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,u=[],c=!1,f=-1;function d(){c&&s&&(c=!1,s.length?u=s.concat(u):f=-1,u.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=u.length;t;){for(s=u,u=[];++f<t;)s&&s[f].run();f=-1,t=u.length}s=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||c||l(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t="";switch(e){case"unsplash":instant_img_localize.unsplash_content_filter&&(t="&content_filter="+instant_img_localize.unsplash_content_filter);break;case"pixabay":instant_img_localize.pixabay_safesearch&&(t="&safesearch="+instant_img_localize.pixabay_safesearch)}return t}},function(e,t,n){var r;
12
  /*!
13
  Copyright (c) 2018 Jed Watson.
14
  Licensed under the MIT License (MIT), see
@@ -21,7 +21,7 @@ object-assign
21
  *
22
  * This source code is licensed under the MIT license found in the
23
  * LICENSE file in the root directory of this source tree.
24
- */var r=n(7),i=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,l=60110,s=60112;t.Suspense=60113;var u=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;i=f("react.element"),o=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),a=f("react.provider"),l=f("react.context"),s=f("react.forward_ref"),t.Suspense=f("react.suspense"),u=f("react.memo"),c=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function y(){}function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var b=g.prototype=new y;b.constructor=g,r(b,v.prototype),b.isPureReactComponent=!0;var _={current:null},w=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,n){var r,o={},a=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)w.call(t,r)&&!k.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return{$$typeof:i,type:e,key:a,ref:l,props:o,_owner:_.current}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var x=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function O(e,t,n,r,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case i:case o:s=!0}}if(s)return a=a(s=e),e=""===r?"."+T(s,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(x,"$&/")+"/"),O(a,t,n,"",(function(e){return e}))):null!=a&&(S(a)&&(a=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(x,"$&/")+"/")+e)),t.push(a)),1;if(s=0,r=""===r?".":r+":",Array.isArray(e))for(var u=0;u<e.length;u++){var c=r+T(l=e[u],u);s+=O(l,t,n,c,a)}else if("function"==typeof(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e)))for(e=c.call(e),u=0;!(l=e.next()).done;)s+=O(l=l.value,t,n,c=r+T(l,u++),a);else if("object"===l)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return s}function C(e,t,n){if(null==e)return e;var r=[],i=0;return O(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function P(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var L={current:null};function N(){var e=L.current;if(null===e)throw Error(p(321));return e}var z={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:_,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:C,forEach:function(e,t,n){C(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return C(e,(function(){t++})),t},toArray:function(e){return C(e,(function(e){return e}))||[]},only:function(e){if(!S(e))throw Error(p(143));return e}},t.Component=v,t.PureComponent=g,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var o=r({},e.props),a=e.key,l=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,s=_.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)w.call(t,c)&&!k.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){u=Array(c);for(var f=0;f<c;f++)u[f]=arguments[f+2];o.children=u}return{$$typeof:i,type:e.type,key:a,ref:l,props:o,_owner:s}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:l,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=S,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return N().useCallback(e,t)},t.useContext=function(e,t){return N().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return N().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return N().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return N().useLayoutEffect(e,t)},t.useMemo=function(e,t){return N().useMemo(e,t)},t.useReducer=function(e,t,n){return N().useReducer(e,t,n)},t.useRef=function(e){return N().useRef(e)},t.useState=function(e){return N().useState(e)},t.version="17.0.2"},function(e,t,n){"use strict";
25
  /** @license React v17.0.2
26
  * react-dom.production.min.js
27
  *
@@ -29,7 +29,7 @@ object-assign
29
  *
30
  * This source code is licensed under the MIT license found in the
31
  * LICENSE file in the root directory of this source tree.
32
- */var r=n(0),i=n(7),o=n(24);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var l=new Set,s={};function u(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)l.add(t[e])}var f=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,h={},m={};function v(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){y[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];y[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){y[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){y[e]=new v(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".split(" ").forEach((function(e){y[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){y[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){y[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){y[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){y[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function _(e,t,n,r){var i=y.hasOwnProperty(t)?y[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!p.call(m,e)||!p.call(h,e)&&(d.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(g,b);y[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,b);y[t]=new v(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(g,b);y[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),y.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=60103,E=60106,S=60107,x=60108,T=60114,O=60109,C=60110,P=60112,L=60113,N=60120,z=60115,j=60116,I=60121,R=60128,M=60129,A=60130,F=60131;if("function"==typeof Symbol&&Symbol.for){var D=Symbol.for;k=D("react.element"),E=D("react.portal"),S=D("react.fragment"),x=D("react.strict_mode"),T=D("react.profiler"),O=D("react.provider"),C=D("react.context"),P=D("react.forward_ref"),L=D("react.suspense"),N=D("react.suspense_list"),z=D("react.memo"),j=D("react.lazy"),I=D("react.block"),D("react.scope"),R=D("react.opaque.id"),M=D("react.debug_trace_mode"),A=D("react.offscreen"),F=D("react.legacy_hidden")}var U,B="function"==typeof Symbol&&Symbol.iterator;function q(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=B&&e[B]||e["@@iterator"])?e:null}function W(e){if(void 0===U)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);U=t&&t[1]||""}return"\n"+U+e}var H=!1;function V(e,t){if(!e||H)return"";H=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var i=e.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,l=o.length-1;1<=a&&0<=l&&i[a]!==o[l];)l--;for(;1<=a&&0<=l;a--,l--)if(i[a]!==o[l]){if(1!==a||1!==l)do{if(a--,0>--l||i[a]!==o[l])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=l);break}}}finally{H=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?W(e):""}function $(e){switch(e.tag){case 5:return W(e.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return e=V(e.type,!1);case 11:return e=V(e.type.render,!1);case 22:return e=V(e.type._render,!1);case 1:return e=V(e.type,!0);default:return""}}function Q(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case E:return"Portal";case T:return"Profiler";case x:return"StrictMode";case L:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case z:return Q(e.type);case I:return Q(e._render);case j:t=e._payload,e=e._init;try{return Q(e(t))}catch(e){}}return null}function G(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=Y(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function X(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Y(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=G(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&_(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=G(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ie(e,t.type,n):t.hasOwnProperty("defaultValue")&&ie(e,t.type,G(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ie(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function oe(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+G(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function le(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function se(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:G(n)}}function ue(e,t){var n=G(t.value),r=G(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml",de="http://www.w3.org/2000/svg";function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ve=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==de||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ye(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ge={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},be=["Webkit","ms","Moz","O"];function _e(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ge.hasOwnProperty(e)&&ge[e]?(""+t).trim():t+"px"}function we(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=_e(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(ge).forEach((function(e){be.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ge[t]=ge[e]}))}));var ke=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ee(e,t){if(t){if(ke[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function Se(e,t){if(-1===e.indexOf("-"))return"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}}function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Te=null,Oe=null,Ce=null;function Pe(e){if(e=Jr(e)){if("function"!=typeof Te)throw Error(a(280));var t=e.stateNode;t&&(t=ei(t),Te(e.stateNode,e.type,t))}}function Le(e){Oe?Ce?Ce.push(e):Ce=[e]:Oe=e}function Ne(){if(Oe){var e=Oe,t=Ce;if(Ce=Oe=null,Pe(e),t)for(e=0;e<t.length;e++)Pe(t[e])}}function ze(e,t){return e(t)}function je(e,t,n,r,i){return e(t,n,r,i)}function Ie(){}var Re=ze,Me=!1,Ae=!1;function Fe(){null===Oe&&null===Ce||(Ie(),Ne())}function De(e,t){var n=e.stateNode;if(null===n)return null;var r=ei(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var Ue=!1;if(f)try{var Be={};Object.defineProperty(Be,"passive",{get:function(){Ue=!0}}),window.addEventListener("test",Be,Be),window.removeEventListener("test",Be,Be)}catch(e){Ue=!1}function qe(e,t,n,r,i,o,a,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var We=!1,He=null,Ve=!1,$e=null,Qe={onError:function(e){We=!0,He=e}};function Ge(e,t,n,r,i,o,a,l,s){We=!1,He=null,qe.apply(Qe,arguments)}function Ye(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ke(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Xe(e){if(Ye(e)!==e)throw Error(a(188))}function Je(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ye(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Xe(i),e;if(o===r)return Xe(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var l=!1,s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}if(!l){for(s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Ze(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,it=!1,ot=[],at=null,lt=null,st=null,ut=new Map,ct=new Map,ft=[],dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pt(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function ht(e,t){switch(e){case"focusin":case"focusout":at=null;break;case"dragenter":case"dragleave":lt=null;break;case"mouseover":case"mouseout":st=null;break;case"pointerover":case"pointerout":ut.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ct.delete(t.pointerId)}}function mt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=pt(t,n,r,i,o),null!==t&&(null!==(t=Jr(t))&&tt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function vt(e){var t=Xr(e.target);if(null!==t){var n=Ye(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ke(n)))return e.blockedOn=t,void rt(e.lanePriority,(function(){o.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function yt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Jr(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function gt(e,t,n){yt(e)&&n.delete(t)}function bt(){for(it=!1;0<ot.length;){var e=ot[0];if(null!==e.blockedOn){null!==(e=Jr(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&ot.shift()}null!==at&&yt(at)&&(at=null),null!==lt&&yt(lt)&&(lt=null),null!==st&&yt(st)&&(st=null),ut.forEach(gt),ct.forEach(gt)}function _t(e,t){e.blockedOn===t&&(e.blockedOn=null,it||(it=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,bt)))}function wt(e){function t(t){return _t(t,e)}if(0<ot.length){_t(ot[0],e);for(var n=1;n<ot.length;n++){var r=ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==at&&_t(at,e),null!==lt&&_t(lt,e),null!==st&&_t(st,e),ut.forEach(t),ct.forEach(t),n=0;n<ft.length;n++)(r=ft[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ft.length&&null===(n=ft[0]).blockedOn;)vt(n),null===n.blockedOn&&ft.shift()}function kt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Et={animationend:kt("Animation","AnimationEnd"),animationiteration:kt("Animation","AnimationIteration"),animationstart:kt("Animation","AnimationStart"),transitionend:kt("Transition","TransitionEnd")},St={},xt={};function Tt(e){if(St[e])return St[e];if(!Et[e])return e;var t,n=Et[e];for(t in n)if(n.hasOwnProperty(t)&&t in xt)return St[e]=n[t];return e}f&&(xt=document.createElement("div").style,"AnimationEvent"in window||(delete Et.animationend.animation,delete Et.animationiteration.animation,delete Et.animationstart.animation),"TransitionEvent"in window||delete Et.transitionend.transition);var Ot=Tt("animationend"),Ct=Tt("animationiteration"),Pt=Tt("animationstart"),Lt=Tt("transitionend"),Nt=new Map,zt=new Map,jt=["abort","abort",Ot,"animationEnd",Ct,"animationIteration",Pt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Lt,"transitionEnd","waiting","waiting"];function It(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),zt.set(r,t),Nt.set(r,i),u(i,[r])}}(0,o.unstable_now)();var Rt=8;function Mt(e){if(0!=(1&e))return Rt=15,1;if(0!=(2&e))return Rt=14,2;if(0!=(4&e))return Rt=13,4;var t=24&e;return 0!==t?(Rt=12,t):0!=(32&e)?(Rt=11,32):0!==(t=192&e)?(Rt=10,t):0!=(256&e)?(Rt=9,256):0!==(t=3584&e)?(Rt=8,t):0!=(4096&e)?(Rt=7,4096):0!==(t=4186112&e)?(Rt=6,t):0!==(t=62914560&e)?(Rt=5,t):67108864&e?(Rt=4,67108864):0!=(134217728&e)?(Rt=3,134217728):0!==(t=805306368&e)?(Rt=2,t):0!=(1073741824&e)?(Rt=1,1073741824):(Rt=8,e)}function At(e,t){var n=e.pendingLanes;if(0===n)return Rt=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,l=e.pingedLanes;if(0!==o)r=o,i=Rt=15;else if(0!==(o=134217727&n)){var s=o&~a;0!==s?(r=Mt(s),i=Rt):0!==(l&=o)&&(r=Mt(l),i=Rt)}else 0!==(o=n&~a)?(r=Mt(o),i=Rt):0!==l&&(r=Mt(l),i=Rt);if(0===r)return 0;if(r=n&((0>(r=31-Wt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&a)){if(Mt(t),i<=Rt)return t;Rt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-Wt(t)),r|=e[n],t&=~i;return r}function Ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Dt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Ut(24&~t))?Dt(10,t):e;case 10:return 0===(e=Ut(192&~t))?Dt(8,t):e;case 8:return 0===(e=Ut(3584&~t))&&(0===(e=Ut(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Ut(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function Ut(e){return e&-e}function Bt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function qt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Wt(t)]=n}var Wt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Ht(e)/Vt|0)|0},Ht=Math.log,Vt=Math.LN2;var $t=o.unstable_UserBlockingPriority,Qt=o.unstable_runWithPriority,Gt=!0;function Yt(e,t,n,r){Me||Ie();var i=Xt,o=Me;Me=!0;try{je(i,e,t,n,r)}finally{(Me=o)||Fe()}}function Kt(e,t,n,r){Qt($t,Xt.bind(null,e,t,n,r))}function Xt(e,t,n,r){var i;if(Gt)if((i=0==(4&t))&&0<ot.length&&-1<dt.indexOf(e))e=pt(null,e,t,n,r),ot.push(e);else{var o=Jt(e,t,n,r);if(null===o)i&&ht(e,r);else{if(i){if(-1<dt.indexOf(e))return e=pt(o,e,t,n,r),void ot.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return at=mt(at,e,t,n,r,i),!0;case"dragenter":return lt=mt(lt,e,t,n,r,i),!0;case"mouseover":return st=mt(st,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return ut.set(o,mt(ut.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,ct.set(o,mt(ct.get(o)||null,e,t,n,r,i)),!0}return!1}(o,e,t,n,r))return;ht(e,r)}Lr(e,t,r,null,n)}}}function Jt(e,t,n,r){var i=xe(r);if(null!==(i=Xr(i))){var o=Ye(i);if(null===o)i=null;else{var a=o.tag;if(13===a){if(null!==(i=Ke(o)))return i;i=null}else if(3===a){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return Lr(e,t,r,i,n),null}var Zt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,i="value"in Zt?Zt.value:Zt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return tn=i.slice(e,1<t?1-t:void 0)}function rn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function on(){return!0}function an(){return!1}function ln(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?on:an,this.isPropagationStopped=an,this}return i(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var sn,un,cn,fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=ln(fn),pn=i({},fn,{view:0,detail:0}),hn=ln(pn),mn=i({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(sn=e.screenX-cn.screenX,un=e.screenY-cn.screenY):un=sn=0,cn=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:un}}),vn=ln(mn),yn=ln(i({},mn,{dataTransfer:0})),gn=ln(i({},pn,{relatedTarget:0})),bn=ln(i({},fn,{animationName:0,elapsedTime:0,pseudoElement:0})),_n=ln(i({},fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),wn=ln(i({},fn,{data:0})),kn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},En={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function Tn(){return xn}var On=ln(i({},pn,{key:function(e){if(e.key){var t=kn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?En[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tn,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Cn=ln(i({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=ln(i({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tn})),Ln=ln(i({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nn=ln(i({},mn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),zn=[9,13,27,32],jn=f&&"CompositionEvent"in window,In=null;f&&"documentMode"in document&&(In=document.documentMode);var Rn=f&&"TextEvent"in window&&!In,Mn=f&&(!jn||In&&8<In&&11>=In),An=String.fromCharCode(32),Fn=!1;function Dn(e,t){switch(e){case"keyup":return-1!==zn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var qn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!qn[e.type]:"textarea"===t}function Hn(e,t,n,r){Le(r),0<(t=zr(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,$n=null;function Qn(e){Sr(e,0)}function Gn(e){if(X(Zr(e)))return e}function Yn(e,t){if("change"===e)return t}var Kn=!1;if(f){var Xn;if(f){var Jn="oninput"in document;if(!Jn){var Zn=document.createElement("div");Zn.setAttribute("oninput","return;"),Jn="function"==typeof Zn.oninput}Xn=Jn}else Xn=!1;Kn=Xn&&(!document.documentMode||9<document.documentMode)}function er(){Vn&&(Vn.detachEvent("onpropertychange",tr),$n=Vn=null)}function tr(e){if("value"===e.propertyName&&Gn($n)){var t=[];if(Hn(t,$n,e,xe(e)),e=Qn,Me)e(t);else{Me=!0;try{ze(e,t)}finally{Me=!1,Fe()}}}}function nr(e,t,n){"focusin"===e?(er(),$n=n,(Vn=t).attachEvent("onpropertychange",tr)):"focusout"===e&&er()}function rr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn($n)}function ir(e,t){if("click"===e)return Gn(t)}function or(e,t){if("input"===e||"change"===e)return Gn(t)}var ar="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},lr=Object.prototype.hasOwnProperty;function sr(e,t){if(ar(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!lr.call(t,n[r])||!ar(e[n[r]],t[n[r]]))return!1;return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function fr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var pr=f&&"documentMode"in document&&11>=document.documentMode,hr=null,mr=null,vr=null,yr=!1;function gr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==hr||hr!==J(r)||("selectionStart"in(r=hr)&&dr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&sr(vr,r)||(vr=r,0<(r=zr(mr,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=hr)))}It("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),It("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),It(jt,2);for(var br="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),_r=0;_r<br.length;_r++)zt.set(br[_r],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),kr=new Set("cancel close invalid load scroll toggle".split(" ").concat(wr));function Er(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,l,s,u){if(Ge.apply(this,arguments),We){if(!We)throw Error(a(198));var c=He;We=!1,He=null,Ve||(Ve=!0,$e=c)}}(r,t,void 0,e),e.currentTarget=null}function Sr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==o&&i.isPropagationStopped())break e;Er(i,l,u),o=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,u=l.currentTarget,l=l.listener,s!==o&&i.isPropagationStopped())break e;Er(i,l,u),o=s}}}if(Ve)throw e=$e,Ve=!1,$e=null,e}function xr(e,t){var n=ti(t),r=e+"__bubble";n.has(r)||(Pr(t,e,2,!1),n.add(r))}var Tr="_reactListening"+Math.random().toString(36).slice(2);function Or(e){e[Tr]||(e[Tr]=!0,l.forEach((function(t){kr.has(t)||Cr(t,!1,e,null),Cr(t,!0,e,null)})))}function Cr(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=n;if("selectionchange"===e&&9!==n.nodeType&&(o=n.ownerDocument),null!==r&&!t&&kr.has(e)){if("scroll"!==e)return;i|=2,o=r}var a=ti(o),l=e+"__"+(t?"capture":"bubble");a.has(l)||(t&&(i|=4),Pr(o,e,i,t),a.add(l))}function Pr(e,t,n,r){var i=zt.get(t);switch(void 0===i?2:i){case 0:i=Yt;break;case 1:i=Kt;break;default:i=Xt}n=i.bind(null,t,n,e),i=void 0,!Ue||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Lr(e,t,n,r,i){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===i||8===l.nodeType&&l.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===i||8===s.nodeType&&s.parentNode===i))return;a=a.return}for(;null!==l;){if(null===(a=Xr(l)))return;if(5===(s=a.tag)||6===s){r=o=a;continue e}l=l.parentNode}}r=r.return}!function(e,t,n){if(Ae)return e(t,n);Ae=!0;try{Re(e,t,n)}finally{Ae=!1,Fe()}}((function(){var r=o,i=xe(n),a=[];e:{var l=Nt.get(e);if(void 0!==l){var s=dn,u=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":s=On;break;case"focusin":u="focus",s=gn;break;case"focusout":u="blur",s=gn;break;case"beforeblur":case"afterblur":s=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=vn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=yn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Pn;break;case Ot:case Ct:case Pt:s=bn;break;case Lt:s=Ln;break;case"scroll":s=hn;break;case"wheel":s=Nn;break;case"copy":case"cut":case"paste":s=_n;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Cn}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==l?l+"Capture":null:l;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==d&&(null!=(m=De(h,d))&&c.push(Nr(h,m,p)))),f)break;h=h.return}0<c.length&&(l=new s(l,u,null,n,i),a.push({event:l,listeners:c}))}}if(0==(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(u=n.relatedTarget||n.fromElement)||!Xr(u)&&!u[Yr])&&(s||l)&&(l=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?Xr(u):null)&&(u!==(f=Ye(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=vn,m="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Cn,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==s?l:Zr(s),p=null==u?l:Zr(u),(l=new c(m,h+"leave",s,n,i)).target=f,l.relatedTarget=p,m=null,Xr(i)===r&&((c=new c(d,h+"enter",u,n,i)).target=p,c.relatedTarget=f,m=c),f=m,s&&u)e:{for(d=u,h=0,p=c=s;p;p=jr(p))h++;for(p=0,m=d;m;m=jr(m))p++;for(;0<h-p;)c=jr(c),h--;for(;0<p-h;)d=jr(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=jr(c),d=jr(d)}c=null}else c=null;null!==s&&Ir(a,l,s,c,!1),null!==u&&null!==f&&Ir(a,f,u,c,!0)}if("select"===(s=(l=r?Zr(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var v=Yn;else if(Wn(l))if(Kn)v=or;else{v=rr;var y=nr}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(v=ir);switch(v&&(v=v(e,r))?Hn(a,v,n,i):(y&&y(e,l,r),"focusout"===e&&(y=l._wrapperState)&&y.controlled&&"number"===l.type&&ie(l,"number",l.value)),y=r?Zr(r):window,e){case"focusin":(Wn(y)||"true"===y.contentEditable)&&(hr=y,mr=r,vr=null);break;case"focusout":vr=mr=hr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,gr(a,n,i);break;case"selectionchange":if(pr)break;case"keydown":case"keyup":gr(a,n,i)}var g;if(jn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Bn?Dn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Mn&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Bn&&(g=nn()):(en="value"in(Zt=i)?Zt.value:Zt.textContent,Bn=!0)),0<(y=zr(r,b)).length&&(b=new wn(b,e,null,n,i),a.push({event:b,listeners:y}),g?b.data=g:null!==(g=Un(n))&&(b.data=g))),(g=Rn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Fn=!0,An);case"textInput":return(e=t.data)===An&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!jn&&Dn(e,t)?(e=nn(),tn=en=Zt=null,Bn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mn&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&(0<(r=zr(r,"onBeforeInput")).length&&(i=new wn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=g))}Sr(a,t)}))}function Nr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function zr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=De(e,n))&&r.unshift(Nr(e,o,i)),null!=(o=De(e,t))&&r.push(Nr(e,o,i))),e=e.return}return r}function jr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Ir(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,i?null!=(s=De(n,o))&&a.unshift(Nr(n,s,l)):i||null!=(s=De(n,o))&&a.push(Nr(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Rr(){}var Mr=null,Ar=null;function Fr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Dr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Ur="function"==typeof setTimeout?setTimeout:void 0,Br="function"==typeof clearTimeout?clearTimeout:void 0;function qr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Wr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Hr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Vr=0;var $r=Math.random().toString(36).slice(2),Qr="__reactFiber$"+$r,Gr="__reactProps$"+$r,Yr="__reactContainer$"+$r,Kr="__reactEvents$"+$r;function Xr(e){var t=e[Qr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Yr]||n[Qr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Hr(e);null!==e;){if(n=e[Qr])return n;e=Hr(e)}return t}n=(e=n).parentNode}return null}function Jr(e){return!(e=e[Qr]||e[Yr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Zr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function ei(e){return e[Gr]||null}function ti(e){var t=e[Kr];return void 0===t&&(t=e[Kr]=new Set),t}var ni=[],ri=-1;function ii(e){return{current:e}}function oi(e){0>ri||(e.current=ni[ri],ni[ri]=null,ri--)}function ai(e,t){ri++,ni[ri]=e.current,e.current=t}var li={},si=ii(li),ui=ii(!1),ci=li;function fi(e,t){var n=e.type.contextTypes;if(!n)return li;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function di(e){return null!=(e=e.childContextTypes)}function pi(){oi(ui),oi(si)}function hi(e,t,n){if(si.current!==li)throw Error(a(168));ai(si,t),ai(ui,n)}function mi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,Q(t)||"Unknown",o));return i({},n,r)}function vi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||li,ci=si.current,ai(si,e),ai(ui,ui.current),!0}function yi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=mi(e,t,ci),r.__reactInternalMemoizedMergedChildContext=e,oi(ui),oi(si),ai(si,e)):oi(ui),ai(ui,n)}var gi=null,bi=null,_i=o.unstable_runWithPriority,wi=o.unstable_scheduleCallback,ki=o.unstable_cancelCallback,Ei=o.unstable_shouldYield,Si=o.unstable_requestPaint,xi=o.unstable_now,Ti=o.unstable_getCurrentPriorityLevel,Oi=o.unstable_ImmediatePriority,Ci=o.unstable_UserBlockingPriority,Pi=o.unstable_NormalPriority,Li=o.unstable_LowPriority,Ni=o.unstable_IdlePriority,zi={},ji=void 0!==Si?Si:function(){},Ii=null,Ri=null,Mi=!1,Ai=xi(),Fi=1e4>Ai?xi:function(){return xi()-Ai};function Di(){switch(Ti()){case Oi:return 99;case Ci:return 98;case Pi:return 97;case Li:return 96;case Ni:return 95;default:throw Error(a(332))}}function Ui(e){switch(e){case 99:return Oi;case 98:return Ci;case 97:return Pi;case 96:return Li;case 95:return Ni;default:throw Error(a(332))}}function Bi(e,t){return e=Ui(e),_i(e,t)}function qi(e,t,n){return e=Ui(e),wi(e,t,n)}function Wi(){if(null!==Ri){var e=Ri;Ri=null,ki(e)}Hi()}function Hi(){if(!Mi&&null!==Ii){Mi=!0;var e=0;try{var t=Ii;Bi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ii=null}catch(t){throw null!==Ii&&(Ii=Ii.slice(e+1)),wi(Oi,Wi),t}finally{Mi=!1}}}var Vi=w.ReactCurrentBatchConfig;function $i(e,t){if(e&&e.defaultProps){for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Qi=ii(null),Gi=null,Yi=null,Ki=null;function Xi(){Ki=Yi=Gi=null}function Ji(e){var t=Qi.current;oi(Qi),e.type._context._currentValue=t}function Zi(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function eo(e,t){Gi=e,Ki=Yi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(za=!0),e.firstContext=null)}function to(e,t){if(Ki!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Ki=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Yi){if(null===Gi)throw Error(a(308));Yi=t,Gi.dependencies={lanes:0,firstContext:t,responders:null}}else Yi=Yi.next=t;return e._currentValue}var no=!1;function ro(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function io(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function oo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ao(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function lo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function so(e,t,n,r){var o=e.updateQueue;no=!1;var a=o.firstBaseUpdate,l=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var u=s,c=u.next;u.next=null,null===l?a=c:l.next=c,l=u;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==l&&(null===d?f.firstBaseUpdate=c:d.next=c,f.lastBaseUpdate=u)}}if(null!==a){for(d=o.baseState,l=0,f=c=u=null;;){s=a.lane;var p=a.eventTime;if((r&s)===s){null!==f&&(f=f.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,m=a;switch(s=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,s);break e}d=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null==(s="function"==typeof(h=m.payload)?h.call(p,d,s):h))break e;d=i({},d,s);break e;case 2:no=!0}}null!==a.callback&&(e.flags|=32,null===(s=o.effects)?o.effects=[a]:s.push(a))}else p={eventTime:p,lane:s,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===f?(c=f=p,u=d):f=f.next=p,l|=s;if(null===(a=a.next)){if(null===(s=o.shared.pending))break;a=s.next,s.next=null,o.lastBaseUpdate=s,o.shared.pending=null}}null===f&&(u=d),o.baseState=u,o.firstBaseUpdate=c,o.lastBaseUpdate=f,Il|=l,e.lanes=l,e.memoizedState=d}}function uo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(a(191,i));i.call(r)}}}var co=(new r.Component).refs;function fo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var po={isMounted:function(e){return!!(e=e._reactInternals)&&Ye(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=os(),i=as(e),o=oo(r,i);o.payload=t,null!=n&&(o.callback=n),ao(e,o),ls(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=os(),i=as(e),o=oo(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),ao(e,o),ls(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=os(),r=as(e),i=oo(n,r);i.tag=2,null!=t&&(i.callback=t),ao(e,i),ls(e,r,n)}};function ho(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!sr(n,r)||!sr(i,o))}function mo(e,t,n){var r=!1,i=li,o=t.contextType;return"object"==typeof o&&null!==o?o=to(o):(i=di(t)?ci:si.current,o=(r=null!=(r=t.contextTypes))?fi(e,i):li),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=po,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function vo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&po.enqueueReplaceState(t,t.state,null)}function yo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=co,ro(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=to(o):(o=di(t)?ci:si.current,i.context=fi(e,o)),so(e,n,i,r),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(fo(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&po.enqueueReplaceState(i,i.state,null),so(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4)}var go=Array.isArray;function bo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===co&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function _o(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function wo(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Ds(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function l(t){return e&&null===t.alternate&&(t.flags=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Ws(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=bo(e,t,n),r.return=e,r):((r=Us(n.type,n.key,n.props,null,e.mode,r)).ref=bo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Hs(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=Bs(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Ws(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case k:return(n=Us(t.type,t.key,t.props,null,e.mode,n)).ref=bo(e,null,t),n.return=e,n;case E:return(t=Hs(t,e.mode,n)).return=e,t}if(go(t)||q(t))return(t=Bs(t,e.mode,n,null)).return=e,t;_o(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===i?n.type===S?f(e,t,n.props.children,r,i):u(e,t,n,r):null;case E:return n.key===i?c(e,t,n,r):null}if(go(n)||q(n))return null!==i?null:f(e,t,n,r,null);_o(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case k:return e=e.get(null===r.key?n:r.key)||null,r.type===S?f(t,e,r.props.children,i,r.key):u(t,e,r,i);case E:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(go(r)||q(r))return f(t,e=e.get(n)||null,r,i,null);_o(t,r)}return null}function m(i,a,l,s){for(var u=null,c=null,f=a,m=a=0,v=null;null!==f&&m<l.length;m++){f.index>m?(v=f,f=null):v=f.sibling;var y=p(i,f,l[m],s);if(null===y){null===f&&(f=v);break}e&&f&&null===y.alternate&&t(i,f),a=o(y,a,m),null===c?u=y:c.sibling=y,c=y,f=v}if(m===l.length)return n(i,f),u;if(null===f){for(;m<l.length;m++)null!==(f=d(i,l[m],s))&&(a=o(f,a,m),null===c?u=f:c.sibling=f,c=f);return u}for(f=r(i,f);m<l.length;m++)null!==(v=h(f,i,m,l[m],s))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),a=o(v,a,m),null===c?u=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(i,e)})),u}function v(i,l,s,u){var c=q(s);if("function"!=typeof c)throw Error(a(150));if(null==(s=c.call(s)))throw Error(a(151));for(var f=c=null,m=l,v=l=0,y=null,g=s.next();null!==m&&!g.done;v++,g=s.next()){m.index>v?(y=m,m=null):y=m.sibling;var b=p(i,m,g.value,u);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(i,m),l=o(b,l,v),null===f?c=b:f.sibling=b,f=b,m=y}if(g.done)return n(i,m),c;if(null===m){for(;!g.done;v++,g=s.next())null!==(g=d(i,g.value,u))&&(l=o(g,l,v),null===f?c=g:f.sibling=g,f=g);return c}for(m=r(i,m);!g.done;v++,g=s.next())null!==(g=h(m,i,v,g.value,u))&&(e&&null!==g.alternate&&m.delete(null===g.key?v:g.key),l=o(g,l,v),null===f?c=g:f.sibling=g,f=g);return e&&m.forEach((function(e){return t(i,e)})),c}return function(e,r,o,s){var u="object"==typeof o&&null!==o&&o.type===S&&null===o.key;u&&(o=o.props.children);var c="object"==typeof o&&null!==o;if(c)switch(o.$$typeof){case k:e:{for(c=o.key,u=r;null!==u;){if(u.key===c){switch(u.tag){case 7:if(o.type===S){n(e,u.sibling),(r=i(u,o.props.children)).return=e,e=r;break e}break;default:if(u.elementType===o.type){n(e,u.sibling),(r=i(u,o.props)).ref=bo(e,u,o),r.return=e,e=r;break e}}n(e,u);break}t(e,u),u=u.sibling}o.type===S?((r=Bs(o.props.children,e.mode,s,o.key)).return=e,e=r):((s=Us(o.type,o.key,o.props,null,e.mode,s)).ref=bo(e,r,o),s.return=e,e=s)}return l(e);case E:e:{for(u=o.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Hs(o,e.mode,s)).return=e,e=r}return l(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Ws(o,e.mode,s)).return=e,e=r),l(e);if(go(o))return m(e,r,o,s);if(q(o))return v(e,r,o,s);if(c&&_o(e,o),void 0===o&&!u)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,Q(e.type)||"Component"))}return n(e,r)}}var ko=wo(!0),Eo=wo(!1),So={},xo=ii(So),To=ii(So),Oo=ii(So);function Co(e){if(e===So)throw Error(a(174));return e}function Po(e,t){switch(ai(Oo,t),ai(To,e),ai(xo,So),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}oi(xo),ai(xo,t)}function Lo(){oi(xo),oi(To),oi(Oo)}function No(e){Co(Oo.current);var t=Co(xo.current),n=he(t,e.type);t!==n&&(ai(To,e),ai(xo,n))}function zo(e){To.current===e&&(oi(xo),oi(To))}var jo=ii(0);function Io(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ro=null,Mo=null,Ao=!1;function Fo(e,t){var n=As(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Do(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Uo(e){if(Ao){var t=Mo;if(t){var n=t;if(!Do(e,t)){if(!(t=Wr(n.nextSibling))||!Do(e,t))return e.flags=-1025&e.flags|2,Ao=!1,void(Ro=e);Fo(Ro,n)}Ro=e,Mo=Wr(t.firstChild)}else e.flags=-1025&e.flags|2,Ao=!1,Ro=e}}function Bo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ro=e}function qo(e){if(e!==Ro)return!1;if(!Ao)return Bo(e),Ao=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Dr(t,e.memoizedProps))for(t=Mo;t;)Fo(e,t),t=Wr(t.nextSibling);if(Bo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Mo=Wr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Mo=null}}else Mo=Ro?Wr(e.stateNode.nextSibling):null;return!0}function Wo(){Mo=Ro=null,Ao=!1}var Ho=[];function Vo(){for(var e=0;e<Ho.length;e++)Ho[e]._workInProgressVersionPrimary=null;Ho.length=0}var $o=w.ReactCurrentDispatcher,Qo=w.ReactCurrentBatchConfig,Go=0,Yo=null,Ko=null,Xo=null,Jo=!1,Zo=!1;function ea(){throw Error(a(321))}function ta(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ar(e[n],t[n]))return!1;return!0}function na(e,t,n,r,i,o){if(Go=o,Yo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,$o.current=null===e||null===e.memoizedState?Ca:Pa,e=n(r,i),Zo){o=0;do{if(Zo=!1,!(25>o))throw Error(a(301));o+=1,Xo=Ko=null,t.updateQueue=null,$o.current=La,e=n(r,i)}while(Zo)}if($o.current=Oa,t=null!==Ko&&null!==Ko.next,Go=0,Xo=Ko=Yo=null,Jo=!1,t)throw Error(a(300));return e}function ra(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Xo?Yo.memoizedState=Xo=e:Xo=Xo.next=e,Xo}function ia(){if(null===Ko){var e=Yo.alternate;e=null!==e?e.memoizedState:null}else e=Ko.next;var t=null===Xo?Yo.memoizedState:Xo.next;if(null!==t)Xo=t,Ko=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Ko=e).memoizedState,baseState:Ko.baseState,baseQueue:Ko.baseQueue,queue:Ko.queue,next:null},null===Xo?Yo.memoizedState=Xo=e:Xo=Xo.next=e}return Xo}function oa(e,t){return"function"==typeof t?t(e):t}function aa(e){var t=ia(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Ko,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var l=i.next;i.next=o.next,o.next=l}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var s=l=o=null,u=i;do{var c=u.lane;if((Go&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===s?(l=s=f,o=r):s=s.next=f,Yo.lanes|=c,Il|=c}u=u.next}while(null!==u&&u!==i);null===s?o=r:s.next=l,ar(r,t.memoizedState)||(za=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function la(e){var t=ia(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var l=i=i.next;do{o=e(o,l.action),l=l.next}while(l!==i);ar(o,t.memoizedState)||(za=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function sa(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(Go&e)===e)&&(t._workInProgressVersionPrimary=r,Ho.push(t))),e)return n(t._source);throw Ho.push(t),Error(a(350))}function ua(e,t,n,r){var i=Tl;if(null===i)throw Error(a(349));var o=t._getVersion,l=o(t._source),s=$o.current,u=s.useState((function(){return sa(i,t,n)})),c=u[1],f=u[0];u=Xo;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var v=Yo;return e.memoizedState={refs:p,source:t,subscribe:r},s.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=o(t._source);if(!ar(l,e)){e=n(t._source),ar(f,e)||(c(e),e=as(v),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,a=e;0<a;){var s=31-Wt(a),u=1<<s;r[s]|=e,a&=~u}}}),[n,t,r]),s.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=as(v);i.mutableReadLanes|=r&i.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),ar(h,n)&&ar(m,t)&&ar(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:oa,lastRenderedState:f}).dispatch=c=Ta.bind(null,Yo,e),u.queue=e,u.baseQueue=null,f=sa(i,t,n),u.memoizedState=u.baseState=f),f}function ca(e,t,n){return ua(ia(),e,t,n)}function fa(e){var t=ra();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:oa,lastRenderedState:e}).dispatch=Ta.bind(null,Yo,e),[t.memoizedState,e]}function da(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Yo.updateQueue)?(t={lastEffect:null},Yo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function pa(e){return e={current:e},ra().memoizedState=e}function ha(){return ia().memoizedState}function ma(e,t,n,r){var i=ra();Yo.flags|=e,i.memoizedState=da(1|t,n,void 0,void 0===r?null:r)}function va(e,t,n,r){var i=ia();r=void 0===r?null:r;var o=void 0;if(null!==Ko){var a=Ko.memoizedState;if(o=a.destroy,null!==r&&ta(r,a.deps))return void da(t,n,o,r)}Yo.flags|=e,i.memoizedState=da(1|t,n,o,r)}function ya(e,t){return ma(516,4,e,t)}function ga(e,t){return va(516,4,e,t)}function ba(e,t){return va(4,2,e,t)}function _a(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function wa(e,t,n){return n=null!=n?n.concat([e]):null,va(4,2,_a.bind(null,t,e),n)}function ka(){}function Ea(e,t){var n=ia();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ta(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Sa(e,t){var n=ia();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ta(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function xa(e,t){var n=Di();Bi(98>n?98:n,(function(){e(!0)})),Bi(97<n?97:n,(function(){var n=Qo.transition;Qo.transition=1;try{e(!1),t()}finally{Qo.transition=n}}))}function Ta(e,t,n){var r=os(),i=as(e),o={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===Yo||null!==a&&a===Yo)Zo=Jo=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var l=t.lastRenderedState,s=a(l,n);if(o.eagerReducer=a,o.eagerState=s,ar(s,l))return}catch(e){}ls(e,i,r)}}var Oa={readContext:to,useCallback:ea,useContext:ea,useEffect:ea,useImperativeHandle:ea,useLayoutEffect:ea,useMemo:ea,useReducer:ea,useRef:ea,useState:ea,useDebugValue:ea,useDeferredValue:ea,useTransition:ea,useMutableSource:ea,useOpaqueIdentifier:ea,unstable_isNewReconciler:!1},Ca={readContext:to,useCallback:function(e,t){return ra().memoizedState=[e,void 0===t?null:t],e},useContext:to,useEffect:ya,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ma(4,2,_a.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ma(4,2,e,t)},useMemo:function(e,t){var n=ra();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ra();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Ta.bind(null,Yo,e),[r.memoizedState,e]},useRef:pa,useState:fa,useDebugValue:ka,useDeferredValue:function(e){var t=fa(e),n=t[0],r=t[1];return ya((function(){var t=Qo.transition;Qo.transition=1;try{r(e)}finally{Qo.transition=t}}),[e]),n},useTransition:function(){var e=fa(!1),t=e[0];return pa(e=xa.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=ra();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},ua(r,e,t,n)},useOpaqueIdentifier:function(){if(Ao){var e=!1,t=function(e){return{$$typeof:R,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Vr++).toString(36))),Error(a(355))})),n=fa(t)[1];return 0==(2&Yo.mode)&&(Yo.flags|=516,da(5,(function(){n("r:"+(Vr++).toString(36))}),void 0,null)),t}return fa(t="r:"+(Vr++).toString(36)),t},unstable_isNewReconciler:!1},Pa={readContext:to,useCallback:Ea,useContext:to,useEffect:ga,useImperativeHandle:wa,useLayoutEffect:ba,useMemo:Sa,useReducer:aa,useRef:ha,useState:function(){return aa(oa)},useDebugValue:ka,useDeferredValue:function(e){var t=aa(oa),n=t[0],r=t[1];return ga((function(){var t=Qo.transition;Qo.transition=1;try{r(e)}finally{Qo.transition=t}}),[e]),n},useTransition:function(){var e=aa(oa)[0];return[ha().current,e]},useMutableSource:ca,useOpaqueIdentifier:function(){return aa(oa)[0]},unstable_isNewReconciler:!1},La={readContext:to,useCallback:Ea,useContext:to,useEffect:ga,useImperativeHandle:wa,useLayoutEffect:ba,useMemo:Sa,useReducer:la,useRef:ha,useState:function(){return la(oa)},useDebugValue:ka,useDeferredValue:function(e){var t=la(oa),n=t[0],r=t[1];return ga((function(){var t=Qo.transition;Qo.transition=1;try{r(e)}finally{Qo.transition=t}}),[e]),n},useTransition:function(){var e=la(oa)[0];return[ha().current,e]},useMutableSource:ca,useOpaqueIdentifier:function(){return la(oa)[0]},unstable_isNewReconciler:!1},Na=w.ReactCurrentOwner,za=!1;function ja(e,t,n,r){t.child=null===e?Eo(t,null,n,r):ko(t,e.child,n,r)}function Ia(e,t,n,r,i){n=n.render;var o=t.ref;return eo(t,i),r=na(e,t,n,r,o,i),null===e||za?(t.flags|=1,ja(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,el(e,t,i))}function Ra(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||Fs(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Us(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ma(e,t,a,r,i,o))}return a=e.child,0==(i&o)&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:sr)(i,r)&&e.ref===t.ref)?el(e,t,o):(t.flags|=1,(e=Ds(a,r)).ref=t.ref,e.return=t,t.child=e)}function Ma(e,t,n,r,i,o){if(null!==e&&sr(e.memoizedProps,r)&&e.ref===t.ref){if(za=!1,0==(o&i))return t.lanes=e.lanes,el(e,t,o);0!=(16384&e.flags)&&(za=!0)}return Da(e,t,n,r,o)}function Aa(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},ms(t,n);else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},ms(t,e),null;t.memoizedState={baseLanes:0},ms(t,null!==o?o.baseLanes:n)}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,ms(t,r);return ja(e,t,i,n),t.child}function Fa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Da(e,t,n,r,i){var o=di(n)?ci:si.current;return o=fi(t,o),eo(t,i),n=na(e,t,n,r,o,i),null===e||za?(t.flags|=1,ja(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,el(e,t,i))}function Ua(e,t,n,r,i){if(di(n)){var o=!0;vi(t)}else o=!1;if(eo(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),mo(t,n,r),yo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=to(u):u=fi(t,u=di(n)?ci:si.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==u)&&vo(t,a,r,u),no=!1;var d=t.memoizedState;a.state=d,so(t,r,a,i),s=t.memoizedState,l!==r||d!==s||ui.current||no?("function"==typeof c&&(fo(t,n,c,r),s=t.memoizedState),(l=no||ho(t,n,l,r,d,s,u))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4)):("function"==typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,io(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:$i(t.type,l),a.props=u,f=t.pendingProps,d=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=to(s):s=fi(t,s=di(n)?ci:si.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==f||d!==s)&&vo(t,a,r,s),no=!1,d=t.memoizedState,a.state=d,so(t,r,a,i);var h=t.memoizedState;l!==f||d!==h||ui.current||no?("function"==typeof p&&(fo(t,n,p,r),h=t.memoizedState),(u=no||ho(t,n,u,r,d,h,s))?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=s,r=u):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Ba(e,t,n,r,o,i)}function Ba(e,t,n,r,i,o){Fa(e,t);var a=0!=(64&t.flags);if(!r&&!a)return i&&yi(t,n,!1),el(e,t,o);r=t.stateNode,Na.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=ko(t,e.child,null,o),t.child=ko(t,null,l,o)):ja(e,t,l,o),t.memoizedState=r.state,i&&yi(t,n,!0),t.child}function qa(e){var t=e.stateNode;t.pendingContext?hi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&hi(0,t.context,!1),Po(e,t.containerInfo)}var Wa,Ha,Va,$a={dehydrated:null,retryLane:0};function Qa(e,t,n){var r,i=t.pendingProps,o=jo.current,a=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&o)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(o|=1),ai(jo,1&o),null===e?(void 0!==i.fallback&&Uo(t),e=i.children,o=i.fallback,a?(e=Ga(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=$a,e):"number"==typeof i.unstable_expectedLoadTime?(e=Ga(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=$a,t.lanes=33554432,e):((n=qs({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(i=Ka(e,t,i.children,i.fallback,n),a=t.child,o=e.child.memoizedState,a.memoizedState=null===o?{baseLanes:n}:{baseLanes:o.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=$a,i):(n=Ya(e,t,i.children,n),t.memoizedState=null,n))}function Ga(e,t,n,r){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},0==(2&i)&&null!==o?(o.childLanes=0,o.pendingProps=t):o=qs(t,i,0,null),n=Bs(n,i,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function Ya(e,t,n,r){var i=e.child;return e=i.sibling,n=Ds(i,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Ka(e,t,n,r,i){var o=t.mode,a=e.child;e=a.sibling;var l={mode:"hidden",children:n};return 0==(2&o)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=l,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Ds(a,l),null!==e?r=Ds(e,r):(r=Bs(r,o,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Xa(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),Zi(e.return,t)}function Ja(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.lastEffect=o)}function Za(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ja(e,t,r.children,n),0!=(2&(r=jo.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Xa(e,n);else if(19===e.tag)Xa(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ai(jo,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Io(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ja(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Io(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ja(t,!0,n,null,o,t.lastEffect);break;case"together":Ja(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function el(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Il|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Ds(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ds(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function tl(e,t){if(!Ao)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function nl(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return di(t.type)&&pi(),null;case 3:return Lo(),oi(ui),oi(si),Vo(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(qo(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:zo(t);var o=Co(Oo.current);if(n=t.type,null!==e&&null!=t.stateNode)Ha(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Co(xo.current),qo(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Qr]=t,r[Gr]=l,n){case"dialog":xr("cancel",r),xr("close",r);break;case"iframe":case"object":case"embed":xr("load",r);break;case"video":case"audio":for(e=0;e<wr.length;e++)xr(wr[e],r);break;case"source":xr("error",r);break;case"img":case"image":case"link":xr("error",r),xr("load",r);break;case"details":xr("toggle",r);break;case"input":ee(r,l),xr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},xr("invalid",r);break;case"textarea":se(r,l),xr("invalid",r)}for(var u in Ee(n,l),e=null,l)l.hasOwnProperty(u)&&(o=l[u],"children"===u?"string"==typeof o?r.textContent!==o&&(e=["children",o]):"number"==typeof o&&r.textContent!==""+o&&(e=["children",""+o]):s.hasOwnProperty(u)&&null!=o&&"onScroll"===u&&xr("scroll",r));switch(n){case"input":K(r),re(r,l,!0);break;case"textarea":K(r),ce(r);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(r.onclick=Rr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(u=9===o.nodeType?o:o.ownerDocument,e===fe&&(e=pe(n)),e===fe?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[Qr]=t,e[Gr]=r,Wa(e,t),t.stateNode=e,u=Se(n,r),n){case"dialog":xr("cancel",e),xr("close",e),o=r;break;case"iframe":case"object":case"embed":xr("load",e),o=r;break;case"video":case"audio":for(o=0;o<wr.length;o++)xr(wr[o],e);o=r;break;case"source":xr("error",e),o=r;break;case"img":case"image":case"link":xr("error",e),xr("load",e),o=r;break;case"details":xr("toggle",e),o=r;break;case"input":ee(e,r),o=Z(e,r),xr("invalid",e);break;case"option":o=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=i({},r,{value:void 0}),xr("invalid",e);break;case"textarea":se(e,r),o=le(e,r),xr("invalid",e);break;default:o=r}Ee(n,o);var c=o;for(l in c)if(c.hasOwnProperty(l)){var f=c[l];"style"===l?we(e,f):"dangerouslySetInnerHTML"===l?null!=(f=f?f.__html:void 0)&&ve(e,f):"children"===l?"string"==typeof f?("textarea"!==n||""!==f)&&ye(e,f):"number"==typeof f&&ye(e,""+f):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(s.hasOwnProperty(l)?null!=f&&"onScroll"===l&&xr("scroll",e):null!=f&&_(e,l,f,u))}switch(n){case"input":K(e),re(e,r,!1);break;case"textarea":K(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+G(r.value));break;case"select":e.multiple=!!r.multiple,null!=(l=r.value)?ae(e,!!r.multiple,l,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Rr)}Fr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Va(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=Co(Oo.current),Co(xo.current),qo(t)?(r=t.stateNode,n=t.memoizedProps,r[Qr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Qr]=t,t.stateNode=r)}return null;case 13:return oi(jo),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&qo(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&jo.current)?0===Nl&&(Nl=3):(0!==Nl&&3!==Nl||(Nl=4),null===Tl||0==(134217727&Il)&&0==(134217727&Rl)||fs(Tl,Cl))),(r||n)&&(t.flags|=4),null);case 4:return Lo(),null===e&&Or(t.stateNode.containerInfo),null;case 10:return Ji(t),null;case 17:return di(t.type)&&pi(),null;case 19:if(oi(jo),null===(r=t.memoizedState))return null;if(l=0!=(64&t.flags),null===(u=r.rendering))if(l)tl(r,!1);else{if(0!==Nl||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(u=Io(e))){for(t.flags|=64,tl(r,!1),null!==(l=u.updateQueue)&&(t.updateQueue=l,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(l=n).flags&=2,l.nextEffect=null,l.firstEffect=null,l.lastEffect=null,null===(u=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=u.childLanes,l.lanes=u.lanes,l.child=u.child,l.memoizedProps=u.memoizedProps,l.memoizedState=u.memoizedState,l.updateQueue=u.updateQueue,l.type=u.type,e=u.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ai(jo,1&jo.current|2),t.child}e=e.sibling}null!==r.tail&&Fi()>Dl&&(t.flags|=64,l=!0,tl(r,!1),t.lanes=33554432)}else{if(!l)if(null!==(e=Io(u))){if(t.flags|=64,l=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),tl(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate&&!Ao)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Fi()-r.renderingStartTime>Dl&&1073741824!==n&&(t.flags|=64,l=!0,tl(r,!1),t.lanes=33554432);r.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=r.last)?n.sibling=u:t.child=u,r.last=u)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Fi(),n.sibling=null,t=jo.current,ai(jo,l?1&t|2:1&t),n):null;case 23:case 24:return vs(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function rl(e){switch(e.tag){case 1:di(e.type)&&pi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Lo(),oi(ui),oi(si),Vo(),0!=(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return zo(e),null;case 13:return oi(jo),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return oi(jo),null;case 4:return Lo(),null;case 10:return Ji(e),null;case 23:case 24:return vs(),null;default:return null}}function il(e,t){try{var n="",r=t;do{n+=$(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function ol(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Wa=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ha=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Co(xo.current);var a,l=null;switch(n){case"input":o=Z(e,o),r=Z(e,r),l=[];break;case"option":o=oe(e,o),r=oe(e,r),l=[];break;case"select":o=i({},o,{value:void 0}),r=i({},r,{value:void 0}),l=[];break;case"textarea":o=le(e,o),r=le(e,r),l=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Rr)}for(f in Ee(n,r),n=null,o)if(!r.hasOwnProperty(f)&&o.hasOwnProperty(f)&&null!=o[f])if("style"===f){var u=o[f];for(a in u)u.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(s.hasOwnProperty(f)?l||(l=[]):(l=l||[]).push(f,null));for(f in r){var c=r[f];if(u=null!=o?o[f]:void 0,r.hasOwnProperty(f)&&c!==u&&(null!=c||null!=u))if("style"===f)if(u){for(a in u)!u.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&u[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(l||(l=[]),l.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(l=l||[]).push(f,c)):"children"===f?"string"!=typeof c&&"number"!=typeof c||(l=l||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(s.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&xr("scroll",e),l||u===c||(l=[])):"object"==typeof c&&null!==c&&c.$$typeof===R?c.toString():(l=l||[]).push(f,c))}n&&(l=l||[]).push("style",n);var f=l;(t.updateQueue=f)&&(t.flags|=4)}},Va=function(e,t,n,r){n!==r&&(t.flags|=4)};var al="function"==typeof WeakMap?WeakMap:Map;function ll(e,t,n){(n=oo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Wl||(Wl=!0,Hl=r),ol(0,t)},n}function sl(e,t,n){(n=oo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return ol(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Vl?Vl=new Set([this]):Vl.add(this),ol(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var ul="function"==typeof WeakSet?WeakSet:Set;function cl(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){js(e,t)}else t.current=null}function fl(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:$i(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&qr(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(a(163))}function dl(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(Ls(n,e),Ps(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:$i(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&uo(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}uo(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Fr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&wt(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(a(163))}function pl(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,r.style.display=_e("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function hl(e,t){if(bi&&"function"==typeof bi.onCommitFiberUnmount)try{bi.onCommitFiberUnmount(gi,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))Ls(t,n);else{r=t;try{i()}catch(e){js(r,e)}}n=n.next}while(n!==e)}break;case 1:if(cl(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){js(t,e)}break;case 5:cl(t);break;case 4:gl(e,t)}}function ml(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function vl(e){return 5===e.tag||3===e.tag||4===e.tag}function yl(e){e:{for(var t=e.return;null!==t;){if(vl(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(ye(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||vl(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=Rr));else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function gl(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(a(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var l=e,s=i,u=s;;)if(hl(l,u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===s)break e;for(;null===u.sibling;){if(null===u.return||u.return===s)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}r?(l=n,s=i.stateNode,8===l.nodeType?l.parentNode.removeChild(s):l.removeChild(s)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(hl(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function bl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Gr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Se(e,i),t=Se(e,r),i=0;i<o.length;i+=2){var l=o[i],s=o[i+1];"style"===l?we(n,s):"dangerouslySetInnerHTML"===l?ve(n,s):"children"===l?ye(n,s):_(n,l,s,t)}switch(e){case"input":ne(n,r);break;case"textarea":ue(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?ae(n,!!r.multiple,o,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,wt(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(Fl=Fi(),pl(t.child,!0)),void _l(t);case 19:return void _l(t);case 17:return;case 23:case 24:return void pl(t,null!==t.memoizedState)}throw Error(a(163))}function _l(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ul),t.forEach((function(t){var r=Rs.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function wl(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var kl=Math.ceil,El=w.ReactCurrentDispatcher,Sl=w.ReactCurrentOwner,xl=0,Tl=null,Ol=null,Cl=0,Pl=0,Ll=ii(0),Nl=0,zl=null,jl=0,Il=0,Rl=0,Ml=0,Al=null,Fl=0,Dl=1/0;function Ul(){Dl=Fi()+500}var Bl,ql=null,Wl=!1,Hl=null,Vl=null,$l=!1,Ql=null,Gl=90,Yl=[],Kl=[],Xl=null,Jl=0,Zl=null,es=-1,ts=0,ns=0,rs=null,is=!1;function os(){return 0!=(48&xl)?Fi():-1!==es?es:es=Fi()}function as(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Di()?1:2;if(0===ts&&(ts=jl),0!==Vi.transition){0!==ns&&(ns=null!==Al?Al.pendingLanes:0),e=ts;var t=4186112&~ns;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Di(),0!=(4&xl)&&98===e?e=Dt(12,ts):e=Dt(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ts),e}function ls(e,t,n){if(50<Jl)throw Jl=0,Zl=null,Error(a(185));if(null===(e=ss(e,t)))return null;qt(e,t,n),e===Tl&&(Rl|=t,4===Nl&&fs(e,Cl));var r=Di();1===t?0!=(8&xl)&&0==(48&xl)?ds(e):(us(e,n),0===xl&&(Ul(),Wi())):(0==(4&xl)||98!==r&&99!==r||(null===Xl?Xl=new Set([e]):Xl.add(e)),us(e,n)),Al=e}function ss(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function us(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,l=e.pendingLanes;0<l;){var s=31-Wt(l),u=1<<s,c=o[s];if(-1===c){if(0==(u&r)||0!=(u&i)){c=t,Mt(u);var f=Rt;o[s]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=u);l&=~u}if(r=At(e,e===Tl?Cl:0),t=Rt,0===r)null!==n&&(n!==zi&&ki(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==zi&&ki(n)}15===t?(n=ds.bind(null,e),null===Ii?(Ii=[n],Ri=wi(Oi,Hi)):Ii.push(n),n=zi):14===t?n=qi(99,ds.bind(null,e)):n=qi(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),cs.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function cs(e){if(es=-1,ns=ts=0,0!=(48&xl))throw Error(a(327));var t=e.callbackNode;if(Cs()&&e.callbackNode!==t)return null;var n=At(e,e===Tl?Cl:0);if(0===n)return null;var r=n,i=xl;xl|=16;var o=bs();for(Tl===e&&Cl===r||(Ul(),ys(e,r));;)try{ks();break}catch(t){gs(e,t)}if(Xi(),El.current=o,xl=i,null!==Ol?r=0:(Tl=null,Cl=0,r=Nl),0!=(jl&Rl))ys(e,0);else if(0!==r){if(2===r&&(xl|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(n=Ft(e))&&(r=_s(e,n))),1===r)throw t=zl,ys(e,0),fs(e,n),us(e,Fi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:xs(e);break;case 3:if(fs(e,n),(62914560&n)===n&&10<(r=Fl+500-Fi())){if(0!==At(e,0))break;if(((i=e.suspendedLanes)&n)!==n){os(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ur(xs.bind(null,e),r);break}xs(e);break;case 4:if(fs(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var l=31-Wt(n);o=1<<l,(l=r[l])>i&&(i=l),n&=~o}if(n=i,10<(n=(120>(n=Fi()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*kl(n/1960))-n)){e.timeoutHandle=Ur(xs.bind(null,e),n);break}xs(e);break;case 5:xs(e);break;default:throw Error(a(329))}}return us(e,Fi()),e.callbackNode===t?cs.bind(null,e):null}function fs(e,t){for(t&=~Ml,t&=~Rl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Wt(t),r=1<<n;e[n]=-1,t&=~r}}function ds(e){if(0!=(48&xl))throw Error(a(327));if(Cs(),e===Tl&&0!=(e.expiredLanes&Cl)){var t=Cl,n=_s(e,t);0!=(jl&Rl)&&(n=_s(e,t=At(e,t)))}else n=_s(e,t=At(e,0));if(0!==e.tag&&2===n&&(xl|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(t=Ft(e))&&(n=_s(e,t))),1===n)throw n=zl,ys(e,0),fs(e,t),us(e,Fi()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,xs(e),us(e,Fi()),null}function ps(e,t){var n=xl;xl|=1;try{return e(t)}finally{0===(xl=n)&&(Ul(),Wi())}}function hs(e,t){var n=xl;xl&=-2,xl|=8;try{return e(t)}finally{0===(xl=n)&&(Ul(),Wi())}}function ms(e,t){ai(Ll,Pl),Pl|=t,jl|=t}function vs(){Pl=Ll.current,oi(Ll)}function ys(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Br(n)),null!==Ol)for(n=Ol.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&pi();break;case 3:Lo(),oi(ui),oi(si),Vo();break;case 5:zo(r);break;case 4:Lo();break;case 13:case 19:oi(jo);break;case 10:Ji(r);break;case 23:case 24:vs()}n=n.return}Tl=e,Ol=Ds(e.current,null),Cl=Pl=jl=t,Nl=0,zl=null,Ml=Rl=Il=0}function gs(e,t){for(;;){var n=Ol;try{if(Xi(),$o.current=Oa,Jo){for(var r=Yo.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}Jo=!1}if(Go=0,Xo=Ko=Yo=null,Zo=!1,Sl.current=null,null===n||null===n.return){Nl=1,zl=t,Ol=null;break}e:{var o=e,a=n.return,l=n,s=t;if(t=Cl,l.flags|=2048,l.firstEffect=l.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var u=s;if(0==(2&l.mode)){var c=l.alternate;c?(l.updateQueue=c.updateQueue,l.memoizedState=c.memoizedState,l.lanes=c.lanes):(l.updateQueue=null,l.memoizedState=null)}var f=0!=(1&jo.current),d=a;do{var p;if(p=13===d.tag){var h=d.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var m=d.memoizedProps;p=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!f)}}if(p){var v=d.updateQueue;if(null===v){var y=new Set;y.add(u),d.updateQueue=y}else v.add(u);if(0==(2&d.mode)){if(d.flags|=64,l.flags|=16384,l.flags&=-2981,1===l.tag)if(null===l.alternate)l.tag=17;else{var g=oo(-1,1);g.tag=2,ao(l,g)}l.lanes|=1;break e}s=void 0,l=t;var b=o.pingCache;if(null===b?(b=o.pingCache=new al,s=new Set,b.set(u,s)):void 0===(s=b.get(u))&&(s=new Set,b.set(u,s)),!s.has(l)){s.add(l);var _=Is.bind(null,o,u,l);u.then(_,_)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);s=Error((Q(l.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Nl&&(Nl=2),s=il(s,l),d=a;do{switch(d.tag){case 3:o=s,d.flags|=4096,t&=-t,d.lanes|=t,lo(d,ll(0,o,t));break e;case 1:o=s;var w=d.type,k=d.stateNode;if(0==(64&d.flags)&&("function"==typeof w.getDerivedStateFromError||null!==k&&"function"==typeof k.componentDidCatch&&(null===Vl||!Vl.has(k)))){d.flags|=4096,t&=-t,d.lanes|=t,lo(d,sl(d,o,t));break e}}d=d.return}while(null!==d)}Ss(n)}catch(e){t=e,Ol===n&&null!==n&&(Ol=n=n.return);continue}break}}function bs(){var e=El.current;return El.current=Oa,null===e?Oa:e}function _s(e,t){var n=xl;xl|=16;var r=bs();for(Tl===e&&Cl===t||ys(e,t);;)try{ws();break}catch(t){gs(e,t)}if(Xi(),xl=n,El.current=r,null!==Ol)throw Error(a(261));return Tl=null,Cl=0,Nl}function ws(){for(;null!==Ol;)Es(Ol)}function ks(){for(;null!==Ol&&!Ei();)Es(Ol)}function Es(e){var t=Bl(e.alternate,e,Pl);e.memoizedProps=e.pendingProps,null===t?Ss(e):Ol=t,Sl.current=null}function Ss(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=nl(n,t,Pl)))return void(Ol=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Pl)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=rl(t)))return n.flags&=2047,void(Ol=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Ol=t);Ol=t=e}while(null!==t);0===Nl&&(Nl=5)}function xs(e){var t=Di();return Bi(99,Ts.bind(null,e,t)),null}function Ts(e,t){do{Cs()}while(null!==Ql);if(0!=(48&xl))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,o=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var l=e.eventTimes,s=e.expirationTimes;0<o;){var u=31-Wt(o),c=1<<u;i[u]=0,l[u]=-1,s[u]=-1,o&=~c}if(null!==Xl&&0==(24&r)&&Xl.has(e)&&Xl.delete(e),e===Tl&&(Ol=Tl=null,Cl=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=xl,xl|=32,Sl.current=null,Mr=Gt,dr(l=fr())){if("selectionStart"in l)s={start:l.selectionStart,end:l.selectionEnd};else e:if(s=(s=l.ownerDocument)&&s.defaultView||window,(c=s.getSelection&&s.getSelection())&&0!==c.rangeCount){s=c.anchorNode,o=c.anchorOffset,u=c.focusNode,c=c.focusOffset;try{s.nodeType,u.nodeType}catch(e){s=null;break e}var f=0,d=-1,p=-1,h=0,m=0,v=l,y=null;t:for(;;){for(var g;v!==s||0!==o&&3!==v.nodeType||(d=f+o),v!==u||0!==c&&3!==v.nodeType||(p=f+c),3===v.nodeType&&(f+=v.nodeValue.length),null!==(g=v.firstChild);)y=v,v=g;for(;;){if(v===l)break t;if(y===s&&++h===o&&(d=f),y===u&&++m===c&&(p=f),null!==(g=v.nextSibling))break;y=(v=y).parentNode}v=g}s=-1===d||-1===p?null:{start:d,end:p}}else s=null;s=s||{start:0,end:0}}else s=null;Ar={focusedElem:l,selectionRange:s},Gt=!1,rs=null,is=!1,ql=r;do{try{Os()}catch(e){if(null===ql)throw Error(a(330));js(ql,e),ql=ql.nextEffect}}while(null!==ql);rs=null,ql=r;do{try{for(l=e;null!==ql;){var b=ql.flags;if(16&b&&ye(ql.stateNode,""),128&b){var _=ql.alternate;if(null!==_){var w=_.ref;null!==w&&("function"==typeof w?w(null):w.current=null)}}switch(1038&b){case 2:yl(ql),ql.flags&=-3;break;case 6:yl(ql),ql.flags&=-3,bl(ql.alternate,ql);break;case 1024:ql.flags&=-1025;break;case 1028:ql.flags&=-1025,bl(ql.alternate,ql);break;case 4:bl(ql.alternate,ql);break;case 8:gl(l,s=ql);var k=s.alternate;ml(s),null!==k&&ml(k)}ql=ql.nextEffect}}catch(e){if(null===ql)throw Error(a(330));js(ql,e),ql=ql.nextEffect}}while(null!==ql);if(w=Ar,_=fr(),b=w.focusedElem,l=w.selectionRange,_!==b&&b&&b.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(b.ownerDocument.documentElement,b)){null!==l&&dr(b)&&(_=l.start,void 0===(w=l.end)&&(w=_),"selectionStart"in b?(b.selectionStart=_,b.selectionEnd=Math.min(w,b.value.length)):(w=(_=b.ownerDocument||document)&&_.defaultView||window).getSelection&&(w=w.getSelection(),s=b.textContent.length,k=Math.min(l.start,s),l=void 0===l.end?k:Math.min(l.end,s),!w.extend&&k>l&&(s=l,l=k,k=s),s=cr(b,k),o=cr(b,l),s&&o&&(1!==w.rangeCount||w.anchorNode!==s.node||w.anchorOffset!==s.offset||w.focusNode!==o.node||w.focusOffset!==o.offset)&&((_=_.createRange()).setStart(s.node,s.offset),w.removeAllRanges(),k>l?(w.addRange(_),w.extend(o.node,o.offset)):(_.setEnd(o.node,o.offset),w.addRange(_))))),_=[];for(w=b;w=w.parentNode;)1===w.nodeType&&_.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<_.length;b++)(w=_[b]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Gt=!!Mr,Ar=Mr=null,e.current=n,ql=r;do{try{for(b=e;null!==ql;){var E=ql.flags;if(36&E&&dl(b,ql.alternate,ql),128&E){_=void 0;var S=ql.ref;if(null!==S){var x=ql.stateNode;switch(ql.tag){case 5:_=x;break;default:_=x}"function"==typeof S?S(_):S.current=_}}ql=ql.nextEffect}}catch(e){if(null===ql)throw Error(a(330));js(ql,e),ql=ql.nextEffect}}while(null!==ql);ql=null,ji(),xl=i}else e.current=n;if($l)$l=!1,Ql=e,Gl=t;else for(ql=r;null!==ql;)t=ql.nextEffect,ql.nextEffect=null,8&ql.flags&&((E=ql).sibling=null,E.stateNode=null),ql=t;if(0===(r=e.pendingLanes)&&(Vl=null),1===r?e===Zl?Jl++:(Jl=0,Zl=e):Jl=0,n=n.stateNode,bi&&"function"==typeof bi.onCommitFiberRoot)try{bi.onCommitFiberRoot(gi,n,void 0,64==(64&n.current.flags))}catch(e){}if(us(e,Fi()),Wl)throw Wl=!1,e=Hl,Hl=null,e;return 0!=(8&xl)||Wi(),null}function Os(){for(;null!==ql;){var e=ql.alternate;is||null===rs||(0!=(8&ql.flags)?Ze(ql,rs)&&(is=!0):13===ql.tag&&wl(e,ql)&&Ze(ql,rs)&&(is=!0));var t=ql.flags;0!=(256&t)&&fl(e,ql),0==(512&t)||$l||($l=!0,qi(97,(function(){return Cs(),null}))),ql=ql.nextEffect}}function Cs(){if(90!==Gl){var e=97<Gl?97:Gl;return Gl=90,Bi(e,Ns)}return!1}function Ps(e,t){Yl.push(t,e),$l||($l=!0,qi(97,(function(){return Cs(),null})))}function Ls(e,t){Kl.push(t,e),$l||($l=!0,qi(97,(function(){return Cs(),null})))}function Ns(){if(null===Ql)return!1;var e=Ql;if(Ql=null,0!=(48&xl))throw Error(a(331));var t=xl;xl|=32;var n=Kl;Kl=[];for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1],l=i.destroy;if(i.destroy=void 0,"function"==typeof l)try{l()}catch(e){if(null===o)throw Error(a(330));js(o,e)}}for(n=Yl,Yl=[],r=0;r<n.length;r+=2){i=n[r],o=n[r+1];try{var s=i.create;i.destroy=s()}catch(e){if(null===o)throw Error(a(330));js(o,e)}}for(s=e.current.firstEffect;null!==s;)e=s.nextEffect,s.nextEffect=null,8&s.flags&&(s.sibling=null,s.stateNode=null),s=e;return xl=t,Wi(),!0}function zs(e,t,n){ao(e,t=ll(0,t=il(n,t),1)),t=os(),null!==(e=ss(e,1))&&(qt(e,1,t),us(e,t))}function js(e,t){if(3===e.tag)zs(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){zs(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Vl||!Vl.has(r))){var i=sl(n,e=il(t,e),1);if(ao(n,i),i=os(),null!==(n=ss(n,1)))qt(n,1,i),us(n,i);else if("function"==typeof r.componentDidCatch&&(null===Vl||!Vl.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Is(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=os(),e.pingedLanes|=e.suspendedLanes&n,Tl===e&&(Cl&n)===n&&(4===Nl||3===Nl&&(62914560&Cl)===Cl&&500>Fi()-Fl?ys(e,0):Ml|=n),us(e,t)}function Rs(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Di()?1:2:(0===ts&&(ts=jl),0===(t=Ut(62914560&~ts))&&(t=4194304))),n=os(),null!==(e=ss(e,t))&&(qt(e,t,n),us(e,n))}function Ms(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function As(e,t,n,r){return new Ms(e,t,n,r)}function Fs(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ds(e,t){var n=e.alternate;return null===n?((n=As(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Us(e,t,n,r,i,o){var l=2;if(r=e,"function"==typeof e)Fs(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case S:return Bs(n.children,i,o,t);case M:l=8,i|=16;break;case x:l=8,i|=1;break;case T:return(e=As(12,n,t,8|i)).elementType=T,e.type=T,e.lanes=o,e;case L:return(e=As(13,n,t,i)).type=L,e.elementType=L,e.lanes=o,e;case N:return(e=As(19,n,t,i)).elementType=N,e.lanes=o,e;case A:return qs(n,i,o,t);case F:return(e=As(24,n,t,i)).elementType=F,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:l=10;break e;case C:l=9;break e;case P:l=11;break e;case z:l=14;break e;case j:l=16,r=null;break e;case I:l=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=As(l,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function Bs(e,t,n,r){return(e=As(7,e,r,t)).lanes=n,e}function qs(e,t,n,r){return(e=As(23,e,r,t)).elementType=A,e.lanes=n,e}function Ws(e,t,n){return(e=As(6,e,null,t)).lanes=n,e}function Hs(e,t,n){return(t=As(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vs(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Bt(0),this.expirationTimes=Bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.mutableSourceEagerHydrationData=null}function $s(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:E,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Qs(e,t,n,r){var i=t.current,o=os(),l=as(i);e:if(n){t:{if(Ye(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(di(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(a(171))}if(1===n.tag){var u=n.type;if(di(u)){n=mi(n,u,s);break e}}n=s}else n=li;return null===t.context?t.context=n:t.pendingContext=n,(t=oo(o,l)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ao(i,t),ls(i,l,o),l}function Gs(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Ys(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Ks(e,t){Ys(e,t),(e=e.alternate)&&Ys(e,t)}function Xs(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Vs(e,t,null!=n&&!0===n.hydrate),t=As(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ro(t),e[Yr]=n.current,Or(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function Js(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zs(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var l=i;i=function(){var e=Gs(a);l.call(e)}}Qs(t,a,e,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Xs(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"==typeof i){var s=i;i=function(){var e=Gs(a);s.call(e)}}hs((function(){Qs(t,a,e,i)}))}return Gs(a)}function eu(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Js(t))throw Error(a(200));return $s(e,t,null,n)}Bl=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||ui.current)za=!0;else{if(0==(n&r)){switch(za=!1,t.tag){case 3:qa(t),Wo();break;case 5:No(t);break;case 1:di(t.type)&&vi(t);break;case 4:Po(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;ai(Qi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Qa(e,t,n):(ai(jo,1&jo.current),null!==(t=el(e,t,n))?t.sibling:null);ai(jo,1&jo.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return Za(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ai(jo,jo.current),r)break;return null;case 23:case 24:return t.lanes=0,Aa(e,t,n)}return el(e,t,n)}za=0!=(16384&e.flags)}else za=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=fi(t,si.current),eo(t,n),i=na(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,di(r)){var o=!0;vi(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,ro(t);var l=r.getDerivedStateFromProps;"function"==typeof l&&fo(t,r,l,e),i.updater=po,t.stateNode=i,i._reactInternals=t,yo(t,r,e,n),t=Ba(null,t,r,!0,o,n)}else t.tag=0,ja(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"==typeof e)return Fs(e)?1:0;if(null!=e){if((e=e.$$typeof)===P)return 11;if(e===z)return 14}return 2}(i),e=$i(i,e),o){case 0:t=Da(null,t,i,e,n);break e;case 1:t=Ua(null,t,i,e,n);break e;case 11:t=Ia(null,t,i,e,n);break e;case 14:t=Ra(null,t,i,$i(i.type,e),r,n);break e}throw Error(a(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Da(e,t,r,i=t.elementType===r?i:$i(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ua(e,t,r,i=t.elementType===r?i:$i(r,i),n);case 3:if(qa(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,io(e,t),so(t,r,null,n),(r=t.memoizedState.element)===i)Wo(),t=el(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(Mo=Wr(t.stateNode.containerInfo.firstChild),Ro=t,o=Ao=!0),o){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(o=e[i])._workInProgressVersionPrimary=e[i+1],Ho.push(o);for(n=Eo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else ja(e,t,r,n),Wo();t=t.child}return t;case 5:return No(t),null===e&&Uo(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,l=i.children,Dr(r,i)?l=null:null!==o&&Dr(r,o)&&(t.flags|=16),Fa(e,t),ja(e,t,l,n),t.child;case 6:return null===e&&Uo(t),null;case 13:return Qa(e,t,n);case 4:return Po(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ko(t,null,r,n):ja(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Ia(e,t,r,i=t.elementType===r?i:$i(r,i),n);case 7:return ja(e,t,t.pendingProps,n),t.child;case 8:case 12:return ja(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,l=t.memoizedProps,o=i.value;var s=t.type._context;if(ai(Qi,s._currentValue),s._currentValue=o,null!==l)if(s=l.value,0===(o=ar(s,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(s,o):1073741823))){if(l.children===i.children&&!ui.current){t=el(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var u=s.dependencies;if(null!==u){l=s.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&o)){1===s.tag&&((c=oo(-1,n&-n)).tag=2,ao(s,c)),s.lanes|=n,null!==(c=s.alternate)&&(c.lanes|=n),Zi(s.return,n),u.lanes|=n;break}c=c.next}}else l=10===s.tag&&s.type===t.type?null:s.child;if(null!==l)l.return=s;else for(l=s;null!==l;){if(l===t){l=null;break}if(null!==(s=l.sibling)){s.return=l.return,l=s;break}l=l.return}s=l}ja(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,eo(t,n),r=r(i=to(i,o.unstable_observedBits)),t.flags|=1,ja(e,t,r,n),t.child;case 14:return o=$i(i=t.type,t.pendingProps),Ra(e,t,i,o=$i(i.type,o),r,n);case 15:return Ma(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:$i(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,di(r)?(e=!0,vi(t)):e=!1,eo(t,n),mo(t,r,i),yo(t,r,i,n),Ba(null,t,r,!0,e,n);case 19:return Za(e,t,n);case 23:case 24:return Aa(e,t,n)}throw Error(a(156,t.tag))},Xs.prototype.render=function(e){Qs(e,this._internalRoot,null,null)},Xs.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Qs(null,e,null,(function(){t[Yr]=null}))},et=function(e){13===e.tag&&(ls(e,4,os()),Ks(e,4))},tt=function(e){13===e.tag&&(ls(e,67108864,os()),Ks(e,67108864))},nt=function(e){if(13===e.tag){var t=os(),n=as(e);ls(e,n,t),Ks(e,n)}},rt=function(e,t){return t()},Te=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ei(r);if(!i)throw Error(a(90));X(r),ne(r,i)}}}break;case"textarea":ue(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},ze=ps,je=function(e,t,n,r,i){var o=xl;xl|=4;try{return Bi(98,e.bind(null,t,n,r,i))}finally{0===(xl=o)&&(Ul(),Wi())}},Ie=function(){0==(49&xl)&&(function(){if(null!==Xl){var e=Xl;Xl=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,us(e,Fi())}))}Wi()}(),Cs())},Re=function(e,t){var n=xl;xl|=2;try{return e(t)}finally{0===(xl=n)&&(Ul(),Wi())}};var tu={Events:[Jr,Zr,ei,Le,Ne,Cs,{current:!1}]},nu={findFiberByHostInstance:Xr,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},ru={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var iu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!iu.isDisabled&&iu.supportsFiber)try{gi=iu.inject(ru),bi=iu}catch(e){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=eu,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=xl;if(0!=(48&n))return e(t);xl|=1;try{if(e)return Bi(99,e.bind(null,t))}finally{xl=n,Wi()}},t.hydrate=function(e,t,n){if(!Js(t))throw Error(a(200));return Zs(null,e,t,!0,n)},t.render=function(e,t,n){if(!Js(t))throw Error(a(200));return Zs(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Js(e))throw Error(a(40));return!!e._reactRootContainer&&(hs((function(){Zs(null,null,e,!1,(function(){e._reactRootContainer=null,e[Yr]=null}))})),!0)},t.unstable_batchedUpdates=ps,t.unstable_createPortal=function(e,t){return eu(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Js(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return Zs(e,t,n,!1,r)},t.version="17.0.2"},function(e,t,n){"use strict";e.exports=n(25)},function(e,t,n){"use strict";
33
  /** @license React v0.20.2
34
  * scheduler.production.min.js
35
  *
@@ -37,24 +37,24 @@ object-assign
37
  *
38
  * This source code is licensed under the MIT license found in the
39
  * LICENSE file in the root directory of this source tree.
40
- */var r,i,o,a;if("object"==typeof performance&&"function"==typeof performance.now){var l=performance;t.unstable_now=function(){return l.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,f=null,d=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(d,0),e}};r=function(e){null!==c?setTimeout(r,0,e):(c=e,setTimeout(d,0))},i=function(e,t){f=setTimeout(e,t)},o=function(){clearTimeout(f)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var v=!1,y=null,g=-1,b=5,_=0;t.unstable_shouldYield=function(){return t.unstable_now()>=_},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):b=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,k=w.port2;w.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();_=e+b;try{y(!0,e)?k.postMessage(null):(v=!1,y=null)}catch(e){throw k.postMessage(null),e}}else v=!1},r=function(e){y=e,v||(v=!0,k.postMessage(null))},i=function(e,n){g=p((function(){e(t.unstable_now())}),n)},o=function(){h(g),g=-1}}function E(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<T(i,t)))break e;e[r]=t,e[n]=i,n=r}}function S(e){return void 0===(e=e[0])?null:e}function x(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],l=o+1,s=e[l];if(void 0!==a&&0>T(a,n))void 0!==s&&0>T(s,a)?(e[r]=s,e[l]=n,r=l):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==s&&0>T(s,n)))break e;e[r]=s,e[l]=n,r=l}}}return t}return null}function T(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var O=[],C=[],P=1,L=null,N=3,z=!1,j=!1,I=!1;function R(e){for(var t=S(C);null!==t;){if(null===t.callback)x(C);else{if(!(t.startTime<=e))break;x(C),t.sortIndex=t.expirationTime,E(O,t)}t=S(C)}}function M(e){if(I=!1,R(e),!j)if(null!==S(O))j=!0,r(A);else{var t=S(C);null!==t&&i(M,t.startTime-e)}}function A(e,n){j=!1,I&&(I=!1,o()),z=!0;var r=N;try{for(R(n),L=S(O);null!==L&&(!(L.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=L.callback;if("function"==typeof a){L.callback=null,N=L.priorityLevel;var l=a(L.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?L.callback=l:L===S(O)&&x(O),R(n)}else x(O);L=S(O)}if(null!==L)var s=!0;else{var u=S(C);null!==u&&i(M,u.startTime-n),s=!1}return s}finally{L=null,N=r,z=!1}}var F=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){j||z||(j=!0,r(A))},t.unstable_getCurrentPriorityLevel=function(){return N},t.unstable_getFirstCallbackNode=function(){return S(O)},t.unstable_next=function(e){switch(N){case 1:case 2:case 3:var t=3;break;default:t=N}var n=N;N=t;try{return e()}finally{N=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=F,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=N;N=e;try{return t()}finally{N=n}},t.unstable_scheduleCallback=function(e,n,a){var l=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?l+a:l:a=l,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:P++,callback:n,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>l?(e.sortIndex=a,E(C,e),null===S(O)&&e===S(C)&&(I?o():I=!0,i(M,a-l))):(e.sortIndex=s,E(O,e),j||z||(j=!0,r(A))),e},t.unstable_wrapCallback=function(e){var t=N;return function(){var n=N;N=t;try{return e.apply(this,arguments)}finally{N=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 a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&l.return&&l.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=S(n(27)),a=S(n(0)),l=S(n(2)),s=S(n(32)),u=S(n(5)),c=S(n(20)),f=S(n(33)),d=n(34),p=S(d),h=S(n(35)),m=S(n(36)),v=S(n(60)),y=S(n(61)),g=S(n(63)),b=S(n(64)),_=S(n(65)),w=S(n(66)),k=S(n(69)),E=S(n(70));function S(e){return e&&e.__esModule?e:{default:e}}var x=n(71),T=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.providers=["Unsplash","Pixabay"],n.provider=n.props.provider,n.api_provider=l.default[n.provider],n.arr_key=n.api_provider.arr_key,n.api_key=instant_img_localize[n.provider+"_app_id"],n.api_url=""+n.api_provider.photo_api+n.api_provider.api_query_var+n.api_key+l.default.defaults.posts_per_page,n.search_api_url=""+n.api_provider.search_api+n.api_provider.api_query_var+n.api_key+l.default.defaults.posts_per_page,n.results=(0,p.default)(n.provider,n.arr_key,n.props.results),n.state={results:n.results,filters:s.default[n.provider].filters,search_filters:s.default[n.provider].search,restapi_error:!1,api_lightbox:!1},n.filters={},n.search_filters={},n.orderby=n.props.orderby,n.page=n.props.page,n.is_search=!1,n.search_term="",n.total_results=0,n.view="",n.isLoading=!1,n.isDone=!1,n.errorMsg="",n.msnry="",n.tooltipInterval="",n.delay=250,n.photoTarget=a.default.createRef(),n.providerNav=a.default.createRef(),n.controlNav=a.default.createRef(),n.photoSearch=a.default.createRef(),n.filterGroups=a.default.createRef(),n.editor=n.props.editor?n.props.editor:"classic",n.is_block_editor="gutenberg"===n.props.editor,n.is_media_router="media-router"===n.props.editor,n.SetFeaturedImage=n.props.SetFeaturedImage?n.props.SetFeaturedImage.bind(n):"",n.InsertImage=n.props.InsertImage?n.props.InsertImage.bind(n):"",n.is_block_editor?(n.container=document.querySelector("body"),n.container.classList.add("loading"),n.wrapper=document.querySelector("body")):(n.container=n.props.container.closest(".instant-img-container"),n.wrapper=n.props.container.closest(".instant-images-wrapper"),n.container.classList.add("loading")),n}var n,S;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:"test",value:function(){var e=this,t=instant_img_localize.root+"instant-images/test/",n=new XMLHttpRequest;n.open("POST",t,!0),n.setRequestHeader("X-WP-Nonce",instant_img_localize.nonce),n.setRequestHeader("Content-Type","application/json"),n.send(),n.onload=function(){n.status>=200&&n.status<400?JSON.parse(n.response).success||e.setState({restapi_error:!0}):e.setState({restapi_error:!0})},n.onerror=function(t){console.log(t),e.setState({restapi_error:!0})}}},{key:"search",value:function(e){e.preventDefault();var t=this.photoSearch.current,n=t.value;n.length>2?(t.classList.add("searching"),this.container.classList.add("loading"),this.search_term=n,this.is_search=!0,this.doSearch(this.search_term)):t.focus()}},{key:"doSearch",value:function(e){var t=this,n=this.photoSearch.current,r="term";this.photoTarget.current.classList.add("loading"),this.isLoading=!0,this.page=1,this.toggleFilters();var i=this.search_api_url+"&page="+this.page+"&"+this.api_provider.search_query_var+"="+this.search_term+(0,c.default)(this.provider);"id:"===e.substring(0,3)&&(r="id",e=e.replace("id:",""),i=(0,h.default)(this.provider,e,this.api_provider.photo_api,this.api_provider.api_query_var,this.api_key));var o=(0,f.default)(this.search_filters);i="&"!==o?""+i+o:i,fetch(i).then((function(e){return e.json()})).then((function(e){if("term"===r){var i=(0,p.default)(t.provider,t.arr_key,e,!0);t.total_results=e.total,t.checkTotalResults(i.length),t.results=i,t.setState({results:t.results,search_filters:s.default[t.provider].search})}if("id"===r&&e){var o=[],a=(0,d.getResultById)(t.provider,t.arr_key,e,!0);e.errors?(t.total_results=0,t.checkTotalResults("0")):(o.push(a),t.total_results=1,t.checkTotalResults("1")),t.results=o,t.setState({results:t.results})}setTimeout((function(){n.classList.remove("searching"),t.photoTarget.current.classList.remove("loading"),t.isLoading=!1}),t.delay)})).catch((function(e){console.log(e),n.classList.remove("searching"),t.isLoading=!1,t.total_results=0,t.isDone=!0,this.photoTarget.current.classList.remove("loading"),this.isLoading=!1,t.results=[],t.setState({results:t.results})}))}},{key:"clearSearch",value:function(){this.photoSearch.current.value="",this.total_results=0,this.is_search=!1,this.search_term="",this.search_filters={},this.toggleFilters()}},{key:"controlsClick",value:function(e,t){var n=e.currentTarget;this.view=t,n.classList.contains("active")||this.getPhotos(t)}},{key:"getPhotos",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=this;if(!this.isLoading||t){this.photoTarget.current.classList.add("loading"),this.isLoading=!0,this.page=1,this.orderby=e,this.results=[],this.clearSearch();var i=(0,f.default)(this.filters),o=this.api_url+"&page="+this.page+"&"+(0,c.default)(this.provider)+i;fetch(o).then((function(e){return e.json()})).then((function(e){var t=(0,p.default)(r.provider,r.arr_key,e);r.checkTotalResults(t.length),r.results=t,n?r.setState({results:t,filters:s.default[r.provider].filters}):r.setState({results:t}),setTimeout((function(){r.photoTarget.current.classList.remove("loading"),r.isLoading=!1}),r.delay)})).catch((function(e){console.log(e),r.photoTarget.current.classList.remove("loading"),r.isLoading=!1}))}}},{key:"loadMorePhotos",value:function(){var e=this;this.page=parseInt(this.page)+1,this.container.classList.add("loading"),this.isLoading=!0;var t=this.api_url+"&page="+this.page+"&",n="";this.is_search?(t=this.search_api_url+"&page="+this.page+"&"+this.api_provider.search_query_var+"="+this.search_term,n=(0,f.default)(this.search_filters)):n=(0,f.default)(this.filters),t=n?""+t+(0,c.default)(this.provider)+n:t,fetch(t).then((function(e){return e.json()})).then((function(t){var n=(0,p.default)(e.provider,e.arr_key,t,e.is_search);e.is_search&&"unsplash"===e.provider&&(n=t.results),n&&n.map((function(t){e.results.push(t)})),e.checkTotalResults(t.length),e.setState({results:e.results}),e.isLoading=!1})).catch((function(t){console.log(t),e.isLoading=!1}))}},{key:"filterPhotos",value:function(e,t){this.filters[e]&&"#"===t||""===t?delete this.filters[e]:this.filters[e]=t,this.getPhotos(this.view,!0)}},{key:"filterSearch",value:function(e,t){this.search_filters[e]&&"#"===t||""===t?delete this.search_filters[e]:this.search_filters[e]=t,this.doSearch(this.search_term)}},{key:"toggleFilters",value:function(){var e=this,t=this.filterGroups.current.querySelectorAll("button.filter-dropdown--button");t&&t.forEach((function(t){t.disabled=!!e.is_search})),this.is_search?this.filterGroups.current.classList.add("inactive"):this.filterGroups.current.classList.remove("inactive")}},{key:"afterVerifiedAPICallback",value:function(e){var t=this.providerNav.current.querySelector("button[data-provider="+e+"]");t&&(this.setState({api_lightbox:!1}),document.body.classList.remove("overflow-hidden"),t.click())}},{key:"closeAPILightbox",value:function(e){this.setState({api_lightbox:!1}),document.body.classList.remove("overflow-hidden");var t=this.providerNav.current.querySelector("button[data-provider="+e+"]");t&&t.focus({preventScroll:!0})}},{key:"switchProvider",value:(n=regeneratorRuntime.mark((function e(t){var n,r,i,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.currentTarget,(r=n.dataset.provider)!==this.provider){e.next=4;break}return e.abrupt("return",!1);case 4:if(!l.default[r].requires_key){e.next=14;break}return e.next=7,fetch((0,u.default)(r));case 7:if(i=e.sent,o=i.ok,a=i.status,o&&400!==a&&401!==a&&500!==a){e.next=14;break}return this.setState({api_lightbox:r}),document.body.classList.add("overflow-hidden"),e.abrupt("return");case 14:this.provider=r,this.api_provider=l.default[this.provider],this.filters={},this.search_filters={},this.providerNav.current.querySelectorAll("button").forEach((function(e){e.classList.remove("active")})),n.classList.add("active"),this.arr_key=this.api_provider.arr_key,this.api_key=instant_img_localize[this.provider+"_app_id"],this.api_url=""+this.api_provider.photo_api+this.api_provider.api_query_var+this.api_key+l.default.defaults.posts_per_page,this.search_api_url=""+this.api_provider.search_api+this.api_provider.api_query_var+this.api_key+l.default.defaults.posts_per_page,this.view="latest",this.getPhotos(this.view,!0,!0);case 26:case"end":return e.stop()}}),e,this)})),S=function(){var e=n.apply(this,arguments);return new Promise((function(t,n){return function r(i,o){try{var a=e[i](o),l=a.value}catch(e){return void n(e)}if(!a.done)return Promise.resolve(l).then((function(e){r("next",e)}),(function(e){r("throw",e)}));t(l)}("next")}))},function(e){return S.apply(this,arguments)})},{key:"renderLayout",value:function(){if(this.is_block_editor)return!1;var e=this,t=e.photoTarget.current;x(t,(function(){e.msnry=new o.default(t,{itemSelector:".photo"}),e.photoTarget.current.querySelectorAll(".photo").forEach((function(e){e.classList.add("in-view")}))}))}},{key:"onScroll",value:function(){window.innerHeight+window.pageYOffset>=document.body.scrollHeight-400&&!this.isLoading&&!this.isDone&&this.loadMorePhotos()}},{key:"checkTotalResults",value:function(e){this.isDone=0==e}},{key:"doneLoading",value:function(){var e=this;setTimeout((function(){e.isLoading=!1,e.container.classList.remove("loading")}),e.delay)}},{key:"showTooltip",value:function(e){var t=this,n=e.currentTarget,r=n.getBoundingClientRect(),i=Math.round(r.left),o=Math.round(r.top),a=this.container.querySelector("#tooltip");a.classList.remove("over"),n.classList.contains("tooltip--above")?a.classList.add("above"):a.classList.remove("above"),this.tooltipInterval=setInterval((function(){clearInterval(t.tooltipInterval),a.innerHTML=n.dataset.title,i=i-a.offsetWidth+n.offsetWidth+5,a.style.left=i+"px",a.style.top=o+"px",setTimeout((function(){a.classList.add("over")}),t.delay)}),750)}},{key:"hideTooltip",value:function(){clearInterval(this.tooltipInterval),this.container.querySelector("#tooltip").classList.remove("over")}},{key:"componentDidUpdate",value:function(){this.renderLayout(),this.doneLoading()}},{key:"componentDidMount",value:function(){var e=this;this.renderLayout(),this.doneLoading(),this.test(),this.container.classList.remove("loading"),this.wrapper.classList.add("loaded"),this.is_block_editor||this.is_media_router?(this.page=0,this.loadMorePhotos()):window.addEventListener("scroll",(function(){return e.onScroll()}))}},{key:"render",value:function(){var e=this;return a.default.createElement("div",{id:"photo-listing",className:this.provider},this.providers&&a.default.createElement("nav",{className:"provider-nav",ref:this.providerNav},this.providers.map((function(t,n){return a.default.createElement("div",{key:"provider-"+n},a.default.createElement("button",{"data-provider":t.toLowerCase(),onClick:function(t){return e.switchProvider(t)},className:e.provider===t.toLowerCase()?"provider-nav--btn active":"provider-nav--btn"},a.default.createElement("span",null,t),l.default[t.toLowerCase()].new&&a.default.createElement("span",{className:"provider-nav--new"},"New")))}))),this.state.api_lightbox&&a.default.createElement(m.default,{provider:this.state.api_lightbox,afterVerifiedAPICallback:this.afterVerifiedAPICallback.bind(this),closeAPILightbox:this.closeAPILightbox.bind(this)}),a.default.createElement("div",{className:"control-nav",ref:this.controlNav},a.default.createElement("div",{className:"control-nav--filters-wrap",ref:this.filterGroups},Object.entries(this.state.filters).length&&a.default.createElement("div",{className:"control-nav--filters"},Object.entries(this.state.filters).map((function(t,n){var i=r(t,2),o=i[0],l=i[1];return a.default.createElement(y.default,{key:o+"-"+n,filterKey:o,provider:e.provider,data:l,function:e.filterPhotos.bind(e)})})))),a.default.createElement("div",{className:"control-nav--search search-field",id:"search-bar"},a.default.createElement("form",{onSubmit:function(t){return e.search(t)},autoComplete:"off"},a.default.createElement("label",{htmlFor:"photo-search",className:"offscreen"},instant_img_localize.search_label),a.default.createElement("input",{type:"search",id:"photo-search",placeholder:instant_img_localize.search,ref:this.photoSearch}),a.default.createElement("button",{type:"submit",id:"photo-search-submit"},a.default.createElement("i",{className:"fa fa-search"})),a.default.createElement(k.default,{container:this.container,getPhotos:this.getPhotos.bind(this),isSearch:this.is_search,total:this.total_results,title:this.total_results+" "+instant_img_localize.search_results+" "+this.search_term})))),this.state.restapi_error&&a.default.createElement(v.default,null),this.is_search&&"gutenberg"!==this.editor&&a.default.createElement("div",{className:"search-results-header"},a.default.createElement("h2",null,this.search_term),a.default.createElement("div",{className:"search-results-header--text"},this.total_results+" "+instant_img_localize.search_results," ",a.default.createElement("strong",null,""+this.search_term)," - ",a.default.createElement("button",{title:instant_img_localize.clear_search,onClick:function(){return e.getPhotos("latest")}},instant_img_localize.clear_search)),Object.entries(this.state.search_filters).length&&a.default.createElement("div",{className:"control-nav--filters-wrap"},a.default.createElement("div",{className:"control-nav--filters"},Object.entries(this.state.search_filters).map((function(t,n){var i=r(t,2),o=i[0],l=i[1];return a.default.createElement(y.default,{key:o+"-"+n,filterKey:o,provider:e.provider,data:l,function:e.filterSearch.bind(e)})}))))),a.default.createElement("div",{id:"photos",className:"photo-target",ref:this.photoTarget},this.state.results.map((function(t,n){return a.default.createElement(w.default,{provider:e.provider,result:t,key:e.provider+"-"+t.id+"-"+n,editor:e.editor,mediaRouter:e.is_media_router,blockEditor:e.is_block_editor,SetFeaturedImage:e.SetFeaturedImage,InsertImage:e.InsertImage,showTooltip:e.showTooltip,hideTooltip:e.hideTooltip})}))),0==this.total_results&&!0===this.is_search&&a.default.createElement(_.default,null),a.default.createElement(g.default,null),a.default.createElement(b.default,{loadMorePhotos:this.loadMorePhotos.bind(this)}),a.default.createElement(E.default,null))}}]),t}(a.default.Component);t.default=T},function(e,t,n){var r,i,o;
41
  /*!
42
  * Masonry v4.2.2
43
  * Cascading grid layout library
44
  * https://masonry.desandro.com
45
  * MIT License
46
  * by David DeSandro
47
- */window,i=[n(28),n(4)],void 0===(o="function"==typeof(r=function(e,t){"use strict";var n=e.create("masonry");n.compatOptions.fitWidth="isFitWidth";var r=n.prototype;return r._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var e=0;e<this.cols;e++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},r.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var e=this.items[0],n=e&&e.element;this.columnWidth=n&&t(n).outerWidth||this.containerWidth}var r=this.columnWidth+=this.gutter,i=this.containerWidth+this.gutter,o=i/r,a=r-i%r;o=Math[a&&a<1?"round":"floor"](o),this.cols=Math.max(o,1)},r.getContainerWidth=function(){var e=this._getOption("fitWidth")?this.element.parentNode:this.element,n=t(e);this.containerWidth=n&&n.innerWidth},r._getItemLayoutPosition=function(e){e.getSize();var t=e.size.outerWidth%this.columnWidth,n=Math[t&&t<1?"round":"ceil"](e.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var r=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](n,e),i={x:this.columnWidth*r.col,y:r.y},o=r.y+e.size.outerHeight,a=n+r.col,l=r.col;l<a;l++)this.colYs[l]=o;return i},r._getTopColPosition=function(e){var t=this._getTopColGroup(e),n=Math.min.apply(Math,t);return{col:t.indexOf(n),y:n}},r._getTopColGroup=function(e){if(e<2)return this.colYs;for(var t=[],n=this.cols+1-e,r=0;r<n;r++)t[r]=this._getColGroupY(r,e);return t},r._getColGroupY=function(e,t){if(t<2)return this.colYs[e];var n=this.colYs.slice(e,e+t);return Math.max.apply(Math,n)},r._getHorizontalColPosition=function(e,t){var n=this.horizontalColIndex%this.cols;n=e>1&&n+e>this.cols?0:n;var r=t.size.outerWidth&&t.size.outerHeight;return this.horizontalColIndex=r?n+e:this.horizontalColIndex,{col:n,y:this._getColGroupY(n,e)}},r._manageStamp=function(e){var n=t(e),r=this._getElementOffset(e),i=this._getOption("originLeft")?r.left:r.right,o=i+n.outerWidth,a=Math.floor(i/this.columnWidth);a=Math.max(0,a);var l=Math.floor(o/this.columnWidth);l-=o%this.columnWidth?0:1,l=Math.min(this.cols-1,l);for(var s=(this._getOption("originTop")?r.top:r.bottom)+n.outerHeight,u=a;u<=l;u++)this.colYs[u]=Math.max(s,this.colYs[u])},r._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var e={height:this.maxY};return this._getOption("fitWidth")&&(e.width=this._getContainerFitWidth()),e},r._getContainerFitWidth=function(){for(var e=0,t=this.cols;--t&&0===this.colYs[t];)e++;return(this.cols-e)*this.columnWidth-this.gutter},r.needsResizeLayout=function(){var e=this.containerWidth;return this.getContainerWidth(),e!=this.containerWidth},n})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i;
48
  /*!
49
  * Outlayer v2.1.1
50
  * the brains and guts of a layout library
51
  * MIT license
52
- */!function(o,a){"use strict";r=[n(3),n(4),n(29),n(31)],void 0===(i=function(e,t,n,r){return function(e,t,n,r,i){var o=e.console,a=e.jQuery,l=function(){},s=0,u={};function c(e,t){var n=r.getQueryElement(e);if(n){this.element=n,a&&(this.$element=a(this.element)),this.options=r.extend({},this.constructor.defaults),this.option(t);var i=++s;this.element.outlayerGUID=i,u[i]=this,this._create(),this._getOption("initLayout")&&this.layout()}else o&&o.error("Bad element for "+this.constructor.namespace+": "+(n||e))}c.namespace="outlayer",c.Item=i,c.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var f=c.prototype;function d(e){function t(){e.apply(this,arguments)}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t}r.extend(f,t.prototype),f.option=function(e){r.extend(this.options,e)},f._getOption=function(e){var t=this.constructor.compatOptions[e];return t&&void 0!==this.options[t]?this.options[t]:this.options[e]},c.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},f._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),r.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},f.reloadItems=function(){this.items=this._itemize(this.element.children)},f._itemize=function(e){for(var t=this._filterFindItemElements(e),n=this.constructor.Item,r=[],i=0;i<t.length;i++){var o=new n(t[i],this);r.push(o)}return r},f._filterFindItemElements=function(e){return r.filterFindElements(e,this.options.itemSelector)},f.getItemElements=function(){return this.items.map((function(e){return e.element}))},f.layout=function(){this._resetLayout(),this._manageStamps();var e=this._getOption("layoutInstant"),t=void 0!==e?e:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},f._init=f.layout,f._resetLayout=function(){this.getSize()},f.getSize=function(){this.size=n(this.element)},f._getMeasurement=function(e,t){var r,i=this.options[e];i?("string"==typeof i?r=this.element.querySelector(i):i instanceof HTMLElement&&(r=i),this[e]=r?n(r)[t]:i):this[e]=0},f.layoutItems=function(e,t){e=this._getItemsForLayout(e),this._layoutItems(e,t),this._postLayout()},f._getItemsForLayout=function(e){return e.filter((function(e){return!e.isIgnored}))},f._layoutItems=function(e,t){if(this._emitCompleteOnItems("layout",e),e&&e.length){var n=[];e.forEach((function(e){var r=this._getItemLayoutPosition(e);r.item=e,r.isInstant=t||e.isLayoutInstant,n.push(r)}),this),this._processLayoutQueue(n)}},f._getItemLayoutPosition=function(){return{x:0,y:0}},f._processLayoutQueue=function(e){this.updateStagger(),e.forEach((function(e,t){this._positionItem(e.item,e.x,e.y,e.isInstant,t)}),this)},f.updateStagger=function(){var e=this.options.stagger;if(null!=e)return this.stagger=function(e){if("number"==typeof e)return e;var t=e.match(/(^\d*\.?\d*)(\w*)/),n=t&&t[1],r=t&&t[2];if(!n.length)return 0;return(n=parseFloat(n))*(p[r]||1)}(e),this.stagger;this.stagger=0},f._positionItem=function(e,t,n,r,i){r?e.goTo(t,n):(e.stagger(i*this.stagger),e.moveTo(t,n))},f._postLayout=function(){this.resizeContainer()},f.resizeContainer=function(){if(this._getOption("resizeContainer")){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},f._getContainerSize=l,f._setContainerMeasure=function(e,t){if(void 0!==e){var n=this.size;n.isBorderBox&&(e+=t?n.paddingLeft+n.paddingRight+n.borderLeftWidth+n.borderRightWidth:n.paddingBottom+n.paddingTop+n.borderTopWidth+n.borderBottomWidth),e=Math.max(e,0),this.element.style[t?"width":"height"]=e+"px"}},f._emitCompleteOnItems=function(e,t){var n=this;function r(){n.dispatchEvent(e+"Complete",null,[t])}var i=t.length;if(t&&i){var o=0;t.forEach((function(t){t.once(e,a)}))}else r();function a(){++o==i&&r()}},f.dispatchEvent=function(e,t,n){var r=t?[t].concat(n):n;if(this.emitEvent(e,r),a)if(this.$element=this.$element||a(this.element),t){var i=a.Event(t);i.type=e,this.$element.trigger(i,n)}else this.$element.trigger(e,n)}
1
+ !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}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return 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=84)}([function(e,t,n){"use strict";e.exports=n(25)},function(e,t,n){"use strict";var r=n(14),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return void 0===e}function l(e){return null!==e&&"object"==typeof e}function s(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===i.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:l,isPlainObject:s,isUndefined:a,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:u,isStream:function(e){return l(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function e(){var t={};function n(n,r){s(t[r])&&s(n)?t[r]=e(t[r],n):s(n)?t[r]=e({},n):o(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)c(arguments[r],n);return t},extend:function(e,t,n){return c(t,(function(t,i){e[i]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},function(e,t,n){"use strict";e.exports={defaults:{provider:"unsplash",order:"latest",per_page:"20"},unsplash:{requires_key:!1,auth_headers:!1,new:!1,api_var:"client_id",api_query_var:"client_id=",collections_api:"https://api.unsplash.com/collections/",photo_api:"https://api.unsplash.com/photos/",search_api:"https://api.unsplash.com/search/photos/",search_var:"query",arr_key:"results"},pixabay:{requires_key:!0,auth_headers:!1,new:!0,api_var:"key",api_query_var:"key=",photo_api:"https://pixabay.com/api/",search_api:"https://pixabay.com/api/",search_var:"q",arr_key:"hits"},pexels:{requires_key:!0,auth_headers:!0,new:!0,api_var:"",api_query_var:"",photo_api:"https://api.pexels.com/v1/curated/",search_api:"https://api.pexels.com/v1/search/",search_var:"query",arr_key:"photos"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e)return"";var n=new URL(e);return Object.keys(t).forEach((function(e){n.searchParams.append(e,t[e])})),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e,t){if(!e)return{};var n={per_page:a.default.defaults.per_page};n=s(n=l(n,e),e),n=r({},n,t),instant_img_localize.query_debug&&console.table(n);return n},t.getAuth=l,t.getContentSafety=s;var i,o=n(2),a=(i=o)&&i.__esModule?i:{default:i};function l(e,t){return!!a.default[t].api_var&&t?(e[a.default[t].api_var]=instant_img_localize[t+"_app_id"],e):e}function s(e,t){switch(t){case"unsplash":instant_img_localize.unsplash_content_filter&&(e.content_filter=instant_img_localize.unsplash_content_filter);break;case"pixabay":instant_img_localize.pixabay_safesearch&&(e.safesearch=instant_img_localize.pixabay_safesearch)}return e}},function(e,t,n){var r,i;"undefined"!=typeof window&&window,void 0===(i="function"==typeof(r=function(){"use strict";function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var n=this._events=this._events||{},r=n[e]=n[e]||[];return-1==r.indexOf(t)&&r.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var n=this._onceEvents=this._onceEvents||{};return(n[e]=n[e]||{})[t]=!0,this}},t.off=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){var r=n.indexOf(t);return-1!=r&&n.splice(r,1),this}},t.emitEvent=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){n=n.slice(0),t=t||[];for(var r=this._onceEvents&&this._onceEvents[e],i=0;i<n.length;i++){var o=n[i];r&&r[o]&&(this.off(e,o),delete r[o]),o.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e})?r.call(t,n,t,e):r)||(e.exports=i)},function(e,t,n){var r,i;
2
  /*!
3
  * getSize v2.0.3
4
  * measure size of elements
5
  * MIT license
6
+ */window,void 0===(i="function"==typeof(r=function(){"use strict";function e(e){var t=parseFloat(e);return-1==e.indexOf("%")&&!isNaN(t)&&t}var t="undefined"==typeof console?function(){}:function(e){console.error(e)},n=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],r=n.length;function i(e){var n=getComputedStyle(e);return n||t("Style returned "+n+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),n}var o,a=!1;function l(t){if(function(){if(!a){a=!0;var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box";var n=document.body||document.documentElement;n.appendChild(t);var r=i(t);o=200==Math.round(e(r.width)),l.isBoxSizeOuter=o,n.removeChild(t)}}(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var s=i(t);if("none"==s.display)return function(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t<r;t++)e[n[t]]=0;return e}();var u={};u.width=t.offsetWidth,u.height=t.offsetHeight;for(var c=u.isBorderBox="border-box"==s.boxSizing,f=0;f<r;f++){var d=n[f],p=s[d],h=parseFloat(p);u[d]=isNaN(h)?0:h}var m=u.paddingLeft+u.paddingRight,v=u.paddingTop+u.paddingBottom,y=u.marginLeft+u.marginRight,g=u.marginTop+u.marginBottom,b=u.borderLeftWidth+u.borderRightWidth,_=u.borderTopWidth+u.borderBottomWidth,w=c&&o,k=e(s.width);!1!==k&&(u.width=k+(w?0:m+b));var E=e(s.height);return!1!==E&&(u.height=E+(w?0:v+_)),u.innerWidth=u.width-(m+b),u.innerHeight=u.height-(v+_),u.outerWidth=u.width+y,u.outerHeight=u.height+g,u}}return l})?r.call(t,n,t,e):r)||(e.exports=i)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e){var t=i.default[e],n=(0,a.default)(e);return n=r({},n,{per_page:5,page:1}),(0,o.default)(t.photo_api,n)};var i=l(n(2)),o=l(n(3)),a=l(n(4));function l(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t,n){"use strict";(function(t){var r=n(1),i=n(49),o=n(16),a={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(s=n(17)),s),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(l(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw o(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(a)})),e.exports=u}).call(this,n(23))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=instant_img_localize[e+"_app_id"],n={};switch(e){case"pexels":n={Authorization:t}}return n}},function(e,t,n){"use strict";
7
  /*
8
  object-assign
9
  (c) Sindre Sorhus
10
  @license MIT
11
+ */var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,l,s=a(e),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))i.call(n,c)&&(s[c]=n[c]);if(r){l=r(n);for(var f=0;f<l.length;f++)o.call(n,l[f])&&(s[l[f]]=n[l[f]])}}return s}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=instant_img_localize;400!==t&&401!==t||console.warn("["+n.instant_images+" - "+t+" Error] "+(0,o.default)(e)+": "+n.api_invalid_msg);429===t&&console.warn("["+n.instant_images+" - "+t+" Error] "+(0,o.default)(e)+": "+n.api_ratelimit_msg)};var r,i=n(8),o=(r=i)&&r.__esModule?r:{default:r}},function(e,t,n){e.exports=n(44)},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(1);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var l=e.indexOf("#");-1!==l&&(e=e.slice(0,l)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(1),i=n(50),o=n(51),a=n(15),l=n(52),s=n(55),u=n(56),c=n(18);e.exports=function(e){return new Promise((function(t,n){var f=e.data,d=e.headers,p=e.responseType;r.isFormData(f)&&delete d["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(m+":"+v)}var y=l(e.baseURL,e.url);function g(){if(h){var r="getAllResponseHeaders"in h?s(h.getAllResponseHeaders()):null,o={data:p&&"text"!==p&&"json"!==p?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h};i(t,n,o),h=null}}if(h.open(e.method.toUpperCase(),a(y,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(g)},h.onabort=function(){h&&(n(c("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(c("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var b=(e.withCredentials||u(y))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;b&&(d[e.xsrfHeaderName]=b)}"setRequestHeader"in h&&r.forEach(d,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete d[t]:h.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),p&&"json"!==p&&(h.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),n(e),h=null)})),f||(f=null),h.send(f)}))}},function(e,t,n){"use strict";var r=n(16);e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";var r=n(1);e.exports=function(e,t){t=t||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],l=["validateStatus"];function s(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function u(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=s(void 0,e[i])):n[i]=s(e[i],t[i])}r.forEach(i,(function(e){r.isUndefined(t[e])||(n[e]=s(void 0,t[e]))})),r.forEach(o,u),r.forEach(a,(function(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=s(void 0,e[i])):n[i]=s(void 0,t[i])})),r.forEach(l,(function(r){r in t?n[r]=s(e[r],t[r]):r in e&&(n[r]=s(void 0,e[r]))}));var c=i.concat(o).concat(a).concat(l),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===c.indexOf(e)}));return r.forEach(f,u),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(26)},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,u=[],c=!1,f=-1;function d(){c&&s&&(c=!1,s.length?u=s.concat(u):f=-1,u.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=u.length;t;){for(s=u,u=[];++f<t;)s&&s[f].run();f=-1,t=u.length}s=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||c||l(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){var r;
12
  /*!
13
  Copyright (c) 2018 Jed Watson.
14
  Licensed under the MIT License (MIT), see
21
  *
22
  * This source code is licensed under the MIT license found in the
23
  * LICENSE file in the root directory of this source tree.
24
+ */var r=n(11),i=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,l=60110,s=60112;t.Suspense=60113;var u=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;i=f("react.element"),o=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),a=f("react.provider"),l=f("react.context"),s=f("react.forward_ref"),t.Suspense=f("react.suspense"),u=f("react.memo"),c=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function y(){}function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var b=g.prototype=new y;b.constructor=g,r(b,v.prototype),b.isPureReactComponent=!0;var _={current:null},w=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,n){var r,o={},a=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)w.call(t,r)&&!k.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return{$$typeof:i,type:e,key:a,ref:l,props:o,_owner:_.current}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var S=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function O(e,t,n,r,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case i:case o:s=!0}}if(s)return a=a(s=e),e=""===r?"."+T(s,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(S,"$&/")+"/"),O(a,t,n,"",(function(e){return e}))):null!=a&&(x(a)&&(a=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(S,"$&/")+"/")+e)),t.push(a)),1;if(s=0,r=""===r?".":r+":",Array.isArray(e))for(var u=0;u<e.length;u++){var c=r+T(l=e[u],u);s+=O(l,t,n,c,a)}else if("function"==typeof(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e)))for(e=c.call(e),u=0;!(l=e.next()).done;)s+=O(l=l.value,t,n,c=r+T(l,u++),a);else if("object"===l)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return s}function C(e,t,n){if(null==e)return e;var r=[],i=0;return O(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function P(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var L={current:null};function N(){var e=L.current;if(null===e)throw Error(p(321));return e}var z={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:_,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:C,forEach:function(e,t,n){C(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return C(e,(function(){t++})),t},toArray:function(e){return C(e,(function(e){return e}))||[]},only:function(e){if(!x(e))throw Error(p(143));return e}},t.Component=v,t.PureComponent=g,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var o=r({},e.props),a=e.key,l=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,s=_.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)w.call(t,c)&&!k.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){u=Array(c);for(var f=0;f<c;f++)u[f]=arguments[f+2];o.children=u}return{$$typeof:i,type:e.type,key:a,ref:l,props:o,_owner:s}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:l,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=x,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return N().useCallback(e,t)},t.useContext=function(e,t){return N().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return N().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return N().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return N().useLayoutEffect(e,t)},t.useMemo=function(e,t){return N().useMemo(e,t)},t.useReducer=function(e,t,n){return N().useReducer(e,t,n)},t.useRef=function(e){return N().useRef(e)},t.useState=function(e){return N().useState(e)},t.version="17.0.2"},function(e,t,n){"use strict";
25
  /** @license React v17.0.2
26
  * react-dom.production.min.js
27
  *
29
  *
30
  * This source code is licensed under the MIT license found in the
31
  * LICENSE file in the root directory of this source tree.
32
+ */var r=n(0),i=n(11),o=n(27);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var l=new Set,s={};function u(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)l.add(t[e])}var f=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,h={},m={};function v(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){y[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];y[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){y[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){y[e]=new v(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".split(" ").forEach((function(e){y[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){y[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){y[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){y[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){y[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function _(e,t,n,r){var i=y.hasOwnProperty(t)?y[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!p.call(m,e)||!p.call(h,e)&&(d.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(g,b);y[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,b);y[t]=new v(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(g,b);y[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),y.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=60103,E=60106,x=60107,S=60108,T=60114,O=60109,C=60110,P=60112,L=60113,N=60120,z=60115,j=60116,I=60121,R=60128,M=60129,A=60130,F=60131;if("function"==typeof Symbol&&Symbol.for){var D=Symbol.for;k=D("react.element"),E=D("react.portal"),x=D("react.fragment"),S=D("react.strict_mode"),T=D("react.profiler"),O=D("react.provider"),C=D("react.context"),P=D("react.forward_ref"),L=D("react.suspense"),N=D("react.suspense_list"),z=D("react.memo"),j=D("react.lazy"),I=D("react.block"),D("react.scope"),R=D("react.opaque.id"),M=D("react.debug_trace_mode"),A=D("react.offscreen"),F=D("react.legacy_hidden")}var U,B="function"==typeof Symbol&&Symbol.iterator;function W(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=B&&e[B]||e["@@iterator"])?e:null}function q(e){if(void 0===U)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);U=t&&t[1]||""}return"\n"+U+e}var H=!1;function V(e,t){if(!e||H)return"";H=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var i=e.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,l=o.length-1;1<=a&&0<=l&&i[a]!==o[l];)l--;for(;1<=a&&0<=l;a--,l--)if(i[a]!==o[l]){if(1!==a||1!==l)do{if(a--,0>--l||i[a]!==o[l])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=l);break}}}finally{H=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?q(e):""}function $(e){switch(e.tag){case 5:return q(e.type);case 16:return q("Lazy");case 13:return q("Suspense");case 19:return q("SuspenseList");case 0:case 2:case 15:return e=V(e.type,!1);case 11:return e=V(e.type.render,!1);case 22:return e=V(e.type._render,!1);case 1:return e=V(e.type,!0);default:return""}}function Q(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case E:return"Portal";case T:return"Profiler";case S:return"StrictMode";case L:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case z:return Q(e.type);case I:return Q(e._render);case j:t=e._payload,e=e._init;try{return Q(e(t))}catch(e){}}return null}function G(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=Y(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function X(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Y(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=G(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&_(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=G(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ie(e,t.type,n):t.hasOwnProperty("defaultValue")&&ie(e,t.type,G(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ie(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function oe(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+G(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function le(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function se(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:G(n)}}function ue(e,t){var n=G(t.value),r=G(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml",de="http://www.w3.org/2000/svg";function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ve=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==de||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ye(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ge={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},be=["Webkit","ms","Moz","O"];function _e(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ge.hasOwnProperty(e)&&ge[e]?(""+t).trim():t+"px"}function we(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=_e(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(ge).forEach((function(e){be.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ge[t]=ge[e]}))}));var ke=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ee(e,t){if(t){if(ke[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function xe(e,t){if(-1===e.indexOf("-"))return"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}}function Se(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Te=null,Oe=null,Ce=null;function Pe(e){if(e=Jr(e)){if("function"!=typeof Te)throw Error(a(280));var t=e.stateNode;t&&(t=ei(t),Te(e.stateNode,e.type,t))}}function Le(e){Oe?Ce?Ce.push(e):Ce=[e]:Oe=e}function Ne(){if(Oe){var e=Oe,t=Ce;if(Ce=Oe=null,Pe(e),t)for(e=0;e<t.length;e++)Pe(t[e])}}function ze(e,t){return e(t)}function je(e,t,n,r,i){return e(t,n,r,i)}function Ie(){}var Re=ze,Me=!1,Ae=!1;function Fe(){null===Oe&&null===Ce||(Ie(),Ne())}function De(e,t){var n=e.stateNode;if(null===n)return null;var r=ei(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var Ue=!1;if(f)try{var Be={};Object.defineProperty(Be,"passive",{get:function(){Ue=!0}}),window.addEventListener("test",Be,Be),window.removeEventListener("test",Be,Be)}catch(e){Ue=!1}function We(e,t,n,r,i,o,a,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var qe=!1,He=null,Ve=!1,$e=null,Qe={onError:function(e){qe=!0,He=e}};function Ge(e,t,n,r,i,o,a,l,s){qe=!1,He=null,We.apply(Qe,arguments)}function Ye(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ke(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Xe(e){if(Ye(e)!==e)throw Error(a(188))}function Je(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ye(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Xe(i),e;if(o===r)return Xe(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var l=!1,s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}if(!l){for(s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Ze(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,it=!1,ot=[],at=null,lt=null,st=null,ut=new Map,ct=new Map,ft=[],dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pt(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function ht(e,t){switch(e){case"focusin":case"focusout":at=null;break;case"dragenter":case"dragleave":lt=null;break;case"mouseover":case"mouseout":st=null;break;case"pointerover":case"pointerout":ut.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ct.delete(t.pointerId)}}function mt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=pt(t,n,r,i,o),null!==t&&(null!==(t=Jr(t))&&tt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function vt(e){var t=Xr(e.target);if(null!==t){var n=Ye(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ke(n)))return e.blockedOn=t,void rt(e.lanePriority,(function(){o.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function yt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Jr(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function gt(e,t,n){yt(e)&&n.delete(t)}function bt(){for(it=!1;0<ot.length;){var e=ot[0];if(null!==e.blockedOn){null!==(e=Jr(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&ot.shift()}null!==at&&yt(at)&&(at=null),null!==lt&&yt(lt)&&(lt=null),null!==st&&yt(st)&&(st=null),ut.forEach(gt),ct.forEach(gt)}function _t(e,t){e.blockedOn===t&&(e.blockedOn=null,it||(it=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,bt)))}function wt(e){function t(t){return _t(t,e)}if(0<ot.length){_t(ot[0],e);for(var n=1;n<ot.length;n++){var r=ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==at&&_t(at,e),null!==lt&&_t(lt,e),null!==st&&_t(st,e),ut.forEach(t),ct.forEach(t),n=0;n<ft.length;n++)(r=ft[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ft.length&&null===(n=ft[0]).blockedOn;)vt(n),null===n.blockedOn&&ft.shift()}function kt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Et={animationend:kt("Animation","AnimationEnd"),animationiteration:kt("Animation","AnimationIteration"),animationstart:kt("Animation","AnimationStart"),transitionend:kt("Transition","TransitionEnd")},xt={},St={};function Tt(e){if(xt[e])return xt[e];if(!Et[e])return e;var t,n=Et[e];for(t in n)if(n.hasOwnProperty(t)&&t in St)return xt[e]=n[t];return e}f&&(St=document.createElement("div").style,"AnimationEvent"in window||(delete Et.animationend.animation,delete Et.animationiteration.animation,delete Et.animationstart.animation),"TransitionEvent"in window||delete Et.transitionend.transition);var Ot=Tt("animationend"),Ct=Tt("animationiteration"),Pt=Tt("animationstart"),Lt=Tt("transitionend"),Nt=new Map,zt=new Map,jt=["abort","abort",Ot,"animationEnd",Ct,"animationIteration",Pt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Lt,"transitionEnd","waiting","waiting"];function It(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),zt.set(r,t),Nt.set(r,i),u(i,[r])}}(0,o.unstable_now)();var Rt=8;function Mt(e){if(0!=(1&e))return Rt=15,1;if(0!=(2&e))return Rt=14,2;if(0!=(4&e))return Rt=13,4;var t=24&e;return 0!==t?(Rt=12,t):0!=(32&e)?(Rt=11,32):0!==(t=192&e)?(Rt=10,t):0!=(256&e)?(Rt=9,256):0!==(t=3584&e)?(Rt=8,t):0!=(4096&e)?(Rt=7,4096):0!==(t=4186112&e)?(Rt=6,t):0!==(t=62914560&e)?(Rt=5,t):67108864&e?(Rt=4,67108864):0!=(134217728&e)?(Rt=3,134217728):0!==(t=805306368&e)?(Rt=2,t):0!=(1073741824&e)?(Rt=1,1073741824):(Rt=8,e)}function At(e,t){var n=e.pendingLanes;if(0===n)return Rt=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,l=e.pingedLanes;if(0!==o)r=o,i=Rt=15;else if(0!==(o=134217727&n)){var s=o&~a;0!==s?(r=Mt(s),i=Rt):0!==(l&=o)&&(r=Mt(l),i=Rt)}else 0!==(o=n&~a)?(r=Mt(o),i=Rt):0!==l&&(r=Mt(l),i=Rt);if(0===r)return 0;if(r=n&((0>(r=31-qt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&a)){if(Mt(t),i<=Rt)return t;Rt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-qt(t)),r|=e[n],t&=~i;return r}function Ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Dt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Ut(24&~t))?Dt(10,t):e;case 10:return 0===(e=Ut(192&~t))?Dt(8,t):e;case 8:return 0===(e=Ut(3584&~t))&&(0===(e=Ut(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Ut(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function Ut(e){return e&-e}function Bt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Wt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-qt(t)]=n}var qt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Ht(e)/Vt|0)|0},Ht=Math.log,Vt=Math.LN2;var $t=o.unstable_UserBlockingPriority,Qt=o.unstable_runWithPriority,Gt=!0;function Yt(e,t,n,r){Me||Ie();var i=Xt,o=Me;Me=!0;try{je(i,e,t,n,r)}finally{(Me=o)||Fe()}}function Kt(e,t,n,r){Qt($t,Xt.bind(null,e,t,n,r))}function Xt(e,t,n,r){var i;if(Gt)if((i=0==(4&t))&&0<ot.length&&-1<dt.indexOf(e))e=pt(null,e,t,n,r),ot.push(e);else{var o=Jt(e,t,n,r);if(null===o)i&&ht(e,r);else{if(i){if(-1<dt.indexOf(e))return e=pt(o,e,t,n,r),void ot.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return at=mt(at,e,t,n,r,i),!0;case"dragenter":return lt=mt(lt,e,t,n,r,i),!0;case"mouseover":return st=mt(st,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return ut.set(o,mt(ut.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,ct.set(o,mt(ct.get(o)||null,e,t,n,r,i)),!0}return!1}(o,e,t,n,r))return;ht(e,r)}Lr(e,t,r,null,n)}}}function Jt(e,t,n,r){var i=Se(r);if(null!==(i=Xr(i))){var o=Ye(i);if(null===o)i=null;else{var a=o.tag;if(13===a){if(null!==(i=Ke(o)))return i;i=null}else if(3===a){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return Lr(e,t,r,i,n),null}var Zt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,i="value"in Zt?Zt.value:Zt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return tn=i.slice(e,1<t?1-t:void 0)}function rn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function on(){return!0}function an(){return!1}function ln(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?on:an,this.isPropagationStopped=an,this}return i(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var sn,un,cn,fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=ln(fn),pn=i({},fn,{view:0,detail:0}),hn=ln(pn),mn=i({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(sn=e.screenX-cn.screenX,un=e.screenY-cn.screenY):un=sn=0,cn=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:un}}),vn=ln(mn),yn=ln(i({},mn,{dataTransfer:0})),gn=ln(i({},pn,{relatedTarget:0})),bn=ln(i({},fn,{animationName:0,elapsedTime:0,pseudoElement:0})),_n=ln(i({},fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),wn=ln(i({},fn,{data:0})),kn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},En={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function Tn(){return Sn}var On=ln(i({},pn,{key:function(e){if(e.key){var t=kn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?En[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tn,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Cn=ln(i({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=ln(i({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tn})),Ln=ln(i({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nn=ln(i({},mn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),zn=[9,13,27,32],jn=f&&"CompositionEvent"in window,In=null;f&&"documentMode"in document&&(In=document.documentMode);var Rn=f&&"TextEvent"in window&&!In,Mn=f&&(!jn||In&&8<In&&11>=In),An=String.fromCharCode(32),Fn=!1;function Dn(e,t){switch(e){case"keyup":return-1!==zn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Hn(e,t,n,r){Le(r),0<(t=zr(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,$n=null;function Qn(e){xr(e,0)}function Gn(e){if(X(Zr(e)))return e}function Yn(e,t){if("change"===e)return t}var Kn=!1;if(f){var Xn;if(f){var Jn="oninput"in document;if(!Jn){var Zn=document.createElement("div");Zn.setAttribute("oninput","return;"),Jn="function"==typeof Zn.oninput}Xn=Jn}else Xn=!1;Kn=Xn&&(!document.documentMode||9<document.documentMode)}function er(){Vn&&(Vn.detachEvent("onpropertychange",tr),$n=Vn=null)}function tr(e){if("value"===e.propertyName&&Gn($n)){var t=[];if(Hn(t,$n,e,Se(e)),e=Qn,Me)e(t);else{Me=!0;try{ze(e,t)}finally{Me=!1,Fe()}}}}function nr(e,t,n){"focusin"===e?(er(),$n=n,(Vn=t).attachEvent("onpropertychange",tr)):"focusout"===e&&er()}function rr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn($n)}function ir(e,t){if("click"===e)return Gn(t)}function or(e,t){if("input"===e||"change"===e)return Gn(t)}var ar="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},lr=Object.prototype.hasOwnProperty;function sr(e,t){if(ar(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!lr.call(t,n[r])||!ar(e[n[r]],t[n[r]]))return!1;return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function fr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var pr=f&&"documentMode"in document&&11>=document.documentMode,hr=null,mr=null,vr=null,yr=!1;function gr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==hr||hr!==J(r)||("selectionStart"in(r=hr)&&dr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&sr(vr,r)||(vr=r,0<(r=zr(mr,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=hr)))}It("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),It("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),It(jt,2);for(var br="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),_r=0;_r<br.length;_r++)zt.set(br[_r],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),kr=new Set("cancel close invalid load scroll toggle".split(" ").concat(wr));function Er(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,l,s,u){if(Ge.apply(this,arguments),qe){if(!qe)throw Error(a(198));var c=He;qe=!1,He=null,Ve||(Ve=!0,$e=c)}}(r,t,void 0,e),e.currentTarget=null}function xr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==o&&i.isPropagationStopped())break e;Er(i,l,u),o=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,u=l.currentTarget,l=l.listener,s!==o&&i.isPropagationStopped())break e;Er(i,l,u),o=s}}}if(Ve)throw e=$e,Ve=!1,$e=null,e}function Sr(e,t){var n=ti(t),r=e+"__bubble";n.has(r)||(Pr(t,e,2,!1),n.add(r))}var Tr="_reactListening"+Math.random().toString(36).slice(2);function Or(e){e[Tr]||(e[Tr]=!0,l.forEach((function(t){kr.has(t)||Cr(t,!1,e,null),Cr(t,!0,e,null)})))}function Cr(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=n;if("selectionchange"===e&&9!==n.nodeType&&(o=n.ownerDocument),null!==r&&!t&&kr.has(e)){if("scroll"!==e)return;i|=2,o=r}var a=ti(o),l=e+"__"+(t?"capture":"bubble");a.has(l)||(t&&(i|=4),Pr(o,e,i,t),a.add(l))}function Pr(e,t,n,r){var i=zt.get(t);switch(void 0===i?2:i){case 0:i=Yt;break;case 1:i=Kt;break;default:i=Xt}n=i.bind(null,t,n,e),i=void 0,!Ue||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Lr(e,t,n,r,i){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===i||8===l.nodeType&&l.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===i||8===s.nodeType&&s.parentNode===i))return;a=a.return}for(;null!==l;){if(null===(a=Xr(l)))return;if(5===(s=a.tag)||6===s){r=o=a;continue e}l=l.parentNode}}r=r.return}!function(e,t,n){if(Ae)return e(t,n);Ae=!0;try{Re(e,t,n)}finally{Ae=!1,Fe()}}((function(){var r=o,i=Se(n),a=[];e:{var l=Nt.get(e);if(void 0!==l){var s=dn,u=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":s=On;break;case"focusin":u="focus",s=gn;break;case"focusout":u="blur",s=gn;break;case"beforeblur":case"afterblur":s=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=vn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=yn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Pn;break;case Ot:case Ct:case Pt:s=bn;break;case Lt:s=Ln;break;case"scroll":s=hn;break;case"wheel":s=Nn;break;case"copy":case"cut":case"paste":s=_n;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Cn}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==l?l+"Capture":null:l;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==d&&(null!=(m=De(h,d))&&c.push(Nr(h,m,p)))),f)break;h=h.return}0<c.length&&(l=new s(l,u,null,n,i),a.push({event:l,listeners:c}))}}if(0==(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(u=n.relatedTarget||n.fromElement)||!Xr(u)&&!u[Yr])&&(s||l)&&(l=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?Xr(u):null)&&(u!==(f=Ye(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=vn,m="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Cn,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==s?l:Zr(s),p=null==u?l:Zr(u),(l=new c(m,h+"leave",s,n,i)).target=f,l.relatedTarget=p,m=null,Xr(i)===r&&((c=new c(d,h+"enter",u,n,i)).target=p,c.relatedTarget=f,m=c),f=m,s&&u)e:{for(d=u,h=0,p=c=s;p;p=jr(p))h++;for(p=0,m=d;m;m=jr(m))p++;for(;0<h-p;)c=jr(c),h--;for(;0<p-h;)d=jr(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=jr(c),d=jr(d)}c=null}else c=null;null!==s&&Ir(a,l,s,c,!1),null!==u&&null!==f&&Ir(a,f,u,c,!0)}if("select"===(s=(l=r?Zr(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var v=Yn;else if(qn(l))if(Kn)v=or;else{v=rr;var y=nr}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(v=ir);switch(v&&(v=v(e,r))?Hn(a,v,n,i):(y&&y(e,l,r),"focusout"===e&&(y=l._wrapperState)&&y.controlled&&"number"===l.type&&ie(l,"number",l.value)),y=r?Zr(r):window,e){case"focusin":(qn(y)||"true"===y.contentEditable)&&(hr=y,mr=r,vr=null);break;case"focusout":vr=mr=hr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,gr(a,n,i);break;case"selectionchange":if(pr)break;case"keydown":case"keyup":gr(a,n,i)}var g;if(jn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Bn?Dn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Mn&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Bn&&(g=nn()):(en="value"in(Zt=i)?Zt.value:Zt.textContent,Bn=!0)),0<(y=zr(r,b)).length&&(b=new wn(b,e,null,n,i),a.push({event:b,listeners:y}),g?b.data=g:null!==(g=Un(n))&&(b.data=g))),(g=Rn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Fn=!0,An);case"textInput":return(e=t.data)===An&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!jn&&Dn(e,t)?(e=nn(),tn=en=Zt=null,Bn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mn&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&(0<(r=zr(r,"onBeforeInput")).length&&(i=new wn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=g))}xr(a,t)}))}function Nr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function zr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=De(e,n))&&r.unshift(Nr(e,o,i)),null!=(o=De(e,t))&&r.push(Nr(e,o,i))),e=e.return}return r}function jr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Ir(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,i?null!=(s=De(n,o))&&a.unshift(Nr(n,s,l)):i||null!=(s=De(n,o))&&a.push(Nr(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Rr(){}var Mr=null,Ar=null;function Fr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Dr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Ur="function"==typeof setTimeout?setTimeout:void 0,Br="function"==typeof clearTimeout?clearTimeout:void 0;function Wr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function qr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Hr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Vr=0;var $r=Math.random().toString(36).slice(2),Qr="__reactFiber$"+$r,Gr="__reactProps$"+$r,Yr="__reactContainer$"+$r,Kr="__reactEvents$"+$r;function Xr(e){var t=e[Qr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Yr]||n[Qr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Hr(e);null!==e;){if(n=e[Qr])return n;e=Hr(e)}return t}n=(e=n).parentNode}return null}function Jr(e){return!(e=e[Qr]||e[Yr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Zr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function ei(e){return e[Gr]||null}function ti(e){var t=e[Kr];return void 0===t&&(t=e[Kr]=new Set),t}var ni=[],ri=-1;function ii(e){return{current:e}}function oi(e){0>ri||(e.current=ni[ri],ni[ri]=null,ri--)}function ai(e,t){ri++,ni[ri]=e.current,e.current=t}var li={},si=ii(li),ui=ii(!1),ci=li;function fi(e,t){var n=e.type.contextTypes;if(!n)return li;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function di(e){return null!=(e=e.childContextTypes)}function pi(){oi(ui),oi(si)}function hi(e,t,n){if(si.current!==li)throw Error(a(168));ai(si,t),ai(ui,n)}function mi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,Q(t)||"Unknown",o));return i({},n,r)}function vi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||li,ci=si.current,ai(si,e),ai(ui,ui.current),!0}function yi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=mi(e,t,ci),r.__reactInternalMemoizedMergedChildContext=e,oi(ui),oi(si),ai(si,e)):oi(ui),ai(ui,n)}var gi=null,bi=null,_i=o.unstable_runWithPriority,wi=o.unstable_scheduleCallback,ki=o.unstable_cancelCallback,Ei=o.unstable_shouldYield,xi=o.unstable_requestPaint,Si=o.unstable_now,Ti=o.unstable_getCurrentPriorityLevel,Oi=o.unstable_ImmediatePriority,Ci=o.unstable_UserBlockingPriority,Pi=o.unstable_NormalPriority,Li=o.unstable_LowPriority,Ni=o.unstable_IdlePriority,zi={},ji=void 0!==xi?xi:function(){},Ii=null,Ri=null,Mi=!1,Ai=Si(),Fi=1e4>Ai?Si:function(){return Si()-Ai};function Di(){switch(Ti()){case Oi:return 99;case Ci:return 98;case Pi:return 97;case Li:return 96;case Ni:return 95;default:throw Error(a(332))}}function Ui(e){switch(e){case 99:return Oi;case 98:return Ci;case 97:return Pi;case 96:return Li;case 95:return Ni;default:throw Error(a(332))}}function Bi(e,t){return e=Ui(e),_i(e,t)}function Wi(e,t,n){return e=Ui(e),wi(e,t,n)}function qi(){if(null!==Ri){var e=Ri;Ri=null,ki(e)}Hi()}function Hi(){if(!Mi&&null!==Ii){Mi=!0;var e=0;try{var t=Ii;Bi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ii=null}catch(t){throw null!==Ii&&(Ii=Ii.slice(e+1)),wi(Oi,qi),t}finally{Mi=!1}}}var Vi=w.ReactCurrentBatchConfig;function $i(e,t){if(e&&e.defaultProps){for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Qi=ii(null),Gi=null,Yi=null,Ki=null;function Xi(){Ki=Yi=Gi=null}function Ji(e){var t=Qi.current;oi(Qi),e.type._context._currentValue=t}function Zi(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function eo(e,t){Gi=e,Ki=Yi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(za=!0),e.firstContext=null)}function to(e,t){if(Ki!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Ki=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Yi){if(null===Gi)throw Error(a(308));Yi=t,Gi.dependencies={lanes:0,firstContext:t,responders:null}}else Yi=Yi.next=t;return e._currentValue}var no=!1;function ro(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function io(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function oo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ao(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function lo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function so(e,t,n,r){var o=e.updateQueue;no=!1;var a=o.firstBaseUpdate,l=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var u=s,c=u.next;u.next=null,null===l?a=c:l.next=c,l=u;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==l&&(null===d?f.firstBaseUpdate=c:d.next=c,f.lastBaseUpdate=u)}}if(null!==a){for(d=o.baseState,l=0,f=c=u=null;;){s=a.lane;var p=a.eventTime;if((r&s)===s){null!==f&&(f=f.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,m=a;switch(s=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,s);break e}d=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null==(s="function"==typeof(h=m.payload)?h.call(p,d,s):h))break e;d=i({},d,s);break e;case 2:no=!0}}null!==a.callback&&(e.flags|=32,null===(s=o.effects)?o.effects=[a]:s.push(a))}else p={eventTime:p,lane:s,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===f?(c=f=p,u=d):f=f.next=p,l|=s;if(null===(a=a.next)){if(null===(s=o.shared.pending))break;a=s.next,s.next=null,o.lastBaseUpdate=s,o.shared.pending=null}}null===f&&(u=d),o.baseState=u,o.firstBaseUpdate=c,o.lastBaseUpdate=f,Il|=l,e.lanes=l,e.memoizedState=d}}function uo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(a(191,i));i.call(r)}}}var co=(new r.Component).refs;function fo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var po={isMounted:function(e){return!!(e=e._reactInternals)&&Ye(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=os(),i=as(e),o=oo(r,i);o.payload=t,null!=n&&(o.callback=n),ao(e,o),ls(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=os(),i=as(e),o=oo(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),ao(e,o),ls(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=os(),r=as(e),i=oo(n,r);i.tag=2,null!=t&&(i.callback=t),ao(e,i),ls(e,r,n)}};function ho(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!sr(n,r)||!sr(i,o))}function mo(e,t,n){var r=!1,i=li,o=t.contextType;return"object"==typeof o&&null!==o?o=to(o):(i=di(t)?ci:si.current,o=(r=null!=(r=t.contextTypes))?fi(e,i):li),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=po,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function vo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&po.enqueueReplaceState(t,t.state,null)}function yo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=co,ro(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=to(o):(o=di(t)?ci:si.current,i.context=fi(e,o)),so(e,n,i,r),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(fo(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&po.enqueueReplaceState(i,i.state,null),so(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4)}var go=Array.isArray;function bo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===co&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function _o(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function wo(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Ds(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function l(t){return e&&null===t.alternate&&(t.flags=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=qs(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=bo(e,t,n),r.return=e,r):((r=Us(n.type,n.key,n.props,null,e.mode,r)).ref=bo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Hs(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=Bs(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=qs(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case k:return(n=Us(t.type,t.key,t.props,null,e.mode,n)).ref=bo(e,null,t),n.return=e,n;case E:return(t=Hs(t,e.mode,n)).return=e,t}if(go(t)||W(t))return(t=Bs(t,e.mode,n,null)).return=e,t;_o(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===i?n.type===x?f(e,t,n.props.children,r,i):u(e,t,n,r):null;case E:return n.key===i?c(e,t,n,r):null}if(go(n)||W(n))return null!==i?null:f(e,t,n,r,null);_o(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case k:return e=e.get(null===r.key?n:r.key)||null,r.type===x?f(t,e,r.props.children,i,r.key):u(t,e,r,i);case E:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(go(r)||W(r))return f(t,e=e.get(n)||null,r,i,null);_o(t,r)}return null}function m(i,a,l,s){for(var u=null,c=null,f=a,m=a=0,v=null;null!==f&&m<l.length;m++){f.index>m?(v=f,f=null):v=f.sibling;var y=p(i,f,l[m],s);if(null===y){null===f&&(f=v);break}e&&f&&null===y.alternate&&t(i,f),a=o(y,a,m),null===c?u=y:c.sibling=y,c=y,f=v}if(m===l.length)return n(i,f),u;if(null===f){for(;m<l.length;m++)null!==(f=d(i,l[m],s))&&(a=o(f,a,m),null===c?u=f:c.sibling=f,c=f);return u}for(f=r(i,f);m<l.length;m++)null!==(v=h(f,i,m,l[m],s))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),a=o(v,a,m),null===c?u=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(i,e)})),u}function v(i,l,s,u){var c=W(s);if("function"!=typeof c)throw Error(a(150));if(null==(s=c.call(s)))throw Error(a(151));for(var f=c=null,m=l,v=l=0,y=null,g=s.next();null!==m&&!g.done;v++,g=s.next()){m.index>v?(y=m,m=null):y=m.sibling;var b=p(i,m,g.value,u);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(i,m),l=o(b,l,v),null===f?c=b:f.sibling=b,f=b,m=y}if(g.done)return n(i,m),c;if(null===m){for(;!g.done;v++,g=s.next())null!==(g=d(i,g.value,u))&&(l=o(g,l,v),null===f?c=g:f.sibling=g,f=g);return c}for(m=r(i,m);!g.done;v++,g=s.next())null!==(g=h(m,i,v,g.value,u))&&(e&&null!==g.alternate&&m.delete(null===g.key?v:g.key),l=o(g,l,v),null===f?c=g:f.sibling=g,f=g);return e&&m.forEach((function(e){return t(i,e)})),c}return function(e,r,o,s){var u="object"==typeof o&&null!==o&&o.type===x&&null===o.key;u&&(o=o.props.children);var c="object"==typeof o&&null!==o;if(c)switch(o.$$typeof){case k:e:{for(c=o.key,u=r;null!==u;){if(u.key===c){switch(u.tag){case 7:if(o.type===x){n(e,u.sibling),(r=i(u,o.props.children)).return=e,e=r;break e}break;default:if(u.elementType===o.type){n(e,u.sibling),(r=i(u,o.props)).ref=bo(e,u,o),r.return=e,e=r;break e}}n(e,u);break}t(e,u),u=u.sibling}o.type===x?((r=Bs(o.props.children,e.mode,s,o.key)).return=e,e=r):((s=Us(o.type,o.key,o.props,null,e.mode,s)).ref=bo(e,r,o),s.return=e,e=s)}return l(e);case E:e:{for(u=o.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Hs(o,e.mode,s)).return=e,e=r}return l(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=qs(o,e.mode,s)).return=e,e=r),l(e);if(go(o))return m(e,r,o,s);if(W(o))return v(e,r,o,s);if(c&&_o(e,o),void 0===o&&!u)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,Q(e.type)||"Component"))}return n(e,r)}}var ko=wo(!0),Eo=wo(!1),xo={},So=ii(xo),To=ii(xo),Oo=ii(xo);function Co(e){if(e===xo)throw Error(a(174));return e}function Po(e,t){switch(ai(Oo,t),ai(To,e),ai(So,xo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}oi(So),ai(So,t)}function Lo(){oi(So),oi(To),oi(Oo)}function No(e){Co(Oo.current);var t=Co(So.current),n=he(t,e.type);t!==n&&(ai(To,e),ai(So,n))}function zo(e){To.current===e&&(oi(So),oi(To))}var jo=ii(0);function Io(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ro=null,Mo=null,Ao=!1;function Fo(e,t){var n=As(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Do(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Uo(e){if(Ao){var t=Mo;if(t){var n=t;if(!Do(e,t)){if(!(t=qr(n.nextSibling))||!Do(e,t))return e.flags=-1025&e.flags|2,Ao=!1,void(Ro=e);Fo(Ro,n)}Ro=e,Mo=qr(t.firstChild)}else e.flags=-1025&e.flags|2,Ao=!1,Ro=e}}function Bo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ro=e}function Wo(e){if(e!==Ro)return!1;if(!Ao)return Bo(e),Ao=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Dr(t,e.memoizedProps))for(t=Mo;t;)Fo(e,t),t=qr(t.nextSibling);if(Bo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Mo=qr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Mo=null}}else Mo=Ro?qr(e.stateNode.nextSibling):null;return!0}function qo(){Mo=Ro=null,Ao=!1}var Ho=[];function Vo(){for(var e=0;e<Ho.length;e++)Ho[e]._workInProgressVersionPrimary=null;Ho.length=0}var $o=w.ReactCurrentDispatcher,Qo=w.ReactCurrentBatchConfig,Go=0,Yo=null,Ko=null,Xo=null,Jo=!1,Zo=!1;function ea(){throw Error(a(321))}function ta(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ar(e[n],t[n]))return!1;return!0}function na(e,t,n,r,i,o){if(Go=o,Yo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,$o.current=null===e||null===e.memoizedState?Ca:Pa,e=n(r,i),Zo){o=0;do{if(Zo=!1,!(25>o))throw Error(a(301));o+=1,Xo=Ko=null,t.updateQueue=null,$o.current=La,e=n(r,i)}while(Zo)}if($o.current=Oa,t=null!==Ko&&null!==Ko.next,Go=0,Xo=Ko=Yo=null,Jo=!1,t)throw Error(a(300));return e}function ra(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Xo?Yo.memoizedState=Xo=e:Xo=Xo.next=e,Xo}function ia(){if(null===Ko){var e=Yo.alternate;e=null!==e?e.memoizedState:null}else e=Ko.next;var t=null===Xo?Yo.memoizedState:Xo.next;if(null!==t)Xo=t,Ko=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Ko=e).memoizedState,baseState:Ko.baseState,baseQueue:Ko.baseQueue,queue:Ko.queue,next:null},null===Xo?Yo.memoizedState=Xo=e:Xo=Xo.next=e}return Xo}function oa(e,t){return"function"==typeof t?t(e):t}function aa(e){var t=ia(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Ko,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var l=i.next;i.next=o.next,o.next=l}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var s=l=o=null,u=i;do{var c=u.lane;if((Go&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===s?(l=s=f,o=r):s=s.next=f,Yo.lanes|=c,Il|=c}u=u.next}while(null!==u&&u!==i);null===s?o=r:s.next=l,ar(r,t.memoizedState)||(za=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function la(e){var t=ia(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var l=i=i.next;do{o=e(o,l.action),l=l.next}while(l!==i);ar(o,t.memoizedState)||(za=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function sa(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(Go&e)===e)&&(t._workInProgressVersionPrimary=r,Ho.push(t))),e)return n(t._source);throw Ho.push(t),Error(a(350))}function ua(e,t,n,r){var i=Tl;if(null===i)throw Error(a(349));var o=t._getVersion,l=o(t._source),s=$o.current,u=s.useState((function(){return sa(i,t,n)})),c=u[1],f=u[0];u=Xo;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var v=Yo;return e.memoizedState={refs:p,source:t,subscribe:r},s.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=o(t._source);if(!ar(l,e)){e=n(t._source),ar(f,e)||(c(e),e=as(v),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,a=e;0<a;){var s=31-qt(a),u=1<<s;r[s]|=e,a&=~u}}}),[n,t,r]),s.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=as(v);i.mutableReadLanes|=r&i.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),ar(h,n)&&ar(m,t)&&ar(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:oa,lastRenderedState:f}).dispatch=c=Ta.bind(null,Yo,e),u.queue=e,u.baseQueue=null,f=sa(i,t,n),u.memoizedState=u.baseState=f),f}function ca(e,t,n){return ua(ia(),e,t,n)}function fa(e){var t=ra();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:oa,lastRenderedState:e}).dispatch=Ta.bind(null,Yo,e),[t.memoizedState,e]}function da(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Yo.updateQueue)?(t={lastEffect:null},Yo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function pa(e){return e={current:e},ra().memoizedState=e}function ha(){return ia().memoizedState}function ma(e,t,n,r){var i=ra();Yo.flags|=e,i.memoizedState=da(1|t,n,void 0,void 0===r?null:r)}function va(e,t,n,r){var i=ia();r=void 0===r?null:r;var o=void 0;if(null!==Ko){var a=Ko.memoizedState;if(o=a.destroy,null!==r&&ta(r,a.deps))return void da(t,n,o,r)}Yo.flags|=e,i.memoizedState=da(1|t,n,o,r)}function ya(e,t){return ma(516,4,e,t)}function ga(e,t){return va(516,4,e,t)}function ba(e,t){return va(4,2,e,t)}function _a(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function wa(e,t,n){return n=null!=n?n.concat([e]):null,va(4,2,_a.bind(null,t,e),n)}function ka(){}function Ea(e,t){var n=ia();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ta(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function xa(e,t){var n=ia();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ta(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Sa(e,t){var n=Di();Bi(98>n?98:n,(function(){e(!0)})),Bi(97<n?97:n,(function(){var n=Qo.transition;Qo.transition=1;try{e(!1),t()}finally{Qo.transition=n}}))}function Ta(e,t,n){var r=os(),i=as(e),o={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===Yo||null!==a&&a===Yo)Zo=Jo=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var l=t.lastRenderedState,s=a(l,n);if(o.eagerReducer=a,o.eagerState=s,ar(s,l))return}catch(e){}ls(e,i,r)}}var Oa={readContext:to,useCallback:ea,useContext:ea,useEffect:ea,useImperativeHandle:ea,useLayoutEffect:ea,useMemo:ea,useReducer:ea,useRef:ea,useState:ea,useDebugValue:ea,useDeferredValue:ea,useTransition:ea,useMutableSource:ea,useOpaqueIdentifier:ea,unstable_isNewReconciler:!1},Ca={readContext:to,useCallback:function(e,t){return ra().memoizedState=[e,void 0===t?null:t],e},useContext:to,useEffect:ya,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ma(4,2,_a.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ma(4,2,e,t)},useMemo:function(e,t){var n=ra();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ra();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Ta.bind(null,Yo,e),[r.memoizedState,e]},useRef:pa,useState:fa,useDebugValue:ka,useDeferredValue:function(e){var t=fa(e),n=t[0],r=t[1];return ya((function(){var t=Qo.transition;Qo.transition=1;try{r(e)}finally{Qo.transition=t}}),[e]),n},useTransition:function(){var e=fa(!1),t=e[0];return pa(e=Sa.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=ra();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},ua(r,e,t,n)},useOpaqueIdentifier:function(){if(Ao){var e=!1,t=function(e){return{$$typeof:R,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Vr++).toString(36))),Error(a(355))})),n=fa(t)[1];return 0==(2&Yo.mode)&&(Yo.flags|=516,da(5,(function(){n("r:"+(Vr++).toString(36))}),void 0,null)),t}return fa(t="r:"+(Vr++).toString(36)),t},unstable_isNewReconciler:!1},Pa={readContext:to,useCallback:Ea,useContext:to,useEffect:ga,useImperativeHandle:wa,useLayoutEffect:ba,useMemo:xa,useReducer:aa,useRef:ha,useState:function(){return aa(oa)},useDebugValue:ka,useDeferredValue:function(e){var t=aa(oa),n=t[0],r=t[1];return ga((function(){var t=Qo.transition;Qo.transition=1;try{r(e)}finally{Qo.transition=t}}),[e]),n},useTransition:function(){var e=aa(oa)[0];return[ha().current,e]},useMutableSource:ca,useOpaqueIdentifier:function(){return aa(oa)[0]},unstable_isNewReconciler:!1},La={readContext:to,useCallback:Ea,useContext:to,useEffect:ga,useImperativeHandle:wa,useLayoutEffect:ba,useMemo:xa,useReducer:la,useRef:ha,useState:function(){return la(oa)},useDebugValue:ka,useDeferredValue:function(e){var t=la(oa),n=t[0],r=t[1];return ga((function(){var t=Qo.transition;Qo.transition=1;try{r(e)}finally{Qo.transition=t}}),[e]),n},useTransition:function(){var e=la(oa)[0];return[ha().current,e]},useMutableSource:ca,useOpaqueIdentifier:function(){return la(oa)[0]},unstable_isNewReconciler:!1},Na=w.ReactCurrentOwner,za=!1;function ja(e,t,n,r){t.child=null===e?Eo(t,null,n,r):ko(t,e.child,n,r)}function Ia(e,t,n,r,i){n=n.render;var o=t.ref;return eo(t,i),r=na(e,t,n,r,o,i),null===e||za?(t.flags|=1,ja(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,el(e,t,i))}function Ra(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||Fs(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Us(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ma(e,t,a,r,i,o))}return a=e.child,0==(i&o)&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:sr)(i,r)&&e.ref===t.ref)?el(e,t,o):(t.flags|=1,(e=Ds(a,r)).ref=t.ref,e.return=t,t.child=e)}function Ma(e,t,n,r,i,o){if(null!==e&&sr(e.memoizedProps,r)&&e.ref===t.ref){if(za=!1,0==(o&i))return t.lanes=e.lanes,el(e,t,o);0!=(16384&e.flags)&&(za=!0)}return Da(e,t,n,r,o)}function Aa(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},ms(t,n);else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},ms(t,e),null;t.memoizedState={baseLanes:0},ms(t,null!==o?o.baseLanes:n)}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,ms(t,r);return ja(e,t,i,n),t.child}function Fa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Da(e,t,n,r,i){var o=di(n)?ci:si.current;return o=fi(t,o),eo(t,i),n=na(e,t,n,r,o,i),null===e||za?(t.flags|=1,ja(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,el(e,t,i))}function Ua(e,t,n,r,i){if(di(n)){var o=!0;vi(t)}else o=!1;if(eo(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),mo(t,n,r),yo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=to(u):u=fi(t,u=di(n)?ci:si.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==u)&&vo(t,a,r,u),no=!1;var d=t.memoizedState;a.state=d,so(t,r,a,i),s=t.memoizedState,l!==r||d!==s||ui.current||no?("function"==typeof c&&(fo(t,n,c,r),s=t.memoizedState),(l=no||ho(t,n,l,r,d,s,u))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4)):("function"==typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,io(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:$i(t.type,l),a.props=u,f=t.pendingProps,d=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=to(s):s=fi(t,s=di(n)?ci:si.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==f||d!==s)&&vo(t,a,r,s),no=!1,d=t.memoizedState,a.state=d,so(t,r,a,i);var h=t.memoizedState;l!==f||d!==h||ui.current||no?("function"==typeof p&&(fo(t,n,p,r),h=t.memoizedState),(u=no||ho(t,n,u,r,d,h,s))?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=s,r=u):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Ba(e,t,n,r,o,i)}function Ba(e,t,n,r,i,o){Fa(e,t);var a=0!=(64&t.flags);if(!r&&!a)return i&&yi(t,n,!1),el(e,t,o);r=t.stateNode,Na.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=ko(t,e.child,null,o),t.child=ko(t,null,l,o)):ja(e,t,l,o),t.memoizedState=r.state,i&&yi(t,n,!0),t.child}function Wa(e){var t=e.stateNode;t.pendingContext?hi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&hi(0,t.context,!1),Po(e,t.containerInfo)}var qa,Ha,Va,$a={dehydrated:null,retryLane:0};function Qa(e,t,n){var r,i=t.pendingProps,o=jo.current,a=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&o)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(o|=1),ai(jo,1&o),null===e?(void 0!==i.fallback&&Uo(t),e=i.children,o=i.fallback,a?(e=Ga(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=$a,e):"number"==typeof i.unstable_expectedLoadTime?(e=Ga(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=$a,t.lanes=33554432,e):((n=Ws({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(i=Ka(e,t,i.children,i.fallback,n),a=t.child,o=e.child.memoizedState,a.memoizedState=null===o?{baseLanes:n}:{baseLanes:o.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=$a,i):(n=Ya(e,t,i.children,n),t.memoizedState=null,n))}function Ga(e,t,n,r){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},0==(2&i)&&null!==o?(o.childLanes=0,o.pendingProps=t):o=Ws(t,i,0,null),n=Bs(n,i,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function Ya(e,t,n,r){var i=e.child;return e=i.sibling,n=Ds(i,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Ka(e,t,n,r,i){var o=t.mode,a=e.child;e=a.sibling;var l={mode:"hidden",children:n};return 0==(2&o)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=l,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Ds(a,l),null!==e?r=Ds(e,r):(r=Bs(r,o,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Xa(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),Zi(e.return,t)}function Ja(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.lastEffect=o)}function Za(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ja(e,t,r.children,n),0!=(2&(r=jo.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Xa(e,n);else if(19===e.tag)Xa(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ai(jo,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Io(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ja(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Io(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ja(t,!0,n,null,o,t.lastEffect);break;case"together":Ja(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function el(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Il|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Ds(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ds(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function tl(e,t){if(!Ao)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function nl(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return di(t.type)&&pi(),null;case 3:return Lo(),oi(ui),oi(si),Vo(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Wo(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:zo(t);var o=Co(Oo.current);if(n=t.type,null!==e&&null!=t.stateNode)Ha(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Co(So.current),Wo(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Qr]=t,r[Gr]=l,n){case"dialog":Sr("cancel",r),Sr("close",r);break;case"iframe":case"object":case"embed":Sr("load",r);break;case"video":case"audio":for(e=0;e<wr.length;e++)Sr(wr[e],r);break;case"source":Sr("error",r);break;case"img":case"image":case"link":Sr("error",r),Sr("load",r);break;case"details":Sr("toggle",r);break;case"input":ee(r,l),Sr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},Sr("invalid",r);break;case"textarea":se(r,l),Sr("invalid",r)}for(var u in Ee(n,l),e=null,l)l.hasOwnProperty(u)&&(o=l[u],"children"===u?"string"==typeof o?r.textContent!==o&&(e=["children",o]):"number"==typeof o&&r.textContent!==""+o&&(e=["children",""+o]):s.hasOwnProperty(u)&&null!=o&&"onScroll"===u&&Sr("scroll",r));switch(n){case"input":K(r),re(r,l,!0);break;case"textarea":K(r),ce(r);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(r.onclick=Rr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(u=9===o.nodeType?o:o.ownerDocument,e===fe&&(e=pe(n)),e===fe?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[Qr]=t,e[Gr]=r,qa(e,t),t.stateNode=e,u=xe(n,r),n){case"dialog":Sr("cancel",e),Sr("close",e),o=r;break;case"iframe":case"object":case"embed":Sr("load",e),o=r;break;case"video":case"audio":for(o=0;o<wr.length;o++)Sr(wr[o],e);o=r;break;case"source":Sr("error",e),o=r;break;case"img":case"image":case"link":Sr("error",e),Sr("load",e),o=r;break;case"details":Sr("toggle",e),o=r;break;case"input":ee(e,r),o=Z(e,r),Sr("invalid",e);break;case"option":o=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=i({},r,{value:void 0}),Sr("invalid",e);break;case"textarea":se(e,r),o=le(e,r),Sr("invalid",e);break;default:o=r}Ee(n,o);var c=o;for(l in c)if(c.hasOwnProperty(l)){var f=c[l];"style"===l?we(e,f):"dangerouslySetInnerHTML"===l?null!=(f=f?f.__html:void 0)&&ve(e,f):"children"===l?"string"==typeof f?("textarea"!==n||""!==f)&&ye(e,f):"number"==typeof f&&ye(e,""+f):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(s.hasOwnProperty(l)?null!=f&&"onScroll"===l&&Sr("scroll",e):null!=f&&_(e,l,f,u))}switch(n){case"input":K(e),re(e,r,!1);break;case"textarea":K(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+G(r.value));break;case"select":e.multiple=!!r.multiple,null!=(l=r.value)?ae(e,!!r.multiple,l,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Rr)}Fr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Va(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=Co(Oo.current),Co(So.current),Wo(t)?(r=t.stateNode,n=t.memoizedProps,r[Qr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Qr]=t,t.stateNode=r)}return null;case 13:return oi(jo),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Wo(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&jo.current)?0===Nl&&(Nl=3):(0!==Nl&&3!==Nl||(Nl=4),null===Tl||0==(134217727&Il)&&0==(134217727&Rl)||fs(Tl,Cl))),(r||n)&&(t.flags|=4),null);case 4:return Lo(),null===e&&Or(t.stateNode.containerInfo),null;case 10:return Ji(t),null;case 17:return di(t.type)&&pi(),null;case 19:if(oi(jo),null===(r=t.memoizedState))return null;if(l=0!=(64&t.flags),null===(u=r.rendering))if(l)tl(r,!1);else{if(0!==Nl||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(u=Io(e))){for(t.flags|=64,tl(r,!1),null!==(l=u.updateQueue)&&(t.updateQueue=l,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(l=n).flags&=2,l.nextEffect=null,l.firstEffect=null,l.lastEffect=null,null===(u=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=u.childLanes,l.lanes=u.lanes,l.child=u.child,l.memoizedProps=u.memoizedProps,l.memoizedState=u.memoizedState,l.updateQueue=u.updateQueue,l.type=u.type,e=u.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ai(jo,1&jo.current|2),t.child}e=e.sibling}null!==r.tail&&Fi()>Dl&&(t.flags|=64,l=!0,tl(r,!1),t.lanes=33554432)}else{if(!l)if(null!==(e=Io(u))){if(t.flags|=64,l=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),tl(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate&&!Ao)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Fi()-r.renderingStartTime>Dl&&1073741824!==n&&(t.flags|=64,l=!0,tl(r,!1),t.lanes=33554432);r.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=r.last)?n.sibling=u:t.child=u,r.last=u)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Fi(),n.sibling=null,t=jo.current,ai(jo,l?1&t|2:1&t),n):null;case 23:case 24:return vs(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function rl(e){switch(e.tag){case 1:di(e.type)&&pi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Lo(),oi(ui),oi(si),Vo(),0!=(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return zo(e),null;case 13:return oi(jo),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return oi(jo),null;case 4:return Lo(),null;case 10:return Ji(e),null;case 23:case 24:return vs(),null;default:return null}}function il(e,t){try{var n="",r=t;do{n+=$(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function ol(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}qa=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ha=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Co(So.current);var a,l=null;switch(n){case"input":o=Z(e,o),r=Z(e,r),l=[];break;case"option":o=oe(e,o),r=oe(e,r),l=[];break;case"select":o=i({},o,{value:void 0}),r=i({},r,{value:void 0}),l=[];break;case"textarea":o=le(e,o),r=le(e,r),l=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Rr)}for(f in Ee(n,r),n=null,o)if(!r.hasOwnProperty(f)&&o.hasOwnProperty(f)&&null!=o[f])if("style"===f){var u=o[f];for(a in u)u.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(s.hasOwnProperty(f)?l||(l=[]):(l=l||[]).push(f,null));for(f in r){var c=r[f];if(u=null!=o?o[f]:void 0,r.hasOwnProperty(f)&&c!==u&&(null!=c||null!=u))if("style"===f)if(u){for(a in u)!u.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&u[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(l||(l=[]),l.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(l=l||[]).push(f,c)):"children"===f?"string"!=typeof c&&"number"!=typeof c||(l=l||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(s.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&Sr("scroll",e),l||u===c||(l=[])):"object"==typeof c&&null!==c&&c.$$typeof===R?c.toString():(l=l||[]).push(f,c))}n&&(l=l||[]).push("style",n);var f=l;(t.updateQueue=f)&&(t.flags|=4)}},Va=function(e,t,n,r){n!==r&&(t.flags|=4)};var al="function"==typeof WeakMap?WeakMap:Map;function ll(e,t,n){(n=oo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ql||(ql=!0,Hl=r),ol(0,t)},n}function sl(e,t,n){(n=oo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return ol(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Vl?Vl=new Set([this]):Vl.add(this),ol(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var ul="function"==typeof WeakSet?WeakSet:Set;function cl(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){js(e,t)}else t.current=null}function fl(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:$i(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Wr(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(a(163))}function dl(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(Ls(n,e),Ps(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:$i(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&uo(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}uo(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Fr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&wt(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(a(163))}function pl(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,r.style.display=_e("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function hl(e,t){if(bi&&"function"==typeof bi.onCommitFiberUnmount)try{bi.onCommitFiberUnmount(gi,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))Ls(t,n);else{r=t;try{i()}catch(e){js(r,e)}}n=n.next}while(n!==e)}break;case 1:if(cl(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){js(t,e)}break;case 5:cl(t);break;case 4:gl(e,t)}}function ml(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function vl(e){return 5===e.tag||3===e.tag||4===e.tag}function yl(e){e:{for(var t=e.return;null!==t;){if(vl(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(ye(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||vl(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=Rr));else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function gl(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(a(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var l=e,s=i,u=s;;)if(hl(l,u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===s)break e;for(;null===u.sibling;){if(null===u.return||u.return===s)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}r?(l=n,s=i.stateNode,8===l.nodeType?l.parentNode.removeChild(s):l.removeChild(s)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(hl(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function bl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Gr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),xe(e,i),t=xe(e,r),i=0;i<o.length;i+=2){var l=o[i],s=o[i+1];"style"===l?we(n,s):"dangerouslySetInnerHTML"===l?ve(n,s):"children"===l?ye(n,s):_(n,l,s,t)}switch(e){case"input":ne(n,r);break;case"textarea":ue(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?ae(n,!!r.multiple,o,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,wt(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(Fl=Fi(),pl(t.child,!0)),void _l(t);case 19:return void _l(t);case 17:return;case 23:case 24:return void pl(t,null!==t.memoizedState)}throw Error(a(163))}function _l(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ul),t.forEach((function(t){var r=Rs.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function wl(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var kl=Math.ceil,El=w.ReactCurrentDispatcher,xl=w.ReactCurrentOwner,Sl=0,Tl=null,Ol=null,Cl=0,Pl=0,Ll=ii(0),Nl=0,zl=null,jl=0,Il=0,Rl=0,Ml=0,Al=null,Fl=0,Dl=1/0;function Ul(){Dl=Fi()+500}var Bl,Wl=null,ql=!1,Hl=null,Vl=null,$l=!1,Ql=null,Gl=90,Yl=[],Kl=[],Xl=null,Jl=0,Zl=null,es=-1,ts=0,ns=0,rs=null,is=!1;function os(){return 0!=(48&Sl)?Fi():-1!==es?es:es=Fi()}function as(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Di()?1:2;if(0===ts&&(ts=jl),0!==Vi.transition){0!==ns&&(ns=null!==Al?Al.pendingLanes:0),e=ts;var t=4186112&~ns;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Di(),0!=(4&Sl)&&98===e?e=Dt(12,ts):e=Dt(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ts),e}function ls(e,t,n){if(50<Jl)throw Jl=0,Zl=null,Error(a(185));if(null===(e=ss(e,t)))return null;Wt(e,t,n),e===Tl&&(Rl|=t,4===Nl&&fs(e,Cl));var r=Di();1===t?0!=(8&Sl)&&0==(48&Sl)?ds(e):(us(e,n),0===Sl&&(Ul(),qi())):(0==(4&Sl)||98!==r&&99!==r||(null===Xl?Xl=new Set([e]):Xl.add(e)),us(e,n)),Al=e}function ss(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function us(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,l=e.pendingLanes;0<l;){var s=31-qt(l),u=1<<s,c=o[s];if(-1===c){if(0==(u&r)||0!=(u&i)){c=t,Mt(u);var f=Rt;o[s]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=u);l&=~u}if(r=At(e,e===Tl?Cl:0),t=Rt,0===r)null!==n&&(n!==zi&&ki(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==zi&&ki(n)}15===t?(n=ds.bind(null,e),null===Ii?(Ii=[n],Ri=wi(Oi,Hi)):Ii.push(n),n=zi):14===t?n=Wi(99,ds.bind(null,e)):n=Wi(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),cs.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function cs(e){if(es=-1,ns=ts=0,0!=(48&Sl))throw Error(a(327));var t=e.callbackNode;if(Cs()&&e.callbackNode!==t)return null;var n=At(e,e===Tl?Cl:0);if(0===n)return null;var r=n,i=Sl;Sl|=16;var o=bs();for(Tl===e&&Cl===r||(Ul(),ys(e,r));;)try{ks();break}catch(t){gs(e,t)}if(Xi(),El.current=o,Sl=i,null!==Ol?r=0:(Tl=null,Cl=0,r=Nl),0!=(jl&Rl))ys(e,0);else if(0!==r){if(2===r&&(Sl|=64,e.hydrate&&(e.hydrate=!1,Wr(e.containerInfo)),0!==(n=Ft(e))&&(r=_s(e,n))),1===r)throw t=zl,ys(e,0),fs(e,n),us(e,Fi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:Ss(e);break;case 3:if(fs(e,n),(62914560&n)===n&&10<(r=Fl+500-Fi())){if(0!==At(e,0))break;if(((i=e.suspendedLanes)&n)!==n){os(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ur(Ss.bind(null,e),r);break}Ss(e);break;case 4:if(fs(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var l=31-qt(n);o=1<<l,(l=r[l])>i&&(i=l),n&=~o}if(n=i,10<(n=(120>(n=Fi()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*kl(n/1960))-n)){e.timeoutHandle=Ur(Ss.bind(null,e),n);break}Ss(e);break;case 5:Ss(e);break;default:throw Error(a(329))}}return us(e,Fi()),e.callbackNode===t?cs.bind(null,e):null}function fs(e,t){for(t&=~Ml,t&=~Rl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-qt(t),r=1<<n;e[n]=-1,t&=~r}}function ds(e){if(0!=(48&Sl))throw Error(a(327));if(Cs(),e===Tl&&0!=(e.expiredLanes&Cl)){var t=Cl,n=_s(e,t);0!=(jl&Rl)&&(n=_s(e,t=At(e,t)))}else n=_s(e,t=At(e,0));if(0!==e.tag&&2===n&&(Sl|=64,e.hydrate&&(e.hydrate=!1,Wr(e.containerInfo)),0!==(t=Ft(e))&&(n=_s(e,t))),1===n)throw n=zl,ys(e,0),fs(e,t),us(e,Fi()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ss(e),us(e,Fi()),null}function ps(e,t){var n=Sl;Sl|=1;try{return e(t)}finally{0===(Sl=n)&&(Ul(),qi())}}function hs(e,t){var n=Sl;Sl&=-2,Sl|=8;try{return e(t)}finally{0===(Sl=n)&&(Ul(),qi())}}function ms(e,t){ai(Ll,Pl),Pl|=t,jl|=t}function vs(){Pl=Ll.current,oi(Ll)}function ys(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Br(n)),null!==Ol)for(n=Ol.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&pi();break;case 3:Lo(),oi(ui),oi(si),Vo();break;case 5:zo(r);break;case 4:Lo();break;case 13:case 19:oi(jo);break;case 10:Ji(r);break;case 23:case 24:vs()}n=n.return}Tl=e,Ol=Ds(e.current,null),Cl=Pl=jl=t,Nl=0,zl=null,Ml=Rl=Il=0}function gs(e,t){for(;;){var n=Ol;try{if(Xi(),$o.current=Oa,Jo){for(var r=Yo.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}Jo=!1}if(Go=0,Xo=Ko=Yo=null,Zo=!1,xl.current=null,null===n||null===n.return){Nl=1,zl=t,Ol=null;break}e:{var o=e,a=n.return,l=n,s=t;if(t=Cl,l.flags|=2048,l.firstEffect=l.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var u=s;if(0==(2&l.mode)){var c=l.alternate;c?(l.updateQueue=c.updateQueue,l.memoizedState=c.memoizedState,l.lanes=c.lanes):(l.updateQueue=null,l.memoizedState=null)}var f=0!=(1&jo.current),d=a;do{var p;if(p=13===d.tag){var h=d.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var m=d.memoizedProps;p=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!f)}}if(p){var v=d.updateQueue;if(null===v){var y=new Set;y.add(u),d.updateQueue=y}else v.add(u);if(0==(2&d.mode)){if(d.flags|=64,l.flags|=16384,l.flags&=-2981,1===l.tag)if(null===l.alternate)l.tag=17;else{var g=oo(-1,1);g.tag=2,ao(l,g)}l.lanes|=1;break e}s=void 0,l=t;var b=o.pingCache;if(null===b?(b=o.pingCache=new al,s=new Set,b.set(u,s)):void 0===(s=b.get(u))&&(s=new Set,b.set(u,s)),!s.has(l)){s.add(l);var _=Is.bind(null,o,u,l);u.then(_,_)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);s=Error((Q(l.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Nl&&(Nl=2),s=il(s,l),d=a;do{switch(d.tag){case 3:o=s,d.flags|=4096,t&=-t,d.lanes|=t,lo(d,ll(0,o,t));break e;case 1:o=s;var w=d.type,k=d.stateNode;if(0==(64&d.flags)&&("function"==typeof w.getDerivedStateFromError||null!==k&&"function"==typeof k.componentDidCatch&&(null===Vl||!Vl.has(k)))){d.flags|=4096,t&=-t,d.lanes|=t,lo(d,sl(d,o,t));break e}}d=d.return}while(null!==d)}xs(n)}catch(e){t=e,Ol===n&&null!==n&&(Ol=n=n.return);continue}break}}function bs(){var e=El.current;return El.current=Oa,null===e?Oa:e}function _s(e,t){var n=Sl;Sl|=16;var r=bs();for(Tl===e&&Cl===t||ys(e,t);;)try{ws();break}catch(t){gs(e,t)}if(Xi(),Sl=n,El.current=r,null!==Ol)throw Error(a(261));return Tl=null,Cl=0,Nl}function ws(){for(;null!==Ol;)Es(Ol)}function ks(){for(;null!==Ol&&!Ei();)Es(Ol)}function Es(e){var t=Bl(e.alternate,e,Pl);e.memoizedProps=e.pendingProps,null===t?xs(e):Ol=t,xl.current=null}function xs(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=nl(n,t,Pl)))return void(Ol=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Pl)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=rl(t)))return n.flags&=2047,void(Ol=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Ol=t);Ol=t=e}while(null!==t);0===Nl&&(Nl=5)}function Ss(e){var t=Di();return Bi(99,Ts.bind(null,e,t)),null}function Ts(e,t){do{Cs()}while(null!==Ql);if(0!=(48&Sl))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,o=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var l=e.eventTimes,s=e.expirationTimes;0<o;){var u=31-qt(o),c=1<<u;i[u]=0,l[u]=-1,s[u]=-1,o&=~c}if(null!==Xl&&0==(24&r)&&Xl.has(e)&&Xl.delete(e),e===Tl&&(Ol=Tl=null,Cl=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=Sl,Sl|=32,xl.current=null,Mr=Gt,dr(l=fr())){if("selectionStart"in l)s={start:l.selectionStart,end:l.selectionEnd};else e:if(s=(s=l.ownerDocument)&&s.defaultView||window,(c=s.getSelection&&s.getSelection())&&0!==c.rangeCount){s=c.anchorNode,o=c.anchorOffset,u=c.focusNode,c=c.focusOffset;try{s.nodeType,u.nodeType}catch(e){s=null;break e}var f=0,d=-1,p=-1,h=0,m=0,v=l,y=null;t:for(;;){for(var g;v!==s||0!==o&&3!==v.nodeType||(d=f+o),v!==u||0!==c&&3!==v.nodeType||(p=f+c),3===v.nodeType&&(f+=v.nodeValue.length),null!==(g=v.firstChild);)y=v,v=g;for(;;){if(v===l)break t;if(y===s&&++h===o&&(d=f),y===u&&++m===c&&(p=f),null!==(g=v.nextSibling))break;y=(v=y).parentNode}v=g}s=-1===d||-1===p?null:{start:d,end:p}}else s=null;s=s||{start:0,end:0}}else s=null;Ar={focusedElem:l,selectionRange:s},Gt=!1,rs=null,is=!1,Wl=r;do{try{Os()}catch(e){if(null===Wl)throw Error(a(330));js(Wl,e),Wl=Wl.nextEffect}}while(null!==Wl);rs=null,Wl=r;do{try{for(l=e;null!==Wl;){var b=Wl.flags;if(16&b&&ye(Wl.stateNode,""),128&b){var _=Wl.alternate;if(null!==_){var w=_.ref;null!==w&&("function"==typeof w?w(null):w.current=null)}}switch(1038&b){case 2:yl(Wl),Wl.flags&=-3;break;case 6:yl(Wl),Wl.flags&=-3,bl(Wl.alternate,Wl);break;case 1024:Wl.flags&=-1025;break;case 1028:Wl.flags&=-1025,bl(Wl.alternate,Wl);break;case 4:bl(Wl.alternate,Wl);break;case 8:gl(l,s=Wl);var k=s.alternate;ml(s),null!==k&&ml(k)}Wl=Wl.nextEffect}}catch(e){if(null===Wl)throw Error(a(330));js(Wl,e),Wl=Wl.nextEffect}}while(null!==Wl);if(w=Ar,_=fr(),b=w.focusedElem,l=w.selectionRange,_!==b&&b&&b.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(b.ownerDocument.documentElement,b)){null!==l&&dr(b)&&(_=l.start,void 0===(w=l.end)&&(w=_),"selectionStart"in b?(b.selectionStart=_,b.selectionEnd=Math.min(w,b.value.length)):(w=(_=b.ownerDocument||document)&&_.defaultView||window).getSelection&&(w=w.getSelection(),s=b.textContent.length,k=Math.min(l.start,s),l=void 0===l.end?k:Math.min(l.end,s),!w.extend&&k>l&&(s=l,l=k,k=s),s=cr(b,k),o=cr(b,l),s&&o&&(1!==w.rangeCount||w.anchorNode!==s.node||w.anchorOffset!==s.offset||w.focusNode!==o.node||w.focusOffset!==o.offset)&&((_=_.createRange()).setStart(s.node,s.offset),w.removeAllRanges(),k>l?(w.addRange(_),w.extend(o.node,o.offset)):(_.setEnd(o.node,o.offset),w.addRange(_))))),_=[];for(w=b;w=w.parentNode;)1===w.nodeType&&_.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<_.length;b++)(w=_[b]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Gt=!!Mr,Ar=Mr=null,e.current=n,Wl=r;do{try{for(b=e;null!==Wl;){var E=Wl.flags;if(36&E&&dl(b,Wl.alternate,Wl),128&E){_=void 0;var x=Wl.ref;if(null!==x){var S=Wl.stateNode;switch(Wl.tag){case 5:_=S;break;default:_=S}"function"==typeof x?x(_):x.current=_}}Wl=Wl.nextEffect}}catch(e){if(null===Wl)throw Error(a(330));js(Wl,e),Wl=Wl.nextEffect}}while(null!==Wl);Wl=null,ji(),Sl=i}else e.current=n;if($l)$l=!1,Ql=e,Gl=t;else for(Wl=r;null!==Wl;)t=Wl.nextEffect,Wl.nextEffect=null,8&Wl.flags&&((E=Wl).sibling=null,E.stateNode=null),Wl=t;if(0===(r=e.pendingLanes)&&(Vl=null),1===r?e===Zl?Jl++:(Jl=0,Zl=e):Jl=0,n=n.stateNode,bi&&"function"==typeof bi.onCommitFiberRoot)try{bi.onCommitFiberRoot(gi,n,void 0,64==(64&n.current.flags))}catch(e){}if(us(e,Fi()),ql)throw ql=!1,e=Hl,Hl=null,e;return 0!=(8&Sl)||qi(),null}function Os(){for(;null!==Wl;){var e=Wl.alternate;is||null===rs||(0!=(8&Wl.flags)?Ze(Wl,rs)&&(is=!0):13===Wl.tag&&wl(e,Wl)&&Ze(Wl,rs)&&(is=!0));var t=Wl.flags;0!=(256&t)&&fl(e,Wl),0==(512&t)||$l||($l=!0,Wi(97,(function(){return Cs(),null}))),Wl=Wl.nextEffect}}function Cs(){if(90!==Gl){var e=97<Gl?97:Gl;return Gl=90,Bi(e,Ns)}return!1}function Ps(e,t){Yl.push(t,e),$l||($l=!0,Wi(97,(function(){return Cs(),null})))}function Ls(e,t){Kl.push(t,e),$l||($l=!0,Wi(97,(function(){return Cs(),null})))}function Ns(){if(null===Ql)return!1;var e=Ql;if(Ql=null,0!=(48&Sl))throw Error(a(331));var t=Sl;Sl|=32;var n=Kl;Kl=[];for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1],l=i.destroy;if(i.destroy=void 0,"function"==typeof l)try{l()}catch(e){if(null===o)throw Error(a(330));js(o,e)}}for(n=Yl,Yl=[],r=0;r<n.length;r+=2){i=n[r],o=n[r+1];try{var s=i.create;i.destroy=s()}catch(e){if(null===o)throw Error(a(330));js(o,e)}}for(s=e.current.firstEffect;null!==s;)e=s.nextEffect,s.nextEffect=null,8&s.flags&&(s.sibling=null,s.stateNode=null),s=e;return Sl=t,qi(),!0}function zs(e,t,n){ao(e,t=ll(0,t=il(n,t),1)),t=os(),null!==(e=ss(e,1))&&(Wt(e,1,t),us(e,t))}function js(e,t){if(3===e.tag)zs(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){zs(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Vl||!Vl.has(r))){var i=sl(n,e=il(t,e),1);if(ao(n,i),i=os(),null!==(n=ss(n,1)))Wt(n,1,i),us(n,i);else if("function"==typeof r.componentDidCatch&&(null===Vl||!Vl.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Is(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=os(),e.pingedLanes|=e.suspendedLanes&n,Tl===e&&(Cl&n)===n&&(4===Nl||3===Nl&&(62914560&Cl)===Cl&&500>Fi()-Fl?ys(e,0):Ml|=n),us(e,t)}function Rs(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Di()?1:2:(0===ts&&(ts=jl),0===(t=Ut(62914560&~ts))&&(t=4194304))),n=os(),null!==(e=ss(e,t))&&(Wt(e,t,n),us(e,n))}function Ms(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function As(e,t,n,r){return new Ms(e,t,n,r)}function Fs(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ds(e,t){var n=e.alternate;return null===n?((n=As(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Us(e,t,n,r,i,o){var l=2;if(r=e,"function"==typeof e)Fs(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case x:return Bs(n.children,i,o,t);case M:l=8,i|=16;break;case S:l=8,i|=1;break;case T:return(e=As(12,n,t,8|i)).elementType=T,e.type=T,e.lanes=o,e;case L:return(e=As(13,n,t,i)).type=L,e.elementType=L,e.lanes=o,e;case N:return(e=As(19,n,t,i)).elementType=N,e.lanes=o,e;case A:return Ws(n,i,o,t);case F:return(e=As(24,n,t,i)).elementType=F,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:l=10;break e;case C:l=9;break e;case P:l=11;break e;case z:l=14;break e;case j:l=16,r=null;break e;case I:l=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=As(l,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function Bs(e,t,n,r){return(e=As(7,e,r,t)).lanes=n,e}function Ws(e,t,n,r){return(e=As(23,e,r,t)).elementType=A,e.lanes=n,e}function qs(e,t,n){return(e=As(6,e,null,t)).lanes=n,e}function Hs(e,t,n){return(t=As(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vs(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Bt(0),this.expirationTimes=Bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.mutableSourceEagerHydrationData=null}function $s(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:E,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Qs(e,t,n,r){var i=t.current,o=os(),l=as(i);e:if(n){t:{if(Ye(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(di(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(a(171))}if(1===n.tag){var u=n.type;if(di(u)){n=mi(n,u,s);break e}}n=s}else n=li;return null===t.context?t.context=n:t.pendingContext=n,(t=oo(o,l)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ao(i,t),ls(i,l,o),l}function Gs(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Ys(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Ks(e,t){Ys(e,t),(e=e.alternate)&&Ys(e,t)}function Xs(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Vs(e,t,null!=n&&!0===n.hydrate),t=As(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ro(t),e[Yr]=n.current,Or(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function Js(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zs(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var l=i;i=function(){var e=Gs(a);l.call(e)}}Qs(t,a,e,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Xs(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"==typeof i){var s=i;i=function(){var e=Gs(a);s.call(e)}}hs((function(){Qs(t,a,e,i)}))}return Gs(a)}function eu(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Js(t))throw Error(a(200));return $s(e,t,null,n)}Bl=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||ui.current)za=!0;else{if(0==(n&r)){switch(za=!1,t.tag){case 3:Wa(t),qo();break;case 5:No(t);break;case 1:di(t.type)&&vi(t);break;case 4:Po(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;ai(Qi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Qa(e,t,n):(ai(jo,1&jo.current),null!==(t=el(e,t,n))?t.sibling:null);ai(jo,1&jo.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return Za(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ai(jo,jo.current),r)break;return null;case 23:case 24:return t.lanes=0,Aa(e,t,n)}return el(e,t,n)}za=0!=(16384&e.flags)}else za=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=fi(t,si.current),eo(t,n),i=na(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,di(r)){var o=!0;vi(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,ro(t);var l=r.getDerivedStateFromProps;"function"==typeof l&&fo(t,r,l,e),i.updater=po,t.stateNode=i,i._reactInternals=t,yo(t,r,e,n),t=Ba(null,t,r,!0,o,n)}else t.tag=0,ja(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"==typeof e)return Fs(e)?1:0;if(null!=e){if((e=e.$$typeof)===P)return 11;if(e===z)return 14}return 2}(i),e=$i(i,e),o){case 0:t=Da(null,t,i,e,n);break e;case 1:t=Ua(null,t,i,e,n);break e;case 11:t=Ia(null,t,i,e,n);break e;case 14:t=Ra(null,t,i,$i(i.type,e),r,n);break e}throw Error(a(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Da(e,t,r,i=t.elementType===r?i:$i(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ua(e,t,r,i=t.elementType===r?i:$i(r,i),n);case 3:if(Wa(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,io(e,t),so(t,r,null,n),(r=t.memoizedState.element)===i)qo(),t=el(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(Mo=qr(t.stateNode.containerInfo.firstChild),Ro=t,o=Ao=!0),o){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(o=e[i])._workInProgressVersionPrimary=e[i+1],Ho.push(o);for(n=Eo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else ja(e,t,r,n),qo();t=t.child}return t;case 5:return No(t),null===e&&Uo(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,l=i.children,Dr(r,i)?l=null:null!==o&&Dr(r,o)&&(t.flags|=16),Fa(e,t),ja(e,t,l,n),t.child;case 6:return null===e&&Uo(t),null;case 13:return Qa(e,t,n);case 4:return Po(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ko(t,null,r,n):ja(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Ia(e,t,r,i=t.elementType===r?i:$i(r,i),n);case 7:return ja(e,t,t.pendingProps,n),t.child;case 8:case 12:return ja(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,l=t.memoizedProps,o=i.value;var s=t.type._context;if(ai(Qi,s._currentValue),s._currentValue=o,null!==l)if(s=l.value,0===(o=ar(s,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(s,o):1073741823))){if(l.children===i.children&&!ui.current){t=el(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var u=s.dependencies;if(null!==u){l=s.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&o)){1===s.tag&&((c=oo(-1,n&-n)).tag=2,ao(s,c)),s.lanes|=n,null!==(c=s.alternate)&&(c.lanes|=n),Zi(s.return,n),u.lanes|=n;break}c=c.next}}else l=10===s.tag&&s.type===t.type?null:s.child;if(null!==l)l.return=s;else for(l=s;null!==l;){if(l===t){l=null;break}if(null!==(s=l.sibling)){s.return=l.return,l=s;break}l=l.return}s=l}ja(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,eo(t,n),r=r(i=to(i,o.unstable_observedBits)),t.flags|=1,ja(e,t,r,n),t.child;case 14:return o=$i(i=t.type,t.pendingProps),Ra(e,t,i,o=$i(i.type,o),r,n);case 15:return Ma(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:$i(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,di(r)?(e=!0,vi(t)):e=!1,eo(t,n),mo(t,r,i),yo(t,r,i,n),Ba(null,t,r,!0,e,n);case 19:return Za(e,t,n);case 23:case 24:return Aa(e,t,n)}throw Error(a(156,t.tag))},Xs.prototype.render=function(e){Qs(e,this._internalRoot,null,null)},Xs.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Qs(null,e,null,(function(){t[Yr]=null}))},et=function(e){13===e.tag&&(ls(e,4,os()),Ks(e,4))},tt=function(e){13===e.tag&&(ls(e,67108864,os()),Ks(e,67108864))},nt=function(e){if(13===e.tag){var t=os(),n=as(e);ls(e,n,t),Ks(e,n)}},rt=function(e,t){return t()},Te=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ei(r);if(!i)throw Error(a(90));X(r),ne(r,i)}}}break;case"textarea":ue(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},ze=ps,je=function(e,t,n,r,i){var o=Sl;Sl|=4;try{return Bi(98,e.bind(null,t,n,r,i))}finally{0===(Sl=o)&&(Ul(),qi())}},Ie=function(){0==(49&Sl)&&(function(){if(null!==Xl){var e=Xl;Xl=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,us(e,Fi())}))}qi()}(),Cs())},Re=function(e,t){var n=Sl;Sl|=2;try{return e(t)}finally{0===(Sl=n)&&(Ul(),qi())}};var tu={Events:[Jr,Zr,ei,Le,Ne,Cs,{current:!1}]},nu={findFiberByHostInstance:Xr,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},ru={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var iu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!iu.isDisabled&&iu.supportsFiber)try{gi=iu.inject(ru),bi=iu}catch(e){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=eu,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Sl;if(0!=(48&n))return e(t);Sl|=1;try{if(e)return Bi(99,e.bind(null,t))}finally{Sl=n,qi()}},t.hydrate=function(e,t,n){if(!Js(t))throw Error(a(200));return Zs(null,e,t,!0,n)},t.render=function(e,t,n){if(!Js(t))throw Error(a(200));return Zs(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Js(e))throw Error(a(40));return!!e._reactRootContainer&&(hs((function(){Zs(null,null,e,!1,(function(){e._reactRootContainer=null,e[Yr]=null}))})),!0)},t.unstable_batchedUpdates=ps,t.unstable_createPortal=function(e,t){return eu(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Js(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return Zs(e,t,n,!1,r)},t.version="17.0.2"},function(e,t,n){"use strict";e.exports=n(28)},function(e,t,n){"use strict";
33
  /** @license React v0.20.2
34
  * scheduler.production.min.js
35
  *
37
  *
38
  * This source code is licensed under the MIT license found in the
39
  * LICENSE file in the root directory of this source tree.
40
+ */var r,i,o,a;if("object"==typeof performance&&"function"==typeof performance.now){var l=performance;t.unstable_now=function(){return l.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,f=null,d=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(d,0),e}};r=function(e){null!==c?setTimeout(r,0,e):(c=e,setTimeout(d,0))},i=function(e,t){f=setTimeout(e,t)},o=function(){clearTimeout(f)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var v=!1,y=null,g=-1,b=5,_=0;t.unstable_shouldYield=function(){return t.unstable_now()>=_},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):b=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,k=w.port2;w.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();_=e+b;try{y(!0,e)?k.postMessage(null):(v=!1,y=null)}catch(e){throw k.postMessage(null),e}}else v=!1},r=function(e){y=e,v||(v=!0,k.postMessage(null))},i=function(e,n){g=p((function(){e(t.unstable_now())}),n)},o=function(){h(g),g=-1}}function E(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<T(i,t)))break e;e[r]=t,e[n]=i,n=r}}function x(e){return void 0===(e=e[0])?null:e}function S(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],l=o+1,s=e[l];if(void 0!==a&&0>T(a,n))void 0!==s&&0>T(s,a)?(e[r]=s,e[l]=n,r=l):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==s&&0>T(s,n)))break e;e[r]=s,e[l]=n,r=l}}}return t}return null}function T(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var O=[],C=[],P=1,L=null,N=3,z=!1,j=!1,I=!1;function R(e){for(var t=x(C);null!==t;){if(null===t.callback)S(C);else{if(!(t.startTime<=e))break;S(C),t.sortIndex=t.expirationTime,E(O,t)}t=x(C)}}function M(e){if(I=!1,R(e),!j)if(null!==x(O))j=!0,r(A);else{var t=x(C);null!==t&&i(M,t.startTime-e)}}function A(e,n){j=!1,I&&(I=!1,o()),z=!0;var r=N;try{for(R(n),L=x(O);null!==L&&(!(L.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=L.callback;if("function"==typeof a){L.callback=null,N=L.priorityLevel;var l=a(L.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?L.callback=l:L===x(O)&&S(O),R(n)}else S(O);L=x(O)}if(null!==L)var s=!0;else{var u=x(C);null!==u&&i(M,u.startTime-n),s=!1}return s}finally{L=null,N=r,z=!1}}var F=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){j||z||(j=!0,r(A))},t.unstable_getCurrentPriorityLevel=function(){return N},t.unstable_getFirstCallbackNode=function(){return x(O)},t.unstable_next=function(e){switch(N){case 1:case 2:case 3:var t=3;break;default:t=N}var n=N;N=t;try{return e()}finally{N=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=F,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=N;N=e;try{return t()}finally{N=n}},t.unstable_scheduleCallback=function(e,n,a){var l=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?l+a:l:a=l,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:P++,callback:n,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>l?(e.sortIndex=a,E(C,e),null===x(O)&&e===x(C)&&(I?o():I=!0,i(M,a-l))):(e.sortIndex=s,E(O,e),j||z||(j=!0,r(A))),e},t.unstable_wrapCallback=function(e){var t=N;return function(){var n=N;N=t;try{return e.apply(this,arguments)}finally{N=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 a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&l.return&&l.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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}}(),a=T(n(30)),l=T(n(0)),s=T(n(2)),u=T(n(35)),c=T(n(7)),f=T(n(3)),d=T(n(10)),p=T(n(4)),h=n(36),m=T(h),v=T(n(37)),y=T(n(38)),g=T(n(62)),b=T(n(63)),_=T(n(65)),w=T(n(66)),k=T(n(67)),E=T(n(68)),x=T(n(72)),S=T(n(73));function T(e){return e&&e.__esModule?e:{default:e}}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e){return function(){var t=e.apply(this,arguments);return new Promise((function(e,n){return function r(i,o){try{var a=t[i](o),l=a.value}catch(e){return void n(e)}if(!a.done)return Promise.resolve(l).then((function(e){r("next",e)}),(function(e){r("throw",e)}));e(l)}("next")}))}}var P=n(74),L=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.providers=["Unsplash","Pixabay","Pexels"],n.provider=n.props.provider,n.api_provider=s.default[n.provider],n.arr_key=n.api_provider.arr_key,n.per_page=s.default.defaults.per_page,n.api_key=instant_img_localize[n.provider+"_app_id"],n.photo_api=n.api_provider.photo_api,n.search_api=n.api_provider.search_api,n.results=(0,m.default)(n.provider,n.arr_key,n.props.results),n.state={results:n.results,filters:u.default[n.provider].filters,search_filters:u.default[n.provider].search,restapi_error:!1,api_lightbox:!1},n.filters={},n.search_filters={},n.show_search_filters=!0,n.orderby=n.props.orderby,n.page=n.props.page,n.is_search=!1,n.search_term="",n.total_results=0,n.view="",n.isLoading=!1,n.isDone=!1,n.errorMsg="",n.msnry="",n.tooltipInterval="",n.delay=250,n.photoTarget=l.default.createRef(),n.providerNav=l.default.createRef(),n.controlNav=l.default.createRef(),n.photoSearch=l.default.createRef(),n.filterGroups=l.default.createRef(),n.editor=n.props.editor?n.props.editor:"classic",n.is_block_editor="gutenberg"===n.props.editor,n.is_media_router="media-router"===n.props.editor,n.SetFeaturedImage=n.props.SetFeaturedImage?n.props.SetFeaturedImage.bind(n):"",n.InsertImage=n.props.InsertImage?n.props.InsertImage.bind(n):"",n.is_block_editor?(n.container=document.querySelector("body"),n.container.classList.add("loading"),n.wrapper=document.querySelector("body")):(n.container=n.props.container.closest(".instant-img-container"),n.wrapper=n.props.container.closest(".instant-images-wrapper"),n.container.classList.add("loading")),n}var n,T,L,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),o(t,[{key:"search",value:function(e){e.preventDefault();var t=this.photoSearch.current,n=t.value;n.length>2?(t.classList.add("searching"),this.search_term=n,this.is_search=!0,this.doSearch(this.search_term)):t.focus()}},{key:"clearSearch",value:function(){this.photoSearch.current.value="",this.total_results=0,this.is_search=!1,this.search_term="",this.search_filters={},this.toggleFilters()}},{key:"controlsClick",value:function(e,t){var n=e.currentTarget;this.view=t,n.classList.contains("active")||this.getPhotos(t)}},{key:"doSearch",value:(N=C(regeneratorRuntime.mark((function e(t){var n,r,o,a,l,s,c,y,g,b,_,w,k,E,x;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this,r="id:"===t.substring(0,3)?"id":"term",o=this.photoSearch.current,(a=this.photoTarget.current).classList.add("loading"),this.isLoading=!0,this.page=1,this.toggleFilters(),l=this.search_api,s={},"id"===r?l=(0,v.default)(this,t):s=O({},this.api_provider.search_var,this.search_term),c=i({},s,this.search_filters,{page:this.page}),y=(0,p.default)(this.provider,c),g=(0,f.default)(l,y),b=(0,d.default)(this.provider),e.next=17,fetch(g,{headers:b});case 17:if(!(_=e.sent).ok){e.next=43;break}return e.next=22,_.json();case 22:w=e.sent,e.t0=r,e.next="term"===e.t0?26:"id"===e.t0?33:40;break;case 26:return k=(0,m.default)(this.provider,this.arr_key,w,!0),this.total_results=(0,h.getSearchTotalByProvider)(this.provider,w),this.checkTotalResults(k.length),this.show_search_filters=this.total_results>0,this.results=k,this.setState({results:this.results,search_filters:u.default[this.provider].search}),e.abrupt("break",40);case 33:return E=[],x=(0,h.getResultById)(this.provider,this.arr_key,w,!0),w.errors?(this.total_results=0,this.checkTotalResults("0")):(E.push(x),this.total_results=1,this.checkTotalResults("1"),this.isDone=!0),this.show_search_filters=!1,this.results=E,this.setState({results:n.results}),e.abrupt("break",40);case 40:setTimeout((function(){o.classList.remove("searching"),a.classList.remove("loading"),n.isLoading=!1}),this.delay),e.next=51;break;case 43:this.isDone=!0,this.isLoading=!1,this.show_search_filters=!1,this.total_results=0,o.classList.remove("searching"),a.classList.remove("loading"),this.results=[],this.setState({results:this.results});case 51:case"end":return e.stop()}}),e,this)}))),function(e){return N.apply(this,arguments)})},{key:"getPhotos",value:(L=C(regeneratorRuntime.mark((function e(t){var n,r,i,o,a,l,s,c,h,v,y=arguments.length>1&&void 0!==arguments[1]&&arguments[1],g=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isLoading||y){e.next=2;break}return e.abrupt("return");case 2:return n=this,this.photoTarget.current.classList.add("loading"),this.isLoading=!0,this.page=1,this.orderby=t,this.results=[],this.clearSearch(),r=(0,p.default)(this.provider,this.filters),i=(0,f.default)(this.photo_api,r),o=(0,d.default)(this.provider),e.next=14,fetch(i,{headers:o});case 14:if(a=e.sent,l=a.ok,s=a.status,c=a.statusText,!l){e.next=26;break}return e.next=19,a.json();case 19:h=e.sent,v=(0,m.default)(this.provider,this.arr_key,h),this.checkTotalResults(v.length),this.results=v,g?this.setState({results:v,filters:u.default[this.provider].filters}):this.setState({results:v}),e.next=29;break;case 26:console.warn("Error: "+s+" - "+c),this.photoTarget.current.classList.remove("loading"),this.isLoading=!1;case 29:setTimeout((function(){n.photoTarget.current.classList.remove("loading"),n.isLoading=!1}),n.delay);case 30:case"end":return e.stop()}}),e,this)}))),function(e){return L.apply(this,arguments)})},{key:"loadMorePhotos",value:(T=C(regeneratorRuntime.mark((function e(){var t,n,r,o,a,l,s,u,c,h,v,y,g,b;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this,this.container.classList.add("loading"),this.isLoading=!0,this.page=parseInt(this.page)+1,n={},this.is_search&&(n=O({},this.api_provider.search_var,this.search_term)),r=this.is_search?this.search_api:this.photo_api,o=this.is_search?this.search_filters:this.filters,a=i({},o,n,{page:this.page}),l=(0,p.default)(this.provider,a),s=(0,f.default)(r,l),u=(0,d.default)(this.provider),e.next=14,fetch(s,{headers:u});case 14:if(c=e.sent,h=c.ok,v=c.status,y=c.statusText,!h){e.next=27;break}return e.next=19,c.json();case 19:g=e.sent,b=(0,m.default)(this.provider,this.arr_key,g,this.is_search),this.is_search&&"unsplash"===this.provider&&(b=g.results),b&&b.map((function(e){t.results.push(e)})),this.checkTotalResults(g.length),this.setState({results:this.results}),e.next=29;break;case 27:console.warn("Error: "+v+" - "+y),t.isLoading=!1;case 29:case"end":return e.stop()}}),e,this)}))),function(){return T.apply(this,arguments)})},{key:"filterPhotos",value:function(e,t){this.filters[e]&&"#"===t||""===t||"all"===t?delete this.filters[e]:this.filters[e]=t,this.getPhotos(this.view,!0)}},{key:"filterSearch",value:function(e,t){this.search_filters[e]&&"#"===t||""===t||"all"===t?delete this.search_filters[e]:this.search_filters[e]=t,this.doSearch(this.search_term)}},{key:"toggleFilters",value:function(){var e=this,t=this.filterGroups.current.querySelectorAll("button.filter-dropdown--button");t&&t.forEach((function(t){t.disabled=!!e.is_search})),this.is_search?this.filterGroups.current.classList.add("inactive"):this.filterGroups.current.classList.remove("inactive")}},{key:"afterVerifiedAPICallback",value:function(e){var t=this.providerNav.current.querySelector("button[data-provider="+e+"]");t&&(this.setState({api_lightbox:!1}),document.body.classList.remove("overflow-hidden"),t.click())}},{key:"closeAPILightbox",value:function(e){this.setState({api_lightbox:!1}),document.body.classList.remove("overflow-hidden");var t=this.providerNav.current.querySelector("button[data-provider="+e+"]");t&&t.focus({preventScroll:!0})}},{key:"switchProvider",value:(n=C(regeneratorRuntime.mark((function e(t){var n,r,i,o,a,l,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.currentTarget,(r=n.dataset.provider)!==this.provider){e.next=4;break}return e.abrupt("return",!1);case 4:if(!s.default[r].requires_key){e.next=24;break}return i=(0,d.default)(r),o=this,e.prev=7,e.next=10,fetch((0,c.default)(r),{headers:i});case 10:if(a=e.sent,l=a.ok,u=a.status,l&&400!==u&&401!==u&&500!==u&&404!==u){e.next=17;break}return o.setState({api_lightbox:r}),document.body.classList.add("overflow-hidden"),e.abrupt("return");case 17:e.next=24;break;case 19:return e.prev=19,e.t0=e.catch(7),o.setState({api_lightbox:r}),document.body.classList.add("overflow-hidden"),e.abrupt("return");case 24:this.providerNav.current.querySelectorAll("button").forEach((function(e){e.classList.remove("active")})),n.classList.add("active"),this.provider=r,this.api_provider=s.default[this.provider],this.arr_key=this.api_provider.arr_key,this.api_key=instant_img_localize[this.provider+"_app_id"],this.photo_api=this.api_provider.photo_api,this.search_api=this.api_provider.search_api,this.filters={},this.search_filters={},this.view="latest",this.getPhotos(this.view,!0,!0);case 36:case"end":return e.stop()}}),e,this,[[7,19]])}))),function(e){return n.apply(this,arguments)})},{key:"renderLayout",value:function(){if(this.is_block_editor)return!1;var e=this,t=e.photoTarget.current;P(t,(function(){e.msnry=new a.default(t,{itemSelector:".photo"}),e.photoTarget.current.querySelectorAll(".photo").forEach((function(e){e.classList.add("in-view")}))}))}},{key:"onScroll",value:function(){window.innerHeight+window.pageYOffset>=document.body.scrollHeight-200&&!this.isLoading&&!this.isDone&&this.loadMorePhotos()}},{key:"checkTotalResults",value:function(e){this.isDone=0===parseInt(e)}},{key:"doneLoading",value:function(){var e=this;setTimeout((function(){e.isLoading=!1,e.container.classList.remove("loading")}),e.delay)}},{key:"showTooltip",value:function(e){var t=this,n=e.currentTarget,r=n.getBoundingClientRect(),i=Math.round(r.left),o=Math.round(r.top),a=this.container.querySelector("#tooltip");a.classList.remove("over"),n.classList.contains("tooltip--above")?a.classList.add("above"):a.classList.remove("above"),this.tooltipInterval=setInterval((function(){clearInterval(t.tooltipInterval),a.innerHTML=n.dataset.title,i=i-a.offsetWidth+n.offsetWidth+5,a.style.left=i+"px",a.style.top=o+"px",setTimeout((function(){a.classList.add("over")}),t.delay)}),750)}},{key:"hideTooltip",value:function(){clearInterval(this.tooltipInterval),this.container.querySelector("#tooltip").classList.remove("over")}},{key:"test",value:function(){var e=this,t=instant_img_localize.root+"instant-images/test/",n=new XMLHttpRequest;n.open("POST",t,!0),n.setRequestHeader("X-WP-Nonce",instant_img_localize.nonce),n.setRequestHeader("Content-Type","application/json"),n.send(),n.onload=function(){n.status>=200&&n.status<400?JSON.parse(n.response).success||e.setState({restapi_error:!0}):e.setState({restapi_error:!0})},n.onerror=function(t){console.log(t),e.setState({restapi_error:!0})}}},{key:"componentDidUpdate",value:function(){this.renderLayout(),this.doneLoading()}},{key:"componentDidMount",value:function(){var e=this;this.renderLayout(),this.doneLoading(),this.test(),this.container.classList.remove("loading"),this.wrapper.classList.add("loaded"),this.is_block_editor||this.is_media_router?(this.page=0,this.loadMorePhotos()):window.addEventListener("scroll",(function(){return e.onScroll()}))}},{key:"render",value:function(){var e=this;return l.default.createElement("div",{id:"photo-listing",className:this.provider},this.providers&&l.default.createElement("nav",{className:"provider-nav",ref:this.providerNav},this.providers.map((function(t,n){return l.default.createElement("div",{key:"provider-"+n},l.default.createElement("button",{"data-provider":t.toLowerCase(),onClick:function(t){return e.switchProvider(t)},className:e.provider===t.toLowerCase()?"provider-nav--btn active":"provider-nav--btn"},l.default.createElement("span",null,t),s.default[t.toLowerCase()].new&&l.default.createElement("span",{className:"provider-nav--new"},"New")))}))),this.state.api_lightbox&&l.default.createElement(y.default,{provider:this.state.api_lightbox,afterVerifiedAPICallback:this.afterVerifiedAPICallback.bind(this),closeAPILightbox:this.closeAPILightbox.bind(this)}),l.default.createElement("div",{className:"control-nav",ref:this.controlNav},l.default.createElement("div",{className:"control-nav--filters-wrap",ref:this.filterGroups},Object.entries(this.state.filters).length&&l.default.createElement("div",{className:"control-nav--filters"},Object.entries(this.state.filters).map((function(t,n){var i=r(t,2),o=i[0],a=i[1];return l.default.createElement(b.default,{key:o+"-"+e.provider+"-"+n,filterKey:o,provider:e.provider,data:a,function:e.filterPhotos.bind(e)})})))),l.default.createElement("div",{className:"control-nav--search search-field",id:"search-bar"},l.default.createElement("form",{onSubmit:function(t){return e.search(t)},autoComplete:"off"},l.default.createElement("label",{htmlFor:"photo-search",className:"offscreen"},instant_img_localize.search_label),l.default.createElement("input",{type:"search",id:"photo-search",placeholder:instant_img_localize.search,ref:this.photoSearch}),l.default.createElement("button",{type:"submit",id:"photo-search-submit"},l.default.createElement("i",{className:"fa fa-search"})),l.default.createElement(x.default,{container:this.container,getPhotos:this.getPhotos.bind(this),isSearch:this.is_search,total:this.total_results,title:this.total_results+" "+instant_img_localize.search_results+" "+this.search_term})))),this.state.restapi_error&&l.default.createElement(g.default,null),this.is_search&&"gutenberg"!==this.editor&&l.default.createElement("div",{className:"search-results-header"},l.default.createElement("h2",null,this.search_term),l.default.createElement("div",{className:"search-results-header--text"},this.total_results+" "+instant_img_localize.search_results," ",l.default.createElement("strong",null,""+this.search_term)," - ",l.default.createElement("button",{title:instant_img_localize.clear_search,onClick:function(){return e.getPhotos("latest")}},instant_img_localize.clear_search)),this.show_search_filters&&Object.entries(this.state.search_filters).length&&l.default.createElement("div",{className:"control-nav--filters-wrap"},l.default.createElement("div",{className:"control-nav--filters"},Object.entries(this.state.search_filters).map((function(t,n){var i=r(t,2),o=i[0],a=i[1];return l.default.createElement(b.default,{key:o+"-"+n,filterKey:o,provider:e.provider,data:a,function:e.filterSearch.bind(e)})}))))),l.default.createElement("div",{id:"photos",className:"photo-target",ref:this.photoTarget},this.state.results.map((function(t,n){return l.default.createElement(E.default,{provider:e.provider,result:t,key:e.provider+"-"+t.id+"-"+n,editor:e.editor,mediaRouter:e.is_media_router,blockEditor:e.is_block_editor,SetFeaturedImage:e.SetFeaturedImage,InsertImage:e.InsertImage,showTooltip:e.showTooltip,hideTooltip:e.hideTooltip})}))),0==this.total_results&&!0===this.is_search&&l.default.createElement(k.default,null),l.default.createElement(_.default,null),l.default.createElement(w.default,{loadMorePhotos:this.loadMorePhotos.bind(this)}),l.default.createElement(S.default,null))}}]),t}(l.default.Component);t.default=L},function(e,t,n){var r,i,o;
41
  /*!
42
  * Masonry v4.2.2
43
  * Cascading grid layout library
44
  * https://masonry.desandro.com
45
  * MIT License
46
  * by David DeSandro
47
+ */window,i=[n(31),n(6)],void 0===(o="function"==typeof(r=function(e,t){"use strict";var n=e.create("masonry");n.compatOptions.fitWidth="isFitWidth";var r=n.prototype;return r._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var e=0;e<this.cols;e++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},r.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var e=this.items[0],n=e&&e.element;this.columnWidth=n&&t(n).outerWidth||this.containerWidth}var r=this.columnWidth+=this.gutter,i=this.containerWidth+this.gutter,o=i/r,a=r-i%r;o=Math[a&&a<1?"round":"floor"](o),this.cols=Math.max(o,1)},r.getContainerWidth=function(){var e=this._getOption("fitWidth")?this.element.parentNode:this.element,n=t(e);this.containerWidth=n&&n.innerWidth},r._getItemLayoutPosition=function(e){e.getSize();var t=e.size.outerWidth%this.columnWidth,n=Math[t&&t<1?"round":"ceil"](e.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var r=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](n,e),i={x:this.columnWidth*r.col,y:r.y},o=r.y+e.size.outerHeight,a=n+r.col,l=r.col;l<a;l++)this.colYs[l]=o;return i},r._getTopColPosition=function(e){var t=this._getTopColGroup(e),n=Math.min.apply(Math,t);return{col:t.indexOf(n),y:n}},r._getTopColGroup=function(e){if(e<2)return this.colYs;for(var t=[],n=this.cols+1-e,r=0;r<n;r++)t[r]=this._getColGroupY(r,e);return t},r._getColGroupY=function(e,t){if(t<2)return this.colYs[e];var n=this.colYs.slice(e,e+t);return Math.max.apply(Math,n)},r._getHorizontalColPosition=function(e,t){var n=this.horizontalColIndex%this.cols;n=e>1&&n+e>this.cols?0:n;var r=t.size.outerWidth&&t.size.outerHeight;return this.horizontalColIndex=r?n+e:this.horizontalColIndex,{col:n,y:this._getColGroupY(n,e)}},r._manageStamp=function(e){var n=t(e),r=this._getElementOffset(e),i=this._getOption("originLeft")?r.left:r.right,o=i+n.outerWidth,a=Math.floor(i/this.columnWidth);a=Math.max(0,a);var l=Math.floor(o/this.columnWidth);l-=o%this.columnWidth?0:1,l=Math.min(this.cols-1,l);for(var s=(this._getOption("originTop")?r.top:r.bottom)+n.outerHeight,u=a;u<=l;u++)this.colYs[u]=Math.max(s,this.colYs[u])},r._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var e={height:this.maxY};return this._getOption("fitWidth")&&(e.width=this._getContainerFitWidth()),e},r._getContainerFitWidth=function(){for(var e=0,t=this.cols;--t&&0===this.colYs[t];)e++;return(this.cols-e)*this.columnWidth-this.gutter},r.needsResizeLayout=function(){var e=this.containerWidth;return this.getContainerWidth(),e!=this.containerWidth},n})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i;
48
  /*!
49
  * Outlayer v2.1.1
50
  * the brains and guts of a layout library
51
  * MIT license