Jetpack by WordPress.com - Version 7.0.3

Version Description

Release date: June 2, 2021

Security:

  • Carousel: prevent fetching comments from posts, and from attachments of private posts.
Download this release

Release Info

Developer jeherve
Plugin Icon 128x128 Jetpack by WordPress.com
Version 7.0.3
Comparing to
See all releases

Code changes from version 2.0.8 to 7.0.3

Files changed (40) hide show
  1. .svnignore +8 -0
  2. 3rd-party/3rd-party.php +23 -0
  3. 3rd-party/bbpress.php +50 -0
  4. 3rd-party/beaverbuilder.php +20 -0
  5. 3rd-party/bitly.php +34 -0
  6. 3rd-party/buddypress.php +9 -0
  7. 3rd-party/class.jetpack-amp-support.php +300 -0
  8. 3rd-party/class.jetpack-modules-overrides.php +143 -0
  9. 3rd-party/debug-bar.php +19 -0
  10. 3rd-party/debug-bar/class.jetpack-search-debug-bar.php +173 -0
  11. 3rd-party/debug-bar/debug-bar.css +56 -0
  12. 3rd-party/debug-bar/debug-bar.js +22 -0
  13. 3rd-party/domain-mapping.php +113 -0
  14. 3rd-party/polldaddy.php +7 -0
  15. 3rd-party/qtranslate-x.php +19 -0
  16. 3rd-party/vaultpress.php +42 -0
  17. 3rd-party/woocommerce-services.php +133 -0
  18. 3rd-party/woocommerce.php +105 -0
  19. 3rd-party/wpml.php +62 -0
  20. CODE-OF-CONDUCT.md +28 -0
  21. _inc/accessible-focus.js +19 -0
  22. _inc/blocks/editor-beta.css +1 -0
  23. _inc/blocks/editor-beta.js +25 -0
  24. _inc/blocks/editor-beta.rtl.css +1 -0
  25. _inc/blocks/editor.css +1 -0
  26. _inc/blocks/editor.js +25 -0
  27. _inc/blocks/editor.rtl.css +1 -0
  28. _inc/blocks/gif/view.css +1 -0
  29. _inc/blocks/gif/view.js +1 -0
  30. _inc/blocks/gif/view.rtl.css +1 -0
  31. _inc/blocks/images/map-theme_black_and_white-1ead5946ca104d83676d6e3410e1d733.jpg +0 -0
  32. _inc/blocks/images/map-theme_default-2ceb449b599dbcbe2a90fead5a5f3824.jpg +0 -0
  33. _inc/blocks/images/map-theme_satellite-c74dc129bda9502fb0fb362bb627577e.jpg +0 -0
  34. _inc/blocks/images/map-theme_terrain-2b6e6c1c8d09cbdc58a4c0653be1a6e3.jpg +0 -0
  35. _inc/blocks/images/oval-3cc7669d571aef4e12f34b349e42d390.svg +19 -0
  36. _inc/blocks/images/paypal-button-1e53882e702881f8dfd958c141e65383.png +0 -0
  37. _inc/blocks/images/paypal-button-2x-fe4d34770a47484f401cecbb892f8456.png +0 -0
  38. _inc/blocks/index.json +19 -0
  39. _inc/blocks/map/mapbox-gl.css +1 -0
  40. _inc/blocks/map/mapbox-gl.js +1 -0
.svnignore ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ .git/
2
+ .gitignore
3
+ .travis.yml
4
+ readme.md
5
+ tests/
6
+ _inc/lib/icalendar-reader.php
7
+ modules/shortcodes/upcoming-events.php
8
+ modules/widgets/upcoming-events.php
3rd-party/3rd-party.php ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Placeholder to load 3rd party plugin tweaks until a legit system
5
+ * is architected
6
+ */
7
+
8
+ require_once( JETPACK__PLUGIN_DIR . '3rd-party/buddypress.php' );
9
+ require_once( JETPACK__PLUGIN_DIR . '3rd-party/wpml.php' );
10
+ require_once( JETPACK__PLUGIN_DIR . '3rd-party/bitly.php' );
11
+ require_once( JETPACK__PLUGIN_DIR . '3rd-party/bbpress.php' );
12
+ require_once( JETPACK__PLUGIN_DIR . '3rd-party/woocommerce.php' );
13
+ require_once( JETPACK__PLUGIN_DIR . '3rd-party/domain-mapping.php' );
14
+ require_once( JETPACK__PLUGIN_DIR . '3rd-party/qtranslate-x.php' );
15
+ require_once( JETPACK__PLUGIN_DIR . '3rd-party/vaultpress.php' );
16
+ require_once( JETPACK__PLUGIN_DIR . '3rd-party/beaverbuilder.php' );
17
+ require_once( JETPACK__PLUGIN_DIR . '3rd-party/debug-bar.php' );
18
+ require_once( JETPACK__PLUGIN_DIR . '3rd-party/class.jetpack-modules-overrides.php' );
19
+
20
+ // We can't load this conditionally since polldaddy add the call in class constuctor.
21
+ require_once( JETPACK__PLUGIN_DIR . '3rd-party/polldaddy.php' );
22
+ require_once( JETPACK__PLUGIN_DIR . '3rd-party/woocommerce-services.php' );
23
+ require_once( JETPACK__PLUGIN_DIR . '3rd-party/class.jetpack-amp-support.php' );
3rd-party/bbpress.php ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ add_action( 'init', 'jetpack_bbpress_compat', 11 ); // Priority 11 needed to ensure sharing_display is loaded.
3
+
4
+ /**
5
+ * Adds Jetpack + bbPress Compatibility filters.
6
+ *
7
+ * @author Brandon Kraft
8
+ * @since 3.7.1
9
+ */
10
+ function jetpack_bbpress_compat() {
11
+ if ( function_exists( 'sharing_display' ) ) {
12
+ add_filter( 'bbp_get_topic_content', 'sharing_display', 19 );
13
+ add_action( 'bbp_template_after_single_forum', 'jetpack_sharing_bbpress' );
14
+ add_action( 'bbp_template_after_single_topic', 'jetpack_sharing_bbpress' );
15
+ }
16
+
17
+ /**
18
+ * Enable Markdown support for bbpress post types.
19
+ *
20
+ * @author Brandon Kraft
21
+ * @since 6.0.0
22
+ */
23
+ if ( function_exists( 'bbp_get_topic_post_type' ) ) {
24
+ add_post_type_support( bbp_get_topic_post_type(), 'wpcom-markdown' );
25
+ add_post_type_support( bbp_get_reply_post_type(), 'wpcom-markdown' );
26
+ add_post_type_support( bbp_get_forum_post_type(), 'wpcom-markdown' );
27
+ }
28
+
29
+ /**
30
+ * Use Photon for all images in Topics and replies.
31
+ *
32
+ * @since 4.9.0
33
+ */
34
+ if ( class_exists( 'Jetpack_Photon' ) && Jetpack::is_module_active( 'photon' ) ) {
35
+ add_filter( 'bbp_get_topic_content', array( 'Jetpack_Photon', 'filter_the_content' ), 999999 );
36
+ add_filter( 'bbp_get_reply_content', array( 'Jetpack_Photon', 'filter_the_content' ), 999999 );
37
+ }
38
+ }
39
+
40
+ /**
41
+ * Display Jetpack "Sharing" buttons on bbPress 2.x forums/ topics/ lead topics/ replies.
42
+ *
43
+ * Determination if the sharing buttons should display on the post type is handled within sharing_display().
44
+ *
45
+ * @author David Decker
46
+ * @since 3.7.0
47
+ */
48
+ function jetpack_sharing_bbpress() {
49
+ sharing_display( null, true );
50
+ }
3rd-party/beaverbuilder.php ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Beaverbuilder Compatibility.
4
+ */
5
+ class Jetpack_BeaverBuilderCompat {
6
+
7
+ function __construct() {
8
+ add_action( 'init', array( $this, 'beaverbuilder_refresh' ) );
9
+ }
10
+
11
+ /**
12
+ * If masterbar module is active force BeaverBuilder to refresh when publishing a layout.
13
+ */
14
+ function beaverbuilder_refresh() {
15
+ if ( Jetpack::is_module_active( 'masterbar' ) ) {
16
+ add_filter( 'fl_builder_should_refresh_on_publish', '__return_true' );
17
+ }
18
+ }
19
+ }
20
+ new Jetpack_BeaverBuilderCompat();
3rd-party/bitly.php ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /*
4
+ * Fixes issues with the Official Bitly for WordPress
5
+ * https://wordpress.org/plugins/bitly/
6
+ */
7
+ if( class_exists( 'Bitly' ) ) {
8
+
9
+ if( isset( $GLOBALS['bitly'] ) ) {
10
+ if ( method_exists( $GLOBALS['bitly'], 'og_tags' ) ) {
11
+ remove_action( 'wp_head', array( $GLOBALS['bitly'], 'og_tags' ) );
12
+ }
13
+
14
+ add_action( 'wp_head', 'jetpack_bitly_og_tag', 100 );
15
+ }
16
+
17
+ }
18
+
19
+ /**
20
+ * jetpack_bitly_og_tag
21
+ *
22
+ * @return null
23
+ */
24
+ function jetpack_bitly_og_tag() {
25
+ if( has_filter( 'wp_head', 'jetpack_og_tags') === false ) {
26
+ // Add the bitly part again back if we don't have any jetpack_og_tags added
27
+ if ( method_exists( $GLOBALS['bitly'], 'og_tags' ) ) {
28
+ $GLOBALS['bitly']->og_tags();
29
+ }
30
+ } elseif ( isset( $GLOBALS['posts'] ) && $GLOBALS['posts'][0]->ID > 0 ) {
31
+ printf( "<meta property=\"bitly:url\" content=\"%s\" /> \n", esc_attr( $GLOBALS['bitly']->get_bitly_link_for_post_id( $GLOBALS['posts'][0]->ID ) ) );
32
+ }
33
+
34
+ }
3rd-party/buddypress.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ add_filter( 'bp_core_pre_avatar_handle_upload', 'blobphoto' );
4
+ function blobphoto( $bool ) {
5
+
6
+ add_filter( 'jetpack_photon_skip_image', '__return_true' );
7
+
8
+ return $bool;
9
+ }
3rd-party/class.jetpack-amp-support.php ADDED
@@ -0,0 +1,300 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Manages compatibility with the amp-wp plugin
5
+ *
6
+ * @see https://github.com/Automattic/amp-wp
7
+ */
8
+ class Jetpack_AMP_Support {
9
+
10
+ static function init() {
11
+
12
+ // enable stats
13
+ if ( Jetpack::is_module_active( 'stats' ) ) {
14
+ add_action( 'amp_post_template_footer', array( 'Jetpack_AMP_Support', 'add_stats_pixel' ) );
15
+ }
16
+
17
+ // Sharing.
18
+ add_filter( 'jetpack_sharing_display_markup', array( 'Jetpack_AMP_Support', 'render_sharing_html' ), 10, 2 );
19
+
20
+ // enforce freedom mode for videopress
21
+ add_filter( 'videopress_shortcode_options', array( 'Jetpack_AMP_Support', 'videopress_enable_freedom_mode' ) );
22
+
23
+ // include Jetpack og tags when rendering native AMP head
24
+ add_action( 'amp_post_template_head', array( 'Jetpack_AMP_Support', 'amp_post_jetpack_og_tags' ) );
25
+
26
+ // Post rendering changes for legacy AMP
27
+ add_action( 'pre_amp_render_post', array( 'Jetpack_AMP_Support', 'amp_disable_the_content_filters' ) );
28
+
29
+ // Add post template metadata for legacy AMP
30
+ add_filter( 'amp_post_template_metadata', array( 'Jetpack_AMP_Support', 'amp_post_template_metadata' ), 10, 2 );
31
+ }
32
+
33
+ static function admin_init() {
34
+ // disable Likes metabox for post editor if AMP canonical disabled
35
+ add_filter( 'post_flair_disable', array( 'Jetpack_AMP_Support', 'is_amp_canonical' ), 99 );
36
+ }
37
+
38
+ static function is_amp_canonical() {
39
+ return function_exists( 'amp_is_canonical' ) && amp_is_canonical();
40
+ }
41
+
42
+ static function is_amp_request() {
43
+ $is_amp_request = ( function_exists( 'is_amp_endpoint' ) && is_amp_endpoint() );
44
+
45
+ /**
46
+ * Returns true if the current request should return valid AMP content.
47
+ *
48
+ * @since 6.2.0
49
+ *
50
+ * @param boolean $is_amp_request Is this request supposed to return valid AMP content?
51
+ */
52
+ return apply_filters( 'jetpack_is_amp_request', $is_amp_request );
53
+ }
54
+
55
+ static function amp_disable_the_content_filters() {
56
+ if ( defined( 'WPCOM') && WPCOM ) {
57
+ add_filter( 'videopress_show_2015_player', '__return_true' );
58
+ add_filter( 'protected_embeds_use_form_post', '__return_false' );
59
+ remove_filter( 'the_title', 'widont' );
60
+ }
61
+
62
+ remove_filter( 'pre_kses', array( 'Filter_Embedded_HTML_Objects', 'filter' ), 11 );
63
+ remove_filter( 'pre_kses', array( 'Filter_Embedded_HTML_Objects', 'maybe_create_links' ), 100 );
64
+ }
65
+
66
+ /**
67
+ * Add Jetpack stats pixel.
68
+ *
69
+ * @since 6.2.1
70
+ */
71
+ static function add_stats_pixel() {
72
+ if ( ! has_action( 'wp_footer', 'stats_footer' ) ) {
73
+ return;
74
+ }
75
+ stats_render_amp_footer( stats_build_view_data() );
76
+ }
77
+
78
+ /**
79
+ * Add publisher and image metadata to legacy AMP post.
80
+ *
81
+ * @since 6.2.0
82
+ *
83
+ * @param array $metadata Metadata array.
84
+ * @param WP_Post $post Post.
85
+ * @return array Modified metadata array.
86
+ */
87
+ static function amp_post_template_metadata( $metadata, $post ) {
88
+ if ( isset( $metadata['publisher'] ) && ! isset( $metadata['publisher']['logo'] ) ) {
89
+ $metadata = self::add_site_icon_to_metadata( $metadata );
90
+ }
91
+
92
+ if ( ! isset( $metadata['image'] ) ) {
93
+ $metadata = self::add_image_to_metadata( $metadata, $post );
94
+ }
95
+
96
+ return $metadata;
97
+ }
98
+
99
+ /**
100
+ * Add blavatar to legacy AMP post metadata.
101
+ *
102
+ * @since 6.2.0
103
+ *
104
+ * @param array $metadata Metadata.
105
+ * @return array Metadata.
106
+ */
107
+ static function add_site_icon_to_metadata( $metadata ) {
108
+ $size = 60;
109
+
110
+ if ( function_exists( 'blavatar_domain' ) ) {
111
+ $metadata['publisher']['logo'] = array(
112
+ '@type' => 'ImageObject',
113
+ 'url' => blavatar_url( blavatar_domain( site_url() ), 'img', $size, self::staticize_subdomain( 'https://wordpress.com/i/favicons/apple-touch-icon-60x60.png' ) ),
114
+ 'width' => $size,
115
+ 'height' => $size,
116
+ );
117
+ } else if ( $site_icon_url = Jetpack_Sync_Functions::site_icon_url( $size ) ) {
118
+ $metadata['publisher']['logo'] = array(
119
+ '@type' => 'ImageObject',
120
+ 'url' => $site_icon_url,
121
+ 'width' => $size,
122
+ 'height' => $size,
123
+ );
124
+ }
125
+
126
+ return $metadata;
127
+ }
128
+
129
+ /**
130
+ * Add image to legacy AMP post metadata.
131
+ *
132
+ * @since 6.2.0
133
+ *
134
+ * @param array $metadata Metadata.
135
+ * @param WP_Post $post Post.
136
+ * @return array Metadata.
137
+ */
138
+ static function add_image_to_metadata( $metadata, $post ) {
139
+ $image = Jetpack_PostImages::get_image( $post->ID, array(
140
+ 'fallback_to_avatars' => true,
141
+ 'avatar_size' => 200,
142
+ // AMP already attempts these.
143
+ 'from_thumbnail' => false,
144
+ 'from_attachment' => false,
145
+ ) );
146
+
147
+ if ( empty( $image ) ) {
148
+ return self::add_fallback_image_to_metadata( $metadata );
149
+ }
150
+
151
+ if ( ! isset( $image['src_width'] ) ) {
152
+ $dimensions = self::extract_image_dimensions_from_getimagesize( array(
153
+ $image['src'] => false,
154
+ ) );
155
+
156
+ if ( false !== $dimensions[ $image['src'] ] ) {
157
+ $image['src_width'] = $dimensions['width'];
158
+ $image['src_height'] = $dimensions['height'];
159
+ }
160
+ }
161
+
162
+ $metadata['image'] = array(
163
+ '@type' => 'ImageObject',
164
+ 'url' => $image['src'],
165
+ );
166
+ if ( isset( $image['src_width'] ) ) {
167
+ $metadata['image']['width'] = $image['src_width'];
168
+ }
169
+ if ( isset( $image['src_width'] ) ) {
170
+ $metadata['image']['height'] = $image['src_height'];
171
+ }
172
+
173
+ return $metadata;
174
+ }
175
+
176
+ /**
177
+ * Add fallback image to legacy AMP post metadata.
178
+ *
179
+ * @since 6.2.0
180
+ *
181
+ * @param array $metadata Metadata.
182
+ * @return array Metadata.
183
+ */
184
+ static function add_fallback_image_to_metadata( $metadata ) {
185
+ /** This filter is documented in functions.opengraph.php */
186
+ $default_image = apply_filters( 'jetpack_open_graph_image_default', 'https://wordpress.com/i/blank.jpg' );
187
+
188
+ $metadata['image'] = array(
189
+ '@type' => 'ImageObject',
190
+ 'url' => self::staticize_subdomain( $default_image ),
191
+ 'width' => 200,
192
+ 'height' => 200,
193
+ );
194
+
195
+ return $metadata;
196
+ }
197
+
198
+ static function staticize_subdomain( $domain ) {
199
+ // deal with WPCOM vs Jetpack
200
+ if ( function_exists( 'staticize_subdomain' ) ) {
201
+ return staticize_subdomain( $domain );
202
+ } else {
203
+ return Jetpack::staticize_subdomain( $domain );
204
+ }
205
+ }
206
+
207
+ /**
208
+ * Extract image dimensions via wpcom/imagesize, only on WPCOM
209
+ *
210
+ * @since 6.2.0
211
+ *
212
+ * @param array $dimensions Dimensions.
213
+ * @return array Dimensions.
214
+ */
215
+ static function extract_image_dimensions_from_getimagesize( $dimensions ) {
216
+ if ( ! ( defined('WPCOM') && WPCOM && function_exists( 'require_lib' ) ) ) {
217
+ return $dimensions;
218
+ }
219
+ require_lib( 'wpcom/imagesize' );
220
+
221
+ foreach ( $dimensions as $url => $value ) {
222
+ if ( is_array( $value ) ) {
223
+ continue;
224
+ }
225
+ $result = wpcom_getimagesize( $url );
226
+ if ( is_array( $result ) ) {
227
+ $dimensions[ $url ] = array(
228
+ 'width' => $result[0],
229
+ 'height' => $result[1],
230
+ );
231
+ }
232
+ }
233
+
234
+ return $dimensions;
235
+ }
236
+
237
+ static function amp_post_jetpack_og_tags() {
238
+ Jetpack::init()->check_open_graph();
239
+ if ( function_exists( 'jetpack_og_tags' ) ) {
240
+ jetpack_og_tags();
241
+ }
242
+ }
243
+
244
+ static function videopress_enable_freedom_mode( $options ) {
245
+ if ( self::is_amp_request() ) {
246
+ $options['freedom'] = true;
247
+ }
248
+ return $options;
249
+ }
250
+
251
+ static function render_sharing_html( $markup, $sharing_enabled ) {
252
+ if ( ! self::is_amp_request() ) {
253
+ return $markup;
254
+ }
255
+
256
+ remove_action( 'wp_footer', 'sharing_add_footer' );
257
+ if ( empty( $sharing_enabled ) ) {
258
+ return $markup;
259
+ }
260
+ $supported_services = array(
261
+ 'facebook' => array(
262
+ /** This filter is documented in modules/sharedaddy/sharing-sources.php */
263
+ 'data-param-app_id' => apply_filters( 'jetpack_sharing_facebook_app_id', '249643311490' ),
264
+ ),
265
+ 'twitter' => array(),
266
+ 'pinterest' => array(),
267
+ 'whatsapp' => array(),
268
+ 'google-plus-1' => array(
269
+ 'type' => 'gplus',
270
+ ),
271
+ 'tumblr' => array(),
272
+ 'linkedin' => array(),
273
+ );
274
+ $sharing_links = array();
275
+ foreach ( $sharing_enabled['visible'] as $id => $service ) {
276
+ if ( ! isset( $supported_services[ $id ] ) ) {
277
+ $sharing_links[] = "<!-- not supported: $id -->";
278
+ continue;
279
+ }
280
+ $args = array_merge(
281
+ array(
282
+ 'type' => $id,
283
+ ),
284
+ $supported_services[ $id ]
285
+ );
286
+ $sharing_link = '<amp-social-share';
287
+ foreach ( $args as $key => $value ) {
288
+ $sharing_link .= sprintf( ' %s="%s"', sanitize_key( $key ), esc_attr( $value ) );
289
+ }
290
+ $sharing_link .= '></amp-social-share>';
291
+ $sharing_links[] = $sharing_link;
292
+ }
293
+ return preg_replace( '#(?<=<div class="sd-content">).+?(?=</div>)#s', implode( '', $sharing_links ), $markup );
294
+ }
295
+ }
296
+
297
+ add_action( 'init', array( 'Jetpack_AMP_Support', 'init' ), 1 );
298
+
299
+ add_action( 'admin_init', array( 'Jetpack_AMP_Support', 'admin_init' ), 1 );
300
+
3rd-party/class.jetpack-modules-overrides.php ADDED
@@ -0,0 +1,143 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Provides methods for dealing with module overrides.
5
+ *
6
+ * @since 5.9.0
7
+ */
8
+ class Jetpack_Modules_Overrides {
9
+ /**
10
+ * Used to cache module overrides so that we minimize how many times we appy the
11
+ * option_jetpack_active_modules filter.
12
+ *
13
+ * @var null|array
14
+ */
15
+ private $overrides = null;
16
+
17
+ /**
18
+ * Clears the $overrides member used for caching.
19
+ *
20
+ * Since get_overrides() can be passed a falsey value to skip caching, this is probably
21
+ * most useful for clearing cache between tests.
22
+ *
23
+ * @return void
24
+ */
25
+ public function clear_cache() {
26
+ $this->overrides = null;
27
+ }
28
+
29
+ /**
30
+ * Returns true if there is a filter on the jetpack_active_modules option.
31
+ *
32
+ * @return bool Whether there is a filter on the jetpack_active_modules option.
33
+ */
34
+ public function do_overrides_exist() {
35
+ return (bool) ( has_filter( 'option_jetpack_active_modules' ) || has_filter( 'jetpack_active_modules' ) );
36
+ }
37
+
38
+ /**
39
+ * Gets the override for a given module.
40
+ *
41
+ * @param string $module_slug The module's slug.
42
+ * @param boolean $use_cache Whether or not cached overrides should be used.
43
+ *
44
+ * @return bool|string False if no override for module. 'active' or 'inactive' if there is an override.
45
+ */
46
+ public function get_module_override( $module_slug, $use_cache = true ) {
47
+ $overrides = $this->get_overrides( $use_cache );
48
+
49
+ if ( ! isset( $overrides[ $module_slug ] ) ) {
50
+ return false;
51
+ }
52
+
53
+ return $overrides[ $module_slug ];
54
+ }
55
+
56
+ /**
57
+ * Returns an array of module overrides where the key is the module slug and the value
58
+ * is true if the module is forced on and false if the module is forced off.
59
+ *
60
+ * @param bool $use_cache Whether or not cached overrides should be used.
61
+ *
62
+ * @return array The array of module overrides.
63
+ */
64
+ public function get_overrides( $use_cache = true ) {
65
+ if ( $use_cache && ! is_null( $this->overrides ) ) {
66
+ return $this->overrides;
67
+ }
68
+
69
+ if ( ! $this->do_overrides_exist() ) {
70
+ return array();
71
+ }
72
+
73
+ $available_modules = Jetpack::get_available_modules();
74
+
75
+ /**
76
+ * First, let's get all modules that have been forced on.
77
+ */
78
+
79
+ /** This filter is documented in wp-includes/option.php */
80
+ $filtered = apply_filters( 'option_jetpack_active_modules', array() );
81
+
82
+ /** This filter is documented in class.jetpack.php */
83
+ $filtered = apply_filters( 'jetpack_active_modules', $filtered );
84
+
85
+ $forced_on = array_diff( $filtered, array() );
86
+
87
+ /**
88
+ * Second, let's get all modules forced off.
89
+ */
90
+
91
+ /** This filter is documented in wp-includes/option.php */
92
+ $filtered = apply_filters( 'option_jetpack_active_modules', $available_modules );
93
+
94
+ /** This filter is documented in class.jetpack.php */
95
+ $filtered = apply_filters( 'jetpack_active_modules', $filtered );
96
+
97
+ $forced_off = array_diff( $available_modules, $filtered );
98
+
99
+ /**
100
+ * Last, build the return value.
101
+ */
102
+ $return_value = array();
103
+ foreach ( $forced_on as $on ) {
104
+ $return_value[ $on ] = 'active';
105
+ }
106
+
107
+ foreach ( $forced_off as $off ) {
108
+ $return_value[ $off ] = 'inactive';
109
+ }
110
+
111
+ $this->overrides = $return_value;
112
+
113
+ return $return_value;
114
+ }
115
+
116
+ /**
117
+ * A reference to an instance of this class.
118
+ *
119
+ * @var Jetpack_Modules_Overrides
120
+ */
121
+ private static $instance = null;
122
+
123
+ /**
124
+ * Returns the singleton instance of Jetpack_Modules_Overrides
125
+ *
126
+ * @return Jetpack_Modules_Overrides
127
+ */
128
+ public static function instance() {
129
+ if ( is_null( self::$instance ) ) {
130
+ self::$instance = new Jetpack_Modules_Overrides();
131
+ }
132
+
133
+ return self::$instance;
134
+ }
135
+
136
+ /**
137
+ * Private construct to enforce singleton.
138
+ */
139
+ private function __construct() {
140
+ }
141
+ }
142
+
143
+ Jetpack_Modules_Overrides::instance();
3rd-party/debug-bar.php ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Checks if the search module is active, and if so, will initialize the singleton instance
5
+ * of Jetpack_Search_Debug_Bar and add it to the array of debug bar panels.
6
+ *
7
+ * @param array $panels The array of debug bar panels.
8
+ * @return array $panel The array of debug bar panels with our added panel.
9
+ */
10
+ function init_jetpack_search_debug_bar( $panels ) {
11
+ if ( ! Jetpack::is_module_active( 'search' ) ) {
12
+ return $panels;
13
+ }
14
+
15
+ require_once dirname( __FILE__ ) . '/debug-bar/class.jetpack-search-debug-bar.php';
16
+ $panels[] = Jetpack_Search_Debug_Bar::instance();
17
+ return $panels;
18
+ }
19
+ add_filter( 'debug_bar_panels', 'init_jetpack_search_debug_bar' );
3rd-party/debug-bar/class.jetpack-search-debug-bar.php ADDED
@@ -0,0 +1,173 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Singleton class instantiated by Jetpack_Searc_Debug_Bar::instance() that handles
5
+ * rendering the Jetpack Search debug bar menu item and panel.
6
+ */
7
+ class Jetpack_Search_Debug_Bar extends Debug_Bar_Panel {
8
+ /**
9
+ * Holds singleton instance
10
+ *
11
+ * @var Jetpack_Search_Debug_Bar
12
+ */
13
+ protected static $instance = null;
14
+
15
+ /**
16
+ * The title to use in the debug bar navigation
17
+ *
18
+ * @var string
19
+ */
20
+ public $title;
21
+
22
+ /**
23
+ * Constructor
24
+ */
25
+ public function __construct() {
26
+ $this->title( esc_html__( 'Jetpack Search', 'jetpack' ) );
27
+ add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
28
+ add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
29
+ add_action( 'login_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
30
+ add_action( 'enqueue_embed_scripts', array( $this, 'enqueue_scripts' ) );
31
+ }
32
+
33
+ /**
34
+ * Returns the singleton instance of Jetpack_Search_Debug_Bar
35
+ *
36
+ * @return Jetpack_Search_Debug_Bar
37
+ */
38
+ public static function instance() {
39
+ if ( is_null( self::$instance ) ) {
40
+ self::$instance = new Jetpack_Search_Debug_Bar();
41
+ }
42
+ return self::$instance;
43
+ }
44
+
45
+ /**
46
+ * Enqueues styles for our panel in the debug bar
47
+ *
48
+ * @return void
49
+ */
50
+ public function enqueue_scripts() {
51
+ // Do not enqueue scripts if we haven't already enqueued Debug Bar or Query Monitor styles.
52
+ if ( ! wp_style_is( 'debug-bar' ) && ! wp_style_is( 'query-monitor' ) ) {
53
+ return;
54
+ }
55
+
56
+ wp_enqueue_style(
57
+ 'jetpack-search-debug-bar',
58
+ plugins_url( '3rd-party/debug-bar/debug-bar.css', JETPACK__PLUGIN_FILE )
59
+ );
60
+ wp_enqueue_script(
61
+ 'jetpack-search-debug-bar',
62
+ plugins_url( '3rd-party/debug-bar/debug-bar.js', JETPACK__PLUGIN_FILE ),
63
+ array( 'jquery' )
64
+ );
65
+ }
66
+
67
+ /**
68
+ * Should the Jetpack Search Debug Bar show?
69
+ *
70
+ * Since we've previously done a check for the search module being activated, let's just return true.
71
+ * Later on, we can update this to only show when `is_search()` is true.
72
+ *
73
+ * @return boolean
74
+ */
75
+ public function is_visible() {
76
+ return true;
77
+ }
78
+
79
+ /**
80
+ * Renders the panel content
81
+ *
82
+ * @return void
83
+ */
84
+ public function render() {
85
+ if ( ! class_exists( 'Jetpack_Search' ) ) {
86
+ return;
87
+ }
88
+
89
+ $jetpack_search = Jetpack_Search::instance();
90
+ $last_query_info = $jetpack_search->get_last_query_info();
91
+
92
+ // If not empty, let's reshuffle the order of some things.
93
+ if ( ! empty( $last_query_info ) ) {
94
+ $args = $last_query_info['args'];
95
+ $response = $last_query_info['response'];
96
+ $response_code = $last_query_info['response_code'];
97
+
98
+ unset( $last_query_info['args'] );
99
+ unset( $last_query_info['response'] );
100
+ unset( $last_query_info['response_code'] );
101
+
102
+ if ( is_null( $last_query_info['es_time'] ) ) {
103
+ $last_query_info['es_time'] = esc_html_x(
104
+ 'cache hit',
105
+ 'displayed in search results when results are cached',
106
+ 'jetpack'
107
+ );
108
+ }
109
+
110
+ $temp = array_merge(
111
+ array( 'response_code' => $response_code ),
112
+ array( 'args' => $args ),
113
+ $last_query_info,
114
+ array( 'response' => $response )
115
+ );
116
+
117
+ $last_query_info = $temp;
118
+ }
119
+ ?>
120
+ <div class="jetpack-search-debug-bar">
121
+ <h2><?php esc_html_e( 'Last query information:', 'jetpack' ); ?></h2>
122
+ <?php if ( empty( $last_query_info ) ) : ?>
123
+ <?php echo esc_html_x( 'None', 'Text displayed when there is no information', 'jetpack' ); ?>
124
+ <?php
125
+ else :
126
+ foreach ( $last_query_info as $key => $info ) :
127
+ ?>
128
+ <h3><?php echo esc_html( $key ); ?></h3>
129
+ <?php
130
+ if ( 'response' !== $key && 'args' !== $key ) :
131
+ ?>
132
+ <pre><?php print_r( esc_html( $info ) ); ?></pre>
133
+ <?php
134
+ else :
135
+ $this->render_json_toggle( $info );
136
+ endif;
137
+ ?>
138
+ <?php
139
+ endforeach;
140
+ endif;
141
+ ?>
142
+ </div><!-- Closes .jetpack-search-debug-bar -->
143
+ <?php
144
+ }
145
+
146
+ /**
147
+ * Responsible for rendering the HTML necessary for the JSON toggle
148
+ *
149
+ * @param array $value The resonse from the API as an array.
150
+ * @return void
151
+ */
152
+ public function render_json_toggle( $value ) {
153
+ ?>
154
+ <div class="json-toggle-wrap">
155
+ <pre class="json"><?php
156
+ // esc_html() will not double-encode entities (&amp; -> &amp;amp;).
157
+ // If any entities are part of the JSON blob, we want to re-encoode them
158
+ // (double-encode them) so that they are displayed correctly in the debug
159
+ // bar.
160
+ // Use _wp_specialchars() "manually" to ensure entities are encoded correctly.
161
+ echo _wp_specialchars(
162
+ wp_json_encode( $value ),
163
+ ENT_NOQUOTES, // Don't need to encode quotes (output is for a text node).
164
+ 'UTF-8', // wp_json_encode() outputs UTF-8 (really just ASCII), not the blog's charset.
165
+ true // Do "double-encode" existing HTML entities
166
+ );
167
+ ?></pre>
168
+ <span class="pretty toggle"><?php echo esc_html_x( 'Pretty', 'label for formatting JSON', 'jetpack' ); ?></span>
169
+ <span class="ugly toggle"><?php echo esc_html_x( 'Minify', 'label for formatting JSON', 'jetpack' ); ?></span>
170
+ </div>
171
+ <?php
172
+ }
173
+ }
3rd-party/debug-bar/debug-bar.css ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .jetpack-search-debug-bar h2,
2
+ .qm-debug-bar-output .jetpack-search-debug-bar h2 {
3
+ float: none !important;
4
+ padding: 0 !important;
5
+ text-align: left !important;
6
+ }
7
+
8
+ .qm-debug-bar-output .jetpack-search-debug-bar h2 {
9
+ margin-top: 1em !important;
10
+ }
11
+
12
+ .qm-debug-bar-output .jetpack-search-debug-bar h2:first-child {
13
+ margin-top: .5em !important;
14
+ }
15
+
16
+ .debug-menu-target h3 {
17
+ padding-top: 0
18
+ }
19
+
20
+ .jetpack-search-debug-output-toggle .print-r {
21
+ display: none;
22
+ }
23
+
24
+ .json-toggle-wrap {
25
+ position: relative;
26
+ }
27
+
28
+ .json-toggle-wrap .toggle {
29
+ position: absolute;
30
+ bottom: 10px;
31
+ right: 10px;
32
+ background: #fff;
33
+ border: 1px solid #000;
34
+ cursor: pointer;
35
+ padding: 2px 4px;
36
+ }
37
+
38
+ .json-toggle-wrap .ugly {
39
+ display: none;
40
+ }
41
+
42
+ .json-toggle-wrap.pretty .pretty {
43
+ display: none;
44
+ }
45
+
46
+ .json-toggle-wrap.pretty .ugly {
47
+ display: inline;
48
+ }
49
+
50
+ .jetpack-search-debug-bar pre {
51
+ white-space: pre-wrap;
52
+ white-space: -moz-pre-wrap;
53
+ white-space: -pre-wrap;
54
+ white-space: -o-pre-wrap;
55
+ word-wrap: break-word;
56
+ }
3rd-party/debug-bar/debug-bar.js ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* global jQuery, JSON */
2
+
3
+ ( function( $ ) {
4
+ $( document ).ready( function() {
5
+ $( '.jetpack-search-debug-bar .json-toggle-wrap .toggle' ).click( function() {
6
+ var t = $( this ),
7
+ wrap = t.closest( '.json-toggle-wrap' ),
8
+ pre = wrap.find( 'pre' ),
9
+ content = pre.text(),
10
+ isPretty = wrap.hasClass( 'pretty' );
11
+
12
+ if ( ! isPretty ) {
13
+ pre.text( JSON.stringify( JSON.parse( content ), null, 2 ) );
14
+ } else {
15
+ content.replace( '\t', '' ).replace( '\n', '' ).replace( ' ', '' );
16
+ pre.text( JSON.stringify( JSON.parse( content ) ) );
17
+ }
18
+
19
+ wrap.toggleClass( 'pretty' );
20
+ } );
21
+ } );
22
+ } )( jQuery );
3rd-party/domain-mapping.php ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Class Jetpack_3rd_Party_Domain_Mapping
5
+ *
6
+ * This class contains methods that are used to provide compatibility between Jetpack sync and domain mapping plugins.
7
+ */
8
+ class Jetpack_3rd_Party_Domain_Mapping {
9
+
10
+ /**
11
+ * @var Jetpack_3rd_Party_Domain_Mapping
12
+ **/
13
+ private static $instance = null;
14
+
15
+ /**
16
+ * An array of methods that are used to hook the Jetpack sync filters for home_url and site_url to a mapping plugin.
17
+ *
18
+ * @var array
19
+ */
20
+ static $test_methods = array(
21
+ 'hook_wordpress_mu_domain_mapping',
22
+ 'hook_wpmu_dev_domain_mapping'
23
+ );
24
+
25
+ static function init() {
26
+ if ( is_null( self::$instance ) ) {
27
+ self::$instance = new Jetpack_3rd_Party_Domain_Mapping;
28
+ }
29
+
30
+ return self::$instance;
31
+ }
32
+
33
+ private function __construct() {
34
+ add_action( 'plugins_loaded', array( $this, 'attempt_to_hook_domain_mapping_plugins' ) );
35
+ }
36
+
37
+ /**
38
+ * This function is called on the plugins_loaded action and will loop through the $test_methods
39
+ * to try and hook a domain mapping plugin to the Jetpack sync filters for the home_url and site_url callables.
40
+ */
41
+ function attempt_to_hook_domain_mapping_plugins() {
42
+ if ( ! Jetpack_Constants::is_defined( 'SUNRISE' ) ) {
43
+ return;
44
+ }
45
+
46
+ $hooked = false;
47
+ $count = count( self::$test_methods );
48
+ for ( $i = 0; $i < $count && ! $hooked; $i++ ) {
49
+ $hooked = call_user_func( array( $this, self::$test_methods[ $i ] ) );
50
+ }
51
+ }
52
+
53
+ /**
54
+ * This method will test for a constant and function that are known to be used with Donncha's WordPress MU
55
+ * Domain Mapping plugin. If conditions are met, we hook the domain_mapping_siteurl() function to Jetpack sync
56
+ * filters for home_url and site_url callables.
57
+ *
58
+ * @return bool
59
+ */
60
+ function hook_wordpress_mu_domain_mapping() {
61
+ if ( ! Jetpack_Constants::is_defined( 'SUNRISE_LOADED' ) || ! $this->function_exists( 'domain_mapping_siteurl' ) ) {
62
+ return false;
63
+ }
64
+
65
+ add_filter( 'jetpack_sync_home_url', 'domain_mapping_siteurl' );
66
+ add_filter( 'jetpack_sync_site_url', 'domain_mapping_siteurl' );
67
+
68
+ return true;
69
+ }
70
+
71
+ /**
72
+ * This method will test for a class and method known to be used in WPMU Dev's domain mapping plugin. If the
73
+ * method exists, then we'll hook the swap_to_mapped_url() to our Jetpack sync filters for home_url and site_url.
74
+ *
75
+ * @return bool
76
+ */
77
+ function hook_wpmu_dev_domain_mapping() {
78
+ if ( ! $this->class_exists( 'domain_map' ) || ! $this->method_exists( 'domain_map', 'utils' ) ) {
79
+ return false;
80
+ }
81
+
82
+ $utils = $this->get_domain_mapping_utils_instance();
83
+ add_filter( 'jetpack_sync_home_url', array( $utils, 'swap_to_mapped_url' ) );
84
+ add_filter( 'jetpack_sync_site_url', array( $utils, 'swap_to_mapped_url' ) );
85
+
86
+ return true;
87
+ }
88
+
89
+ /*
90
+ * Utility Methods
91
+ *
92
+ * These methods are very minimal, and in most cases, simply pass on arguments. Why create them you ask?
93
+ * So that we can test.
94
+ */
95
+
96
+ public function method_exists( $class, $method ) {
97
+ return method_exists( $class, $method );
98
+ }
99
+
100
+ public function class_exists( $class ) {
101
+ return class_exists( $class );
102
+ }
103
+
104
+ public function function_exists( $function ) {
105
+ return function_exists( $function );
106
+ }
107
+
108
+ public function get_domain_mapping_utils_instance() {
109
+ return domain_map::utils();
110
+ }
111
+ }
112
+
113
+ Jetpack_3rd_Party_Domain_Mapping::init();
3rd-party/polldaddy.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Jetpack_Sync {
4
+ static function sync_options() {
5
+ _deprecated_function( __METHOD__, 'jetpack-4.2', 'jetpack_options_whitelist filter' );
6
+ }
7
+ }
3rd-party/qtranslate-x.php ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Prevent qTranslate X from redirecting REST calls.
4
+ *
5
+ * @since 5.3
6
+ *
7
+ * @param string $url_lang Language URL to redirect to.
8
+ * @param string $url_orig Original URL.
9
+ * @param array $url_info Pieces of original URL.
10
+ *
11
+ * @return bool
12
+ */
13
+ function jetpack_no_qtranslate_rest_url_redirect( $url_lang, $url_orig, $url_info ) {
14
+ if ( false !== strpos( $url_info['wp-path'], 'wp-json/jetpack' ) ) {
15
+ return false;
16
+ }
17
+ return $url_lang;
18
+ }
19
+ add_filter( 'qtranslate_language_detect_redirect', 'jetpack_no_qtranslate_rest_url_redirect', 10, 3 );
3rd-party/vaultpress.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Notify user that VaultPress has been disabled. Hide VaultPress notice that requested attention.
5
+ *
6
+ * @since 5.8
7
+ */
8
+ function jetpack_vaultpress_rewind_enabled_notice() {
9
+ // The deactivation is performed here because there may be pages that admin_init runs on,
10
+ // such as admin_ajax, that could deactivate the plugin without showing this notification.
11
+ deactivate_plugins( 'vaultpress/vaultpress.php' );
12
+
13
+ // Remove WP core notice that says that the plugin was activated.
14
+ if ( isset( $_GET['activate'] ) ) {
15
+ unset( $_GET['activate'] );
16
+ }
17
+ ?>
18
+ <div class="notice notice-success vp-deactivated">
19
+ <h2 style="margin-bottom: 0.25em;"><?php _e( 'Jetpack is now handling your backups.', 'jetpack' ); ?></h2>
20
+ <p><?php _e( 'VaultPress is no longer needed and has been deactivated.', 'jetpack' ); ?></p>
21
+ </div>
22
+ <style>#vp-notice{display:none;}</style>
23
+ <?php
24
+ }
25
+
26
+ /**
27
+ * If Rewind is enabled, remove its entry in sidebar, deactivate VaultPress, and show a notification.
28
+ *
29
+ * @since 5.8
30
+ */
31
+ function jetpack_vaultpress_rewind_check() {
32
+ if ( Jetpack::is_active() &&
33
+ Jetpack::is_plugin_active( 'vaultpress/vaultpress.php' ) &&
34
+ Jetpack::is_rewind_enabled()
35
+ ) {
36
+ remove_submenu_page( 'jetpack', 'vaultpress' );
37
+
38
+ add_action( 'admin_notices', 'jetpack_vaultpress_rewind_enabled_notice' );
39
+ }
40
+ }
41
+
42
+ add_action( 'admin_init', 'jetpack_vaultpress_rewind_check', 11 );
3rd-party/woocommerce-services.php ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
+
7
+ class WC_Services_Installer {
8
+
9
+ /**
10
+ * @var Jetpack
11
+ **/
12
+ private $jetpack;
13
+
14
+ /**
15
+ * @var WC_Services_Installer
16
+ **/
17
+ private static $instance = null;
18
+
19
+ static function init() {
20
+ if ( is_null( self::$instance ) ) {
21
+ self::$instance = new WC_Services_Installer();
22
+ }
23
+ return self::$instance;
24
+ }
25
+
26
+ public function __construct() {
27
+ $this->jetpack = Jetpack::init();
28
+
29
+ add_action( 'admin_init', array( $this, 'add_error_notice' ) );
30
+ add_action( 'admin_init', array( $this, 'try_install' ) );
31
+ }
32
+
33
+ /**
34
+ * Verify the intent to install WooCommerce Services, and kick off installation.
35
+ */
36
+ public function try_install() {
37
+ if ( ! isset( $_GET['wc-services-action'] ) ) {
38
+ return;
39
+ }
40
+ check_admin_referer( 'wc-services-install' );
41
+
42
+ $result = false;
43
+
44
+ switch ( $_GET['wc-services-action'] ) {
45
+ case 'install':
46
+ if ( current_user_can( 'install_plugins' ) ) {
47
+ $this->jetpack->stat( 'jitm', 'wooservices-install-' . JETPACK__VERSION );
48
+ $result = $this->install();
49
+ if ( $result ) {
50
+ $result = $this->activate();
51
+ }
52
+ }
53
+ break;
54
+
55
+ case 'activate':
56
+ if ( current_user_can( 'activate_plugins' ) ) {
57
+ $this->jetpack->stat( 'jitm', 'wooservices-activate-' . JETPACK__VERSION );
58
+ $result = $this->activate();
59
+ }
60
+ break;
61
+ }
62
+
63
+ $redirect = isset( $_GET['redirect'] ) ? admin_url( $_GET['redirect'] ) : wp_get_referer();
64
+
65
+ if ( $result ) {
66
+ $this->jetpack->stat( 'jitm', 'wooservices-activated-' . JETPACK__VERSION );
67
+ } else {
68
+ $redirect = add_query_arg( 'wc-services-install-error', true, $redirect );
69
+ }
70
+
71
+ wp_safe_redirect( $redirect );
72
+
73
+ exit;
74
+ }
75
+
76
+ /**
77
+ * Set up installation error admin notice.
78
+ */
79
+ public function add_error_notice() {
80
+ if ( ! empty( $_GET['wc-services-install-error'] ) ) {
81
+ add_action( 'admin_notices', array( $this, 'error_notice' ) );
82
+ }
83
+ }
84
+
85
+ /**
86
+ * Notify the user that the installation of WooCommerce Services failed.
87
+ */
88
+ public function error_notice() {
89
+ ?>
90
+ <div class="notice notice-error is-dismissible">
91
+ <p><?php _e( 'There was an error installing WooCommerce Services.', 'jetpack' ); ?></p>
92
+ </div>
93
+ <?php
94
+ }
95
+
96
+ /**
97
+ * Download and install the WooCommerce Services plugin.
98
+ *
99
+ * @return bool result of installation
100
+ */
101
+ private function install() {
102
+ include_once( ABSPATH . '/wp-admin/includes/admin.php' );
103
+ include_once( ABSPATH . '/wp-admin/includes/plugin-install.php' );
104
+ include_once( ABSPATH . '/wp-admin/includes/plugin.php' );
105
+ include_once( ABSPATH . '/wp-admin/includes/class-wp-upgrader.php' );
106
+ include_once( ABSPATH . '/wp-admin/includes/class-plugin-upgrader.php' );
107
+
108
+ $api = plugins_api( 'plugin_information', array( 'slug' => 'woocommerce-services' ) );
109
+
110
+ if ( is_wp_error( $api ) ) {
111
+ return false;
112
+ }
113
+
114
+ $upgrader = new Plugin_Upgrader( new Automatic_Upgrader_Skin() );
115
+ $result = $upgrader->install( $api->download_link );
116
+
117
+ return true === $result;
118
+ }
119
+
120
+ /**
121
+ * Activate the WooCommerce Services plugin.
122
+ *
123
+ * @return bool result of activation
124
+ */
125
+ private function activate() {
126
+ $result = activate_plugin( 'woocommerce-services/woocommerce-services.php' );
127
+
128
+ // activate_plugin() returns null on success
129
+ return is_null( $result );
130
+ }
131
+ }
132
+
133
+ WC_Services_Installer::init();
3rd-party/woocommerce.php ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * This file contains compatibility functions for WooCommerce to improve Jetpack feature support.
4
+ */
5
+ add_action( 'woocommerce_init', 'jetpack_woocommerce_integration' );
6
+
7
+ function jetpack_woocommerce_integration() {
8
+ /**
9
+ * Double check WooCommerce exists - unlikely to fail due to the hook being used but better safe than sorry.
10
+ */
11
+ if ( ! class_exists( 'WooCommerce' ) ) {
12
+ return;
13
+ }
14
+
15
+ add_action( 'woocommerce_share', 'jetpack_woocommerce_social_share_icons', 10 );
16
+
17
+ /**
18
+ * Wrap in function exists check since this requires WooCommerce 3.3+.
19
+ */
20
+ if ( function_exists( 'wc_get_default_products_per_row' ) ) {
21
+ add_filter( 'infinite_scroll_render_callbacks', 'jetpack_woocommerce_infinite_scroll_render_callback', 10 );
22
+ add_action( 'wp_enqueue_scripts', 'jetpack_woocommerce_infinite_scroll_style', 10 );
23
+ }
24
+ }
25
+
26
+ /*
27
+ * Make sure the social sharing icons show up under the product's short description
28
+ */
29
+ function jetpack_woocommerce_social_share_icons() {
30
+ if ( function_exists( 'sharing_display' ) ) {
31
+ remove_filter( 'the_content', 'sharing_display', 19 );
32
+ remove_filter( 'the_excerpt', 'sharing_display', 19 );
33
+ echo sharing_display();
34
+ }
35
+ }
36
+
37
+ /**
38
+ * Remove sharing display from account, cart, and checkout pages in WooCommerce.
39
+ */
40
+ function jetpack_woocommerce_remove_share() {
41
+ /**
42
+ * Double check WooCommerce exists - unlikely to fail due to the hook being used but better safe than sorry.
43
+ */
44
+ if ( ! class_exists( 'WooCommerce' ) ) {
45
+ return;
46
+ }
47
+
48
+ if ( is_cart() || is_checkout() || is_account_page() ) {
49
+ remove_filter( 'the_content', 'sharing_display', 19 );
50
+ if ( class_exists( 'Jetpack_Likes' ) ) {
51
+ remove_filter( 'the_content', array( Jetpack_Likes::init(), 'post_likes' ), 30, 1 );
52
+ }
53
+ }
54
+ }
55
+ add_action( 'loop_start', 'jetpack_woocommerce_remove_share' );
56
+
57
+ /**
58
+ * Add a callback for WooCommerce product rendering in infinite scroll.
59
+ *
60
+ * @param array $callbacks
61
+ * @return array
62
+ */
63
+ function jetpack_woocommerce_infinite_scroll_render_callback( $callbacks ) {
64
+ $callbacks[] = 'jetpack_woocommerce_infinite_scroll_render';
65
+ return $callbacks;
66
+ }
67
+
68
+ /**
69
+ * Add a default renderer for WooCommerce products within infinite scroll.
70
+ */
71
+ function jetpack_woocommerce_infinite_scroll_render() {
72
+ if ( ! is_shop() && ! is_product_taxonomy() && ! is_product_category() && ! is_product_tag() ) {
73
+ return;
74
+ }
75
+
76
+ woocommerce_product_loop_start();
77
+
78
+ while ( have_posts() ) {
79
+ the_post();
80
+ wc_get_template_part( 'content', 'product' );
81
+ }
82
+
83
+ woocommerce_product_loop_end();
84
+ }
85
+
86
+ /**
87
+ * Basic styling when infinite scroll is active only.
88
+ */
89
+ function jetpack_woocommerce_infinite_scroll_style() {
90
+ $custom_css = "
91
+ .infinite-scroll .woocommerce-pagination {
92
+ display: none;
93
+ }";
94
+ wp_add_inline_style( 'woocommerce-layout', $custom_css );
95
+ }
96
+
97
+ function jetpack_woocommerce_lazy_images_compat() {
98
+ wp_add_inline_script( 'wc-cart-fragments', "
99
+ jQuery( 'body' ).bind( 'wc_fragments_refreshed', function() {
100
+ jQuery( 'body' ).trigger( 'jetpack-lazy-images-load' );
101
+ } );
102
+ " );
103
+ }
104
+
105
+ add_action( 'wp_enqueue_scripts', 'jetpack_woocommerce_lazy_images_compat', 11 );
3rd-party/wpml.php ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Only load these if WPML plugin is installed and active.
4
+ */
5
+
6
+ /**
7
+ * Load routines only if WPML is loaded.
8
+ *
9
+ * @since 4.4.0
10
+ */
11
+ function wpml_jetpack_init() {
12
+ add_action( 'jetpack_widget_get_top_posts', 'wpml_jetpack_widget_get_top_posts', 10, 3 );
13
+ add_filter( 'grunion_contact_form_field_html', 'grunion_contact_form_field_html_filter', 10, 3 );
14
+ }
15
+ add_action( 'wpml_loaded', 'wpml_jetpack_init' );
16
+
17
+ /**
18
+ * Filter the Top Posts and Pages by language.
19
+ *
20
+ * @param array $posts Array of the most popular posts.
21
+ * @param array $post_ids Array of Post IDs.
22
+ * @param string $count Number of Top Posts we want to display.
23
+ *
24
+ * @return array
25
+ */
26
+ function wpml_jetpack_widget_get_top_posts( $posts, $post_ids, $count ) {
27
+ global $sitepress;
28
+
29
+ foreach ( $posts as $k => $post ) {
30
+ $lang_information = wpml_get_language_information( $post['post_id'] );
31
+ if ( ! is_wp_error( $lang_information ) ) {
32
+ $post_language = substr( $lang_information['locale'], 0, 2 );
33
+ if ( $post_language !== $sitepress->get_current_language() ) {
34
+ unset( $posts[ $k ] );
35
+ }
36
+ }
37
+ }
38
+
39
+ return $posts;
40
+ }
41
+
42
+ /**
43
+ * Filter the HTML of the Contact Form and output the one requested by language.
44
+ *
45
+ * @param string $r Contact Form HTML output.
46
+ * @param string $field_label Field label.
47
+ * @param int|null $id Post ID.
48
+ *
49
+ * @return string
50
+ */
51
+ function grunion_contact_form_field_html_filter( $r, $field_label, $id ){
52
+ global $sitepress;
53
+
54
+ if ( function_exists( 'icl_translate' ) ) {
55
+ if ( $sitepress->get_current_language() !== $sitepress->get_default_language() ) {
56
+ $label_translation = icl_translate( 'jetpack ', $field_label . '_label', $field_label );
57
+ $r = str_replace( $field_label, $label_translation, $r );
58
+ }
59
+ }
60
+
61
+ return $r;
62
+ }
CODE-OF-CONDUCT.md ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, and in the interest of fostering an open and welcoming community, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, or nationality.
6
+
7
+ Examples of unacceptable behavior by participants include:
8
+
9
+ * The use of sexualized language or imagery
10
+ * Personal attacks
11
+ * Trolling or insulting/derogatory comments
12
+ * Public or private harassment
13
+ * Publishing other's private information, such as physical or electronic addresses, without explicit permission
14
+ * Other unethical or unprofessional conduct
15
+
16
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
17
+
18
+ By adopting this Code of Conduct, project maintainers commit themselves to fairly and consistently applying these principles to every aspect of managing this project. Project maintainers who do not follow or enforce the Code of Conduct may be permanently removed from the project team.
19
+
20
+ This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community.
21
+
22
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by emailing a project maintainer via [this contact form](https://developer.wordpress.com/contact/?g21-subject=Code%20of%20Conduct), with a subject that includes `Code of Conduct`. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. Maintainers are obligated to maintain confidentiality with regard to the reporter of an incident.
23
+
24
+
25
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.3.0, available at [http://contributor-covenant.org/version/1/3/0/][version]
26
+
27
+ [homepage]: http://contributor-covenant.org
28
+ [version]: http://contributor-covenant.org/version/1/3/0/
_inc/accessible-focus.js ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var keyboardNavigation = false,
2
+ keyboardNavigationKeycodes = [ 9, 32, 37, 38, 39, 40 ]; // keyCodes for tab, space, left, up, right, down respectively
3
+
4
+ document.addEventListener( 'keydown', function( event ) {
5
+ if ( keyboardNavigation ) {
6
+ return;
7
+ }
8
+ if ( keyboardNavigationKeycodes.indexOf( event.keyCode ) !== -1 ) {
9
+ keyboardNavigation = true;
10
+ document.documentElement.classList.add( 'accessible-focus' );
11
+ }
12
+ } );
13
+ document.addEventListener( 'mouseup', function() {
14
+ if ( ! keyboardNavigation ) {
15
+ return;
16
+ }
17
+ keyboardNavigation = false;
18
+ document.documentElement.classList.remove( 'accessible-focus' );
19
+ } );
_inc/blocks/editor-beta.css ADDED
@@ -0,0 +1 @@
 
1
+ .help-message{display:-webkit-box;display:-ms-flexbox;display:flex;font-size:13px;line-height:1.4em;margin-bottom:1em;margin-top:-.5em}.help-message svg{margin-right:5px;min-width:24px}.help-message>span{margin-top:2px}.help-message.help-message-is-error{color:#eb0001}.help-message.help-message-is-error svg{fill:#eb0001}.edit-post-more-menu__content .components-icon-button .jetpack-logo,.edit-post-pinned-plugins .components-icon-button .jetpack-logo{width:20px;height:20px}.edit-post-more-menu__content .components-icon-button .jetpack-logo{margin-right:4px}.edit-post-pinned-plugins .components-icon-button.is-toggled .jetpack-logo,.edit-post-pinned-plugins .components-icon-button.is-toggled .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button.is-toggled .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button.is-toggled:hover .jetpack-logo,.edit-post-pinned-plugins .components-icon-button.is-toggled:hover .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button.is-toggled:hover .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button:hover .jetpack-logo,.edit-post-pinned-plugins .components-icon-button:hover .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button:hover .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button:not(.is-toggled) .jetpack-logo,.edit-post-pinned-plugins .components-icon-button:not(.is-toggled) .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button:not(.is-toggled) .jetpack-logo__icon-triangle{stroke:none!important}.edit-post-pinned-plugins .components-icon-button.is-toggled .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button.is-toggled:hover .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button:hover .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button:not(.is-toggled) .jetpack-logo__icon-circle{fill:#00be28!important}.edit-post-pinned-plugins .components-icon-button.is-toggled .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button.is-toggled:hover .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button:hover .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button:not(.is-toggled) .jetpack-logo__icon-triangle{fill:#fff!important}.jetpack-contact-form{padding:10px 18px}.jetpack-contact-form.has-intro{padding:0}.jetpack-contact-form .components-placeholder{padding:24px}.jetpack-contact-form .components-placeholder input[type=text]{width:100%;outline-width:0;outline-style:none;line-height:16px}.jetpack-contact-form .components-placeholder .components-placeholder__label svg{margin-right:1ch}.jetpack-contact-form .components-placeholder .components-placeholder__fieldset,.jetpack-contact-form .components-placeholder .help-message{text-align:left}.jetpack-contact-form .components-placeholder .help-message{width:100%;margin:-18px 0 28px}.jetpack-contact-form .components-placeholder .components-base-control{margin-bottom:16px;width:100%}.jetpack-contact-form__intro-message{margin:0 0 16px}.jetpack-contact-form__create{width:100%}.jetpack-field-label{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.jetpack-field-label .components-base-control{margin-top:-1px;margin-bottom:-3px}.jetpack-field-label .components-base-control .components-form-toggle{margin:2px 8px 0 0}.jetpack-field-label .required{color:#dc3232}.jetpack-field-label .components-toggle-control .components-base-control__field{margin-bottom:0}.jetpack-field-label__input{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;min-height:unset;padding:0}.jetpack-field-label__input.jetpack-field-label__input.jetpack-field-label__input{border-color:#fff;border-radius:0;font-weight:600;margin:0 0 2px;padding:0}.jetpack-field-label__input.jetpack-field-label__input.jetpack-field-label__input:focus{border-color:#fff;-webkit-box-shadow:none;box-shadow:none}input.components-text-control__input{line-height:16px}.jetpack-field .components-text-control__input.components-text-control__input{width:100%}.jetpack-field .components-text-control__input,.jetpack-field .components-textarea-control__input{color:#72777c;padding:10px 8px}.jetpack-field-checkbox__checkbox.jetpack-field-checkbox__checkbox.jetpack-field-checkbox__checkbox{float:left}.jetpack-field-multiple__list.jetpack-field-multiple__list{list-style-type:none;margin:0}.jetpack-field-multiple__list.jetpack-field-multiple__list:empty{display:none}[data-type="jetpack/field-select"] .jetpack-field-multiple__list.jetpack-field-multiple__list{border:1px solid #8d96a0;border-radius:4px;padding:4px}.jetpack-option{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:0}.jetpack-option__type.jetpack-option__type{margin-top:0}.jetpack-option__input.jetpack-option__input.jetpack-option__input{border-color:#fff;border-radius:0;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.jetpack-option__input.jetpack-option__input.jetpack-option__input:hover{border-color:#357cb5}.jetpack-option__input.jetpack-option__input.jetpack-option__input:focus{border-color:#e3e5e8;-webkit-box-shadow:none;box-shadow:none}.jetpack-option__remove.jetpack-option__remove{padding:6px;vertical-align:bottom}.jetpack-field-multiple__add-option{margin-left:-6px;padding:4px 8px 4px 4px}.jetpack-field-multiple__add-option svg{margin-right:12px}.jetpack-field-checkbox .components-base-control__label{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.jetpack-field-checkbox .components-base-control__label .jetpack-field-label{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.jetpack-field-checkbox .components-base-control__label .jetpack-field-label__input{font-size:13px;font-weight:400;padding-left:10px}@media (min-width:481px){.jetpack-contact-form-shortcode-preview{padding:24px}}.jetpack-contact-form-shortcode-preview{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:1.4em;display:block;position:relative;margin:0 auto;padding:16px;-webkit-box-sizing:border-box;box-sizing:border-box;background:#fff;-webkit-box-shadow:0 0 0 1px rgba(200,215,225,.5),0 1px 2px #e9eff3;box-shadow:0 0 0 1px rgba(200,215,225,.5),0 1px 2px #e9eff3}.jetpack-contact-form-shortcode-preview:after{content:".";display:block;height:0;clear:both;visibility:hidden}.jetpack-contact-form-shortcode-preview>div{margin-top:24px}.jetpack-contact-form-shortcode-preview>div:first-child{margin-top:0}.jetpack-contact-form-shortcode-preview label{display:block;font-size:14px;font-weight:600;margin-bottom:5px}.jetpack-contact-form-shortcode-preview input[type=email],.jetpack-contact-form-shortcode-preview input[type=tel],.jetpack-contact-form-shortcode-preview input[type=text],.jetpack-contact-form-shortcode-preview input[type=url]{border-radius:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:7px 14px;width:100%;color:#2e4453;font-size:16px;line-height:1.5;border:1px solid #c8d7e1;background-color:#fff;-webkit-transition:all .15s ease-in-out;transition:all .15s ease-in-out;-webkit-box-shadow:none;box-shadow:none}.jetpack-contact-form-shortcode-preview input[type=email]::-webkit-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=tel]::-webkit-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=text]::-webkit-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=url]::-webkit-input-placeholder{color:#87a6bc}.jetpack-contact-form-shortcode-preview input[type=email]:-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=tel]:-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=text]:-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=url]:-ms-input-placeholder{color:#87a6bc}.jetpack-contact-form-shortcode-preview input[type=email]::-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=tel]::-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=text]::-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=url]::-ms-input-placeholder{color:#87a6bc}.jetpack-contact-form-shortcode-preview input[type=email]::placeholder,.jetpack-contact-form-shortcode-preview input[type=tel]::placeholder,.jetpack-contact-form-shortcode-preview input[type=text]::placeholder,.jetpack-contact-form-shortcode-preview input[type=url]::placeholder{color:#87a6bc}.jetpack-contact-form-shortcode-preview input[type=email]:hover,.jetpack-contact-form-shortcode-preview input[type=tel]:hover,.jetpack-contact-form-shortcode-preview input[type=text]:hover,.jetpack-contact-form-shortcode-preview input[type=url]:hover{border-color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=email]:focus,.jetpack-contact-form-shortcode-preview input[type=tel]:focus,.jetpack-contact-form-shortcode-preview input[type=text]:focus,.jetpack-contact-form-shortcode-preview input[type=url]:focus{border-color:#0087be;outline:none;-webkit-box-shadow:0 0 0 2px #78dcfa;box-shadow:0 0 0 2px #78dcfa}.jetpack-contact-form-shortcode-preview input[type=email]:focus::-ms-clear,.jetpack-contact-form-shortcode-preview input[type=tel]:focus::-ms-clear,.jetpack-contact-form-shortcode-preview input[type=text]:focus::-ms-clear,.jetpack-contact-form-shortcode-preview input[type=url]:focus::-ms-clear{display:none}.jetpack-contact-form-shortcode-preview input[type=email]:disabled,.jetpack-contact-form-shortcode-preview input[type=tel]:disabled,.jetpack-contact-form-shortcode-preview input[type=text]:disabled,.jetpack-contact-form-shortcode-preview input[type=url]:disabled{background:#f3f6f8;border-color:#e9eff3;color:#a8bece;-webkit-text-fill-color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=email]:disabled:hover,.jetpack-contact-form-shortcode-preview input[type=tel]:disabled:hover,.jetpack-contact-form-shortcode-preview input[type=text]:disabled:hover,.jetpack-contact-form-shortcode-preview input[type=url]:disabled:hover{cursor:default}.jetpack-contact-form-shortcode-preview input[type=email]:disabled::-webkit-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=tel]:disabled::-webkit-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=text]:disabled::-webkit-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=url]:disabled::-webkit-input-placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=email]:disabled:-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=tel]:disabled:-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=text]:disabled:-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=url]:disabled:-ms-input-placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=email]:disabled::-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=tel]:disabled::-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=text]:disabled::-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=url]:disabled::-ms-input-placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=email]:disabled::placeholder,.jetpack-contact-form-shortcode-preview input[type=tel]:disabled::placeholder,.jetpack-contact-form-shortcode-preview input[type=text]:disabled::placeholder,.jetpack-contact-form-shortcode-preview input[type=url]:disabled::placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview textarea{border-radius:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:7px 14px;height:92px;width:100%;color:#2e4453;font-size:16px;line-height:1.5;border:1px solid #c8d7e1;background-color:#fff;-webkit-transition:all .15s ease-in-out;transition:all .15s ease-in-out;-webkit-box-shadow:none;box-shadow:none}.jetpack-contact-form-shortcode-preview textarea::-webkit-input-placeholder{color:#87a6bc}.jetpack-contact-form-shortcode-preview textarea:-ms-input-placeholder{color:#87a6bc}.jetpack-contact-form-shortcode-preview textarea::-ms-input-placeholder{color:#87a6bc}.jetpack-contact-form-shortcode-preview textarea::placeholder{color:#87a6bc}.jetpack-contact-form-shortcode-preview textarea:hover{border-color:#a8bece}.jetpack-contact-form-shortcode-preview textarea:focus{border-color:#0087be;outline:none;-webkit-box-shadow:0 0 0 2px #78dcfa;box-shadow:0 0 0 2px #78dcfa}.jetpack-contact-form-shortcode-preview textarea:focus::-ms-clear{display:none}.jetpack-contact-form-shortcode-preview textarea:disabled{background:#f3f6f8;border-color:#e9eff3;color:#a8bece;-webkit-text-fill-color:#a8bece}.jetpack-contact-form-shortcode-preview textarea:disabled:hover{cursor:default}.jetpack-contact-form-shortcode-preview textarea:disabled::-webkit-input-placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview textarea:disabled:-ms-input-placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview textarea:disabled::-ms-input-placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview textarea:disabled::placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=checkbox]{-webkit-appearance:none;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;margin:2px 0 0;width:16px;height:16px;float:left;outline:0;padding:0;-webkit-box-shadow:none;box-shadow:none;background-color:#fff;border:1px solid #c8d7e1;color:#2e4453;font-size:16px;line-height:0;text-align:center;vertical-align:middle;-moz-appearance:none;appearance:none;-webkit-transition:all .15s ease-in-out;transition:all .15s ease-in-out;clear:none;cursor:pointer}.jetpack-contact-form-shortcode-preview input[type=checkbox]:checked:before{content:"\F147";font-family:Dashicons;margin:-3px 0 0 -4px;float:left;display:inline-block;vertical-align:middle;width:16px;font-size:20px;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;speak:none;color:#00aadc}.jetpack-contact-form-shortcode-preview input[type=checkbox]:disabled:checked:before{color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=checkbox]:hover{border-color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=checkbox]:focus{border-color:#0087be;outline:none;-webkit-box-shadow:0 0 0 2px #78dcfa;box-shadow:0 0 0 2px #78dcfa}.jetpack-contact-form-shortcode-preview input[type=checkbox]:disabled{background:#f3f6f8;border-color:#e9eff3;color:#a8bece;opacity:1}.jetpack-contact-form-shortcode-preview input[type=checkbox]:disabled:hover{cursor:default}.jetpack-contact-form-shortcode-preview input[type=checkbox]+span{display:block;font-weight:400;margin-left:24px}.jetpack-contact-form-shortcode-preview input[type=radio]{color:#2e4453;font-size:16px;border:1px solid #c8d7e1;background-color:#fff;-webkit-transition:all .15s ease-in-out;transition:all .15s ease-in-out;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;clear:none;cursor:pointer;display:inline-block;line-height:0;height:16px;margin:2px 4px 0 0;float:left;outline:0;padding:0;text-align:center;vertical-align:middle;width:16px;min-width:16px;-moz-appearance:none;appearance:none;border-radius:50%;line-height:10px}.jetpack-contact-form-shortcode-preview input[type=radio]:hover{border-color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=radio]:focus{border-color:#0087be;outline:none;-webkit-box-shadow:0 0 0 2px #78dcfa;box-shadow:0 0 0 2px #78dcfa}.jetpack-contact-form-shortcode-preview input[type=radio]:focus::-ms-clear{display:none}.jetpack-contact-form-shortcode-preview input[type=radio]:checked:before{float:left;display:inline-block;content:"\2022";margin:3px;width:8px;height:8px;text-indent:-9999px;background:#00aadc;vertical-align:middle;border-radius:50%;-webkit-animation:grow .2s ease-in-out;animation:grow .2s ease-in-out}.jetpack-contact-form-shortcode-preview input[type=radio]:disabled{background:#f3f6f8;border-color:#e9eff3;color:#a8bece;opacity:1;-webkit-text-fill-color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=radio]:disabled:hover{cursor:default}.jetpack-contact-form-shortcode-preview input[type=radio]:disabled::-webkit-input-placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=radio]:disabled:-ms-input-placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=radio]:disabled::-ms-input-placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=radio]:disabled::placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=radio]:disabled:checked:before{background:#e9eff3}.jetpack-contact-form-shortcode-preview input[type=radio]+span{display:block;font-weight:400;margin-left:24px}@-webkit-keyframes grow{0%{-webkit-transform:scale(.3);transform:scale(.3)}60%{-webkit-transform:scale(1.15);transform:scale(1.15)}to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes grow{0%{-webkit-transform:scale(.3);transform:scale(.3)}60%{-webkit-transform:scale(1.15);transform:scale(1.15)}to{-webkit-transform:scale(1);transform:scale(1)}}.jetpack-contact-form-shortcode-preview select{background:#fff url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE1LjUgNkwxNyA3LjVsLTYuNzUgNi43NUwzLjUgNy41IDUgNmw1LjI1IDUuMjVMMTUuNSA2eiIgZmlsbD0iI0M4RDdFMSIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+) no-repeat right 10px center;border-radius:4px;border:solid #c8d7e1;border-width:1px 1px 2px;color:#2e4453;cursor:pointer;display:inline-block;margin:0;outline:0;overflow:hidden;font-size:14px;line-height:21px;font-weight:600;text-overflow:ellipsis;text-decoration:none;vertical-align:top;white-space:nowrap;-webkit-box-sizing:border-box;box-sizing:border-box;padding:2px 32px 2px 14px;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:sans-serif}.jetpack-contact-form-shortcode-preview select:hover{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE1LjUgNkwxNyA3LjVsLTYuNzUgNi43NUwzLjUgNy41IDUgNmw1LjI1IDUuMjVMMTUuNSA2eiIgZmlsbD0iI2E4YmVjZSIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)}.jetpack-contact-form-shortcode-preview select:focus{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE1LjUgNkwxNyA3LjVsLTYuNzUgNi43NUwzLjUgNy41IDUgNmw1LjI1IDUuMjVMMTUuNSA2eiIgZmlsbD0iIzJlNDQ1MyIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+);border-color:#00aadc;-webkit-box-shadow:0 0 0 2px #78dcfa;box-shadow:0 0 0 2px #78dcfa;outline:0;-moz-outline:none;-moz-user-focus:ignore}.jetpack-contact-form-shortcode-preview select:disabled,.jetpack-contact-form-shortcode-preview select:hover:disabled{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE1LjUgNkwxNyA3LjVsLTYuNzUgNi43NUwzLjUgNy41IDUgNmw1LjI1IDUuMjVMMTUuNSA2eiIgZmlsbD0iI2U5ZWZmMyIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+) no-repeat right 10px center}.jetpack-contact-form-shortcode-preview select.is-compact{min-width:0;padding:0 20px 2px 6px;margin:0 4px;background-position:right 5px center;background-size:12px 12px}.jetpack-contact-form-shortcode-preview label+select,.jetpack-contact-form-shortcode-preview label select{display:block;min-width:200px}.jetpack-contact-form-shortcode-preview label+select.is-compact,.jetpack-contact-form-shortcode-preview label select.is-compact{display:inline-block;min-width:0}.jetpack-contact-form-shortcode-preview select::-ms-expand{display:none}.jetpack-contact-form-shortcode-preview select::-ms-value{background:none;color:#2e4453}.jetpack-contact-form-shortcode-preview select:-moz-focusring{color:transparent;text-shadow:0 0 0 #2e4453}.jetpack-contact-form-shortcode-preview input[type=submit]{vertical-align:baseline;background:#fff;border:solid #c8d7e1;border-width:1px 1px 2px;color:#2e4453;cursor:pointer;display:inline-block;margin:24px 0 0;outline:0;overflow:hidden;font-weight:500;text-overflow:ellipsis;text-decoration:none;vertical-align:top;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:14px;line-height:21px;border-radius:4px;padding:7px 14px 9px;-webkit-appearance:none;-moz-appearance:none;appearance:none}.jetpack-contact-form-shortcode-preview input[type=submit]:hover{border-color:#a8bece;color:#2e4453}.jetpack-contact-form-shortcode-preview input[type=submit]:active{border-width:2px 1px 1px}.jetpack-contact-form-shortcode-preview input[type=submit]:visited{color:#2e4453}.jetpack-contact-form-shortcode-preview input[type=submit]:focus{border-color:#00aadc;-webkit-box-shadow:0 0 0 2px #78dcfa;box-shadow:0 0 0 2px #78dcfa}.wp-block-jetpack-gif figure{-webkit-transition:padding-top 125ms ease-in-out;transition:padding-top 125ms ease-in-out}.wp-block-jetpack-gif .components-base-control__field{text-align:center}.wp-block-jetpack-gif .wp-block-jetpack-gif_cover{background:none;border:none;height:100%;left:0;margin:0;padding:0;position:absolute;top:0;width:100%;z-index:1}.wp-block-jetpack-gif .wp-block-jetpack-gif_cover:focus{outline:none}.wp-block-jetpack-gif .wp-block-jetpack-gif_input-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:0 auto;max-width:400px;width:100%;z-index:1}.wp-block-jetpack-gif .wp-block-jetpack-gif_input-container .components-base-control__label{height:0;margin:0;text-indent:-9999px}.wp-block-jetpack-gif .wp-block-jetpack-gif_input{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;margin-right:.5em}.wp-block-jetpack-gif .wp-block-jetpack-gif_thumbnails-container{display:-webkit-box;display:-ms-flexbox;display:flex;margin:-2px 0 2px -2px;overflow-x:auto;width:calc(100% + 4px)}.wp-block-jetpack-gif .wp-block-jetpack-gif_thumbnails-container::-webkit-scrollbar{display:none}.wp-block-jetpack-gif .wp-block-jetpack-gif_thumbnail-container{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-size:cover;background-repeat:no-repeat;background-position:50% 50%;border:none;border-radius:3px;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:2px;padding:0 0 calc(11.11111% - 4px);width:calc(11.11111% - 4px)}.wp-block-jetpack-gif .wp-block-jetpack-gif_thumbnail-container:hover{-webkit-box-shadow:0 0 0 1px #555d66;box-shadow:0 0 0 1px #555d66}.wp-block-jetpack-gif .wp-block-jetpack-gif_thumbnail-container:focus{-webkit-box-shadow:0 0 0 2px #00a0d2;box-shadow:0 0 0 2px #00a0d2;outline:0}.components-panel__body-gif-branding svg{display:block;margin:0 auto;max-width:200px}.components-panel__body-gif-branding svg path{fill:#ccc}.wp-block-jetpack-gif figure{margin:0;position:relative;width:100%}.wp-block-jetpack-gif iframe{border:0;left:0;height:100%;position:absolute;top:0;width:100%}.wp-block-jetpack-gif.aligncenter{text-align:center}.wp-block-jetpack-gif.alignleft,.wp-block-jetpack-gif.alignright{min-width:300px}.wp-block-jetpack-gif .wp-block-jetpack-gif-caption{margin-top:.5em;margin-bottom:1em;color:#555d66;text-align:center}.wp-block-jetpack-gif .wp-block-jetpack-gif-wrapper{height:0;margin:0;padding:calc(56.2% + 12px) 0 0;position:relative;width:100%}.component__add-point{position:absolute;left:50%;top:50%;width:32px;height:38px;margin-top:-19px;margin-left:-16px;background-image:url(images/oval-3cc7669d571aef4e12f34b349e42d390.svg);background-repeat:no-repeat;text-indent:-9999px}.component__add-point,.component__add-point.components-button:not(:disabled):not([aria-disabled=true]):focus,.component__add-point:active,.component__add-point:focus,.component__add-point__popover .components-button:not(:disabled):not([aria-disabled=true]):focus{-webkit-box-shadow:none;box-shadow:none;background-color:transparent}.component__add-point__popover .components-popover__content{padding:.1rem}.component__add-point__popover .components-location-search{margin:.5rem}.component__add-point__close{margin:0;padding:0;border:none;-webkit-box-shadow:none;box-shadow:none;float:right}.component__add-point__close path{color:#aaa}.edit-post-settings-sidebar__panel-block .component__locations__panel{margin-bottom:1em}.edit-post-settings-sidebar__panel-block .component__locations__panel:empty{display:none}.edit-post-settings-sidebar__panel-block .component__locations__panel .components-panel__body:first-child{border-top:none}.edit-post-settings-sidebar__panel-block .component__locations__panel .components-panel__body,.edit-post-settings-sidebar__panel-block .component__locations__panel .components-panel__body:first-child,.edit-post-settings-sidebar__panel-block .component__locations__panel .components-panel__body:last-child{max-width:100%;margin:0}.edit-post-settings-sidebar__panel-block .component__locations__panel .components-panel__body button{padding-right:40px}.component__locations__delete-btn{padding:0}.component__locations__delete-btn svg{margin-right:.4em}.wp-block-jetpack-map-marker{width:32px;height:38px;opacity:.9}.edit-post-settings-sidebar__panel-block .component__map-theme-picker__button{border:1px solid #d3d3d3;border-radius:100%;width:56px;height:56px;margin:2px;text-indent:-9999px;background-color:#d3d3d3;background-position:50%;background-repeat:no-repeat;background-size:contain;-webkit-transform:scale(1);transform:scale(1);-webkit-transition:-webkit-transform .2s ease;transition:-webkit-transform .2s ease;transition:transform .2s ease;transition:transform .2s ease,-webkit-transform .2s ease}.edit-post-settings-sidebar__panel-block .component__map-theme-picker__button:hover{-webkit-transform:scale(1.1);transform:scale(1.1)}.edit-post-settings-sidebar__panel-block .component__map-theme-picker__button.is-selected{border-color:#000}.edit-post-settings-sidebar__panel-block .component__map-theme-picker__button.is-theme-default{background-image:url(images/map-theme_default-2ceb449b599dbcbe2a90fead5a5f3824.jpg)}.edit-post-settings-sidebar__panel-block .component__map-theme-picker__button.is-theme-black_and_white{background-image:url(images/map-theme_black_and_white-1ead5946ca104d83676d6e3410e1d733.jpg)}.edit-post-settings-sidebar__panel-block .component__map-theme-picker__button.is-theme-satellite{background-image:url(images/map-theme_satellite-c74dc129bda9502fb0fb362bb627577e.jpg)}.edit-post-settings-sidebar__panel-block .component__map-theme-picker__button.is-theme-terrain{background-image:url(images/map-theme_terrain-2b6e6c1c8d09cbdc58a4c0653be1a6e3.jpg)}.wp-block-jetpack-map .wp-block-jetpack-map__gm-container{width:100%;overflow:hidden;background:#d3d3d3;min-height:400px;text-align:left}.wp-block-jetpack-map .mapboxgl-popup{max-width:300px}.wp-block-jetpack-map .mapboxgl-popup h3{font-size:1.3125em;font-weight:400;margin-bottom:.5rem}.wp-block-jetpack-map .mapboxgl-popup p{margin-bottom:0}.wp-block-jetpack-map__delete-btn{padding:0}.wp-block-jetpack-map__delete-btn svg{margin-right:.4em}.wp-block-jetpack-map-components-text-control-api-key{margin-right:4px}.wp-block-jetpack-map-components-text-control-api-key.components-base-control .components-base-control__field{margin-bottom:0}.wp-block-jetpack-map-components-text-control-api-key-submit.is-large{height:31px}.wp-block-jetpack-map-components-text-control-api-key-submit:disabled{opacity:1}.wp-block[data-type="jetpack/map"] .components-placeholder__label svg{fill:currentColor;margin-right:1ch}.wp-block-jetpack-markdown__placeholder{opacity:.62;pointer-events:none}.editor-block-list__block .wp-block-jetpack-markdown__preview{min-height:1.8em;line-height:1.8}.editor-block-list__block .wp-block-jetpack-markdown__preview>*{margin-top:32px;margin-bottom:32px}.editor-block-list__block .wp-block-jetpack-markdown__preview h1,.editor-block-list__block .wp-block-jetpack-markdown__preview h2,.editor-block-list__block .wp-block-jetpack-markdown__preview h3{line-height:1.4}.editor-block-list__block .wp-block-jetpack-markdown__preview h1{font-size:2.44em}.editor-block-list__block .wp-block-jetpack-markdown__preview h2{font-size:1.95em}.editor-block-list__block .wp-block-jetpack-markdown__preview h3{font-size:1.56em}.editor-block-list__block .wp-block-jetpack-markdown__preview h4{font-size:1.25em;line-height:1.5}.editor-block-list__block .wp-block-jetpack-markdown__preview h5{font-size:1em}.editor-block-list__block .wp-block-jetpack-markdown__preview h6{font-size:.8em}.editor-block-list__block .wp-block-jetpack-markdown__preview hr{border:none;border-bottom:2px solid #8f98a1;margin:2em auto;max-width:100px}.editor-block-list__block .wp-block-jetpack-markdown__preview p{line-height:1.8}.editor-block-list__block .wp-block-jetpack-markdown__preview blockquote{border-left:4px solid #000;margin-left:0;margin-right:0;padding-left:1em}.editor-block-list__block .wp-block-jetpack-markdown__preview blockquote p{line-height:1.5;margin:1em 0}.editor-block-list__block .wp-block-jetpack-markdown__preview ol,.editor-block-list__block .wp-block-jetpack-markdown__preview ul{margin-left:1.3em;padding-left:1.3em}.editor-block-list__block .wp-block-jetpack-markdown__preview li p{margin:0}.editor-block-list__block .wp-block-jetpack-markdown__preview code,.editor-block-list__block .wp-block-jetpack-markdown__preview pre{color:#23282d;font-family:Menlo,Consolas,monaco,monospace}.editor-block-list__block .wp-block-jetpack-markdown__preview code{background:#f3f4f5;border-radius:2px;font-size:inherit;padding:2px}.editor-block-list__block .wp-block-jetpack-markdown__preview pre{border-radius:4px;border:1px solid #e2e4e7;font-size:14px;padding:.8em 1em}.editor-block-list__block .wp-block-jetpack-markdown__preview pre code{background:transparent;padding:0}.editor-block-list__block .wp-block-jetpack-markdown__preview table{overflow-x:auto;border-collapse:collapse;width:100%}.editor-block-list__block .wp-block-jetpack-markdown__preview tbody,.editor-block-list__block .wp-block-jetpack-markdown__preview tfoot,.editor-block-list__block .wp-block-jetpack-markdown__preview thead{width:100%;min-width:240px}.editor-block-list__block .wp-block-jetpack-markdown__preview td,.editor-block-list__block .wp-block-jetpack-markdown__preview th{padding:.5em;border:1px solid}.wp-block-jetpack-markdown .wp-block-jetpack-markdown__editor{font-family:Menlo,Consolas,monaco,monospace;font-size:14px}.wp-block-jetpack-markdown .wp-block-jetpack-markdown__editor:focus{border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent}.jetpack-publicize-message-box{background-color:#edeff0;border-radius:4px}.jetpack-publicize-message-box textarea{width:100%}.jetpack-publicize-character-count{padding-bottom:5px;padding-left:5px}.jetpack-publicize__connections-list{list-style-type:none;margin:13px 0}.publicize-jetpack-connection-container{display:-webkit-box;display:-ms-flexbox;display:flex}.jetpack-publicize-gutenberg-social-icon{fill:#555d66;margin-right:5px}.jetpack-publicize-gutenberg-social-icon.is-facebook{fill:#39579a}.jetpack-publicize-gutenberg-social-icon.is-twitter{fill:#55acee}.jetpack-publicize-gutenberg-social-icon.is-linkedin{fill:#0976b4}.jetpack-publicize-gutenberg-social-icon.is-tumblr{fill:#35465c}.jetpack-publicize-gutenberg-social-icon.is-google-plus{fill:#df4a32}.jetpack-publicize-connection-label{-webkit-box-flex:1;-ms-flex:1;flex:1;margin-right:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jetpack-publicize-connection-label .jetpack-publicize-connection-label-copy,.jetpack-publicize-connection-label .jetpack-publicize-gutenberg-social-icon{display:inline-block;vertical-align:middle}.jetpack-publicize-connection-toggle{margin-top:3px}.jetpack-publicize-notice.components-notice{margin-left:0;margin-right:0;margin-bottom:13px}.jetpack-publicize-notice .components-button+.components-button{margin-top:5px}.jetpack-publicize-message-note{display:inline-block;margin-bottom:4px;margin-top:13px}.jetpack-publicize-add-connection-wrapper{margin:15px 0}.jetpack-publicize-add-connection-container{display:-webkit-box;display:-ms-flexbox;display:flex}.jetpack-publicize-add-connection-container a{cursor:pointer}.jetpack-publicize-add-connection-container span{vertical-align:middle}.jetpack-publicize__connections-list .components-notice{margin:5px 0 10px}.wp-block-jetpack-related-posts.is-grid .related-posts__preview{display:-webkit-box;display:-ms-flexbox;display:flex;margin:0 -10px}.wp-block-jetpack-related-posts.is-grid .related-posts__preview-post{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-preferred-size:0;flex-basis:0;margin:0 10px}.wp-block-jetpack-related-posts .related-posts__preview-post-image-placeholder{width:100%;padding:4em 0;background-color:#f6f6f6}.wp-block-jetpack-related-posts .related-posts__preview-post-image-placeholder-icon{margin:0 auto}.wp-block-jetpack-related-posts .related-posts__preview-post-link{font-size:inherit}.wp-block-jetpack-related-posts .related-posts__preview-post-date{color:#2b2d2f}.wp-block-jetpack-related-posts .related-posts__preview-post-context{color:#2b2d2f;font-size:12px;margin:0}.jetpack-clipboard-input{display:-webkit-box;display:-ms-flexbox;display:flex}.jetpack-clipboard-input .components-clipboard-button{margin:2px 0 0 6px}.wp-block-jetpack-simple-payments .simple-payments__help-message{display:-webkit-box;display:-ms-flexbox;display:flex;font-size:13px;line-height:1.4em;margin-bottom:1em;margin-top:-.5em}.wp-block-jetpack-simple-payments .simple-payments__help-message svg{margin-right:5px;min-width:24px}.wp-block-jetpack-simple-payments .simple-payments__help-message>span{margin-top:2px}.wp-block-jetpack-simple-payments .simple-payments__help-message.simple-payments__help-message-is-error{color:#eb0001}.wp-block-jetpack-simple-payments .simple-payments__help-message.simple-payments__help-message-is-error svg{fill:#eb0001}.simple-payments__loading{-webkit-animation:simple-payments-loading 1.6s ease-in-out infinite;animation:simple-payments-loading 1.6s ease-in-out infinite}@-webkit-keyframes simple-payments-loading{0%{opacity:.5}50%{opacity:.7}to{opacity:.5}}@keyframes simple-payments-loading{0%{opacity:.5}50%{opacity:.7}to{opacity:.5}}.jetpack-simple-payments-wrapper{margin-bottom:1.5em}body .jetpack-simple-payments-wrapper .jetpack-simple-payments-details p{margin:0 0 1.5em;padding:0}.jetpack-simple-payments-product{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.jetpack-simple-payments-product-image{-webkit-box-flex:0;-ms-flex:0 0 30%;flex:0 0 30%;margin-bottom:1.5em}.jetpack-simple-payments-image{-webkit-box-sizing:border-box;box-sizing:border-box;min-width:70px;padding-top:100%;position:relative}.jetpack-simple-payments-image img{border:0;border-radius:0;height:auto;left:50%;margin:0;max-height:100%;max-width:100%;padding:0;position:absolute;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:auto}.jetpack-simple-payments-price p,.jetpack-simple-payments-title p{font-weight:700}.jetpack-simple-payments-purchase-box{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;display:-webkit-box;display:-ms-flexbox;display:flex}.jetpack-simple-payments-items{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;margin-right:10px}input[type=number].jetpack-simple-payments-items-number{background:#fff;font-size:16px;line-height:1;max-width:60px;padding:4px 8px}@media screen and (min-width:400px){.jetpack-simple-payments-product{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.jetpack-simple-payments-product-image+.jetpack-simple-payments-details{-ms-flex-preferred-size:70%;flex-basis:70%;padding-left:1em}}.wp-block-jetpack-simple-payments{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;display:grid;grid-template-columns:200px auto;grid-column-gap:10px}.wp-block-jetpack-simple-payments .simple-payments__field .components-base-control__label{display:none}.wp-block-jetpack-simple-payments .simple-payments__field .components-base-control__field{margin-bottom:1em}.wp-block-jetpack-simple-payments .simple-payments__field textarea{display:block}.wp-block-jetpack-simple-payments .simple-payments__field-has-error .components-text-control__input,.wp-block-jetpack-simple-payments .simple-payments__field-has-error .components-textarea-control__input{border-color:#eb0001}.wp-block-jetpack-simple-payments .simple-payments__price-container{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.wp-block-jetpack-simple-payments .simple-payments__price-container .simple-payments__field{margin-right:10px}.wp-block-jetpack-simple-payments .simple-payments__price-container .simple-payments__help-message{-webkit-box-flex:1;-ms-flex:1 1 100%;flex:1 1 100%;margin-top:0}.wp-block-jetpack-simple-payments .simple-payments__field-price .components-text-control__input{max-width:90px}.wp-block-jetpack-simple-payments .simple-payments__field-email .components-text-control__input{max-width:400px}.wp-block-jetpack-simple-payments .simple-payments__field-multiple .components-toggle-control__label{line-height:1.4em}.wp-block-jetpack-simple-payments .simple-payments__field-content .components-textarea-control__input{min-height:32px}.wp-block-jetpack-tiled-gallery{margin:0 auto}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__item img{border-radius:50%}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;width:100%}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-1 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-1 .tiled-gallery__col{width:100%}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-2 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-2 .tiled-gallery__col{width:calc((100% - 4px)/2)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-3 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-3 .tiled-gallery__col{width:calc((100% - 8px)/3)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-4 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-4 .tiled-gallery__col{width:calc((100% - 12px)/4)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-5 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-5 .tiled-gallery__col{width:calc((100% - 16px)/5)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-6 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-6 .tiled-gallery__col{width:calc((100% - 20px)/6)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-7 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-7 .tiled-gallery__col{width:calc((100% - 24px)/7)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-8 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-8 .tiled-gallery__col{width:calc((100% - 28px)/8)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-9 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-9 .tiled-gallery__col{width:calc((100% - 32px)/9)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-10 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-10 .tiled-gallery__col{width:calc((100% - 36px)/10)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-11 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-11 .tiled-gallery__col{width:calc((100% - 40px)/11)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-12 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-12 .tiled-gallery__col{width:calc((100% - 44px)/12)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-13 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-13 .tiled-gallery__col{width:calc((100% - 48px)/13)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-14 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-14 .tiled-gallery__col{width:calc((100% - 52px)/14)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-15 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-15 .tiled-gallery__col{width:calc((100% - 56px)/15)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-16 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-16 .tiled-gallery__col{width:calc((100% - 60px)/16)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-17 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-17 .tiled-gallery__col{width:calc((100% - 64px)/17)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-18 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-18 .tiled-gallery__col{width:calc((100% - 68px)/18)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-19 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-19 .tiled-gallery__col{width:calc((100% - 72px)/19)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-20 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-20 .tiled-gallery__col{width:calc((100% - 76px)/20)}.wp-block-jetpack-tiled-gallery.is-style-columns .tiled-gallery__item,.wp-block-jetpack-tiled-gallery.is-style-rectangular .tiled-gallery__item{display:-webkit-box;display:-ms-flexbox;display:flex}.tiled-gallery__gallery{padding:0;-ms-flex-wrap:wrap;flex-wrap:wrap}.tiled-gallery__gallery,.tiled-gallery__row{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex}.tiled-gallery__row{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:0}.tiled-gallery__row+.tiled-gallery__row{margin-top:4px}.tiled-gallery__col{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:0}.tiled-gallery__col+.tiled-gallery__col{margin-left:4px}.tiled-gallery__item{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:relative;margin:0;overflow:hidden}.tiled-gallery__item+.tiled-gallery__item{margin-top:4px}.tiled-gallery__item>a,.tiled-gallery__item>a>img,.tiled-gallery__item>img{display:block;height:auto;max-width:100%;width:100%;-o-object-fit:cover;object-fit:cover;-o-object-position:center;object-position:center}.wp-block-jetpack-tiled-gallery{padding-left:4px;padding-right:4px}.wp-block-jetpack-tiled-gallery .tiled-gallery__item>img:focus{outline:none}.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected{outline:4px solid #0085ba}.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-transient img{opacity:.3}.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item{margin-top:4px;width:100%}.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item .components-button.tiled-gallery__add-item-button,.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item .components-form-file-upload{width:100%;height:100%}.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item .components-button.tiled-gallery__add-item-button{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-shadow:none;box-shadow:none;border:none;border-radius:0;min-height:100px}.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item .components-button.tiled-gallery__add-item-button .dashicon{margin-top:10px}.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item .components-button.tiled-gallery__add-item-button:focus,.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item .components-button.tiled-gallery__add-item-button:hover{border:1px solid #555d66}.wp-block-jetpack-tiled-gallery .tiled-gallery__item__inline-menu{background-color:#0085ba;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;padding:0 0 2px 2px;position:absolute;right:0;top:0}.wp-block-jetpack-tiled-gallery .tiled-gallery__item__inline-menu .components-button,.wp-block-jetpack-tiled-gallery .tiled-gallery__item__inline-menu .components-button:focus,.wp-block-jetpack-tiled-gallery .tiled-gallery__item__inline-menu .components-button:hover{color:#fff}.wp-block-jetpack-tiled-gallery .tiled-gallery__item__remove{padding:0}.wp-block-jetpack-tiled-gallery .tiled-gallery__item .components-spinner{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.editor-block-preview__content .wp-block-jetpack-tiled-gallery .editor-media-placeholder{display:none}.wp-block-jetpack-tiled-gallery .tiled-gallery__media-placeholder-icon{height:20px;margin-right:1ch;width:20px}.jetpack-email-subscribe-email{display:block;padding:3px 9px;width:50%}.jetpack-email-subscribe-consent-label{color:#999;display:block;font-style:italic;line-height:20px;margin-bottom:23px}.jetpack-email-subscribe-submit{margin:18px 0 13px}.jetpack-email-subscribe-form-error{border:1px solid red}.jetpack-email-subscribe-processing{background-color:#e0e5e9;display:none;margin-bottom:23px;padding:20px;text-align:center}.jetpack-email-subscribe-error{background-color:#da5544}.jetpack-email-subscribe-error,.jetpack-email-subscribe-success{color:#fff;display:none;margin-bottom:23px;padding:20px;text-align:center}.jetpack-email-subscribe-success{background-color:#73b961}.wp-block-jetpack-vr{position:relative;max-width:525px;margin-left:auto;margin-right:auto;overflow:hidden}.wp-block-jetpack-vr .components-placeholder__fieldset{-ms-flex-pack:distribute;justify-content:space-around}.jetpack-contact-info-block{padding:10px 18px}.jetpack-contact-info-block .editor-plain-text.editor-plain-text:focus{-webkit-box-shadow:none;box-shadow:none}
_inc/blocks/editor-beta.js ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ !function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){function t(t){for(var n,r,i=t[0],a=t[1],s=0,c=[];s<i.length;s++)r=i[s],o[r]&&c.push(o[r][0]),o[r]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(l&&l(t);c.length;)c.shift()()}var n={},r={1:0},o={1:0};function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[];r[e]?t.push(r[e]):0!==r[e]&&{3:1}[e]&&t.push(r[e]=new Promise(function(t,n){for(var r="rtl"===document.dir?({3:"map/mapbox-gl"}[e]||e)+".rtl.css":({3:"map/mapbox-gl"}[e]||e)+".css",o=i.p+r,a=document.getElementsByTagName("link"),s=0;s<a.length;s++){var c=(u=a[s]).getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(c===r||c===o))return t()}var l=document.getElementsByTagName("style");for(s=0;s<l.length;s++){var u;if((c=(u=l[s]).getAttribute("data-href"))===r||c===o)return t()}var p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.setAttribute("data-webpack",!0),p.onload=t,p.onerror=function(t){var r=t&&t.target&&t.target.src||o,i=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");i.request=r,n(i)},p.href=o,document.getElementsByTagName("head")[0].appendChild(p)}).then(function(){r[e]=0}));var n=o[e];if(0!==n)if(n)t.push(n[2]);else{var a=new Promise(function(t,r){n=o[e]=[t,r]});t.push(n[2]=a);var s,c=document.createElement("script");c.charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.src=function(e){return i.p+""+({3:"map/mapbox-gl"}[e]||e)+".js"}(e),s=function(t){c.onerror=c.onload=null,clearTimeout(l);var n=o[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src,a=new Error("Loading chunk "+e+" failed.\n("+r+": "+i+")");a.type=r,a.request=i,n[1](a)}o[e]=void 0}};var l=setTimeout(function(){s({type:"timeout",target:c})},12e4);c.onerror=c.onload=s,document.head.appendChild(c)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i.oe=function(e){throw console.error(e),e};var a=window.webpackJsonp=window.webpackJsonp||[],s=a.push.bind(a);a.push=t,a=a.slice();for(var c=0;c<a.length;c++)t(a[c]);var l=s;return i(i.s=262)}([function(e,t){e.exports=wp.element},function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return c}),n.d(t,"c",function(){return l});var r=n(15),o=n.n(r),i=n(14),a=function(e){var t=o()(e);return t.push("jetpack"),t};function s(){return i.__.apply(void 0,o()(a(arguments)))}function c(){return i._n.apply(void 0,o()(a(arguments)))}function l(){return i._x.apply(void 0,o()(a(arguments)))}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=wp.components},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports=window.lodash},function(e,t){function n(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)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){var r=n(24),o=n(2);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){var r=n(69);e.exports=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&&r(e,t)}},function(e,t){e.exports=wp.editor},function(e,t,n){var r;
2
+ /*!
3
+ Copyright (c) 2017 Jed Watson.
4
+ Licensed under the MIT License (MIT), see
5
+ http://jedwatson.github.io/classnames
6
+ */
7
+ /*!
8
+ Copyright (c) 2017 Jed Watson.
9
+ Licensed under the MIT License (MIT), see
10
+ http://jedwatson.github.io/classnames
11
+ */
12
+ !function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"===i)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function o(e,t){return r.call(e,t)}function i(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!=(65535&e)&&65534!=(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function a(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var s=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,c=new RegExp(s.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),l=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,u=n(76);var p=/[&<>"]/,h=/[&<>"]/g,d={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function f(e){return d[e]}var m=/[.?*+^$[\]\\(){}|-]/g;var b=n(58);t.lib={},t.lib.mdurl=n(77),t.lib.ucmicro=n(133),t.assign=function(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=o,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(s,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(c,function(e,t,n){return t||function(e,t){var n=0;return o(u,t)?u[t]:35===t.charCodeAt(0)&&l.test(t)&&i(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?a(n):e}(e,n)})},t.isValidEntityCode=i,t.fromCodePoint=a,t.escapeHtml=function(e){return p.test(e)?e.replace(h,f):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return b.test(e)},t.escapeRE=function(e){return e.replace(m,"\\$&")},t.normalizeReference=function(e){return e.trim().replace(/\s+/g," ").toUpperCase()}},function(e,t){e.exports=wp.i18n},function(e,t,n){var r=n(52),o=n(53),i=n(54);e.exports=function(e){return r(e)||o(e)||i()}},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"d",function(){return s}),n.d(t,"e",function(){return c}),n.d(t,"f",function(){return l});var r=n(1),o=["image"],i="rectangular",a=4,s=[{isDefault:!0,label:Object(r.c)("Tiled mosaic","Tiled gallery layout"),name:i},{label:Object(r.c)("Circles","Tiled gallery layout"),name:"circle"},{label:Object(r.c)("Square tiles","Tiled gallery layout"),name:"square"},{label:Object(r.c)("Tiled columns","Tiled gallery layout"),name:"columns"}],c=20,l=2e3},function(e,t){e.exports=wp.data},function(e,t){e.exports=wp.blocks},function(e,t){e.exports=wp.compose},function(e,t,n){var r=n(4);e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){r(e,t,n[t])})}return e}},function(e,t,n){"use strict";var r=n(0),o=n(3);t.a=function(e){return Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),e)}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(18),o=n(49);function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!Object(o.a)(e))return!1;var i=Object(r.registerBlockType)("jetpack/".concat(e),t);return n.forEach(function(e){return Object(r.registerBlockType)("jetpack/".concat(e.name),e.settings)}),i}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(0),o=n(1),i={name:"map",prefix:"jetpack",title:Object(o.a)("Map"),icon:Object(r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(r.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)("path",{d:"M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM10 5.47l4 1.4v11.66l-4-1.4V5.47zm-5 .99l3-1.01v11.7l-3 1.16V6.46zm14 11.08l-3 1.01V6.86l3-1.16v11.84z"})),category:"jetpack",keywords:[Object(o.a)("map"),Object(o.a)("location")],description:Object(o.a)("Add an interactive map showing one or more locations."),attributes:{align:{type:"string"},points:{type:"array",default:[]},mapStyle:{type:"string",default:"default"},mapDetails:{type:"boolean",default:!0},zoom:{type:"integer",default:13},mapCenter:{type:"object",default:{longitude:-122.41941550000001,latitude:37.7749295}},markerColor:{type:"string",default:"red"}},supports:{html:!1},mapStyleOptions:[{value:"default",label:Object(o.a)("Basic")},{value:"black_and_white",label:Object(o.a)("Black and white")},{value:"satellite",label:Object(o.a)("Satellite")},{value:"terrain",label:Object(o.a)("Terrain")}],validAlignments:["center","wide","full"],markerIcon:Object(r.createElement)("svg",{width:"14",height:"20",viewBox:"0 0 14 20",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("g",{id:"Page-1",fill:"none",fillRule:"evenodd"},Object(r.createElement)("g",{id:"outline-add_location-24px",transform:"translate(-5 -2)"},Object(r.createElement)("polygon",{id:"Shape",points:"0 0 24 0 24 24 0 24"}),Object(r.createElement)("path",{d:"M12,2 C8.14,2 5,5.14 5,9 C5,14.25 12,22 12,22 C12,22 19,14.25 19,9 C19,5.14 15.86,2 12,2 Z M7,9 C7,6.24 9.24,4 12,4 C14.76,4 17,6.24 17,9 C17,11.88 14.12,16.19 12,18.88 C9.92,16.21 7,11.85 7,9 Z M13,6 L11,6 L11,8 L9,8 L9,10 L11,10 L11,12 L13,12 L13,10 L15,10 L15,8 L13,8 L13,6 Z",id:"Shape",fill:"#000",fillRule:"nonzero"}))))}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=r=function(e){return n(e)}:e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},r(t)}e.exports=r},function(e,t,n){"use strict";e.exports=n(99)},function(e,t,n){var r=n(55),o=n(56),i=n(57);e.exports=function(e,t){return r(e)||o(e,t)||i()}},function(e,t){function n(){return e.exports=n=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},n.apply(this,arguments)}e.exports=n},function(e,t){e.exports=wp.keycodes},function(e,t){e.exports=wp.apiFetch},function(e,t,n){"use strict";var r=n(68),o=n(104);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=y,t.resolve=function(e,t){return y(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?y(e,!1,!0).resolveObject(t):t},t.format=function(e){o.isString(e)&&(e=y(e));return e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(l),p=["%","/","?",";","#"].concat(u),h=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},b={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=n(105);function y(e,t,n){if(e&&o.isObject(e)&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}i.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),s=-1!==i&&i<e.indexOf("#")?"?":"#",l=e.split(s);l[0]=l[0].replace(/\\/g,"/");var y=e=l.join(s);if(y=y.trim(),!n&&1===e.split("#").length){var k=c.exec(y);if(k)return this.path=y,this.href=y,this.pathname=k[1],k[2]?(this.search=k[2],this.query=t?v.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var _=a.exec(y);if(_){var j=(_=_[0]).toLowerCase();this.protocol=j,y=y.substr(_.length)}if(n||_||y.match(/^\/\/[^@\/]+@[^@\/]+/)){var O="//"===y.substr(0,2);!O||_&&b[_]||(y=y.substr(2),this.slashes=!0)}if(!b[_]&&(O||_&&!g[_])){for(var C,w,E=-1,x=0;x<h.length;x++){-1!==(S=y.indexOf(h[x]))&&(-1===E||S<E)&&(E=S)}-1!==(w=-1===E?y.lastIndexOf("@"):y.lastIndexOf("@",E))&&(C=y.slice(0,w),y=y.slice(w+1),this.auth=decodeURIComponent(C)),E=-1;for(x=0;x<p.length;x++){var S;-1!==(S=y.indexOf(p[x]))&&(-1===E||S<E)&&(E=S)}-1===E&&(E=y.length),this.host=y.slice(0,E),y=y.slice(E),this.parseHost(),this.hostname=this.hostname||"";var A="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!A)for(var D=this.hostname.split(/\./),M=(x=0,D.length);x<M;x++){var T=D[x];if(T&&!T.match(d)){for(var F="",z=0,P=T.length;z<P;z++)T.charCodeAt(z)>127?F+="x":F+=T[z];if(!F.match(d)){var N=D.slice(0,x),L=D.slice(x+1),R=T.match(f);R&&(N.push(R[1]),L.unshift(R[2])),L.length&&(y="/"+L.join(".")+y),this.hostname=N.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),A||(this.hostname=r.toASCII(this.hostname));var I=this.port?":"+this.port:"",q=this.hostname||"";this.host=q+I,this.href+=this.host,A&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!m[j])for(x=0,M=u.length;x<M;x++){var B=u[x];if(-1!==y.indexOf(B)){var V=encodeURIComponent(B);V===B&&(V=escape(B)),y=y.split(B).join(V)}}var U=y.indexOf("#");-1!==U&&(this.hash=y.substr(U),y=y.slice(0,U));var H=y.indexOf("?");if(-1!==H?(this.search=y.substr(H),this.query=y.substr(H+1),t&&(this.query=v.parse(this.query)),y=y.slice(0,H)):t&&(this.search="",this.query={}),y&&(this.pathname=y),g[j]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){I=this.pathname||"";var $=this.search||"";this.path=I+$}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,a="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(a=v.stringify(this.query));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||g[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),t+i+(n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(s=s.replace("#","%23"))+r},i.prototype.resolve=function(e){return this.resolveObject(y(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if(o.isString(e)){var t=new i;t.parse(e,!1,!0),e=t}for(var n=new i,r=Object.keys(this),a=0;a<r.length;a++){var s=r[a];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var c=Object.keys(e),l=0;l<c.length;l++){var u=c[l];"protocol"!==u&&(n[u]=e[u])}return g[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!g[e.protocol]){for(var p=Object.keys(e),h=0;h<p.length;h++){var d=p[h];n[d]=e[d]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||b[e.protocol])n.pathname=e.pathname;else{for(var f=(e.pathname||"").split("/");f.length&&!(e.host=f.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==f[0]&&f.unshift(""),f.length<2&&f.unshift(""),n.pathname=f.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var m=n.pathname||"",v=n.search||"";n.path=m+v}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var y=n.pathname&&"/"===n.pathname.charAt(0),k=e.host||e.pathname&&"/"===e.pathname.charAt(0),_=k||y||n.host&&e.pathname,j=_,O=n.pathname&&n.pathname.split("/")||[],C=(f=e.pathname&&e.pathname.split("/")||[],n.protocol&&!g[n.protocol]);if(C&&(n.hostname="",n.port=null,n.host&&(""===O[0]?O[0]=n.host:O.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===f[0]?f[0]=e.host:f.unshift(e.host)),e.host=null),_=_&&(""===f[0]||""===O[0])),k)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,O=f;else if(f.length)O||(O=[]),O.pop(),O=O.concat(f),n.search=e.search,n.query=e.query;else if(!o.isNullOrUndefined(e.search)){if(C)n.hostname=n.host=O.shift(),(A=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=A.shift(),n.host=n.hostname=A.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!O.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var w=O.slice(-1)[0],E=(n.host||e.host||O.length>1)&&("."===w||".."===w)||""===w,x=0,S=O.length;S>=0;S--)"."===(w=O[S])?O.splice(S,1):".."===w?(O.splice(S,1),x++):x&&(O.splice(S,1),x--);if(!_&&!j)for(;x--;x)O.unshift("..");!_||""===O[0]||O[0]&&"/"===O[0].charAt(0)||O.unshift(""),E&&"/"!==O.join("/").substr(-1)&&O.push("");var A,D=""===O[0]||O[0]&&"/"===O[0].charAt(0);C&&(n.hostname=n.host=D?"":O.length?O.shift():"",(A=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=A.shift(),n.host=n.hostname=A.shift()));return(_=_||n.host&&O.length)&&!D&&O.unshift(""),O.length?n.pathname=O.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t){e.exports=wp.blob},function(e,t,n){var r=n(108);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(3),i=n(36),a=n(45),s=(n(111),n(35)),c=Object(o.createSlotFill)("JetpackPluginSidebar"),l=c.Fill,u=c.Slot,p=function(e){var t=e.children;return Object(r.createElement)(l,null,t)};p.Slot=function(){return Object(r.createElement)(u,null,function(e){return e.length?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(i.PluginSidebarMoreMenuItem,{target:"jetpack",icon:Object(r.createElement)(s.a,null)},"Jetpack"),Object(r.createElement)(i.PluginSidebar,{name:"jetpack",title:"Jetpack",icon:Object(r.createElement)(s.a,null)},e)):null})},Object(a.registerPlugin)("jetpack-sidebar",{render:function(){return Object(r.createElement)(p.Slot,null)}}),t.default=p},function(e,t,n){"use strict";n.r(t);var r=n(5);n(24),n(67),n(30);function o(e){var t=e.split("?")[0],n=t.split("/");if(0===t.indexOf("/checkout/thank-you/no-site/"))return!1;if(0===t.indexOf("/me/purchases/")||0===t.indexOf("/checkout/thank-you/")){var r=n[3];if(r&&-1!==r.indexOf("."))return r;var o=parseInt(r,10);if(Number.isSafeInteger(o))return o}for(var i=2;i>0;i--){var a=n[n.length-i];if(a&&-1!==a.indexOf("."))return a}for(var s=2;s>0;s--){var c=parseInt(n[n.length-s],10);if(Number.isSafeInteger(c))return c}return!1}function i(){if(window&&window._currentSiteId)return window._currentSiteId;var e=o(window.location.pathname);return Object(r.includes)(["post.php","post-new.php"],e)?window&&window.Jetpack_Editor_Initial_State&&window.Jetpack_Editor_Initial_State.siteFragment?window.Jetpack_Editor_Initial_State.siteFragment:null:e||null}n.d(t,"default",function(){return i})},function(e,t,n){"use strict";var r=n(25),o=n.n(r),i=n(66),a=n.n(i),s=n(12),c=n.n(s),l=o.a.createElement(o.a.Fragment,null,o.a.createElement("path",{className:"jetpack-logo__icon-circle",fill:"#00be28",d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z"}),o.a.createElement("polygon",{className:"jetpack-logo__icon-triangle",fill:"#fff",points:"15,19 7,19 15,3 "}),o.a.createElement("polygon",{className:"jetpack-logo__icon-triangle",fill:"#fff",points:"17,29 17,13 25,13 "})),u=function(e){var t=e.full,n=void 0!==t&&t,r=e.size,i=void 0===r?32:r,a=e.className,s=c()("jetpack-logo",a);return!0===n?o.a.createElement("svg",{height:i,className:s,viewBox:"0 0 118 32"},o.a.createElement("title",null,"Jetpack"),l,o.a.createElement("path",{d:"M41.3 26.6c-.5-.7-.9-1.4-1.3-2.1 2.3-1.4 3-2.5 3-4.6V8h-3V6h6v13.4C46 22.8 45 24.8 41.3 26.6zM58.5 21.3c-1.5.5-2.7.6-4.2.6-3.6 0-5.8-1.8-5.8-6 0-3.1 1.9-5.9 5.5-5.9s4.9 2.5 4.9 4.9c0 .8 0 1.5-.1 2h-7.3c.1 2.5 1.5 2.8 3.6 2.8 1.1 0 2.2-.3 3.4-.7C58.5 19 58.5 21.3 58.5 21.3zM56 15c0-1.4-.5-2.9-2-2.9-1.4 0-2.3 1.3-2.4 2.9C51.6 15 56 15 56 15zM65 18.4c0 1.1.8 1.3 1.4 1.3.5 0 2-.2 2.6-.4v2.1c-.9.3-2.5.5-3.7.5-1.5 0-3.2-.5-3.2-3.1V12H60v-2h2.1V7.1H65V10h4v2h-4V18.4zM71 10h3v1.3c1.1-.8 1.9-1.3 3.3-1.3 2.5 0 4.5 1.8 4.5 5.6s-2.2 6.3-5.8 6.3c-.9 0-1.3-.1-2-.3V28h-3V10zM76.5 12.3c-.8 0-1.6.4-2.5 1.2v5.9c.6.1.9.2 1.8.2 2 0 3.2-1.3 3.2-3.9C79 13.4 78.1 12.3 76.5 12.3zM93 22h-3v-1.5c-.9.7-1.9 1.5-3.5 1.5-1.5 0-3.1-1.1-3.1-3.2 0-2.9 2.5-3.4 4.2-3.7l2.4-.3v-.3c0-1.5-.5-2.3-2-2.3-.7 0-2.3.5-3.7 1.1L84 11c1.2-.4 3-1 4.4-1 2.7 0 4.6 1.4 4.6 4.7L93 22zM90 16.4l-2.2.4c-.7.1-1.4.5-1.4 1.6 0 .9.5 1.4 1.3 1.4s1.5-.5 2.3-1V16.4zM104.5 21.3c-1.1.4-2.2.6-3.5.6-4.2 0-5.9-2.4-5.9-5.9 0-3.7 2.3-6 6.1-6 1.4 0 2.3.2 3.2.5V13c-.8-.3-2-.6-3.2-.6-1.7 0-3.2.9-3.2 3.6 0 2.9 1.5 3.8 3.3 3.8.9 0 1.9-.2 3.2-.7V21.3zM110 15.2c.2-.3.2-.8 3.8-5.2h3.7l-4.6 5.7 5 6.3h-3.7l-4.2-5.8V22h-3V6h3V15.2z"})):24===i?o.a.createElement("svg",{className:s,height:"24",width:"24",viewBox:"0 0 24 24"},o.a.createElement("path",{d:"M12,2C6.5,2,2,6.5,2,12s4.5,10,10,10s10-4.5,10-10S17.5,2,12,2z M11,14H6l5-10V14z M13,20V10h5L13,20z"})):o.a.createElement("svg",{className:s,height:i,width:i,viewBox:"0 0 32 32"},l)};u.propTypes={full:a.a.bool,size:a.a.number},t.a=u},function(e,t){e.exports=wp.editPost},function(e,t,n){"use strict";var r=n(4),o=n.n(r),i=n(7),a=n.n(i),s=n(6),c=n.n(s),l=n(8),u=n.n(l),p=n(9),h=n.n(p),d=n(10),f=n.n(d),m=n(0),b=n(12),g=n.n(b),v=n(19),y=n(3),k=n(11),_=n(5),j=n(1),O=window.getComputedStyle,C=Object(y.withFallbackStyles)(function(e,t){var n,r,o,i,a=t.textButtonColor,s=t.backgroundButtonColor,c=s&&s.color,l=a&&a.color;return!l&&e&&(n=e.querySelector('[contenteditable="true"]')),r=e.querySelector(".wp-block-button__link")?e.querySelector(".wp-block-button__link"):e,e&&(o=O(r).backgroundColor),n&&(i=O(n).color),{fallbackBackgroundColor:c||o,fallbackTextColor:l||i}}),w=function(e){function t(){return a()(this,t),u()(this,h()(t).apply(this,arguments))}return f()(t,e),c()(t,[{key:"componentDidUpdate",value:function(e){if(!Object(_.isEqual)(this.props.textButtonColor,e.textButtonColor)||!Object(_.isEqual)(this.props.backgroundButtonColor,e.backgroundButtonColor)){var t=this.getButtonClasses();this.props.setAttributes({submitButtonClasses:t})}}},{key:"getButtonClasses",value:function(){var e,t=this.props,n=t.textButtonColor,r=t.backgroundButtonColor,i=Object(_.get)(n,"class"),a=Object(_.get)(r,"class");return g()("wp-block-button__link",(e={"has-text-color":n},o()(e,i,i),o()(e,"has-background",r),o()(e,a,a),e))}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.fallbackBackgroundColor,r=e.fallbackTextColor,o=e.setAttributes,i=e.setBackgroundButtonColor,a=e.setTextButtonColor,s=t.customBackgroundButtonColor||n,c=t.customTextButtonColor||r,l={border:"none",backgroundColor:s,color:c},u=this.getButtonClasses();return Object(m.createElement)(m.Fragment,null,Object(m.createElement)("div",{className:"wp-block-button jetpack-submit-button"},Object(m.createElement)(k.RichText,{placeholder:Object(j.a)("Add text…"),value:t.submitButtonText,onChange:function(e){return o({submitButtonText:e})},className:u,style:l,keepPlaceholderOnFocus:!0,formattingControls:[]})),Object(m.createElement)(k.InspectorControls,null,Object(m.createElement)(k.PanelColorSettings,{title:Object(j.a)("Button Color Settings"),colorSettings:[{value:s,onChange:function(e){i(e),o({customBackgroundButtonColor:e})},label:Object(j.a)("Background Color")},{value:c,onChange:function(e){a(e),o({customTextButtonColor:e})},label:Object(j.a)("Text Color")}]}),Object(m.createElement)(k.ContrastChecker,{textColor:c,backgroundColor:s})))}}]),t}(m.Component);t.a=Object(v.compose)([Object(k.withColors)("backgroundButtonColor",{textButtonColor:"color"}),C])(w)},function(e,t,n){"use strict";n.d(t,"b",function(){return s}),n.d(t,"a",function(){return c});var r=n(26),o=n.n(r),i=n(16);function a(e,t){var n=(t-e.reduce(function(e,t){return e+t},0))/e.length;return e.map(function(e){return e+n})}function s(e,t){!function(e,t,n){var r=o()(t,2),s=r[0],c=r[1],d=1/s*(n-i.c*(e.childElementCount-1)-c);!function(e,t){var n=t.rawHeight,r=t.rowWidth,o=l(e),s=o.map(function(e){return(n-i.c*(e.childElementCount-1))*p(e)[0]}),c=a(s,r);o.forEach(function(e,t){var r=s[t],o=c[t];!function(e,t){var n=t.colHeight,r=t.width,o=t.rawWidth,i=a(u(e).map(function(e){return o/h(e)}),n);Array.from(e.children).forEach(function(e,t){var n=i[t];e.setAttribute("style","height:".concat(n,"px;width:").concat(r,"px;"))})}(e,{colHeight:n-i.c*(e.childElementCount-1),width:o,rawWidth:r})})}(e,{rawHeight:d,rowWidth:n-i.c*(e.childElementCount-1)})}(e,function(e){return l(e).map(p).reduce(function(e,t){var n=o()(e,2),r=n[0],i=n[1],a=o()(t,2),s=a[0],c=a[1];return[r+s,i+c]},[0,0])}(e),t)}function c(e){return Array.from(e.querySelectorAll(".tiled-gallery__row"))}function l(e){return Array.from(e.querySelectorAll(".tiled-gallery__col"))}function u(e){return Array.from(e.querySelectorAll(".tiled-gallery__item > img, .tiled-gallery__item > a > img"))}function p(e){var t=u(e),n=t.length,r=1/t.map(h).reduce(function(e,t){return e+1/t},0);return[r,r*n||1]}function h(e){var t=parseInt(e.dataset.width,10),n=parseInt(e.dataset.height,10);return t&&!Number.isNaN(t)&&n&&!Number.isNaN(n)?t/n:1}},function(e,t,n){"use strict";n.r(t);var r=n(24);"object"===("undefined"==typeof window?"undefined":n.n(r)()(window))&&window.Jetpack_Block_Assets_Base_Url&&(n.p=window.Jetpack_Block_Assets_Base_Url)},function(e,t,n){var r=n(85)(Object,"create");e.exports=r},function(e,t,n){var r=n(209);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(215);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){"use strict";n.r(t);var r=n(27),o=n.n(r),i=n(32),a=n.n(i),s=n(0),c=n(12),l=n.n(c),u=n(44),p=n.n(u);n(109);t.default=function(e){var t=e.children,n=void 0===t?null:t,r=e.isError,i=void 0!==r&&r,c=a()(e,["children","isError"]),u=l()("help-message",{"help-message-is-error":i});return n&&Object(s.createElement)("div",o()({className:u},c),i&&Object(s.createElement)(p.a,{size:"24"}),Object(s.createElement)("span",null,n))}},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.size,o=void 0===n?24:n,i=e.onClick,s=(e.icon,e.className),c=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["size","onClick","icon","className"]),l=["gridicon","gridicons-notice-outline",s,(t=o,!(0!=t%18)&&"needs-offset"),!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",r({className:l,height:o,width:o,onClick:i},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-2-2h2l.5-6h-3l.5 6z"})))};var o,i=n(25),a=(o=i)&&o.__esModule?o:{default:o};e.exports=t.default},function(e,t){e.exports=wp.plugins},function(e,t,n){"use strict";var r=/^[-!#$%&'*+\/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/;t.validate=function(e){if(!e)return!1;if(e.length>254)return!1;if(!r.test(e))return!1;var t=e.split("@");return!(t[0].length>64)&&!t[1].split(".").some(function(e){return e.length>63})}},function(e,t){function n(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise(function(o,i){var a=e.apply(t,r);function s(e){n(a,o,i,s,c,"next",e)}function c(e){n(a,o,i,s,c,"throw",e)}s(void 0)})}}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(45),o=n(49);function i(e,t){return!!Object(o.a)(e)&&Object(r.registerPlugin)("jetpack-".concat(e),t)}},function(e,t,n){"use strict";var r=n(5),o=n(89),i=n(24),a=n.n(i),s="Jetpack_Editor_Initial_State";function c(e){var t=Object(r.get)("object"===("undefined"==typeof window?"undefined":a()(window))?window:null,[s],null),n=Object(r.includes)(o.beta,e);return Object(r.get)(t,["available_blocks",e,"available"],n)}n.d(t,"a",function(){return c})},function(e,t,n){"use strict";var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}var n={size:{configurable:!0}};return n.size.get=function(){return this.__entries__.length},t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n+=1){var o=r[n];e.call(t,o[1],o[0])}},Object.defineProperties(t.prototype,n),t}()}(),o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i="undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},s=2,c=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,u=function(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function c(){a(i)}function l(){var e=Date.now();if(n){if(e-o<s)return;r=!0}else n=!0,r=!1,setTimeout(c,t);o=e}return l}(this.refresh.bind(this),20)};u.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},u.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},u.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},u.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},u.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},u.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},u.prototype.onTransitionEnd_=function(e){var t=e.propertyName;void 0===t&&(t=""),c.some(function(e){return!!~t.indexOf(e)})&&this.refresh()},u.getInstance=function(){return this.instance_||(this.instance_=new u),this.instance_},u.instance_=null;var p=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n+=1){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},h=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},d=y(0,0,0,0);function f(e){return parseFloat(e)||0}function m(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return t.reduce(function(t,n){return t+f(e["border-"+n+"-width"])},0)}function b(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return d;var r=h(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n+=1){var o=r[n],i=e["padding-"+o];t[o]=f(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,s=f(r.width),c=f(r.height);if("border-box"===r.boxSizing&&(Math.round(s+i)!==t&&(s-=m(r,"left","right")+i),Math.round(c+a)!==n&&(c-=m(r,"top","bottom")+a)),!function(e){return e===h(e).document.documentElement}(e)){var l=Math.round(s+i)-t,u=Math.round(c+a)-n;1!==Math.abs(l)&&(s-=l),1!==Math.abs(u)&&(c-=u)}return y(o.left,o.top,s,c)}var g="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof h(e).SVGGraphicsElement}:function(e){return e instanceof h(e).SVGElement&&"function"==typeof e.getBBox};function v(e){return o?g(e)?function(e){var t=e.getBBox();return y(0,0,t.width,t.height)}(e):b(e):d}function y(e,t,n,r){return{x:e,y:t,width:n,height:r}}var k=function(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=y(0,0,0,0),this.target=e};k.prototype.isActive=function(){var e=v(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},k.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e};var _=function(e,t){var n,r,o,i,a,s,c,l=(r=(n=t).x,o=n.y,i=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(s.prototype),p(c,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),c);p(this,{target:e,contentRect:l})},j=function(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n};j.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof h(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new k(e)),this.controller_.addObserver(this),this.controller_.refresh())}},j.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof h(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},j.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},j.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},j.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new _(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},j.prototype.clearActive=function(){this.activeObservations_.splice(0)},j.prototype.hasActive=function(){return this.activeObservations_.length>0};var O="undefined"!=typeof WeakMap?new WeakMap:new r,C=function(e){if(!(this instanceof C))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=u.getInstance(),n=new j(e,t,this);O.set(this,n)};["observe","unobserve","disconnect"].forEach(function(e){C.prototype[e]=function(){return(t=O.get(this))[e].apply(t,arguments);var t}});var w=void 0!==i.ResizeObserver?i.ResizeObserver:C;t.a=w},function(e,t,n){"use strict";var r=n(26),o=n.n(r),i=n(7),a=n.n(i),s=n(6),c=n.n(s),l=n(8),u=n.n(l),p=n(9),h=n.n(p),d=n(10),f=n.n(d),m=n(2),b=n.n(m),g=n(4),v=n.n(g),y=n(0),k=n(1),_=n(5),j=n(3),O=(n(72),function(e){function t(){var e,n;a()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=u()(this,(e=h()(t)).call.apply(e,[this].concat(o))),v()(b()(b()(n)),"handleClick",function(){(0,n.props.onClick)(b()(b()(n)))}),v()(b()(b()(n)),"getPoint",function(){var e=n.props.point;return[e.coordinates.longitude,e.coordinates.latitude]}),n}return f()(t,e),c()(t,[{key:"componentDidMount",value:function(){this.renderMarker()}},{key:"componentWillUnmount",value:function(){this.marker&&this.marker.remove()}},{key:"componentDidUpdate",value:function(){this.renderMarker()}},{key:"renderMarker",value:function(){var e=this.props,t=e.map,n=e.point,r=e.mapboxgl,o=e.markerColor,i=this.handleClick,a=[n.coordinates.longitude,n.coordinates.latitude],s=this.marker?this.marker.getElement():document.createElement("div");this.marker?this.marker.setLngLat(a):(s.className="wp-block-jetpack-map-marker",this.marker=new r.Marker(s).setLngLat(a).setOffset([0,-19]).addTo(t),this.marker.getElement().addEventListener("click",i)),s.innerHTML='<?xml version="1.0" encoding="UTF-8"?><svg version="1.1" viewBox="0 0 32 38" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g fill-rule="evenodd"><path id="d" d="m16 38s16-11.308 16-22-7.1634-16-16-16-16 5.3076-16 16 16 22 16 22z" fill="'+o+'" mask="url(#c)"/></g></svg>'}},{key:"render",value:function(){return null}}]),t}(y.Component));O.defaultProps={point:{},map:null,markerColor:"#000000",mapboxgl:null,onClick:function(){}};var C=O,w=function(e){function t(){var e,n;a()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=u()(this,(e=h()(t)).call.apply(e,[this].concat(o))),v()(b()(b()(n)),"closeClick",function(){n.props.unsetActiveMarker()}),n}return f()(t,e),c()(t,[{key:"componentDidMount",value:function(){var e=this.props.mapboxgl;this.el=document.createElement("DIV"),this.infowindow=new e.Popup({closeButton:!0,closeOnClick:!1,offset:{left:[0,0],top:[0,5],right:[0,0],bottom:[0,-40]}}),this.infowindow.setDOMContent(this.el),this.infowindow.on("close",this.closeClick)}},{key:"componentDidUpdate",value:function(e){this.props.activeMarker!==e.activeMarker&&(this.props.activeMarker?this.openWindow():this.closeWindow())}},{key:"render",value:function(){return this.el?Object(y.createPortal)(this.props.children,this.el):null}},{key:"openWindow",value:function(){var e=this.props,t=e.map,n=e.activeMarker;this.infowindow.setLngLat(n.getPoint()).addTo(t)}},{key:"closeWindow",value:function(){this.infowindow.remove()}}]),t}(y.Component);w.defaultProps={unsetActiveMarker:function(){},activeMarker:null,map:null,mapboxgl:null};var E=w;var x=function(e){function t(){var e;return a()(this,t),e=u()(this,h()(t).apply(this,arguments)),v()(b()(b()(e)),"onMarkerClick",function(t){var n=e.props.onMarkerClick;e.setState({activeMarker:t}),n()}),v()(b()(b()(e)),"onMapClick",function(){e.setState({activeMarker:null})}),v()(b()(b()(e)),"clearCurrentMarker",function(){e.setState({activeMarker:null})}),v()(b()(b()(e)),"updateActiveMarker",function(t){var n=e.props.points,r=e.state.activeMarker.props.index,o=n.slice(0);Object(_.assign)(o[r],t),e.props.onSetPoints(o)}),v()(b()(b()(e)),"deleteActiveMarker",function(){var t=e.props.points,n=e.state.activeMarker.props.index,r=t.slice(0);r.splice(n,1),e.props.onSetPoints(r),e.setState({activeMarker:null})}),v()(b()(b()(e)),"sizeMap",function(){var t=e.state.map,n=e.mapRef.current,r=n.offsetWidth,o=.8*window.innerHeight,i=Math.min(.75*r,o);n.style.height=i+"px",t.resize(),e.setBoundsByMarkers()}),v()(b()(b()(e)),"setBoundsByMarkers",function(){var t=e.props,n=t.zoom,r=t.points,o=t.onSetZoom,i=e.state,a=i.map,s=i.activeMarker,c=i.mapboxgl,l=i.zoomControl,u=i.boundsSetProgrammatically;if(a&&r.length&&!s){var p=new c.LngLatBounds;if(r.forEach(function(e){p.extend([e.coordinates.longitude,e.coordinates.latitude])}),r.length>1)return a.fitBounds(p,{padding:{top:40,bottom:40,left:20,right:20}}),e.setState({boundsSetProgrammatically:!0}),void a.removeControl(l);if(a.setCenter(p.getCenter()),u){a.setZoom(12),o(12)}else a.setZoom(parseInt(n,10));a.addControl(l),e.setState({boundsSetProgrammatically:!1})}}),v()(b()(b()(e)),"scriptsLoaded",function(){var t=e.props,n=t.mapCenter,r=t.points;e.setState({loaded:!0}),r.length,e.initMap(n)}),e.state={map:null,fit_to_bounds:!1,loaded:!1,mapboxgl:null},e.mapRef=Object(y.createRef)(),e.debouncedSizeMap=Object(_.debounce)(e.sizeMap,250),e}return f()(t,e),c()(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.points,r=t.admin,o=t.children,i=t.markerColor,a=this.state,s=a.map,c=a.activeMarker,l=a.mapboxgl,u=this.onMarkerClick,p=this.deleteActiveMarker,h=this.updateActiveMarker,d=Object(_.get)(c,"props.point")||{},f=d.title,m=d.caption,b=y.Children.map(o,function(e){if("AddPoint"===Object(_.get)(e,"props.tagName"))return e}),g=s&&l&&n.map(function(e,t){return Object(y.createElement)(C,{key:t,point:e,index:t,map:s,mapboxgl:l,markerColor:i,onClick:u})}),v=l&&Object(y.createElement)(E,{activeMarker:c,map:s,mapboxgl:l,unsetActiveMarker:function(){return e.setState({activeMarker:null})}},c&&r&&Object(y.createElement)(y.Fragment,null,Object(y.createElement)(j.TextControl,{label:Object(k.a)("Marker Title"),value:f,onChange:function(e){return h({title:e})}}),Object(y.createElement)(j.TextareaControl,{className:"wp-block-jetpack-map__marker-caption",label:Object(k.a)("Marker Caption"),value:m,rows:"2",tag:"textarea",onChange:function(e){return h({caption:e})}}),Object(y.createElement)(j.Button,{onClick:p,className:"wp-block-jetpack-map__delete-btn"},Object(y.createElement)(j.Dashicon,{icon:"trash",size:"15"})," ",Object(k.a)("Delete Marker"))),c&&!r&&Object(y.createElement)(y.Fragment,null,Object(y.createElement)("h3",null,f),Object(y.createElement)("p",null,m)));return Object(y.createElement)(y.Fragment,null,Object(y.createElement)("div",{className:"wp-block-jetpack-map__gm-container",ref:this.mapRef},g),v,b)}},{key:"componentDidMount",value:function(){this.props.apiKey&&this.loadMapLibraries()}},{key:"componentWillUnmount",value:function(){this.debouncedSizeMap.cancel()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.apiKey,r=t.children,o=t.points,i=t.mapStyle,a=t.mapDetails,s=this.state.map;n&&n.length>0&&n!==e.apiKey&&this.loadMapLibraries(),r!==e.children&&!1!==r&&this.clearCurrentMarker(),o!==e.points&&this.setBoundsByMarkers(),o.length!==e.points.length&&this.clearCurrentMarker(),i===e.mapStyle&&a===e.mapDetails||s.setStyle(this.getMapStyle())}},{key:"getMapStyle",value:function(){var e=this.props;return function(e,t){return{default:{details:"mapbox://styles/automattic/cjolkhmez0qdd2ro82dwog1in",no_details:"mapbox://styles/automattic/cjolkci3905d82soef4zlmkdo"},black_and_white:{details:"mapbox://styles/automattic/cjolkixvv0ty42spgt2k4j434",no_details:"mapbox://styles/automattic/cjolkgc540tvj2spgzzoq37k4"},satellite:{details:"mapbox://styles/mapbox/satellite-streets-v10",no_details:"mapbox://styles/mapbox/satellite-v9"},terrain:{details:"mapbox://styles/automattic/cjolkf8p405fh2soet2rdt96b",no_details:"mapbox://styles/automattic/cjolke6fz12ys2rpbpvgl12ha"}}[e][t?"details":"no_details"]}(e.mapStyle,e.mapDetails)}},{key:"getMapType",value:function(){switch(this.props.mapStyle){case"satellite":return"HYBRID";case"terrain":return"TERRAIN";case"black_and_white":default:return"ROADMAP"}}},{key:"loadMapLibraries",value:function(){var e=this,t=this.props.apiKey;Promise.all([n.e(3).then(n.t.bind(null,281,7)),n.e(3).then(n.t.bind(null,282,7))]).then(function(n){var r=o()(n,1)[0].default;r.accessToken=t,e.setState({mapboxgl:r},e.scriptsLoaded)})}},{key:"initMap",value:function(e){var t=this,n=this.state.mapboxgl,r=this.props,o=r.zoom,i=r.onMapLoaded,a=r.onError,s=r.admin,c=null;try{c=new n.Map({container:this.mapRef.current,style:this.getMapStyle(),center:this.googlePoint2Mapbox(e),zoom:parseInt(o,10),pitchWithRotate:!1,attributionControl:!1,dragRotate:!1})}catch(e){return void a("mapbox_error",e.message)}c.on("error",function(e){a("mapbox_error",e.error.message)});var l=new n.NavigationControl({showCompass:!1,showZoom:!0});c.on("zoomend",function(){t.props.onSetZoom(c.getZoom())}),c.getCanvas().addEventListener("click",this.onMapClick),this.setState({map:c,zoomControl:l},function(){t.debouncedSizeMap(),c.addControl(l),s||c.addControl(new n.FullscreenControl),t.mapRef.current.addEventListener("alignmentChanged",t.debouncedSizeMap),c.resize(),i(),t.setState({loaded:!0}),window.addEventListener("resize",t.debouncedSizeMap)})}},{key:"googlePoint2Mapbox",value:function(e){return[e.longitude?e.longitude:0,e.latitude?e.latitude:0]}}]),t}(y.Component);x.defaultProps={points:[],mapStyle:"default",zoom:13,onSetZoom:function(){},onMapLoaded:function(){},onMarkerClick:function(){},onError:function(){},markerColor:"red",apiKey:null,mapCenter:{}};t.a=x},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E49\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},function(e,t,n){"use strict";function r(){this.__rules__=[],this.__cache__=null}r.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},r.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){t.indexOf(e)<0&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))})})},r.prototype.at=function(e,t,n){var r=this.__find__(e),o=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=o.alt||[],this.__cache__=null},r.prototype.before=function(e,t,n,r){var o=this.__find__(e),i=r||{};if(-1===o)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null},r.prototype.after=function(e,t,n,r){var o=this.__find__(e),i=r||{};if(-1===o)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null},r.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},r.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach(function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)},this),this.__cache__=null,n},r.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},r.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach(function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)},this),this.__cache__=null,n},r.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},e.exports=r},function(e,t,n){"use strict";function r(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}r.prototype.attrIndex=function(e){var t,n,r;if(!this.attrs)return-1;for(n=0,r=(t=this.attrs).length;n<r;n++)if(t[n][0]===e)return n;return-1},r.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},r.prototype.attrSet=function(e,t){var n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},r.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},r.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},e.exports=r},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(84),o=n(188),i="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||o(e)&&r(e)==i}},function(e,t,n){var r=n(64).Symbol;e.exports=r},function(e,t,n){var r=n(185),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t,n){"use strict";var r=n(7),o=n.n(r),i=n(6),a=n.n(i),s=n(8),c=n.n(s),l=n(9),u=n.n(l),p=n(10),h=n.n(p),d=n(2),f=n.n(d),m=n(4),b=n.n(m),g=n(0),v=n(3),y=n(1),k=(n(223),function(e){function t(){var e,n;o()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=c()(this,(e=u()(t)).call.apply(e,[this].concat(i))),b()(f()(f()(n)),"state",{hasCopied:!1}),b()(f()(f()(n)),"onCopy",function(){return n.setState({hasCopied:!0})}),b()(f()(f()(n)),"onFinishCopy",function(){return n.setState({hasCopied:!1})}),b()(f()(f()(n)),"onFocus",function(e){return e.target.select()}),n}return h()(t,e),a()(t,[{key:"render",value:function(){var e=this.props.link,t=this.state.hasCopied;return e?Object(g.createElement)("div",{className:"jetpack-clipboard-input"},Object(g.createElement)(v.TextControl,{readOnly:!0,onFocus:this.onFocus,value:e}),Object(g.createElement)(v.ClipboardButton,{isDefault:!0,onCopy:this.onCopy,onFinishCopy:this.onFinishCopy,text:e},t?Object(y.a)("Copied!"):Object(y.c)("Copy","verb"))):null}}]),t}(g.Component));t.a=k},function(e,t,n){e.exports=n(101)()},function(e,t,n){e.exports=function(){"use strict";var e=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},t=f,n=s,r=function(e){return c(s(e))},o=c,i=d,a=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^()])+)\\))?|\\(((?:\\\\.|[^()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function s(e){for(var t,n=[],r=0,o=0,i="";null!=(t=a.exec(e));){var s=t[0],c=t[1],l=t.index;if(i+=e.slice(o,l),o=l+s.length,c)i+=c[1];else{i&&(n.push(i),i="");var p=t[2],h=t[3],d=t[4],f=t[5],m=t[6],b=t[7],g="+"===m||"*"===m,v="?"===m||"*"===m,y=p||"/",k=d||f||(b?".*":"[^"+y+"]+?");n.push({name:h||r++,prefix:p||"",delimiter:y,optional:v,repeat:g,pattern:u(k)})}}return o<e.length&&(i+=e.substr(o)),i&&n.push(i),n}function c(t){for(var n=new Array(t.length),r=0;r<t.length;r++)"object"==typeof t[r]&&(n[r]=new RegExp("^"+t[r].pattern+"$"));return function(r){for(var o="",i=r||{},a=0;a<t.length;a++){var s=t[a];if("string"!=typeof s){var c,l=i[s.name];if(null==l){if(s.optional)continue;throw new TypeError('Expected "'+s.name+'" to be defined')}if(e(l)){if(!s.repeat)throw new TypeError('Expected "'+s.name+'" to not repeat, but received "'+l+'"');if(0===l.length){if(s.optional)continue;throw new TypeError('Expected "'+s.name+'" to not be empty')}for(var u=0;u<l.length;u++){if(c=encodeURIComponent(l[u]),!n[a].test(c))throw new TypeError('Expected all "'+s.name+'" to match "'+s.pattern+'", but received "'+c+'"');o+=(0===u?s.prefix:s.delimiter)+c}}else{if(c=encodeURIComponent(l),!n[a].test(c))throw new TypeError('Expected "'+s.name+'" to match "'+s.pattern+'", but received "'+c+'"');o+=s.prefix+c}}else o+=s}return o}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function p(e,t){return e.keys=t,e}function h(e){return e.sensitive?"":"i"}function d(e,t){for(var n=(t=t||{}).strict,r=!1!==t.end,o="",i=e[e.length-1],a="string"==typeof i&&/\/$/.test(i),s=0;s<e.length;s++){var c=e[s];if("string"==typeof c)o+=l(c);else{var u=l(c.prefix),p=c.pattern;c.repeat&&(p+="(?:"+u+p+")*"),p=c.optional?u?"(?:"+u+"("+p+"))?":"("+p+")?":u+"("+p+")",o+=p}}return n||(o=(a?o.slice(0,-2):o)+"(?:\\/(?=$))?"),o+=r?"$":n&&a?"":"(?=\\/|$)",new RegExp("^"+o,h(t))}function f(t,n,r){return e(n=n||[])?r||(r={}):(r=n,n=[]),t instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,pattern:null});return p(e,t)}(t,n):e(t)?function(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(f(e[o],t,n).source);return p(new RegExp("(?:"+r.join("|")+")",h(n)),t)}(t,n,r):function(e,t,n){for(var r=s(e),o=d(r,n),i=0;i<r.length;i++)"string"!=typeof r[i]&&t.push(r[i]);return p(o,t)}(t,n,r)}t.parse=n,t.compile=r,t.tokensToFunction=o,t.tokensToRegExp=i;var m,b="undefined"!=typeof document,g="undefined"!=typeof window,v="undefined"!=typeof history,y="undefined"!=typeof process,k=b&&document.ontouchstart?"touchstart":"click",_=g&&!(!window.history.location&&!window.location);function j(){this.callbacks=[],this.exits=[],this.current="",this.len=0,this._decodeURLComponents=!0,this._base="",this._strict=!1,this._running=!1,this._hashbang=!1,this.clickHandler=this.clickHandler.bind(this),this._onpopstate=this._onpopstate.bind(this)}function O(e,t){if("function"==typeof e)return O.call(this,"*",e);if("function"==typeof t)for(var n=new w(e,null,this),r=1;r<arguments.length;++r)this.callbacks.push(n.middleware(arguments[r]));else"string"==typeof e?this["string"==typeof t?"redirect":"show"](e,t):this.start(e)}function C(e,t,n){var r=this.page=n||O,o=r._window,i=r._hashbang,a=r._getBase();"/"===e[0]&&0!==e.indexOf(a)&&(e=a+(i?"#!":"")+e);var s=e.indexOf("?");if(this.canonicalPath=e,this.path=e.replace(a,"")||"/",i&&(this.path=this.path.replace("#!","")||"/"),this.title=b&&o.document.title,this.state=t||{},this.state.path=e,this.querystring=~s?r._decodeURLEncodedURIComponent(e.slice(s+1)):"",this.pathname=r._decodeURLEncodedURIComponent(~s?e.slice(0,s):e),this.params={},this.hash="",!i){if(!~this.path.indexOf("#"))return;var c=this.path.split("#");this.path=this.pathname=c[0],this.hash=r._decodeURLEncodedURIComponent(c[1])||"",this.querystring=this.querystring.split("#")[0]}}function w(e,n,r){this.page=r||E;var o=n||{};o.strict=o.strict||r._strict,this.path="*"===e?"(.*)":e,this.method="GET",this.regexp=t(this.path,this.keys=[],o)}j.prototype.configure=function(e){var t=e||{};this._window=t.window||g&&window,this._decodeURLComponents=!1!==t.decodeURLComponents,this._popstate=!1!==t.popstate&&g,this._click=!1!==t.click&&b,this._hashbang=!!t.hashbang;var n=this._window;this._popstate?n.addEventListener("popstate",this._onpopstate,!1):g&&n.removeEventListener("popstate",this._onpopstate,!1),this._click?n.document.addEventListener(k,this.clickHandler,!1):b&&n.document.removeEventListener(k,this.clickHandler,!1),this._hashbang&&g&&!v?n.addEventListener("hashchange",this._onpopstate,!1):g&&n.removeEventListener("hashchange",this._onpopstate,!1)},j.prototype.base=function(e){if(0===arguments.length)return this._base;this._base=e},j.prototype._getBase=function(){var e=this._base;if(e)return e;var t=g&&this._window&&this._window.location;return g&&this._hashbang&&t&&"file:"===t.protocol&&(e=t.pathname),e},j.prototype.strict=function(e){if(0===arguments.length)return this._strict;this._strict=e},j.prototype.start=function(e){var t=e||{};if(this.configure(t),!1!==t.dispatch){var n;if(this._running=!0,_){var r=this._window,o=r.location;n=this._hashbang&&~o.hash.indexOf("#!")?o.hash.substr(2)+o.search:this._hashbang?o.search+o.hash:o.pathname+o.search+o.hash}this.replace(n,null,!0,t.dispatch)}},j.prototype.stop=function(){if(this._running){this.current="",this.len=0,this._running=!1;var e=this._window;this._click&&e.document.removeEventListener(k,this.clickHandler,!1),g&&e.removeEventListener("popstate",this._onpopstate,!1),g&&e.removeEventListener("hashchange",this._onpopstate,!1)}},j.prototype.show=function(e,t,n,r){var o=new C(e,t,this),i=this.prevContext;return this.prevContext=o,this.current=o.path,!1!==n&&this.dispatch(o,i),!1!==o.handled&&!1!==r&&o.pushState(),o},j.prototype.back=function(e,t){var n=this;if(this.len>0){var r=this._window;v&&r.history.back(),this.len--}else e?setTimeout(function(){n.show(e,t)}):setTimeout(function(){n.show(n._getBase(),t)})},j.prototype.redirect=function(e,t){var n=this;"string"==typeof e&&"string"==typeof t&&O.call(this,e,function(e){setTimeout(function(){n.replace(t)},0)}),"string"==typeof e&&void 0===t&&setTimeout(function(){n.replace(e)},0)},j.prototype.replace=function(e,t,n,r){var o=new C(e,t,this),i=this.prevContext;return this.prevContext=o,this.current=o.path,o.init=n,o.save(),!1!==r&&this.dispatch(o,i),o},j.prototype.dispatch=function(e,t){var n=0,r=0,o=this;function i(){var t=o.callbacks[n++];if(e.path===o.current)return t?void t(e,i):function(e){if(!e.handled){var t=this._window;(this._hashbang?_&&this._getBase()+t.location.hash.replace("#!",""):_&&t.location.pathname+t.location.search)!==e.canonicalPath&&(this.stop(),e.handled=!1,_&&(t.location.href=e.canonicalPath))}}.call(o,e);e.handled=!1}t?function e(){var n=o.exits[r++];if(!n)return i();n(t,e)}():i()},j.prototype.exit=function(e,t){if("function"==typeof e)return this.exit("*",e);for(var n=new w(e,null,this),r=1;r<arguments.length;++r)this.exits.push(n.middleware(arguments[r]))},j.prototype.clickHandler=function(e){if(1===this._which(e)&&!(e.metaKey||e.ctrlKey||e.shiftKey||e.defaultPrevented)){var t=e.target,n=e.path||(e.composedPath?e.composedPath():null);if(n)for(var r=0;r<n.length;r++)if(n[r].nodeName&&"A"===n[r].nodeName.toUpperCase()&&n[r].href){t=n[r];break}for(;t&&"A"!==t.nodeName.toUpperCase();)t=t.parentNode;if(t&&"A"===t.nodeName.toUpperCase()){var o="object"==typeof t.href&&"SVGAnimatedString"===t.href.constructor.name;if(!t.hasAttribute("download")&&"external"!==t.getAttribute("rel")){var i=t.getAttribute("href");if((this._hashbang||!this._samePath(t)||!t.hash&&"#"!==i)&&!(i&&i.indexOf("mailto:")>-1)&&(o?!t.target.baseVal:!t.target)&&(o||this.sameOrigin(t.href))){var a=o?t.href.baseVal:t.pathname+t.search+(t.hash||"");a="/"!==a[0]?"/"+a:a,y&&a.match(/^\/[a-zA-Z]:\//)&&(a=a.replace(/^\/[a-zA-Z]:\//,"/"));var s=a,c=this._getBase();0===a.indexOf(c)&&(a=a.substr(c.length)),this._hashbang&&(a=a.replace("#!","")),(!c||s!==a||_&&"file:"===this._window.location.protocol)&&(e.preventDefault(),this.show(s))}}}}},j.prototype._onpopstate=(m=!1,g?(b&&"complete"===document.readyState?m=!0:window.addEventListener("load",function(){setTimeout(function(){m=!0},0)}),function(e){if(m)if(e.state){var t=e.state.path;this.replace(t,e.state)}else if(_){var n=this._window.location;this.show(n.pathname+n.search+n.hash,void 0,void 0,!1)}}):function(){}),j.prototype._which=function(e){return null==(e=e||g&&this._window.event).which?e.button:e.which},j.prototype._toURL=function(e){var t=this._window;if("function"==typeof URL&&_)return new URL(e,t.location.toString());if(b){var n=t.document.createElement("a");return n.href=e,n}},j.prototype.sameOrigin=function(e){if(!e||!_)return!1;var t=this._toURL(e),n=this._window,r=n.location;return r.protocol===t.protocol&&r.hostname===t.hostname&&r.port===t.port},j.prototype._samePath=function(e){if(!_)return!1;var t=this._window,n=t.location;return e.pathname===n.pathname&&e.search===n.search},j.prototype._decodeURLEncodedURIComponent=function(e){return"string"!=typeof e?e:this._decodeURLComponents?decodeURIComponent(e.replace(/\+/g," ")):e},C.prototype.pushState=function(){var e=this.page,t=e._window,n=e._hashbang;e.len++,v&&t.history.pushState(this.state,this.title,n&&"/"!==this.path?"#!"+this.path:this.canonicalPath)},C.prototype.save=function(){var e=this.page;v&&"file:"!==e._window.location.protocol&&e._window.history.replaceState(this.state,this.title,e._hashbang&&"/"!==this.path?"#!"+this.path:this.canonicalPath)},w.prototype.middleware=function(e){var t=this;return function(n,r){if(t.match(n.path,n.params))return e(n,r);r()}},w.prototype.match=function(e,t){var n=this.keys,r=e.indexOf("?"),o=~r?e.slice(0,r):e,i=this.regexp.exec(decodeURIComponent(o));if(!i)return!1;for(var a=1,s=i.length;a<s;++a){var c=n[a-1],l=this.page._decodeURLEncodedURIComponent(i[a]);void 0===l&&hasOwnProperty.call(t,c.name)||(t[c.name]=l)}return!0};var E=function e(){var t=new j;function n(){return O.apply(t,arguments)}return n.callbacks=t.callbacks,n.exits=t.exits,n.base=t.base.bind(t),n.strict=t.strict.bind(t),n.start=t.start.bind(t),n.stop=t.stop.bind(t),n.show=t.show.bind(t),n.back=t.back.bind(t),n.redirect=t.redirect.bind(t),n.replace=t.replace.bind(t),n.dispatch=t.dispatch.bind(t),n.exit=t.exit.bind(t),n.configure=t.configure.bind(t),n.sameOrigin=t.sameOrigin.bind(t),n.clickHandler=t.clickHandler.bind(t),n.create=e,Object.defineProperty(n,"len",{get:function(){return t.len},set:function(e){t.len=e}}),Object.defineProperty(n,"current",{get:function(){return t.current},set:function(e){t.current=e}}),n.Context=C,n.Route=w,n}(),x=E,S=E;return x.default=S,x}()},function(e,t,n){(function(e){var r;/*! https://mths.be/punycode v1.3.2 by @mathias */!function(o){t&&t.nodeType,e&&e.nodeType;var i="object"==typeof window&&window;i.global!==i&&i.window!==i&&i.self;var a,s=2147483647,c=36,l=1,u=26,p=38,h=700,d=72,f=128,m="-",b=/^xn--/,g=/[^\x20-\x7E]/,v=/[\x2E\u3002\uFF0E\uFF61]/g,y={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},k=c-l,_=Math.floor,j=String.fromCharCode;function O(e){throw RangeError(y[e])}function C(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function w(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+C((e=e.replace(v,".")).split("."),t).join(".")}function E(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function x(e){return C(e,function(e){var t="";return e>65535&&(t+=j((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=j(e)}).join("")}function S(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function A(e,t,n){var r=0;for(e=n?_(e/h):e>>1,e+=_(e/t);e>k*u>>1;r+=c)e=_(e/k);return _(r+(k+1)*e/(e+p))}function D(e){var t,n,r,o,i,a,p,h,b,g,v,y=[],k=e.length,j=0,C=f,w=d;for((n=e.lastIndexOf(m))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&O("not-basic"),y.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<k;){for(i=j,a=1,p=c;o>=k&&O("invalid-input"),((h=(v=e.charCodeAt(o++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:c)>=c||h>_((s-j)/a))&&O("overflow"),j+=h*a,!(h<(b=p<=w?l:p>=w+u?u:p-w));p+=c)a>_(s/(g=c-b))&&O("overflow"),a*=g;w=A(j-i,t=y.length+1,0==i),_(j/t)>s-C&&O("overflow"),C+=_(j/t),j%=t,y.splice(j++,0,C)}return x(y)}function M(e){var t,n,r,o,i,a,p,h,b,g,v,y,k,C,w,x=[];for(y=(e=E(e)).length,t=f,n=0,i=d,a=0;a<y;++a)(v=e[a])<128&&x.push(j(v));for(r=o=x.length,o&&x.push(m);r<y;){for(p=s,a=0;a<y;++a)(v=e[a])>=t&&v<p&&(p=v);for(p-t>_((s-n)/(k=r+1))&&O("overflow"),n+=(p-t)*k,t=p,a=0;a<y;++a)if((v=e[a])<t&&++n>s&&O("overflow"),v==t){for(h=n,b=c;!(h<(g=b<=i?l:b>=i+u?u:b-i));b+=c)w=h-g,C=c-g,x.push(j(S(g+w%C,0))),h=_(w/C);x.push(j(S(h,0))),i=A(n,k,r==o),n=0,++r}++n,++t}return x.join("")}a={version:"1.3.2",ucs2:{decode:E,encode:x},decode:D,encode:M,toASCII:function(e){return w(e,function(e){return g.test(e)?"xn--"+M(e):e})},toUnicode:function(e){return w(e,function(e){return b.test(e)?D(e.slice(4).toLowerCase()):e})}},void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}()}).call(this,n(103)(e))},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,function(e,t,n){"use strict";e.exports=n(128)},function(e,t,n){"use strict";e.exports.encode=n(129),e.exports.decode=n(130),e.exports.format=n(131),e.exports.parse=n(132)},function(e,t){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(e,t){e.exports=/[\0-\x1F\x7F-\x9F]/},function(e,t){e.exports=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/},function(e,t,n){"use strict";var r="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",o="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",i=new RegExp("^(?:"+r+"|"+o+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),a=new RegExp("^(?:"+r+"|"+o+")");e.exports.HTML_TAG_RE=i,e.exports.HTML_OPEN_CLOSE_TAG_RE=a},function(e,t,n){"use strict";e.exports.tokenize=function(e,t){var n,r,o,i,a=e.pos,s=e.src.charCodeAt(a);if(t)return!1;if(126!==s)return!1;if(o=(r=e.scanDelims(e.pos,!0)).length,i=String.fromCharCode(s),o<2)return!1;for(o%2&&(e.push("text","",0).content=i,o--),n=0;n<o;n+=2)e.push("text","",0).content=i+i,e.delimiters.push({marker:s,jump:n,token:e.tokens.length-1,level:e.level,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.postProcess=function(e){var t,n,r,o,i,a=[],s=e.delimiters,c=e.delimiters.length;for(t=0;t<c;t++)126===(r=s[t]).marker&&-1!==r.end&&(o=s[r.end],(i=e.tokens[r.token]).type="s_open",i.tag="s",i.nesting=1,i.markup="~~",i.content="",(i=e.tokens[o.token]).type="s_close",i.tag="s",i.nesting=-1,i.markup="~~",i.content="","text"===e.tokens[o.token-1].type&&"~"===e.tokens[o.token-1].content&&a.push(o.token-1));for(;a.length;){for(n=(t=a.pop())+1;n<e.tokens.length&&"s_close"===e.tokens[n].type;)n++;t!==--n&&(i=e.tokens[n],e.tokens[n]=e.tokens[t],e.tokens[t]=i)}}},function(e,t,n){"use strict";e.exports.tokenize=function(e,t){var n,r,o=e.pos,i=e.src.charCodeAt(o);if(t)return!1;if(95!==i&&42!==i)return!1;for(r=e.scanDelims(e.pos,42===i),n=0;n<r.length;n++)e.push("text","",0).content=String.fromCharCode(i),e.delimiters.push({marker:i,length:r.length,jump:n,token:e.tokens.length-1,level:e.level,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.postProcess=function(e){var t,n,r,o,i,a,s=e.delimiters;for(t=e.delimiters.length-1;t>=0;t--)95!==(n=s[t]).marker&&42!==n.marker||-1!==n.end&&(r=s[n.end],a=t>0&&s[t-1].end===n.end+1&&s[t-1].token===n.token-1&&s[n.end+1].token===r.token+1&&s[t-1].marker===n.marker,i=String.fromCharCode(n.marker),(o=e.tokens[n.token]).type=a?"strong_open":"em_open",o.tag=a?"strong":"em",o.nesting=1,o.markup=a?i+i:i,o.content="",(o=e.tokens[r.token]).type=a?"strong_close":"em_close",o.tag=a?"strong":"em",o.nesting=-1,o.markup=a?i+i:i,o.content="",a&&(e.tokens[s[t-1].token].content="",e.tokens[s[n.end+1].token].content="",t--))}},function(e,t,n){var r=n(63),o=n(186),i=n(187),a="[object Null]",s="[object Undefined]",c=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:c&&c in Object(e)?o(e):i(e)}},function(e,t,n){var r=n(196),o=n(201);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(88);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(63),o=n(219),i=n(61),a=n(62),s=1/0,c=r?r.prototype:void 0,l=c?c.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-s?"-0":n}},function(e){e.exports={production:["contact-form","gif","map","markdown","publicize","related-posts","shortlinks","simple-payments","subscriptions","tiled-gallery"],beta:["mailchimp","vr","contact-info"]}},function(e,t,n){"use strict";e.exports=n(127)},function(e,t,n){"use strict";e.exports=function(e){var t,n={};return function e(t,n){var r;if(Array.isArray(n))for(r=0;r<n.length;r++)e(t,n[r]);else for(r in n)t[r]=(t[r]||[]).concat(n[r])}(n,e),(t=function(e){return function(t){return function(r){var o,i,a=n[r.type],s=t(r);if(a)for(o=0;o<a.length;o++)(i=a[o](r,e))&&e.dispatch(i);return s}}}).effects=n,t}},function(e,t,n){var r=n(182);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e,t,n){e.exports=n.p+"images/paypal-button-1e53882e702881f8dfd958c141e65383.png"},function(e,t,n){e.exports=n.p+"images/paypal-button-2x-fe4d34770a47484f401cecbb892f8456.png"},function(e,t,n){var r=n(88),o=n(229),i=n(231),a=n(236),s=n(87),c=/\s+$/;e.exports=function(e,t,n){if((e=s(e))&&(n||void 0===t))return e.replace(c,"");if(!e||!(t=r(t)))return e;var l=a(e),u=i(l,a(t))+1;return o(l,0,u).join("")}},function(e,t,n){var r=n(30),o=n(242),i=n(243),a=n(244)("photon");e.exports=function(e,t){var n=r.parse(e,!0,!0),c="https:"===n.protocol;delete n.protocol,delete n.auth,delete n.port;var l={slashes:!0,protocol:"https:",query:{}};if(m=n.host,/^i[0-2]\.wp\.com$/.test(m))l.pathname=n.pathname,l.hostname=n.hostname;else{if(n.search)return null;var u=r.format(n);l.pathname=0===u.indexOf("//")?u.substring(1):u,l.hostname=(p=l.pathname,h=o(p),d=i(h),f="i"+Math.floor(3*d()),a('determined server "%s" to use with "%s"',f,p),f+".wp.com"),c&&(l.query.ssl=1)}var p,h,d,f;var m;if(t)for(var b in t)"host"!==b&&"hostname"!==b?"secure"!==b||t[b]?l.query[s[b]||b]=t[b]:l.protocol="http:":l.hostname=t[b];var g=r.format(l);return a("generated Photon URL: %s",g),g};var s={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"}},function(e,t){e.exports=wp.tokenList},function(e,t,n){"use strict";n.r(t);var r=n(15),o=n.n(r),i=n(0),a=n(18),s=n(35);Object(a.setCategories)([].concat(o()(Object(a.getCategories)().filter(function(e){return"jetpack"!==e.slug})),[{slug:"jetpack",title:"Jetpack",icon:Object(i.createElement)(s.a,null)}]))},function(e,t,n){"use strict";
13
+ /** @license React v16.6.1
14
+ * react.production.min.js
15
+ *
16
+ * Copyright (c) Facebook, Inc. and its affiliates.
17
+ *
18
+ * This source code is licensed under the MIT license found in the
19
+ * LICENSE file in the root directory of this source tree.
20
+ */var r=n(100),o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,s=o?Symbol.for("react.fragment"):60107,c=o?Symbol.for("react.strict_mode"):60108,l=o?Symbol.for("react.profiler"):60114,u=o?Symbol.for("react.provider"):60109,p=o?Symbol.for("react.context"):60110,h=o?Symbol.for("react.concurrent_mode"):60111,d=o?Symbol.for("react.forward_ref"):60112,f=o?Symbol.for("react.suspense"):60113,m=o?Symbol.for("react.memo"):60115,b=o?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);!function(e,t,n,r,o,i,a,s){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],l=0;(e=Error(t.replace(/%s/g,function(){return c[l++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k={};function _(e,t,n){this.props=e,this.context=t,this.refs=k,this.updater=n||y}function j(){}function O(e,t,n){this.props=e,this.context=t,this.refs=k,this.updater=n||y}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&v("85"),this.updater.enqueueSetState(this,e,t,"setState")},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},j.prototype=_.prototype;var C=O.prototype=new j;C.constructor=O,r(C,_.prototype),C.isPureReactComponent=!0;var w={current:null,currentDispatcher:null},E=Object.prototype.hasOwnProperty,x={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var r=void 0,o={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)E.call(t,r)&&!x.hasOwnProperty(r)&&(o[r]=t[r]);var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in c=e.defaultProps)void 0===o[r]&&(o[r]=c[r]);return{$$typeof:i,type:e,key:a,ref:s,props:o,_owner:w.current}}function A(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var D=/\/+/g,M=[];function T(e,t,n,r){if(M.length){var o=M.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function F(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>M.length&&M.push(e)}function z(e,t,n){return null==e?0:function e(t,n,r,o){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var c=!1;if(null===t)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(t.$$typeof){case i:case a:c=!0}}if(c)return r(o,t,""===n?"."+P(t,0):n),1;if(c=0,n=""===n?".":n+":",Array.isArray(t))for(var l=0;l<t.length;l++){var u=n+P(s=t[l],l);c+=e(s,u,r,o)}else if(u=null===t||"object"!=typeof t?null:"function"==typeof(u=g&&t[g]||t["@@iterator"])?u:null,"function"==typeof u)for(t=u.call(t),l=0;!(s=t.next()).done;)c+=e(s=s.value,u=n+P(s,l++),r,o);else"object"===s&&v("31","[object Object]"==(r=""+t)?"object with keys {"+Object.keys(t).join(", ")+"}":r,"");return c}(e,"",t,n)}function P(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 N(e,t){e.func.call(e.context,t,e.count++)}function L(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?R(e,r,n,function(e){return e}):null!=e&&(A(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(D,"$&/")+"/")+n)),r.push(e))}function R(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(D,"$&/")+"/"),z(e,L,t=T(t,i,r,o)),F(t)}var I={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return R(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;z(e,N,t=T(null,null,t,n)),F(t)},count:function(e){return z(e,function(){return null},null)},toArray:function(e){var t=[];return R(e,t,null,function(e){return e}),t},only:function(e){return A(e)||v("143"),e}},createRef:function(){return{current:null}},Component:_,PureComponent:O,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:p,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:d,render:e}},lazy:function(e){return{$$typeof:b,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:m,type:e,compare:void 0===t?null:t}},Fragment:s,StrictMode:c,Suspense:f,createElement:S,cloneElement:function(e,t,n){null==e&&v("267",e);var o=void 0,a=r({},e.props),s=e.key,c=e.ref,l=e._owner;if(null!=t){void 0!==t.ref&&(c=t.ref,l=w.current),void 0!==t.key&&(s=""+t.key);var u=void 0;for(o in e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)E.call(t,o)&&!x.hasOwnProperty(o)&&(a[o]=void 0===t[o]&&void 0!==u?u[o]:t[o])}if(1===(o=arguments.length-2))a.children=n;else if(1<o){u=Array(o);for(var p=0;p<o;p++)u[p]=arguments[p+2];a.children=u}return{$$typeof:i,type:e.type,key:s,ref:c,props:a,_owner:l}},createFactory:function(e){var t=S.bind(null,e);return t.type=e,t},isValidElement:A,version:"16.6.3",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:w,assign:r}};I.unstable_ConcurrentMode=h,I.unstable_Profiler=l;var q={default:I},B=q&&I||q;e.exports=B.default||B},function(e,t,n){"use strict";
21
+ /*
22
+ object-assign
23
+ (c) Sindre Sorhus
24
+ @license MIT
25
+ */var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;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,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var l in n=Object(arguments[c]))o.call(n,l)&&(s[l]=n[l]);if(r){a=r(n);for(var u=0;u<a.length;u++)i.call(n,a[u])&&(s[a[u]]=n[a[u]])}}return s}},function(e,t,n){"use strict";var r=n(102);function o(){}e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}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,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=o,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){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){"use strict";t.decode=t.parse=n(106),t.encode=t.stringify=n(107)},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,o){t=t||"&",n=n||"=";var i={};if("string"!=typeof e||0===e.length)return i;var a=/\+/g;e=e.split(t);var s=1e3;o&&"number"==typeof o.maxKeys&&(s=o.maxKeys);var c=e.length;s>0&&c>s&&(c=s);for(var l=0;l<c;++l){var u,p,h,d,f=e[l].replace(a,"%20"),m=f.indexOf(n);m>=0?(u=f.substr(0,m),p=f.substr(m+1)):(u=f,p=""),h=decodeURIComponent(u),d=decodeURIComponent(p),r(i,h)?Array.isArray(i[h])?i[h].push(d):i[h]=[i[h],d]:i[h]=d}return i}},function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,o){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map(function(o){var i=encodeURIComponent(r(o))+n;return Array.isArray(e[o])?e[o].map(function(e){return i+encodeURIComponent(r(e))}).join(t):i+encodeURIComponent(r(e[o]))}).join(t):o?encodeURIComponent(r(o))+n+encodeURIComponent(r(e)):""}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,function(e,t,n){"use strict";var r=n(13),o=n(135),i=n(139),a=n(140),s=n(148),c=n(162),l=n(175),u=n(77),p=n(68),h={default:n(177),zero:n(178),commonmark:n(179)},d=/^(vbscript|javascript|file|data):/,f=/^data:image\/(gif|png|jpeg|webp);/;function m(e){var t=e.trim().toLowerCase();return!d.test(t)||!!f.test(t)}var b=["http:","https:","mailto:"];function g(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||b.indexOf(t.protocol)>=0))try{t.hostname=p.toASCII(t.hostname)}catch(e){}return u.encode(u.format(t))}function v(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||b.indexOf(t.protocol)>=0))try{t.hostname=p.toUnicode(t.hostname)}catch(e){}return u.decode(u.format(t))}function y(e,t){if(!(this instanceof y))return new y(e,t);t||r.isString(e)||(t=e||{},e="default"),this.inline=new c,this.block=new s,this.core=new a,this.renderer=new i,this.linkify=new l,this.validateLink=m,this.normalizeLink=g,this.normalizeLinkText=v,this.utils=r,this.helpers=r.assign({},o),this.options={},this.configure(e),t&&this.set(t)}y.prototype.set=function(e){return r.assign(this.options,e),this},y.prototype.configure=function(e){var t,n=this;if(r.isString(e)&&!(e=h[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach(function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)}),this},y.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},y.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},y.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},y.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},y.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},y.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},y.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.exports=y},function(e){e.exports={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}},function(e,t,n){"use strict";var r={};function o(e,t,n){var i,a,s,c,l,u="";for("string"!=typeof t&&(n=t,t=o.defaultChars),void 0===n&&(n=!0),l=function(e){var t,n,o=r[e];if(o)return o;for(o=r[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?o.push(n):o.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)o[e.charCodeAt(t)]=e[t];return o}(t),i=0,a=e.length;i<a;i++)if(s=e.charCodeAt(i),n&&37===s&&i+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(i+1,i+3)))u+=e.slice(i,i+3),i+=2;else if(s<128)u+=l[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&i+1<a&&(c=e.charCodeAt(i+1))>=56320&&c<=57343){u+=encodeURIComponent(e[i]+e[i+1]),i++;continue}u+="%EF%BF%BD"}else u+=encodeURIComponent(e[i]);return u}o.defaultChars=";/?:@&=+$,-_.!~*'()#",o.componentChars="-_.!~*'()",e.exports=o},function(e,t,n){"use strict";var r={};function o(e,t){var n;return"string"!=typeof t&&(t=o.defaultChars),n=function(e){var t,n,o=r[e];if(o)return o;for(o=r[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),o.push(n);for(t=0;t<e.length;t++)o[n=e.charCodeAt(t)]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return o}(t),e.replace(/(%[a-f0-9]{2})+/gi,function(e){var t,r,o,i,a,s,c,l="";for(t=0,r=e.length;t<r;t+=3)(o=parseInt(e.slice(t+1,t+3),16))<128?l+=n[o]:192==(224&o)&&t+3<r&&128==(192&(i=parseInt(e.slice(t+4,t+6),16)))?(l+=(c=o<<6&1984|63&i)<128?"��":String.fromCharCode(c),t+=3):224==(240&o)&&t+6<r&&(i=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),128==(192&i)&&128==(192&a))?(l+=(c=o<<12&61440|i<<6&4032|63&a)<2048||c>=55296&&c<=57343?"���":String.fromCharCode(c),t+=6):240==(248&o)&&t+9<r&&(i=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),s=parseInt(e.slice(t+10,t+12),16),128==(192&i)&&128==(192&a)&&128==(192&s))?((c=o<<18&1835008|i<<12&258048|a<<6&4032|63&s)<65536||c>1114111?l+="����":(c-=65536,l+=String.fromCharCode(55296+(c>>10),56320+(1023&c))),t+=9):l+="�";return l})}o.defaultChars=";/?:@&=+$,#",o.componentChars="",e.exports=o},function(e,t,n){"use strict";e.exports=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""}},function(e,t,n){"use strict";function r(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var o=/^([a-z0-9.+-]+:)/i,i=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,s=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(s),l=["%","/","?",";","#"].concat(c),u=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,d={javascript:!0,"javascript:":!0},f={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};r.prototype.parse=function(e,t){var n,r,i,s,c,m=e;if(m=m.trim(),!t&&1===e.split("#").length){var b=a.exec(m);if(b)return this.pathname=b[1],b[2]&&(this.search=b[2]),this}var g=o.exec(m);if(g&&(i=(g=g[0]).toLowerCase(),this.protocol=g,m=m.substr(g.length)),(t||g||m.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(c="//"===m.substr(0,2))||g&&d[g]||(m=m.substr(2),this.slashes=!0)),!d[g]&&(c||g&&!f[g])){var v,y,k=-1;for(n=0;n<u.length;n++)-1!==(s=m.indexOf(u[n]))&&(-1===k||s<k)&&(k=s);for(-1!==(y=-1===k?m.lastIndexOf("@"):m.lastIndexOf("@",k))&&(v=m.slice(0,y),m=m.slice(y+1),this.auth=v),k=-1,n=0;n<l.length;n++)-1!==(s=m.indexOf(l[n]))&&(-1===k||s<k)&&(k=s);-1===k&&(k=m.length),":"===m[k-1]&&k--;var _=m.slice(0,k);m=m.slice(k),this.parseHost(_),this.hostname=this.hostname||"";var j="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!j){var O=this.hostname.split(/\./);for(n=0,r=O.length;n<r;n++){var C=O[n];if(C&&!C.match(p)){for(var w="",E=0,x=C.length;E<x;E++)C.charCodeAt(E)>127?w+="x":w+=C[E];if(!w.match(p)){var S=O.slice(0,n),A=O.slice(n+1),D=C.match(h);D&&(S.push(D[1]),A.unshift(D[2])),A.length&&(m=A.join(".")+m),this.hostname=S.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),j&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var M=m.indexOf("#");-1!==M&&(this.hash=m.substr(M),m=m.slice(0,M));var T=m.indexOf("?");return-1!==T&&(this.search=m.substr(T),m=m.slice(0,T)),m&&(this.pathname=m),f[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},r.prototype.parseHost=function(e){var t=i.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},e.exports=function(e,t){if(e&&e instanceof r)return e;var n=new r;return n.parse(e,t),n}},function(e,t,n){"use strict";t.Any=n(78),t.Cc=n(79),t.Cf=n(134),t.P=n(58),t.Z=n(80)},function(e,t){e.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804\uDCBD|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/},function(e,t,n){"use strict";t.parseLinkLabel=n(136),t.parseLinkDestination=n(137),t.parseLinkTitle=n(138)},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,o,i,a,s=-1,c=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<c;){if(93===(i=e.src.charCodeAt(e.pos))&&0===--r){o=!0;break}if(a=e.pos,e.md.inline.skipToken(e),91===i)if(a===e.pos-1)r++;else if(n)return e.pos=l,-1}return o&&(s=e.pos),e.pos=l,s}},function(e,t,n){"use strict";var r=n(13).isSpace,o=n(13).unescapeAll;e.exports=function(e,t,n){var i,a,s=t,c={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t<n;){if(10===(i=e.charCodeAt(t))||r(i))return c;if(62===i)return c.pos=t+1,c.str=o(e.slice(s+1,t)),c.ok=!0,c;92===i&&t+1<n?t+=2:t++}return c}for(a=0;t<n&&32!==(i=e.charCodeAt(t))&&!(i<32||127===i);)if(92===i&&t+1<n)t+=2;else{if(40===i&&a++,41===i){if(0===a)break;a--}t++}return s===t?c:0!==a?c:(c.str=o(e.slice(s,t)),c.lines=0,c.pos=t,c.ok=!0,c)}},function(e,t,n){"use strict";var r=n(13).unescapeAll;e.exports=function(e,t,n){var o,i,a=0,s=t,c={ok:!1,pos:0,lines:0,str:""};if(t>=n)return c;if(34!==(i=e.charCodeAt(t))&&39!==i&&40!==i)return c;for(t++,40===i&&(i=41);t<n;){if((o=e.charCodeAt(t))===i)return c.pos=t+1,c.lines=a,c.str=r(e.slice(s+1,t)),c.ok=!0,c;10===o?a++:92===o&&t+1<n&&(t++,10===e.charCodeAt(t)&&a++),t++}return c}},function(e,t,n){"use strict";var r=n(13).assign,o=n(13).unescapeAll,i=n(13).escapeHtml,a={};function s(){this.rules=r({},a)}a.code_inline=function(e,t,n,r,o){var a=e[t];return"<code"+o.renderAttrs(a)+">"+i(e[t].content)+"</code>"},a.code_block=function(e,t,n,r,o){var a=e[t];return"<pre"+o.renderAttrs(a)+"><code>"+i(e[t].content)+"</code></pre>\n"},a.fence=function(e,t,n,r,a){var s,c,l,u,p=e[t],h=p.info?o(p.info).trim():"",d="";return h&&(d=h.split(/\s+/g)[0]),0===(s=n.highlight&&n.highlight(p.content,d)||i(p.content)).indexOf("<pre")?s+"\n":h?(c=p.attrIndex("class"),l=p.attrs?p.attrs.slice():[],c<0?l.push(["class",n.langPrefix+d]):l[c][1]+=" "+n.langPrefix+d,u={attrs:l},"<pre><code"+a.renderAttrs(u)+">"+s+"</code></pre>\n"):"<pre><code"+a.renderAttrs(p)+">"+s+"</code></pre>\n"},a.image=function(e,t,n,r,o){var i=e[t];return i.attrs[i.attrIndex("alt")][1]=o.renderInlineAsText(i.children,n,r),o.renderToken(e,t,n)},a.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},a.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},a.text=function(e,t){return i(e[t].content)},a.html_block=function(e,t){return e[t].content},a.html_inline=function(e,t){return e[t].content},s.prototype.renderAttrs=function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+i(e.attrs[t][0])+'="'+i(e.attrs[t][1])+'"';return r},s.prototype.renderToken=function(e,t,n){var r,o="",i=!1,a=e[t];return a.hidden?"":(a.block&&-1!==a.nesting&&t&&e[t-1].hidden&&(o+="\n"),o+=(-1===a.nesting?"</":"<")+a.tag,o+=this.renderAttrs(a),0===a.nesting&&n.xhtmlOut&&(o+=" /"),a.block&&(i=!0,1===a.nesting&&t+1<e.length&&("inline"===(r=e[t+1]).type||r.hidden?i=!1:-1===r.nesting&&r.tag===a.tag&&(i=!1))),o+=i?">\n":">")},s.prototype.renderInline=function(e,t,n){for(var r,o="",i=this.rules,a=0,s=e.length;a<s;a++)void 0!==i[r=e[a].type]?o+=i[r](e,a,t,n,this):o+=this.renderToken(e,a,t);return o},s.prototype.renderInlineAsText=function(e,t,n){for(var r="",o=0,i=e.length;o<i;o++)"text"===e[o].type?r+=e[o].content:"image"===e[o].type&&(r+=this.renderInlineAsText(e[o].children,t,n));return r},s.prototype.render=function(e,t,n){var r,o,i,a="",s=this.rules;for(r=0,o=e.length;r<o;r++)"inline"===(i=e[r].type)?a+=this.renderInline(e[r].children,t,n):void 0!==s[i]?a+=s[e[r].type](e,r,t,n,this):a+=this.renderToken(e,r,t,n);return a},e.exports=s},function(e,t,n){"use strict";var r=n(59),o=[["normalize",n(141)],["block",n(142)],["inline",n(143)],["linkify",n(144)],["replacements",n(145)],["smartquotes",n(146)]];function i(){this.ruler=new r;for(var e=0;e<o.length;e++)this.ruler.push(o[e][0],o[e][1])}i.prototype.process=function(e){var t,n,r;for(t=0,n=(r=this.ruler.getRules("")).length;t<n;t++)r[t](e)},i.prototype.State=n(147),e.exports=i},function(e,t,n){"use strict";var r=/\r[\n\u0085]?|[\u2424\u2028\u0085]/g,o=/\u0000/g;e.exports=function(e){var t;t=(t=e.src.replace(r,"\n")).replace(o,"�"),e.src=t}},function(e,t,n){"use strict";e.exports=function(e){var t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}},function(e,t,n){"use strict";e.exports=function(e){var t,n,r,o=e.tokens;for(n=0,r=o.length;n<r;n++)"inline"===(t=o[n]).type&&e.md.inline.parse(t.content,e.md,e.env,t.children)}},function(e,t,n){"use strict";var r=n(13).arrayReplaceAt;function o(e){return/^<\/a\s*>/i.test(e)}e.exports=function(e){var t,n,i,a,s,c,l,u,p,h,d,f,m,b,g,v,y,k,_=e.tokens;if(e.md.options.linkify)for(n=0,i=_.length;n<i;n++)if("inline"===_[n].type&&e.md.linkify.pretest(_[n].content))for(m=0,t=(a=_[n].children).length-1;t>=0;t--)if("link_close"!==(c=a[t]).type){if("html_inline"===c.type&&(k=c.content,/^<a[>\s]/i.test(k)&&m>0&&m--,o(c.content)&&m++),!(m>0)&&"text"===c.type&&e.md.linkify.test(c.content)){for(p=c.content,y=e.md.linkify.match(p),l=[],f=c.level,d=0,u=0;u<y.length;u++)b=y[u].url,g=e.md.normalizeLink(b),e.md.validateLink(g)&&(v=y[u].text,v=y[u].schema?"mailto:"!==y[u].schema||/^mailto:/i.test(v)?e.md.normalizeLinkText(v):e.md.normalizeLinkText("mailto:"+v).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+v).replace(/^http:\/\//,""),(h=y[u].index)>d&&((s=new e.Token("text","",0)).content=p.slice(d,h),s.level=f,l.push(s)),(s=new e.Token("link_open","a",1)).attrs=[["href",g]],s.level=f++,s.markup="linkify",s.info="auto",l.push(s),(s=new e.Token("text","",0)).content=v,s.level=f,l.push(s),(s=new e.Token("link_close","a",-1)).level=--f,s.markup="linkify",s.info="auto",l.push(s),d=y[u].lastIndex);d<p.length&&((s=new e.Token("text","",0)).content=p.slice(d),s.level=f,l.push(s)),_[n].children=a=r(a,t,l)}}else for(t--;a[t].level!==c.level&&"link_open"!==a[t].type;)t--}},function(e,t,n){"use strict";var r=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,o=/\((c|tm|r|p)\)/i,i=/\((c|tm|r|p)\)/gi,a={c:"©",r:"®",p:"§",tm:"™"};function s(e,t){return a[t.toLowerCase()]}function c(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||(n.content=n.content.replace(i,s)),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}function l(e){var t,n,o=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||o||r.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/gm,"$1—$2").replace(/(^|\s)--(\s|$)/gm,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/gm,"$1–$2")),"link_open"===n.type&&"auto"===n.info&&o--,"link_close"===n.type&&"auto"===n.info&&o++}e.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(o.test(e.tokens[t].content)&&c(e.tokens[t].children),r.test(e.tokens[t].content)&&l(e.tokens[t].children))}},function(e,t,n){"use strict";var r=n(13).isWhiteSpace,o=n(13).isPunctChar,i=n(13).isMdAsciiPunct,a=/['"]/,s=/['"]/g,c="’";function l(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function u(e,t){var n,a,u,p,h,d,f,m,b,g,v,y,k,_,j,O,C,w,E,x,S;for(E=[],n=0;n<e.length;n++){for(a=e[n],f=e[n].level,C=E.length-1;C>=0&&!(E[C].level<=f);C--);if(E.length=C+1,"text"===a.type){h=0,d=(u=a.content).length;e:for(;h<d&&(s.lastIndex=h,p=s.exec(u));){if(j=O=!0,h=p.index+1,w="'"===p[0],b=32,p.index-1>=0)b=u.charCodeAt(p.index-1);else for(C=n-1;C>=0&&("softbreak"!==e[C].type&&"hardbreak"!==e[C].type);C--)if("text"===e[C].type){b=e[C].content.charCodeAt(e[C].content.length-1);break}if(g=32,h<d)g=u.charCodeAt(h);else for(C=n+1;C<e.length&&("softbreak"!==e[C].type&&"hardbreak"!==e[C].type);C++)if("text"===e[C].type){g=e[C].content.charCodeAt(0);break}if(v=i(b)||o(String.fromCharCode(b)),y=i(g)||o(String.fromCharCode(g)),k=r(b),(_=r(g))?j=!1:y&&(k||v||(j=!1)),k?O=!1:v&&(_||y||(O=!1)),34===g&&'"'===p[0]&&b>=48&&b<=57&&(O=j=!1),j&&O&&(j=!1,O=y),j||O){if(O)for(C=E.length-1;C>=0&&(m=E[C],!(E[C].level<f));C--)if(m.single===w&&E[C].level===f){m=E[C],w?(x=t.md.options.quotes[2],S=t.md.options.quotes[3]):(x=t.md.options.quotes[0],S=t.md.options.quotes[1]),a.content=l(a.content,p.index,S),e[m.token].content=l(e[m.token].content,m.pos,x),h+=S.length-1,m.token===n&&(h+=x.length-1),d=(u=a.content).length,E.length=C;continue e}j?E.push({token:n,pos:p.index,single:w,level:f}):O&&w&&(a.content=l(a.content,p.index,c))}else w&&(a.content=l(a.content,p.index,c))}}}}e.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&a.test(e.tokens[t].content)&&u(e.tokens[t].children,e)}},function(e,t,n){"use strict";var r=n(60);function o(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}o.prototype.Token=r,e.exports=o},function(e,t,n){"use strict";var r=n(59),o=[["table",n(149),["paragraph","reference"]],["code",n(150)],["fence",n(151),["paragraph","reference","blockquote","list"]],["blockquote",n(152),["paragraph","reference","blockquote","list"]],["hr",n(153),["paragraph","reference","blockquote","list"]],["list",n(154),["paragraph","reference","blockquote"]],["reference",n(155)],["heading",n(156),["paragraph","reference","blockquote"]],["lheading",n(157)],["html_block",n(158),["paragraph","reference","blockquote"]],["paragraph",n(160)]];function i(){this.ruler=new r;for(var e=0;e<o.length;e++)this.ruler.push(o[e][0],o[e][1],{alt:(o[e][2]||[]).slice()})}i.prototype.tokenize=function(e,t,n){for(var r,o=this.ruler.getRules(""),i=o.length,a=t,s=!1,c=e.md.options.maxNesting;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n))&&!(e.sCount[a]<e.blkIndent);){if(e.level>=c){e.line=n;break}for(r=0;r<i&&!o[r](e,a,n,!1);r++);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),(a=e.line)<n&&e.isEmpty(a)&&(s=!0,a++,e.line=a)}},i.prototype.parse=function(e,t,n,r){var o;e&&(o=new this.State(e,t,n,r),this.tokenize(o,o.line,o.lineMax))},i.prototype.State=n(161),e.exports=i},function(e,t,n){"use strict";var r=n(13).isSpace;function o(e,t){var n=e.bMarks[t]+e.blkIndent,r=e.eMarks[t];return e.src.substr(n,r-n)}function i(e){var t,n=[],r=0,o=e.length,i=0,a=0,s=!1,c=0;for(t=e.charCodeAt(r);r<o;)96===t?s?(s=!1,c=r):i%2==0&&(s=!0,c=r):124!==t||i%2!=0||s||(n.push(e.substring(a,r)),a=r+1),92===t?i++:i=0,++r===o&&s&&(s=!1,r=c+1),t=e.charCodeAt(r);return n.push(e.substring(a)),n}e.exports=function(e,t,n,a){var s,c,l,u,p,h,d,f,m,b,g,v;if(t+2>n)return!1;if(p=t+1,e.sCount[p]<e.blkIndent)return!1;if(e.sCount[p]-e.blkIndent>=4)return!1;if((l=e.bMarks[p]+e.tShift[p])>=e.eMarks[p])return!1;if(124!==(s=e.src.charCodeAt(l++))&&45!==s&&58!==s)return!1;for(;l<e.eMarks[p];){if(124!==(s=e.src.charCodeAt(l))&&45!==s&&58!==s&&!r(s))return!1;l++}for(h=(c=o(e,t+1)).split("|"),m=[],u=0;u<h.length;u++){if(!(b=h[u].trim())){if(0===u||u===h.length-1)continue;return!1}if(!/^:?-+:?$/.test(b))return!1;58===b.charCodeAt(b.length-1)?m.push(58===b.charCodeAt(0)?"center":"right"):58===b.charCodeAt(0)?m.push("left"):m.push("")}if(-1===(c=o(e,t).trim()).indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;if((d=(h=i(c.replace(/^\||\|$/g,""))).length)>m.length)return!1;if(a)return!0;for((f=e.push("table_open","table",1)).map=g=[t,0],(f=e.push("thead_open","thead",1)).map=[t,t+1],(f=e.push("tr_open","tr",1)).map=[t,t+1],u=0;u<h.length;u++)(f=e.push("th_open","th",1)).map=[t,t+1],m[u]&&(f.attrs=[["style","text-align:"+m[u]]]),(f=e.push("inline","",0)).content=h[u].trim(),f.map=[t,t+1],f.children=[],f=e.push("th_close","th",-1);for(f=e.push("tr_close","tr",-1),f=e.push("thead_close","thead",-1),(f=e.push("tbody_open","tbody",1)).map=v=[t+2,0],p=t+2;p<n&&!(e.sCount[p]<e.blkIndent)&&-1!==(c=o(e,p).trim()).indexOf("|")&&!(e.sCount[p]-e.blkIndent>=4);p++){for(h=i(c.replace(/^\||\|$/g,"")),f=e.push("tr_open","tr",1),u=0;u<d;u++)f=e.push("td_open","td",1),m[u]&&(f.attrs=[["style","text-align:"+m[u]]]),(f=e.push("inline","",0)).content=h[u]?h[u].trim():"",f.children=[],f=e.push("td_close","td",-1);f=e.push("tr_close","tr",-1)}return f=e.push("tbody_close","tbody",-1),f=e.push("table_close","table",-1),g[1]=v[1]=p,e.line=p,!0}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,o,i;if(e.sCount[t]-e.blkIndent<4)return!1;for(o=r=t+1;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=4))break;o=++r}return e.line=o,(i=e.push("code_block","code",0)).content=e.getLines(t,o,4+e.blkIndent,!0),i.map=[t,e.line],!0}},function(e,t,n){"use strict";e.exports=function(e,t,n,r){var o,i,a,s,c,l,u,p=!1,h=e.bMarks[t]+e.tShift[t],d=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(h+3>d)return!1;if(126!==(o=e.src.charCodeAt(h))&&96!==o)return!1;if(c=h,(i=(h=e.skipChars(h,o))-c)<3)return!1;if(u=e.src.slice(c,h),(a=e.src.slice(h,d)).indexOf(String.fromCharCode(o))>=0)return!1;if(r)return!0;for(s=t;!(++s>=n)&&!((h=c=e.bMarks[s]+e.tShift[s])<(d=e.eMarks[s])&&e.sCount[s]<e.blkIndent);)if(e.src.charCodeAt(h)===o&&!(e.sCount[s]-e.blkIndent>=4||(h=e.skipChars(h,o))-c<i||(h=e.skipSpaces(h))<d)){p=!0;break}return i=e.sCount[t],e.line=s+(p?1:0),(l=e.push("fence","code",0)).info=a,l.content=e.getLines(t+1,s,i,!0),l.markup=u,l.map=[t,e.line],!0}},function(e,t,n){"use strict";var r=n(13).isSpace;e.exports=function(e,t,n,o){var i,a,s,c,l,u,p,h,d,f,m,b,g,v,y,k,_,j,O,C,w=e.lineMax,E=e.bMarks[t]+e.tShift[t],x=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(E++))return!1;if(o)return!0;for(c=d=e.sCount[t]+E-(e.bMarks[t]+e.tShift[t]),32===e.src.charCodeAt(E)?(E++,c++,d++,i=!1,k=!0):9===e.src.charCodeAt(E)?(k=!0,(e.bsCount[t]+d)%4==3?(E++,c++,d++,i=!1):i=!0):k=!1,f=[e.bMarks[t]],e.bMarks[t]=E;E<x&&(a=e.src.charCodeAt(E),r(a));)9===a?d+=4-(d+e.bsCount[t]+(i?1:0))%4:d++,E++;for(m=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(k?1:0),u=E>=x,v=[e.sCount[t]],e.sCount[t]=d-c,y=[e.tShift[t]],e.tShift[t]=E-e.bMarks[t],j=e.md.block.ruler.getRules("blockquote"),g=e.parentType,e.parentType="blockquote",C=!1,h=t+1;h<n&&(e.sCount[h]<e.blkIndent&&(C=!0),!((E=e.bMarks[h]+e.tShift[h])>=(x=e.eMarks[h])));h++)if(62!==e.src.charCodeAt(E++)||C){if(u)break;for(_=!1,s=0,l=j.length;s<l;s++)if(j[s](e,h,n,!0)){_=!0;break}if(_){e.lineMax=h,0!==e.blkIndent&&(f.push(e.bMarks[h]),m.push(e.bsCount[h]),y.push(e.tShift[h]),v.push(e.sCount[h]),e.sCount[h]-=e.blkIndent);break}f.push(e.bMarks[h]),m.push(e.bsCount[h]),y.push(e.tShift[h]),v.push(e.sCount[h]),e.sCount[h]=-1}else{for(c=d=e.sCount[h]+E-(e.bMarks[h]+e.tShift[h]),32===e.src.charCodeAt(E)?(E++,c++,d++,i=!1,k=!0):9===e.src.charCodeAt(E)?(k=!0,(e.bsCount[h]+d)%4==3?(E++,c++,d++,i=!1):i=!0):k=!1,f.push(e.bMarks[h]),e.bMarks[h]=E;E<x&&(a=e.src.charCodeAt(E),r(a));)9===a?d+=4-(d+e.bsCount[h]+(i?1:0))%4:d++,E++;u=E>=x,m.push(e.bsCount[h]),e.bsCount[h]=e.sCount[h]+1+(k?1:0),v.push(e.sCount[h]),e.sCount[h]=d-c,y.push(e.tShift[h]),e.tShift[h]=E-e.bMarks[h]}for(b=e.blkIndent,e.blkIndent=0,(O=e.push("blockquote_open","blockquote",1)).markup=">",O.map=p=[t,0],e.md.block.tokenize(e,t,h),(O=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=w,e.parentType=g,p[1]=e.line,s=0;s<y.length;s++)e.bMarks[s+t]=f[s],e.tShift[s+t]=y[s],e.sCount[s+t]=v[s],e.bsCount[s+t]=m[s];return e.blkIndent=b,!0}},function(e,t,n){"use strict";var r=n(13).isSpace;e.exports=function(e,t,n,o){var i,a,s,c,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(i=e.src.charCodeAt(l++))&&45!==i&&95!==i)return!1;for(a=1;l<u;){if((s=e.src.charCodeAt(l++))!==i&&!r(s))return!1;s===i&&a++}return!(a<3)&&(!!o||(e.line=t+1,(c=e.push("hr","hr",0)).map=[t,e.line],c.markup=Array(a+1).join(String.fromCharCode(i)),!0))}},function(e,t,n){"use strict";var r=n(13).isSpace;function o(e,t){var n,o,i,a;return o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],42!==(n=e.src.charCodeAt(o++))&&45!==n&&43!==n?-1:o<i&&(a=e.src.charCodeAt(o),!r(a))?-1:o}function i(e,t){var n,o=e.bMarks[t]+e.tShift[t],i=o,a=e.eMarks[t];if(i+1>=a)return-1;if((n=e.src.charCodeAt(i++))<48||n>57)return-1;for(;;){if(i>=a)return-1;if(!((n=e.src.charCodeAt(i++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(i-o>=10)return-1}return i<a&&(n=e.src.charCodeAt(i),!r(n))?-1:i}e.exports=function(e,t,n,r){var a,s,c,l,u,p,h,d,f,m,b,g,v,y,k,_,j,O,C,w,E,x,S,A,D,M,T,F,z=!1,P=!0;if(e.sCount[t]-e.blkIndent>=4)return!1;if(r&&"paragraph"===e.parentType&&e.tShift[t]>=e.blkIndent&&(z=!0),(S=i(e,t))>=0){if(h=!0,D=e.bMarks[t]+e.tShift[t],v=Number(e.src.substr(D,S-D-1)),z&&1!==v)return!1}else{if(!((S=o(e,t))>=0))return!1;h=!1}if(z&&e.skipSpaces(S)>=e.eMarks[t])return!1;if(g=e.src.charCodeAt(S-1),r)return!0;for(b=e.tokens.length,h?(F=e.push("ordered_list_open","ol",1),1!==v&&(F.attrs=[["start",v]])):F=e.push("bullet_list_open","ul",1),F.map=m=[t,0],F.markup=String.fromCharCode(g),k=t,A=!1,T=e.md.block.ruler.getRules("list"),C=e.parentType,e.parentType="list";k<n;){for(x=S,y=e.eMarks[k],p=_=e.sCount[k]+S-(e.bMarks[t]+e.tShift[t]);x<y;){if(9===(a=e.src.charCodeAt(x)))_+=4-(_+e.bsCount[k])%4;else{if(32!==a)break;_++}x++}if((u=(s=x)>=y?1:_-p)>4&&(u=1),l=p+u,(F=e.push("list_item_open","li",1)).markup=String.fromCharCode(g),F.map=d=[t,0],j=e.blkIndent,E=e.tight,w=e.tShift[t],O=e.sCount[t],e.blkIndent=l,e.tight=!0,e.tShift[t]=s-e.bMarks[t],e.sCount[t]=_,s>=y&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!A||(P=!1),A=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=j,e.tShift[t]=w,e.sCount[t]=O,e.tight=E,(F=e.push("list_item_close","li",-1)).markup=String.fromCharCode(g),k=t=e.line,d[1]=k,s=e.bMarks[t],k>=n)break;if(e.sCount[k]<e.blkIndent)break;for(M=!1,c=0,f=T.length;c<f;c++)if(T[c](e,k,n,!0)){M=!0;break}if(M)break;if(h){if((S=i(e,k))<0)break}else if((S=o(e,k))<0)break;if(g!==e.src.charCodeAt(S-1))break}return(F=h?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(g),m[1]=k,e.line=k,e.parentType=C,P&&function(e,t){var n,r,o=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===o&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}(e,b),!0}},function(e,t,n){"use strict";var r=n(13).normalizeReference,o=n(13).isSpace;e.exports=function(e,t,n,i){var a,s,c,l,u,p,h,d,f,m,b,g,v,y,k,_,j=0,O=e.bMarks[t]+e.tShift[t],C=e.eMarks[t],w=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(O))return!1;for(;++O<C;)if(93===e.src.charCodeAt(O)&&92!==e.src.charCodeAt(O-1)){if(O+1===C)return!1;if(58!==e.src.charCodeAt(O+1))return!1;break}for(l=e.lineMax,k=e.md.block.ruler.getRules("reference"),m=e.parentType,e.parentType="reference";w<l&&!e.isEmpty(w);w++)if(!(e.sCount[w]-e.blkIndent>3||e.sCount[w]<0)){for(y=!1,p=0,h=k.length;p<h;p++)if(k[p](e,w,l,!0)){y=!0;break}if(y)break}for(C=(v=e.getLines(t,w,e.blkIndent,!1).trim()).length,O=1;O<C;O++){if(91===(a=v.charCodeAt(O)))return!1;if(93===a){f=O;break}10===a?j++:92===a&&++O<C&&10===v.charCodeAt(O)&&j++}if(f<0||58!==v.charCodeAt(f+1))return!1;for(O=f+2;O<C;O++)if(10===(a=v.charCodeAt(O)))j++;else if(!o(a))break;if(!(b=e.md.helpers.parseLinkDestination(v,O,C)).ok)return!1;if(u=e.md.normalizeLink(b.str),!e.md.validateLink(u))return!1;for(s=O=b.pos,c=j+=b.lines,g=O;O<C;O++)if(10===(a=v.charCodeAt(O)))j++;else if(!o(a))break;for(b=e.md.helpers.parseLinkTitle(v,O,C),O<C&&g!==O&&b.ok?(_=b.str,O=b.pos,j+=b.lines):(_="",O=s,j=c);O<C&&(a=v.charCodeAt(O),o(a));)O++;if(O<C&&10!==v.charCodeAt(O)&&_)for(_="",O=s,j=c;O<C&&(a=v.charCodeAt(O),o(a));)O++;return!(O<C&&10!==v.charCodeAt(O))&&(!!(d=r(v.slice(1,f)))&&(!!i||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[d]&&(e.env.references[d]={title:_,href:u}),e.parentType=m,e.line=t+j+1,!0)))}},function(e,t,n){"use strict";var r=n(13).isSpace;e.exports=function(e,t,n,o){var i,a,s,c,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(35!==(i=e.src.charCodeAt(l))||l>=u)return!1;for(a=1,i=e.src.charCodeAt(++l);35===i&&l<u&&a<=6;)a++,i=e.src.charCodeAt(++l);return!(a>6||l<u&&!r(i))&&(!!o||(u=e.skipSpacesBack(u,l),(s=e.skipCharsBack(u,35,l))>l&&r(e.src.charCodeAt(s-1))&&(u=s),e.line=t+1,(c=e.push("heading_open","h"+String(a),1)).markup="########".slice(0,a),c.map=[t,e.line],(c=e.push("inline","",0)).content=e.src.slice(l,u).trim(),c.map=[t,e.line],c.children=[],(c=e.push("heading_close","h"+String(a),-1)).markup="########".slice(0,a),!0))}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,o,i,a,s,c,l,u,p,h,d=t+1,f=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(h=e.parentType,e.parentType="paragraph";d<n&&!e.isEmpty(d);d++)if(!(e.sCount[d]-e.blkIndent>3)){if(e.sCount[d]>=e.blkIndent&&(c=e.bMarks[d]+e.tShift[d])<(l=e.eMarks[d])&&(45===(p=e.src.charCodeAt(c))||61===p)&&(c=e.skipChars(c,p),(c=e.skipSpaces(c))>=l)){u=61===p?1:2;break}if(!(e.sCount[d]<0)){for(o=!1,i=0,a=f.length;i<a;i++)if(f[i](e,d,n,!0)){o=!0;break}if(o)break}}return!!u&&(r=e.getLines(t,d,e.blkIndent,!1).trim(),e.line=d+1,(s=e.push("heading_open","h"+String(u),1)).markup=String.fromCharCode(p),s.map=[t,e.line],(s=e.push("inline","",0)).content=r,s.map=[t,e.line-1],s.children=[],(s=e.push("heading_close","h"+String(u),-1)).markup=String.fromCharCode(p),e.parentType=h,!0)}},function(e,t,n){"use strict";var r=n(159),o=n(81).HTML_OPEN_CLOSE_TAG_RE,i=[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+r.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(o.source+"\\s*$"),/^$/,!1]];e.exports=function(e,t,n,r){var o,a,s,c,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(l))return!1;for(c=e.src.slice(l,u),o=0;o<i.length&&!i[o][0].test(c);o++);if(o===i.length)return!1;if(r)return i[o][2];if(a=t+1,!i[o][1].test(c))for(;a<n&&!(e.sCount[a]<e.blkIndent);a++)if(l=e.bMarks[a]+e.tShift[a],u=e.eMarks[a],c=e.src.slice(l,u),i[o][1].test(c)){0!==c.length&&a++;break}return e.line=a,(s=e.push("html_block","",0)).map=[t,a],s.content=e.getLines(t,a,e.blkIndent,!0),!0}},function(e,t,n){"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},function(e,t,n){"use strict";e.exports=function(e,t){var n,r,o,i,a,s,c=t+1,l=e.md.block.ruler.getRules("paragraph"),u=e.lineMax;for(s=e.parentType,e.parentType="paragraph";c<u&&!e.isEmpty(c);c++)if(!(e.sCount[c]-e.blkIndent>3||e.sCount[c]<0)){for(r=!1,o=0,i=l.length;o<i;o++)if(l[o](e,c,u,!0)){r=!0;break}if(r)break}return n=e.getLines(t,c,e.blkIndent,!1).trim(),e.line=c,(a=e.push("paragraph_open","p",1)).map=[t,e.line],(a=e.push("inline","",0)).content=n,a.map=[t,e.line],a.children=[],a=e.push("paragraph_close","p",-1),e.parentType=s,!0}},function(e,t,n){"use strict";var r=n(60),o=n(13).isSpace;function i(e,t,n,r){var i,a,s,c,l,u,p,h;for(this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.parentType="root",this.level=0,this.result="",h=!1,s=c=u=p=0,l=(a=this.src).length;c<l;c++){if(i=a.charCodeAt(c),!h){if(o(i)){u++,9===i?p+=4-p%4:p++;continue}h=!0}10!==i&&c!==l-1||(10!==i&&c++,this.bMarks.push(s),this.eMarks.push(c),this.tShift.push(u),this.sCount.push(p),this.bsCount.push(0),h=!1,u=0,p=0,s=c+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}i.prototype.push=function(e,t,n){var o=new r(e,t,n);return o.block=!0,n<0&&this.level--,o.level=this.level,n>0&&this.level++,this.tokens.push(o),o},i.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},i.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},i.prototype.skipSpaces=function(e){for(var t,n=this.src.length;e<n&&(t=this.src.charCodeAt(e),o(t));e++);return e},i.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!o(this.src.charCodeAt(--e)))return e+1;return e},i.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},i.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},i.prototype.getLines=function(e,t,n,r){var i,a,s,c,l,u,p,h=e;if(e>=t)return"";for(u=new Array(t-e),i=0;h<t;h++,i++){for(a=0,p=c=this.bMarks[h],l=h+1<t||r?this.eMarks[h]+1:this.eMarks[h];c<l&&a<n;){if(s=this.src.charCodeAt(c),o(s))9===s?a+=4-(a+this.bsCount[h])%4:a++;else{if(!(c-p<this.tShift[h]))break;a++}c++}u[i]=a>n?new Array(a-n+1).join(" ")+this.src.slice(c,l):this.src.slice(c,l)}return u.join("")},i.prototype.Token=r,e.exports=i},function(e,t,n){"use strict";var r=n(59),o=[["text",n(163)],["newline",n(164)],["escape",n(165)],["backticks",n(166)],["strikethrough",n(82).tokenize],["emphasis",n(83).tokenize],["link",n(167)],["image",n(168)],["autolink",n(169)],["html_inline",n(170)],["entity",n(171)]],i=[["balance_pairs",n(172)],["strikethrough",n(82).postProcess],["emphasis",n(83).postProcess],["text_collapse",n(173)]];function a(){var e;for(this.ruler=new r,e=0;e<o.length;e++)this.ruler.push(o[e][0],o[e][1]);for(this.ruler2=new r,e=0;e<i.length;e++)this.ruler2.push(i[e][0],i[e][1])}a.prototype.skipToken=function(e){var t,n,r=e.pos,o=this.ruler.getRules(""),i=o.length,a=e.md.options.maxNesting,s=e.cache;if(void 0===s[r]){if(e.level<a)for(n=0;n<i&&(e.level++,t=o[n](e,!0),e.level--,!t);n++);else e.pos=e.posMax;t||e.pos++,s[r]=e.pos}else e.pos=s[r]},a.prototype.tokenize=function(e){for(var t,n,r=this.ruler.getRules(""),o=r.length,i=e.posMax,a=e.md.options.maxNesting;e.pos<i;){if(e.level<a)for(n=0;n<o&&!(t=r[n](e,!1));n++);if(t){if(e.pos>=i)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},a.prototype.parse=function(e,t,n,r){var o,i,a,s=new this.State(e,t,n,r);for(this.tokenize(s),a=(i=this.ruler2.getRules("")).length,o=0;o<a;o++)i[o](s)},a.prototype.State=n(174),e.exports=a},function(e,t,n){"use strict";function r(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}e.exports=function(e,t){for(var n=e.pos;n<e.posMax&&!r(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}},function(e,t,n){"use strict";var r=n(13).isSpace;e.exports=function(e,t){var n,o,i=e.pos;if(10!==e.src.charCodeAt(i))return!1;for(n=e.pending.length-1,o=e.posMax,t||(n>=0&&32===e.pending.charCodeAt(n)?n>=1&&32===e.pending.charCodeAt(n-1)?(e.pending=e.pending.replace(/ +$/,""),e.push("hardbreak","br",0)):(e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0)):e.push("softbreak","br",0)),i++;i<o&&r(e.src.charCodeAt(i));)i++;return e.pos=i,!0}},function(e,t,n){"use strict";for(var r=n(13).isSpace,o=[],i=0;i<256;i++)o.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){o[e.charCodeAt(0)]=1}),e.exports=function(e,t){var n,i=e.pos,a=e.posMax;if(92!==e.src.charCodeAt(i))return!1;if(++i<a){if((n=e.src.charCodeAt(i))<256&&0!==o[n])return t||(e.pending+=e.src[i]),e.pos+=2,!0;if(10===n){for(t||e.push("hardbreak","br",0),i++;i<a&&(n=e.src.charCodeAt(i),r(n));)i++;return e.pos=i,!0}}return t||(e.pending+="\\"),e.pos++,!0}},function(e,t,n){"use strict";e.exports=function(e,t){var n,r,o,i,a,s,c=e.pos;if(96!==e.src.charCodeAt(c))return!1;for(n=c,c++,r=e.posMax;c<r&&96===e.src.charCodeAt(c);)c++;for(o=e.src.slice(n,c),i=a=c;-1!==(i=e.src.indexOf("`",a));){for(a=i+1;a<r&&96===e.src.charCodeAt(a);)a++;if(a-i===o.length)return t||((s=e.push("code_inline","code",0)).markup=o,s.content=e.src.slice(c,i).replace(/[ \n]+/g," ").trim()),e.pos=a,!0}return t||(e.pending+=o),e.pos+=o.length,!0}},function(e,t,n){"use strict";var r=n(13).normalizeReference,o=n(13).isSpace;e.exports=function(e,t){var n,i,a,s,c,l,u,p,h,d="",f=e.pos,m=e.posMax,b=e.pos,g=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(c=e.pos+1,(s=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((l=s+1)<m&&40===e.src.charCodeAt(l)){for(g=!1,l++;l<m&&(i=e.src.charCodeAt(l),o(i)||10===i);l++);if(l>=m)return!1;for(b=l,(u=e.md.helpers.parseLinkDestination(e.src,l,e.posMax)).ok&&(d=e.md.normalizeLink(u.str),e.md.validateLink(d)?l=u.pos:d=""),b=l;l<m&&(i=e.src.charCodeAt(l),o(i)||10===i);l++);if(u=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<m&&b!==l&&u.ok)for(h=u.str,l=u.pos;l<m&&(i=e.src.charCodeAt(l),o(i)||10===i);l++);else h="";(l>=m||41!==e.src.charCodeAt(l))&&(g=!0),l++}if(g){if(void 0===e.env.references)return!1;if(l<m&&91===e.src.charCodeAt(l)?(b=l+1,(l=e.md.helpers.parseLinkLabel(e,l))>=0?a=e.src.slice(b,l++):l=s+1):l=s+1,a||(a=e.src.slice(c,s)),!(p=e.env.references[r(a)]))return e.pos=f,!1;d=p.href,h=p.title}return t||(e.pos=c,e.posMax=s,e.push("link_open","a",1).attrs=n=[["href",d]],h&&n.push(["title",h]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=l,e.posMax=m,!0}},function(e,t,n){"use strict";var r=n(13).normalizeReference,o=n(13).isSpace;e.exports=function(e,t){var n,i,a,s,c,l,u,p,h,d,f,m,b,g="",v=e.pos,y=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(l=e.pos+2,(c=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((u=c+1)<y&&40===e.src.charCodeAt(u)){for(u++;u<y&&(i=e.src.charCodeAt(u),o(i)||10===i);u++);if(u>=y)return!1;for(b=u,(h=e.md.helpers.parseLinkDestination(e.src,u,e.posMax)).ok&&(g=e.md.normalizeLink(h.str),e.md.validateLink(g)?u=h.pos:g=""),b=u;u<y&&(i=e.src.charCodeAt(u),o(i)||10===i);u++);if(h=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<y&&b!==u&&h.ok)for(d=h.str,u=h.pos;u<y&&(i=e.src.charCodeAt(u),o(i)||10===i);u++);else d="";if(u>=y||41!==e.src.charCodeAt(u))return e.pos=v,!1;u++}else{if(void 0===e.env.references)return!1;if(u<y&&91===e.src.charCodeAt(u)?(b=u+1,(u=e.md.helpers.parseLinkLabel(e,u))>=0?s=e.src.slice(b,u++):u=c+1):u=c+1,s||(s=e.src.slice(l,c)),!(p=e.env.references[r(s)]))return e.pos=v,!1;g=p.href,d=p.title}return t||(a=e.src.slice(l,c),e.md.inline.parse(a,e.md,e.env,m=[]),(f=e.push("image","img",0)).attrs=n=[["src",g],["alt",""]],f.children=m,f.content=a,d&&n.push(["title",d])),e.pos=u,e.posMax=y,!0}},function(e,t,n){"use strict";var r=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,o=/^<([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)>/;e.exports=function(e,t){var n,i,a,s,c,l,u=e.pos;return 60===e.src.charCodeAt(u)&&(!((n=e.src.slice(u)).indexOf(">")<0)&&(o.test(n)?(s=(i=n.match(o))[0].slice(1,-1),c=e.md.normalizeLink(s),!!e.md.validateLink(c)&&(t||((l=e.push("link_open","a",1)).attrs=[["href",c]],l.markup="autolink",l.info="auto",(l=e.push("text","",0)).content=e.md.normalizeLinkText(s),(l=e.push("link_close","a",-1)).markup="autolink",l.info="auto"),e.pos+=i[0].length,!0)):!!r.test(n)&&(s=(a=n.match(r))[0].slice(1,-1),c=e.md.normalizeLink("mailto:"+s),!!e.md.validateLink(c)&&(t||((l=e.push("link_open","a",1)).attrs=[["href",c]],l.markup="autolink",l.info="auto",(l=e.push("text","",0)).content=e.md.normalizeLinkText(s),(l=e.push("link_close","a",-1)).markup="autolink",l.info="auto"),e.pos+=a[0].length,!0))))}},function(e,t,n){"use strict";var r=n(81).HTML_TAG_RE;e.exports=function(e,t){var n,o,i,a=e.pos;return!!e.md.options.html&&(i=e.posMax,!(60!==e.src.charCodeAt(a)||a+2>=i)&&(!(33!==(n=e.src.charCodeAt(a+1))&&63!==n&&47!==n&&!function(e){var t=32|e;return t>=97&&t<=122}(n))&&(!!(o=e.src.slice(a).match(r))&&(t||(e.push("html_inline","",0).content=e.src.slice(a,a+o[0].length)),e.pos+=o[0].length,!0))))}},function(e,t,n){"use strict";var r=n(76),o=n(13).has,i=n(13).isValidEntityCode,a=n(13).fromCodePoint,s=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,c=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(e,t){var n,l,u=e.pos,p=e.posMax;if(38!==e.src.charCodeAt(u))return!1;if(u+1<p)if(35===e.src.charCodeAt(u+1)){if(l=e.src.slice(u).match(s))return t||(n="x"===l[1][0].toLowerCase()?parseInt(l[1].slice(1),16):parseInt(l[1],10),e.pending+=i(n)?a(n):a(65533)),e.pos+=l[0].length,!0}else if((l=e.src.slice(u).match(c))&&o(r,l[1]))return t||(e.pending+=r[l[1]]),e.pos+=l[0].length,!0;return t||(e.pending+="&"),e.pos++,!0}},function(e,t,n){"use strict";e.exports=function(e){var t,n,r,o,i=e.delimiters,a=e.delimiters.length;for(t=0;t<a;t++)if((r=i[t]).close)for(n=t-r.jump-1;n>=0;){if((o=i[n]).open&&o.marker===r.marker&&o.end<0&&o.level===r.level)if(!((o.close||r.open)&&void 0!==o.length&&void 0!==r.length&&(o.length+r.length)%3==0)){r.jump=t-n,r.open=!1,o.end=t,o.jump=0;break}n-=o.jump+1}}},function(e,t,n){"use strict";e.exports=function(e){var t,n,r=0,o=e.tokens,i=e.tokens.length;for(t=n=0;t<i;t++)r+=o[t].nesting,o[t].level=r,"text"===o[t].type&&t+1<i&&"text"===o[t+1].type?o[t+1].content=o[t].content+o[t+1].content:(t!==n&&(o[n]=o[t]),n++);t!==n&&(o.length=n)}},function(e,t,n){"use strict";var r=n(60),o=n(13).isWhiteSpace,i=n(13).isPunctChar,a=n(13).isMdAsciiPunct;function s(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[]}s.prototype.pushPending=function(){var e=new r("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},s.prototype.push=function(e,t,n){this.pending&&this.pushPending();var o=new r(e,t,n);return n<0&&this.level--,o.level=this.level,n>0&&this.level++,this.pendingLevel=this.level,this.tokens.push(o),o},s.prototype.scanDelims=function(e,t){var n,r,s,c,l,u,p,h,d,f=e,m=!0,b=!0,g=this.posMax,v=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;f<g&&this.src.charCodeAt(f)===v;)f++;return s=f-e,r=f<g?this.src.charCodeAt(f):32,p=a(n)||i(String.fromCharCode(n)),d=a(r)||i(String.fromCharCode(r)),u=o(n),(h=o(r))?m=!1:d&&(u||p||(m=!1)),u?b=!1:p&&(h||d||(b=!1)),t?(c=m,l=b):(c=m&&(!b||p),l=b&&(!m||d)),{can_open:c,can_close:l,length:s}},s.prototype.Token=r,e.exports=s},function(e,t,n){"use strict";function r(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function o(e){return Object.prototype.toString.call(e)}function i(e){return"[object Function]"===o(e)}function a(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var s={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};var c={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]?0:t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},l="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",u="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function p(e){var t=e.re=n(176)(e.__opts__),r=e.__tlds__.slice();function s(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push(l),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(s(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(s(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(s(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(s(t.tpl_host_fuzzy_test),"i");var c=[];function u(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){var n=e.__schemas__[t];if(null!==n){var r,a={validate:null,link:null};if(e.__compiled__[t]=a,"[object Object]"===o(n))return!function(e){return"[object RegExp]"===o(e)}(n.validate)?i(n.validate)?a.validate=n.validate:u(t,n):a.validate=(r=n.validate,function(e,t){var n=e.slice(t);return r.test(n)?n.match(r)[0].length:0}),void(i(n.normalize)?a.normalize=n.normalize:n.normalize?u(t,n):a.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===o(e)}(n)?u(t,n):c.push(t)}}),c.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var p=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(a).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+p+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+p+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function h(e,t){var n=e.__index__,r=e.__last_index__,o=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=o,this.text=o,this.url=o}function d(e,t){var n=new h(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function f(e,t){if(!(this instanceof f))return new f(e,t);var n;t||(n=e,Object.keys(n||{}).reduce(function(e,t){return e||s.hasOwnProperty(t)},!1)&&(t=e,e={})),this.__opts__=r({},s,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},c,e),this.__compiled__={},this.__tlds__=u,this.__tlds_replaced__=!1,this.re={},p(this)}f.prototype.add=function(e,t){return this.__schemas__[e]=t,p(this),this},f.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},f.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,o,i,a,s,c;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(o=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||c<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(i=n.index+n[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(i=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=a)),this.__index__>=0},f.prototype.pretest=function(e){return this.re.pretest.test(e)},f.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},f.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(d(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(d(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},f.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),p(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,p(this),this)},f.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},f.prototype.onCompile=function(){},e.exports=f},function(e,t,n){"use strict";e.exports=function(e){var t={};t.src_Any=n(78).source,t.src_Cc=n(79).source,t.src_Z=n(80).source,t.src_P=n(58).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,3}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]+',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|[><|]|\\(|"+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},function(e,t,n){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}},function(e,t,n){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}},function(e,t,n){"use strict";e.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}},function(e,t,n){},,function(e,t,n){var r=n(183),o=n(220);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},function(e,t,n){var r=n(61),o=n(184),i=n(189),a=n(87);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},function(e,t,n){var r=n(61),o=n(62),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},function(e,t){var n="object"==typeof window&&window&&window.Object===Object&&window;e.exports=n},function(e,t,n){var r=n(63),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(190),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)}),t});e.exports=a},function(e,t,n){var r=n(191),o=500;e.exports=function(e){var t=r(e,function(e){return n.size===o&&n.clear(),e}),n=t.cache;return t}},function(e,t,n){var r=n(192),o="Expected a function";function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(o);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},function(e,t,n){var r=n(193),o=n(214),i=n(216),a=n(217),s=n(218);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(194),o=n(206),i=n(213);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(e,t,n){var r=n(195),o=n(202),i=n(203),a=n(204),s=n(205);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(40);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t,n){var r=n(197),o=n(198),i=n(86),a=n(200),s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,p=l.hasOwnProperty,h=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?h:s).test(a(e))}},function(e,t,n){var r=n(84),o=n(86),i="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",c="[object Proxy]";e.exports=function(e){if(!o(e))return!1;var t=r(e);return t==a||t==s||t==i||t==c}},function(e,t,n){var r,o=n(199),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},function(e,t,n){var r=n(64)["__core-js_shared__"];e.exports=r},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(40),o="__lodash_hash_undefined__",i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return n===o?void 0:n}return i.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(40),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},function(e,t,n){var r=n(40),o="__lodash_hash_undefined__";e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?o:t,this}},function(e,t,n){var r=n(207),o=n(208),i=n(210),a=n(211),s=n(212);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(41),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(41);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(41);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(41);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(85)(n(64),"Map");e.exports=r},function(e,t,n){var r=n(42);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(42);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(42);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(42);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},function(e,t,n){var r=n(62),o=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}},function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,function(e,t,n){var r=n(230);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},function(e,t){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},function(e,t,n){var r=n(232);e.exports=function(e,t){for(var n=e.length;n--&&r(t,e[n],0)>-1;);return n}},function(e,t,n){var r=n(233),o=n(234),i=n(235);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},function(e,t){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},function(e,t,n){var r=n(237),o=n(238),i=n(239);e.exports=function(e){return o(e)?i(e):r(e)}},function(e,t){e.exports=function(e){return e.split("")}},function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+r+"|"+o+")"+"?",l="[\\ufe0e\\ufe0f]?"+c+("(?:\\u200d(?:"+[i,a,s].join("|")+")[\\ufe0e\\ufe0f]?"+c+")*"),u="(?:"+[i+r+"?",r,a,s,n].join("|")+")",p=RegExp(o+"(?="+o+")|"+u+l,"g");e.exports=function(e){return e.match(p)||[]}},function(e,t,n){},,function(e,t){!function(){"use strict";var t=[],n=3988292384;function r(e){var t,r,o,i,a=-1;for(t=0,o=e.length;t<o;t+=1){for(i=255&(a^e[t]),r=0;r<8;r+=1)1==(1&i)?i=i>>>1^n:i>>>=1;a=a>>>8^i}return-1^a}function o(e,n){var r,i,a;if(void 0!==o.crc&&n&&e||(o.crc=-1,e)){for(r=o.crc,i=0,a=e.length;i<a;i+=1)r=r>>>8^t[255&(r^e[i])];return o.crc=r,-1^r}}!function(){var e,r,o;for(r=0;r<256;r+=1){for(e=r,o=0;o<8;o+=1)1&e?e=n^e>>>1:e>>>=1;t[r]=e>>>0}}(),e.exports=function(e,t){var n;e="string"==typeof e?(n=e,Array.prototype.map.call(n,function(e){return e.charCodeAt(0)})):e;return((t?r(e):o(e))>>>0).toString(16)},e.exports.direct=r,e.exports.table=o}()},function(e,t,n){"use strict";var r=256,o=[],i=window,a=Math.pow(r,6),s=Math.pow(2,52),c=2*s,l=r-1,u=Math.random;function p(e){var t,n=e.length,o=this,i=0,a=o.i=o.j=0,s=o.S=[];for(n||(e=[n++]);i<r;)s[i]=i++;for(i=0;i<r;i++)s[i]=s[a=l&a+e[i%n]+(t=s[i])],s[a]=t;(o.g=function(e){for(var t,n=0,i=o.i,a=o.j,s=o.S;e--;)t=s[i=l&i+1],n=n*r+s[l&(s[i]=s[a=l&a+t])+(s[a]=t)];return o.i=i,o.j=a,n})(r)}function h(e,t){for(var n,r=e+"",o=0;o<r.length;)t[l&o]=l&(n^=19*t[l&o])+r.charCodeAt(o++);return d(t)}function d(e){return String.fromCharCode.apply(0,e)}e.exports=function(t,n){if(n&&!0===n.global)return n.global=!1,Math.random=e.exports(t,n),n.global=!0,Math.random;var l=[],u=(h(function e(t,n){var r,o=[],i=(typeof t)[0];if(n&&"o"==i)for(r in t)try{o.push(e(t[r],n-1))}catch(e){}return o.length?o:"s"==i?t:t+"\0"}(n&&n.entropy||!1?[t,d(o)]:0 in arguments?t:function(e){try{return i.crypto.getRandomValues(e=new Uint8Array(r)),d(e)}catch(e){return[+new Date,i,i.navigator&&i.navigator.plugins,i.screen,d(o)]}}(),3),l),new p(l));return h(d(u.S),o),function(){for(var e=u.g(6),t=a,n=0;e<s;)e=(e+n)*r,t*=r,n=u.g(1);for(;e>=c;)e/=2,t/=2,n>>>=1;return(e+n)/t}},e.exports.resetGlobal=function(){Math.random=u},h(Math.random(),o)},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)}t.log=function(){var e;return"object"===("undefined"==typeof console?"undefined":r(console))&&console.log&&(e=console).log.apply(e,arguments)},t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(r++,"%c"===e&&(o=r))}),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=n(245)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},function(e,t,n){"use strict";e.exports=function(e){function t(e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return r.colors[Math.abs(t)%r.colors.length]}function r(e){var n;function a(){if(a.enabled){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var i=a,s=Number(new Date),c=s-(n||s);i.diff=c,i.prev=n,i.curr=s,n=s,t[0]=r.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");var l=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,function(e,n){if("%%"===e)return e;l++;var o=r.formatters[n];if("function"==typeof o){var a=t[l];e=o.call(i,a),t.splice(l,1),l--}return e}),r.formatArgs.call(i,t),(i.log||r.log).apply(i,t)}}return a.namespace=e,a.enabled=r.enabled(e),a.useColors=r.useColors(),a.color=t(e),a.destroy=o,a.extend=i,"function"==typeof r.init&&r.init(a),r.instances.push(a),a}function o(){var e=r.instances.indexOf(this);return-1!==e&&(r.instances.splice(e,1),!0)}function i(e,t){return r(this.namespace+(void 0===t?":":t)+e)}return r.debug=r,r.default=r,r.coerce=function(e){return e instanceof Error?e.stack||e.message:e},r.disable=function(){r.enable("")},r.enable=function(e){var t;r.save(e),r.names=[],r.skips=[];var n=("string"==typeof e?e:"").split(/[\s,]+/),o=n.length;for(t=0;t<o;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?r.skips.push(new RegExp("^"+e.substr(1)+"$")):r.names.push(new RegExp("^"+e+"$")));for(t=0;t<r.instances.length;t++){var i=r.instances[t];i.enabled=r.enabled(i.namespace)}},r.enabled=function(e){if("*"===e[e.length-1])return!0;var t,n;for(t=0,n=r.skips.length;t<n;t++)if(r.skips[t].test(e))return!1;for(t=0,n=r.names.length;t<n;t++)if(r.names[t].test(e))return!0;return!1},r.humanize=n(246),Object.keys(e).forEach(function(t){r[t]=e[t]}),r.instances=[],r.names=[],r.skips=[],r.formatters={},r.selectColor=t,r.enable(r.load()),r}},function(e,t){var n=1e3,r=60*n,o=60*r,i=24*o,a=7*i,s=365.25*i;function c(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,t){t=t||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^((?:\d+)?\-?\d?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var c=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*a;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*o;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===l&&!1===isNaN(e))return t.long?function(e){var t=Math.abs(e);if(t>=i)return c(e,t,i,"day");if(t>=o)return c(e,t,o,"hour");if(t>=r)return c(e,t,r,"minute");if(t>=n)return c(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=i)return Math.round(e/i)+"d";if(t>=o)return Math.round(e/o)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){},,function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"setConnectionTestResults",function(){return u}),n.d(r,"refreshConnectionTestResults",function(){return p}),n.d(r,"fetchFromAPI",function(){return h});var o={};n.r(o),n.d(o,"getFailedConnections",function(){return d}),n.d(o,"getMustReauthConnections",function(){return f});var i=n(0),a=n(3),s=n(36),c=n(11),l=(n(180),n(17));function u(e){return{type:"SET_CONNECTION_TEST_RESULTS",results:e}}function p(){return{type:"REFRESH_CONNECTION_TEST_RESULTS"}}function h(e){return{type:"FETCH_FROM_API",path:e}}function d(e){return e.filter(function(e){return!1===e.test_success})}function f(e){return e.filter(function(e){return"must_reauth"===e.test_success}).map(function(e){return e.service_name})}var m=n(15),b=n.n(m),g=n(91),v=n.n(g),y=n(5),k=n(47),_=n.n(k),j=n(29),O=n.n(j);function C(){return(C=_()(regeneratorRuntime.mark(function e(t,n){var r,o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.dispatch,e.prev=1,e.next=4,O()({path:"/wpcom/v2/publicize/connection-test-results"});case 4:return o=e.sent,e.abrupt("return",r(u(o)));case 8:e.prev=8,e.t0=e.catch(1);case 10:case"end":return e.stop()}},e,this,[[1,8]])}))).apply(this,arguments)}var w={REFRESH_CONNECTION_TEST_RESULTS:function(e,t){return C.apply(this,arguments)}};var E,x,S,A,D,M={FETCH_FROM_API:function(e){var t=e.path;return O()({path:t})}},T=Object(l.registerStore)("jetpack/publicize",{actions:r,controls:M,reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_CONNECTION_TEST_RESULTS":return t.results;case"REFRESH_CONNECTION_TEST_RESULTS":return[]}return e},selectors:o});E=T,S=[v()(w)],A=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},D={getState:E.getState,dispatch:function(){return A.apply(void 0,arguments)}},x=S.map(function(e){return e(D)}),A=y.flowRight.apply(void 0,b()(x))(E.dispatch),E.dispatch=A;var F=n(33),z=n(19),P=n(7),N=n.n(P),L=n(6),R=n.n(L),I=n(8),q=n.n(I),B=n(9),V=n.n(B),U=n(10),H=n.n(U),$=n(2),G=n.n($),K=n(4),Z=n.n(K),W=n(1),J=function(e){function t(){var e,n;N()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=q()(this,(e=V()(t)).call.apply(e,[this].concat(o))),Z()(G()(G()(n)),"refreshConnectionClick",function(e){var t=e.target,r=t.href,o=t.title;e.preventDefault();var i=window.open(r,o,""),a=window.setInterval(function(){!1!==i.closed&&(window.clearInterval(a),n.props.refreshConnections())},500)}),n}return H()(t,e),R()(t,[{key:"componentDidMount",value:function(){this.props.refreshConnections()}},{key:"renderRefreshableConnections",value:function(){var e=this,t=this.props.failedConnections.filter(function(e){return e.can_refresh});return t.length?Object(i.createElement)(a.Notice,{className:"jetpack-publicize-notice",isDismissible:!1,status:"error"},Object(i.createElement)("p",null,Object(W.a)("Before you hit Publish, please refresh the following connection(s) to make sure we can Publicize your post:")),t.map(function(t){return Object(i.createElement)(a.Button,{href:t.refresh_url,isSmall:!0,key:t.id,onClick:e.refreshConnectionClick,title:t.refresh_text},t.refresh_text)})):null}},{key:"renderNonRefreshableConnections",value:function(){var e=this.props.failedConnections.filter(function(e){return!e.can_refresh});return e.length?e.map(function(e){return Object(i.createElement)(a.Notice,{className:"jetpack-publicize-notice",isDismissible:!1,status:"error"},Object(i.createElement)("p",null,e.test_message))}):null}},{key:"render",value:function(){return Object(i.createElement)(i.Fragment,null,this.renderRefreshableConnections(),this.renderNonRefreshableConnections())}}]),t}(i.Component),Y=Object(z.compose)([Object(l.withSelect)(function(e){return{failedConnections:e("jetpack/publicize").getFailedConnections()}}),Object(l.withDispatch)(function(e){return{refreshConnections:e("jetpack/publicize").refreshConnectionTestResults}})])(J),X=n(20),Q=n.n(X),ee=n(92),te=n.n(ee),ne=n(12),re=n.n(ne),oe=n(14),ie=n(27),ae=n.n(ie),se=Object(i.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(a.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(i.createElement)(a.G,null,Object(i.createElement)(a.Path,{d:"M20.007 3H3.993C3.445 3 3 3.445 3 3.993v16.013c0 .55.445.994.993.994h8.62v-6.97H10.27V11.31h2.346V9.31c0-2.325 1.42-3.59 3.494-3.59.993 0 1.847.073 2.096.106v2.43h-1.438c-1.128 0-1.346.537-1.346 1.324v1.734h2.69l-.35 2.717h-2.34V21h4.587c.548 0 .993-.445.993-.993V3.993c0-.548-.445-.993-.993-.993z"}))),ce=Object(i.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(a.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(i.createElement)(a.G,null,Object(i.createElement)(a.Path,{d:"M22.23 5.924c-.736.326-1.527.547-2.357.646.847-.508 1.498-1.312 1.804-2.27-.793.47-1.67.812-2.606.996C18.325 4.498 17.258 4 16.078 4c-2.266 0-4.103 1.837-4.103 4.103 0 .322.036.635.106.935-3.41-.17-6.433-1.804-8.457-4.287-.353.607-.556 1.312-.556 2.064 0 1.424.724 2.68 1.825 3.415-.673-.022-1.305-.207-1.86-.514v.052c0 1.988 1.415 3.647 3.293 4.023-.344.095-.707.145-1.08.145-.265 0-.522-.026-.773-.074.522 1.63 2.038 2.817 3.833 2.85-1.404 1.1-3.174 1.757-5.096 1.757-.332 0-.66-.02-.98-.057 1.816 1.164 3.973 1.843 6.29 1.843 7.547 0 11.675-6.252 11.675-11.675 0-.178-.004-.355-.012-.53.802-.578 1.497-1.3 2.047-2.124z"}))),le=Object(i.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(a.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(i.createElement)(a.G,null,Object(i.createElement)(a.Path,{d:"M19.7 3H4.3C3.582 3 3 3.582 3 4.3v15.4c0 .718.582 1.3 1.3 1.3h15.4c.718 0 1.3-.582 1.3-1.3V4.3c0-.718-.582-1.3-1.3-1.3zM8.34 18.338H5.666v-8.59H8.34v8.59zM7.003 8.574c-.857 0-1.55-.694-1.55-1.548 0-.855.692-1.548 1.55-1.548.854 0 1.547.694 1.547 1.548 0 .855-.692 1.548-1.546 1.548zm11.335 9.764h-2.67V14.16c0-.995-.017-2.277-1.387-2.277-1.39 0-1.6 1.086-1.6 2.206v4.248h-2.668v-8.59h2.56v1.174h.036c.357-.675 1.228-1.387 2.527-1.387 2.703 0 3.203 1.78 3.203 4.092v4.71z"}))),ue=Object(i.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(a.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(i.createElement)(a.G,null,Object(i.createElement)(a.Path,{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm-5.57 14.265c-2.445.042-3.37-1.742-3.37-2.998V10.6H8.922V9.15c1.703-.615 2.113-2.15 2.21-3.026.006-.06.053-.084.08-.084h1.645V8.9h2.246v1.7H12.85v3.495c.008.476.182 1.13 1.08 1.107.3-.008.698-.094.907-.194l.54 1.6c-.205.297-1.12.642-1.946.657z"}))),pe=Object(i.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(a.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(i.createElement)(a.G,null,Object(i.createElement)(a.Path,{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm-1.92 14.05c-2.235 0-4.05-1.814-4.05-4.05s1.815-4.05 4.05-4.05c1.095 0 2.01.4 2.71 1.057l-1.15 1.118c-.292-.275-.802-.6-1.56-.6-1.34 0-2.433 1.115-2.433 2.48s1.094 2.48 2.434 2.48c1.552 0 2.123-1.074 2.228-1.71h-2.232v-1.51h3.79c.058.255.102.494.102.83 0 2.312-1.55 3.956-3.887 3.956zm8.92-3.3h-1.25V14h-1.5v-1.25H15v-1.5h1.25V10h1.5v1.25H19v1.5z"}))),he=function(e){var t=e.serviceName,n={className:"jetpack-publicize-gutenberg-social-icon is-".concat(t),size:24};switch(t){case"facebook":return Object(i.createElement)(a.Icon,ae()({icon:se},n));case"twitter":return Object(i.createElement)(a.Icon,ae()({icon:ce},n));case"linkedin":return Object(i.createElement)(a.Icon,ae()({icon:le},n));case"tumblr":return Object(i.createElement)(a.Icon,ae()({icon:ue},n));case"google-plus":return Object(i.createElement)(a.Icon,ae()({icon:pe},n))}return null},de=n(34),fe=function(e){function t(){var e,n;N()(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=q()(this,(e=V()(t)).call.apply(e,[this].concat(o))),Z()(G()(G()(n)),"state",{showGooglePlusNotice:!0}),Z()(G()(G()(n)),"onRemoveGooglePlusNotice",function(){n.setState({showGooglePlusNotice:!1})}),Z()(G()(G()(n)),"maybeDisplayGooglePlusNotice",function(e){return"google-plus"===e&&n.state.showGooglePlusNotice&&Object(i.createElement)(a.Notice,{status:"error",onRemove:n.onRemoveGooglePlusNotice},Object(W.a)("Google+ will shut down in April 2019. You can keep posting with your existing Google+ connection through March."),Object(i.createElement)(a.ExternalLink,{target:"_blank",href:"https://www.blog.google/technology/safety-security/expediting-changes-google-plus/"},Object(W.a)(" Learn more"),"."))}),Z()(G()(G()(n)),"maybeDisplayLinkedInNotice",function(){return n.connectionNeedsReauth()&&Object(i.createElement)(a.Notice,{className:"jetpack-publicize-notice",isDismissible:!1,status:"error"},Object(i.createElement)("p",null,Object(W.a)("Your LinkedIn connection needs to be reauthenticated to continue working – head to Sharing to take care of it.")),Object(i.createElement)(a.ExternalLink,{href:"https://wordpress.com/sharing/".concat(Object(de.default)())},Object(W.a)("Go to Sharing settings")))}),Z()(G()(G()(n)),"connectionNeedsReauth",function(){return Object(y.includes)(n.props.mustReauthConnections,n.props.name)}),Z()(G()(G()(n)),"onConnectionChange",function(){var e=n.props.id;n.props.toggleConnection(e)}),n}return H()(t,e),R()(t,[{key:"connectionIsFailing",value:function(){var e=this.props,t=e.failedConnections,n=e.name;return t.some(function(e){return e.service_name===n})}},{key:"render",value:function(){var e=this.props,t=e.disabled,n=e.enabled,r=e.id,o=e.label,s=e.name,c="connection-"+s+"-"+r,l=s.replace("_","-"),u=Object(i.createElement)(a.FormToggle,{id:c,className:"jetpack-publicize-connection-toggle",checked:n,onChange:this.onConnectionChange});return(t||this.connectionIsFailing()||this.connectionNeedsReauth())&&(u=Object(i.createElement)(a.Disabled,null,u)),Object(i.createElement)("li",null,this.maybeDisplayGooglePlusNotice(l),this.maybeDisplayLinkedInNotice(),Object(i.createElement)("div",{className:"publicize-jetpack-connection-container"},Object(i.createElement)("label",{htmlFor:c,className:"jetpack-publicize-connection-label"},Object(i.createElement)(he,{serviceName:l}),Object(i.createElement)("span",{className:"jetpack-publicize-connection-label-copy"},o)),u))}}]),t}(i.Component),me=Object(l.withSelect)(function(e){return{failedConnections:e("jetpack/publicize").getFailedConnections(),mustReauthConnections:e("jetpack/publicize").getMustReauthConnections()}})(fe),be=function(e){function t(){var e,n;N()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=q()(this,(e=V()(t)).call.apply(e,[this].concat(o))),Z()(G()(G()(n)),"settingsClick",function(e){var t=n.getButtonLink(),r=n.props.refreshCallback;e.preventDefault();var o=window.open(t,"",""),i=window.setInterval(function(){!1!==o.closed&&(window.clearInterval(i),r())},500)}),n}return H()(t,e),R()(t,[{key:"getButtonLink",value:function(){var e=Object(de.default)();return e?"https://wordpress.com/sharing/".concat(e):"options-general.php?page=sharing&publicize_popup=true"}},{key:"render",value:function(){var e=re()("jetpack-publicize-add-connection-container",this.props.className);return Object(i.createElement)("div",{className:e},Object(i.createElement)(a.ExternalLink,{onClick:this.settingsClick},Object(W.a)("Connect an account")))}}]),t}(i.Component),ge=function(e){function t(){var e,n;N()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=q()(this,(e=V()(t)).call.apply(e,[this].concat(o))),Z()(G()(G()(n)),"state",{hasEditedShareMessage:!1}),Z()(G()(G()(n)),"fieldId",Object(y.uniqueId)("jetpack-publicize-message-field-")),Z()(G()(G()(n)),"onMessageChange",function(e){var t=n.props.messageChange;n.setState({hasEditedShareMessage:!0}),t(e)}),n}return H()(t,e),R()(t,[{key:"isDisabled",value:function(){return this.props.connections.every(function(e){return!e.toggleable})}},{key:"getShareMessage",value:function(){var e=this.props,t=e.shareMessage,n=e.defaultShareMessage;return this.state.hasEditedShareMessage||""!==t?t:n}},{key:"render",value:function(){var e=this.props,t=e.connections,n=e.toggleConnection,r=e.refreshCallback,o=this.getShareMessage(),a=256-o.length,s=re()("jetpack-publicize-character-count",{"wpas-twitter-length-limit":a<=0});return Object(i.createElement)("div",{id:"publicize-form"},Object(i.createElement)("ul",{className:"jetpack-publicize__connections-list"},t.map(function(e){var t=e.display_name,r=e.enabled,o=e.id,a=e.service_name,s=e.toggleable;return Object(i.createElement)(me,{disabled:!s,enabled:r,key:o,id:o,label:t,name:a,toggleConnection:n})})),Object(i.createElement)(be,{refreshCallback:r}),t.some(function(e){return e.enabled})&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)("label",{className:"jetpack-publicize-message-note",htmlFor:this.fieldId},Object(W.a)("Customize your message")),Object(i.createElement)("div",{className:"jetpack-publicize-message-box"},Object(i.createElement)("textarea",{id:this.fieldId,value:o,onChange:this.onMessageChange,disabled:this.isDisabled(),maxLength:256,placeholder:Object(W.a)("Write a message for your audience here. If you leave this blank, we'll use the post title as the message."),rows:4}),Object(i.createElement)("div",{className:s},Object(oe.sprintf)(Object(W.b)("%d character remaining","%d characters remaining",a),a)))))}}]),t}(i.Component),ve=Object(z.compose)([Object(l.withSelect)(function(e){var t=e("core/editor").getEditedPostAttribute("meta"),n=e("core/editor").getEditedPostAttribute("title"),r=te()(t,["jetpack_publicize_message"],"");return{connections:e("core/editor").getEditedPostAttribute("jetpack_publicize_connections"),defaultShareMessage:n.substr(0,256),shareMessage:r.substr(0,256)}}),Object(l.withDispatch)(function(e,t){var n=t.connections;return{toggleConnection:function(t){var r=n.map(function(e){return Q()({},e,{enabled:e.id===t?!e.enabled:e.enabled})});e("core/editor").editPost({jetpack_publicize_connections:r})},messageChange:function(t){e("core/editor").editPost({meta:{jetpack_publicize_message:t.target.value}})}}})])(ge),ye=Object(z.compose)([Object(l.withSelect)(function(e){return{connections:e("core/editor").getEditedPostAttribute("jetpack_publicize_connections")}}),Object(l.withDispatch)(function(e){return{refreshConnections:e("core/editor").refreshPost}})])(function(e){var t=e.connections,n=e.refreshConnections;return Object(i.createElement)(i.Fragment,null,t&&t.some(function(e){return e.enabled})&&Object(i.createElement)(Y,null),Object(i.createElement)("div",null,Object(W.a)("Connect and select the accounts where you'd like to share your post.")),t&&t.length>0&&Object(i.createElement)(ve,{refreshCallback:n}),t&&0===t.length&&Object(i.createElement)(be,{className:"jetpack-publicize-add-connection-wrapper",refreshCallback:n}))}),ke={render:function(){return Object(i.createElement)(c.PostTypeSupportCheck,{supportKeys:"publicize"},Object(i.createElement)(F.default,null,Object(i.createElement)(a.PanelBody,{title:Object(W.a)("Share this post")},Object(i.createElement)(ye,null))),Object(i.createElement)(s.PluginPrePublishPanel,{initialOpen:!0,id:"publicize-title",title:Object(i.createElement)("span",{id:"publicize-defaults",key:"publicize-title-span"},Object(W.a)("Share this post"))},Object(i.createElement)(ye,null)))}},_e=n(48);Object(_e.a)("publicize",ke)},function(e,t,n){"use strict";n.r(t);var r=n(22),o=n(0),i=n(18),a=n(5),s=n(3),c=n(1),l=n(20),u=n.n(l),p=n(15),h=n.n(p),d=n(7),f=n.n(d),m=n(6),b=n.n(m),g=n(8),v=n.n(g),y=n(9),k=n.n(y),_=n(10),j=n.n(_),O=n(2),C=n.n(O),w=n(4),E=n.n(w),x=n(11),S=n(32),A=n.n(S),D=n(96),M=n.n(D),T=n(14),F=n(30),z=n(31),P=n(12),N=n.n(P),L=n(28),R=n(17),I=function(e){function t(){var e,n;f()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=v()(this,(e=k()(t)).call.apply(e,[this].concat(i))),E()(C()(C()(n)),"img",Object(o.createRef)()),E()(C()(C()(n)),"onImageClick",function(){n.props.isSelected||n.props.onSelect()}),E()(C()(C()(n)),"onImageKeyDown",function(e){n.img.current===document.activeElement&&n.props.isSelected&&[L.BACKSPACE,L.DELETE].includes(e.keyCode)&&n.props.onRemove()}),n}return j()(t,e),b()(t,[{key:"componentDidUpdate",value:function(){var e=this.props,t=e.alt,n=e.height,r=e.image,o=e.link,i=e.url,a=e.width;if(r){var s={};!t&&r.alt_text&&(s.alt=r.alt_text),!n&&r.media_details&&r.media_details.height&&(s.height=+r.media_details.height),!o&&r.link&&(s.link=r.link),!i&&r.source_url&&(s.url=r.source_url),!a&&r.media_details&&r.media_details.width&&(s.width=+r.media_details.width),Object.keys(s).length&&this.props.setAttributes(s)}}},{key:"render",value:function(){var e,t=this.props,n=t["aria-label"],r=t.alt,i=t.height,a=t.id,l=t.isSelected,u=t.link,p=t.linkTo,h=t.onRemove,d=t.origUrl,f=t.url,m=t.width;switch(p){case"media":e=f;break;case"attachment":e=u}var b=Object(o.createElement)(o.Fragment,null,Object(o.createElement)("img",{alt:r,"aria-label":n,"data-height":i,"data-id":a,"data-link":u,"data-url":d,"data-width":m,onClick:this.onImageClick,onKeyDown:this.onImageKeyDown,ref:this.img,src:f,tabIndex:"0"}),Object(z.isBlobURL)(d)&&Object(o.createElement)(s.Spinner,null));return Object(o.createElement)("figure",{className:N()("tiled-gallery__item",{"is-selected":l,"is-transient":Object(z.isBlobURL)(d)})},l&&Object(o.createElement)("div",{className:"tiled-gallery__item__inline-menu"},Object(o.createElement)(s.IconButton,{icon:"no-alt",onClick:h,className:"tiled-gallery__item__remove",label:Object(c.a)("Remove Image")})),e?Object(o.createElement)("a",null,b):b)}}]),t}(o.Component),q=Object(R.withSelect)(function(e,t){var n=e("core").getMedia,r=t.id;return{image:r?n(r):null}})(I);function B(e){var t,n=e["aria-label"],r=e.alt,i=e.height,a=e.id,s=e.link,c=e.linkTo,l=e.origUrl,u=e.url,p=e.width;if(Object(z.isBlobURL)(l))return null;switch(c){case"media":t=u;break;case"attachment":t=s}var h=Object(o.createElement)("img",{alt:r,"aria-label":n,"data-height":i,"data-id":a,"data-link":s,"data-url":l,"data-width":p,src:u});return Object(o.createElement)("figure",{className:"tiled-gallery__item"},t?Object(o.createElement)("a",{href:t},h):h)}var V=n(50);function U(e){var t=e.children;return Object(o.createElement)("div",{className:"tiled-gallery__col"},t)}function H(e){var t=e.children,n=e.galleryRef;return Object(o.createElement)("div",{className:"tiled-gallery__gallery",ref:n},t)}function $(e){var t=e.children,n=e.className;return Object(o.createElement)("div",{className:N()("tiled-gallery__row",n)},t)}var G=n(38);function K(e){var t=e.height,n=e.width;return t&&n?n/t:1}var Z=de([2,1,2],5),W=fe([me,me,be,me,me]),J=fe([me,me,me,be,me,me,me]),Y=de([3,1,3],5),X=fe([be,me,me,be]),Q=de([1,2,1],5),ee=fe([be,me,me,me]),te=de([1,3],3),ne=fe([me,me,me,be]),re=de([3,1],3),oe=fe([ve(1.6),Object(a.overEvery)(ge(.9),ve(2)),Object(a.overEvery)(ge(.9),ve(2))]),ie=de([1,2],3),ae=de([1,1,1,1,1],1),se=de([1,1,1,1],1),ce=de([1,1,1],3),le=fe([Object(a.overEvery)(ge(.9),ve(2)),Object(a.overEvery)(ge(.9),ve(2)),ve(1.6)]),ue=de([2,1],3),pe=fe([function(e){return e>=2}]);function he(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).isWide;return function e(n,r){if(!r.length)return n;var o;o=r.length>15&&W(r)&&Z(n)?[2,1,2]:r.length>15&&J(r)&&Y(n)?[3,1,3]:5!==r.length&&X(r)&&Q(n)?[1,2,1]:ee(r)&&te(n)?[1,3]:ne(r)&&re(n)?[3,1]:oe(r)&&ie(n)?[1,2]:t&&(5===r.length||10!==r.length&&r.length>6)&&ae(n)&&Object(a.sum)(Object(a.take)(r,5))<5?[1,1,1,1,1]:function(e,t){var n=Object(a.sum)(Object(a.take)(t,4));return se(e)&&n<3.5&&t.length>5||n<7&&4===t.length}(n,r)?[1,1,1,1]:function(e,t,n){var r=Object(a.sum)(Object(a.take)(t,3));return t.length>=3&&4!==t.length&&6!==t.length&&ce(e)&&(r<2.5||r<5&&t.length>=3&&t[0]===t[2]||n)}(n,r,t)?[1,1,1]:le(r)&&ue(n)?[2,1]:pe(r)?[1]:r.length>3?[1,1]:Array(r.length).fill(1);var i=n.concat([o]),s=Object(a.sum)(o);return e(i,r.slice(s))}([],e)}function de(e,t){return function(n){return!Object(a.some)(Object(a.takeRight)(n,t),function(t){return Object(a.isEqual)(t,e)})}}function fe(e){return function(t){return t.length>=e.length&&Object(a.every)(Object(a.zipWith)(e,t.slice(0,e.length),function(e,t){return e(t)}))}}function me(e){return e>=1&&e<2}function be(e){return e<1}function ge(e){return function(t){return t>=e}}function ve(e){return function(t){return t<e}}var ye=function(e){function t(){var e,n;f()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=v()(this,(e=k()(t)).call.apply(e,[this].concat(i))),E()(C()(C()(n)),"gallery",Object(o.createRef)()),E()(C()(C()(n)),"pendingRaf",null),E()(C()(C()(n)),"ro",null),E()(C()(C()(n)),"handleGalleryResize",function(e){n.pendingRaf&&(cancelAnimationFrame(n.pendingRaf),n.pendingRaf=null),n.pendingRaf=requestAnimationFrame(function(){var t=!0,n=!1,r=void 0;try{for(var o,i=function(){var e=o.value,t=e.contentRect,n=e.target,r=t.width;Object(G.a)(n).forEach(function(e){return Object(G.b)(e,r)})},a=e[Symbol.iterator]();!(t=(o=a.next()).done);t=!0)i()}catch(e){n=!0,r=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw r}}})}),n}return j()(t,e),b()(t,[{key:"componentDidMount",value:function(){this.observeResize()}},{key:"componentWillUnmount",value:function(){this.unobserveResize()}},{key:"componentDidUpdate",value:function(e){e.images!==this.props.images||e.align!==this.props.align?this.triggerResize():"columns"===this.props.layoutStyle&&e.columns!==this.props.columns&&this.triggerResize()}},{key:"triggerResize",value:function(){this.gallery.current&&this.handleGalleryResize([{target:this.gallery.current,contentRect:{width:this.gallery.current.clientWidth}}])}},{key:"observeResize",value:function(){this.triggerResize(),this.ro=new V.a(this.handleGalleryResize),this.gallery.current&&this.ro.observe(this.gallery.current)}},{key:"unobserveResize",value:function(){this.ro&&(this.ro.disconnect(),this.ro=null),this.pendingRaf&&(cancelAnimationFrame(this.pendingRaf),this.pendingRaf=null)}},{key:"render",value:function(){var e=this.props,t=e.align,n=e.columns,r=e.images,i=e.layoutStyle,s=e.renderedImages,c=function(e){return Object(a.map)(e,K)}(r),l="columns"===i?function(e,t){if(e.length<=t)return[Array(e.length).fill(1)];for(var n=Object(a.sum)(e)/t,r=[],o=e,i=0,s=function(e){var t=Object(a.takeWhile)(o,function(t){var r=i<=(e+1)*n;return r&&(i+=t),r}).length;r.push(t),o=Object(a.drop)(o,t)},c=0;c<t-1;c++)s(c);return r.push(o.length),[r]}(c,n):he(c,{isWide:["full","wide"].includes(t)}),u=0;return Object(o.createElement)(H,{galleryRef:this.gallery},l.map(function(e,t){return Object(o.createElement)($,{key:t},e.map(function(e,t){var n=s.slice(u,u+e);return u+=e,Object(o.createElement)(U,{key:t},n)}))}))}}]),t}(o.Component),ke=n(16);function _e(e){var t=e.columns,n=e.renderedImages,r=Math.min(ke.e,t),i=n.length%r;return Object(o.createElement)(H,null,[].concat(h()(i?[Object(a.take)(n,i)]:[]),h()(Object(a.chunk)(Object(a.drop)(n,i),r))).map(function(e,t){return Object(o.createElement)($,{key:t,className:"columns-".concat(e.length)},e.map(function(e,t){return Object(o.createElement)(U,{key:t},e)}))}))}var je=function(e){function t(){return f()(this,t),v()(this,k()(t).apply(this,arguments))}return j()(t,e),b()(t,[{key:"photonize",value:function(e){var t=e.height,n=e.width,r=e.url;if(r){if(Object(z.isBlobURL)(r)||/^https?:\/\/localhost/.test(r))return r;var o=r.split("?",1)[0],i=function(e){var t=Object(F.parse)(e).host;return/\.files\.wordpress\.com$/.test(t)}(r)?Ce:M.a;if(Oe(this.props.layoutStyle)&&n&&t){var a=Math.min(ke.f,n,t);return i(o,{resize:"".concat(a,",").concat(a)})}return i(o)}}},{key:"renderImage",value:function(e,t){var n=this.props,r=n.images,i=n.isSave,a=n.linkTo,s=n.onRemoveImage,c=n.onSelectImage,l=n.selectedImage,u=n.setImageAttributes,p=Object(T.sprintf)(Object(T.__)("image %1$d of %2$d in gallery"),t+1,r.length),h=i?B:q;return Object(o.createElement)(h,{alt:e.alt,"aria-label":p,height:e.height,id:e.id,origUrl:e.url,isSelected:l===t,key:t,link:e.link,linkTo:a,onRemove:i?void 0:s(t),onSelect:i?void 0:c(t),setAttributes:i?void 0:u(t),url:this.photonize(e),width:e.width})}},{key:"render",value:function(){var e=this.props,t=e.align,n=e.children,r=e.className,i=e.columns,a=e.images,s=e.layoutStyle,c=Oe(s)?_e:ye,l=this.props.images.map(this.renderImage,this);return Object(o.createElement)("div",{className:r},Object(o.createElement)(c,{align:t,columns:i,images:a,layoutStyle:s,renderedImages:l}),n)}}]),t}(o.Component);function Oe(e){return["circle","square"].includes(e)}function Ce(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},r=Object(F.parse)(e),o=(r.auth,r.hash,r.port,r.query,r.search,A()(r,["auth","hash","port","query","search"]));return o.query=Object.keys(t).reduce(function(e,r){return Object.assign(e,E()({},n.hasOwnProperty(r)?n[r]:r,t[r]))},{}),Object(F.format)(o)}var we=n(97),Ee=n.n(we);function xe(e,t){var n=function(e,t){var n=!0,r=!1,o=void 0;try{for(var i,s=new Ee.a(t).values()[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var c=i.value;if(-1!==c.indexOf("is-style-")){var l=c.substring(9),u=Object(a.find)(e,{name:l});if(u)return u}}}catch(e){r=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw o}}return Object(a.find)(e,"isDefault")}(e,t);return n?n.name:null}var Se=[{value:"attachment",label:Object(c.a)("Attachment Page")},{value:"media",label:Object(c.a)("Media File")},{value:"none",label:Object(c.a)("None")}];function Ae(e){return Math.min(3,e.images.length)}var De=function(e){var t=Object(a.pick)(e,[["alt"],["id"],["link"]]);return t.url=Object(a.get)(e,["sizes","large","url"])||Object(a.get)(e,["media_details","sizes","large","source_url"])||e.url,t},Me=function(e){function t(){var e,n;f()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=v()(this,(e=k()(t)).call.apply(e,[this].concat(o))),E()(C()(C()(n)),"state",{selectedImage:null}),E()(C()(C()(n)),"addFiles",function(e){var t=n.props.attributes.images||[],r=n.props.noticeOperations;Object(x.mediaUpload)({allowedTypes:ke.a,filesList:e,onFileChange:function(e){var r=e.map(function(e){return De(e)});n.setAttributes({images:t.concat(r)})},onError:r.createErrorNotice})}),E()(C()(C()(n)),"onRemoveImage",function(e){return function(){var t=Object(a.filter)(n.props.attributes.images,function(t,n){return e!==n}),r=n.props.attributes.columns;n.setState({selectedImage:null}),n.setAttributes({images:t,columns:r?Math.min(t.length,r):r})}}),E()(C()(C()(n)),"onSelectImage",function(e){return function(){n.state.selectedImage!==e&&n.setState({selectedImage:e})}}),E()(C()(C()(n)),"onSelectImages",function(e){return n.setAttributes({images:e.map(function(e){return De(e)})})}),E()(C()(C()(n)),"setColumnsNumber",function(e){return n.setAttributes({columns:e})}),E()(C()(C()(n)),"setImageAttributes",function(e){return function(t){var r=n.props.attributes.images;r[e]&&n.setAttributes({images:[].concat(h()(r.slice(0,e)),[u()({},r[e],t)],h()(r.slice(e+1)))})}}),E()(C()(C()(n)),"setLinkTo",function(e){return n.setAttributes({linkTo:e})}),E()(C()(C()(n)),"uploadFromFiles",function(e){return n.addFiles(e.target.files)}),n}return j()(t,e),b()(t,[{key:"setAttributes",value:function(e){if(e.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');e.images&&(e=u()({},e,{ids:e.images.map(function(e){var t=e.id;return parseInt(t,10)})})),this.props.setAttributes(e)}},{key:"render",value:function(){var e=this.state.selectedImage,t=this.props,n=t.attributes,r=t.isSelected,i=t.className,a=t.noticeOperations,l=t.noticeUI,u=n.align,p=n.columns,h=void 0===p?Ae(n):p,d=n.images,f=n.linkTo,m=Object(o.createElement)(s.DropZone,{onFilesDrop:this.addFiles}),b=Object(o.createElement)(x.BlockControls,null,!!d.length&&Object(o.createElement)(s.Toolbar,null,Object(o.createElement)(x.MediaUpload,{onSelect:this.onSelectImages,allowedTypes:ke.a,multiple:!0,gallery:!0,value:d.map(function(e){return e.id}),render:function(e){var t=e.open;return Object(o.createElement)(s.IconButton,{className:"components-toolbar__control",label:Object(c.a)("Edit Gallery"),icon:"edit",onClick:t})}})));if(0===d.length)return Object(o.createElement)(o.Fragment,null,b,Object(o.createElement)(x.MediaPlaceholder,{icon:Object(o.createElement)("div",{className:"tiled-gallery__media-placeholder-icon"},ze),className:i,labels:{title:Object(c.a)("Tiled gallery"),name:Object(c.a)("images")},onSelect:this.onSelectImages,accept:"image/*",allowedTypes:ke.a,multiple:!0,notices:l,onError:a.createErrorNotice}));var g=xe(ke.d,n.className);return Object(o.createElement)(o.Fragment,null,b,Object(o.createElement)(x.InspectorControls,null,Object(o.createElement)(s.PanelBody,{title:Object(c.a)("Tiled gallery settings")},["columns","circle","square"].includes(g)&&d.length>1&&Object(o.createElement)(s.RangeControl,{label:Object(c.a)("Columns"),value:h,onChange:this.setColumnsNumber,min:1,max:Math.min(ke.e,d.length)}),Object(o.createElement)(s.SelectControl,{label:Object(c.a)("Link To"),value:f,onChange:this.setLinkTo,options:Se}))),l,Object(o.createElement)(je,{align:u,className:i,columns:h,images:d,layoutStyle:g,linkTo:f,onRemoveImage:this.onRemoveImage,onSelectImage:this.onSelectImage,selectedImage:r?e:null,setImageAttributes:this.setImageAttributes},m,r&&Object(o.createElement)("div",{className:"tiled-gallery__add-item"},Object(o.createElement)(s.FormFileUpload,{multiple:!0,isLarge:!0,className:"tiled-gallery__add-item-button",onChange:this.uploadFromFiles,accept:"image/*",icon:"insert"},Object(c.a)("Upload an image")))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.isSelected||null===t.selectedImage?null:{selectedImage:null}}}]),t}(o.Component),Te=Object(s.withNotices)(Me);n(247);var Fe={align:{default:"center",type:"string"},className:{default:"is-style-".concat(ke.b),type:"string"},columns:{type:"number"},ids:{default:[],type:"array"},images:{type:"array",default:[],source:"query",selector:".tiled-gallery__item",query:{alt:{attribute:"alt",default:"",selector:"img",source:"attribute"},caption:{selector:"figcaption",source:"html",type:"string"},height:{attribute:"data-height",selector:"img",source:"attribute",type:"number"},id:{attribute:"data-id",selector:"img",source:"attribute"},link:{attribute:"data-link",selector:"img",source:"attribute"},url:{attribute:"data-url",selector:"img",source:"attribute"},width:{attribute:"data-width",selector:"img",source:"attribute",type:"number"}}},linkTo:{default:"none",type:"string"}},ze=Object(o.createElement)(s.SVG,{viewBox:"0 0 24 24",width:24,height:24},Object(o.createElement)(s.Path,{fill:"currentColor",d:"M19 5v2h-4V5h4M9 5v6H5V5h4m10 8v6h-4v-6h4M9 17v2H5v-2h4M21 3h-8v6h8V3zM11 3H3v10h8V3zm10 8h-8v10h8V11zm-10 4H3v6h8v-6z"})),Pe={attributes:Fe,category:"jetpack",description:Object(c.a)("Display multiple images in an elegantly organized tiled layout."),icon:ze,keywords:[Object(c.c)("images","block search term"),Object(c.c)("photos","block search term"),Object(c.c)("masonry","block search term")],styles:ke.d,supports:{align:["center","wide","full"],customClassName:!1,html:!1},title:Object(c.a)("Tiled Gallery"),transforms:{from:[{type:"block",blocks:["core/gallery"],transform:function(e){var t=Object(a.filter)(e.images,function(e){var t=e.id,n=e.url;return t&&n});return t.length>0?Object(i.createBlock)("jetpack/".concat("tiled-gallery"),{images:t.map(function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}})}):Object(i.createBlock)("jetpack/".concat("tiled-gallery"))}},{type:"shortcode",tag:"gallery",attributes:{images:{type:"array",shortcode:function(e){var t=e.named.ids;return t?t.split(",").map(function(e){return{id:parseInt(e,10)}}):[]}},columns:{type:"number",shortcode:function(e){var t=e.named.columns,n=void 0===t?3:t;if(n){var r=parseInt(n,10);return r||void 0}}},linkTo:{type:"string",shortcode:function(e){var t=e.named.link,n=void 0===t?"attachment":t;return"file"===n?"media":n}},layout:{type:"string",shortcode:function(e){var t=e.named.type,n=void 0===t?ke.b:t;return ke.d.map(function(e){return e.name}).includes(n)?n:ke.b}}}}],to:[{type:"block",blocks:["core/gallery"],transform:function(e){var t=e.images,n=e.columns,r=e.linkTo;return Object(i.createBlock)("core/gallery",{images:t,columns:n,imageCrop:!0,linkTo:r})}},{type:"block",blocks:["core/image"],transform:function(e){var t=e.images;return t.length>0?t.map(function(e){var t=e.id,n=e.url,r=e.alt,o=e.caption;return Object(i.createBlock)("core/image",{id:t,url:n,alt:r,caption:o})}):Object(i.createBlock)("core/image")}}]},edit:Te,save:function(e){var t=e.attributes,n=t.images;if(!n.length)return null;var r=t.align,i=t.className,a=t.columns,s=void 0===a?Ae(t):a,c=t.linkTo;return Object(o.createElement)(je,{align:r,className:i,columns:s,images:n,isSave:!0,layoutStyle:xe(ke.d,i),linkTo:c})}};Object(r.a)("tiled-gallery",Pe)},function(e,t,n){"use strict";n.r(t);var r=n(22),o=n(0),i=n(3),a=n(47),s=n.n(a),c=n(7),l=n.n(c),u=n(6),p=n.n(u),h=n(8),d=n.n(h),f=n(9),m=n.n(f),b=n(10),g=n.n(b),v=n(2),y=n.n(v),k=n(4),_=n.n(k),j=n(12),O=n.n(j),C=n(46),w=n.n(C),E=n(19),x=n(17),S=n(5),A=n(14),D=n(27),M=n.n(D),T=n(32),F=n.n(T),z=n(44),P=n.n(z),N=(n(225),function(e){var t=e.children,n=void 0===t?null:t,r=e.isError,i=void 0!==r&&r,a=F()(e,["children","isError"]),s=O()("simple-payments__help-message",{"simple-payments__help-message-is-error":i});return n&&Object(o.createElement)("div",M()({className:s},a),i&&Object(o.createElement)(P.a,{size:"24"}),Object(o.createElement)("span",null,n))}),L=n(1),R=(n(227),n(93)),I=n.n(R),q=n(94),B=n.n(q),V=function(e){var t=e.title,n=void 0===t?"":t,r=e.content,i=void 0===r?"":r,a=e.formattedPrice,s=void 0===a?"":a,c=e.multiple,l=void 0!==c&&c,u=e.featuredMediaUrl,p=void 0===u?null:u,h=e.featuredMediaTitle,d=void 0===h?null:h;return Object(o.createElement)("div",{className:"jetpack-simple-payments-wrapper"},Object(o.createElement)("div",{className:"jetpack-simple-payments-product"},p&&Object(o.createElement)("div",{className:"jetpack-simple-payments-product-image"},Object(o.createElement)("figure",{className:"jetpack-simple-payments-image"},Object(o.createElement)("img",{src:p,alt:d}))),Object(o.createElement)("div",{className:"jetpack-simple-payments-details"},n&&Object(o.createElement)("div",{className:"jetpack-simple-payments-title"},Object(o.createElement)("p",null,n)),i&&Object(o.createElement)("div",{className:"jetpack-simple-payments-description"},Object(o.createElement)("p",null,i)),s&&Object(o.createElement)("div",{className:"jetpack-simple-payments-price"},Object(o.createElement)("p",null,s)),Object(o.createElement)("div",{className:"jetpack-simple-payments-purchase-box"},l&&Object(o.createElement)("div",{className:"jetpack-simple-payments-items"},Object(o.createElement)("input",{className:"jetpack-simple-payments-items-number",readOnly:!0,type:"number",value:"1"})),Object(o.createElement)("div",{className:"jetpack-simple-payments-button"},Object(o.createElement)("img",{alt:Object(L.a)("Pay with PayPal"),src:I.a,srcSet:"".concat(B.a," 2x")}))))))},U=n(11),H=function(e){return function(t){return e({featuredMediaId:Object(S.get)(t,"id",0),featuredMediaUrl:Object(S.get)(t,"url",null),featuredMediaTitle:Object(S.get)(t,"title",null)})}},$=function(e){var t=e.featuredMediaId,n=e.featuredMediaUrl,r=e.featuredMediaTitle,a=e.setAttributes;return t?Object(o.createElement)("div",null,Object(o.createElement)(o.Fragment,null,Object(o.createElement)(U.BlockControls,null,Object(o.createElement)(i.Toolbar,null,Object(o.createElement)(U.MediaUpload,{onSelect:H(a),allowedTypes:["image"],value:t,render:function(e){var t=e.open;return Object(o.createElement)(i.IconButton,{className:"components-toolbar__control",label:Object(L.a)("Edit Image"),icon:"edit",onClick:t})}}),Object(o.createElement)(i.ToolbarButton,{icon:"trash",title:Object(L.a)("Remove Image"),onClick:function(){return a({featuredMediaId:null,featuredMediaUrl:null,featuredMediaTitle:null})}}))),Object(o.createElement)("figure",null,Object(o.createElement)("img",{src:n,alt:r})))):Object(o.createElement)(U.MediaPlaceholder,{icon:"format-image",labels:{title:Object(L.a)("Product Image")},accept:"image/*",allowedTypes:["image"],onSelect:H(a)})},G=n(95),K=n.n(G),Z={AED:{symbol:"د.إ.‏",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.‏",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.‏",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.‏",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.‏",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.‏",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"₩",grouping:",",decimal:".",precision:0},KRW:{symbol:"₩",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.ك.‏",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"₭",grouping:",",decimal:".",precision:0},LBP:{symbol:"ل.ل.‏",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.ل.‏",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.م.‏",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"₮",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"﷼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zł",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£‏",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"₡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.‏",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"₴",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"сўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"₫",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"﷼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"₩",grouping:",",decimal:".",precision:2}};function W(e){return Z[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}var J=["USD","EUR","AUD","BRL","CAD","CZK","DKK","HKD","HUF","ILS","JPY","MYR","MXN","TWD","NZD","NOK","PHP","PLN","GBP","RUB","SGD","SEK","CHF","THB"],Y=function(e){var t=(""+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},X=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=W(t),o=r.precision,i=r.symbol,a=e.toFixed(o);return n?"".concat(a," ").concat(K()(i,".")):a},Q=function(e){function t(){var e,n;l()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=d()(this,(e=m()(t)).call.apply(e,[this].concat(o))),_()(y()(y()(n)),"state",{fieldEmailError:null,fieldPriceError:null,fieldTitleError:null,isSavingProduct:!1}),_()(y()(y()(n)),"shouldInjectPaymentAttributes",!!n.props.attributes.productId),_()(y()(y()(n)),"validateAttributes",function(){var e=n.validatePrice(),t=n.validateTitle(),r=n.validateEmail(),o=n.validateCurrency();return e&&t&&r&&o}),_()(y()(y()(n)),"validateCurrency",function(){var e=n.props.attributes.currency;return J.includes(e)}),_()(y()(y()(n)),"validatePrice",function(){var e=n.props.attributes,t=e.currency,r=e.price,o=W(t).precision;return r&&0!==parseFloat(r)?Number.isNaN(parseFloat(r))?(n.setState({fieldPriceError:Object(L.a)("Invalid price")}),!1):parseFloat(r)<0?(n.setState({fieldPriceError:Object(L.a)("Your price is negative — enter a positive number so people can pay the right amount.")}),!1):Y(r)>o?0===o?(n.setState({fieldPriceError:Object(L.a)("We know every penny counts, but prices in this currency can’t contain decimal values.")}),!1):(n.setState({fieldPriceError:Object(A.sprintf)(Object(L.b)("The price cannot have more than %d decimal place.","The price cannot have more than %d decimal places.",o),o)}),!1):(n.state.fieldPriceError&&n.setState({fieldPriceError:null}),!0):(n.setState({fieldPriceError:Object(L.a)("If you’re selling something, you need a price tag. Add yours here.")}),!1)}),_()(y()(y()(n)),"validateEmail",function(){var e=n.props.attributes.email;return e?w.a.validate(e)?(n.state.fieldEmailError&&n.setState({fieldEmailError:null}),!0):(n.setState({fieldEmailError:Object(A.sprintf)(Object(L.a)("%s is not a valid email address."),e)}),!1):(n.setState({fieldEmailError:Object(L.a)("We want to make sure payments reach you, so please add an email address.")}),!1)}),_()(y()(y()(n)),"validateTitle",function(){return n.props.attributes.title?(n.state.fieldTitleError&&n.setState({fieldTitleError:null}),!0):(n.setState({fieldTitleError:Object(L.a)("Please add a brief title so that people know what they’re paying for.")}),!1)}),_()(y()(y()(n)),"handleEmailChange",function(e){n.props.setAttributes({email:e}),n.setState({fieldEmailError:null})}),_()(y()(y()(n)),"handleFeaturedMediaSelect",function(e){n.props.setAttributes({featuredMediaId:Object(S.get)(e,"id",0)})}),_()(y()(y()(n)),"handleContentChange",function(e){n.props.setAttributes({content:e})}),_()(y()(y()(n)),"handlePriceChange",function(e){e=parseFloat(e),isNaN(e)?n.props.setAttributes({price:void 0}):n.props.setAttributes({price:e}),n.setState({fieldPriceError:null})}),_()(y()(y()(n)),"handleCurrencyChange",function(e){n.props.setAttributes({currency:e})}),_()(y()(y()(n)),"handleMultipleChange",function(e){n.props.setAttributes({multiple:!!e})}),_()(y()(y()(n)),"handleTitleChange",function(e){n.props.setAttributes({title:e}),n.setState({fieldTitleError:null})}),_()(y()(y()(n)),"getCurrencyList",J.map(function(e){var t=W(e).symbol;return{value:e,label:t===e?e:"".concat(e," ").concat(Object(S.trimEnd)(t,"."))}})),n}return g()(t,e),p()(t,[{key:"componentDidMount",value:function(){this.injectPaymentAttributes();var e=this.props,t=e.attributes,n=e.hasPublishAction;!t.productId&&n&&this.saveProduct()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.hasPublishAction,r=t.isSelected;Object(S.isEqual)(e.simplePayment,this.props.simplePayment)||this.injectPaymentAttributes(),!e.isSaving&&this.props.isSaving&&n&&this.validateAttributes()?this.saveProduct():e.isSelected&&!r&&this.validateAttributes()}},{key:"injectPaymentAttributes",value:function(){if(this.shouldInjectPaymentAttributes){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.simplePayment,o=t.content,i=t.currency,a=t.email,s=t.featuredMediaId,c=t.multiple,l=t.price,u=t.productId,p=t.title;u&&r&&(n({content:Object(S.get)(r,["content","raw"],o),currency:Object(S.get)(r,["meta","spay_currency"],i),email:Object(S.get)(r,["meta","spay_email"],a),featuredMediaId:Object(S.get)(r,["featured_media"],s),multiple:Boolean(Object(S.get)(r,["meta","spay_multiple"],Boolean(c))),price:Object(S.get)(r,["meta","spay_price"],l||void 0),title:Object(S.get)(r,["title","raw"],p)}),this.shouldInjectPaymentAttributes=!this.shouldInjectPaymentAttributes)}}},{key:"toApi",value:function(){var e=this.props.attributes,t=e.content,n=e.currency,r=e.email,o=e.featuredMediaId,i=e.multiple,a=e.price,s=e.productId;return{id:s,content:t,featured_media:o,meta:{spay_currency:n,spay_email:r,spay_multiple:i,spay_price:a},status:s?"publish":"draft",title:e.title}}},{key:"saveProduct",value:function(){var e=this;if(!this.state.isSavingProduct){var t=this.props,n=t.attributes,r=t.setAttributes,o=n.email,i=Object(x.dispatch)("core").saveEntityRecord;this.setState({isSavingProduct:!0},s()(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:i("postType","jp_pay_product",e.toApi()).then(function(e){return e&&r({productId:e.id}),e}).catch(function(t){if(t&&t.data){var n=t.data.key;e.setState({fieldEmailError:"spay_email"===n?Object(A.sprintf)(Object(L.a)("%s is not a valid email address."),o):null,fieldPriceError:"spay_price"===n?Object(L.a)("Invalid price."):null})}}).finally(function(){e.setState({isSavingProduct:!1})});case 1:case"end":return t.stop()}},t,this)})))}}},{key:"render",value:function(){var e=this.state,t=e.fieldEmailError,n=e.fieldPriceError,r=e.fieldTitleError,a=this.props,s=a.attributes,c=a.featuredMedia,l=a.instanceId,u=a.isSelected,p=a.setAttributes,h=a.simplePayment,d=s.content,f=s.currency,m=s.email,b=s.featuredMediaId,g=s.featuredMediaUrl,v=s.featuredMediaTitle,y=s.multiple,k=s.price,_=s.productId,j=s.title,C=g||c&&c.source_url,w=v||c&&c.alt_text,E=_&&!h;if(!u&&E)return Object(o.createElement)("div",{className:"simple-payments__loading"},Object(o.createElement)(V,{"aria-busy":"true",content:"█████",formattedPrice:"█████",title:"█████"}));if(!u&&m&&k&&j&&!t&&!n&&!r)return Object(o.createElement)(V,{"aria-busy":"false",content:d,featuredMediaUrl:C,featuredMediaTitle:w,formattedPrice:X(k,f),multiple:y,title:j});var x=E?i.Disabled:"div";return Object(o.createElement)(x,{className:"wp-block-jetpack-simple-payments"},Object(o.createElement)($,{featuredMediaId:b,featuredMediaUrl:C,featuredMediaTitle:w,setAttributes:p}),Object(o.createElement)("div",null,Object(o.createElement)(i.TextControl,{"aria-describedby":"".concat(l,"-title-error"),className:O()("simple-payments__field","simple-payments__field-title",{"simple-payments__field-has-error":r}),label:Object(L.a)("Item name"),onChange:this.handleTitleChange,placeholder:Object(L.a)("Item name"),required:!0,type:"text",value:j}),Object(o.createElement)(N,{id:"".concat(l,"-title-error"),isError:!0},r),Object(o.createElement)(i.TextareaControl,{className:"simple-payments__field simple-payments__field-content",label:Object(L.a)("Describe your item in a few words"),onChange:this.handleContentChange,placeholder:Object(L.a)("Describe your item in a few words"),value:d}),Object(o.createElement)("div",{className:"simple-payments__price-container"},Object(o.createElement)(i.SelectControl,{className:"simple-payments__field simple-payments__field-currency",label:Object(L.a)("Currency"),onChange:this.handleCurrencyChange,options:this.getCurrencyList,value:f}),Object(o.createElement)(i.TextControl,{"aria-describedby":"".concat(l,"-price-error"),className:O()("simple-payments__field","simple-payments__field-price",{"simple-payments__field-has-error":n}),label:Object(L.a)("Price"),onChange:this.handlePriceChange,placeholder:X(0,f,!1),required:!0,step:"1",type:"number",value:k||""}),Object(o.createElement)(N,{id:"".concat(l,"-price-error"),isError:!0},n)),Object(o.createElement)("div",{className:"simple-payments__field-multiple"},Object(o.createElement)(i.ToggleControl,{checked:Boolean(y),label:Object(L.a)("Allow people to buy more than one item at a time"),onChange:this.handleMultipleChange})),Object(o.createElement)(i.TextControl,{"aria-describedby":"".concat(l,"-email-").concat(t?"error":"help"),className:O()("simple-payments__field","simple-payments__field-email",{"simple-payments__field-has-error":t}),label:Object(L.a)("Email"),onChange:this.handleEmailChange,placeholder:Object(L.a)("Email"),required:!0,type:"email",value:m}),Object(o.createElement)(N,{id:"".concat(l,"-email-error"),isError:!0},t),Object(o.createElement)(N,{id:"".concat(l,"-email-help")},Object(L.a)("Enter the email address associated with your PayPal account. Don’t have an account?")+" ",Object(o.createElement)(i.ExternalLink,{href:"https://www.paypal.com/"},Object(L.a)("Create one on PayPal")))))}}]),t}(o.Component),ee=Object(x.withSelect)(function(e,t){var n=e("core"),r=n.getEntityRecord,o=n.getMedia,i=e("core/editor"),a=i.isSavingPost,s=i.getCurrentPost,c=t.attributes,l=c.productId,u=c.featuredMediaId,p=l?Object(S.pick)(r("postType","jp_pay_product",l),[["content"],["meta","spay_currency"],["meta","spay_email"],["meta","spay_multiple"],["meta","spay_price"],["title","raw"],["featured_media"]]):void 0;return{hasPublishAction:!!Object(S.get)(s(),["_links","wp:action-publish"]),isSaving:!!a(),simplePayment:p,featuredMedia:u?o(u):null}}),te=Object(E.compose)(ee,E.withInstanceId)(Q);n(240);var ne={title:Object(L.a)("Simple Payments button"),description:Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",null,Object(L.a)("Lets you create and embed credit and debit card payment buttons with minimal setup.")),Object(o.createElement)(i.ExternalLink,{href:"https://support.wordpress.com/simple-payments/"},Object(L.a)("Support reference"))),icon:Object(o.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(i.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(o.createElement)(i.Path,{d:"M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"})),category:"jetpack",keywords:[Object(L.c)("shop","block search term"),Object(L.c)("sell","block search term"),"PayPal"],attributes:{currency:{type:"string",default:"USD"},content:{type:"string",default:""},email:{type:"string",default:""},featuredMediaId:{type:"number",default:0},featuredMediaUrl:{type:"string",default:null},featuredMediaTitle:{type:"string",default:null},multiple:{type:"boolean",default:!1},price:{type:"number"},productId:{type:"number"},title:{type:"string",default:""}},transforms:{from:[{type:"shortcode",tag:"simple-payment",attributes:{productId:{type:"number",shortcode:function(e){var t=e.named.id;if(t){var n=parseInt(t,10);return n||void 0}}}}}]},edit:te,save:function(e){var t=e.attributes.productId;return t?Object(o.createElement)(o.RawHTML,null,'[simple-payment id="'.concat(t,'"]')):null},supports:{className:!1,customClassName:!1,html:!1,reusable:!1}};Object(r.a)("simple-payments",ne)},function(e,t,n){"use strict";n.r(t);var r=n(22),o=n(20),i=n.n(o),a=n(0),s=n(18),c=n(3),l=n(11),u=(n(113),n(7)),p=n.n(u),h=n(6),d=n.n(h),f=n(8),m=n.n(f),b=n(9),g=n.n(b),v=n(10),y=n.n(v),k=n(2),_=n.n(k),j=n(12),O=n.n(j),C=n(14),w=n(46),E=n.n(w),x=n(19),S=n(1),A=n(21),D=n(37),M=n(43),T=["jetpack/markdown","core/paragraph","core/image","core/heading","core/gallery","core/list","core/quote","core/shortcode","core/audio","core/code","core/cover","core/file","core/html","core/separator","core/spacer","core/subhead","core/table","core/verse","core/video"],F=function(e){function t(){var e,n;p()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];(n=m()(this,(e=g()(t)).call.apply(e,[this].concat(o)))).onChangeSubject=n.onChangeSubject.bind(_()(_()(n))),n.onBlurTo=n.onBlurTo.bind(_()(_()(n))),n.onChangeTo=n.onChangeTo.bind(_()(_()(n))),n.onChangeSubmit=n.onChangeSubmit.bind(_()(_()(n))),n.onFormSettingsSet=n.onFormSettingsSet.bind(_()(_()(n))),n.getToValidationError=n.getToValidationError.bind(_()(_()(n))),n.renderToAndSubjectFields=n.renderToAndSubjectFields.bind(_()(_()(n))),n.preventEnterSubmittion=n.preventEnterSubmittion.bind(_()(_()(n))),n.hasEmailError=n.hasEmailError.bind(_()(_()(n)));var a=(o[0].attributes.to?o[0].attributes.to:"").split(",").map(n.getToValidationError).filter(Boolean);return n.state={toError:a&&a.length?a:null},n}return y()(t,e),d()(t,[{key:"getIntroMessage",value:function(){return Object(S.a)("You’ll receive an email notification each time someone fills out the form. Where should it go, and what should the subject line be?")}},{key:"getEmailHelpMessage",value:function(){return Object(S.a)("You can enter multiple email addresses separated by commas.")}},{key:"onChangeSubject",value:function(e){this.props.setAttributes({subject:e})}},{key:"getToValidationError",value:function(e){return 0!==(e=e.trim()).length&&(!E.a.validate(e)&&{email:e})}},{key:"onBlurTo",value:function(e){var t=e.target.value.split(",").map(this.getToValidationError).filter(Boolean);t&&t.length&&this.setState({toError:t})}},{key:"onChangeTo",value:function(e){if(0===e.trim().length)return this.setState({toError:null}),void this.props.setAttributes({to:e});this.setState({toError:null}),this.props.setAttributes({to:e})}},{key:"onChangeSubmit",value:function(e){this.props.setAttributes({submitButtonText:e})}},{key:"onFormSettingsSet",value:function(e){e.preventDefault(),this.state.toError||this.props.setAttributes({hasFormSettingsSet:"yes"})}},{key:"getfieldEmailError",value:function(e){if(e){if(1===e.length)return e[0]&&e[0].email?Object(C.sprintf)(Object(S.a)("%s is not a valid email address."),e[0].email):e[0];if(2===e.length)return Object(C.sprintf)(Object(S.a)("%s and %s are not a valid email address."),e[0].email,e[1].email);var t=e.map(function(e){return e.email});return Object(C.sprintf)(Object(S.a)("%s are not a valid email address."),t.join(", "))}return null}},{key:"preventEnterSubmittion",value:function(e){"Enter"===e.key&&(e.preventDefault(),e.stopPropagation())}},{key:"renderToAndSubjectFields",value:function(){var e=this.state.toError,t=this.props,n=t.instanceId,r=t.attributes,o=r.subject,i=r.to;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(c.TextControl,{"aria-describedby":"contact-form-".concat(n,"-email-").concat(this.hasEmailError()?"error":"help"),label:Object(S.a)("Email address"),placeholder:Object(S.a)("name@example.com"),onKeyDown:this.preventEnterSubmittion,value:i,onBlur:this.onBlurTo,onChange:this.onChangeTo}),Object(a.createElement)(M.default,{isError:!0,id:"contact-form-".concat(n,"-email-error")},this.getfieldEmailError(e)),Object(a.createElement)(M.default,{id:"contact-form-".concat(n,"-email-help")},this.getEmailHelpMessage()),Object(a.createElement)(c.TextControl,{label:Object(S.a)("Email subject line"),value:o,placeholder:Object(S.a)("Let's work together"),onChange:this.onChangeSubject}))}},{key:"hasEmailError",value:function(){var e=this.state.toError;return e&&e.length>0}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.attributes.hasFormSettingsSet,r=O()(t,"jetpack-contact-form",{"has-intro":!n});return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(l.InspectorControls,null,Object(a.createElement)(c.PanelBody,{title:Object(S.a)("Email feedback settings")},this.renderToAndSubjectFields())),Object(a.createElement)("div",{className:r},!n&&Object(a.createElement)(c.Placeholder,{label:Object(S.a)("Form"),icon:Object(A.a)(Object(a.createElement)(c.Path,{d:"M13 7.5h5v2h-5zm0 7h5v2h-5zM19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zM11 6H6v5h5V6zm-1 4H7V7h3v3zm1 3H6v5h5v-5zm-1 4H7v-3h3v3z"}))},Object(a.createElement)("form",{onSubmit:this.onFormSettingsSet},Object(a.createElement)("p",{className:"jetpack-contact-form__intro-message"},this.getIntroMessage()),this.renderToAndSubjectFields(),Object(a.createElement)("p",{className:"jetpack-contact-form__intro-message"},Object(S.a)("(If you leave these blank, notifications will go to the author with the post or page title as the subject line.)")),Object(a.createElement)("div",{className:"jetpack-contact-form__create"},Object(a.createElement)(c.Button,{isPrimary:!0,type:"submit",disabled:this.hasEmailError()},Object(S.a)("Add form"))))),n&&Object(a.createElement)(l.InnerBlocks,{allowedBlocks:T,templateLock:!1,template:[["jetpack/field-name",{required:!0}],["jetpack/field-email",{required:!0}],["jetpack/field-url",{}],["jetpack/field-textarea",{}]]}),n&&Object(a.createElement)(D.a,this.props)))}}]),t}(a.Component),z=Object(x.compose)([x.withInstanceId])(F),P=function(e){var t=e.setAttributes,n=e.label,r=e.resetFocus,o=e.isSelected,i=e.required;return Object(a.createElement)("div",{className:"jetpack-field-label"},Object(a.createElement)(l.PlainText,{value:n,className:"jetpack-field-label__input",onChange:function(e){r&&r(),t({label:e})},placeholder:Object(S.a)("Write label…")}),o&&Object(a.createElement)(c.ToggleControl,{label:Object(S.a)("Required"),className:"jetpack-field-label__required",checked:i,onChange:function(e){return t({required:e})}}),!o&&i&&Object(a.createElement)("span",{className:"required"},Object(S.a)("(required)")))};var N=function(e){var t=e.isSelected,n=e.type,r=e.required,o=e.label,i=e.setAttributes,s=e.defaultValue,u=e.placeholder,p=e.id;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("div",{className:O()("jetpack-field",{"is-selected":t})},Object(a.createElement)(c.TextControl,{type:n,label:Object(a.createElement)(P,{required:r,label:o,setAttributes:i,isSelected:t}),placeholder:u,value:u,onChange:function(e){return i({placeholder:e})},title:Object(S.a)("Set the placeholder text")})),Object(a.createElement)(l.InspectorControls,null,Object(a.createElement)(c.PanelBody,{title:Object(S.a)("Field Settings")},Object(a.createElement)(c.TextControl,{label:Object(S.a)("Default Value"),value:s,onChange:function(e){return i({defaultValue:e})}}),Object(a.createElement)(c.TextControl,{label:Object(S.a)("ID"),value:p,onChange:function(e){return i({id:e})}}))))};var L=function(e){var t=e.required,n=e.label,r=e.setAttributes,o=e.isSelected,i=e.defaultValue,s=e.placeholder,u=e.id;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("div",{className:"jetpack-field"},Object(a.createElement)(c.TextareaControl,{label:Object(a.createElement)(P,{required:t,label:n,setAttributes:r,isSelected:o}),placeholder:s,value:s,onChange:function(e){return r({placeholder:e})},title:Object(S.a)("Set the placeholder text")})),Object(a.createElement)(l.InspectorControls,null,Object(a.createElement)(c.PanelBody,{title:Object(S.a)("Field Settings")},Object(a.createElement)(c.TextControl,{label:Object(S.a)("Default Value"),value:i,onChange:function(e){return r({defaultValue:e})}}),Object(a.createElement)(c.TextControl,{label:Object(S.a)("ID"),value:u,onChange:function(e){return r({id:e})}}))))},R=Object(x.withInstanceId)(function(e){var t=e.instanceId,n=e.required,r=e.label,o=e.setAttributes,i=e.isSelected,s=e.defaultValue,u=e.id;return Object(a.createElement)(c.BaseControl,{id:"jetpack-field-checkbox-".concat(t),className:"jetpack-field jetpack-field-checkbox",label:Object(a.createElement)(a.Fragment,null,Object(a.createElement)("input",{className:"jetpack-field-checkbox__checkbox",type:"checkbox",disabled:!0,checked:s}),Object(a.createElement)(P,{required:n,label:r,setAttributes:o,isSelected:i}),Object(a.createElement)(l.InspectorControls,null,Object(a.createElement)(c.PanelBody,{title:Object(S.a)("Field Settings")},Object(a.createElement)(c.ToggleControl,{label:Object(S.a)("Default Checked State"),checked:s,onChange:function(e){return o({defaultValue:e})}}),Object(a.createElement)(c.TextControl,{label:Object(S.a)("ID"),value:u,onChange:function(e){return o({id:e})}}))))})}),I=n(24),q=n.n(I),B=function(e){function t(){var e,n;p()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=m()(this,(e=g()(t)).call.apply(e,[this].concat(o)))).onChangeOption=n.onChangeOption.bind(_()(_()(n))),n.onKeyPress=n.onKeyPress.bind(_()(_()(n))),n.onDeleteOption=n.onDeleteOption.bind(_()(_()(n))),n.textInput=Object(a.createRef)(),n}return y()(t,e),d()(t,[{key:"componentDidMount",value:function(){this.props.isInFocus&&this.textInput.current.focus()}},{key:"componentDidUpdate",value:function(){this.props.isInFocus&&this.textInput.current.focus()}},{key:"onChangeOption",value:function(e){this.props.onChangeOption(this.props.index,e.target.value)}},{key:"onKeyPress",value:function(e){return"Enter"===e.key?(this.props.onAddOption(this.props.index),void e.preventDefault()):"Backspace"===e.key&&""===e.target.value?(this.props.onChangeOption(this.props.index),void e.preventDefault()):void 0}},{key:"onDeleteOption",value:function(){this.props.onChangeOption(this.props.index)}},{key:"render",value:function(){var e=this.props,t=e.isSelected,n=e.option,r=e.type;return Object(a.createElement)("li",{className:"jetpack-option"},r&&"select"!==r&&Object(a.createElement)("input",{className:"jetpack-option__type",type:r,disabled:!0}),Object(a.createElement)("input",{type:"text",className:"jetpack-option__input",value:n,placeholder:Object(S.a)("Write option…"),onChange:this.onChangeOption,onKeyDown:this.onKeyPress,ref:this.textInput}),t&&Object(a.createElement)(c.IconButton,{className:"jetpack-option__remove",icon:"trash",label:Object(S.a)("Remove option"),onClick:this.onDeleteOption}))}}]),t}(a.Component),V=function(e){function t(){var e,n;p()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=m()(this,(e=g()(t)).call.apply(e,[this].concat(o)))).onChangeOption=n.onChangeOption.bind(_()(_()(n))),n.addNewOption=n.addNewOption.bind(_()(_()(n))),n.state={inFocus:null},n}return y()(t,e),d()(t,[{key:"onChangeOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.props.options.slice(0);null===t?(n.splice(e,1),e>0&&this.setState({inFocus:e-1})):(n.splice(e,1,t),this.setState({inFocus:e})),this.props.setAttributes({options:n})}},{key:"addNewOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.props.options.slice(0),n=0;"object"===q()(e)?(t.push(""),n=t.length-1):(t.splice(e+1,0,""),n=e+1),this.setState({inFocus:n}),this.props.setAttributes({options:t})}},{key:"render",value:function(){var e=this,t=this.props,n=t.type,r=t.instanceId,o=t.required,i=t.label,s=t.setAttributes,u=t.isSelected,p=t.id,h=this.props.options,d=this.state.inFocus;return h.length||(h=[""],d=0),Object(a.createElement)(a.Fragment,null,Object(a.createElement)(c.BaseControl,{id:"jetpack-field-multiple-".concat(r),className:"jetpack-field jetpack-field-multiple",label:Object(a.createElement)(P,{required:o,label:i,setAttributes:s,isSelected:u,resetFocus:function(){return e.setState({inFocus:null})}})},Object(a.createElement)("ol",{className:"jetpack-field-multiple__list",id:"jetpack-field-multiple-".concat(r)},h.map(function(t,r){return Object(a.createElement)(B,{type:n,key:r,option:t,index:r,onChangeOption:e.onChangeOption,onAddOption:e.addNewOption,isInFocus:r===d&&u,isSelected:u})})),u&&Object(a.createElement)(c.IconButton,{className:"jetpack-field-multiple__add-option",icon:"insert",label:Object(S.a)("Insert option"),onClick:this.addNewOption},Object(S.a)("Add option"))),Object(a.createElement)(l.InspectorControls,null,Object(a.createElement)(c.PanelBody,{title:Object(S.a)("Field Settings")},Object(a.createElement)(c.TextControl,{label:Object(S.a)("ID"),value:p,onChange:function(e){return s({id:e})}}))))}}]),t}(a.Component),U=Object(x.withInstanceId)(V),H={title:Object(S.a)("Form"),description:Object(S.a)("A simple way to get feedback from folks visiting your site."),icon:Object(A.a)(Object(a.createElement)(c.Path,{d:"M13 7.5h5v2h-5zm0 7h5v2h-5zM19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zM11 6H6v5h5V6zm-1 4H7V7h3v3zm1 3H6v5h5v-5zm-1 4H7v-3h3v3z"})),keywords:[Object(S.a)("email"),Object(S.a)("feedback"),Object(S.a)("contact")],category:"jetpack",supports:{reusable:!1,html:!1},attributes:{subject:{type:"string",default:""},to:{type:"string",default:""},submitButtonText:{type:"string",default:Object(S.a)("Submit")},customBackgroundButtonColor:{type:"string"},customTextButtonColor:{type:"string"},submitButtonClasses:{type:"string"},hasFormSettingsSet:{type:"string",default:null},has_form_settings_set:{type:"string",default:null},submit_button_text:{type:"string",default:Object(S.a)("Submit")}},edit:z,save:l.InnerBlocks.Content,deprecated:[{attributes:{subject:{type:"string",default:""},to:{type:"string",default:""},submit_button_text:{type:"string",default:Object(S.a)("Submit")},has_form_settings_set:{type:"string",default:null}},migrate:function(e){return{submitButtonText:e.submit_button_text,hasFormSettingsSet:e.has_form_settings_set,to:e.to,subject:e.subject}},isEligible:function(e){return!(!e.has_form_settings_set&&"Submit"===e.submit_button_text)},save:l.InnerBlocks.Content}]},$={category:"jetpack",parent:["jetpack/contact-form"],supports:{reusable:!1,html:!1},attributes:{label:{type:"string",default:null},required:{type:"boolean",default:!1},options:{type:"array",default:[]},defaultValue:{type:"string",default:""},placeholder:{type:"string",default:""},id:{type:"string",default:""}},transforms:{to:[{type:"block",blocks:["jetpack/field-text"],isMatch:function(e){return!e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-text",e)}},{type:"block",blocks:["jetpack/field-name"],isMatch:function(e){return!e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-name",e)}},{type:"block",blocks:["jetpack/field-email"],isMatch:function(e){return!e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-email",e)}},{type:"block",blocks:["jetpack/field-url"],isMatch:function(e){return!e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-url",e)}},{type:"block",blocks:["jetpack/field-date"],isMatch:function(e){return!e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-date",e)}},{type:"block",blocks:["jetpack/field-telephone"],isMatch:function(e){return!e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-telephone",e)}},{type:"block",blocks:["jetpack/field-textarea"],isMatch:function(e){return!e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-textarea",e)}},{type:"block",blocks:["jetpack/field-checkbox-multiple"],isMatch:function(e){return 1<=e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-checkbox-multiple",e)}},{type:"block",blocks:["jetpack/field-radio"],isMatch:function(e){return 1<=e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-radio",e)}},{type:"block",blocks:["jetpack/field-select"],isMatch:function(e){return 1<=e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-select",e)}}]},save:function(){return null}},G=function(e){var t=e.attributes,n=e.name;return null===t.label?Object(s.getBlockType)(n).title:t.label},K=function(e){return function(t){return Object(a.createElement)(N,{type:e,label:G(t),required:t.attributes.required,setAttributes:t.setAttributes,isSelected:t.isSelected,defaultValue:t.attributes.defaultValue,placeholder:t.attributes.placeholder,id:t.attributes.id})}},Z=function(e){return function(t){return Object(a.createElement)(U,{label:G(t),required:t.attributes.required,options:t.attributes.options,setAttributes:t.setAttributes,type:e,isSelected:t.isSelected,id:t.attributes.id})}},W=[{name:"field-text",settings:i()({},$,{title:Object(S.a)("Text"),description:Object(S.a)("When you need just a small amount of text, add a text input."),icon:Object(A.a)(Object(a.createElement)(c.Path,{d:"M4 9h16v2H4V9zm0 4h10v2H4v-2z"})),edit:K("text")})},{name:"field-name",settings:i()({},$,{title:Object(S.a)("Name"),description:Object(S.a)("Introductions are important. Add an input for folks to add their name."),icon:Object(A.a)(Object(a.createElement)(c.Path,{d:"M12 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 10c2.7 0 5.8 1.29 6 2H6c.23-.72 3.31-2 6-2m0-12C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 10c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"})),edit:K("text")})},{name:"field-email",settings:i()({},$,{title:Object(S.a)("Email"),keywords:[Object(S.a)("e-mail"),Object(S.a)("mail"),"email"],description:Object(S.a)("Want to reply to folks? Add an email address input."),icon:Object(A.a)(Object(a.createElement)(c.Path,{d:"M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z"})),edit:K("email")})},{name:"field-url",settings:i()({},$,{title:Object(S.a)("Website"),keywords:["url",Object(S.a)("internet page"),"link"],description:Object(S.a)("Add an address input for a website."),icon:Object(A.a)(Object(a.createElement)(c.Path,{d:"M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z"})),edit:K("url")})},{name:"field-date",settings:i()({},$,{title:Object(S.a)("Date Picker"),keywords:[Object(S.a)("Calendar"),Object(S.a)("day month year","block search term")],description:Object(S.a)("The best way to set a date. Add a date picker."),icon:Object(A.a)(Object(a.createElement)(c.Path,{d:"M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V9h14v10zm0-12H5V5h14v2zM7 11h5v5H7z"})),edit:K("text")})},{name:"field-telephone",settings:i()({},$,{title:Object(S.a)("Telephone"),keywords:[Object(S.a)("Phone"),Object(S.a)("Cellular phone"),Object(S.a)("Mobile")],description:Object(S.a)("Add a phone number input."),icon:Object(A.a)(Object(a.createElement)(c.Path,{d:"M6.54 5c.06.89.21 1.76.45 2.59l-1.2 1.2c-.41-1.2-.67-2.47-.76-3.79h1.51m9.86 12.02c.85.24 1.72.39 2.6.45v1.49c-1.32-.09-2.59-.35-3.8-.75l1.2-1.19M7.5 3H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.49c0-.55-.45-1-1-1-1.24 0-2.45-.2-3.57-.57-.1-.04-.21-.05-.31-.05-.26 0-.51.1-.71.29l-2.2 2.2c-2.83-1.45-5.15-3.76-6.59-6.59l2.2-2.2c.28-.28.36-.67.25-1.02C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1z"})),edit:K("tel")})},{name:"field-textarea",settings:i()({},$,{title:Object(S.a)("Message"),keywords:[Object(S.a)("Textarea"),"textarea",Object(S.a)("Multiline text")],description:Object(S.a)("Let folks speak their mind. This text box is great for longer responses."),icon:Object(A.a)(Object(a.createElement)(c.Path,{d:"M21 11.01L3 11v2h18zM3 16h12v2H3zM21 6H3v2.01L21 8z"})),edit:function(e){return Object(a.createElement)(L,{label:G(e),required:e.attributes.required,setAttributes:e.setAttributes,isSelected:e.isSelected,defaultValue:e.attributes.defaultValue,placeholder:e.attributes.placeholder,id:e.attributes.id})}})},{name:"field-checkbox",settings:i()({},$,{title:Object(S.a)("Checkbox"),keywords:[Object(S.a)("Confirm"),Object(S.a)("Accept")],description:Object(S.a)("Add a single checkbox."),icon:Object(A.a)(Object(a.createElement)(c.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zM17.99 9l-1.41-1.42-6.59 6.59-2.58-2.57-1.42 1.41 4 3.99z"})),edit:function(e){return Object(a.createElement)(R,{label:e.attributes.label,required:e.attributes.required,setAttributes:e.setAttributes,isSelected:e.isSelected,defaultValue:e.attributes.defaultValue,id:e.attributes.id})},attributes:i()({},$.attributes,{label:{type:"string",default:""}})})},{name:"field-checkbox-multiple",settings:i()({},$,{title:Object(S.a)("Checkbox Group"),keywords:[Object(S.a)("Choose Multiple"),Object(S.a)("Option")],description:Object(S.a)("People love options. Add several checkbox items."),icon:Object(A.a)(Object(a.createElement)(c.Path,{d:"M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.41z"})),edit:Z("checkbox"),attributes:i()({},$.attributes,{label:{type:"string",default:"Choose several"}})})},{name:"field-radio",settings:i()({},$,{title:Object(S.a)("Radio"),keywords:[Object(S.a)("Choose"),Object(S.a)("Select"),Object(S.a)("Option")],description:Object(S.a)("Inpsired by radios, only one radio item can be selected at a time. Add several radio button items."),icon:Object(A.a)(Object(a.createElement)(a.Fragment,null,Object(a.createElement)(c.Path,{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),Object(a.createElement)(c.Circle,{cx:"12",cy:"12",r:"5"}))),edit:Z("radio"),attributes:i()({},$.attributes,{label:{type:"string",default:"Choose one"}})})},{name:"field-select",settings:i()({},$,{title:Object(S.a)("Select"),keywords:[Object(S.a)("Choose"),Object(S.a)("Dropdown"),Object(S.a)("Option")],description:Object(S.a)("Compact, but powerful. Add a select box with several items."),icon:Object(A.a)(Object(a.createElement)(c.Path,{d:"M3 17h18v2H3zm16-5v1H5v-1h14m2-2H3v5h18v-5zM3 6h18v2H3z"})),edit:Z("select"),attributes:i()({},$.attributes,{label:{type:"string",default:"Select one"}})})}];Object(r.a)("contact-form",H,W)},function(e,t,n){"use strict";n.r(t);var r=n(22),o=n(23),i=n(7),a=n.n(i),s=n(6),c=n.n(s),l=n(8),u=n.n(l),p=n(9),h=n.n(p),d=n(10),f=n.n(d),m=n(2),b=n.n(m),g=n(4),v=n.n(g),y=n(0),k=n(29),_=n.n(k),j=n(1),O=n(3),C=n(11),w=n(15),E=n.n(w),x=n(12),S=n.n(x),A=n(5),D=n(28),M=n(14),T=n(19);function F(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=[],r=0;r<e.length;r++){var o=e[r],i=o.keywords,a=void 0===i?[]:i;if("string"==typeof o.label&&(a=[].concat(E()(a),[o.label])),n.push(o),n.length===t)break}return n}var z=function(e){function t(){var e;return a()(this,t),e=u()(this,h()(t).apply(this,arguments)),v()(b()(b()(e)),"select",function(t){(e.props.completer.getOptionCompletion||{})(t),e.reset()}),v()(b()(b()(e)),"reset",function(){e.setState(e.constructor.getInitialState())}),v()(b()(b()(e)),"onChange",function(t){var n=e.props.completer,r=e.state.options;if(t){n&&(n.isDebounced?e.debouncedLoadOptions(n,t):e.loadOptions(n,t));var o=n?F(r):[];n&&e.setState({selectedIndex:0,filteredOptions:o,query:t})}else e.reset()}),v()(b()(b()(e)),"onKeyDown",function(t){var n=e.state,r=n.isOpen,o=n.selectedIndex,i=n.filteredOptions;if(r){var a;switch(t.keyCode){case D.UP:a=(0===o?i.length:o)-1,e.setState({selectedIndex:a});break;case D.DOWN:a=(o+1)%i.length,e.setState({selectedIndex:a});break;case D.ENTER:e.select(i[o]);break;case D.LEFT:case D.RIGHT:case D.ESCAPE:return void e.reset();default:return}t.preventDefault(),t.stopPropagation()}}),e.debouncedLoadOptions=Object(A.debounce)(e.loadOptions,250),e.state=e.constructor.getInitialState(),e}return f()(t,e),c()(t,null,[{key:"getInitialState",value:function(){return{selectedIndex:0,query:void 0,filteredOptions:[],isOpen:!1}}}]),c()(t,[{key:"componentWillUnmount",value:function(){this.debouncedLoadOptions.cancel()}},{key:"handleFocusOutside",value:function(){this.reset()}},{key:"loadOptions",value:function(e,t){var n=this,r=e.options,o=this.activePromise=Promise.resolve("function"==typeof r?r(t):r).then(function(t){var r;if(o===n.activePromise){var i=t.map(function(t,n){return{key:"".concat(n),value:t,label:e.getOptionLabel(t),keywords:e.getOptionKeywords?e.getOptionKeywords(t):[]}}),a=F(i),s=a.length===n.state.filteredOptions.length?n.state.selectedIndex:0;n.setState((r={},v()(r,"options",i),v()(r,"filteredOptions",a),v()(r,"selectedIndex",s),v()(r,"isOpen",a.length>0),r)),n.announce(a)}})}},{key:"announce",value:function(e){var t=this.props.debouncedSpeak;t&&(e.length?t(Object(M.sprintf)(Object(j.b)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",e.length,"jetpack"),e.length),"assertive"):t(Object(j.a)("No results."),"assertive"))}},{key:"render",value:function(){var e=this,t=this.onChange,n=this.onKeyDown,r=this.props,o=r.children,i=r.instanceId,a=r.completer,s=this.state,c=s.selectedIndex,l=s.filteredOptions,u=(l[c]||{}).key,p=void 0===u?"":u,h=a.className,d=l.length>0,f=d?"components-autocomplete-listbox-".concat(i):null,m=d?"components-autocomplete-item-".concat(i,"-").concat(p):null;return Object(y.createElement)("div",{className:"components-autocomplete"},o({isExpanded:d,listBoxId:f,activeId:m,onChange:t,onKeyDown:n}),d&&Object(y.createElement)(O.Popover,{focusOnMount:!1,onClose:this.reset,position:"top center",className:"components-autocomplete__popover",noArrow:!0},Object(y.createElement)("div",{id:f,role:"listbox",className:"components-autocomplete__results"},Object(A.map)(l,function(t,n){return Object(y.createElement)(O.Button,{key:t.key,id:"components-autocomplete-item-".concat(i,"-").concat(t.key),role:"option","aria-selected":n===c,disabled:t.isDisabled,className:S()("components-autocomplete__result",h,{"is-selected":n===c}),onClick:function(){return e.select(t)}},t.label)}))))}}]),t}(y.Component),P=Object(T.compose)([O.withSpokenMessages,T.withInstanceId,O.withFocusOutside])(z),N=Object(j.a)("Add a marker..."),L=function(e){function t(){var e;return a()(this,t),e=u()(this,h()(t).apply(this,arguments)),v()(b()(b()(e)),"getOptionCompletion",function(t){var n=t.value,r={placeTitle:n.text,title:n.text,caption:n.place_name,id:n.id,coordinates:{longitude:n.geometry.coordinates[0],latitude:n.geometry.coordinates[1]}};return e.props.onAddPoint(r),n.text}),v()(b()(b()(e)),"search",function(t){var n=e.props,r=n.apiKey,o=n.onError,i="https://api.mapbox.com/geocoding/v5/mapbox.places/"+encodeURI(t)+".json?access_token="+r;return new Promise(function(e,t){var n=new XMLHttpRequest;n.open("GET",i),n.onload=function(){if(200===n.status){var r=JSON.parse(n.responseText);e(r.features)}else{var i=JSON.parse(n.responseText);o(i.statusText,i.responseJSON.message),t(new Error("Mapbox Places Error"))}},n.send()})}),v()(b()(b()(e)),"onReset",function(){e.textRef.current.value=null}),e.textRef=Object(y.createRef)(),e.containerRef=Object(y.createRef)(),e.state={isEmpty:!0},e.autocompleter={name:"placeSearch",options:e.search,isDebounced:!0,getOptionLabel:function(e){return Object(y.createElement)("span",null,e.place_name)},getOptionKeywords:function(e){return[e.place_name]},getOptionCompletion:e.getOptionCompletion},e}return f()(t,e),c()(t,[{key:"componentDidMount",value:function(){var e=this;setTimeout(function(){e.containerRef.current.querySelector("input").focus()},50)}},{key:"render",value:function(){var e=this,t=this.props.label;return Object(y.createElement)("div",{ref:this.containerRef},Object(y.createElement)(O.BaseControl,{label:t,className:"components-location-search"},Object(y.createElement)(P,{completer:this.autocompleter,onReset:this.onReset},function(t){var n=t.isExpanded,r=t.listBoxId,o=t.activeId,i=t.onChange,a=t.onKeyDown;return Object(y.createElement)(O.TextControl,{placeholder:N,ref:e.textRef,onChange:i,"aria-expanded":n,"aria-owns":r,"aria-activedescendant":o,onKeyDown:a})})))}}]),t}(y.Component);L.defaultProps={onError:function(){}};var R=L,I=(n(117),function(e){function t(){return a()(this,t),u()(this,h()(t).apply(this,arguments))}return f()(t,e),c()(t,[{key:"render",value:function(){var e=this.props,t=e.onClose,n=e.onAddPoint,r=e.onError,o=e.apiKey;return Object(y.createElement)(O.Button,{className:"component__add-point"},Object(j.a)("Add marker"),Object(y.createElement)(O.Popover,{className:"component__add-point__popover"},Object(y.createElement)(O.Button,{className:"component__add-point__close",onClick:t},Object(y.createElement)(O.Dashicon,{icon:"no"})),Object(y.createElement)(R,{onAddPoint:n,label:Object(j.a)("Add a location"),apiKey:o,onError:r})))}}]),t}(y.Component));I.defaultProps={onAddPoint:function(){},onClose:function(){},onError:function(){}};var q=I,B=(n(119),function(e){function t(){var e;return a()(this,t),e=u()(this,h()(t).apply(this,arguments)),v()(b()(b()(e)),"onDeletePoint",function(t){var n=parseInt(t.target.getAttribute("data-id")),r=e.props,o=r.points,i=r.onChange,a=o.slice(0);a.splice(n,1),i(a)}),e.state={selectedCell:null},e}return f()(t,e),c()(t,[{key:"setMarkerField",value:function(e,t,n){var r=this.props,o=r.points,i=r.onChange,a=o.slice(0);a[n][e]=t,i(a)}},{key:"render",value:function(){var e=this,t=this.props.points.map(function(t,n){return Object(y.createElement)(O.PanelBody,{title:t.placeTitle,key:t.id,initialOpen:!1},Object(y.createElement)(O.TextControl,{label:"Marker Title",value:t.title,onChange:function(t){return e.setMarkerField("title",t,n)}}),Object(y.createElement)(O.TextareaControl,{label:"Marker Caption",value:t.caption,rows:"3",onChange:function(t){return e.setMarkerField("caption",t,n)}}),Object(y.createElement)(O.Button,{"data-id":n,onClick:e.onDeletePoint,className:"component__locations__delete-btn"},Object(y.createElement)(O.Dashicon,{icon:"trash",size:"15"})," Delete Marker"))});return Object(y.createElement)("div",{className:"component__locations"},Object(y.createElement)(O.Panel,{className:"component__locations__panel"},t))}}]),t}(y.Component));B.defaultProps={points:Object.freeze([]),onChange:function(){}};var V=B,U=n(51),H=(n(121),function(e){function t(){return a()(this,t),u()(this,h()(t).apply(this,arguments))}return f()(t,e),c()(t,[{key:"render",value:function(){var e=this.props,t=e.options,n=e.value,r=e.onChange,o=e.label,i=t.map(function(e,t){var o=S()("component__map-theme-picker__button","is-theme-"+e.value,e.value===n?"is-selected":"");return Object(y.createElement)(O.Button,{className:o,title:e.label,key:t,onClick:function(){return r(e.value)}},e.label)});return Object(y.createElement)("div",{className:"component__map-theme-picker components-base-control"},Object(y.createElement)("label",{className:"components-base-control__label"},o),Object(y.createElement)(O.ButtonGroup,null,i))}}]),t}(y.Component));H.defaultProps={label:"",options:[],value:null,onChange:function(){}};var $=H,G=0,K=function(e){function t(){var e;return a()(this,t),e=u()(this,h()(t).apply(this,arguments)),v()(b()(b()(e)),"addPoint",function(t){var n=e.props,r=n.attributes,o=n.setAttributes,i=r.points,a=i.slice(0),s=!1;i.map(function(e){e.id===t.id&&(s=!0)}),s||(a.push(t),o({points:a}),e.setState({addPointVisibility:!1}))}),v()(b()(b()(e)),"updateAlignment",function(t){e.props.setAttributes({align:t}),setTimeout(e.mapRef.current.sizeMap,0)}),v()(b()(b()(e)),"updateAPIKeyControl",function(t){e.setState({apiKeyControl:t})}),v()(b()(b()(e)),"updateAPIKey",function(){var t=e.props.noticeOperations,n=e.state.apiKeyControl;t.removeAllNotices(),n&&e.apiCall(n,"POST")}),v()(b()(b()(e)),"removeAPIKey",function(){e.apiCall(null,"DELETE")}),v()(b()(b()(e)),"onError",function(t,n){var r=e.props.noticeOperations;r.removeAllNotices(),r.createErrorNotice(n)}),e.state={addPointVisibility:!1,apiState:G},e.mapRef=Object(y.createRef)(),e}return f()(t,e),c()(t,[{key:"apiCall",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET",r=this.props.noticeOperations,o=this.state.apiKey,i="/wpcom/v2/service-api-keys/mapbox",a=t?{path:i,method:n,data:{service_api_key:t}}:{path:i,method:n};this.setState({apiRequestOutstanding:!0},function(){_()(a).then(function(t){r.removeAllNotices(),e.setState({apiState:t.service_api_key?2:1,apiKey:t.service_api_key,apiKeyControl:t.service_api_key,apiRequestOutstanding:!1})},function(t){e.onError(null,t.message),e.setState({apiRequestOutstanding:!1,apiKeyControl:o})})})}},{key:"componentDidMount",value:function(){this.apiCall()}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.setAttributes,i=t.attributes,a=t.noticeUI,s=t.notices,c=i.mapStyle,l=i.mapDetails,u=i.points,p=i.zoom,h=i.mapCenter,d=i.markerColor,f=i.align,m=this.state,b=m.addPointVisibility,g=m.apiKey,v=m.apiKeyControl,k=m.apiState,_=m.apiRequestOutstanding,w=Object(y.createElement)(y.Fragment,null,Object(y.createElement)(C.BlockControls,null,Object(y.createElement)(C.BlockAlignmentToolbar,{value:f,onChange:this.updateAlignment,controls:["center","wide","full"]}),Object(y.createElement)(O.Toolbar,null,Object(y.createElement)(O.IconButton,{icon:o.a.markerIcon,label:"Add a marker",onClick:function(){return e.setState({addPointVisibility:!0})}}))),Object(y.createElement)(C.InspectorControls,null,Object(y.createElement)(O.PanelBody,{title:Object(j.a)("Map Theme")},Object(y.createElement)($,{value:c,onChange:function(e){return r({mapStyle:e})},options:o.a.mapStyleOptions}),Object(y.createElement)(O.ToggleControl,{label:Object(j.a)("Show street names"),checked:l,onChange:function(e){return r({mapDetails:e})}})),Object(y.createElement)(C.PanelColorSettings,{title:Object(j.a)("Colors"),initialOpen:!0,colorSettings:[{value:d,onChange:function(e){return r({markerColor:e})},label:"Marker Color"}]}),u.length?Object(y.createElement)(O.PanelBody,{title:Object(j.a)("Markers"),initialOpen:!1},Object(y.createElement)(V,{points:u,onChange:function(e){r({points:e})}})):null,Object(y.createElement)(O.PanelBody,{title:Object(j.a)("Mapbox Access Token"),initialOpen:!1},Object(y.createElement)(O.TextControl,{label:Object(j.a)("Mapbox Access Token"),value:v,onChange:function(t){return e.setState({apiKeyControl:t})}}),Object(y.createElement)(O.ButtonGroup,null,Object(y.createElement)(O.Button,{type:"button",onClick:this.updateAPIKey,isDefault:!0},Object(j.a)("Update Token")),Object(y.createElement)(O.Button,{type:"button",onClick:this.removeAPIKey,isDefault:!0},Object(j.a)("Remove Token")))))),E=Object(y.createElement)(O.Placeholder,{icon:o.a.icon},Object(y.createElement)(O.Spinner,null)),x=Object(y.createElement)(O.Placeholder,{icon:o.a.icon,label:Object(j.a)("Map"),notices:s},Object(y.createElement)(y.Fragment,null,Object(y.createElement)("div",{className:"components-placeholder__instructions"},Object(j.a)("To use the map block, you need an Access Token."),Object(y.createElement)("br",null),Object(y.createElement)(O.ExternalLink,{href:"https://www.mapbox.com"},Object(j.a)("Create an account or log in to Mapbox.")),Object(y.createElement)("br",null),Object(j.a)("Locate and copy the default access token. Then, paste it into the field below.")),Object(y.createElement)(O.TextControl,{className:"wp-block-jetpack-map-components-text-control-api-key",disabled:_,placeholder:Object(j.a)("Paste Token Here"),value:v,onChange:this.updateAPIKeyControl}),Object(y.createElement)(O.Button,{className:"wp-block-jetpack-map-components-text-control-api-key-submit",isLarge:!0,disabled:_||!v||v.length<1,onClick:this.updateAPIKey},Object(j.a)("Set Token")))),S=Object(y.createElement)(y.Fragment,null,w,Object(y.createElement)("div",{className:n},Object(y.createElement)(U.a,{ref:this.mapRef,mapStyle:c,mapDetails:l,points:u,zoom:p,mapCenter:h,markerColor:d,onSetZoom:function(e){r({zoom:e})},admin:!0,apiKey:g,onSetPoints:function(e){return r({points:e})},onMapLoaded:function(){return e.setState({addPointVisibility:!0})},onMarkerClick:function(){return e.setState({addPointVisibility:!1})},onError:this.onError},b&&Object(y.createElement)(q,{onAddPoint:this.addPoint,onClose:function(){return e.setState({addPointVisibility:!1})},apiKey:g,onError:this.onError,tagName:"AddPoint"}))));return Object(y.createElement)(y.Fragment,null,a,k===G&&E,1===k&&x,2===k&&S)}}]),t}(y.Component),Z=Object(O.withNotices)(K),W=function(e){function t(){return a()(this,t),u()(this,h()(t).apply(this,arguments))}return f()(t,e),c()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.align,n=e.mapStyle,r=e.mapDetails,o=e.points,i=e.zoom,a=e.mapCenter,s=e.markerColor,c=o.map(function(e,t){var n=e.coordinates,r=n.longitude,o="https://www.google.com/maps/search/?api=1&query="+n.latitude+","+r;return Object(y.createElement)("li",{key:t},Object(y.createElement)("a",{href:o},e.title))}),l=t?"align".concat(t):null;return Object(y.createElement)("div",{className:l,"data-map-style":n,"data-map-details":r,"data-points":JSON.stringify(o),"data-zoom":i,"data-map-center":JSON.stringify(a),"data-marker-color":s},o.length>0&&Object(y.createElement)("ul",null,c))}}]),t}(y.Component),J=(n(74),n(123),o.a.name),Y={title:o.a.title,icon:o.a.icon,category:o.a.category,keywords:o.a.keywords,description:o.a.description,attributes:o.a.attributes,supports:o.a.supports,getEditWrapperProps:function(e){var t=e.align;if(-1!==o.a.validAlignments.indexOf(t))return{"data-align":t}},edit:Z,save:W};Object(r.a)(J,Y)},function(e,t,n){"use strict";n.r(t);var r=n(22),o=n(0),i=n(3),a=(n(125),n(7)),s=n.n(a),c=n(6),l=n.n(c),u=n(8),p=n.n(u),h=n(9),d=n.n(h),f=n(10),m=n.n(f),b=n(2),g=n.n(b),v=n(4),y=n.n(v),k=n(11),_=n(19),j=n(17),O=n(90),C=n.n(O),w=n(1),E=new C.a,x=function(e){"A"===e.target.nodeName&&(window.confirm(Object(w.a)("Are you sure you wish to leave this page?"))||e.preventDefault())},S=function(e){var t=e.className,n=e.source,r=void 0===n?"":n;return Object(o.createElement)(o.RawHTML,{className:t,onClick:x},r.length?E.render(r):"")},A="editor",D=function(e){function t(){var e,n;s()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=p()(this,(e=d()(t)).call.apply(e,[this].concat(o))),y()(g()(g()(n)),"input",null),y()(g()(g()(n)),"state",{activePanel:A}),y()(g()(g()(n)),"bindInput",function(e){n.input=e}),y()(g()(g()(n)),"updateSource",function(e){return n.props.setAttributes({source:e})}),y()(g()(g()(n)),"handleKeyDown",function(e){var t=n.props,r=t.attributes,o=t.removeBlock,i=r.source;8===e.keyCode&&""===i&&(o(),e.preventDefault())}),y()(g()(g()(n)),"toggleMode",function(e){return function(){return n.setState({activePanel:e})}}),n}return m()(t,e),l()(t,[{key:"componentDidUpdate",value:function(e){e.isSelected&&!this.props.isSelected&&"preview"===this.state.activePanel&&this.toggleMode(A)(),!e.isSelected&&this.props.isSelected&&this.state.activePanel===A&&this.input&&this.input.focus()}},{key:"isEmpty",value:function(){var e=this.props.attributes.source;return!e||""===e.trim()}},{key:"renderToolbarButton",value:function(e,t){var n=this.state.activePanel;return Object(o.createElement)("button",{className:"components-tab-button ".concat(n===e?"is-active":""),onClick:this.toggleMode(e)},Object(o.createElement)("span",null,t))}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.className,r=e.isSelected,i=t.source,a=this.state.activePanel;return!r&&this.isEmpty()?Object(o.createElement)("p",{className:"".concat(n,"__placeholder")},Object(w.a)("Write your _Markdown_ **here**...")):Object(o.createElement)("div",{className:n},Object(o.createElement)(k.BlockControls,null,Object(o.createElement)("div",{className:"components-toolbar"},this.renderToolbarButton(A,Object(w.a)("Markdown")),this.renderToolbarButton("preview",Object(w.a)("Preview")))),"preview"!==a&&r?Object(o.createElement)(k.PlainText,{className:"".concat(n,"__editor"),onChange:this.updateSource,onKeyDown:this.handleKeyDown,"aria-label":Object(w.a)("Markdown"),innerRef:this.bindInput,value:i}):Object(o.createElement)(S,{className:"".concat(n,"__preview"),source:i}))}}]),t}(o.Component),M=Object(_.compose)([Object(j.withSelect)(function(e){return{currentBlockId:e("core/editor").getSelectedBlockClientId()}}),Object(j.withDispatch)(function(e,t){var n=t.currentBlockId;return{removeBlock:function(){return e("core/editor").removeBlocks(n)}}})])(D),T={title:Object(w.a)("Markdown"),description:Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",null,Object(w.a)("Use regular characters and punctuation to style text, links, and lists.")),Object(o.createElement)(i.ExternalLink,{href:"https://en.support.wordpress.com/markdown-quick-reference/"},Object(w.a)("Support reference"))),icon:Object(o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 208 128"},Object(o.createElement)("rect",{width:"198",height:"118",x:"5",y:"5",ry:"10",stroke:"currentColor",strokeWidth:"10",fill:"none"}),Object(o.createElement)("path",{d:"M30 98v-68h20l20 25 20-25h20v68h-20v-39l-20 25-20-25v39zM155 98l-30-33h20v-35h20v35h20z"})),category:"jetpack",keywords:[Object(w.a)("formatting"),Object(w.a)("syntax"),Object(w.a)("markup")],attributes:{source:{type:"string"}},supports:{html:!1},edit:M,save:function(e){var t=e.attributes,n=e.className;return Object(o.createElement)(S,{className:n,source:t.source})}};Object(r.a)("markdown",T)},function(e,t,n){"use strict";n.r(t);var r=n(22),o=n(0),i=n(7),a=n.n(i),s=n(6),c=n.n(s),l=n(8),u=n.n(l),p=n(9),h=n.n(p),d=n(10),f=n.n(d),m=n(2),b=n.n(m),g=n(4),v=n.n(g),y=n(3),k=n(1),_=n(37),j=n(29),O=n.n(j),C=n(14),w=function(e){function t(){var e,n;a()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=u()(this,(e=h()(t)).call.apply(e,[this].concat(o))),v()(b()(b()(n)),"state",{subscriberCountString:""}),n}return f()(t,e),c()(t,[{key:"componentDidMount",value:function(){this.get_subscriber_count()}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.className,r=e.isSelected,i=e.setAttributes,a=t.subscribePlaceholder,s=t.showSubscribersTotal;return r?Object(o.createElement)("div",{className:n,role:"form"},Object(o.createElement)(y.ToggleControl,{label:Object(k.a)("Show total subscribers"),checked:s,onChange:function(){i({showSubscribersTotal:!s})}}),Object(o.createElement)(y.TextControl,{placeholder:a,disabled:!0,onChange:function(){}}),Object(o.createElement)(_.a,this.props)):Object(o.createElement)("div",{className:n,role:"form"},s&&Object(o.createElement)("p",{role:"heading"},this.state.subscriberCountString),Object(o.createElement)(y.TextControl,{placeholder:a}),Object(o.createElement)(_.a,this.props))}},{key:"get_subscriber_count",value:function(){var e=this;O()({path:"/wpcom/v2/subscribers/count"}).then(function(t){t.hasOwnProperty("count")?e.setState({subscriberCountString:Object(C.sprintf)(Object(C._n)("Join %s other subscriber","Join %s other subscribers",t.count),t.count)}):e.setState({subscriberCountString:Object(k.a)("Subscriber count unavailable")})})}},{key:"onChangeSubmit",value:function(e){this.props.setAttributes({submitButtonText:e})}}]),t}(o.Component);var E=n(21),x=n(5),S={title:Object(k.a)("Subscription Form"),description:Object(o.createElement)("p",null,Object(k.a)("A form enabling readers to get notifications when new posts are published from this site.")),icon:Object(E.a)(Object(o.createElement)(y.Path,{d:"M23 16v2h-3v3h-2v-3h-3v-2h3v-3h2v3h3zM20 2v9h-4v3h-3v4H4c-1.1 0-2-.9-2-2V2h18zM8 13v-1H4v1h4zm3-3H4v1h7v-1zm0-2H4v1h7V8zm7-4H4v2h14V4z"})),category:"jetpack",keywords:[Object(k.a)("subscribe"),Object(k.a)("join"),Object(k.a)("follow")],attributes:{subscribePlaceholder:{type:"string",default:Object(k.a)("Email Address")},subscribeButton:{type:"string",default:Object(k.a)("Subscribe")},showSubscribersTotal:{type:"boolean",default:!1},submitButtonText:{type:"string",default:Object(k.a)("Subscribe")},customBackgroundButtonColor:{type:"string"},customTextButtonColor:{type:"string"},submitButtonClasses:{type:"string"}},edit:w,save:function(e){var t=e.attributes,n=t.showSubscribersTotal,r=t.submitButtonClasses,i=t.customBackgroundButtonColor,a=t.customTextButtonColor,s=t.submitButtonText;return Object(o.createElement)(o.RawHTML,null,'[jetpack_subscription_form show_only_email_and_button="true" custom_background_button_color="'.concat(i,'" custom_text_button_color="').concat(a,'" submit_button_text="').concat(s,'" submit_button_classes="').concat(r,'" show_subscribers_total="').concat(n,'" ]'))},deprecated:[{attributes:{subscribeButton:{type:"string",default:Object(k.a)("Subscribe")},showSubscribersTotal:{type:"boolean",default:!1}},migrate:function(e){return{subscribeButton:"",submitButtonText:e.subscribeButton,showSubscribersTotal:e.showSubscribersTotal,customBackgroundButtonColor:"",customTextButtonColor:"",submitButtonClasses:""}},isEligible:function(e){return!!Object(x.isEmpty)(e.subscribeButton)},save:function(e){var t=e.attributes;return Object(o.createElement)(o.RawHTML,null,'[jetpack_subscription_form show_subscribers_total="'.concat(t.showSubscribersTotal,'" show_only_email_and_button="true"]'))}}]};Object(r.a)("subscriptions",S)},function(e,t,n){"use strict";n.r(t);var r=n(22),o=n(0),i=n(1),a=n(3),s=n(7),c=n.n(s),l=n(6),u=n.n(l),p=n(8),h=n.n(p),d=n(9),f=n.n(d),m=n(10),b=n.n(m),g=n(2),v=n.n(g),y=n(4),k=n.n(y),_=n(12),j=n.n(_),O=n(11),C="t1PkR1Vq0mzHueIFBvZSZErgFs9NBmYW",w=Object(i.a)("Search for a term or paste a Giphy URL"),E=function(e){function t(){var e,n;c()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=h()(this,(e=f()(t)).call.apply(e,[this].concat(i))),k()(v()(v()(n)),"textControlRef",Object(o.createRef)()),k()(v()(v()(n)),"state",{captionFocus:!1,results:null}),k()(v()(v()(n)),"onFormSubmit",function(e){e.preventDefault(),n.onSubmit()}),k()(v()(v()(n)),"onSubmit",function(){var e=n.props.attributes.searchText;n.parseSearch(e)}),k()(v()(v()(n)),"parseSearch",function(e){var t=null;-1!==e.indexOf("//giphy.com/gifs")&&(t=n.splitAndLast(n.splitAndLast(e,"/"),"-")),-1!==e.indexOf("//i.giphy.com")&&(t=n.splitAndLast(e,"/").replace(".gif",""));var r=e.match(/http[s]?:\/\/media.giphy.com\/media\/([A-Za-z0-9\-\.]+)\/giphy.gif/);return r&&(t=r[1]),t?n.fetch(n.urlForId(t)):n.fetch(n.urlForSearch(e))}),k()(v()(v()(n)),"urlForSearch",function(e){return"https://api.giphy.com/v1/gifs/search?q=".concat(encodeURIComponent(e),"&api_key=").concat(encodeURIComponent(C),"&limit=10")}),k()(v()(v()(n)),"urlForId",function(e){return"https://api.giphy.com/v1/gifs/".concat(encodeURIComponent(e),"?api_key=").concat(encodeURIComponent(C))}),k()(v()(v()(n)),"splitAndLast",function(e,t){var n=e.split(t);return n[n.length-1]}),k()(v()(v()(n)),"fetch",function(e){var t=new XMLHttpRequest;t.open("GET",e),t.onload=function(){if(200===t.status){var e=JSON.parse(t.responseText),r=void 0!==e.data.images?[e.data]:e.data,o=r[0];if(!o.images)return;n.setState({results:r},function(){n.selectGiphy(o)})}},t.send()}),k()(v()(v()(n)),"selectGiphy",function(e){var t=n.props.setAttributes,r=Math.floor(e.images.original.height/e.images.original.width*100),o="".concat(r,"%");t({giphyUrl:e.embed_url,paddingTop:o})}),k()(v()(v()(n)),"setFocus",function(){n.textControlRef.current.querySelector("input").focus(),n.setState({captionFocus:!1})}),k()(v()(v()(n)),"hasSearchText",function(){var e=n.props.attributes.searchText;return e&&e.length>0}),k()(v()(v()(n)),"thumbnailClicked",function(e){n.selectGiphy(e)}),n}return b()(t,e),u()(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.className,s=t.isSelected,c=t.setAttributes,l=n.align,u=n.caption,p=n.giphyUrl,h=n.searchText,d=n.paddingTop,f=this.state,m=f.captionFocus,b=f.results,g={paddingTop:d},v=j()(r,"align".concat(l)),y=Object(o.createElement)("form",{className:"wp-block-jetpack-gif_input-container",onSubmit:this.onFormSubmit,ref:this.textControlRef},Object(o.createElement)(a.TextControl,{className:"wp-block-jetpack-gif_input",label:w,placeholder:w,onChange:function(e){return c({searchText:e})},value:h}),Object(o.createElement)(a.Button,{isLarge:!0,onClick:this.onSubmit},Object(i.a)("Search")));return Object(o.createElement)("div",{className:v},Object(o.createElement)(O.InspectorControls,null,Object(o.createElement)(a.PanelBody,{className:"components-panel__body-gif-branding"},Object(o.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 202 22"},Object(o.createElement)(a.Path,{d:"M4.6 5.9H0v10h1.6v-3.1h3c4.8 0 4.8-6.9 0-6.9zm0 5.4h-3v-4h3c2.6.1 2.6 4 0 4zM51.2 12.3c2-.3 2.7-1.7 2.7-3.1 0-1.7-1.2-3.3-3.5-3.3h-4.6v10h1.6v-3.4h2.1l3 3.4h1.9l-.2-.3-3-3.3zM47.4 11V7.4h3c1.3 0 1.9.9 1.9 1.8s-.6 1.8-1.9 1.8h-3zM30.6 13.6L28 5.9h-1.1l-2.5 7.7-2.6-7.7H20l3.7 10H25l1.4-3.5L27.5 9l1.1 3.4 1.3 3.5h1.4l3.5-10h-1.7z"}),Object(o.createElement)(a.Path,{d:"M14.4 5.7c-3 0-5.1 2.2-5.1 5.2 0 2.6 1.6 5.1 5.1 5.1 3.5 0 5.1-2.5 5.1-5.2-.1-2.6-1.7-5.1-5.1-5.1zm-.1 8.9c-2.5 0-3.5-1.9-3.5-3.7 0-2.2 1.2-3.8 3.5-3.8 2.4 0 3.5 2 3.5 3.8.1 2-1 3.7-3.5 3.7zM57.7 11.6h5.5v-1.5h-5.5V7.4h5.7V5.9h-7.3v10h7.3v-1.6h-5.7zM38 14.3v-2.7h5.5v-1.5H38V7.4h5.7V5.9h-7.3v10h7.3v-1.6zM93 10.3l-2.7-4.4h-1.9V6l3.8 5.8v4.1h1.6v-4.1l4-5.8v-.1h-2zM69.3 5.9h-3.8v10h3.8c3.5 0 5.1-2.5 5-5.1-.1-2.5-1.6-4.9-5-4.9zm0 8.4h-2.2V7.4h2.2c2.3 0 3.4 1.7 3.4 3.4s-1 3.5-3.4 3.5zM86.3 10.7c.9-.4 1.4-1.1 1.4-2 0-2-1.5-2.8-3.4-2.8h-4.6v10h4.6c2 0 3.7-.7 3.7-2.8 0-.8-.5-2-1.7-2.4zm-5-3.4h3c1.2 0 1.8.7 1.8 1.4 0 .8-.6 1.3-1.8 1.3h-3V7.3zm3 7.1h-3v-2.9h3c.9 0 2.1.5 2.1 1.6 0 1-1.2 1.3-2.1 1.3zM113.9 13.3h5.3V16c-1.2.9-2.9 1.1-4 1.1-4.2 0-5.6-3.3-5.6-6 0-4.1 2.2-6.1 5.6-6.1 1.4 0 3.2.4 4.8 1.8l3.4-3.4C120.7.6 118.1 0 115.2 0c-7.8 0-11.4 5.6-11.4 11s3.1 10.9 11.4 10.9c4 0 7.6-1.4 8.9-4.1V8.6h-10.2v4.7zM171.9 8.5h-7.4V.6h-5.9v20.8h5.9v-7.8h7.4v7.8h5.9V.6h-5.9zM195.1.6l-4.5 7.1-4.3-7.1h-6.6v.2l7.9 12.3v8.3h5.9v-8.3L201.8.9V.6zM127.4.6h5.9v20.8h-5.9zM147.6.6h-10.1v20.8h5.9v-5.6h4.2c5.6-.1 8.3-3.4 8.3-7.6.1-4.1-2.7-7.6-8.3-7.6zm0 10.2h-4.2V5.6h4.2c1.6 0 2.5 1.2 2.5 2.6 0 1.4-.9 2.6-2.5 2.6z"})))),p?Object(o.createElement)("figure",null,s&&y,s&&b&&b.length>1&&Object(o.createElement)("div",{className:"wp-block-jetpack-gif_thumbnails-container"},b.map(function(t){if(t.embed_url===p)return null;var n={backgroundImage:"url(".concat(t.images.downsized_still.url,")")};return Object(o.createElement)("button",{className:"wp-block-jetpack-gif_thumbnail-container",key:t.id,onClick:function(){e.thumbnailClicked(t)},style:n})})),Object(o.createElement)("div",{className:"wp-block-jetpack-gif-wrapper",style:g},Object(o.createElement)("div",{className:"wp-block-jetpack-gif_cover",onClick:this.setFocus,onKeyDown:this.setFocus,role:"button",tabIndex:"0"}),Object(o.createElement)("iframe",{src:p,title:h})),(!O.RichText.isEmpty(u)||s)&&!!p&&Object(o.createElement)(O.RichText,{className:"wp-block-jetpack-gif-caption gallery-caption",inlineToolbar:!0,isSelected:m,unstableOnFocus:function(){e.setState({captionFocus:!0})},onChange:function(e){return c({caption:e})},placeholder:Object(i.a)("Write caption…"),tagName:"figcaption",value:u})):Object(o.createElement)(a.Placeholder,{className:"wp-block-jetpack-gif_placeholder",icon:S,label:x},y))}}]),t}(o.Component),x=(n(115),n(70),Object(i.a)("GIF")),S=Object(o.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(o.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(o.createElement)(a.Path,{d:"M18 13v7H4V6h5.02c.05-.71.22-1.38.48-2H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-5l-2-2zm-1.5 5h-11l2.75-3.53 1.96 2.36 2.75-3.54L16.5 18zm2.8-9.11c.44-.7.7-1.51.7-2.39C20 4.01 17.99 2 15.5 2S11 4.01 11 6.5s2.01 4.5 4.49 4.5c.88 0 1.7-.26 2.39-.7L21 13.42 22.42 12 19.3 8.89zM15.5 9C14.12 9 13 7.88 13 6.5S14.12 4 15.5 4 18 5.12 18 6.5 16.88 9 15.5 9z"})),A={title:x,icon:S,category:"jetpack",keywords:[Object(i.a)("animated"),Object(i.a)("giphy"),Object(i.a)("image")],description:Object(i.a)("Search for and insert an animated image."),attributes:{align:{type:"string",default:"center"},caption:{type:"string"},giphyUrl:{type:"string"},searchText:{type:"string"},paddingTop:{type:"string",default:"56.2%"}},supports:{html:!1,align:!0},edit:E,save:function(){return null}};Object(r.a)("gif",A)},function(e,t,n){"use strict";n.r(t);var r=n(22),o=n(0),i=n(3),a=(n(221),n(4)),s=n.n(a),c=n(7),l=n.n(c),u=n(6),p=n.n(u),h=n(8),d=n.n(h),f=n(9),m=n.n(f),b=n(10),g=n.n(b),v=n(12),y=n.n(v),k=n(11),_=n(5),j=n(17),O=n(1);function C(e){var t="related-posts__preview";return Object(o.createElement)("div",{className:"".concat(t,"-post")},e.displayThumbnails&&Object(o.createElement)(i.Button,{className:"".concat(t,"-post-image-placeholder"),isLink:!0},Object(o.createElement)("span",{className:"".concat(t,"-post-image-placeholder-icon"),"aria-label":Object(O.a)("Placeholder image")},Object(o.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(o.createElement)(i.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(o.createElement)(i.Path,{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4.86 8.86l-3 3.87L9 13.14 6 17h12l-3.86-5.14z"})))),Object(o.createElement)("h4",null,Object(o.createElement)(i.Button,{className:"".concat(t,"-post-link"),isLink:!0},Object(O.a)("Related Posts will only display when you have 10 public posts"))),e.displayDate&&Object(o.createElement)("span",{className:"".concat(t,"-post-date has-small-font-size")},Object(O.a)("August 3, 2018")),e.displayContext&&Object(o.createElement)("p",{className:"".concat(t,"-post-context")},Object(O.a)('In "Uncategorized"')))}var w=function(e){function t(){return l()(this,t),d()(this,m()(t).apply(this,arguments))}return g()(t,e),p()(t,[{key:"render",value:function(){for(var e=this.props,t=e.attributes,n=e.className,r=e.posts,a=e.setAttributes,c=t.displayContext,l=t.displayDate,u=t.displayThumbnails,p=t.postLayout,h=t.postsToShow,d=[{icon:"grid-view",title:Object(O.a)("Grid View"),onClick:function(){return a({postLayout:"grid"})},isActive:"grid"===p},{icon:"list-view",title:Object(O.a)("List View"),onClick:function(){return a({postLayout:"list"})},isActive:"list"===p}],f=(r.length?r:[]).slice(0,h),m="related-posts__preview",b=!r.length,g=[],v=0;v<h;v++)g.push(Object(o.createElement)(C,{key:"related-post-placeholder-"+v,displayThumbnails:u,displayDate:l,displayContext:c}));return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(k.InspectorControls,null,Object(o.createElement)(i.PanelBody,{title:Object(O.a)("Related Posts Settings")},Object(o.createElement)(i.ToggleControl,{label:Object(O.a)("Display thumbnails"),checked:u,onChange:function(e){return a({displayThumbnails:e})}}),Object(o.createElement)(i.ToggleControl,{label:Object(O.a)("Display date"),checked:l,onChange:function(e){return a({displayDate:e})}}),Object(o.createElement)(i.ToggleControl,{label:Object(O.a)("Display context (category or tag)"),checked:c,onChange:function(e){return a({displayContext:e})}}),Object(o.createElement)(i.RangeControl,{label:Object(O.a)("Number of posts"),value:h,onChange:function(e){return a({postsToShow:Math.min(e,3)})},min:1,max:3}))),Object(o.createElement)(k.BlockControls,null,Object(o.createElement)(i.Toolbar,{controls:d})),Object(o.createElement)("div",{className:y()(n,s()({"is-grid":"grid"===p},"columns-".concat(h),"grid"===p))},Object(o.createElement)("div",{className:m},b?g:f.map(function(e){return Object(o.createElement)("div",{className:"".concat(m,"-post"),key:e.id},u&&e.img&&e.img.src&&Object(o.createElement)(i.Button,{className:"".concat(m,"-post-link"),isLink:!0},Object(o.createElement)("img",{src:e.img.src,alt:e.title})),Object(o.createElement)("h4",null,Object(o.createElement)(i.Button,{className:"".concat(m,"-post-link"),isLink:!0},e.title)),l&&Object(o.createElement)("span",{className:"".concat(m,"-post-date has-small-font-size")},e.date),c&&Object(o.createElement)("p",{className:"".concat(m,"-post-context")},e.context))}))))}}]),t}(o.Component),E=Object(j.withSelect)(function(e){var t=e("core/editor").getCurrentPost;return{posts:Object(_.get)(t(),"jetpack-related-posts",[])}})(w),x={title:Object(O.a)("Related Posts"),icon:Object(o.createElement)(i.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(i.G,{stroke:"currentColor",strokeWidth:"2",strokeLinecap:"square"},Object(o.createElement)(i.Path,{d:"M4,4 L4,19 M4,4 L19,4 M4,9 L19,9 M4,14 L19,14 M4,19 L19,19 M9,4 L9,19 M19,4 L19,19"}))),category:"jetpack",keywords:[Object(O.c)("Similar content","block search term"),Object(O.c)("Linked","block search term"),Object(O.c)("Connected","block search term")],attributes:{postLayout:{type:"string",default:"grid"},displayDate:{type:"boolean",default:!0},displayThumbnails:{type:"boolean",default:!1},displayContext:{type:"boolean",default:!1},postsToShow:{type:"number",default:3}},supports:{html:!1,multiple:!1,reusable:!1},transforms:{from:[{type:"shortcode",tag:"jetpack-related-posts"}]},edit:E,save:function(){return null}};Object(r.a)("related-posts",x)},function(e,t,n){"use strict";n.r(t);var r=n(7),o=n.n(r),i=n(6),a=n.n(i),s=n(8),c=n.n(s),l=n(9),u=n.n(l),p=n(10),h=n.n(p),d=n(0),f=n(5),m=n(3),b=n(17),g=n(65),v=n(33),y=n(1),k={render:function(){return Object(d.createElement)(j,null)}},_=function(e){function t(){return o()(this,t),c()(this,u()(t).apply(this,arguments))}return h()(t,e),a()(t,[{key:"render",value:function(){var e=this.props.shortlink;return e?Object(d.createElement)(v.default,null,Object(d.createElement)(m.PanelBody,{title:Object(y.a)("Shortlink"),className:"jetpack-shortlinks__panel"},Object(d.createElement)(g.a,{link:e}))):null}}]),t}(d.Component),j=Object(b.withSelect)(function(e){var t=e("core/editor").getCurrentPost();return{shortlink:Object(f.get)(t,"jetpack_shortlink","")}})(_),O=n(48);Object(O.a)("shortlinks",k)},function(e,t){e.exports=wp.url},function(e,t){e.exports=function(e){if(null==e)throw new TypeError("Cannot destructure undefined")}},,function(e,t,n){n(39),n(98),n(34),n(43),n(33),n(252),n(256),n(253),n(254),n(249),n(257),n(258),n(251),n(255),n(250),n(278),n(277),e.exports=n(276)},function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(22),o=n(0),i=n(11),a=n(3),s=n(260),c=n.n(s),l=n(12),u=n.n(l),p=["jetpack/markdown","jetpack/address","jetpack/email","jetpack/phone","jetpack/map","core/paragraph","core/image","core/heading","core/gallery","core/list","core/quote","core/shortcode","core/audio","core/code","core/cover","core/html","core/separator","core/spacer","core/subhead","core/video"],h=[["jetpack/email"],["jetpack/phone"],["jetpack/address"]],d=function(e){c()(e.attributes);var t=e.isSelected;return Object(o.createElement)("div",{className:u()({"jetpack-contact-info-block":!0,"is-selected":t})},Object(o.createElement)(i.InnerBlocks,{allowedBlocks:p,templateLock:!1,template:h}))},f=n(21),m=n(1),b=(n(267),n(7)),g=n.n(b),v=n(6),y=n.n(v),k=n(8),_=n.n(k),j=n(9),O=n.n(j),C=n(10),w=n.n(C),E=n(2),x=n.n(E),S=n(65),A=function(e){var t=e.attributes,n=t.address,r=t.addressLine2,i=t.addressLine3,a=t.city,s=t.region,c=t.postal,l=t.country;return Object(o.createElement)(o.Fragment,null,n&&Object(o.createElement)("div",{itemprop:"streetAddress",class:"jetpack-address__address jetpack-address__address1"},n),r&&Object(o.createElement)("div",{itemprop:"streetAddress",class:"jetpack-address__address jetpack-address__address2"},r),i&&Object(o.createElement)("div",{itemprop:"streetAddress",class:"jetpack-address__address jetpack-address__address3"},i),a&&!(s||c)&&Object(o.createElement)("div",{itemprop:"addressLocality",class:"jetpack-address__city"},a),a&&(s||c)&&Object(o.createElement)("div",null,[Object(o.createElement)("span",{itemprop:"addressLocality",class:"jetpack-address__city"},a),", ",Object(o.createElement)("span",{itemprop:"addressRegion",class:"jetpack-address__region"},s)," ",Object(o.createElement)("span",{itemprop:"postalCode",class:"jetpack-address__postal"},c)]),!a&&(s||c)&&Object(o.createElement)("div",null,[Object(o.createElement)("span",{itemprop:"addressRegion",class:"jetpack-address__region"},s)," ",Object(o.createElement)("span",{itemprop:"postalCode",class:"jetpack-address__postal"},c)]),l&&Object(o.createElement)("div",{itemprop:"addressCountry",class:"jetpack-address__country"},l))},D=function(e){var t=e.attributes,n=t.address,r=t.addressLine2,o=t.addressLine3,i=t.city,a=t.region,s=t.postal,c=t.country,l=n?"".concat(n,","):"",u=r?"".concat(r,","):"",p=o?"".concat(o,","):"",h=i?"+".concat(i,","):"",d=a?"+".concat(a,","):"";d=s?"".concat(d,"+").concat(s):d;var f=c?"+".concat(c):"";return"https://www.google.com/maps/search/".concat(l).concat(u).concat(p).concat(h).concat(d).concat(f).replace(" ","+")},M=function(e){return Object(o.createElement)("div",{className:e.className,itemprop:"address",itemscope:!0,itemtype:"http://schema.org/PostalAddress"},e.attributes.linkToGoogleMaps&&Object(o.createElement)("a",{href:D(e),target:"_blank",rel:"noopener noreferrer",title:Object(m.a)("Open address in Google Maps")},Object(o.createElement)(A,e)),!e.attributes.linkToGoogleMaps&&Object(o.createElement)(A,e))},T=function(e){function t(){var e,n;g()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=_()(this,(e=O()(t)).call.apply(e,[this].concat(o)))).preventEnterKey=n.preventEnterKey.bind(x()(x()(n))),n}return w()(t,e),y()(t,[{key:"preventEnterKey",value:function(e){"Enter"!==e.key||e.preventDefault()}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.address,r=t.addressLine2,s=t.addressLine3,c=t.city,l=t.region,p=t.postal,h=t.country,d=t.linkToGoogleMaps,f=e.isSelected,b=e.setAttributes,g=[n,r,s,c,l,p,h].some(function(e){return""!==e}),v=u()({"jetpack-address-block":!0,"is-selected":f});return Object(o.createElement)("div",{className:v},!f&&g&&M(this.props),(f||!g)&&Object(o.createElement)(o.Fragment,null,Object(o.createElement)(i.PlainText,{value:n,placeholder:Object(m.a)("Street Address"),onChange:function(e){return b({address:e})},onKeyDown:this.preventEnterKey}),Object(o.createElement)(i.PlainText,{value:r,placeholder:Object(m.a)("Address Line 2"),onChange:function(e){return b({addressLine2:e})},onKeyDown:this.preventEnterKey}),Object(o.createElement)(i.PlainText,{value:s,placeholder:Object(m.a)("Address Line 3"),onChange:function(e){return b({addressLine3:e})},onKeyDown:this.preventEnterKey}),Object(o.createElement)(i.PlainText,{value:c,placeholder:Object(m.a)("City"),onChange:function(e){return b({city:e})},onKeyDown:this.preventEnterKey}),Object(o.createElement)(i.PlainText,{value:l,placeholder:Object(m.a)("State/Province/Region"),onChange:function(e){return b({region:e})},onKeyDown:this.preventEnterKey}),Object(o.createElement)(i.PlainText,{value:p,placeholder:Object(m.a)("Postal/Zip Code"),onChange:function(e){return b({postal:e})},onKeyDown:this.preventEnterKey}),Object(o.createElement)(i.PlainText,{value:h,placeholder:Object(m.a)("Country"),onChange:function(e){return b({country:e})},onKeyDown:this.preventEnterKey}),Object(o.createElement)(i.InspectorControls,null,Object(o.createElement)(a.PanelBody,{title:Object(m.a)("Link to Google Maps")},Object(o.createElement)(a.ToggleControl,{label:Object(m.a)("Link address to Google Maps"),checked:d,onChange:function(e){return b({linkToGoogleMaps:e})}}),g&&Object(o.createElement)(S.a,{link:D(this.props)}),g&&Object(o.createElement)("div",null,Object(o.createElement)(a.ExternalLink,{href:D(this.props)},Object(m.a)("Visit Google Maps")))))))}}]),t}(o.Component),F={title:Object(m.a)("Address"),description:Object(m.a)("Lets you add a physical address with Schema markup."),keywords:[Object(m.c)("location","block search term"),Object(m.c)("direction","block search term"),Object(m.c)("place","block search term")],icon:Object(f.a)(Object(o.createElement)(o.Fragment,null,Object(o.createElement)(a.Path,{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zM7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 2.88-2.88 7.19-5 9.88C9.92 16.21 7 11.85 7 9z"}),Object(o.createElement)(a.Circle,{cx:"12",cy:"9",r:"2.5"}))),category:"jetpack",attributes:{address:{type:"string",default:""},addressLine2:{type:"string",default:""},addressLine3:{type:"string",default:""},city:{type:"string",default:""},region:{type:"string",default:""},postal:{type:"string",default:""},country:{type:"string",default:""},linkToGoogleMaps:{type:"boolean",default:!1}},parent:["jetpack/contact-info"],edit:T,save:M},z=n(5);var P=function(e,t,n){return Array.isArray(e)||(e=[e]),Object(z.flatten)(e.map(function(e){return Object(z.isString)(e)?function(e,t,n){var r=0,o=0;if(""===e)return e;if(!e||!Object(z.isString)(e))throw new TypeError("First argument must be a string");var i=t;Object(z.isRegExp)(i)||(i=new RegExp("("+Object(z.escapeRegExp)(i)+")","gi"));for(var a=e.split(i),s=1,c=a.length;s<c;s+=2)o=a[s].length,r+=a[s-1].length,a[s]&&(a[s]=n(a[s],s,r)),r+=o;return a}(e,t,n):e}))},N=function(e){var t=e.attributes.email,n=e.className;return t&&Object(o.createElement)("div",{className:n},P(t,/((?:[a-z|0-9+_](?:\.|_\+)*)+[a-z|0-9]\@(?:[a-z|0-9])+(?:(?:\.){0,1}[a-z|0-9]){2}\.[a-z]{2,22})/gim,function(e,t){return Object(o.createElement)("a",{href:"mailto:".concat(e),key:t,itemprop:"email"},e)}))},L=function(e,t,n,r,a){var s=t.isSelected,c=t.attributes[e];return Object(o.createElement)("div",{className:"jetpack-".concat(e,s?"-block is-selected":"-block")},!s&&""!==c&&r(t),(s||""===c)&&Object(o.createElement)(i.PlainText,{value:c,placeholder:n,onChange:a}))},R=function(e){var t=e.setAttributes;return L("email",e,Object(m.a)("Email"),N,function(e){return t({email:e})})},I={title:Object(m.a)("Email Address"),description:Object(m.a)("Lets you add an email address with an automatically generated click-to-email link."),keywords:["e-mail","email",Object(m.c)("message","block search term")],icon:Object(f.a)(Object(o.createElement)(a.Path,{d:"M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z"})),category:"jetpack",attributes:{email:{type:"string",default:""}},edit:R,save:N,parent:["jetpack/contact-info"]};var q=function(e){var t=e.attributes.phone,n=e.className;return t&&Object(o.createElement)("div",{className:n},P(t,/([0-9\()+]{1}[\ \-().]?[0-9]{1,6}[\ \-().]?[0-9]{0,6}[\ \-()]?[0-9]{0,6}[\ \-().]?[0-9]{0,6}[\ \-().]?[0-9]{0,6}[\ \-().]?[0-9]{0,6})/g,function(e,t){if(""===e.trim())return e;var n=e.replace(/\D/g,"");return Object(o.createElement)("a",{itemprop:"telephone",content:n,href:"tel:".concat(n),key:t},e)}))},B=function(e){var t=e.setAttributes;return L("phone",e,Object(m.a)("Phone number"),q,function(e){return t({phone:e})})},V={title:Object(m.a)("Phone Number"),description:Object(m.a)("Lets you add a phone number with an automatically generated click-to-call link."),keywords:[Object(m.c)("mobile","block search term"),Object(m.c)("telephone","block search term"),Object(m.c)("cell","block search term")],icon:Object(f.a)(Object(o.createElement)(a.Path,{d:"M6.54 5c.06.89.21 1.76.45 2.59l-1.2 1.2c-.41-1.2-.67-2.47-.76-3.79h1.51m9.86 12.02c.85.24 1.72.39 2.6.45v1.49c-1.32-.09-2.59-.35-3.8-.75l1.2-1.19M7.5 3H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.49c0-.55-.45-1-1-1-1.24 0-2.45-.2-3.57-.57-.1-.04-.21-.05-.31-.05-.26 0-.51.1-.71.29l-2.2 2.2c-2.83-1.45-5.15-3.76-6.59-6.59l2.2-2.2c.28-.28.36-.67.25-1.02C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1z"})),category:"jetpack",attributes:{phone:{type:"string",default:""}},parent:["jetpack/contact-info"],edit:B,save:q},U={title:Object(m.a)("Contact Info"),description:Object(m.a)("Lets you add an email address, phone number, and physical address with improved markup for better SEO results."),keywords:[Object(m.c)("email","block search term"),Object(m.c)("phone","block search term"),Object(m.c)("address","block search term")],icon:Object(f.a)(Object(o.createElement)(a.Path,{d:"M22 3H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zm0 16H2V5h20v14zm-2.99-1.01L21 16l-1.51-2h-1.64c-.22-.63-.35-1.3-.35-2s.13-1.37.35-2h1.64L21 8l-1.99-1.99c-1.31.98-2.28 2.37-2.73 3.99-.18.64-.28 1.31-.28 2s.1 1.36.28 2c.45 1.61 1.42 3.01 2.73 3.99zM9 12c1.65 0 3-1.35 3-3s-1.35-3-3-3-3 1.35-3 3 1.35 3 3 3zm0-4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm6 8.59c0-2.5-3.97-3.58-6-3.58s-6 1.08-6 3.58V18h12v-1.41zM5.48 16c.74-.5 2.22-1 3.52-1s2.77.49 3.52 1H5.48z"})),category:"jetpack",supports:{align:["wide","full"],html:!1},attributes:{},edit:d,save:function(e){var t=e.className;return Object(o.createElement)("div",{className:t,itemprop:"location",itemscope:!0,itemtype:"http://schema.org/Place"},Object(o.createElement)(i.InnerBlocks.Content,null))}},H=[{name:"address",settings:F},{name:"email",settings:I},{name:"phone",settings:V}];Object(r.a)("contact-info",U,H)},function(e,t,n){"use strict";n.r(t);var r=n(22),o=(n(265),n(7)),i=n.n(o),a=n(6),s=n.n(a),c=n(8),l=n.n(c),u=n(9),p=n.n(u),h=n(10),d=n.n(h),f=n(2),m=n.n(f),b=n(4),g=n.n(b),v=n(0),y=n(3),k=n(259),_=n(1),j=function(e){var t=e.attributes,n=t.url,r=t.view,o=e.className;return Object(v.createElement)("div",{className:o},Object(v.createElement)("iframe",{title:Object(_.a)("VR Image"),allowFullScreen:"true",frameBorder:"0",width:"100%",height:"300",src:Object(k.addQueryArgs)("https://vr.me.sh/view/",{url:n,view:r})}))},O=function(e){function t(){var e,n;i()(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=l()(this,(e=p()(t)).call.apply(e,[this].concat(o))),g()(m()(m()(n)),"onChangeUrl",function(e){n.props.setAttributes({url:e.trim()})}),g()(m()(m()(n)),"onChangeView",function(e){n.props.setAttributes({view:e})}),n}return d()(t,e),s()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.className;return t.url&&t.view?Object(v.createElement)(j,{attributes:t,className:n}):Object(v.createElement)(y.Placeholder,{key:"placeholder",icon:"format-image",label:Object(_.a)("VR Image"),className:n},Object(v.createElement)(y.TextControl,{type:"url",label:Object(_.a)("Enter URL to VR image"),value:t.url,onChange:this.onChangeUrl}),Object(v.createElement)(y.SelectControl,{label:Object(_.a)("View Type"),disabled:!t.url,value:t.view,onChange:this.onChangeView,options:[{label:"",value:""},{label:Object(_.a)("360°"),value:"360"},{label:Object(_.a)("Cinema"),value:"cinema"}]}))}}]),t}(v.Component),C={title:Object(_.a)("VR Image"),description:Object(_.a)("Embed 360° photos and Virtual Reality (VR) content"),icon:"embed-photo",category:"jetpack",keywords:[Object(_.a)("vr"),Object(_.a)("panorama"),Object(_.a)("360")],supports:{html:!1},attributes:{url:{type:"string"},view:{type:"string"}},edit:O,save:j};Object(r.a)("vr",C)},function(e,t,n){"use strict";n.r(t);var r=n(22),o=n(1),i=n(4),a=n.n(i),s=n(7),c=n.n(s),l=n(6),u=n.n(l),p=n(8),h=n.n(p),d=n(9),f=n.n(d),m=n(10),b=n.n(m),g=n(0),v=n(3),y=n(11),k=function(e){function t(){var e,n;c()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=h()(this,(e=f()(t)).call.apply(e,[this].concat(o)))).fields=_.map(function(e){return e.set=function(t){return n.props.setAttributes(a()({},e.id,t))},e}),n}return b()(t,e),u()(t,[{key:"render",value:function(){var e=this.props.attributes;return Object(g.createElement)(g.Fragment,null,Object(g.createElement)(y.InspectorControls,null,this.fields.map(function(t){return Object(g.createElement)(v.TextControl,{label:t.label,key:t.id,value:e[t.id],onChange:t.set})})),Object(g.createElement)(v.ServerSideRender,{block:"jetpack/mailchimp",attributes:e}))}}]),t}(g.Component),_=(n(263),[{id:"title",label:Object(o.a)("Title")},{id:"email_placeholder",label:Object(o.a)("Placeholder")},{id:"submit_label",label:Object(o.a)("Submit button label")},{id:"consent_text",label:Object(o.a)("Consent text")},{id:"processing_label",label:Object(o.a)('"Processing" status message')},{id:"success_label",label:Object(o.a)("Success status message")},{id:"error_label",label:Object(o.a)("Error status message")}]),j={title:Object(o.a)("MailChimp"),icon:"email",category:"jetpack",keywords:[Object(o.a)("email"),Object(o.a)("mailchimp"),"jetpack"],edit:k,attributes:_.reduce(function(e,t){return e[t.id]={type:"string",default:""},e},{}),save:function(){return null}};Object(r.a)("mailchimp",j)}]));
_inc/blocks/editor-beta.rtl.css ADDED
@@ -0,0 +1 @@
 
1
+ .help-message{display:-webkit-box;display:-ms-flexbox;display:flex;font-size:13px;line-height:1.4em;margin-bottom:1em;margin-top:-.5em}.help-message svg{margin-left:5px;min-width:24px}.help-message>span{margin-top:2px}.help-message.help-message-is-error{color:#eb0001}.help-message.help-message-is-error svg{fill:#eb0001}.edit-post-more-menu__content .components-icon-button .jetpack-logo,.edit-post-pinned-plugins .components-icon-button .jetpack-logo{width:20px;height:20px}.edit-post-more-menu__content .components-icon-button .jetpack-logo{margin-left:4px}.edit-post-pinned-plugins .components-icon-button.is-toggled .jetpack-logo,.edit-post-pinned-plugins .components-icon-button.is-toggled .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button.is-toggled .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button.is-toggled:hover .jetpack-logo,.edit-post-pinned-plugins .components-icon-button.is-toggled:hover .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button.is-toggled:hover .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button:hover .jetpack-logo,.edit-post-pinned-plugins .components-icon-button:hover .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button:hover .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button:not(.is-toggled) .jetpack-logo,.edit-post-pinned-plugins .components-icon-button:not(.is-toggled) .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button:not(.is-toggled) .jetpack-logo__icon-triangle{stroke:none!important}.edit-post-pinned-plugins .components-icon-button.is-toggled .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button.is-toggled:hover .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button:hover .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button:not(.is-toggled) .jetpack-logo__icon-circle{fill:#00be28!important}.edit-post-pinned-plugins .components-icon-button.is-toggled .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button.is-toggled:hover .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button:hover .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button:not(.is-toggled) .jetpack-logo__icon-triangle{fill:#fff!important}.jetpack-contact-form{padding:10px 18px}.jetpack-contact-form.has-intro{padding:0}.jetpack-contact-form .components-placeholder{padding:24px}.jetpack-contact-form .components-placeholder input[type=text]{width:100%;outline-width:0;outline-style:none;line-height:16px}.jetpack-contact-form .components-placeholder .components-placeholder__label svg{margin-left:1ch}.jetpack-contact-form .components-placeholder .components-placeholder__fieldset,.jetpack-contact-form .components-placeholder .help-message{text-align:right}.jetpack-contact-form .components-placeholder .help-message{width:100%;margin:-18px 0 28px}.jetpack-contact-form .components-placeholder .components-base-control{margin-bottom:16px;width:100%}.jetpack-contact-form__intro-message{margin:0 0 16px}.jetpack-contact-form__create{width:100%}.jetpack-field-label{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.jetpack-field-label .components-base-control{margin-top:-1px;margin-bottom:-3px}.jetpack-field-label .components-base-control .components-form-toggle{margin:2px 0 0 8px}.jetpack-field-label .required{color:#dc3232}.jetpack-field-label .components-toggle-control .components-base-control__field{margin-bottom:0}.jetpack-field-label__input{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;min-height:unset;padding:0}.jetpack-field-label__input.jetpack-field-label__input.jetpack-field-label__input{border-color:#fff;border-radius:0;font-weight:600;margin:0 0 2px;padding:0}.jetpack-field-label__input.jetpack-field-label__input.jetpack-field-label__input:focus{border-color:#fff;-webkit-box-shadow:none;box-shadow:none}input.components-text-control__input{line-height:16px}.jetpack-field .components-text-control__input.components-text-control__input{width:100%}.jetpack-field .components-text-control__input,.jetpack-field .components-textarea-control__input{color:#72777c;padding:10px 8px}.jetpack-field-checkbox__checkbox.jetpack-field-checkbox__checkbox.jetpack-field-checkbox__checkbox{float:right}.jetpack-field-multiple__list.jetpack-field-multiple__list{list-style-type:none;margin:0}.jetpack-field-multiple__list.jetpack-field-multiple__list:empty{display:none}[data-type="jetpack/field-select"] .jetpack-field-multiple__list.jetpack-field-multiple__list{border:1px solid #8d96a0;border-radius:4px;padding:4px}.jetpack-option{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:0}.jetpack-option__type.jetpack-option__type{margin-top:0}.jetpack-option__input.jetpack-option__input.jetpack-option__input{border-color:#fff;border-radius:0;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.jetpack-option__input.jetpack-option__input.jetpack-option__input:hover{border-color:#357cb5}.jetpack-option__input.jetpack-option__input.jetpack-option__input:focus{border-color:#e3e5e8;-webkit-box-shadow:none;box-shadow:none}.jetpack-option__remove.jetpack-option__remove{padding:6px;vertical-align:bottom}.jetpack-field-multiple__add-option{margin-right:-6px;padding:4px 4px 4px 8px}.jetpack-field-multiple__add-option svg{margin-left:12px}.jetpack-field-checkbox .components-base-control__label{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.jetpack-field-checkbox .components-base-control__label .jetpack-field-label{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.jetpack-field-checkbox .components-base-control__label .jetpack-field-label__input{font-size:13px;font-weight:400;padding-right:10px}@media (min-width:481px){.jetpack-contact-form-shortcode-preview{padding:24px}}.jetpack-contact-form-shortcode-preview{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:1.4em;display:block;position:relative;margin:0 auto;padding:16px;-webkit-box-sizing:border-box;box-sizing:border-box;background:#fff;-webkit-box-shadow:0 0 0 1px rgba(200,215,225,.5),0 1px 2px #e9eff3;box-shadow:0 0 0 1px rgba(200,215,225,.5),0 1px 2px #e9eff3}.jetpack-contact-form-shortcode-preview:after{content:".";display:block;height:0;clear:both;visibility:hidden}.jetpack-contact-form-shortcode-preview>div{margin-top:24px}.jetpack-contact-form-shortcode-preview>div:first-child{margin-top:0}.jetpack-contact-form-shortcode-preview label{display:block;font-size:14px;font-weight:600;margin-bottom:5px}.jetpack-contact-form-shortcode-preview input[type=email],.jetpack-contact-form-shortcode-preview input[type=tel],.jetpack-contact-form-shortcode-preview input[type=text],.jetpack-contact-form-shortcode-preview input[type=url]{border-radius:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:7px 14px;width:100%;color:#2e4453;font-size:16px;line-height:1.5;border:1px solid #c8d7e1;background-color:#fff;-webkit-transition:all .15s ease-in-out;transition:all .15s ease-in-out;-webkit-box-shadow:none;box-shadow:none}.jetpack-contact-form-shortcode-preview input[type=email]::-webkit-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=tel]::-webkit-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=text]::-webkit-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=url]::-webkit-input-placeholder{color:#87a6bc}.jetpack-contact-form-shortcode-preview input[type=email]:-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=tel]:-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=text]:-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=url]:-ms-input-placeholder{color:#87a6bc}.jetpack-contact-form-shortcode-preview input[type=email]::-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=tel]::-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=text]::-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=url]::-ms-input-placeholder{color:#87a6bc}.jetpack-contact-form-shortcode-preview input[type=email]::placeholder,.jetpack-contact-form-shortcode-preview input[type=tel]::placeholder,.jetpack-contact-form-shortcode-preview input[type=text]::placeholder,.jetpack-contact-form-shortcode-preview input[type=url]::placeholder{color:#87a6bc}.jetpack-contact-form-shortcode-preview input[type=email]:hover,.jetpack-contact-form-shortcode-preview input[type=tel]:hover,.jetpack-contact-form-shortcode-preview input[type=text]:hover,.jetpack-contact-form-shortcode-preview input[type=url]:hover{border-color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=email]:focus,.jetpack-contact-form-shortcode-preview input[type=tel]:focus,.jetpack-contact-form-shortcode-preview input[type=text]:focus,.jetpack-contact-form-shortcode-preview input[type=url]:focus{border-color:#0087be;outline:none;-webkit-box-shadow:0 0 0 2px #78dcfa;box-shadow:0 0 0 2px #78dcfa}.jetpack-contact-form-shortcode-preview input[type=email]:focus::-ms-clear,.jetpack-contact-form-shortcode-preview input[type=tel]:focus::-ms-clear,.jetpack-contact-form-shortcode-preview input[type=text]:focus::-ms-clear,.jetpack-contact-form-shortcode-preview input[type=url]:focus::-ms-clear{display:none}.jetpack-contact-form-shortcode-preview input[type=email]:disabled,.jetpack-contact-form-shortcode-preview input[type=tel]:disabled,.jetpack-contact-form-shortcode-preview input[type=text]:disabled,.jetpack-contact-form-shortcode-preview input[type=url]:disabled{background:#f3f6f8;border-color:#e9eff3;color:#a8bece;-webkit-text-fill-color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=email]:disabled:hover,.jetpack-contact-form-shortcode-preview input[type=tel]:disabled:hover,.jetpack-contact-form-shortcode-preview input[type=text]:disabled:hover,.jetpack-contact-form-shortcode-preview input[type=url]:disabled:hover{cursor:default}.jetpack-contact-form-shortcode-preview input[type=email]:disabled::-webkit-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=tel]:disabled::-webkit-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=text]:disabled::-webkit-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=url]:disabled::-webkit-input-placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=email]:disabled:-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=tel]:disabled:-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=text]:disabled:-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=url]:disabled:-ms-input-placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=email]:disabled::-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=tel]:disabled::-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=text]:disabled::-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=url]:disabled::-ms-input-placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=email]:disabled::placeholder,.jetpack-contact-form-shortcode-preview input[type=tel]:disabled::placeholder,.jetpack-contact-form-shortcode-preview input[type=text]:disabled::placeholder,.jetpack-contact-form-shortcode-preview input[type=url]:disabled::placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview textarea{border-radius:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:7px 14px;height:92px;width:100%;color:#2e4453;font-size:16px;line-height:1.5;border:1px solid #c8d7e1;background-color:#fff;-webkit-transition:all .15s ease-in-out;transition:all .15s ease-in-out;-webkit-box-shadow:none;box-shadow:none}.jetpack-contact-form-shortcode-preview textarea::-webkit-input-placeholder{color:#87a6bc}.jetpack-contact-form-shortcode-preview textarea:-ms-input-placeholder{color:#87a6bc}.jetpack-contact-form-shortcode-preview textarea::-ms-input-placeholder{color:#87a6bc}.jetpack-contact-form-shortcode-preview textarea::placeholder{color:#87a6bc}.jetpack-contact-form-shortcode-preview textarea:hover{border-color:#a8bece}.jetpack-contact-form-shortcode-preview textarea:focus{border-color:#0087be;outline:none;-webkit-box-shadow:0 0 0 2px #78dcfa;box-shadow:0 0 0 2px #78dcfa}.jetpack-contact-form-shortcode-preview textarea:focus::-ms-clear{display:none}.jetpack-contact-form-shortcode-preview textarea:disabled{background:#f3f6f8;border-color:#e9eff3;color:#a8bece;-webkit-text-fill-color:#a8bece}.jetpack-contact-form-shortcode-preview textarea:disabled:hover{cursor:default}.jetpack-contact-form-shortcode-preview textarea:disabled::-webkit-input-placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview textarea:disabled:-ms-input-placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview textarea:disabled::-ms-input-placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview textarea:disabled::placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=checkbox]{-webkit-appearance:none;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;margin:2px 0 0;width:16px;height:16px;float:right;outline:0;padding:0;-webkit-box-shadow:none;box-shadow:none;background-color:#fff;border:1px solid #c8d7e1;color:#2e4453;font-size:16px;line-height:0;text-align:center;vertical-align:middle;-moz-appearance:none;appearance:none;-webkit-transition:all .15s ease-in-out;transition:all .15s ease-in-out;clear:none;cursor:pointer}.jetpack-contact-form-shortcode-preview input[type=checkbox]:checked:before{content:"\F147";font-family:Dashicons;margin:-3px -4px 0 0;float:right;display:inline-block;vertical-align:middle;width:16px;font-size:20px;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;speak:none;color:#00aadc}.jetpack-contact-form-shortcode-preview input[type=checkbox]:disabled:checked:before{color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=checkbox]:hover{border-color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=checkbox]:focus{border-color:#0087be;outline:none;-webkit-box-shadow:0 0 0 2px #78dcfa;box-shadow:0 0 0 2px #78dcfa}.jetpack-contact-form-shortcode-preview input[type=checkbox]:disabled{background:#f3f6f8;border-color:#e9eff3;color:#a8bece;opacity:1}.jetpack-contact-form-shortcode-preview input[type=checkbox]:disabled:hover{cursor:default}.jetpack-contact-form-shortcode-preview input[type=checkbox]+span{display:block;font-weight:400;margin-right:24px}.jetpack-contact-form-shortcode-preview input[type=radio]{color:#2e4453;font-size:16px;border:1px solid #c8d7e1;background-color:#fff;-webkit-transition:all .15s ease-in-out;transition:all .15s ease-in-out;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;clear:none;cursor:pointer;display:inline-block;line-height:0;height:16px;margin:2px 0 0 4px;float:right;outline:0;padding:0;text-align:center;vertical-align:middle;width:16px;min-width:16px;-moz-appearance:none;appearance:none;border-radius:50%;line-height:10px}.jetpack-contact-form-shortcode-preview input[type=radio]:hover{border-color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=radio]:focus{border-color:#0087be;outline:none;-webkit-box-shadow:0 0 0 2px #78dcfa;box-shadow:0 0 0 2px #78dcfa}.jetpack-contact-form-shortcode-preview input[type=radio]:focus::-ms-clear{display:none}.jetpack-contact-form-shortcode-preview input[type=radio]:checked:before{float:right;display:inline-block;content:"\2022";margin:3px;width:8px;height:8px;text-indent:-9999px;background:#00aadc;vertical-align:middle;border-radius:50%;-webkit-animation:grow .2s ease-in-out;animation:grow .2s ease-in-out}.jetpack-contact-form-shortcode-preview input[type=radio]:disabled{background:#f3f6f8;border-color:#e9eff3;color:#a8bece;opacity:1;-webkit-text-fill-color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=radio]:disabled:hover{cursor:default}.jetpack-contact-form-shortcode-preview input[type=radio]:disabled::-webkit-input-placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=radio]:disabled:-ms-input-placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=radio]:disabled::-ms-input-placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=radio]:disabled::placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=radio]:disabled:checked:before{background:#e9eff3}.jetpack-contact-form-shortcode-preview input[type=radio]+span{display:block;font-weight:400;margin-right:24px}@-webkit-keyframes grow{0%{-webkit-transform:scale(.3);transform:scale(.3)}60%{-webkit-transform:scale(1.15);transform:scale(1.15)}to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes grow{0%{-webkit-transform:scale(.3);transform:scale(.3)}60%{-webkit-transform:scale(1.15);transform:scale(1.15)}to{-webkit-transform:scale(1);transform:scale(1)}}.jetpack-contact-form-shortcode-preview select{background:#fff url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE1LjUgNkwxNyA3LjVsLTYuNzUgNi43NUwzLjUgNy41IDUgNmw1LjI1IDUuMjVMMTUuNSA2eiIgZmlsbD0iI0M4RDdFMSIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+) no-repeat left 10px center;border-radius:4px;border:solid #c8d7e1;border-width:1px 1px 2px;color:#2e4453;cursor:pointer;display:inline-block;margin:0;outline:0;overflow:hidden;font-size:14px;line-height:21px;font-weight:600;text-overflow:ellipsis;text-decoration:none;vertical-align:top;white-space:nowrap;-webkit-box-sizing:border-box;box-sizing:border-box;padding:2px 14px 2px 32px;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:sans-serif}.jetpack-contact-form-shortcode-preview select:hover{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE1LjUgNkwxNyA3LjVsLTYuNzUgNi43NUwzLjUgNy41IDUgNmw1LjI1IDUuMjVMMTUuNSA2eiIgZmlsbD0iI2E4YmVjZSIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)}.jetpack-contact-form-shortcode-preview select:focus{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE1LjUgNkwxNyA3LjVsLTYuNzUgNi43NUwzLjUgNy41IDUgNmw1LjI1IDUuMjVMMTUuNSA2eiIgZmlsbD0iIzJlNDQ1MyIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+);border-color:#00aadc;-webkit-box-shadow:0 0 0 2px #78dcfa;box-shadow:0 0 0 2px #78dcfa;outline:0;-moz-outline:none;-moz-user-focus:ignore}.jetpack-contact-form-shortcode-preview select:disabled,.jetpack-contact-form-shortcode-preview select:hover:disabled{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE1LjUgNkwxNyA3LjVsLTYuNzUgNi43NUwzLjUgNy41IDUgNmw1LjI1IDUuMjVMMTUuNSA2eiIgZmlsbD0iI2U5ZWZmMyIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+) no-repeat left 10px center}.jetpack-contact-form-shortcode-preview select.is-compact{min-width:0;padding:0 6px 2px 20px;margin:0 4px;background-position:left 5px center;background-size:12px 12px}.jetpack-contact-form-shortcode-preview label+select,.jetpack-contact-form-shortcode-preview label select{display:block;min-width:200px}.jetpack-contact-form-shortcode-preview label+select.is-compact,.jetpack-contact-form-shortcode-preview label select.is-compact{display:inline-block;min-width:0}.jetpack-contact-form-shortcode-preview select::-ms-expand{display:none}.jetpack-contact-form-shortcode-preview select::-ms-value{background:none;color:#2e4453}.jetpack-contact-form-shortcode-preview select:-moz-focusring{color:transparent;text-shadow:0 0 0 #2e4453}.jetpack-contact-form-shortcode-preview input[type=submit]{vertical-align:baseline;background:#fff;border:solid #c8d7e1;border-width:1px 1px 2px;color:#2e4453;cursor:pointer;display:inline-block;margin:24px 0 0;outline:0;overflow:hidden;font-weight:500;text-overflow:ellipsis;text-decoration:none;vertical-align:top;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:14px;line-height:21px;border-radius:4px;padding:7px 14px 9px;-webkit-appearance:none;-moz-appearance:none;appearance:none}.jetpack-contact-form-shortcode-preview input[type=submit]:hover{border-color:#a8bece;color:#2e4453}.jetpack-contact-form-shortcode-preview input[type=submit]:active{border-width:2px 1px 1px}.jetpack-contact-form-shortcode-preview input[type=submit]:visited{color:#2e4453}.jetpack-contact-form-shortcode-preview input[type=submit]:focus{border-color:#00aadc;-webkit-box-shadow:0 0 0 2px #78dcfa;box-shadow:0 0 0 2px #78dcfa}.wp-block-jetpack-gif figure{-webkit-transition:padding-top 125ms ease-in-out;transition:padding-top 125ms ease-in-out}.wp-block-jetpack-gif .components-base-control__field{text-align:center}.wp-block-jetpack-gif .wp-block-jetpack-gif_cover{background:none;border:none;height:100%;right:0;margin:0;padding:0;position:absolute;top:0;width:100%;z-index:1}.wp-block-jetpack-gif .wp-block-jetpack-gif_cover:focus{outline:none}.wp-block-jetpack-gif .wp-block-jetpack-gif_input-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:0 auto;max-width:400px;width:100%;z-index:1}.wp-block-jetpack-gif .wp-block-jetpack-gif_input-container .components-base-control__label{height:0;margin:0;text-indent:-9999px}.wp-block-jetpack-gif .wp-block-jetpack-gif_input{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;margin-left:.5em}.wp-block-jetpack-gif .wp-block-jetpack-gif_thumbnails-container{display:-webkit-box;display:-ms-flexbox;display:flex;margin:-2px -2px 2px 0;overflow-x:auto;width:calc(100% + 4px)}.wp-block-jetpack-gif .wp-block-jetpack-gif_thumbnails-container::-webkit-scrollbar{display:none}.wp-block-jetpack-gif .wp-block-jetpack-gif_thumbnail-container{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-size:cover;background-repeat:no-repeat;background-position:50% 50%;border:none;border-radius:3px;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:2px;padding:0 0 calc(11.11111% - 4px);width:calc(11.11111% - 4px)}.wp-block-jetpack-gif .wp-block-jetpack-gif_thumbnail-container:hover{-webkit-box-shadow:0 0 0 1px #555d66;box-shadow:0 0 0 1px #555d66}.wp-block-jetpack-gif .wp-block-jetpack-gif_thumbnail-container:focus{-webkit-box-shadow:0 0 0 2px #00a0d2;box-shadow:0 0 0 2px #00a0d2;outline:0}.components-panel__body-gif-branding svg{display:block;margin:0 auto;max-width:200px}.components-panel__body-gif-branding svg path{fill:#ccc}.wp-block-jetpack-gif figure{margin:0;position:relative;width:100%}.wp-block-jetpack-gif iframe{border:0;right:0;height:100%;position:absolute;top:0;width:100%}.wp-block-jetpack-gif.aligncenter{text-align:center}.wp-block-jetpack-gif.alignleft,.wp-block-jetpack-gif.alignright{min-width:300px}.wp-block-jetpack-gif .wp-block-jetpack-gif-caption{margin-top:.5em;margin-bottom:1em;color:#555d66;text-align:center}.wp-block-jetpack-gif .wp-block-jetpack-gif-wrapper{height:0;margin:0;padding:calc(56.2% + 12px) 0 0;position:relative;width:100%}.component__add-point{position:absolute;right:50%;top:50%;width:32px;height:38px;margin-top:-19px;margin-right:-16px;background-image:url(images/oval-3cc7669d571aef4e12f34b349e42d390.svg);background-repeat:no-repeat;text-indent:-9999px}.component__add-point,.component__add-point.components-button:not(:disabled):not([aria-disabled=true]):focus,.component__add-point:active,.component__add-point:focus,.component__add-point__popover .components-button:not(:disabled):not([aria-disabled=true]):focus{-webkit-box-shadow:none;box-shadow:none;background-color:transparent}.component__add-point__popover .components-popover__content{padding:.1rem}.component__add-point__popover .components-location-search{margin:.5rem}.component__add-point__close{margin:0;padding:0;border:none;-webkit-box-shadow:none;box-shadow:none;float:left}.component__add-point__close path{color:#aaa}.edit-post-settings-sidebar__panel-block .component__locations__panel{margin-bottom:1em}.edit-post-settings-sidebar__panel-block .component__locations__panel:empty{display:none}.edit-post-settings-sidebar__panel-block .component__locations__panel .components-panel__body:first-child{border-top:none}.edit-post-settings-sidebar__panel-block .component__locations__panel .components-panel__body,.edit-post-settings-sidebar__panel-block .component__locations__panel .components-panel__body:first-child,.edit-post-settings-sidebar__panel-block .component__locations__panel .components-panel__body:last-child{max-width:100%;margin:0}.edit-post-settings-sidebar__panel-block .component__locations__panel .components-panel__body button{padding-left:40px}.component__locations__delete-btn{padding:0}.component__locations__delete-btn svg{margin-left:.4em}.wp-block-jetpack-map-marker{width:32px;height:38px;opacity:.9}.edit-post-settings-sidebar__panel-block .component__map-theme-picker__button{border:1px solid #d3d3d3;border-radius:100%;width:56px;height:56px;margin:2px;text-indent:-9999px;background-color:#d3d3d3;background-position:50%;background-repeat:no-repeat;background-size:contain;-webkit-transform:scale(1);transform:scale(1);-webkit-transition:-webkit-transform .2s ease;transition:-webkit-transform .2s ease;transition:transform .2s ease;transition:transform .2s ease,-webkit-transform .2s ease}.edit-post-settings-sidebar__panel-block .component__map-theme-picker__button:hover{-webkit-transform:scale(1.1);transform:scale(1.1)}.edit-post-settings-sidebar__panel-block .component__map-theme-picker__button.is-selected{border-color:#000}.edit-post-settings-sidebar__panel-block .component__map-theme-picker__button.is-theme-default{background-image:url(images/map-theme_default-2ceb449b599dbcbe2a90fead5a5f3824.jpg)}.edit-post-settings-sidebar__panel-block .component__map-theme-picker__button.is-theme-black_and_white{background-image:url(images/map-theme_black_and_white-1ead5946ca104d83676d6e3410e1d733.jpg)}.edit-post-settings-sidebar__panel-block .component__map-theme-picker__button.is-theme-satellite{background-image:url(images/map-theme_satellite-c74dc129bda9502fb0fb362bb627577e.jpg)}.edit-post-settings-sidebar__panel-block .component__map-theme-picker__button.is-theme-terrain{background-image:url(images/map-theme_terrain-2b6e6c1c8d09cbdc58a4c0653be1a6e3.jpg)}.wp-block-jetpack-map .wp-block-jetpack-map__gm-container{width:100%;overflow:hidden;background:#d3d3d3;min-height:400px;text-align:right}.wp-block-jetpack-map .mapboxgl-popup{max-width:300px}.wp-block-jetpack-map .mapboxgl-popup h3{font-size:1.3125em;font-weight:400;margin-bottom:.5rem}.wp-block-jetpack-map .mapboxgl-popup p{margin-bottom:0}.wp-block-jetpack-map__delete-btn{padding:0}.wp-block-jetpack-map__delete-btn svg{margin-left:.4em}.wp-block-jetpack-map-components-text-control-api-key{margin-left:4px}.wp-block-jetpack-map-components-text-control-api-key.components-base-control .components-base-control__field{margin-bottom:0}.wp-block-jetpack-map-components-text-control-api-key-submit.is-large{height:31px}.wp-block-jetpack-map-components-text-control-api-key-submit:disabled{opacity:1}.wp-block[data-type="jetpack/map"] .components-placeholder__label svg{fill:currentColor;margin-left:1ch}.wp-block-jetpack-markdown__placeholder{opacity:.62;pointer-events:none}.editor-block-list__block .wp-block-jetpack-markdown__preview{min-height:1.8em;line-height:1.8}.editor-block-list__block .wp-block-jetpack-markdown__preview>*{margin-top:32px;margin-bottom:32px}.editor-block-list__block .wp-block-jetpack-markdown__preview h1,.editor-block-list__block .wp-block-jetpack-markdown__preview h2,.editor-block-list__block .wp-block-jetpack-markdown__preview h3{line-height:1.4}.editor-block-list__block .wp-block-jetpack-markdown__preview h1{font-size:2.44em}.editor-block-list__block .wp-block-jetpack-markdown__preview h2{font-size:1.95em}.editor-block-list__block .wp-block-jetpack-markdown__preview h3{font-size:1.56em}.editor-block-list__block .wp-block-jetpack-markdown__preview h4{font-size:1.25em;line-height:1.5}.editor-block-list__block .wp-block-jetpack-markdown__preview h5{font-size:1em}.editor-block-list__block .wp-block-jetpack-markdown__preview h6{font-size:.8em}.editor-block-list__block .wp-block-jetpack-markdown__preview hr{border:none;border-bottom:2px solid #8f98a1;margin:2em auto;max-width:100px}.editor-block-list__block .wp-block-jetpack-markdown__preview p{line-height:1.8}.editor-block-list__block .wp-block-jetpack-markdown__preview blockquote{border-right:4px solid #000;margin-right:0;margin-left:0;padding-right:1em}.editor-block-list__block .wp-block-jetpack-markdown__preview blockquote p{line-height:1.5;margin:1em 0}.editor-block-list__block .wp-block-jetpack-markdown__preview ol,.editor-block-list__block .wp-block-jetpack-markdown__preview ul{margin-right:1.3em;padding-right:1.3em}.editor-block-list__block .wp-block-jetpack-markdown__preview li p{margin:0}.editor-block-list__block .wp-block-jetpack-markdown__preview code,.editor-block-list__block .wp-block-jetpack-markdown__preview pre{color:#23282d;font-family:Menlo,Consolas,monaco,monospace}.editor-block-list__block .wp-block-jetpack-markdown__preview code{background:#f3f4f5;border-radius:2px;font-size:inherit;padding:2px}.editor-block-list__block .wp-block-jetpack-markdown__preview pre{border-radius:4px;border:1px solid #e2e4e7;font-size:14px;padding:.8em 1em}.editor-block-list__block .wp-block-jetpack-markdown__preview pre code{background:transparent;padding:0}.editor-block-list__block .wp-block-jetpack-markdown__preview table{overflow-x:auto;border-collapse:collapse;width:100%}.editor-block-list__block .wp-block-jetpack-markdown__preview tbody,.editor-block-list__block .wp-block-jetpack-markdown__preview tfoot,.editor-block-list__block .wp-block-jetpack-markdown__preview thead{width:100%;min-width:240px}.editor-block-list__block .wp-block-jetpack-markdown__preview td,.editor-block-list__block .wp-block-jetpack-markdown__preview th{padding:.5em;border:1px solid}.wp-block-jetpack-markdown .wp-block-jetpack-markdown__editor{font-family:Menlo,Consolas,monaco,monospace;font-size:14px}.wp-block-jetpack-markdown .wp-block-jetpack-markdown__editor:focus{border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent}.jetpack-publicize-message-box{background-color:#edeff0;border-radius:4px}.jetpack-publicize-message-box textarea{width:100%}.jetpack-publicize-character-count{padding-bottom:5px;padding-right:5px}.jetpack-publicize__connections-list{list-style-type:none;margin:13px 0}.publicize-jetpack-connection-container{display:-webkit-box;display:-ms-flexbox;display:flex}.jetpack-publicize-gutenberg-social-icon{fill:#555d66;margin-left:5px}.jetpack-publicize-gutenberg-social-icon.is-facebook{fill:#39579a}.jetpack-publicize-gutenberg-social-icon.is-twitter{fill:#55acee}.jetpack-publicize-gutenberg-social-icon.is-linkedin{fill:#0976b4}.jetpack-publicize-gutenberg-social-icon.is-tumblr{fill:#35465c}.jetpack-publicize-gutenberg-social-icon.is-google-plus{fill:#df4a32}.jetpack-publicize-connection-label{-webkit-box-flex:1;-ms-flex:1;flex:1;margin-left:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jetpack-publicize-connection-label .jetpack-publicize-connection-label-copy,.jetpack-publicize-connection-label .jetpack-publicize-gutenberg-social-icon{display:inline-block;vertical-align:middle}.jetpack-publicize-connection-toggle{margin-top:3px}.jetpack-publicize-notice.components-notice{margin-right:0;margin-left:0;margin-bottom:13px}.jetpack-publicize-notice .components-button+.components-button{margin-top:5px}.jetpack-publicize-message-note{display:inline-block;margin-bottom:4px;margin-top:13px}.jetpack-publicize-add-connection-wrapper{margin:15px 0}.jetpack-publicize-add-connection-container{display:-webkit-box;display:-ms-flexbox;display:flex}.jetpack-publicize-add-connection-container a{cursor:pointer}.jetpack-publicize-add-connection-container span{vertical-align:middle}.jetpack-publicize__connections-list .components-notice{margin:5px 0 10px}.wp-block-jetpack-related-posts.is-grid .related-posts__preview{display:-webkit-box;display:-ms-flexbox;display:flex;margin:0 -10px}.wp-block-jetpack-related-posts.is-grid .related-posts__preview-post{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-preferred-size:0;flex-basis:0;margin:0 10px}.wp-block-jetpack-related-posts .related-posts__preview-post-image-placeholder{width:100%;padding:4em 0;background-color:#f6f6f6}.wp-block-jetpack-related-posts .related-posts__preview-post-image-placeholder-icon{margin:0 auto}.wp-block-jetpack-related-posts .related-posts__preview-post-link{font-size:inherit}.wp-block-jetpack-related-posts .related-posts__preview-post-date{color:#2b2d2f}.wp-block-jetpack-related-posts .related-posts__preview-post-context{color:#2b2d2f;font-size:12px;margin:0}.jetpack-clipboard-input{display:-webkit-box;display:-ms-flexbox;display:flex}.jetpack-clipboard-input .components-clipboard-button{margin:2px 6px 0 0}.wp-block-jetpack-simple-payments .simple-payments__help-message{display:-webkit-box;display:-ms-flexbox;display:flex;font-size:13px;line-height:1.4em;margin-bottom:1em;margin-top:-.5em}.wp-block-jetpack-simple-payments .simple-payments__help-message svg{margin-left:5px;min-width:24px}.wp-block-jetpack-simple-payments .simple-payments__help-message>span{margin-top:2px}.wp-block-jetpack-simple-payments .simple-payments__help-message.simple-payments__help-message-is-error{color:#eb0001}.wp-block-jetpack-simple-payments .simple-payments__help-message.simple-payments__help-message-is-error svg{fill:#eb0001}.simple-payments__loading{-webkit-animation:simple-payments-loading 1.6s ease-in-out infinite;animation:simple-payments-loading 1.6s ease-in-out infinite}@-webkit-keyframes simple-payments-loading{0%{opacity:.5}50%{opacity:.7}to{opacity:.5}}@keyframes simple-payments-loading{0%{opacity:.5}50%{opacity:.7}to{opacity:.5}}.jetpack-simple-payments-wrapper{margin-bottom:1.5em}body .jetpack-simple-payments-wrapper .jetpack-simple-payments-details p{margin:0 0 1.5em;padding:0}.jetpack-simple-payments-product{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.jetpack-simple-payments-product-image{-webkit-box-flex:0;-ms-flex:0 0 30%;flex:0 0 30%;margin-bottom:1.5em}.jetpack-simple-payments-image{-webkit-box-sizing:border-box;box-sizing:border-box;min-width:70px;padding-top:100%;position:relative}.jetpack-simple-payments-image img{border:0;border-radius:0;height:auto;right:50%;margin:0;max-height:100%;max-width:100%;padding:0;position:absolute;top:50%;-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%);width:auto}.jetpack-simple-payments-price p,.jetpack-simple-payments-title p{font-weight:700}.jetpack-simple-payments-purchase-box{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;display:-webkit-box;display:-ms-flexbox;display:flex}.jetpack-simple-payments-items{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;margin-left:10px}input[type=number].jetpack-simple-payments-items-number{background:#fff;font-size:16px;line-height:1;max-width:60px;padding:4px 8px}@media screen and (min-width:400px){.jetpack-simple-payments-product{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.jetpack-simple-payments-product-image+.jetpack-simple-payments-details{-ms-flex-preferred-size:70%;flex-basis:70%;padding-right:1em}}.wp-block-jetpack-simple-payments{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;display:grid;grid-template-columns:200px auto;grid-column-gap:10px}.wp-block-jetpack-simple-payments .simple-payments__field .components-base-control__label{display:none}.wp-block-jetpack-simple-payments .simple-payments__field .components-base-control__field{margin-bottom:1em}.wp-block-jetpack-simple-payments .simple-payments__field textarea{display:block}.wp-block-jetpack-simple-payments .simple-payments__field-has-error .components-text-control__input,.wp-block-jetpack-simple-payments .simple-payments__field-has-error .components-textarea-control__input{border-color:#eb0001}.wp-block-jetpack-simple-payments .simple-payments__price-container{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.wp-block-jetpack-simple-payments .simple-payments__price-container .simple-payments__field{margin-left:10px}.wp-block-jetpack-simple-payments .simple-payments__price-container .simple-payments__help-message{-webkit-box-flex:1;-ms-flex:1 1 100%;flex:1 1 100%;margin-top:0}.wp-block-jetpack-simple-payments .simple-payments__field-price .components-text-control__input{max-width:90px}.wp-block-jetpack-simple-payments .simple-payments__field-email .components-text-control__input{max-width:400px}.wp-block-jetpack-simple-payments .simple-payments__field-multiple .components-toggle-control__label{line-height:1.4em}.wp-block-jetpack-simple-payments .simple-payments__field-content .components-textarea-control__input{min-height:32px}.wp-block-jetpack-tiled-gallery{margin:0 auto}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__item img{border-radius:50%}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;width:100%}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-1 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-1 .tiled-gallery__col{width:100%}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-2 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-2 .tiled-gallery__col{width:calc((100% - 4px)/2)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-3 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-3 .tiled-gallery__col{width:calc((100% - 8px)/3)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-4 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-4 .tiled-gallery__col{width:calc((100% - 12px)/4)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-5 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-5 .tiled-gallery__col{width:calc((100% - 16px)/5)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-6 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-6 .tiled-gallery__col{width:calc((100% - 20px)/6)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-7 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-7 .tiled-gallery__col{width:calc((100% - 24px)/7)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-8 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-8 .tiled-gallery__col{width:calc((100% - 28px)/8)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-9 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-9 .tiled-gallery__col{width:calc((100% - 32px)/9)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-10 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-10 .tiled-gallery__col{width:calc((100% - 36px)/10)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-11 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-11 .tiled-gallery__col{width:calc((100% - 40px)/11)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-12 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-12 .tiled-gallery__col{width:calc((100% - 44px)/12)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-13 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-13 .tiled-gallery__col{width:calc((100% - 48px)/13)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-14 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-14 .tiled-gallery__col{width:calc((100% - 52px)/14)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-15 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-15 .tiled-gallery__col{width:calc((100% - 56px)/15)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-16 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-16 .tiled-gallery__col{width:calc((100% - 60px)/16)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-17 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-17 .tiled-gallery__col{width:calc((100% - 64px)/17)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-18 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-18 .tiled-gallery__col{width:calc((100% - 68px)/18)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-19 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-19 .tiled-gallery__col{width:calc((100% - 72px)/19)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-20 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-20 .tiled-gallery__col{width:calc((100% - 76px)/20)}.wp-block-jetpack-tiled-gallery.is-style-columns .tiled-gallery__item,.wp-block-jetpack-tiled-gallery.is-style-rectangular .tiled-gallery__item{display:-webkit-box;display:-ms-flexbox;display:flex}.tiled-gallery__gallery{padding:0;-ms-flex-wrap:wrap;flex-wrap:wrap}.tiled-gallery__gallery,.tiled-gallery__row{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex}.tiled-gallery__row{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:0}.tiled-gallery__row+.tiled-gallery__row{margin-top:4px}.tiled-gallery__col{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:0}.tiled-gallery__col+.tiled-gallery__col{margin-right:4px}.tiled-gallery__item{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:relative;margin:0;overflow:hidden}.tiled-gallery__item+.tiled-gallery__item{margin-top:4px}.tiled-gallery__item>a,.tiled-gallery__item>a>img,.tiled-gallery__item>img{display:block;height:auto;max-width:100%;width:100%;-o-object-fit:cover;object-fit:cover;-o-object-position:center;object-position:center}.wp-block-jetpack-tiled-gallery{padding-right:4px;padding-left:4px}.wp-block-jetpack-tiled-gallery .tiled-gallery__item>img:focus{outline:none}.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected{outline:4px solid #0085ba}.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-transient img{opacity:.3}.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item{margin-top:4px;width:100%}.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item .components-button.tiled-gallery__add-item-button,.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item .components-form-file-upload{width:100%;height:100%}.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item .components-button.tiled-gallery__add-item-button{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-shadow:none;box-shadow:none;border:none;border-radius:0;min-height:100px}.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item .components-button.tiled-gallery__add-item-button .dashicon{margin-top:10px}.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item .components-button.tiled-gallery__add-item-button:focus,.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item .components-button.tiled-gallery__add-item-button:hover{border:1px solid #555d66}.wp-block-jetpack-tiled-gallery .tiled-gallery__item__inline-menu{background-color:#0085ba;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;padding:0 2px 2px 0;position:absolute;left:0;top:0}.wp-block-jetpack-tiled-gallery .tiled-gallery__item__inline-menu .components-button,.wp-block-jetpack-tiled-gallery .tiled-gallery__item__inline-menu .components-button:focus,.wp-block-jetpack-tiled-gallery .tiled-gallery__item__inline-menu .components-button:hover{color:#fff}.wp-block-jetpack-tiled-gallery .tiled-gallery__item__remove{padding:0}.wp-block-jetpack-tiled-gallery .tiled-gallery__item .components-spinner{position:absolute;top:50%;right:50%;-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%)}.editor-block-preview__content .wp-block-jetpack-tiled-gallery .editor-media-placeholder{display:none}.wp-block-jetpack-tiled-gallery .tiled-gallery__media-placeholder-icon{height:20px;margin-left:1ch;width:20px}.jetpack-email-subscribe-email{display:block;padding:3px 9px;width:50%}.jetpack-email-subscribe-consent-label{color:#999;display:block;font-style:italic;line-height:20px;margin-bottom:23px}.jetpack-email-subscribe-submit{margin:18px 0 13px}.jetpack-email-subscribe-form-error{border:1px solid red}.jetpack-email-subscribe-processing{background-color:#e0e5e9;display:none;margin-bottom:23px;padding:20px;text-align:center}.jetpack-email-subscribe-error{background-color:#da5544}.jetpack-email-subscribe-error,.jetpack-email-subscribe-success{color:#fff;display:none;margin-bottom:23px;padding:20px;text-align:center}.jetpack-email-subscribe-success{background-color:#73b961}.wp-block-jetpack-vr{position:relative;max-width:525px;margin-right:auto;margin-left:auto;overflow:hidden}.wp-block-jetpack-vr .components-placeholder__fieldset{-ms-flex-pack:distribute;justify-content:space-around}.jetpack-contact-info-block{padding:10px 18px}.jetpack-contact-info-block .editor-plain-text.editor-plain-text:focus{-webkit-box-shadow:none;box-shadow:none}
_inc/blocks/editor.css ADDED
@@ -0,0 +1 @@
 
1
+ .help-message{display:-webkit-box;display:-ms-flexbox;display:flex;font-size:13px;line-height:1.4em;margin-bottom:1em;margin-top:-.5em}.help-message svg{margin-right:5px;min-width:24px}.help-message>span{margin-top:2px}.help-message.help-message-is-error{color:#eb0001}.help-message.help-message-is-error svg{fill:#eb0001}.edit-post-more-menu__content .components-icon-button .jetpack-logo,.edit-post-pinned-plugins .components-icon-button .jetpack-logo{width:20px;height:20px}.edit-post-more-menu__content .components-icon-button .jetpack-logo{margin-right:4px}.edit-post-pinned-plugins .components-icon-button.is-toggled .jetpack-logo,.edit-post-pinned-plugins .components-icon-button.is-toggled .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button.is-toggled .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button.is-toggled:hover .jetpack-logo,.edit-post-pinned-plugins .components-icon-button.is-toggled:hover .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button.is-toggled:hover .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button:hover .jetpack-logo,.edit-post-pinned-plugins .components-icon-button:hover .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button:hover .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button:not(.is-toggled) .jetpack-logo,.edit-post-pinned-plugins .components-icon-button:not(.is-toggled) .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button:not(.is-toggled) .jetpack-logo__icon-triangle{stroke:none!important}.edit-post-pinned-plugins .components-icon-button.is-toggled .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button.is-toggled:hover .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button:hover .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button:not(.is-toggled) .jetpack-logo__icon-circle{fill:#00be28!important}.edit-post-pinned-plugins .components-icon-button.is-toggled .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button.is-toggled:hover .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button:hover .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button:not(.is-toggled) .jetpack-logo__icon-triangle{fill:#fff!important}.jetpack-contact-form{padding:10px 18px}.jetpack-contact-form.has-intro{padding:0}.jetpack-contact-form .components-placeholder{padding:24px}.jetpack-contact-form .components-placeholder input[type=text]{width:100%;outline-width:0;outline-style:none;line-height:16px}.jetpack-contact-form .components-placeholder .components-placeholder__label svg{margin-right:1ch}.jetpack-contact-form .components-placeholder .components-placeholder__fieldset,.jetpack-contact-form .components-placeholder .help-message{text-align:left}.jetpack-contact-form .components-placeholder .help-message{width:100%;margin:-18px 0 28px}.jetpack-contact-form .components-placeholder .components-base-control{margin-bottom:16px;width:100%}.jetpack-contact-form__intro-message{margin:0 0 16px}.jetpack-contact-form__create{width:100%}.jetpack-field-label{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.jetpack-field-label .components-base-control{margin-top:-1px;margin-bottom:-3px}.jetpack-field-label .components-base-control .components-form-toggle{margin:2px 8px 0 0}.jetpack-field-label .required{color:#dc3232}.jetpack-field-label .components-toggle-control .components-base-control__field{margin-bottom:0}.jetpack-field-label__input{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;min-height:unset;padding:0}.jetpack-field-label__input.jetpack-field-label__input.jetpack-field-label__input{border-color:#fff;border-radius:0;font-weight:600;margin:0 0 2px;padding:0}.jetpack-field-label__input.jetpack-field-label__input.jetpack-field-label__input:focus{border-color:#fff;-webkit-box-shadow:none;box-shadow:none}input.components-text-control__input{line-height:16px}.jetpack-field .components-text-control__input.components-text-control__input{width:100%}.jetpack-field .components-text-control__input,.jetpack-field .components-textarea-control__input{color:#72777c;padding:10px 8px}.jetpack-field-checkbox__checkbox.jetpack-field-checkbox__checkbox.jetpack-field-checkbox__checkbox{float:left}.jetpack-field-multiple__list.jetpack-field-multiple__list{list-style-type:none;margin:0}.jetpack-field-multiple__list.jetpack-field-multiple__list:empty{display:none}[data-type="jetpack/field-select"] .jetpack-field-multiple__list.jetpack-field-multiple__list{border:1px solid #8d96a0;border-radius:4px;padding:4px}.jetpack-option{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:0}.jetpack-option__type.jetpack-option__type{margin-top:0}.jetpack-option__input.jetpack-option__input.jetpack-option__input{border-color:#fff;border-radius:0;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.jetpack-option__input.jetpack-option__input.jetpack-option__input:hover{border-color:#357cb5}.jetpack-option__input.jetpack-option__input.jetpack-option__input:focus{border-color:#e3e5e8;-webkit-box-shadow:none;box-shadow:none}.jetpack-option__remove.jetpack-option__remove{padding:6px;vertical-align:bottom}.jetpack-field-multiple__add-option{margin-left:-6px;padding:4px 8px 4px 4px}.jetpack-field-multiple__add-option svg{margin-right:12px}.jetpack-field-checkbox .components-base-control__label{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.jetpack-field-checkbox .components-base-control__label .jetpack-field-label{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.jetpack-field-checkbox .components-base-control__label .jetpack-field-label__input{font-size:13px;font-weight:400;padding-left:10px}@media (min-width:481px){.jetpack-contact-form-shortcode-preview{padding:24px}}.jetpack-contact-form-shortcode-preview{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:1.4em;display:block;position:relative;margin:0 auto;padding:16px;-webkit-box-sizing:border-box;box-sizing:border-box;background:#fff;-webkit-box-shadow:0 0 0 1px rgba(200,215,225,.5),0 1px 2px #e9eff3;box-shadow:0 0 0 1px rgba(200,215,225,.5),0 1px 2px #e9eff3}.jetpack-contact-form-shortcode-preview:after{content:".";display:block;height:0;clear:both;visibility:hidden}.jetpack-contact-form-shortcode-preview>div{margin-top:24px}.jetpack-contact-form-shortcode-preview>div:first-child{margin-top:0}.jetpack-contact-form-shortcode-preview label{display:block;font-size:14px;font-weight:600;margin-bottom:5px}.jetpack-contact-form-shortcode-preview input[type=email],.jetpack-contact-form-shortcode-preview input[type=tel],.jetpack-contact-form-shortcode-preview input[type=text],.jetpack-contact-form-shortcode-preview input[type=url]{border-radius:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:7px 14px;width:100%;color:#2e4453;font-size:16px;line-height:1.5;border:1px solid #c8d7e1;background-color:#fff;-webkit-transition:all .15s ease-in-out;transition:all .15s ease-in-out;-webkit-box-shadow:none;box-shadow:none}.jetpack-contact-form-shortcode-preview input[type=email]::-webkit-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=tel]::-webkit-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=text]::-webkit-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=url]::-webkit-input-placeholder{color:#87a6bc}.jetpack-contact-form-shortcode-preview input[type=email]:-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=tel]:-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=text]:-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=url]:-ms-input-placeholder{color:#87a6bc}.jetpack-contact-form-shortcode-preview input[type=email]::-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=tel]::-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=text]::-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=url]::-ms-input-placeholder{color:#87a6bc}.jetpack-contact-form-shortcode-preview input[type=email]::placeholder,.jetpack-contact-form-shortcode-preview input[type=tel]::placeholder,.jetpack-contact-form-shortcode-preview input[type=text]::placeholder,.jetpack-contact-form-shortcode-preview input[type=url]::placeholder{color:#87a6bc}.jetpack-contact-form-shortcode-preview input[type=email]:hover,.jetpack-contact-form-shortcode-preview input[type=tel]:hover,.jetpack-contact-form-shortcode-preview input[type=text]:hover,.jetpack-contact-form-shortcode-preview input[type=url]:hover{border-color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=email]:focus,.jetpack-contact-form-shortcode-preview input[type=tel]:focus,.jetpack-contact-form-shortcode-preview input[type=text]:focus,.jetpack-contact-form-shortcode-preview input[type=url]:focus{border-color:#0087be;outline:none;-webkit-box-shadow:0 0 0 2px #78dcfa;box-shadow:0 0 0 2px #78dcfa}.jetpack-contact-form-shortcode-preview input[type=email]:focus::-ms-clear,.jetpack-contact-form-shortcode-preview input[type=tel]:focus::-ms-clear,.jetpack-contact-form-shortcode-preview input[type=text]:focus::-ms-clear,.jetpack-contact-form-shortcode-preview input[type=url]:focus::-ms-clear{display:none}.jetpack-contact-form-shortcode-preview input[type=email]:disabled,.jetpack-contact-form-shortcode-preview input[type=tel]:disabled,.jetpack-contact-form-shortcode-preview input[type=text]:disabled,.jetpack-contact-form-shortcode-preview input[type=url]:disabled{background:#f3f6f8;border-color:#e9eff3;color:#a8bece;-webkit-text-fill-color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=email]:disabled:hover,.jetpack-contact-form-shortcode-preview input[type=tel]:disabled:hover,.jetpack-contact-form-shortcode-preview input[type=text]:disabled:hover,.jetpack-contact-form-shortcode-preview input[type=url]:disabled:hover{cursor:default}.jetpack-contact-form-shortcode-preview input[type=email]:disabled::-webkit-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=tel]:disabled::-webkit-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=text]:disabled::-webkit-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=url]:disabled::-webkit-input-placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=email]:disabled:-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=tel]:disabled:-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=text]:disabled:-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=url]:disabled:-ms-input-placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=email]:disabled::-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=tel]:disabled::-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=text]:disabled::-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=url]:disabled::-ms-input-placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=email]:disabled::placeholder,.jetpack-contact-form-shortcode-preview input[type=tel]:disabled::placeholder,.jetpack-contact-form-shortcode-preview input[type=text]:disabled::placeholder,.jetpack-contact-form-shortcode-preview input[type=url]:disabled::placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview textarea{border-radius:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:7px 14px;height:92px;width:100%;color:#2e4453;font-size:16px;line-height:1.5;border:1px solid #c8d7e1;background-color:#fff;-webkit-transition:all .15s ease-in-out;transition:all .15s ease-in-out;-webkit-box-shadow:none;box-shadow:none}.jetpack-contact-form-shortcode-preview textarea::-webkit-input-placeholder{color:#87a6bc}.jetpack-contact-form-shortcode-preview textarea:-ms-input-placeholder{color:#87a6bc}.jetpack-contact-form-shortcode-preview textarea::-ms-input-placeholder{color:#87a6bc}.jetpack-contact-form-shortcode-preview textarea::placeholder{color:#87a6bc}.jetpack-contact-form-shortcode-preview textarea:hover{border-color:#a8bece}.jetpack-contact-form-shortcode-preview textarea:focus{border-color:#0087be;outline:none;-webkit-box-shadow:0 0 0 2px #78dcfa;box-shadow:0 0 0 2px #78dcfa}.jetpack-contact-form-shortcode-preview textarea:focus::-ms-clear{display:none}.jetpack-contact-form-shortcode-preview textarea:disabled{background:#f3f6f8;border-color:#e9eff3;color:#a8bece;-webkit-text-fill-color:#a8bece}.jetpack-contact-form-shortcode-preview textarea:disabled:hover{cursor:default}.jetpack-contact-form-shortcode-preview textarea:disabled::-webkit-input-placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview textarea:disabled:-ms-input-placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview textarea:disabled::-ms-input-placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview textarea:disabled::placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=checkbox]{-webkit-appearance:none;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;margin:2px 0 0;width:16px;height:16px;float:left;outline:0;padding:0;-webkit-box-shadow:none;box-shadow:none;background-color:#fff;border:1px solid #c8d7e1;color:#2e4453;font-size:16px;line-height:0;text-align:center;vertical-align:middle;-moz-appearance:none;appearance:none;-webkit-transition:all .15s ease-in-out;transition:all .15s ease-in-out;clear:none;cursor:pointer}.jetpack-contact-form-shortcode-preview input[type=checkbox]:checked:before{content:"\F147";font-family:Dashicons;margin:-3px 0 0 -4px;float:left;display:inline-block;vertical-align:middle;width:16px;font-size:20px;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;speak:none;color:#00aadc}.jetpack-contact-form-shortcode-preview input[type=checkbox]:disabled:checked:before{color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=checkbox]:hover{border-color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=checkbox]:focus{border-color:#0087be;outline:none;-webkit-box-shadow:0 0 0 2px #78dcfa;box-shadow:0 0 0 2px #78dcfa}.jetpack-contact-form-shortcode-preview input[type=checkbox]:disabled{background:#f3f6f8;border-color:#e9eff3;color:#a8bece;opacity:1}.jetpack-contact-form-shortcode-preview input[type=checkbox]:disabled:hover{cursor:default}.jetpack-contact-form-shortcode-preview input[type=checkbox]+span{display:block;font-weight:400;margin-left:24px}.jetpack-contact-form-shortcode-preview input[type=radio]{color:#2e4453;font-size:16px;border:1px solid #c8d7e1;background-color:#fff;-webkit-transition:all .15s ease-in-out;transition:all .15s ease-in-out;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;clear:none;cursor:pointer;display:inline-block;line-height:0;height:16px;margin:2px 4px 0 0;float:left;outline:0;padding:0;text-align:center;vertical-align:middle;width:16px;min-width:16px;-moz-appearance:none;appearance:none;border-radius:50%;line-height:10px}.jetpack-contact-form-shortcode-preview input[type=radio]:hover{border-color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=radio]:focus{border-color:#0087be;outline:none;-webkit-box-shadow:0 0 0 2px #78dcfa;box-shadow:0 0 0 2px #78dcfa}.jetpack-contact-form-shortcode-preview input[type=radio]:focus::-ms-clear{display:none}.jetpack-contact-form-shortcode-preview input[type=radio]:checked:before{float:left;display:inline-block;content:"\2022";margin:3px;width:8px;height:8px;text-indent:-9999px;background:#00aadc;vertical-align:middle;border-radius:50%;-webkit-animation:grow .2s ease-in-out;animation:grow .2s ease-in-out}.jetpack-contact-form-shortcode-preview input[type=radio]:disabled{background:#f3f6f8;border-color:#e9eff3;color:#a8bece;opacity:1;-webkit-text-fill-color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=radio]:disabled:hover{cursor:default}.jetpack-contact-form-shortcode-preview input[type=radio]:disabled::-webkit-input-placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=radio]:disabled:-ms-input-placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=radio]:disabled::-ms-input-placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=radio]:disabled::placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=radio]:disabled:checked:before{background:#e9eff3}.jetpack-contact-form-shortcode-preview input[type=radio]+span{display:block;font-weight:400;margin-left:24px}@-webkit-keyframes grow{0%{-webkit-transform:scale(.3);transform:scale(.3)}60%{-webkit-transform:scale(1.15);transform:scale(1.15)}to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes grow{0%{-webkit-transform:scale(.3);transform:scale(.3)}60%{-webkit-transform:scale(1.15);transform:scale(1.15)}to{-webkit-transform:scale(1);transform:scale(1)}}.jetpack-contact-form-shortcode-preview select{background:#fff url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE1LjUgNkwxNyA3LjVsLTYuNzUgNi43NUwzLjUgNy41IDUgNmw1LjI1IDUuMjVMMTUuNSA2eiIgZmlsbD0iI0M4RDdFMSIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+) no-repeat right 10px center;border-radius:4px;border:solid #c8d7e1;border-width:1px 1px 2px;color:#2e4453;cursor:pointer;display:inline-block;margin:0;outline:0;overflow:hidden;font-size:14px;line-height:21px;font-weight:600;text-overflow:ellipsis;text-decoration:none;vertical-align:top;white-space:nowrap;-webkit-box-sizing:border-box;box-sizing:border-box;padding:2px 32px 2px 14px;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:sans-serif}.jetpack-contact-form-shortcode-preview select:hover{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE1LjUgNkwxNyA3LjVsLTYuNzUgNi43NUwzLjUgNy41IDUgNmw1LjI1IDUuMjVMMTUuNSA2eiIgZmlsbD0iI2E4YmVjZSIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)}.jetpack-contact-form-shortcode-preview select:focus{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE1LjUgNkwxNyA3LjVsLTYuNzUgNi43NUwzLjUgNy41IDUgNmw1LjI1IDUuMjVMMTUuNSA2eiIgZmlsbD0iIzJlNDQ1MyIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+);border-color:#00aadc;-webkit-box-shadow:0 0 0 2px #78dcfa;box-shadow:0 0 0 2px #78dcfa;outline:0;-moz-outline:none;-moz-user-focus:ignore}.jetpack-contact-form-shortcode-preview select:disabled,.jetpack-contact-form-shortcode-preview select:hover:disabled{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE1LjUgNkwxNyA3LjVsLTYuNzUgNi43NUwzLjUgNy41IDUgNmw1LjI1IDUuMjVMMTUuNSA2eiIgZmlsbD0iI2U5ZWZmMyIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+) no-repeat right 10px center}.jetpack-contact-form-shortcode-preview select.is-compact{min-width:0;padding:0 20px 2px 6px;margin:0 4px;background-position:right 5px center;background-size:12px 12px}.jetpack-contact-form-shortcode-preview label+select,.jetpack-contact-form-shortcode-preview label select{display:block;min-width:200px}.jetpack-contact-form-shortcode-preview label+select.is-compact,.jetpack-contact-form-shortcode-preview label select.is-compact{display:inline-block;min-width:0}.jetpack-contact-form-shortcode-preview select::-ms-expand{display:none}.jetpack-contact-form-shortcode-preview select::-ms-value{background:none;color:#2e4453}.jetpack-contact-form-shortcode-preview select:-moz-focusring{color:transparent;text-shadow:0 0 0 #2e4453}.jetpack-contact-form-shortcode-preview input[type=submit]{vertical-align:baseline;background:#fff;border:solid #c8d7e1;border-width:1px 1px 2px;color:#2e4453;cursor:pointer;display:inline-block;margin:24px 0 0;outline:0;overflow:hidden;font-weight:500;text-overflow:ellipsis;text-decoration:none;vertical-align:top;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:14px;line-height:21px;border-radius:4px;padding:7px 14px 9px;-webkit-appearance:none;-moz-appearance:none;appearance:none}.jetpack-contact-form-shortcode-preview input[type=submit]:hover{border-color:#a8bece;color:#2e4453}.jetpack-contact-form-shortcode-preview input[type=submit]:active{border-width:2px 1px 1px}.jetpack-contact-form-shortcode-preview input[type=submit]:visited{color:#2e4453}.jetpack-contact-form-shortcode-preview input[type=submit]:focus{border-color:#00aadc;-webkit-box-shadow:0 0 0 2px #78dcfa;box-shadow:0 0 0 2px #78dcfa}.wp-block-jetpack-gif figure{-webkit-transition:padding-top 125ms ease-in-out;transition:padding-top 125ms ease-in-out}.wp-block-jetpack-gif .components-base-control__field{text-align:center}.wp-block-jetpack-gif .wp-block-jetpack-gif_cover{background:none;border:none;height:100%;left:0;margin:0;padding:0;position:absolute;top:0;width:100%;z-index:1}.wp-block-jetpack-gif .wp-block-jetpack-gif_cover:focus{outline:none}.wp-block-jetpack-gif .wp-block-jetpack-gif_input-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:0 auto;max-width:400px;width:100%;z-index:1}.wp-block-jetpack-gif .wp-block-jetpack-gif_input-container .components-base-control__label{height:0;margin:0;text-indent:-9999px}.wp-block-jetpack-gif .wp-block-jetpack-gif_input{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;margin-right:.5em}.wp-block-jetpack-gif .wp-block-jetpack-gif_thumbnails-container{display:-webkit-box;display:-ms-flexbox;display:flex;margin:-2px 0 2px -2px;overflow-x:auto;width:calc(100% + 4px)}.wp-block-jetpack-gif .wp-block-jetpack-gif_thumbnails-container::-webkit-scrollbar{display:none}.wp-block-jetpack-gif .wp-block-jetpack-gif_thumbnail-container{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-size:cover;background-repeat:no-repeat;background-position:50% 50%;border:none;border-radius:3px;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:2px;padding:0 0 calc(11.11111% - 4px);width:calc(11.11111% - 4px)}.wp-block-jetpack-gif .wp-block-jetpack-gif_thumbnail-container:hover{-webkit-box-shadow:0 0 0 1px #555d66;box-shadow:0 0 0 1px #555d66}.wp-block-jetpack-gif .wp-block-jetpack-gif_thumbnail-container:focus{-webkit-box-shadow:0 0 0 2px #00a0d2;box-shadow:0 0 0 2px #00a0d2;outline:0}.components-panel__body-gif-branding svg{display:block;margin:0 auto;max-width:200px}.components-panel__body-gif-branding svg path{fill:#ccc}.wp-block-jetpack-gif figure{margin:0;position:relative;width:100%}.wp-block-jetpack-gif iframe{border:0;left:0;height:100%;position:absolute;top:0;width:100%}.wp-block-jetpack-gif.aligncenter{text-align:center}.wp-block-jetpack-gif.alignleft,.wp-block-jetpack-gif.alignright{min-width:300px}.wp-block-jetpack-gif .wp-block-jetpack-gif-caption{margin-top:.5em;margin-bottom:1em;color:#555d66;text-align:center}.wp-block-jetpack-gif .wp-block-jetpack-gif-wrapper{height:0;margin:0;padding:calc(56.2% + 12px) 0 0;position:relative;width:100%}.component__add-point{position:absolute;left:50%;top:50%;width:32px;height:38px;margin-top:-19px;margin-left:-16px;background-image:url(images/oval-3cc7669d571aef4e12f34b349e42d390.svg);background-repeat:no-repeat;text-indent:-9999px}.component__add-point,.component__add-point.components-button:not(:disabled):not([aria-disabled=true]):focus,.component__add-point:active,.component__add-point:focus,.component__add-point__popover .components-button:not(:disabled):not([aria-disabled=true]):focus{-webkit-box-shadow:none;box-shadow:none;background-color:transparent}.component__add-point__popover .components-popover__content{padding:.1rem}.component__add-point__popover .components-location-search{margin:.5rem}.component__add-point__close{margin:0;padding:0;border:none;-webkit-box-shadow:none;box-shadow:none;float:right}.component__add-point__close path{color:#aaa}.edit-post-settings-sidebar__panel-block .component__locations__panel{margin-bottom:1em}.edit-post-settings-sidebar__panel-block .component__locations__panel:empty{display:none}.edit-post-settings-sidebar__panel-block .component__locations__panel .components-panel__body:first-child{border-top:none}.edit-post-settings-sidebar__panel-block .component__locations__panel .components-panel__body,.edit-post-settings-sidebar__panel-block .component__locations__panel .components-panel__body:first-child,.edit-post-settings-sidebar__panel-block .component__locations__panel .components-panel__body:last-child{max-width:100%;margin:0}.edit-post-settings-sidebar__panel-block .component__locations__panel .components-panel__body button{padding-right:40px}.component__locations__delete-btn{padding:0}.component__locations__delete-btn svg{margin-right:.4em}.wp-block-jetpack-map-marker{width:32px;height:38px;opacity:.9}.edit-post-settings-sidebar__panel-block .component__map-theme-picker__button{border:1px solid #d3d3d3;border-radius:100%;width:56px;height:56px;margin:2px;text-indent:-9999px;background-color:#d3d3d3;background-position:50%;background-repeat:no-repeat;background-size:contain;-webkit-transform:scale(1);transform:scale(1);-webkit-transition:-webkit-transform .2s ease;transition:-webkit-transform .2s ease;transition:transform .2s ease;transition:transform .2s ease,-webkit-transform .2s ease}.edit-post-settings-sidebar__panel-block .component__map-theme-picker__button:hover{-webkit-transform:scale(1.1);transform:scale(1.1)}.edit-post-settings-sidebar__panel-block .component__map-theme-picker__button.is-selected{border-color:#000}.edit-post-settings-sidebar__panel-block .component__map-theme-picker__button.is-theme-default{background-image:url(images/map-theme_default-2ceb449b599dbcbe2a90fead5a5f3824.jpg)}.edit-post-settings-sidebar__panel-block .component__map-theme-picker__button.is-theme-black_and_white{background-image:url(images/map-theme_black_and_white-1ead5946ca104d83676d6e3410e1d733.jpg)}.edit-post-settings-sidebar__panel-block .component__map-theme-picker__button.is-theme-satellite{background-image:url(images/map-theme_satellite-c74dc129bda9502fb0fb362bb627577e.jpg)}.edit-post-settings-sidebar__panel-block .component__map-theme-picker__button.is-theme-terrain{background-image:url(images/map-theme_terrain-2b6e6c1c8d09cbdc58a4c0653be1a6e3.jpg)}.wp-block-jetpack-map .wp-block-jetpack-map__gm-container{width:100%;overflow:hidden;background:#d3d3d3;min-height:400px;text-align:left}.wp-block-jetpack-map .mapboxgl-popup{max-width:300px}.wp-block-jetpack-map .mapboxgl-popup h3{font-size:1.3125em;font-weight:400;margin-bottom:.5rem}.wp-block-jetpack-map .mapboxgl-popup p{margin-bottom:0}.wp-block-jetpack-map__delete-btn{padding:0}.wp-block-jetpack-map__delete-btn svg{margin-right:.4em}.wp-block-jetpack-map-components-text-control-api-key{margin-right:4px}.wp-block-jetpack-map-components-text-control-api-key.components-base-control .components-base-control__field{margin-bottom:0}.wp-block-jetpack-map-components-text-control-api-key-submit.is-large{height:31px}.wp-block-jetpack-map-components-text-control-api-key-submit:disabled{opacity:1}.wp-block[data-type="jetpack/map"] .components-placeholder__label svg{fill:currentColor;margin-right:1ch}.wp-block-jetpack-markdown__placeholder{opacity:.62;pointer-events:none}.editor-block-list__block .wp-block-jetpack-markdown__preview{min-height:1.8em;line-height:1.8}.editor-block-list__block .wp-block-jetpack-markdown__preview>*{margin-top:32px;margin-bottom:32px}.editor-block-list__block .wp-block-jetpack-markdown__preview h1,.editor-block-list__block .wp-block-jetpack-markdown__preview h2,.editor-block-list__block .wp-block-jetpack-markdown__preview h3{line-height:1.4}.editor-block-list__block .wp-block-jetpack-markdown__preview h1{font-size:2.44em}.editor-block-list__block .wp-block-jetpack-markdown__preview h2{font-size:1.95em}.editor-block-list__block .wp-block-jetpack-markdown__preview h3{font-size:1.56em}.editor-block-list__block .wp-block-jetpack-markdown__preview h4{font-size:1.25em;line-height:1.5}.editor-block-list__block .wp-block-jetpack-markdown__preview h5{font-size:1em}.editor-block-list__block .wp-block-jetpack-markdown__preview h6{font-size:.8em}.editor-block-list__block .wp-block-jetpack-markdown__preview hr{border:none;border-bottom:2px solid #8f98a1;margin:2em auto;max-width:100px}.editor-block-list__block .wp-block-jetpack-markdown__preview p{line-height:1.8}.editor-block-list__block .wp-block-jetpack-markdown__preview blockquote{border-left:4px solid #000;margin-left:0;margin-right:0;padding-left:1em}.editor-block-list__block .wp-block-jetpack-markdown__preview blockquote p{line-height:1.5;margin:1em 0}.editor-block-list__block .wp-block-jetpack-markdown__preview ol,.editor-block-list__block .wp-block-jetpack-markdown__preview ul{margin-left:1.3em;padding-left:1.3em}.editor-block-list__block .wp-block-jetpack-markdown__preview li p{margin:0}.editor-block-list__block .wp-block-jetpack-markdown__preview code,.editor-block-list__block .wp-block-jetpack-markdown__preview pre{color:#23282d;font-family:Menlo,Consolas,monaco,monospace}.editor-block-list__block .wp-block-jetpack-markdown__preview code{background:#f3f4f5;border-radius:2px;font-size:inherit;padding:2px}.editor-block-list__block .wp-block-jetpack-markdown__preview pre{border-radius:4px;border:1px solid #e2e4e7;font-size:14px;padding:.8em 1em}.editor-block-list__block .wp-block-jetpack-markdown__preview pre code{background:transparent;padding:0}.editor-block-list__block .wp-block-jetpack-markdown__preview table{overflow-x:auto;border-collapse:collapse;width:100%}.editor-block-list__block .wp-block-jetpack-markdown__preview tbody,.editor-block-list__block .wp-block-jetpack-markdown__preview tfoot,.editor-block-list__block .wp-block-jetpack-markdown__preview thead{width:100%;min-width:240px}.editor-block-list__block .wp-block-jetpack-markdown__preview td,.editor-block-list__block .wp-block-jetpack-markdown__preview th{padding:.5em;border:1px solid}.wp-block-jetpack-markdown .wp-block-jetpack-markdown__editor{font-family:Menlo,Consolas,monaco,monospace;font-size:14px}.wp-block-jetpack-markdown .wp-block-jetpack-markdown__editor:focus{border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent}.jetpack-publicize-message-box{background-color:#edeff0;border-radius:4px}.jetpack-publicize-message-box textarea{width:100%}.jetpack-publicize-character-count{padding-bottom:5px;padding-left:5px}.jetpack-publicize__connections-list{list-style-type:none;margin:13px 0}.publicize-jetpack-connection-container{display:-webkit-box;display:-ms-flexbox;display:flex}.jetpack-publicize-gutenberg-social-icon{fill:#555d66;margin-right:5px}.jetpack-publicize-gutenberg-social-icon.is-facebook{fill:#39579a}.jetpack-publicize-gutenberg-social-icon.is-twitter{fill:#55acee}.jetpack-publicize-gutenberg-social-icon.is-linkedin{fill:#0976b4}.jetpack-publicize-gutenberg-social-icon.is-tumblr{fill:#35465c}.jetpack-publicize-gutenberg-social-icon.is-google-plus{fill:#df4a32}.jetpack-publicize-connection-label{-webkit-box-flex:1;-ms-flex:1;flex:1;margin-right:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jetpack-publicize-connection-label .jetpack-publicize-connection-label-copy,.jetpack-publicize-connection-label .jetpack-publicize-gutenberg-social-icon{display:inline-block;vertical-align:middle}.jetpack-publicize-connection-toggle{margin-top:3px}.jetpack-publicize-notice.components-notice{margin-left:0;margin-right:0;margin-bottom:13px}.jetpack-publicize-notice .components-button+.components-button{margin-top:5px}.jetpack-publicize-message-note{display:inline-block;margin-bottom:4px;margin-top:13px}.jetpack-publicize-add-connection-wrapper{margin:15px 0}.jetpack-publicize-add-connection-container{display:-webkit-box;display:-ms-flexbox;display:flex}.jetpack-publicize-add-connection-container a{cursor:pointer}.jetpack-publicize-add-connection-container span{vertical-align:middle}.jetpack-publicize__connections-list .components-notice{margin:5px 0 10px}.wp-block-jetpack-related-posts.is-grid .related-posts__preview{display:-webkit-box;display:-ms-flexbox;display:flex;margin:0 -10px}.wp-block-jetpack-related-posts.is-grid .related-posts__preview-post{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-preferred-size:0;flex-basis:0;margin:0 10px}.wp-block-jetpack-related-posts .related-posts__preview-post-image-placeholder{width:100%;padding:4em 0;background-color:#f6f6f6}.wp-block-jetpack-related-posts .related-posts__preview-post-image-placeholder-icon{margin:0 auto}.wp-block-jetpack-related-posts .related-posts__preview-post-link{font-size:inherit}.wp-block-jetpack-related-posts .related-posts__preview-post-date{color:#2b2d2f}.wp-block-jetpack-related-posts .related-posts__preview-post-context{color:#2b2d2f;font-size:12px;margin:0}.jetpack-clipboard-input{display:-webkit-box;display:-ms-flexbox;display:flex}.jetpack-clipboard-input .components-clipboard-button{margin:2px 0 0 6px}.wp-block-jetpack-simple-payments .simple-payments__help-message{display:-webkit-box;display:-ms-flexbox;display:flex;font-size:13px;line-height:1.4em;margin-bottom:1em;margin-top:-.5em}.wp-block-jetpack-simple-payments .simple-payments__help-message svg{margin-right:5px;min-width:24px}.wp-block-jetpack-simple-payments .simple-payments__help-message>span{margin-top:2px}.wp-block-jetpack-simple-payments .simple-payments__help-message.simple-payments__help-message-is-error{color:#eb0001}.wp-block-jetpack-simple-payments .simple-payments__help-message.simple-payments__help-message-is-error svg{fill:#eb0001}.simple-payments__loading{-webkit-animation:simple-payments-loading 1.6s ease-in-out infinite;animation:simple-payments-loading 1.6s ease-in-out infinite}@-webkit-keyframes simple-payments-loading{0%{opacity:.5}50%{opacity:.7}to{opacity:.5}}@keyframes simple-payments-loading{0%{opacity:.5}50%{opacity:.7}to{opacity:.5}}.jetpack-simple-payments-wrapper{margin-bottom:1.5em}body .jetpack-simple-payments-wrapper .jetpack-simple-payments-details p{margin:0 0 1.5em;padding:0}.jetpack-simple-payments-product{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.jetpack-simple-payments-product-image{-webkit-box-flex:0;-ms-flex:0 0 30%;flex:0 0 30%;margin-bottom:1.5em}.jetpack-simple-payments-image{-webkit-box-sizing:border-box;box-sizing:border-box;min-width:70px;padding-top:100%;position:relative}.jetpack-simple-payments-image img{border:0;border-radius:0;height:auto;left:50%;margin:0;max-height:100%;max-width:100%;padding:0;position:absolute;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:auto}.jetpack-simple-payments-price p,.jetpack-simple-payments-title p{font-weight:700}.jetpack-simple-payments-purchase-box{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;display:-webkit-box;display:-ms-flexbox;display:flex}.jetpack-simple-payments-items{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;margin-right:10px}input[type=number].jetpack-simple-payments-items-number{background:#fff;font-size:16px;line-height:1;max-width:60px;padding:4px 8px}@media screen and (min-width:400px){.jetpack-simple-payments-product{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.jetpack-simple-payments-product-image+.jetpack-simple-payments-details{-ms-flex-preferred-size:70%;flex-basis:70%;padding-left:1em}}.wp-block-jetpack-simple-payments{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;display:grid;grid-template-columns:200px auto;grid-column-gap:10px}.wp-block-jetpack-simple-payments .simple-payments__field .components-base-control__label{display:none}.wp-block-jetpack-simple-payments .simple-payments__field .components-base-control__field{margin-bottom:1em}.wp-block-jetpack-simple-payments .simple-payments__field textarea{display:block}.wp-block-jetpack-simple-payments .simple-payments__field-has-error .components-text-control__input,.wp-block-jetpack-simple-payments .simple-payments__field-has-error .components-textarea-control__input{border-color:#eb0001}.wp-block-jetpack-simple-payments .simple-payments__price-container{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.wp-block-jetpack-simple-payments .simple-payments__price-container .simple-payments__field{margin-right:10px}.wp-block-jetpack-simple-payments .simple-payments__price-container .simple-payments__help-message{-webkit-box-flex:1;-ms-flex:1 1 100%;flex:1 1 100%;margin-top:0}.wp-block-jetpack-simple-payments .simple-payments__field-price .components-text-control__input{max-width:90px}.wp-block-jetpack-simple-payments .simple-payments__field-email .components-text-control__input{max-width:400px}.wp-block-jetpack-simple-payments .simple-payments__field-multiple .components-toggle-control__label{line-height:1.4em}.wp-block-jetpack-simple-payments .simple-payments__field-content .components-textarea-control__input{min-height:32px}.wp-block-jetpack-tiled-gallery{margin:0 auto}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__item img{border-radius:50%}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;width:100%}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-1 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-1 .tiled-gallery__col{width:100%}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-2 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-2 .tiled-gallery__col{width:calc((100% - 4px)/2)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-3 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-3 .tiled-gallery__col{width:calc((100% - 8px)/3)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-4 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-4 .tiled-gallery__col{width:calc((100% - 12px)/4)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-5 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-5 .tiled-gallery__col{width:calc((100% - 16px)/5)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-6 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-6 .tiled-gallery__col{width:calc((100% - 20px)/6)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-7 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-7 .tiled-gallery__col{width:calc((100% - 24px)/7)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-8 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-8 .tiled-gallery__col{width:calc((100% - 28px)/8)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-9 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-9 .tiled-gallery__col{width:calc((100% - 32px)/9)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-10 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-10 .tiled-gallery__col{width:calc((100% - 36px)/10)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-11 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-11 .tiled-gallery__col{width:calc((100% - 40px)/11)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-12 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-12 .tiled-gallery__col{width:calc((100% - 44px)/12)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-13 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-13 .tiled-gallery__col{width:calc((100% - 48px)/13)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-14 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-14 .tiled-gallery__col{width:calc((100% - 52px)/14)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-15 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-15 .tiled-gallery__col{width:calc((100% - 56px)/15)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-16 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-16 .tiled-gallery__col{width:calc((100% - 60px)/16)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-17 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-17 .tiled-gallery__col{width:calc((100% - 64px)/17)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-18 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-18 .tiled-gallery__col{width:calc((100% - 68px)/18)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-19 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-19 .tiled-gallery__col{width:calc((100% - 72px)/19)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-20 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-20 .tiled-gallery__col{width:calc((100% - 76px)/20)}.wp-block-jetpack-tiled-gallery.is-style-columns .tiled-gallery__item,.wp-block-jetpack-tiled-gallery.is-style-rectangular .tiled-gallery__item{display:-webkit-box;display:-ms-flexbox;display:flex}.tiled-gallery__gallery{padding:0;-ms-flex-wrap:wrap;flex-wrap:wrap}.tiled-gallery__gallery,.tiled-gallery__row{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex}.tiled-gallery__row{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:0}.tiled-gallery__row+.tiled-gallery__row{margin-top:4px}.tiled-gallery__col{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:0}.tiled-gallery__col+.tiled-gallery__col{margin-left:4px}.tiled-gallery__item{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:relative;margin:0;overflow:hidden}.tiled-gallery__item+.tiled-gallery__item{margin-top:4px}.tiled-gallery__item>a,.tiled-gallery__item>a>img,.tiled-gallery__item>img{display:block;height:auto;max-width:100%;width:100%;-o-object-fit:cover;object-fit:cover;-o-object-position:center;object-position:center}.wp-block-jetpack-tiled-gallery{padding-left:4px;padding-right:4px}.wp-block-jetpack-tiled-gallery .tiled-gallery__item>img:focus{outline:none}.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected{outline:4px solid #0085ba}.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-transient img{opacity:.3}.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item{margin-top:4px;width:100%}.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item .components-button.tiled-gallery__add-item-button,.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item .components-form-file-upload{width:100%;height:100%}.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item .components-button.tiled-gallery__add-item-button{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-shadow:none;box-shadow:none;border:none;border-radius:0;min-height:100px}.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item .components-button.tiled-gallery__add-item-button .dashicon{margin-top:10px}.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item .components-button.tiled-gallery__add-item-button:focus,.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item .components-button.tiled-gallery__add-item-button:hover{border:1px solid #555d66}.wp-block-jetpack-tiled-gallery .tiled-gallery__item__inline-menu{background-color:#0085ba;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;padding:0 0 2px 2px;position:absolute;right:0;top:0}.wp-block-jetpack-tiled-gallery .tiled-gallery__item__inline-menu .components-button,.wp-block-jetpack-tiled-gallery .tiled-gallery__item__inline-menu .components-button:focus,.wp-block-jetpack-tiled-gallery .tiled-gallery__item__inline-menu .components-button:hover{color:#fff}.wp-block-jetpack-tiled-gallery .tiled-gallery__item__remove{padding:0}.wp-block-jetpack-tiled-gallery .tiled-gallery__item .components-spinner{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.editor-block-preview__content .wp-block-jetpack-tiled-gallery .editor-media-placeholder{display:none}.wp-block-jetpack-tiled-gallery .tiled-gallery__media-placeholder-icon{height:20px;margin-right:1ch;width:20px}
_inc/blocks/editor.js ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ !function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){function t(t){for(var n,r,i=t[0],a=t[1],s=0,c=[];s<i.length;s++)r=i[s],o[r]&&c.push(o[r][0]),o[r]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(l&&l(t);c.length;)c.shift()()}var n={},r={0:0},o={0:0};function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[];r[e]?t.push(r[e]):0!==r[e]&&{3:1}[e]&&t.push(r[e]=new Promise(function(t,n){for(var r="rtl"===document.dir?({3:"map/mapbox-gl"}[e]||e)+".rtl.css":({3:"map/mapbox-gl"}[e]||e)+".css",o=i.p+r,a=document.getElementsByTagName("link"),s=0;s<a.length;s++){var c=(u=a[s]).getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(c===r||c===o))return t()}var l=document.getElementsByTagName("style");for(s=0;s<l.length;s++){var u;if((c=(u=l[s]).getAttribute("data-href"))===r||c===o)return t()}var p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.setAttribute("data-webpack",!0),p.onload=t,p.onerror=function(t){var r=t&&t.target&&t.target.src||o,i=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");i.request=r,n(i)},p.href=o,document.getElementsByTagName("head")[0].appendChild(p)}).then(function(){r[e]=0}));var n=o[e];if(0!==n)if(n)t.push(n[2]);else{var a=new Promise(function(t,r){n=o[e]=[t,r]});t.push(n[2]=a);var s,c=document.createElement("script");c.charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.src=function(e){return i.p+""+({3:"map/mapbox-gl"}[e]||e)+".js"}(e),s=function(t){c.onerror=c.onload=null,clearTimeout(l);var n=o[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src,a=new Error("Loading chunk "+e+" failed.\n("+r+": "+i+")");a.type=r,a.request=i,n[1](a)}o[e]=void 0}};var l=setTimeout(function(){s({type:"timeout",target:c})},12e4);c.onerror=c.onload=s,document.head.appendChild(c)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i.oe=function(e){throw console.error(e),e};var a=window.webpackJsonp=window.webpackJsonp||[],s=a.push.bind(a);a.push=t,a=a.slice();for(var c=0;c<a.length;c++)t(a[c]);var l=s;return i(i.s=261)}([function(e,t){e.exports=wp.element},function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return c}),n.d(t,"c",function(){return l});var r=n(15),o=n.n(r),i=n(14),a=function(e){var t=o()(e);return t.push("jetpack"),t};function s(){return i.__.apply(void 0,o()(a(arguments)))}function c(){return i._n.apply(void 0,o()(a(arguments)))}function l(){return i._x.apply(void 0,o()(a(arguments)))}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=wp.components},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports=window.lodash},function(e,t){function n(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)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){var r=n(24),o=n(2);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){var r=n(69);e.exports=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&&r(e,t)}},function(e,t){e.exports=wp.editor},function(e,t,n){var r;
2
+ /*!
3
+ Copyright (c) 2017 Jed Watson.
4
+ Licensed under the MIT License (MIT), see
5
+ http://jedwatson.github.io/classnames
6
+ */
7
+ /*!
8
+ Copyright (c) 2017 Jed Watson.
9
+ Licensed under the MIT License (MIT), see
10
+ http://jedwatson.github.io/classnames
11
+ */
12
+ !function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"===i)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function o(e,t){return r.call(e,t)}function i(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!=(65535&e)&&65534!=(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function a(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var s=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,c=new RegExp(s.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),l=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,u=n(76);var p=/[&<>"]/,h=/[&<>"]/g,d={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function f(e){return d[e]}var m=/[.?*+^$[\]\\(){}|-]/g;var b=n(58);t.lib={},t.lib.mdurl=n(77),t.lib.ucmicro=n(133),t.assign=function(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=o,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(s,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(c,function(e,t,n){return t||function(e,t){var n=0;return o(u,t)?u[t]:35===t.charCodeAt(0)&&l.test(t)&&i(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?a(n):e}(e,n)})},t.isValidEntityCode=i,t.fromCodePoint=a,t.escapeHtml=function(e){return p.test(e)?e.replace(h,f):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return b.test(e)},t.escapeRE=function(e){return e.replace(m,"\\$&")},t.normalizeReference=function(e){return e.trim().replace(/\s+/g," ").toUpperCase()}},function(e,t){e.exports=wp.i18n},function(e,t,n){var r=n(52),o=n(53),i=n(54);e.exports=function(e){return r(e)||o(e)||i()}},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"d",function(){return s}),n.d(t,"e",function(){return c}),n.d(t,"f",function(){return l});var r=n(1),o=["image"],i="rectangular",a=4,s=[{isDefault:!0,label:Object(r.c)("Tiled mosaic","Tiled gallery layout"),name:i},{label:Object(r.c)("Circles","Tiled gallery layout"),name:"circle"},{label:Object(r.c)("Square tiles","Tiled gallery layout"),name:"square"},{label:Object(r.c)("Tiled columns","Tiled gallery layout"),name:"columns"}],c=20,l=2e3},function(e,t){e.exports=wp.data},function(e,t){e.exports=wp.blocks},function(e,t){e.exports=wp.compose},function(e,t,n){var r=n(4);e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){r(e,t,n[t])})}return e}},function(e,t,n){"use strict";var r=n(0),o=n(3);t.a=function(e){return Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),e)}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(18),o=n(49);function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!Object(o.a)(e))return!1;var i=Object(r.registerBlockType)("jetpack/".concat(e),t);return n.forEach(function(e){return Object(r.registerBlockType)("jetpack/".concat(e.name),e.settings)}),i}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(0),o=n(1),i={name:"map",prefix:"jetpack",title:Object(o.a)("Map"),icon:Object(r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(r.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Object(r.createElement)("path",{d:"M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM10 5.47l4 1.4v11.66l-4-1.4V5.47zm-5 .99l3-1.01v11.7l-3 1.16V6.46zm14 11.08l-3 1.01V6.86l3-1.16v11.84z"})),category:"jetpack",keywords:[Object(o.a)("map"),Object(o.a)("location")],description:Object(o.a)("Add an interactive map showing one or more locations."),attributes:{align:{type:"string"},points:{type:"array",default:[]},mapStyle:{type:"string",default:"default"},mapDetails:{type:"boolean",default:!0},zoom:{type:"integer",default:13},mapCenter:{type:"object",default:{longitude:-122.41941550000001,latitude:37.7749295}},markerColor:{type:"string",default:"red"}},supports:{html:!1},mapStyleOptions:[{value:"default",label:Object(o.a)("Basic")},{value:"black_and_white",label:Object(o.a)("Black and white")},{value:"satellite",label:Object(o.a)("Satellite")},{value:"terrain",label:Object(o.a)("Terrain")}],validAlignments:["center","wide","full"],markerIcon:Object(r.createElement)("svg",{width:"14",height:"20",viewBox:"0 0 14 20",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)("g",{id:"Page-1",fill:"none",fillRule:"evenodd"},Object(r.createElement)("g",{id:"outline-add_location-24px",transform:"translate(-5 -2)"},Object(r.createElement)("polygon",{id:"Shape",points:"0 0 24 0 24 24 0 24"}),Object(r.createElement)("path",{d:"M12,2 C8.14,2 5,5.14 5,9 C5,14.25 12,22 12,22 C12,22 19,14.25 19,9 C19,5.14 15.86,2 12,2 Z M7,9 C7,6.24 9.24,4 12,4 C14.76,4 17,6.24 17,9 C17,11.88 14.12,16.19 12,18.88 C9.92,16.21 7,11.85 7,9 Z M13,6 L11,6 L11,8 L9,8 L9,10 L11,10 L11,12 L13,12 L13,10 L15,10 L15,8 L13,8 L13,6 Z",id:"Shape",fill:"#000",fillRule:"nonzero"}))))}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=r=function(e){return n(e)}:e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},r(t)}e.exports=r},function(e,t,n){"use strict";e.exports=n(99)},function(e,t,n){var r=n(55),o=n(56),i=n(57);e.exports=function(e,t){return r(e)||o(e,t)||i()}},function(e,t){function n(){return e.exports=n=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},n.apply(this,arguments)}e.exports=n},function(e,t){e.exports=wp.keycodes},function(e,t){e.exports=wp.apiFetch},function(e,t,n){"use strict";var r=n(68),o=n(104);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=y,t.resolve=function(e,t){return y(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?y(e,!1,!0).resolveObject(t):t},t.format=function(e){o.isString(e)&&(e=y(e));return e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(l),p=["%","/","?",";","#"].concat(u),h=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},b={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=n(105);function y(e,t,n){if(e&&o.isObject(e)&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}i.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),s=-1!==i&&i<e.indexOf("#")?"?":"#",l=e.split(s);l[0]=l[0].replace(/\\/g,"/");var y=e=l.join(s);if(y=y.trim(),!n&&1===e.split("#").length){var _=c.exec(y);if(_)return this.path=y,this.href=y,this.pathname=_[1],_[2]?(this.search=_[2],this.query=t?v.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var k=a.exec(y);if(k){var O=(k=k[0]).toLowerCase();this.protocol=O,y=y.substr(k.length)}if(n||k||y.match(/^\/\/[^@\/]+@[^@\/]+/)){var j="//"===y.substr(0,2);!j||k&&b[k]||(y=y.substr(2),this.slashes=!0)}if(!b[k]&&(j||k&&!g[k])){for(var C,w,E=-1,x=0;x<h.length;x++){-1!==(S=y.indexOf(h[x]))&&(-1===E||S<E)&&(E=S)}-1!==(w=-1===E?y.lastIndexOf("@"):y.lastIndexOf("@",E))&&(C=y.slice(0,w),y=y.slice(w+1),this.auth=decodeURIComponent(C)),E=-1;for(x=0;x<p.length;x++){var S;-1!==(S=y.indexOf(p[x]))&&(-1===E||S<E)&&(E=S)}-1===E&&(E=y.length),this.host=y.slice(0,E),y=y.slice(E),this.parseHost(),this.hostname=this.hostname||"";var A="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!A)for(var D=this.hostname.split(/\./),M=(x=0,D.length);x<M;x++){var T=D[x];if(T&&!T.match(d)){for(var F="",z=0,P=T.length;z<P;z++)T.charCodeAt(z)>127?F+="x":F+=T[z];if(!F.match(d)){var N=D.slice(0,x),I=D.slice(x+1),R=T.match(f);R&&(N.push(R[1]),I.unshift(R[2])),I.length&&(y="/"+I.join(".")+y),this.hostname=N.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),A||(this.hostname=r.toASCII(this.hostname));var L=this.port?":"+this.port:"",q=this.hostname||"";this.host=q+L,this.href+=this.host,A&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!m[O])for(x=0,M=u.length;x<M;x++){var B=u[x];if(-1!==y.indexOf(B)){var V=encodeURIComponent(B);V===B&&(V=escape(B)),y=y.split(B).join(V)}}var U=y.indexOf("#");-1!==U&&(this.hash=y.substr(U),y=y.slice(0,U));var H=y.indexOf("?");if(-1!==H?(this.search=y.substr(H),this.query=y.substr(H+1),t&&(this.query=v.parse(this.query)),y=y.slice(0,H)):t&&(this.search="",this.query={}),y&&(this.pathname=y),g[O]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){L=this.pathname||"";var $=this.search||"";this.path=L+$}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,a="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(a=v.stringify(this.query));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||g[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),t+i+(n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(s=s.replace("#","%23"))+r},i.prototype.resolve=function(e){return this.resolveObject(y(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if(o.isString(e)){var t=new i;t.parse(e,!1,!0),e=t}for(var n=new i,r=Object.keys(this),a=0;a<r.length;a++){var s=r[a];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var c=Object.keys(e),l=0;l<c.length;l++){var u=c[l];"protocol"!==u&&(n[u]=e[u])}return g[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!g[e.protocol]){for(var p=Object.keys(e),h=0;h<p.length;h++){var d=p[h];n[d]=e[d]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||b[e.protocol])n.pathname=e.pathname;else{for(var f=(e.pathname||"").split("/");f.length&&!(e.host=f.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==f[0]&&f.unshift(""),f.length<2&&f.unshift(""),n.pathname=f.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var m=n.pathname||"",v=n.search||"";n.path=m+v}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var y=n.pathname&&"/"===n.pathname.charAt(0),_=e.host||e.pathname&&"/"===e.pathname.charAt(0),k=_||y||n.host&&e.pathname,O=k,j=n.pathname&&n.pathname.split("/")||[],C=(f=e.pathname&&e.pathname.split("/")||[],n.protocol&&!g[n.protocol]);if(C&&(n.hostname="",n.port=null,n.host&&(""===j[0]?j[0]=n.host:j.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===f[0]?f[0]=e.host:f.unshift(e.host)),e.host=null),k=k&&(""===f[0]||""===j[0])),_)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,j=f;else if(f.length)j||(j=[]),j.pop(),j=j.concat(f),n.search=e.search,n.query=e.query;else if(!o.isNullOrUndefined(e.search)){if(C)n.hostname=n.host=j.shift(),(A=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=A.shift(),n.host=n.hostname=A.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!j.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var w=j.slice(-1)[0],E=(n.host||e.host||j.length>1)&&("."===w||".."===w)||""===w,x=0,S=j.length;S>=0;S--)"."===(w=j[S])?j.splice(S,1):".."===w?(j.splice(S,1),x++):x&&(j.splice(S,1),x--);if(!k&&!O)for(;x--;x)j.unshift("..");!k||""===j[0]||j[0]&&"/"===j[0].charAt(0)||j.unshift(""),E&&"/"!==j.join("/").substr(-1)&&j.push("");var A,D=""===j[0]||j[0]&&"/"===j[0].charAt(0);C&&(n.hostname=n.host=D?"":j.length?j.shift():"",(A=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=A.shift(),n.host=n.hostname=A.shift()));return(k=k||n.host&&j.length)&&!D&&j.unshift(""),j.length?n.pathname=j.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t){e.exports=wp.blob},function(e,t,n){var r=n(108);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(3),i=n(36),a=n(45),s=(n(111),n(35)),c=Object(o.createSlotFill)("JetpackPluginSidebar"),l=c.Fill,u=c.Slot,p=function(e){var t=e.children;return Object(r.createElement)(l,null,t)};p.Slot=function(){return Object(r.createElement)(u,null,function(e){return e.length?Object(r.createElement)(r.Fragment,null,Object(r.createElement)(i.PluginSidebarMoreMenuItem,{target:"jetpack",icon:Object(r.createElement)(s.a,null)},"Jetpack"),Object(r.createElement)(i.PluginSidebar,{name:"jetpack",title:"Jetpack",icon:Object(r.createElement)(s.a,null)},e)):null})},Object(a.registerPlugin)("jetpack-sidebar",{render:function(){return Object(r.createElement)(p.Slot,null)}}),t.default=p},function(e,t,n){"use strict";n.r(t);var r=n(5);n(24),n(67),n(30);function o(e){var t=e.split("?")[0],n=t.split("/");if(0===t.indexOf("/checkout/thank-you/no-site/"))return!1;if(0===t.indexOf("/me/purchases/")||0===t.indexOf("/checkout/thank-you/")){var r=n[3];if(r&&-1!==r.indexOf("."))return r;var o=parseInt(r,10);if(Number.isSafeInteger(o))return o}for(var i=2;i>0;i--){var a=n[n.length-i];if(a&&-1!==a.indexOf("."))return a}for(var s=2;s>0;s--){var c=parseInt(n[n.length-s],10);if(Number.isSafeInteger(c))return c}return!1}function i(){if(window&&window._currentSiteId)return window._currentSiteId;var e=o(window.location.pathname);return Object(r.includes)(["post.php","post-new.php"],e)?window&&window.Jetpack_Editor_Initial_State&&window.Jetpack_Editor_Initial_State.siteFragment?window.Jetpack_Editor_Initial_State.siteFragment:null:e||null}n.d(t,"default",function(){return i})},function(e,t,n){"use strict";var r=n(25),o=n.n(r),i=n(66),a=n.n(i),s=n(12),c=n.n(s),l=o.a.createElement(o.a.Fragment,null,o.a.createElement("path",{className:"jetpack-logo__icon-circle",fill:"#00be28",d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z"}),o.a.createElement("polygon",{className:"jetpack-logo__icon-triangle",fill:"#fff",points:"15,19 7,19 15,3 "}),o.a.createElement("polygon",{className:"jetpack-logo__icon-triangle",fill:"#fff",points:"17,29 17,13 25,13 "})),u=function(e){var t=e.full,n=void 0!==t&&t,r=e.size,i=void 0===r?32:r,a=e.className,s=c()("jetpack-logo",a);return!0===n?o.a.createElement("svg",{height:i,className:s,viewBox:"0 0 118 32"},o.a.createElement("title",null,"Jetpack"),l,o.a.createElement("path",{d:"M41.3 26.6c-.5-.7-.9-1.4-1.3-2.1 2.3-1.4 3-2.5 3-4.6V8h-3V6h6v13.4C46 22.8 45 24.8 41.3 26.6zM58.5 21.3c-1.5.5-2.7.6-4.2.6-3.6 0-5.8-1.8-5.8-6 0-3.1 1.9-5.9 5.5-5.9s4.9 2.5 4.9 4.9c0 .8 0 1.5-.1 2h-7.3c.1 2.5 1.5 2.8 3.6 2.8 1.1 0 2.2-.3 3.4-.7C58.5 19 58.5 21.3 58.5 21.3zM56 15c0-1.4-.5-2.9-2-2.9-1.4 0-2.3 1.3-2.4 2.9C51.6 15 56 15 56 15zM65 18.4c0 1.1.8 1.3 1.4 1.3.5 0 2-.2 2.6-.4v2.1c-.9.3-2.5.5-3.7.5-1.5 0-3.2-.5-3.2-3.1V12H60v-2h2.1V7.1H65V10h4v2h-4V18.4zM71 10h3v1.3c1.1-.8 1.9-1.3 3.3-1.3 2.5 0 4.5 1.8 4.5 5.6s-2.2 6.3-5.8 6.3c-.9 0-1.3-.1-2-.3V28h-3V10zM76.5 12.3c-.8 0-1.6.4-2.5 1.2v5.9c.6.1.9.2 1.8.2 2 0 3.2-1.3 3.2-3.9C79 13.4 78.1 12.3 76.5 12.3zM93 22h-3v-1.5c-.9.7-1.9 1.5-3.5 1.5-1.5 0-3.1-1.1-3.1-3.2 0-2.9 2.5-3.4 4.2-3.7l2.4-.3v-.3c0-1.5-.5-2.3-2-2.3-.7 0-2.3.5-3.7 1.1L84 11c1.2-.4 3-1 4.4-1 2.7 0 4.6 1.4 4.6 4.7L93 22zM90 16.4l-2.2.4c-.7.1-1.4.5-1.4 1.6 0 .9.5 1.4 1.3 1.4s1.5-.5 2.3-1V16.4zM104.5 21.3c-1.1.4-2.2.6-3.5.6-4.2 0-5.9-2.4-5.9-5.9 0-3.7 2.3-6 6.1-6 1.4 0 2.3.2 3.2.5V13c-.8-.3-2-.6-3.2-.6-1.7 0-3.2.9-3.2 3.6 0 2.9 1.5 3.8 3.3 3.8.9 0 1.9-.2 3.2-.7V21.3zM110 15.2c.2-.3.2-.8 3.8-5.2h3.7l-4.6 5.7 5 6.3h-3.7l-4.2-5.8V22h-3V6h3V15.2z"})):24===i?o.a.createElement("svg",{className:s,height:"24",width:"24",viewBox:"0 0 24 24"},o.a.createElement("path",{d:"M12,2C6.5,2,2,6.5,2,12s4.5,10,10,10s10-4.5,10-10S17.5,2,12,2z M11,14H6l5-10V14z M13,20V10h5L13,20z"})):o.a.createElement("svg",{className:s,height:i,width:i,viewBox:"0 0 32 32"},l)};u.propTypes={full:a.a.bool,size:a.a.number},t.a=u},function(e,t){e.exports=wp.editPost},function(e,t,n){"use strict";var r=n(4),o=n.n(r),i=n(7),a=n.n(i),s=n(6),c=n.n(s),l=n(8),u=n.n(l),p=n(9),h=n.n(p),d=n(10),f=n.n(d),m=n(0),b=n(12),g=n.n(b),v=n(19),y=n(3),_=n(11),k=n(5),O=n(1),j=window.getComputedStyle,C=Object(y.withFallbackStyles)(function(e,t){var n,r,o,i,a=t.textButtonColor,s=t.backgroundButtonColor,c=s&&s.color,l=a&&a.color;return!l&&e&&(n=e.querySelector('[contenteditable="true"]')),r=e.querySelector(".wp-block-button__link")?e.querySelector(".wp-block-button__link"):e,e&&(o=j(r).backgroundColor),n&&(i=j(n).color),{fallbackBackgroundColor:c||o,fallbackTextColor:l||i}}),w=function(e){function t(){return a()(this,t),u()(this,h()(t).apply(this,arguments))}return f()(t,e),c()(t,[{key:"componentDidUpdate",value:function(e){if(!Object(k.isEqual)(this.props.textButtonColor,e.textButtonColor)||!Object(k.isEqual)(this.props.backgroundButtonColor,e.backgroundButtonColor)){var t=this.getButtonClasses();this.props.setAttributes({submitButtonClasses:t})}}},{key:"getButtonClasses",value:function(){var e,t=this.props,n=t.textButtonColor,r=t.backgroundButtonColor,i=Object(k.get)(n,"class"),a=Object(k.get)(r,"class");return g()("wp-block-button__link",(e={"has-text-color":n},o()(e,i,i),o()(e,"has-background",r),o()(e,a,a),e))}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.fallbackBackgroundColor,r=e.fallbackTextColor,o=e.setAttributes,i=e.setBackgroundButtonColor,a=e.setTextButtonColor,s=t.customBackgroundButtonColor||n,c=t.customTextButtonColor||r,l={border:"none",backgroundColor:s,color:c},u=this.getButtonClasses();return Object(m.createElement)(m.Fragment,null,Object(m.createElement)("div",{className:"wp-block-button jetpack-submit-button"},Object(m.createElement)(_.RichText,{placeholder:Object(O.a)("Add text…"),value:t.submitButtonText,onChange:function(e){return o({submitButtonText:e})},className:u,style:l,keepPlaceholderOnFocus:!0,formattingControls:[]})),Object(m.createElement)(_.InspectorControls,null,Object(m.createElement)(_.PanelColorSettings,{title:Object(O.a)("Button Color Settings"),colorSettings:[{value:s,onChange:function(e){i(e),o({customBackgroundButtonColor:e})},label:Object(O.a)("Background Color")},{value:c,onChange:function(e){a(e),o({customTextButtonColor:e})},label:Object(O.a)("Text Color")}]}),Object(m.createElement)(_.ContrastChecker,{textColor:c,backgroundColor:s})))}}]),t}(m.Component);t.a=Object(v.compose)([Object(_.withColors)("backgroundButtonColor",{textButtonColor:"color"}),C])(w)},function(e,t,n){"use strict";n.d(t,"b",function(){return s}),n.d(t,"a",function(){return c});var r=n(26),o=n.n(r),i=n(16);function a(e,t){var n=(t-e.reduce(function(e,t){return e+t},0))/e.length;return e.map(function(e){return e+n})}function s(e,t){!function(e,t,n){var r=o()(t,2),s=r[0],c=r[1],d=1/s*(n-i.c*(e.childElementCount-1)-c);!function(e,t){var n=t.rawHeight,r=t.rowWidth,o=l(e),s=o.map(function(e){return(n-i.c*(e.childElementCount-1))*p(e)[0]}),c=a(s,r);o.forEach(function(e,t){var r=s[t],o=c[t];!function(e,t){var n=t.colHeight,r=t.width,o=t.rawWidth,i=a(u(e).map(function(e){return o/h(e)}),n);Array.from(e.children).forEach(function(e,t){var n=i[t];e.setAttribute("style","height:".concat(n,"px;width:").concat(r,"px;"))})}(e,{colHeight:n-i.c*(e.childElementCount-1),width:o,rawWidth:r})})}(e,{rawHeight:d,rowWidth:n-i.c*(e.childElementCount-1)})}(e,function(e){return l(e).map(p).reduce(function(e,t){var n=o()(e,2),r=n[0],i=n[1],a=o()(t,2),s=a[0],c=a[1];return[r+s,i+c]},[0,0])}(e),t)}function c(e){return Array.from(e.querySelectorAll(".tiled-gallery__row"))}function l(e){return Array.from(e.querySelectorAll(".tiled-gallery__col"))}function u(e){return Array.from(e.querySelectorAll(".tiled-gallery__item > img, .tiled-gallery__item > a > img"))}function p(e){var t=u(e),n=t.length,r=1/t.map(h).reduce(function(e,t){return e+1/t},0);return[r,r*n||1]}function h(e){var t=parseInt(e.dataset.width,10),n=parseInt(e.dataset.height,10);return t&&!Number.isNaN(t)&&n&&!Number.isNaN(n)?t/n:1}},function(e,t,n){"use strict";n.r(t);var r=n(24);"object"===("undefined"==typeof window?"undefined":n.n(r)()(window))&&window.Jetpack_Block_Assets_Base_Url&&(n.p=window.Jetpack_Block_Assets_Base_Url)},function(e,t,n){var r=n(85)(Object,"create");e.exports=r},function(e,t,n){var r=n(209);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(215);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){"use strict";n.r(t);var r=n(27),o=n.n(r),i=n(32),a=n.n(i),s=n(0),c=n(12),l=n.n(c),u=n(44),p=n.n(u);n(109);t.default=function(e){var t=e.children,n=void 0===t?null:t,r=e.isError,i=void 0!==r&&r,c=a()(e,["children","isError"]),u=l()("help-message",{"help-message-is-error":i});return n&&Object(s.createElement)("div",o()({className:u},c),i&&Object(s.createElement)(p.a,{size:"24"}),Object(s.createElement)("span",null,n))}},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.size,o=void 0===n?24:n,i=e.onClick,s=(e.icon,e.className),c=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["size","onClick","icon","className"]),l=["gridicon","gridicons-notice-outline",s,(t=o,!(0!=t%18)&&"needs-offset"),!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",r({className:l,height:o,width:o,onClick:i},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-2-2h2l.5-6h-3l.5 6z"})))};var o,i=n(25),a=(o=i)&&o.__esModule?o:{default:o};e.exports=t.default},function(e,t){e.exports=wp.plugins},function(e,t,n){"use strict";var r=/^[-!#$%&'*+\/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/;t.validate=function(e){if(!e)return!1;if(e.length>254)return!1;if(!r.test(e))return!1;var t=e.split("@");return!(t[0].length>64)&&!t[1].split(".").some(function(e){return e.length>63})}},function(e,t){function n(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise(function(o,i){var a=e.apply(t,r);function s(e){n(a,o,i,s,c,"next",e)}function c(e){n(a,o,i,s,c,"throw",e)}s(void 0)})}}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(45),o=n(49);function i(e,t){return!!Object(o.a)(e)&&Object(r.registerPlugin)("jetpack-".concat(e),t)}},function(e,t,n){"use strict";var r=n(5),o=n(89),i=n(24),a=n.n(i),s="Jetpack_Editor_Initial_State";function c(e){var t=Object(r.get)("object"===("undefined"==typeof window?"undefined":a()(window))?window:null,[s],null),n=Object(r.includes)(o.beta,e);return Object(r.get)(t,["available_blocks",e,"available"],n)}n.d(t,"a",function(){return c})},function(e,t,n){"use strict";var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}var n={size:{configurable:!0}};return n.size.get=function(){return this.__entries__.length},t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n+=1){var o=r[n];e.call(t,o[1],o[0])}},Object.defineProperties(t.prototype,n),t}()}(),o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i="undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},s=2,c=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,u=function(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function c(){a(i)}function l(){var e=Date.now();if(n){if(e-o<s)return;r=!0}else n=!0,r=!1,setTimeout(c,t);o=e}return l}(this.refresh.bind(this),20)};u.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},u.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},u.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},u.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},u.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},u.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},u.prototype.onTransitionEnd_=function(e){var t=e.propertyName;void 0===t&&(t=""),c.some(function(e){return!!~t.indexOf(e)})&&this.refresh()},u.getInstance=function(){return this.instance_||(this.instance_=new u),this.instance_},u.instance_=null;var p=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n+=1){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},h=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},d=y(0,0,0,0);function f(e){return parseFloat(e)||0}function m(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return t.reduce(function(t,n){return t+f(e["border-"+n+"-width"])},0)}function b(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return d;var r=h(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n+=1){var o=r[n],i=e["padding-"+o];t[o]=f(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,s=f(r.width),c=f(r.height);if("border-box"===r.boxSizing&&(Math.round(s+i)!==t&&(s-=m(r,"left","right")+i),Math.round(c+a)!==n&&(c-=m(r,"top","bottom")+a)),!function(e){return e===h(e).document.documentElement}(e)){var l=Math.round(s+i)-t,u=Math.round(c+a)-n;1!==Math.abs(l)&&(s-=l),1!==Math.abs(u)&&(c-=u)}return y(o.left,o.top,s,c)}var g="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof h(e).SVGGraphicsElement}:function(e){return e instanceof h(e).SVGElement&&"function"==typeof e.getBBox};function v(e){return o?g(e)?function(e){var t=e.getBBox();return y(0,0,t.width,t.height)}(e):b(e):d}function y(e,t,n,r){return{x:e,y:t,width:n,height:r}}var _=function(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=y(0,0,0,0),this.target=e};_.prototype.isActive=function(){var e=v(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},_.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e};var k=function(e,t){var n,r,o,i,a,s,c,l=(r=(n=t).x,o=n.y,i=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(s.prototype),p(c,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),c);p(this,{target:e,contentRect:l})},O=function(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n};O.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof h(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new _(e)),this.controller_.addObserver(this),this.controller_.refresh())}},O.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof h(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},O.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},O.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},O.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new k(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},O.prototype.clearActive=function(){this.activeObservations_.splice(0)},O.prototype.hasActive=function(){return this.activeObservations_.length>0};var j="undefined"!=typeof WeakMap?new WeakMap:new r,C=function(e){if(!(this instanceof C))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=u.getInstance(),n=new O(e,t,this);j.set(this,n)};["observe","unobserve","disconnect"].forEach(function(e){C.prototype[e]=function(){return(t=j.get(this))[e].apply(t,arguments);var t}});var w=void 0!==i.ResizeObserver?i.ResizeObserver:C;t.a=w},function(e,t,n){"use strict";var r=n(26),o=n.n(r),i=n(7),a=n.n(i),s=n(6),c=n.n(s),l=n(8),u=n.n(l),p=n(9),h=n.n(p),d=n(10),f=n.n(d),m=n(2),b=n.n(m),g=n(4),v=n.n(g),y=n(0),_=n(1),k=n(5),O=n(3),j=(n(72),function(e){function t(){var e,n;a()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=u()(this,(e=h()(t)).call.apply(e,[this].concat(o))),v()(b()(b()(n)),"handleClick",function(){(0,n.props.onClick)(b()(b()(n)))}),v()(b()(b()(n)),"getPoint",function(){var e=n.props.point;return[e.coordinates.longitude,e.coordinates.latitude]}),n}return f()(t,e),c()(t,[{key:"componentDidMount",value:function(){this.renderMarker()}},{key:"componentWillUnmount",value:function(){this.marker&&this.marker.remove()}},{key:"componentDidUpdate",value:function(){this.renderMarker()}},{key:"renderMarker",value:function(){var e=this.props,t=e.map,n=e.point,r=e.mapboxgl,o=e.markerColor,i=this.handleClick,a=[n.coordinates.longitude,n.coordinates.latitude],s=this.marker?this.marker.getElement():document.createElement("div");this.marker?this.marker.setLngLat(a):(s.className="wp-block-jetpack-map-marker",this.marker=new r.Marker(s).setLngLat(a).setOffset([0,-19]).addTo(t),this.marker.getElement().addEventListener("click",i)),s.innerHTML='<?xml version="1.0" encoding="UTF-8"?><svg version="1.1" viewBox="0 0 32 38" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g fill-rule="evenodd"><path id="d" d="m16 38s16-11.308 16-22-7.1634-16-16-16-16 5.3076-16 16 16 22 16 22z" fill="'+o+'" mask="url(#c)"/></g></svg>'}},{key:"render",value:function(){return null}}]),t}(y.Component));j.defaultProps={point:{},map:null,markerColor:"#000000",mapboxgl:null,onClick:function(){}};var C=j,w=function(e){function t(){var e,n;a()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=u()(this,(e=h()(t)).call.apply(e,[this].concat(o))),v()(b()(b()(n)),"closeClick",function(){n.props.unsetActiveMarker()}),n}return f()(t,e),c()(t,[{key:"componentDidMount",value:function(){var e=this.props.mapboxgl;this.el=document.createElement("DIV"),this.infowindow=new e.Popup({closeButton:!0,closeOnClick:!1,offset:{left:[0,0],top:[0,5],right:[0,0],bottom:[0,-40]}}),this.infowindow.setDOMContent(this.el),this.infowindow.on("close",this.closeClick)}},{key:"componentDidUpdate",value:function(e){this.props.activeMarker!==e.activeMarker&&(this.props.activeMarker?this.openWindow():this.closeWindow())}},{key:"render",value:function(){return this.el?Object(y.createPortal)(this.props.children,this.el):null}},{key:"openWindow",value:function(){var e=this.props,t=e.map,n=e.activeMarker;this.infowindow.setLngLat(n.getPoint()).addTo(t)}},{key:"closeWindow",value:function(){this.infowindow.remove()}}]),t}(y.Component);w.defaultProps={unsetActiveMarker:function(){},activeMarker:null,map:null,mapboxgl:null};var E=w;var x=function(e){function t(){var e;return a()(this,t),e=u()(this,h()(t).apply(this,arguments)),v()(b()(b()(e)),"onMarkerClick",function(t){var n=e.props.onMarkerClick;e.setState({activeMarker:t}),n()}),v()(b()(b()(e)),"onMapClick",function(){e.setState({activeMarker:null})}),v()(b()(b()(e)),"clearCurrentMarker",function(){e.setState({activeMarker:null})}),v()(b()(b()(e)),"updateActiveMarker",function(t){var n=e.props.points,r=e.state.activeMarker.props.index,o=n.slice(0);Object(k.assign)(o[r],t),e.props.onSetPoints(o)}),v()(b()(b()(e)),"deleteActiveMarker",function(){var t=e.props.points,n=e.state.activeMarker.props.index,r=t.slice(0);r.splice(n,1),e.props.onSetPoints(r),e.setState({activeMarker:null})}),v()(b()(b()(e)),"sizeMap",function(){var t=e.state.map,n=e.mapRef.current,r=n.offsetWidth,o=.8*window.innerHeight,i=Math.min(.75*r,o);n.style.height=i+"px",t.resize(),e.setBoundsByMarkers()}),v()(b()(b()(e)),"setBoundsByMarkers",function(){var t=e.props,n=t.zoom,r=t.points,o=t.onSetZoom,i=e.state,a=i.map,s=i.activeMarker,c=i.mapboxgl,l=i.zoomControl,u=i.boundsSetProgrammatically;if(a&&r.length&&!s){var p=new c.LngLatBounds;if(r.forEach(function(e){p.extend([e.coordinates.longitude,e.coordinates.latitude])}),r.length>1)return a.fitBounds(p,{padding:{top:40,bottom:40,left:20,right:20}}),e.setState({boundsSetProgrammatically:!0}),void a.removeControl(l);if(a.setCenter(p.getCenter()),u){a.setZoom(12),o(12)}else a.setZoom(parseInt(n,10));a.addControl(l),e.setState({boundsSetProgrammatically:!1})}}),v()(b()(b()(e)),"scriptsLoaded",function(){var t=e.props,n=t.mapCenter,r=t.points;e.setState({loaded:!0}),r.length,e.initMap(n)}),e.state={map:null,fit_to_bounds:!1,loaded:!1,mapboxgl:null},e.mapRef=Object(y.createRef)(),e.debouncedSizeMap=Object(k.debounce)(e.sizeMap,250),e}return f()(t,e),c()(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.points,r=t.admin,o=t.children,i=t.markerColor,a=this.state,s=a.map,c=a.activeMarker,l=a.mapboxgl,u=this.onMarkerClick,p=this.deleteActiveMarker,h=this.updateActiveMarker,d=Object(k.get)(c,"props.point")||{},f=d.title,m=d.caption,b=y.Children.map(o,function(e){if("AddPoint"===Object(k.get)(e,"props.tagName"))return e}),g=s&&l&&n.map(function(e,t){return Object(y.createElement)(C,{key:t,point:e,index:t,map:s,mapboxgl:l,markerColor:i,onClick:u})}),v=l&&Object(y.createElement)(E,{activeMarker:c,map:s,mapboxgl:l,unsetActiveMarker:function(){return e.setState({activeMarker:null})}},c&&r&&Object(y.createElement)(y.Fragment,null,Object(y.createElement)(O.TextControl,{label:Object(_.a)("Marker Title"),value:f,onChange:function(e){return h({title:e})}}),Object(y.createElement)(O.TextareaControl,{className:"wp-block-jetpack-map__marker-caption",label:Object(_.a)("Marker Caption"),value:m,rows:"2",tag:"textarea",onChange:function(e){return h({caption:e})}}),Object(y.createElement)(O.Button,{onClick:p,className:"wp-block-jetpack-map__delete-btn"},Object(y.createElement)(O.Dashicon,{icon:"trash",size:"15"})," ",Object(_.a)("Delete Marker"))),c&&!r&&Object(y.createElement)(y.Fragment,null,Object(y.createElement)("h3",null,f),Object(y.createElement)("p",null,m)));return Object(y.createElement)(y.Fragment,null,Object(y.createElement)("div",{className:"wp-block-jetpack-map__gm-container",ref:this.mapRef},g),v,b)}},{key:"componentDidMount",value:function(){this.props.apiKey&&this.loadMapLibraries()}},{key:"componentWillUnmount",value:function(){this.debouncedSizeMap.cancel()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.apiKey,r=t.children,o=t.points,i=t.mapStyle,a=t.mapDetails,s=this.state.map;n&&n.length>0&&n!==e.apiKey&&this.loadMapLibraries(),r!==e.children&&!1!==r&&this.clearCurrentMarker(),o!==e.points&&this.setBoundsByMarkers(),o.length!==e.points.length&&this.clearCurrentMarker(),i===e.mapStyle&&a===e.mapDetails||s.setStyle(this.getMapStyle())}},{key:"getMapStyle",value:function(){var e=this.props;return function(e,t){return{default:{details:"mapbox://styles/automattic/cjolkhmez0qdd2ro82dwog1in",no_details:"mapbox://styles/automattic/cjolkci3905d82soef4zlmkdo"},black_and_white:{details:"mapbox://styles/automattic/cjolkixvv0ty42spgt2k4j434",no_details:"mapbox://styles/automattic/cjolkgc540tvj2spgzzoq37k4"},satellite:{details:"mapbox://styles/mapbox/satellite-streets-v10",no_details:"mapbox://styles/mapbox/satellite-v9"},terrain:{details:"mapbox://styles/automattic/cjolkf8p405fh2soet2rdt96b",no_details:"mapbox://styles/automattic/cjolke6fz12ys2rpbpvgl12ha"}}[e][t?"details":"no_details"]}(e.mapStyle,e.mapDetails)}},{key:"getMapType",value:function(){switch(this.props.mapStyle){case"satellite":return"HYBRID";case"terrain":return"TERRAIN";case"black_and_white":default:return"ROADMAP"}}},{key:"loadMapLibraries",value:function(){var e=this,t=this.props.apiKey;Promise.all([n.e(3).then(n.t.bind(null,281,7)),n.e(3).then(n.t.bind(null,282,7))]).then(function(n){var r=o()(n,1)[0].default;r.accessToken=t,e.setState({mapboxgl:r},e.scriptsLoaded)})}},{key:"initMap",value:function(e){var t=this,n=this.state.mapboxgl,r=this.props,o=r.zoom,i=r.onMapLoaded,a=r.onError,s=r.admin,c=null;try{c=new n.Map({container:this.mapRef.current,style:this.getMapStyle(),center:this.googlePoint2Mapbox(e),zoom:parseInt(o,10),pitchWithRotate:!1,attributionControl:!1,dragRotate:!1})}catch(e){return void a("mapbox_error",e.message)}c.on("error",function(e){a("mapbox_error",e.error.message)});var l=new n.NavigationControl({showCompass:!1,showZoom:!0});c.on("zoomend",function(){t.props.onSetZoom(c.getZoom())}),c.getCanvas().addEventListener("click",this.onMapClick),this.setState({map:c,zoomControl:l},function(){t.debouncedSizeMap(),c.addControl(l),s||c.addControl(new n.FullscreenControl),t.mapRef.current.addEventListener("alignmentChanged",t.debouncedSizeMap),c.resize(),i(),t.setState({loaded:!0}),window.addEventListener("resize",t.debouncedSizeMap)})}},{key:"googlePoint2Mapbox",value:function(e){return[e.longitude?e.longitude:0,e.latitude?e.latitude:0]}}]),t}(y.Component);x.defaultProps={points:[],mapStyle:"default",zoom:13,onSetZoom:function(){},onMapLoaded:function(){},onMarkerClick:function(){},onError:function(){},markerColor:"red",apiKey:null,mapCenter:{}};t.a=x},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E49\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},function(e,t,n){"use strict";function r(){this.__rules__=[],this.__cache__=null}r.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},r.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){t.indexOf(e)<0&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))})})},r.prototype.at=function(e,t,n){var r=this.__find__(e),o=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=o.alt||[],this.__cache__=null},r.prototype.before=function(e,t,n,r){var o=this.__find__(e),i=r||{};if(-1===o)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null},r.prototype.after=function(e,t,n,r){var o=this.__find__(e),i=r||{};if(-1===o)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null},r.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},r.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach(function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)},this),this.__cache__=null,n},r.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},r.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach(function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)},this),this.__cache__=null,n},r.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},e.exports=r},function(e,t,n){"use strict";function r(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}r.prototype.attrIndex=function(e){var t,n,r;if(!this.attrs)return-1;for(n=0,r=(t=this.attrs).length;n<r;n++)if(t[n][0]===e)return n;return-1},r.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},r.prototype.attrSet=function(e,t){var n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},r.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},r.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},e.exports=r},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(84),o=n(188),i="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||o(e)&&r(e)==i}},function(e,t,n){var r=n(64).Symbol;e.exports=r},function(e,t,n){var r=n(185),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t,n){"use strict";var r=n(7),o=n.n(r),i=n(6),a=n.n(i),s=n(8),c=n.n(s),l=n(9),u=n.n(l),p=n(10),h=n.n(p),d=n(2),f=n.n(d),m=n(4),b=n.n(m),g=n(0),v=n(3),y=n(1),_=(n(223),function(e){function t(){var e,n;o()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=c()(this,(e=u()(t)).call.apply(e,[this].concat(i))),b()(f()(f()(n)),"state",{hasCopied:!1}),b()(f()(f()(n)),"onCopy",function(){return n.setState({hasCopied:!0})}),b()(f()(f()(n)),"onFinishCopy",function(){return n.setState({hasCopied:!1})}),b()(f()(f()(n)),"onFocus",function(e){return e.target.select()}),n}return h()(t,e),a()(t,[{key:"render",value:function(){var e=this.props.link,t=this.state.hasCopied;return e?Object(g.createElement)("div",{className:"jetpack-clipboard-input"},Object(g.createElement)(v.TextControl,{readOnly:!0,onFocus:this.onFocus,value:e}),Object(g.createElement)(v.ClipboardButton,{isDefault:!0,onCopy:this.onCopy,onFinishCopy:this.onFinishCopy,text:e},t?Object(y.a)("Copied!"):Object(y.c)("Copy","verb"))):null}}]),t}(g.Component));t.a=_},function(e,t,n){e.exports=n(101)()},function(e,t,n){e.exports=function(){"use strict";var e=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},t=f,n=s,r=function(e){return c(s(e))},o=c,i=d,a=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^()])+)\\))?|\\(((?:\\\\.|[^()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function s(e){for(var t,n=[],r=0,o=0,i="";null!=(t=a.exec(e));){var s=t[0],c=t[1],l=t.index;if(i+=e.slice(o,l),o=l+s.length,c)i+=c[1];else{i&&(n.push(i),i="");var p=t[2],h=t[3],d=t[4],f=t[5],m=t[6],b=t[7],g="+"===m||"*"===m,v="?"===m||"*"===m,y=p||"/",_=d||f||(b?".*":"[^"+y+"]+?");n.push({name:h||r++,prefix:p||"",delimiter:y,optional:v,repeat:g,pattern:u(_)})}}return o<e.length&&(i+=e.substr(o)),i&&n.push(i),n}function c(t){for(var n=new Array(t.length),r=0;r<t.length;r++)"object"==typeof t[r]&&(n[r]=new RegExp("^"+t[r].pattern+"$"));return function(r){for(var o="",i=r||{},a=0;a<t.length;a++){var s=t[a];if("string"!=typeof s){var c,l=i[s.name];if(null==l){if(s.optional)continue;throw new TypeError('Expected "'+s.name+'" to be defined')}if(e(l)){if(!s.repeat)throw new TypeError('Expected "'+s.name+'" to not repeat, but received "'+l+'"');if(0===l.length){if(s.optional)continue;throw new TypeError('Expected "'+s.name+'" to not be empty')}for(var u=0;u<l.length;u++){if(c=encodeURIComponent(l[u]),!n[a].test(c))throw new TypeError('Expected all "'+s.name+'" to match "'+s.pattern+'", but received "'+c+'"');o+=(0===u?s.prefix:s.delimiter)+c}}else{if(c=encodeURIComponent(l),!n[a].test(c))throw new TypeError('Expected "'+s.name+'" to match "'+s.pattern+'", but received "'+c+'"');o+=s.prefix+c}}else o+=s}return o}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function p(e,t){return e.keys=t,e}function h(e){return e.sensitive?"":"i"}function d(e,t){for(var n=(t=t||{}).strict,r=!1!==t.end,o="",i=e[e.length-1],a="string"==typeof i&&/\/$/.test(i),s=0;s<e.length;s++){var c=e[s];if("string"==typeof c)o+=l(c);else{var u=l(c.prefix),p=c.pattern;c.repeat&&(p+="(?:"+u+p+")*"),p=c.optional?u?"(?:"+u+"("+p+"))?":"("+p+")?":u+"("+p+")",o+=p}}return n||(o=(a?o.slice(0,-2):o)+"(?:\\/(?=$))?"),o+=r?"$":n&&a?"":"(?=\\/|$)",new RegExp("^"+o,h(t))}function f(t,n,r){return e(n=n||[])?r||(r={}):(r=n,n=[]),t instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,pattern:null});return p(e,t)}(t,n):e(t)?function(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(f(e[o],t,n).source);return p(new RegExp("(?:"+r.join("|")+")",h(n)),t)}(t,n,r):function(e,t,n){for(var r=s(e),o=d(r,n),i=0;i<r.length;i++)"string"!=typeof r[i]&&t.push(r[i]);return p(o,t)}(t,n,r)}t.parse=n,t.compile=r,t.tokensToFunction=o,t.tokensToRegExp=i;var m,b="undefined"!=typeof document,g="undefined"!=typeof window,v="undefined"!=typeof history,y="undefined"!=typeof process,_=b&&document.ontouchstart?"touchstart":"click",k=g&&!(!window.history.location&&!window.location);function O(){this.callbacks=[],this.exits=[],this.current="",this.len=0,this._decodeURLComponents=!0,this._base="",this._strict=!1,this._running=!1,this._hashbang=!1,this.clickHandler=this.clickHandler.bind(this),this._onpopstate=this._onpopstate.bind(this)}function j(e,t){if("function"==typeof e)return j.call(this,"*",e);if("function"==typeof t)for(var n=new w(e,null,this),r=1;r<arguments.length;++r)this.callbacks.push(n.middleware(arguments[r]));else"string"==typeof e?this["string"==typeof t?"redirect":"show"](e,t):this.start(e)}function C(e,t,n){var r=this.page=n||j,o=r._window,i=r._hashbang,a=r._getBase();"/"===e[0]&&0!==e.indexOf(a)&&(e=a+(i?"#!":"")+e);var s=e.indexOf("?");if(this.canonicalPath=e,this.path=e.replace(a,"")||"/",i&&(this.path=this.path.replace("#!","")||"/"),this.title=b&&o.document.title,this.state=t||{},this.state.path=e,this.querystring=~s?r._decodeURLEncodedURIComponent(e.slice(s+1)):"",this.pathname=r._decodeURLEncodedURIComponent(~s?e.slice(0,s):e),this.params={},this.hash="",!i){if(!~this.path.indexOf("#"))return;var c=this.path.split("#");this.path=this.pathname=c[0],this.hash=r._decodeURLEncodedURIComponent(c[1])||"",this.querystring=this.querystring.split("#")[0]}}function w(e,n,r){this.page=r||E;var o=n||{};o.strict=o.strict||r._strict,this.path="*"===e?"(.*)":e,this.method="GET",this.regexp=t(this.path,this.keys=[],o)}O.prototype.configure=function(e){var t=e||{};this._window=t.window||g&&window,this._decodeURLComponents=!1!==t.decodeURLComponents,this._popstate=!1!==t.popstate&&g,this._click=!1!==t.click&&b,this._hashbang=!!t.hashbang;var n=this._window;this._popstate?n.addEventListener("popstate",this._onpopstate,!1):g&&n.removeEventListener("popstate",this._onpopstate,!1),this._click?n.document.addEventListener(_,this.clickHandler,!1):b&&n.document.removeEventListener(_,this.clickHandler,!1),this._hashbang&&g&&!v?n.addEventListener("hashchange",this._onpopstate,!1):g&&n.removeEventListener("hashchange",this._onpopstate,!1)},O.prototype.base=function(e){if(0===arguments.length)return this._base;this._base=e},O.prototype._getBase=function(){var e=this._base;if(e)return e;var t=g&&this._window&&this._window.location;return g&&this._hashbang&&t&&"file:"===t.protocol&&(e=t.pathname),e},O.prototype.strict=function(e){if(0===arguments.length)return this._strict;this._strict=e},O.prototype.start=function(e){var t=e||{};if(this.configure(t),!1!==t.dispatch){var n;if(this._running=!0,k){var r=this._window,o=r.location;n=this._hashbang&&~o.hash.indexOf("#!")?o.hash.substr(2)+o.search:this._hashbang?o.search+o.hash:o.pathname+o.search+o.hash}this.replace(n,null,!0,t.dispatch)}},O.prototype.stop=function(){if(this._running){this.current="",this.len=0,this._running=!1;var e=this._window;this._click&&e.document.removeEventListener(_,this.clickHandler,!1),g&&e.removeEventListener("popstate",this._onpopstate,!1),g&&e.removeEventListener("hashchange",this._onpopstate,!1)}},O.prototype.show=function(e,t,n,r){var o=new C(e,t,this),i=this.prevContext;return this.prevContext=o,this.current=o.path,!1!==n&&this.dispatch(o,i),!1!==o.handled&&!1!==r&&o.pushState(),o},O.prototype.back=function(e,t){var n=this;if(this.len>0){var r=this._window;v&&r.history.back(),this.len--}else e?setTimeout(function(){n.show(e,t)}):setTimeout(function(){n.show(n._getBase(),t)})},O.prototype.redirect=function(e,t){var n=this;"string"==typeof e&&"string"==typeof t&&j.call(this,e,function(e){setTimeout(function(){n.replace(t)},0)}),"string"==typeof e&&void 0===t&&setTimeout(function(){n.replace(e)},0)},O.prototype.replace=function(e,t,n,r){var o=new C(e,t,this),i=this.prevContext;return this.prevContext=o,this.current=o.path,o.init=n,o.save(),!1!==r&&this.dispatch(o,i),o},O.prototype.dispatch=function(e,t){var n=0,r=0,o=this;function i(){var t=o.callbacks[n++];if(e.path===o.current)return t?void t(e,i):function(e){if(!e.handled){var t=this._window;(this._hashbang?k&&this._getBase()+t.location.hash.replace("#!",""):k&&t.location.pathname+t.location.search)!==e.canonicalPath&&(this.stop(),e.handled=!1,k&&(t.location.href=e.canonicalPath))}}.call(o,e);e.handled=!1}t?function e(){var n=o.exits[r++];if(!n)return i();n(t,e)}():i()},O.prototype.exit=function(e,t){if("function"==typeof e)return this.exit("*",e);for(var n=new w(e,null,this),r=1;r<arguments.length;++r)this.exits.push(n.middleware(arguments[r]))},O.prototype.clickHandler=function(e){if(1===this._which(e)&&!(e.metaKey||e.ctrlKey||e.shiftKey||e.defaultPrevented)){var t=e.target,n=e.path||(e.composedPath?e.composedPath():null);if(n)for(var r=0;r<n.length;r++)if(n[r].nodeName&&"A"===n[r].nodeName.toUpperCase()&&n[r].href){t=n[r];break}for(;t&&"A"!==t.nodeName.toUpperCase();)t=t.parentNode;if(t&&"A"===t.nodeName.toUpperCase()){var o="object"==typeof t.href&&"SVGAnimatedString"===t.href.constructor.name;if(!t.hasAttribute("download")&&"external"!==t.getAttribute("rel")){var i=t.getAttribute("href");if((this._hashbang||!this._samePath(t)||!t.hash&&"#"!==i)&&!(i&&i.indexOf("mailto:")>-1)&&(o?!t.target.baseVal:!t.target)&&(o||this.sameOrigin(t.href))){var a=o?t.href.baseVal:t.pathname+t.search+(t.hash||"");a="/"!==a[0]?"/"+a:a,y&&a.match(/^\/[a-zA-Z]:\//)&&(a=a.replace(/^\/[a-zA-Z]:\//,"/"));var s=a,c=this._getBase();0===a.indexOf(c)&&(a=a.substr(c.length)),this._hashbang&&(a=a.replace("#!","")),(!c||s!==a||k&&"file:"===this._window.location.protocol)&&(e.preventDefault(),this.show(s))}}}}},O.prototype._onpopstate=(m=!1,g?(b&&"complete"===document.readyState?m=!0:window.addEventListener("load",function(){setTimeout(function(){m=!0},0)}),function(e){if(m)if(e.state){var t=e.state.path;this.replace(t,e.state)}else if(k){var n=this._window.location;this.show(n.pathname+n.search+n.hash,void 0,void 0,!1)}}):function(){}),O.prototype._which=function(e){return null==(e=e||g&&this._window.event).which?e.button:e.which},O.prototype._toURL=function(e){var t=this._window;if("function"==typeof URL&&k)return new URL(e,t.location.toString());if(b){var n=t.document.createElement("a");return n.href=e,n}},O.prototype.sameOrigin=function(e){if(!e||!k)return!1;var t=this._toURL(e),n=this._window,r=n.location;return r.protocol===t.protocol&&r.hostname===t.hostname&&r.port===t.port},O.prototype._samePath=function(e){if(!k)return!1;var t=this._window,n=t.location;return e.pathname===n.pathname&&e.search===n.search},O.prototype._decodeURLEncodedURIComponent=function(e){return"string"!=typeof e?e:this._decodeURLComponents?decodeURIComponent(e.replace(/\+/g," ")):e},C.prototype.pushState=function(){var e=this.page,t=e._window,n=e._hashbang;e.len++,v&&t.history.pushState(this.state,this.title,n&&"/"!==this.path?"#!"+this.path:this.canonicalPath)},C.prototype.save=function(){var e=this.page;v&&"file:"!==e._window.location.protocol&&e._window.history.replaceState(this.state,this.title,e._hashbang&&"/"!==this.path?"#!"+this.path:this.canonicalPath)},w.prototype.middleware=function(e){var t=this;return function(n,r){if(t.match(n.path,n.params))return e(n,r);r()}},w.prototype.match=function(e,t){var n=this.keys,r=e.indexOf("?"),o=~r?e.slice(0,r):e,i=this.regexp.exec(decodeURIComponent(o));if(!i)return!1;for(var a=1,s=i.length;a<s;++a){var c=n[a-1],l=this.page._decodeURLEncodedURIComponent(i[a]);void 0===l&&hasOwnProperty.call(t,c.name)||(t[c.name]=l)}return!0};var E=function e(){var t=new O;function n(){return j.apply(t,arguments)}return n.callbacks=t.callbacks,n.exits=t.exits,n.base=t.base.bind(t),n.strict=t.strict.bind(t),n.start=t.start.bind(t),n.stop=t.stop.bind(t),n.show=t.show.bind(t),n.back=t.back.bind(t),n.redirect=t.redirect.bind(t),n.replace=t.replace.bind(t),n.dispatch=t.dispatch.bind(t),n.exit=t.exit.bind(t),n.configure=t.configure.bind(t),n.sameOrigin=t.sameOrigin.bind(t),n.clickHandler=t.clickHandler.bind(t),n.create=e,Object.defineProperty(n,"len",{get:function(){return t.len},set:function(e){t.len=e}}),Object.defineProperty(n,"current",{get:function(){return t.current},set:function(e){t.current=e}}),n.Context=C,n.Route=w,n}(),x=E,S=E;return x.default=S,x}()},function(e,t,n){(function(e){var r;/*! https://mths.be/punycode v1.3.2 by @mathias */!function(o){t&&t.nodeType,e&&e.nodeType;var i="object"==typeof window&&window;i.global!==i&&i.window!==i&&i.self;var a,s=2147483647,c=36,l=1,u=26,p=38,h=700,d=72,f=128,m="-",b=/^xn--/,g=/[^\x20-\x7E]/,v=/[\x2E\u3002\uFF0E\uFF61]/g,y={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=c-l,k=Math.floor,O=String.fromCharCode;function j(e){throw RangeError(y[e])}function C(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function w(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+C((e=e.replace(v,".")).split("."),t).join(".")}function E(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function x(e){return C(e,function(e){var t="";return e>65535&&(t+=O((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=O(e)}).join("")}function S(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function A(e,t,n){var r=0;for(e=n?k(e/h):e>>1,e+=k(e/t);e>_*u>>1;r+=c)e=k(e/_);return k(r+(_+1)*e/(e+p))}function D(e){var t,n,r,o,i,a,p,h,b,g,v,y=[],_=e.length,O=0,C=f,w=d;for((n=e.lastIndexOf(m))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&j("not-basic"),y.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<_;){for(i=O,a=1,p=c;o>=_&&j("invalid-input"),((h=(v=e.charCodeAt(o++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:c)>=c||h>k((s-O)/a))&&j("overflow"),O+=h*a,!(h<(b=p<=w?l:p>=w+u?u:p-w));p+=c)a>k(s/(g=c-b))&&j("overflow"),a*=g;w=A(O-i,t=y.length+1,0==i),k(O/t)>s-C&&j("overflow"),C+=k(O/t),O%=t,y.splice(O++,0,C)}return x(y)}function M(e){var t,n,r,o,i,a,p,h,b,g,v,y,_,C,w,x=[];for(y=(e=E(e)).length,t=f,n=0,i=d,a=0;a<y;++a)(v=e[a])<128&&x.push(O(v));for(r=o=x.length,o&&x.push(m);r<y;){for(p=s,a=0;a<y;++a)(v=e[a])>=t&&v<p&&(p=v);for(p-t>k((s-n)/(_=r+1))&&j("overflow"),n+=(p-t)*_,t=p,a=0;a<y;++a)if((v=e[a])<t&&++n>s&&j("overflow"),v==t){for(h=n,b=c;!(h<(g=b<=i?l:b>=i+u?u:b-i));b+=c)w=h-g,C=c-g,x.push(O(S(g+w%C,0))),h=k(w/C);x.push(O(S(h,0))),i=A(n,_,r==o),n=0,++r}++n,++t}return x.join("")}a={version:"1.3.2",ucs2:{decode:E,encode:x},decode:D,encode:M,toASCII:function(e){return w(e,function(e){return g.test(e)?"xn--"+M(e):e})},toUnicode:function(e){return w(e,function(e){return b.test(e)?D(e.slice(4).toLowerCase()):e})}},void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}()}).call(this,n(103)(e))},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,function(e,t,n){"use strict";e.exports=n(128)},function(e,t,n){"use strict";e.exports.encode=n(129),e.exports.decode=n(130),e.exports.format=n(131),e.exports.parse=n(132)},function(e,t){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(e,t){e.exports=/[\0-\x1F\x7F-\x9F]/},function(e,t){e.exports=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/},function(e,t,n){"use strict";var r="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",o="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",i=new RegExp("^(?:"+r+"|"+o+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),a=new RegExp("^(?:"+r+"|"+o+")");e.exports.HTML_TAG_RE=i,e.exports.HTML_OPEN_CLOSE_TAG_RE=a},function(e,t,n){"use strict";e.exports.tokenize=function(e,t){var n,r,o,i,a=e.pos,s=e.src.charCodeAt(a);if(t)return!1;if(126!==s)return!1;if(o=(r=e.scanDelims(e.pos,!0)).length,i=String.fromCharCode(s),o<2)return!1;for(o%2&&(e.push("text","",0).content=i,o--),n=0;n<o;n+=2)e.push("text","",0).content=i+i,e.delimiters.push({marker:s,jump:n,token:e.tokens.length-1,level:e.level,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.postProcess=function(e){var t,n,r,o,i,a=[],s=e.delimiters,c=e.delimiters.length;for(t=0;t<c;t++)126===(r=s[t]).marker&&-1!==r.end&&(o=s[r.end],(i=e.tokens[r.token]).type="s_open",i.tag="s",i.nesting=1,i.markup="~~",i.content="",(i=e.tokens[o.token]).type="s_close",i.tag="s",i.nesting=-1,i.markup="~~",i.content="","text"===e.tokens[o.token-1].type&&"~"===e.tokens[o.token-1].content&&a.push(o.token-1));for(;a.length;){for(n=(t=a.pop())+1;n<e.tokens.length&&"s_close"===e.tokens[n].type;)n++;t!==--n&&(i=e.tokens[n],e.tokens[n]=e.tokens[t],e.tokens[t]=i)}}},function(e,t,n){"use strict";e.exports.tokenize=function(e,t){var n,r,o=e.pos,i=e.src.charCodeAt(o);if(t)return!1;if(95!==i&&42!==i)return!1;for(r=e.scanDelims(e.pos,42===i),n=0;n<r.length;n++)e.push("text","",0).content=String.fromCharCode(i),e.delimiters.push({marker:i,length:r.length,jump:n,token:e.tokens.length-1,level:e.level,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.postProcess=function(e){var t,n,r,o,i,a,s=e.delimiters;for(t=e.delimiters.length-1;t>=0;t--)95!==(n=s[t]).marker&&42!==n.marker||-1!==n.end&&(r=s[n.end],a=t>0&&s[t-1].end===n.end+1&&s[t-1].token===n.token-1&&s[n.end+1].token===r.token+1&&s[t-1].marker===n.marker,i=String.fromCharCode(n.marker),(o=e.tokens[n.token]).type=a?"strong_open":"em_open",o.tag=a?"strong":"em",o.nesting=1,o.markup=a?i+i:i,o.content="",(o=e.tokens[r.token]).type=a?"strong_close":"em_close",o.tag=a?"strong":"em",o.nesting=-1,o.markup=a?i+i:i,o.content="",a&&(e.tokens[s[t-1].token].content="",e.tokens[s[n.end+1].token].content="",t--))}},function(e,t,n){var r=n(63),o=n(186),i=n(187),a="[object Null]",s="[object Undefined]",c=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:c&&c in Object(e)?o(e):i(e)}},function(e,t,n){var r=n(196),o=n(201);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(88);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(63),o=n(219),i=n(61),a=n(62),s=1/0,c=r?r.prototype:void 0,l=c?c.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-s?"-0":n}},function(e){e.exports={production:["contact-form","gif","map","markdown","publicize","related-posts","shortlinks","simple-payments","subscriptions","tiled-gallery"],beta:["mailchimp","vr","contact-info"]}},function(e,t,n){"use strict";e.exports=n(127)},function(e,t,n){"use strict";e.exports=function(e){var t,n={};return function e(t,n){var r;if(Array.isArray(n))for(r=0;r<n.length;r++)e(t,n[r]);else for(r in n)t[r]=(t[r]||[]).concat(n[r])}(n,e),(t=function(e){return function(t){return function(r){var o,i,a=n[r.type],s=t(r);if(a)for(o=0;o<a.length;o++)(i=a[o](r,e))&&e.dispatch(i);return s}}}).effects=n,t}},function(e,t,n){var r=n(182);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e,t,n){e.exports=n.p+"images/paypal-button-1e53882e702881f8dfd958c141e65383.png"},function(e,t,n){e.exports=n.p+"images/paypal-button-2x-fe4d34770a47484f401cecbb892f8456.png"},function(e,t,n){var r=n(88),o=n(229),i=n(231),a=n(236),s=n(87),c=/\s+$/;e.exports=function(e,t,n){if((e=s(e))&&(n||void 0===t))return e.replace(c,"");if(!e||!(t=r(t)))return e;var l=a(e),u=i(l,a(t))+1;return o(l,0,u).join("")}},function(e,t,n){var r=n(30),o=n(242),i=n(243),a=n(244)("photon");e.exports=function(e,t){var n=r.parse(e,!0,!0),c="https:"===n.protocol;delete n.protocol,delete n.auth,delete n.port;var l={slashes:!0,protocol:"https:",query:{}};if(m=n.host,/^i[0-2]\.wp\.com$/.test(m))l.pathname=n.pathname,l.hostname=n.hostname;else{if(n.search)return null;var u=r.format(n);l.pathname=0===u.indexOf("//")?u.substring(1):u,l.hostname=(p=l.pathname,h=o(p),d=i(h),f="i"+Math.floor(3*d()),a('determined server "%s" to use with "%s"',f,p),f+".wp.com"),c&&(l.query.ssl=1)}var p,h,d,f;var m;if(t)for(var b in t)"host"!==b&&"hostname"!==b?"secure"!==b||t[b]?l.query[s[b]||b]=t[b]:l.protocol="http:":l.hostname=t[b];var g=r.format(l);return a("generated Photon URL: %s",g),g};var s={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"}},function(e,t){e.exports=wp.tokenList},function(e,t,n){"use strict";n.r(t);var r=n(15),o=n.n(r),i=n(0),a=n(18),s=n(35);Object(a.setCategories)([].concat(o()(Object(a.getCategories)().filter(function(e){return"jetpack"!==e.slug})),[{slug:"jetpack",title:"Jetpack",icon:Object(i.createElement)(s.a,null)}]))},function(e,t,n){"use strict";
13
+ /** @license React v16.6.1
14
+ * react.production.min.js
15
+ *
16
+ * Copyright (c) Facebook, Inc. and its affiliates.
17
+ *
18
+ * This source code is licensed under the MIT license found in the
19
+ * LICENSE file in the root directory of this source tree.
20
+ */var r=n(100),o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,s=o?Symbol.for("react.fragment"):60107,c=o?Symbol.for("react.strict_mode"):60108,l=o?Symbol.for("react.profiler"):60114,u=o?Symbol.for("react.provider"):60109,p=o?Symbol.for("react.context"):60110,h=o?Symbol.for("react.concurrent_mode"):60111,d=o?Symbol.for("react.forward_ref"):60112,f=o?Symbol.for("react.suspense"):60113,m=o?Symbol.for("react.memo"):60115,b=o?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);!function(e,t,n,r,o,i,a,s){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],l=0;(e=Error(t.replace(/%s/g,function(){return c[l++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_={};function k(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||y}function O(){}function j(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||y}k.prototype.isReactComponent={},k.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&v("85"),this.updater.enqueueSetState(this,e,t,"setState")},k.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},O.prototype=k.prototype;var C=j.prototype=new O;C.constructor=j,r(C,k.prototype),C.isPureReactComponent=!0;var w={current:null,currentDispatcher:null},E=Object.prototype.hasOwnProperty,x={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var r=void 0,o={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)E.call(t,r)&&!x.hasOwnProperty(r)&&(o[r]=t[r]);var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in c=e.defaultProps)void 0===o[r]&&(o[r]=c[r]);return{$$typeof:i,type:e,key:a,ref:s,props:o,_owner:w.current}}function A(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var D=/\/+/g,M=[];function T(e,t,n,r){if(M.length){var o=M.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function F(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>M.length&&M.push(e)}function z(e,t,n){return null==e?0:function e(t,n,r,o){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var c=!1;if(null===t)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(t.$$typeof){case i:case a:c=!0}}if(c)return r(o,t,""===n?"."+P(t,0):n),1;if(c=0,n=""===n?".":n+":",Array.isArray(t))for(var l=0;l<t.length;l++){var u=n+P(s=t[l],l);c+=e(s,u,r,o)}else if(u=null===t||"object"!=typeof t?null:"function"==typeof(u=g&&t[g]||t["@@iterator"])?u:null,"function"==typeof u)for(t=u.call(t),l=0;!(s=t.next()).done;)c+=e(s=s.value,u=n+P(s,l++),r,o);else"object"===s&&v("31","[object Object]"==(r=""+t)?"object with keys {"+Object.keys(t).join(", ")+"}":r,"");return c}(e,"",t,n)}function P(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 N(e,t){e.func.call(e.context,t,e.count++)}function I(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?R(e,r,n,function(e){return e}):null!=e&&(A(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(D,"$&/")+"/")+n)),r.push(e))}function R(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(D,"$&/")+"/"),z(e,I,t=T(t,i,r,o)),F(t)}var L={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return R(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;z(e,N,t=T(null,null,t,n)),F(t)},count:function(e){return z(e,function(){return null},null)},toArray:function(e){var t=[];return R(e,t,null,function(e){return e}),t},only:function(e){return A(e)||v("143"),e}},createRef:function(){return{current:null}},Component:k,PureComponent:j,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:p,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:d,render:e}},lazy:function(e){return{$$typeof:b,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:m,type:e,compare:void 0===t?null:t}},Fragment:s,StrictMode:c,Suspense:f,createElement:S,cloneElement:function(e,t,n){null==e&&v("267",e);var o=void 0,a=r({},e.props),s=e.key,c=e.ref,l=e._owner;if(null!=t){void 0!==t.ref&&(c=t.ref,l=w.current),void 0!==t.key&&(s=""+t.key);var u=void 0;for(o in e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)E.call(t,o)&&!x.hasOwnProperty(o)&&(a[o]=void 0===t[o]&&void 0!==u?u[o]:t[o])}if(1===(o=arguments.length-2))a.children=n;else if(1<o){u=Array(o);for(var p=0;p<o;p++)u[p]=arguments[p+2];a.children=u}return{$$typeof:i,type:e.type,key:s,ref:c,props:a,_owner:l}},createFactory:function(e){var t=S.bind(null,e);return t.type=e,t},isValidElement:A,version:"16.6.3",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:w,assign:r}};L.unstable_ConcurrentMode=h,L.unstable_Profiler=l;var q={default:L},B=q&&L||q;e.exports=B.default||B},function(e,t,n){"use strict";
21
+ /*
22
+ object-assign
23
+ (c) Sindre Sorhus
24
+ @license MIT
25
+ */var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;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,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var l in n=Object(arguments[c]))o.call(n,l)&&(s[l]=n[l]);if(r){a=r(n);for(var u=0;u<a.length;u++)i.call(n,a[u])&&(s[a[u]]=n[a[u]])}}return s}},function(e,t,n){"use strict";var r=n(102);function o(){}e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}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,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=o,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){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){"use strict";t.decode=t.parse=n(106),t.encode=t.stringify=n(107)},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,o){t=t||"&",n=n||"=";var i={};if("string"!=typeof e||0===e.length)return i;var a=/\+/g;e=e.split(t);var s=1e3;o&&"number"==typeof o.maxKeys&&(s=o.maxKeys);var c=e.length;s>0&&c>s&&(c=s);for(var l=0;l<c;++l){var u,p,h,d,f=e[l].replace(a,"%20"),m=f.indexOf(n);m>=0?(u=f.substr(0,m),p=f.substr(m+1)):(u=f,p=""),h=decodeURIComponent(u),d=decodeURIComponent(p),r(i,h)?Array.isArray(i[h])?i[h].push(d):i[h]=[i[h],d]:i[h]=d}return i}},function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,o){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map(function(o){var i=encodeURIComponent(r(o))+n;return Array.isArray(e[o])?e[o].map(function(e){return i+encodeURIComponent(r(e))}).join(t):i+encodeURIComponent(r(e[o]))}).join(t):o?encodeURIComponent(r(o))+n+encodeURIComponent(r(e)):""}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,function(e,t,n){"use strict";var r=n(13),o=n(135),i=n(139),a=n(140),s=n(148),c=n(162),l=n(175),u=n(77),p=n(68),h={default:n(177),zero:n(178),commonmark:n(179)},d=/^(vbscript|javascript|file|data):/,f=/^data:image\/(gif|png|jpeg|webp);/;function m(e){var t=e.trim().toLowerCase();return!d.test(t)||!!f.test(t)}var b=["http:","https:","mailto:"];function g(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||b.indexOf(t.protocol)>=0))try{t.hostname=p.toASCII(t.hostname)}catch(e){}return u.encode(u.format(t))}function v(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||b.indexOf(t.protocol)>=0))try{t.hostname=p.toUnicode(t.hostname)}catch(e){}return u.decode(u.format(t))}function y(e,t){if(!(this instanceof y))return new y(e,t);t||r.isString(e)||(t=e||{},e="default"),this.inline=new c,this.block=new s,this.core=new a,this.renderer=new i,this.linkify=new l,this.validateLink=m,this.normalizeLink=g,this.normalizeLinkText=v,this.utils=r,this.helpers=r.assign({},o),this.options={},this.configure(e),t&&this.set(t)}y.prototype.set=function(e){return r.assign(this.options,e),this},y.prototype.configure=function(e){var t,n=this;if(r.isString(e)&&!(e=h[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach(function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)}),this},y.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},y.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},y.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},y.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},y.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},y.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},y.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.exports=y},function(e){e.exports={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}},function(e,t,n){"use strict";var r={};function o(e,t,n){var i,a,s,c,l,u="";for("string"!=typeof t&&(n=t,t=o.defaultChars),void 0===n&&(n=!0),l=function(e){var t,n,o=r[e];if(o)return o;for(o=r[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?o.push(n):o.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)o[e.charCodeAt(t)]=e[t];return o}(t),i=0,a=e.length;i<a;i++)if(s=e.charCodeAt(i),n&&37===s&&i+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(i+1,i+3)))u+=e.slice(i,i+3),i+=2;else if(s<128)u+=l[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&i+1<a&&(c=e.charCodeAt(i+1))>=56320&&c<=57343){u+=encodeURIComponent(e[i]+e[i+1]),i++;continue}u+="%EF%BF%BD"}else u+=encodeURIComponent(e[i]);return u}o.defaultChars=";/?:@&=+$,-_.!~*'()#",o.componentChars="-_.!~*'()",e.exports=o},function(e,t,n){"use strict";var r={};function o(e,t){var n;return"string"!=typeof t&&(t=o.defaultChars),n=function(e){var t,n,o=r[e];if(o)return o;for(o=r[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),o.push(n);for(t=0;t<e.length;t++)o[n=e.charCodeAt(t)]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return o}(t),e.replace(/(%[a-f0-9]{2})+/gi,function(e){var t,r,o,i,a,s,c,l="";for(t=0,r=e.length;t<r;t+=3)(o=parseInt(e.slice(t+1,t+3),16))<128?l+=n[o]:192==(224&o)&&t+3<r&&128==(192&(i=parseInt(e.slice(t+4,t+6),16)))?(l+=(c=o<<6&1984|63&i)<128?"��":String.fromCharCode(c),t+=3):224==(240&o)&&t+6<r&&(i=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),128==(192&i)&&128==(192&a))?(l+=(c=o<<12&61440|i<<6&4032|63&a)<2048||c>=55296&&c<=57343?"���":String.fromCharCode(c),t+=6):240==(248&o)&&t+9<r&&(i=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),s=parseInt(e.slice(t+10,t+12),16),128==(192&i)&&128==(192&a)&&128==(192&s))?((c=o<<18&1835008|i<<12&258048|a<<6&4032|63&s)<65536||c>1114111?l+="����":(c-=65536,l+=String.fromCharCode(55296+(c>>10),56320+(1023&c))),t+=9):l+="�";return l})}o.defaultChars=";/?:@&=+$,#",o.componentChars="",e.exports=o},function(e,t,n){"use strict";e.exports=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""}},function(e,t,n){"use strict";function r(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var o=/^([a-z0-9.+-]+:)/i,i=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,s=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(s),l=["%","/","?",";","#"].concat(c),u=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,d={javascript:!0,"javascript:":!0},f={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};r.prototype.parse=function(e,t){var n,r,i,s,c,m=e;if(m=m.trim(),!t&&1===e.split("#").length){var b=a.exec(m);if(b)return this.pathname=b[1],b[2]&&(this.search=b[2]),this}var g=o.exec(m);if(g&&(i=(g=g[0]).toLowerCase(),this.protocol=g,m=m.substr(g.length)),(t||g||m.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(c="//"===m.substr(0,2))||g&&d[g]||(m=m.substr(2),this.slashes=!0)),!d[g]&&(c||g&&!f[g])){var v,y,_=-1;for(n=0;n<u.length;n++)-1!==(s=m.indexOf(u[n]))&&(-1===_||s<_)&&(_=s);for(-1!==(y=-1===_?m.lastIndexOf("@"):m.lastIndexOf("@",_))&&(v=m.slice(0,y),m=m.slice(y+1),this.auth=v),_=-1,n=0;n<l.length;n++)-1!==(s=m.indexOf(l[n]))&&(-1===_||s<_)&&(_=s);-1===_&&(_=m.length),":"===m[_-1]&&_--;var k=m.slice(0,_);m=m.slice(_),this.parseHost(k),this.hostname=this.hostname||"";var O="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!O){var j=this.hostname.split(/\./);for(n=0,r=j.length;n<r;n++){var C=j[n];if(C&&!C.match(p)){for(var w="",E=0,x=C.length;E<x;E++)C.charCodeAt(E)>127?w+="x":w+=C[E];if(!w.match(p)){var S=j.slice(0,n),A=j.slice(n+1),D=C.match(h);D&&(S.push(D[1]),A.unshift(D[2])),A.length&&(m=A.join(".")+m),this.hostname=S.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),O&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var M=m.indexOf("#");-1!==M&&(this.hash=m.substr(M),m=m.slice(0,M));var T=m.indexOf("?");return-1!==T&&(this.search=m.substr(T),m=m.slice(0,T)),m&&(this.pathname=m),f[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},r.prototype.parseHost=function(e){var t=i.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},e.exports=function(e,t){if(e&&e instanceof r)return e;var n=new r;return n.parse(e,t),n}},function(e,t,n){"use strict";t.Any=n(78),t.Cc=n(79),t.Cf=n(134),t.P=n(58),t.Z=n(80)},function(e,t){e.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804\uDCBD|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/},function(e,t,n){"use strict";t.parseLinkLabel=n(136),t.parseLinkDestination=n(137),t.parseLinkTitle=n(138)},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,o,i,a,s=-1,c=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<c;){if(93===(i=e.src.charCodeAt(e.pos))&&0===--r){o=!0;break}if(a=e.pos,e.md.inline.skipToken(e),91===i)if(a===e.pos-1)r++;else if(n)return e.pos=l,-1}return o&&(s=e.pos),e.pos=l,s}},function(e,t,n){"use strict";var r=n(13).isSpace,o=n(13).unescapeAll;e.exports=function(e,t,n){var i,a,s=t,c={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t<n;){if(10===(i=e.charCodeAt(t))||r(i))return c;if(62===i)return c.pos=t+1,c.str=o(e.slice(s+1,t)),c.ok=!0,c;92===i&&t+1<n?t+=2:t++}return c}for(a=0;t<n&&32!==(i=e.charCodeAt(t))&&!(i<32||127===i);)if(92===i&&t+1<n)t+=2;else{if(40===i&&a++,41===i){if(0===a)break;a--}t++}return s===t?c:0!==a?c:(c.str=o(e.slice(s,t)),c.lines=0,c.pos=t,c.ok=!0,c)}},function(e,t,n){"use strict";var r=n(13).unescapeAll;e.exports=function(e,t,n){var o,i,a=0,s=t,c={ok:!1,pos:0,lines:0,str:""};if(t>=n)return c;if(34!==(i=e.charCodeAt(t))&&39!==i&&40!==i)return c;for(t++,40===i&&(i=41);t<n;){if((o=e.charCodeAt(t))===i)return c.pos=t+1,c.lines=a,c.str=r(e.slice(s+1,t)),c.ok=!0,c;10===o?a++:92===o&&t+1<n&&(t++,10===e.charCodeAt(t)&&a++),t++}return c}},function(e,t,n){"use strict";var r=n(13).assign,o=n(13).unescapeAll,i=n(13).escapeHtml,a={};function s(){this.rules=r({},a)}a.code_inline=function(e,t,n,r,o){var a=e[t];return"<code"+o.renderAttrs(a)+">"+i(e[t].content)+"</code>"},a.code_block=function(e,t,n,r,o){var a=e[t];return"<pre"+o.renderAttrs(a)+"><code>"+i(e[t].content)+"</code></pre>\n"},a.fence=function(e,t,n,r,a){var s,c,l,u,p=e[t],h=p.info?o(p.info).trim():"",d="";return h&&(d=h.split(/\s+/g)[0]),0===(s=n.highlight&&n.highlight(p.content,d)||i(p.content)).indexOf("<pre")?s+"\n":h?(c=p.attrIndex("class"),l=p.attrs?p.attrs.slice():[],c<0?l.push(["class",n.langPrefix+d]):l[c][1]+=" "+n.langPrefix+d,u={attrs:l},"<pre><code"+a.renderAttrs(u)+">"+s+"</code></pre>\n"):"<pre><code"+a.renderAttrs(p)+">"+s+"</code></pre>\n"},a.image=function(e,t,n,r,o){var i=e[t];return i.attrs[i.attrIndex("alt")][1]=o.renderInlineAsText(i.children,n,r),o.renderToken(e,t,n)},a.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},a.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},a.text=function(e,t){return i(e[t].content)},a.html_block=function(e,t){return e[t].content},a.html_inline=function(e,t){return e[t].content},s.prototype.renderAttrs=function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+i(e.attrs[t][0])+'="'+i(e.attrs[t][1])+'"';return r},s.prototype.renderToken=function(e,t,n){var r,o="",i=!1,a=e[t];return a.hidden?"":(a.block&&-1!==a.nesting&&t&&e[t-1].hidden&&(o+="\n"),o+=(-1===a.nesting?"</":"<")+a.tag,o+=this.renderAttrs(a),0===a.nesting&&n.xhtmlOut&&(o+=" /"),a.block&&(i=!0,1===a.nesting&&t+1<e.length&&("inline"===(r=e[t+1]).type||r.hidden?i=!1:-1===r.nesting&&r.tag===a.tag&&(i=!1))),o+=i?">\n":">")},s.prototype.renderInline=function(e,t,n){for(var r,o="",i=this.rules,a=0,s=e.length;a<s;a++)void 0!==i[r=e[a].type]?o+=i[r](e,a,t,n,this):o+=this.renderToken(e,a,t);return o},s.prototype.renderInlineAsText=function(e,t,n){for(var r="",o=0,i=e.length;o<i;o++)"text"===e[o].type?r+=e[o].content:"image"===e[o].type&&(r+=this.renderInlineAsText(e[o].children,t,n));return r},s.prototype.render=function(e,t,n){var r,o,i,a="",s=this.rules;for(r=0,o=e.length;r<o;r++)"inline"===(i=e[r].type)?a+=this.renderInline(e[r].children,t,n):void 0!==s[i]?a+=s[e[r].type](e,r,t,n,this):a+=this.renderToken(e,r,t,n);return a},e.exports=s},function(e,t,n){"use strict";var r=n(59),o=[["normalize",n(141)],["block",n(142)],["inline",n(143)],["linkify",n(144)],["replacements",n(145)],["smartquotes",n(146)]];function i(){this.ruler=new r;for(var e=0;e<o.length;e++)this.ruler.push(o[e][0],o[e][1])}i.prototype.process=function(e){var t,n,r;for(t=0,n=(r=this.ruler.getRules("")).length;t<n;t++)r[t](e)},i.prototype.State=n(147),e.exports=i},function(e,t,n){"use strict";var r=/\r[\n\u0085]?|[\u2424\u2028\u0085]/g,o=/\u0000/g;e.exports=function(e){var t;t=(t=e.src.replace(r,"\n")).replace(o,"�"),e.src=t}},function(e,t,n){"use strict";e.exports=function(e){var t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}},function(e,t,n){"use strict";e.exports=function(e){var t,n,r,o=e.tokens;for(n=0,r=o.length;n<r;n++)"inline"===(t=o[n]).type&&e.md.inline.parse(t.content,e.md,e.env,t.children)}},function(e,t,n){"use strict";var r=n(13).arrayReplaceAt;function o(e){return/^<\/a\s*>/i.test(e)}e.exports=function(e){var t,n,i,a,s,c,l,u,p,h,d,f,m,b,g,v,y,_,k=e.tokens;if(e.md.options.linkify)for(n=0,i=k.length;n<i;n++)if("inline"===k[n].type&&e.md.linkify.pretest(k[n].content))for(m=0,t=(a=k[n].children).length-1;t>=0;t--)if("link_close"!==(c=a[t]).type){if("html_inline"===c.type&&(_=c.content,/^<a[>\s]/i.test(_)&&m>0&&m--,o(c.content)&&m++),!(m>0)&&"text"===c.type&&e.md.linkify.test(c.content)){for(p=c.content,y=e.md.linkify.match(p),l=[],f=c.level,d=0,u=0;u<y.length;u++)b=y[u].url,g=e.md.normalizeLink(b),e.md.validateLink(g)&&(v=y[u].text,v=y[u].schema?"mailto:"!==y[u].schema||/^mailto:/i.test(v)?e.md.normalizeLinkText(v):e.md.normalizeLinkText("mailto:"+v).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+v).replace(/^http:\/\//,""),(h=y[u].index)>d&&((s=new e.Token("text","",0)).content=p.slice(d,h),s.level=f,l.push(s)),(s=new e.Token("link_open","a",1)).attrs=[["href",g]],s.level=f++,s.markup="linkify",s.info="auto",l.push(s),(s=new e.Token("text","",0)).content=v,s.level=f,l.push(s),(s=new e.Token("link_close","a",-1)).level=--f,s.markup="linkify",s.info="auto",l.push(s),d=y[u].lastIndex);d<p.length&&((s=new e.Token("text","",0)).content=p.slice(d),s.level=f,l.push(s)),k[n].children=a=r(a,t,l)}}else for(t--;a[t].level!==c.level&&"link_open"!==a[t].type;)t--}},function(e,t,n){"use strict";var r=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,o=/\((c|tm|r|p)\)/i,i=/\((c|tm|r|p)\)/gi,a={c:"©",r:"®",p:"§",tm:"™"};function s(e,t){return a[t.toLowerCase()]}function c(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||(n.content=n.content.replace(i,s)),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}function l(e){var t,n,o=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||o||r.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/gm,"$1—$2").replace(/(^|\s)--(\s|$)/gm,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/gm,"$1–$2")),"link_open"===n.type&&"auto"===n.info&&o--,"link_close"===n.type&&"auto"===n.info&&o++}e.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(o.test(e.tokens[t].content)&&c(e.tokens[t].children),r.test(e.tokens[t].content)&&l(e.tokens[t].children))}},function(e,t,n){"use strict";var r=n(13).isWhiteSpace,o=n(13).isPunctChar,i=n(13).isMdAsciiPunct,a=/['"]/,s=/['"]/g,c="’";function l(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function u(e,t){var n,a,u,p,h,d,f,m,b,g,v,y,_,k,O,j,C,w,E,x,S;for(E=[],n=0;n<e.length;n++){for(a=e[n],f=e[n].level,C=E.length-1;C>=0&&!(E[C].level<=f);C--);if(E.length=C+1,"text"===a.type){h=0,d=(u=a.content).length;e:for(;h<d&&(s.lastIndex=h,p=s.exec(u));){if(O=j=!0,h=p.index+1,w="'"===p[0],b=32,p.index-1>=0)b=u.charCodeAt(p.index-1);else for(C=n-1;C>=0&&("softbreak"!==e[C].type&&"hardbreak"!==e[C].type);C--)if("text"===e[C].type){b=e[C].content.charCodeAt(e[C].content.length-1);break}if(g=32,h<d)g=u.charCodeAt(h);else for(C=n+1;C<e.length&&("softbreak"!==e[C].type&&"hardbreak"!==e[C].type);C++)if("text"===e[C].type){g=e[C].content.charCodeAt(0);break}if(v=i(b)||o(String.fromCharCode(b)),y=i(g)||o(String.fromCharCode(g)),_=r(b),(k=r(g))?O=!1:y&&(_||v||(O=!1)),_?j=!1:v&&(k||y||(j=!1)),34===g&&'"'===p[0]&&b>=48&&b<=57&&(j=O=!1),O&&j&&(O=!1,j=y),O||j){if(j)for(C=E.length-1;C>=0&&(m=E[C],!(E[C].level<f));C--)if(m.single===w&&E[C].level===f){m=E[C],w?(x=t.md.options.quotes[2],S=t.md.options.quotes[3]):(x=t.md.options.quotes[0],S=t.md.options.quotes[1]),a.content=l(a.content,p.index,S),e[m.token].content=l(e[m.token].content,m.pos,x),h+=S.length-1,m.token===n&&(h+=x.length-1),d=(u=a.content).length,E.length=C;continue e}O?E.push({token:n,pos:p.index,single:w,level:f}):j&&w&&(a.content=l(a.content,p.index,c))}else w&&(a.content=l(a.content,p.index,c))}}}}e.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&a.test(e.tokens[t].content)&&u(e.tokens[t].children,e)}},function(e,t,n){"use strict";var r=n(60);function o(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}o.prototype.Token=r,e.exports=o},function(e,t,n){"use strict";var r=n(59),o=[["table",n(149),["paragraph","reference"]],["code",n(150)],["fence",n(151),["paragraph","reference","blockquote","list"]],["blockquote",n(152),["paragraph","reference","blockquote","list"]],["hr",n(153),["paragraph","reference","blockquote","list"]],["list",n(154),["paragraph","reference","blockquote"]],["reference",n(155)],["heading",n(156),["paragraph","reference","blockquote"]],["lheading",n(157)],["html_block",n(158),["paragraph","reference","blockquote"]],["paragraph",n(160)]];function i(){this.ruler=new r;for(var e=0;e<o.length;e++)this.ruler.push(o[e][0],o[e][1],{alt:(o[e][2]||[]).slice()})}i.prototype.tokenize=function(e,t,n){for(var r,o=this.ruler.getRules(""),i=o.length,a=t,s=!1,c=e.md.options.maxNesting;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n))&&!(e.sCount[a]<e.blkIndent);){if(e.level>=c){e.line=n;break}for(r=0;r<i&&!o[r](e,a,n,!1);r++);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),(a=e.line)<n&&e.isEmpty(a)&&(s=!0,a++,e.line=a)}},i.prototype.parse=function(e,t,n,r){var o;e&&(o=new this.State(e,t,n,r),this.tokenize(o,o.line,o.lineMax))},i.prototype.State=n(161),e.exports=i},function(e,t,n){"use strict";var r=n(13).isSpace;function o(e,t){var n=e.bMarks[t]+e.blkIndent,r=e.eMarks[t];return e.src.substr(n,r-n)}function i(e){var t,n=[],r=0,o=e.length,i=0,a=0,s=!1,c=0;for(t=e.charCodeAt(r);r<o;)96===t?s?(s=!1,c=r):i%2==0&&(s=!0,c=r):124!==t||i%2!=0||s||(n.push(e.substring(a,r)),a=r+1),92===t?i++:i=0,++r===o&&s&&(s=!1,r=c+1),t=e.charCodeAt(r);return n.push(e.substring(a)),n}e.exports=function(e,t,n,a){var s,c,l,u,p,h,d,f,m,b,g,v;if(t+2>n)return!1;if(p=t+1,e.sCount[p]<e.blkIndent)return!1;if(e.sCount[p]-e.blkIndent>=4)return!1;if((l=e.bMarks[p]+e.tShift[p])>=e.eMarks[p])return!1;if(124!==(s=e.src.charCodeAt(l++))&&45!==s&&58!==s)return!1;for(;l<e.eMarks[p];){if(124!==(s=e.src.charCodeAt(l))&&45!==s&&58!==s&&!r(s))return!1;l++}for(h=(c=o(e,t+1)).split("|"),m=[],u=0;u<h.length;u++){if(!(b=h[u].trim())){if(0===u||u===h.length-1)continue;return!1}if(!/^:?-+:?$/.test(b))return!1;58===b.charCodeAt(b.length-1)?m.push(58===b.charCodeAt(0)?"center":"right"):58===b.charCodeAt(0)?m.push("left"):m.push("")}if(-1===(c=o(e,t).trim()).indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;if((d=(h=i(c.replace(/^\||\|$/g,""))).length)>m.length)return!1;if(a)return!0;for((f=e.push("table_open","table",1)).map=g=[t,0],(f=e.push("thead_open","thead",1)).map=[t,t+1],(f=e.push("tr_open","tr",1)).map=[t,t+1],u=0;u<h.length;u++)(f=e.push("th_open","th",1)).map=[t,t+1],m[u]&&(f.attrs=[["style","text-align:"+m[u]]]),(f=e.push("inline","",0)).content=h[u].trim(),f.map=[t,t+1],f.children=[],f=e.push("th_close","th",-1);for(f=e.push("tr_close","tr",-1),f=e.push("thead_close","thead",-1),(f=e.push("tbody_open","tbody",1)).map=v=[t+2,0],p=t+2;p<n&&!(e.sCount[p]<e.blkIndent)&&-1!==(c=o(e,p).trim()).indexOf("|")&&!(e.sCount[p]-e.blkIndent>=4);p++){for(h=i(c.replace(/^\||\|$/g,"")),f=e.push("tr_open","tr",1),u=0;u<d;u++)f=e.push("td_open","td",1),m[u]&&(f.attrs=[["style","text-align:"+m[u]]]),(f=e.push("inline","",0)).content=h[u]?h[u].trim():"",f.children=[],f=e.push("td_close","td",-1);f=e.push("tr_close","tr",-1)}return f=e.push("tbody_close","tbody",-1),f=e.push("table_close","table",-1),g[1]=v[1]=p,e.line=p,!0}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,o,i;if(e.sCount[t]-e.blkIndent<4)return!1;for(o=r=t+1;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=4))break;o=++r}return e.line=o,(i=e.push("code_block","code",0)).content=e.getLines(t,o,4+e.blkIndent,!0),i.map=[t,e.line],!0}},function(e,t,n){"use strict";e.exports=function(e,t,n,r){var o,i,a,s,c,l,u,p=!1,h=e.bMarks[t]+e.tShift[t],d=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(h+3>d)return!1;if(126!==(o=e.src.charCodeAt(h))&&96!==o)return!1;if(c=h,(i=(h=e.skipChars(h,o))-c)<3)return!1;if(u=e.src.slice(c,h),(a=e.src.slice(h,d)).indexOf(String.fromCharCode(o))>=0)return!1;if(r)return!0;for(s=t;!(++s>=n)&&!((h=c=e.bMarks[s]+e.tShift[s])<(d=e.eMarks[s])&&e.sCount[s]<e.blkIndent);)if(e.src.charCodeAt(h)===o&&!(e.sCount[s]-e.blkIndent>=4||(h=e.skipChars(h,o))-c<i||(h=e.skipSpaces(h))<d)){p=!0;break}return i=e.sCount[t],e.line=s+(p?1:0),(l=e.push("fence","code",0)).info=a,l.content=e.getLines(t+1,s,i,!0),l.markup=u,l.map=[t,e.line],!0}},function(e,t,n){"use strict";var r=n(13).isSpace;e.exports=function(e,t,n,o){var i,a,s,c,l,u,p,h,d,f,m,b,g,v,y,_,k,O,j,C,w=e.lineMax,E=e.bMarks[t]+e.tShift[t],x=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(E++))return!1;if(o)return!0;for(c=d=e.sCount[t]+E-(e.bMarks[t]+e.tShift[t]),32===e.src.charCodeAt(E)?(E++,c++,d++,i=!1,_=!0):9===e.src.charCodeAt(E)?(_=!0,(e.bsCount[t]+d)%4==3?(E++,c++,d++,i=!1):i=!0):_=!1,f=[e.bMarks[t]],e.bMarks[t]=E;E<x&&(a=e.src.charCodeAt(E),r(a));)9===a?d+=4-(d+e.bsCount[t]+(i?1:0))%4:d++,E++;for(m=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(_?1:0),u=E>=x,v=[e.sCount[t]],e.sCount[t]=d-c,y=[e.tShift[t]],e.tShift[t]=E-e.bMarks[t],O=e.md.block.ruler.getRules("blockquote"),g=e.parentType,e.parentType="blockquote",C=!1,h=t+1;h<n&&(e.sCount[h]<e.blkIndent&&(C=!0),!((E=e.bMarks[h]+e.tShift[h])>=(x=e.eMarks[h])));h++)if(62!==e.src.charCodeAt(E++)||C){if(u)break;for(k=!1,s=0,l=O.length;s<l;s++)if(O[s](e,h,n,!0)){k=!0;break}if(k){e.lineMax=h,0!==e.blkIndent&&(f.push(e.bMarks[h]),m.push(e.bsCount[h]),y.push(e.tShift[h]),v.push(e.sCount[h]),e.sCount[h]-=e.blkIndent);break}f.push(e.bMarks[h]),m.push(e.bsCount[h]),y.push(e.tShift[h]),v.push(e.sCount[h]),e.sCount[h]=-1}else{for(c=d=e.sCount[h]+E-(e.bMarks[h]+e.tShift[h]),32===e.src.charCodeAt(E)?(E++,c++,d++,i=!1,_=!0):9===e.src.charCodeAt(E)?(_=!0,(e.bsCount[h]+d)%4==3?(E++,c++,d++,i=!1):i=!0):_=!1,f.push(e.bMarks[h]),e.bMarks[h]=E;E<x&&(a=e.src.charCodeAt(E),r(a));)9===a?d+=4-(d+e.bsCount[h]+(i?1:0))%4:d++,E++;u=E>=x,m.push(e.bsCount[h]),e.bsCount[h]=e.sCount[h]+1+(_?1:0),v.push(e.sCount[h]),e.sCount[h]=d-c,y.push(e.tShift[h]),e.tShift[h]=E-e.bMarks[h]}for(b=e.blkIndent,e.blkIndent=0,(j=e.push("blockquote_open","blockquote",1)).markup=">",j.map=p=[t,0],e.md.block.tokenize(e,t,h),(j=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=w,e.parentType=g,p[1]=e.line,s=0;s<y.length;s++)e.bMarks[s+t]=f[s],e.tShift[s+t]=y[s],e.sCount[s+t]=v[s],e.bsCount[s+t]=m[s];return e.blkIndent=b,!0}},function(e,t,n){"use strict";var r=n(13).isSpace;e.exports=function(e,t,n,o){var i,a,s,c,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(i=e.src.charCodeAt(l++))&&45!==i&&95!==i)return!1;for(a=1;l<u;){if((s=e.src.charCodeAt(l++))!==i&&!r(s))return!1;s===i&&a++}return!(a<3)&&(!!o||(e.line=t+1,(c=e.push("hr","hr",0)).map=[t,e.line],c.markup=Array(a+1).join(String.fromCharCode(i)),!0))}},function(e,t,n){"use strict";var r=n(13).isSpace;function o(e,t){var n,o,i,a;return o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],42!==(n=e.src.charCodeAt(o++))&&45!==n&&43!==n?-1:o<i&&(a=e.src.charCodeAt(o),!r(a))?-1:o}function i(e,t){var n,o=e.bMarks[t]+e.tShift[t],i=o,a=e.eMarks[t];if(i+1>=a)return-1;if((n=e.src.charCodeAt(i++))<48||n>57)return-1;for(;;){if(i>=a)return-1;if(!((n=e.src.charCodeAt(i++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(i-o>=10)return-1}return i<a&&(n=e.src.charCodeAt(i),!r(n))?-1:i}e.exports=function(e,t,n,r){var a,s,c,l,u,p,h,d,f,m,b,g,v,y,_,k,O,j,C,w,E,x,S,A,D,M,T,F,z=!1,P=!0;if(e.sCount[t]-e.blkIndent>=4)return!1;if(r&&"paragraph"===e.parentType&&e.tShift[t]>=e.blkIndent&&(z=!0),(S=i(e,t))>=0){if(h=!0,D=e.bMarks[t]+e.tShift[t],v=Number(e.src.substr(D,S-D-1)),z&&1!==v)return!1}else{if(!((S=o(e,t))>=0))return!1;h=!1}if(z&&e.skipSpaces(S)>=e.eMarks[t])return!1;if(g=e.src.charCodeAt(S-1),r)return!0;for(b=e.tokens.length,h?(F=e.push("ordered_list_open","ol",1),1!==v&&(F.attrs=[["start",v]])):F=e.push("bullet_list_open","ul",1),F.map=m=[t,0],F.markup=String.fromCharCode(g),_=t,A=!1,T=e.md.block.ruler.getRules("list"),C=e.parentType,e.parentType="list";_<n;){for(x=S,y=e.eMarks[_],p=k=e.sCount[_]+S-(e.bMarks[t]+e.tShift[t]);x<y;){if(9===(a=e.src.charCodeAt(x)))k+=4-(k+e.bsCount[_])%4;else{if(32!==a)break;k++}x++}if((u=(s=x)>=y?1:k-p)>4&&(u=1),l=p+u,(F=e.push("list_item_open","li",1)).markup=String.fromCharCode(g),F.map=d=[t,0],O=e.blkIndent,E=e.tight,w=e.tShift[t],j=e.sCount[t],e.blkIndent=l,e.tight=!0,e.tShift[t]=s-e.bMarks[t],e.sCount[t]=k,s>=y&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!A||(P=!1),A=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=O,e.tShift[t]=w,e.sCount[t]=j,e.tight=E,(F=e.push("list_item_close","li",-1)).markup=String.fromCharCode(g),_=t=e.line,d[1]=_,s=e.bMarks[t],_>=n)break;if(e.sCount[_]<e.blkIndent)break;for(M=!1,c=0,f=T.length;c<f;c++)if(T[c](e,_,n,!0)){M=!0;break}if(M)break;if(h){if((S=i(e,_))<0)break}else if((S=o(e,_))<0)break;if(g!==e.src.charCodeAt(S-1))break}return(F=h?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(g),m[1]=_,e.line=_,e.parentType=C,P&&function(e,t){var n,r,o=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===o&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}(e,b),!0}},function(e,t,n){"use strict";var r=n(13).normalizeReference,o=n(13).isSpace;e.exports=function(e,t,n,i){var a,s,c,l,u,p,h,d,f,m,b,g,v,y,_,k,O=0,j=e.bMarks[t]+e.tShift[t],C=e.eMarks[t],w=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(j))return!1;for(;++j<C;)if(93===e.src.charCodeAt(j)&&92!==e.src.charCodeAt(j-1)){if(j+1===C)return!1;if(58!==e.src.charCodeAt(j+1))return!1;break}for(l=e.lineMax,_=e.md.block.ruler.getRules("reference"),m=e.parentType,e.parentType="reference";w<l&&!e.isEmpty(w);w++)if(!(e.sCount[w]-e.blkIndent>3||e.sCount[w]<0)){for(y=!1,p=0,h=_.length;p<h;p++)if(_[p](e,w,l,!0)){y=!0;break}if(y)break}for(C=(v=e.getLines(t,w,e.blkIndent,!1).trim()).length,j=1;j<C;j++){if(91===(a=v.charCodeAt(j)))return!1;if(93===a){f=j;break}10===a?O++:92===a&&++j<C&&10===v.charCodeAt(j)&&O++}if(f<0||58!==v.charCodeAt(f+1))return!1;for(j=f+2;j<C;j++)if(10===(a=v.charCodeAt(j)))O++;else if(!o(a))break;if(!(b=e.md.helpers.parseLinkDestination(v,j,C)).ok)return!1;if(u=e.md.normalizeLink(b.str),!e.md.validateLink(u))return!1;for(s=j=b.pos,c=O+=b.lines,g=j;j<C;j++)if(10===(a=v.charCodeAt(j)))O++;else if(!o(a))break;for(b=e.md.helpers.parseLinkTitle(v,j,C),j<C&&g!==j&&b.ok?(k=b.str,j=b.pos,O+=b.lines):(k="",j=s,O=c);j<C&&(a=v.charCodeAt(j),o(a));)j++;if(j<C&&10!==v.charCodeAt(j)&&k)for(k="",j=s,O=c;j<C&&(a=v.charCodeAt(j),o(a));)j++;return!(j<C&&10!==v.charCodeAt(j))&&(!!(d=r(v.slice(1,f)))&&(!!i||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[d]&&(e.env.references[d]={title:k,href:u}),e.parentType=m,e.line=t+O+1,!0)))}},function(e,t,n){"use strict";var r=n(13).isSpace;e.exports=function(e,t,n,o){var i,a,s,c,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(35!==(i=e.src.charCodeAt(l))||l>=u)return!1;for(a=1,i=e.src.charCodeAt(++l);35===i&&l<u&&a<=6;)a++,i=e.src.charCodeAt(++l);return!(a>6||l<u&&!r(i))&&(!!o||(u=e.skipSpacesBack(u,l),(s=e.skipCharsBack(u,35,l))>l&&r(e.src.charCodeAt(s-1))&&(u=s),e.line=t+1,(c=e.push("heading_open","h"+String(a),1)).markup="########".slice(0,a),c.map=[t,e.line],(c=e.push("inline","",0)).content=e.src.slice(l,u).trim(),c.map=[t,e.line],c.children=[],(c=e.push("heading_close","h"+String(a),-1)).markup="########".slice(0,a),!0))}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,o,i,a,s,c,l,u,p,h,d=t+1,f=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(h=e.parentType,e.parentType="paragraph";d<n&&!e.isEmpty(d);d++)if(!(e.sCount[d]-e.blkIndent>3)){if(e.sCount[d]>=e.blkIndent&&(c=e.bMarks[d]+e.tShift[d])<(l=e.eMarks[d])&&(45===(p=e.src.charCodeAt(c))||61===p)&&(c=e.skipChars(c,p),(c=e.skipSpaces(c))>=l)){u=61===p?1:2;break}if(!(e.sCount[d]<0)){for(o=!1,i=0,a=f.length;i<a;i++)if(f[i](e,d,n,!0)){o=!0;break}if(o)break}}return!!u&&(r=e.getLines(t,d,e.blkIndent,!1).trim(),e.line=d+1,(s=e.push("heading_open","h"+String(u),1)).markup=String.fromCharCode(p),s.map=[t,e.line],(s=e.push("inline","",0)).content=r,s.map=[t,e.line-1],s.children=[],(s=e.push("heading_close","h"+String(u),-1)).markup=String.fromCharCode(p),e.parentType=h,!0)}},function(e,t,n){"use strict";var r=n(159),o=n(81).HTML_OPEN_CLOSE_TAG_RE,i=[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+r.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(o.source+"\\s*$"),/^$/,!1]];e.exports=function(e,t,n,r){var o,a,s,c,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(l))return!1;for(c=e.src.slice(l,u),o=0;o<i.length&&!i[o][0].test(c);o++);if(o===i.length)return!1;if(r)return i[o][2];if(a=t+1,!i[o][1].test(c))for(;a<n&&!(e.sCount[a]<e.blkIndent);a++)if(l=e.bMarks[a]+e.tShift[a],u=e.eMarks[a],c=e.src.slice(l,u),i[o][1].test(c)){0!==c.length&&a++;break}return e.line=a,(s=e.push("html_block","",0)).map=[t,a],s.content=e.getLines(t,a,e.blkIndent,!0),!0}},function(e,t,n){"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},function(e,t,n){"use strict";e.exports=function(e,t){var n,r,o,i,a,s,c=t+1,l=e.md.block.ruler.getRules("paragraph"),u=e.lineMax;for(s=e.parentType,e.parentType="paragraph";c<u&&!e.isEmpty(c);c++)if(!(e.sCount[c]-e.blkIndent>3||e.sCount[c]<0)){for(r=!1,o=0,i=l.length;o<i;o++)if(l[o](e,c,u,!0)){r=!0;break}if(r)break}return n=e.getLines(t,c,e.blkIndent,!1).trim(),e.line=c,(a=e.push("paragraph_open","p",1)).map=[t,e.line],(a=e.push("inline","",0)).content=n,a.map=[t,e.line],a.children=[],a=e.push("paragraph_close","p",-1),e.parentType=s,!0}},function(e,t,n){"use strict";var r=n(60),o=n(13).isSpace;function i(e,t,n,r){var i,a,s,c,l,u,p,h;for(this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.parentType="root",this.level=0,this.result="",h=!1,s=c=u=p=0,l=(a=this.src).length;c<l;c++){if(i=a.charCodeAt(c),!h){if(o(i)){u++,9===i?p+=4-p%4:p++;continue}h=!0}10!==i&&c!==l-1||(10!==i&&c++,this.bMarks.push(s),this.eMarks.push(c),this.tShift.push(u),this.sCount.push(p),this.bsCount.push(0),h=!1,u=0,p=0,s=c+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}i.prototype.push=function(e,t,n){var o=new r(e,t,n);return o.block=!0,n<0&&this.level--,o.level=this.level,n>0&&this.level++,this.tokens.push(o),o},i.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},i.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},i.prototype.skipSpaces=function(e){for(var t,n=this.src.length;e<n&&(t=this.src.charCodeAt(e),o(t));e++);return e},i.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!o(this.src.charCodeAt(--e)))return e+1;return e},i.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},i.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},i.prototype.getLines=function(e,t,n,r){var i,a,s,c,l,u,p,h=e;if(e>=t)return"";for(u=new Array(t-e),i=0;h<t;h++,i++){for(a=0,p=c=this.bMarks[h],l=h+1<t||r?this.eMarks[h]+1:this.eMarks[h];c<l&&a<n;){if(s=this.src.charCodeAt(c),o(s))9===s?a+=4-(a+this.bsCount[h])%4:a++;else{if(!(c-p<this.tShift[h]))break;a++}c++}u[i]=a>n?new Array(a-n+1).join(" ")+this.src.slice(c,l):this.src.slice(c,l)}return u.join("")},i.prototype.Token=r,e.exports=i},function(e,t,n){"use strict";var r=n(59),o=[["text",n(163)],["newline",n(164)],["escape",n(165)],["backticks",n(166)],["strikethrough",n(82).tokenize],["emphasis",n(83).tokenize],["link",n(167)],["image",n(168)],["autolink",n(169)],["html_inline",n(170)],["entity",n(171)]],i=[["balance_pairs",n(172)],["strikethrough",n(82).postProcess],["emphasis",n(83).postProcess],["text_collapse",n(173)]];function a(){var e;for(this.ruler=new r,e=0;e<o.length;e++)this.ruler.push(o[e][0],o[e][1]);for(this.ruler2=new r,e=0;e<i.length;e++)this.ruler2.push(i[e][0],i[e][1])}a.prototype.skipToken=function(e){var t,n,r=e.pos,o=this.ruler.getRules(""),i=o.length,a=e.md.options.maxNesting,s=e.cache;if(void 0===s[r]){if(e.level<a)for(n=0;n<i&&(e.level++,t=o[n](e,!0),e.level--,!t);n++);else e.pos=e.posMax;t||e.pos++,s[r]=e.pos}else e.pos=s[r]},a.prototype.tokenize=function(e){for(var t,n,r=this.ruler.getRules(""),o=r.length,i=e.posMax,a=e.md.options.maxNesting;e.pos<i;){if(e.level<a)for(n=0;n<o&&!(t=r[n](e,!1));n++);if(t){if(e.pos>=i)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},a.prototype.parse=function(e,t,n,r){var o,i,a,s=new this.State(e,t,n,r);for(this.tokenize(s),a=(i=this.ruler2.getRules("")).length,o=0;o<a;o++)i[o](s)},a.prototype.State=n(174),e.exports=a},function(e,t,n){"use strict";function r(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}e.exports=function(e,t){for(var n=e.pos;n<e.posMax&&!r(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}},function(e,t,n){"use strict";var r=n(13).isSpace;e.exports=function(e,t){var n,o,i=e.pos;if(10!==e.src.charCodeAt(i))return!1;for(n=e.pending.length-1,o=e.posMax,t||(n>=0&&32===e.pending.charCodeAt(n)?n>=1&&32===e.pending.charCodeAt(n-1)?(e.pending=e.pending.replace(/ +$/,""),e.push("hardbreak","br",0)):(e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0)):e.push("softbreak","br",0)),i++;i<o&&r(e.src.charCodeAt(i));)i++;return e.pos=i,!0}},function(e,t,n){"use strict";for(var r=n(13).isSpace,o=[],i=0;i<256;i++)o.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){o[e.charCodeAt(0)]=1}),e.exports=function(e,t){var n,i=e.pos,a=e.posMax;if(92!==e.src.charCodeAt(i))return!1;if(++i<a){if((n=e.src.charCodeAt(i))<256&&0!==o[n])return t||(e.pending+=e.src[i]),e.pos+=2,!0;if(10===n){for(t||e.push("hardbreak","br",0),i++;i<a&&(n=e.src.charCodeAt(i),r(n));)i++;return e.pos=i,!0}}return t||(e.pending+="\\"),e.pos++,!0}},function(e,t,n){"use strict";e.exports=function(e,t){var n,r,o,i,a,s,c=e.pos;if(96!==e.src.charCodeAt(c))return!1;for(n=c,c++,r=e.posMax;c<r&&96===e.src.charCodeAt(c);)c++;for(o=e.src.slice(n,c),i=a=c;-1!==(i=e.src.indexOf("`",a));){for(a=i+1;a<r&&96===e.src.charCodeAt(a);)a++;if(a-i===o.length)return t||((s=e.push("code_inline","code",0)).markup=o,s.content=e.src.slice(c,i).replace(/[ \n]+/g," ").trim()),e.pos=a,!0}return t||(e.pending+=o),e.pos+=o.length,!0}},function(e,t,n){"use strict";var r=n(13).normalizeReference,o=n(13).isSpace;e.exports=function(e,t){var n,i,a,s,c,l,u,p,h,d="",f=e.pos,m=e.posMax,b=e.pos,g=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(c=e.pos+1,(s=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((l=s+1)<m&&40===e.src.charCodeAt(l)){for(g=!1,l++;l<m&&(i=e.src.charCodeAt(l),o(i)||10===i);l++);if(l>=m)return!1;for(b=l,(u=e.md.helpers.parseLinkDestination(e.src,l,e.posMax)).ok&&(d=e.md.normalizeLink(u.str),e.md.validateLink(d)?l=u.pos:d=""),b=l;l<m&&(i=e.src.charCodeAt(l),o(i)||10===i);l++);if(u=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<m&&b!==l&&u.ok)for(h=u.str,l=u.pos;l<m&&(i=e.src.charCodeAt(l),o(i)||10===i);l++);else h="";(l>=m||41!==e.src.charCodeAt(l))&&(g=!0),l++}if(g){if(void 0===e.env.references)return!1;if(l<m&&91===e.src.charCodeAt(l)?(b=l+1,(l=e.md.helpers.parseLinkLabel(e,l))>=0?a=e.src.slice(b,l++):l=s+1):l=s+1,a||(a=e.src.slice(c,s)),!(p=e.env.references[r(a)]))return e.pos=f,!1;d=p.href,h=p.title}return t||(e.pos=c,e.posMax=s,e.push("link_open","a",1).attrs=n=[["href",d]],h&&n.push(["title",h]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=l,e.posMax=m,!0}},function(e,t,n){"use strict";var r=n(13).normalizeReference,o=n(13).isSpace;e.exports=function(e,t){var n,i,a,s,c,l,u,p,h,d,f,m,b,g="",v=e.pos,y=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(l=e.pos+2,(c=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((u=c+1)<y&&40===e.src.charCodeAt(u)){for(u++;u<y&&(i=e.src.charCodeAt(u),o(i)||10===i);u++);if(u>=y)return!1;for(b=u,(h=e.md.helpers.parseLinkDestination(e.src,u,e.posMax)).ok&&(g=e.md.normalizeLink(h.str),e.md.validateLink(g)?u=h.pos:g=""),b=u;u<y&&(i=e.src.charCodeAt(u),o(i)||10===i);u++);if(h=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<y&&b!==u&&h.ok)for(d=h.str,u=h.pos;u<y&&(i=e.src.charCodeAt(u),o(i)||10===i);u++);else d="";if(u>=y||41!==e.src.charCodeAt(u))return e.pos=v,!1;u++}else{if(void 0===e.env.references)return!1;if(u<y&&91===e.src.charCodeAt(u)?(b=u+1,(u=e.md.helpers.parseLinkLabel(e,u))>=0?s=e.src.slice(b,u++):u=c+1):u=c+1,s||(s=e.src.slice(l,c)),!(p=e.env.references[r(s)]))return e.pos=v,!1;g=p.href,d=p.title}return t||(a=e.src.slice(l,c),e.md.inline.parse(a,e.md,e.env,m=[]),(f=e.push("image","img",0)).attrs=n=[["src",g],["alt",""]],f.children=m,f.content=a,d&&n.push(["title",d])),e.pos=u,e.posMax=y,!0}},function(e,t,n){"use strict";var r=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,o=/^<([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)>/;e.exports=function(e,t){var n,i,a,s,c,l,u=e.pos;return 60===e.src.charCodeAt(u)&&(!((n=e.src.slice(u)).indexOf(">")<0)&&(o.test(n)?(s=(i=n.match(o))[0].slice(1,-1),c=e.md.normalizeLink(s),!!e.md.validateLink(c)&&(t||((l=e.push("link_open","a",1)).attrs=[["href",c]],l.markup="autolink",l.info="auto",(l=e.push("text","",0)).content=e.md.normalizeLinkText(s),(l=e.push("link_close","a",-1)).markup="autolink",l.info="auto"),e.pos+=i[0].length,!0)):!!r.test(n)&&(s=(a=n.match(r))[0].slice(1,-1),c=e.md.normalizeLink("mailto:"+s),!!e.md.validateLink(c)&&(t||((l=e.push("link_open","a",1)).attrs=[["href",c]],l.markup="autolink",l.info="auto",(l=e.push("text","",0)).content=e.md.normalizeLinkText(s),(l=e.push("link_close","a",-1)).markup="autolink",l.info="auto"),e.pos+=a[0].length,!0))))}},function(e,t,n){"use strict";var r=n(81).HTML_TAG_RE;e.exports=function(e,t){var n,o,i,a=e.pos;return!!e.md.options.html&&(i=e.posMax,!(60!==e.src.charCodeAt(a)||a+2>=i)&&(!(33!==(n=e.src.charCodeAt(a+1))&&63!==n&&47!==n&&!function(e){var t=32|e;return t>=97&&t<=122}(n))&&(!!(o=e.src.slice(a).match(r))&&(t||(e.push("html_inline","",0).content=e.src.slice(a,a+o[0].length)),e.pos+=o[0].length,!0))))}},function(e,t,n){"use strict";var r=n(76),o=n(13).has,i=n(13).isValidEntityCode,a=n(13).fromCodePoint,s=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,c=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(e,t){var n,l,u=e.pos,p=e.posMax;if(38!==e.src.charCodeAt(u))return!1;if(u+1<p)if(35===e.src.charCodeAt(u+1)){if(l=e.src.slice(u).match(s))return t||(n="x"===l[1][0].toLowerCase()?parseInt(l[1].slice(1),16):parseInt(l[1],10),e.pending+=i(n)?a(n):a(65533)),e.pos+=l[0].length,!0}else if((l=e.src.slice(u).match(c))&&o(r,l[1]))return t||(e.pending+=r[l[1]]),e.pos+=l[0].length,!0;return t||(e.pending+="&"),e.pos++,!0}},function(e,t,n){"use strict";e.exports=function(e){var t,n,r,o,i=e.delimiters,a=e.delimiters.length;for(t=0;t<a;t++)if((r=i[t]).close)for(n=t-r.jump-1;n>=0;){if((o=i[n]).open&&o.marker===r.marker&&o.end<0&&o.level===r.level)if(!((o.close||r.open)&&void 0!==o.length&&void 0!==r.length&&(o.length+r.length)%3==0)){r.jump=t-n,r.open=!1,o.end=t,o.jump=0;break}n-=o.jump+1}}},function(e,t,n){"use strict";e.exports=function(e){var t,n,r=0,o=e.tokens,i=e.tokens.length;for(t=n=0;t<i;t++)r+=o[t].nesting,o[t].level=r,"text"===o[t].type&&t+1<i&&"text"===o[t+1].type?o[t+1].content=o[t].content+o[t+1].content:(t!==n&&(o[n]=o[t]),n++);t!==n&&(o.length=n)}},function(e,t,n){"use strict";var r=n(60),o=n(13).isWhiteSpace,i=n(13).isPunctChar,a=n(13).isMdAsciiPunct;function s(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[]}s.prototype.pushPending=function(){var e=new r("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},s.prototype.push=function(e,t,n){this.pending&&this.pushPending();var o=new r(e,t,n);return n<0&&this.level--,o.level=this.level,n>0&&this.level++,this.pendingLevel=this.level,this.tokens.push(o),o},s.prototype.scanDelims=function(e,t){var n,r,s,c,l,u,p,h,d,f=e,m=!0,b=!0,g=this.posMax,v=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;f<g&&this.src.charCodeAt(f)===v;)f++;return s=f-e,r=f<g?this.src.charCodeAt(f):32,p=a(n)||i(String.fromCharCode(n)),d=a(r)||i(String.fromCharCode(r)),u=o(n),(h=o(r))?m=!1:d&&(u||p||(m=!1)),u?b=!1:p&&(h||d||(b=!1)),t?(c=m,l=b):(c=m&&(!b||p),l=b&&(!m||d)),{can_open:c,can_close:l,length:s}},s.prototype.Token=r,e.exports=s},function(e,t,n){"use strict";function r(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function o(e){return Object.prototype.toString.call(e)}function i(e){return"[object Function]"===o(e)}function a(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var s={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};var c={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]?0:t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},l="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",u="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function p(e){var t=e.re=n(176)(e.__opts__),r=e.__tlds__.slice();function s(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push(l),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(s(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(s(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(s(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(s(t.tpl_host_fuzzy_test),"i");var c=[];function u(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){var n=e.__schemas__[t];if(null!==n){var r,a={validate:null,link:null};if(e.__compiled__[t]=a,"[object Object]"===o(n))return!function(e){return"[object RegExp]"===o(e)}(n.validate)?i(n.validate)?a.validate=n.validate:u(t,n):a.validate=(r=n.validate,function(e,t){var n=e.slice(t);return r.test(n)?n.match(r)[0].length:0}),void(i(n.normalize)?a.normalize=n.normalize:n.normalize?u(t,n):a.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===o(e)}(n)?u(t,n):c.push(t)}}),c.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var p=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(a).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+p+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+p+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function h(e,t){var n=e.__index__,r=e.__last_index__,o=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=o,this.text=o,this.url=o}function d(e,t){var n=new h(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function f(e,t){if(!(this instanceof f))return new f(e,t);var n;t||(n=e,Object.keys(n||{}).reduce(function(e,t){return e||s.hasOwnProperty(t)},!1)&&(t=e,e={})),this.__opts__=r({},s,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},c,e),this.__compiled__={},this.__tlds__=u,this.__tlds_replaced__=!1,this.re={},p(this)}f.prototype.add=function(e,t){return this.__schemas__[e]=t,p(this),this},f.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},f.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,o,i,a,s,c;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(o=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||c<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(i=n.index+n[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(i=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=a)),this.__index__>=0},f.prototype.pretest=function(e){return this.re.pretest.test(e)},f.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},f.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(d(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(d(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},f.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),p(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,p(this),this)},f.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},f.prototype.onCompile=function(){},e.exports=f},function(e,t,n){"use strict";e.exports=function(e){var t={};t.src_Any=n(78).source,t.src_Cc=n(79).source,t.src_Z=n(80).source,t.src_P=n(58).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,3}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]+',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|[><|]|\\(|"+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},function(e,t,n){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}},function(e,t,n){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}},function(e,t,n){"use strict";e.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}},function(e,t,n){},,function(e,t,n){var r=n(183),o=n(220);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},function(e,t,n){var r=n(61),o=n(184),i=n(189),a=n(87);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},function(e,t,n){var r=n(61),o=n(62),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},function(e,t){var n="object"==typeof window&&window&&window.Object===Object&&window;e.exports=n},function(e,t,n){var r=n(63),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(190),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)}),t});e.exports=a},function(e,t,n){var r=n(191),o=500;e.exports=function(e){var t=r(e,function(e){return n.size===o&&n.clear(),e}),n=t.cache;return t}},function(e,t,n){var r=n(192),o="Expected a function";function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(o);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},function(e,t,n){var r=n(193),o=n(214),i=n(216),a=n(217),s=n(218);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(194),o=n(206),i=n(213);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(e,t,n){var r=n(195),o=n(202),i=n(203),a=n(204),s=n(205);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(40);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t,n){var r=n(197),o=n(198),i=n(86),a=n(200),s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,p=l.hasOwnProperty,h=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?h:s).test(a(e))}},function(e,t,n){var r=n(84),o=n(86),i="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",c="[object Proxy]";e.exports=function(e){if(!o(e))return!1;var t=r(e);return t==a||t==s||t==i||t==c}},function(e,t,n){var r,o=n(199),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},function(e,t,n){var r=n(64)["__core-js_shared__"];e.exports=r},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(40),o="__lodash_hash_undefined__",i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return n===o?void 0:n}return i.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(40),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},function(e,t,n){var r=n(40),o="__lodash_hash_undefined__";e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?o:t,this}},function(e,t,n){var r=n(207),o=n(208),i=n(210),a=n(211),s=n(212);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(41),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(41);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(41);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(41);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(85)(n(64),"Map");e.exports=r},function(e,t,n){var r=n(42);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(42);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(42);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(42);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},function(e,t,n){var r=n(62),o=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}},function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,function(e,t,n){var r=n(230);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},function(e,t){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},function(e,t,n){var r=n(232);e.exports=function(e,t){for(var n=e.length;n--&&r(t,e[n],0)>-1;);return n}},function(e,t,n){var r=n(233),o=n(234),i=n(235);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},function(e,t){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},function(e,t,n){var r=n(237),o=n(238),i=n(239);e.exports=function(e){return o(e)?i(e):r(e)}},function(e,t){e.exports=function(e){return e.split("")}},function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+r+"|"+o+")"+"?",l="[\\ufe0e\\ufe0f]?"+c+("(?:\\u200d(?:"+[i,a,s].join("|")+")[\\ufe0e\\ufe0f]?"+c+")*"),u="(?:"+[i+r+"?",r,a,s,n].join("|")+")",p=RegExp(o+"(?="+o+")|"+u+l,"g");e.exports=function(e){return e.match(p)||[]}},function(e,t,n){},,function(e,t){!function(){"use strict";var t=[],n=3988292384;function r(e){var t,r,o,i,a=-1;for(t=0,o=e.length;t<o;t+=1){for(i=255&(a^e[t]),r=0;r<8;r+=1)1==(1&i)?i=i>>>1^n:i>>>=1;a=a>>>8^i}return-1^a}function o(e,n){var r,i,a;if(void 0!==o.crc&&n&&e||(o.crc=-1,e)){for(r=o.crc,i=0,a=e.length;i<a;i+=1)r=r>>>8^t[255&(r^e[i])];return o.crc=r,-1^r}}!function(){var e,r,o;for(r=0;r<256;r+=1){for(e=r,o=0;o<8;o+=1)1&e?e=n^e>>>1:e>>>=1;t[r]=e>>>0}}(),e.exports=function(e,t){var n;e="string"==typeof e?(n=e,Array.prototype.map.call(n,function(e){return e.charCodeAt(0)})):e;return((t?r(e):o(e))>>>0).toString(16)},e.exports.direct=r,e.exports.table=o}()},function(e,t,n){"use strict";var r=256,o=[],i=window,a=Math.pow(r,6),s=Math.pow(2,52),c=2*s,l=r-1,u=Math.random;function p(e){var t,n=e.length,o=this,i=0,a=o.i=o.j=0,s=o.S=[];for(n||(e=[n++]);i<r;)s[i]=i++;for(i=0;i<r;i++)s[i]=s[a=l&a+e[i%n]+(t=s[i])],s[a]=t;(o.g=function(e){for(var t,n=0,i=o.i,a=o.j,s=o.S;e--;)t=s[i=l&i+1],n=n*r+s[l&(s[i]=s[a=l&a+t])+(s[a]=t)];return o.i=i,o.j=a,n})(r)}function h(e,t){for(var n,r=e+"",o=0;o<r.length;)t[l&o]=l&(n^=19*t[l&o])+r.charCodeAt(o++);return d(t)}function d(e){return String.fromCharCode.apply(0,e)}e.exports=function(t,n){if(n&&!0===n.global)return n.global=!1,Math.random=e.exports(t,n),n.global=!0,Math.random;var l=[],u=(h(function e(t,n){var r,o=[],i=(typeof t)[0];if(n&&"o"==i)for(r in t)try{o.push(e(t[r],n-1))}catch(e){}return o.length?o:"s"==i?t:t+"\0"}(n&&n.entropy||!1?[t,d(o)]:0 in arguments?t:function(e){try{return i.crypto.getRandomValues(e=new Uint8Array(r)),d(e)}catch(e){return[+new Date,i,i.navigator&&i.navigator.plugins,i.screen,d(o)]}}(),3),l),new p(l));return h(d(u.S),o),function(){for(var e=u.g(6),t=a,n=0;e<s;)e=(e+n)*r,t*=r,n=u.g(1);for(;e>=c;)e/=2,t/=2,n>>>=1;return(e+n)/t}},e.exports.resetGlobal=function(){Math.random=u},h(Math.random(),o)},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)}t.log=function(){var e;return"object"===("undefined"==typeof console?"undefined":r(console))&&console.log&&(e=console).log.apply(e,arguments)},t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(r++,"%c"===e&&(o=r))}),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=n(245)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},function(e,t,n){"use strict";e.exports=function(e){function t(e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return r.colors[Math.abs(t)%r.colors.length]}function r(e){var n;function a(){if(a.enabled){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var i=a,s=Number(new Date),c=s-(n||s);i.diff=c,i.prev=n,i.curr=s,n=s,t[0]=r.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");var l=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,function(e,n){if("%%"===e)return e;l++;var o=r.formatters[n];if("function"==typeof o){var a=t[l];e=o.call(i,a),t.splice(l,1),l--}return e}),r.formatArgs.call(i,t),(i.log||r.log).apply(i,t)}}return a.namespace=e,a.enabled=r.enabled(e),a.useColors=r.useColors(),a.color=t(e),a.destroy=o,a.extend=i,"function"==typeof r.init&&r.init(a),r.instances.push(a),a}function o(){var e=r.instances.indexOf(this);return-1!==e&&(r.instances.splice(e,1),!0)}function i(e,t){return r(this.namespace+(void 0===t?":":t)+e)}return r.debug=r,r.default=r,r.coerce=function(e){return e instanceof Error?e.stack||e.message:e},r.disable=function(){r.enable("")},r.enable=function(e){var t;r.save(e),r.names=[],r.skips=[];var n=("string"==typeof e?e:"").split(/[\s,]+/),o=n.length;for(t=0;t<o;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?r.skips.push(new RegExp("^"+e.substr(1)+"$")):r.names.push(new RegExp("^"+e+"$")));for(t=0;t<r.instances.length;t++){var i=r.instances[t];i.enabled=r.enabled(i.namespace)}},r.enabled=function(e){if("*"===e[e.length-1])return!0;var t,n;for(t=0,n=r.skips.length;t<n;t++)if(r.skips[t].test(e))return!1;for(t=0,n=r.names.length;t<n;t++)if(r.names[t].test(e))return!0;return!1},r.humanize=n(246),Object.keys(e).forEach(function(t){r[t]=e[t]}),r.instances=[],r.names=[],r.skips=[],r.formatters={},r.selectColor=t,r.enable(r.load()),r}},function(e,t){var n=1e3,r=60*n,o=60*r,i=24*o,a=7*i,s=365.25*i;function c(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,t){t=t||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^((?:\d+)?\-?\d?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var c=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*a;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*o;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===l&&!1===isNaN(e))return t.long?function(e){var t=Math.abs(e);if(t>=i)return c(e,t,i,"day");if(t>=o)return c(e,t,o,"hour");if(t>=r)return c(e,t,r,"minute");if(t>=n)return c(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=i)return Math.round(e/i)+"d";if(t>=o)return Math.round(e/o)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){},,function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"setConnectionTestResults",function(){return u}),n.d(r,"refreshConnectionTestResults",function(){return p}),n.d(r,"fetchFromAPI",function(){return h});var o={};n.r(o),n.d(o,"getFailedConnections",function(){return d}),n.d(o,"getMustReauthConnections",function(){return f});var i=n(0),a=n(3),s=n(36),c=n(11),l=(n(180),n(17));function u(e){return{type:"SET_CONNECTION_TEST_RESULTS",results:e}}function p(){return{type:"REFRESH_CONNECTION_TEST_RESULTS"}}function h(e){return{type:"FETCH_FROM_API",path:e}}function d(e){return e.filter(function(e){return!1===e.test_success})}function f(e){return e.filter(function(e){return"must_reauth"===e.test_success}).map(function(e){return e.service_name})}var m=n(15),b=n.n(m),g=n(91),v=n.n(g),y=n(5),_=n(47),k=n.n(_),O=n(29),j=n.n(O);function C(){return(C=k()(regeneratorRuntime.mark(function e(t,n){var r,o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.dispatch,e.prev=1,e.next=4,j()({path:"/wpcom/v2/publicize/connection-test-results"});case 4:return o=e.sent,e.abrupt("return",r(u(o)));case 8:e.prev=8,e.t0=e.catch(1);case 10:case"end":return e.stop()}},e,this,[[1,8]])}))).apply(this,arguments)}var w={REFRESH_CONNECTION_TEST_RESULTS:function(e,t){return C.apply(this,arguments)}};var E,x,S,A,D,M={FETCH_FROM_API:function(e){var t=e.path;return j()({path:t})}},T=Object(l.registerStore)("jetpack/publicize",{actions:r,controls:M,reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_CONNECTION_TEST_RESULTS":return t.results;case"REFRESH_CONNECTION_TEST_RESULTS":return[]}return e},selectors:o});E=T,S=[v()(w)],A=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},D={getState:E.getState,dispatch:function(){return A.apply(void 0,arguments)}},x=S.map(function(e){return e(D)}),A=y.flowRight.apply(void 0,b()(x))(E.dispatch),E.dispatch=A;var F=n(33),z=n(19),P=n(7),N=n.n(P),I=n(6),R=n.n(I),L=n(8),q=n.n(L),B=n(9),V=n.n(B),U=n(10),H=n.n(U),$=n(2),G=n.n($),Z=n(4),K=n.n(Z),W=n(1),J=function(e){function t(){var e,n;N()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=q()(this,(e=V()(t)).call.apply(e,[this].concat(o))),K()(G()(G()(n)),"refreshConnectionClick",function(e){var t=e.target,r=t.href,o=t.title;e.preventDefault();var i=window.open(r,o,""),a=window.setInterval(function(){!1!==i.closed&&(window.clearInterval(a),n.props.refreshConnections())},500)}),n}return H()(t,e),R()(t,[{key:"componentDidMount",value:function(){this.props.refreshConnections()}},{key:"renderRefreshableConnections",value:function(){var e=this,t=this.props.failedConnections.filter(function(e){return e.can_refresh});return t.length?Object(i.createElement)(a.Notice,{className:"jetpack-publicize-notice",isDismissible:!1,status:"error"},Object(i.createElement)("p",null,Object(W.a)("Before you hit Publish, please refresh the following connection(s) to make sure we can Publicize your post:")),t.map(function(t){return Object(i.createElement)(a.Button,{href:t.refresh_url,isSmall:!0,key:t.id,onClick:e.refreshConnectionClick,title:t.refresh_text},t.refresh_text)})):null}},{key:"renderNonRefreshableConnections",value:function(){var e=this.props.failedConnections.filter(function(e){return!e.can_refresh});return e.length?e.map(function(e){return Object(i.createElement)(a.Notice,{className:"jetpack-publicize-notice",isDismissible:!1,status:"error"},Object(i.createElement)("p",null,e.test_message))}):null}},{key:"render",value:function(){return Object(i.createElement)(i.Fragment,null,this.renderRefreshableConnections(),this.renderNonRefreshableConnections())}}]),t}(i.Component),Y=Object(z.compose)([Object(l.withSelect)(function(e){return{failedConnections:e("jetpack/publicize").getFailedConnections()}}),Object(l.withDispatch)(function(e){return{refreshConnections:e("jetpack/publicize").refreshConnectionTestResults}})])(J),X=n(20),Q=n.n(X),ee=n(92),te=n.n(ee),ne=n(12),re=n.n(ne),oe=n(14),ie=n(27),ae=n.n(ie),se=Object(i.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(a.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(i.createElement)(a.G,null,Object(i.createElement)(a.Path,{d:"M20.007 3H3.993C3.445 3 3 3.445 3 3.993v16.013c0 .55.445.994.993.994h8.62v-6.97H10.27V11.31h2.346V9.31c0-2.325 1.42-3.59 3.494-3.59.993 0 1.847.073 2.096.106v2.43h-1.438c-1.128 0-1.346.537-1.346 1.324v1.734h2.69l-.35 2.717h-2.34V21h4.587c.548 0 .993-.445.993-.993V3.993c0-.548-.445-.993-.993-.993z"}))),ce=Object(i.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(a.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(i.createElement)(a.G,null,Object(i.createElement)(a.Path,{d:"M22.23 5.924c-.736.326-1.527.547-2.357.646.847-.508 1.498-1.312 1.804-2.27-.793.47-1.67.812-2.606.996C18.325 4.498 17.258 4 16.078 4c-2.266 0-4.103 1.837-4.103 4.103 0 .322.036.635.106.935-3.41-.17-6.433-1.804-8.457-4.287-.353.607-.556 1.312-.556 2.064 0 1.424.724 2.68 1.825 3.415-.673-.022-1.305-.207-1.86-.514v.052c0 1.988 1.415 3.647 3.293 4.023-.344.095-.707.145-1.08.145-.265 0-.522-.026-.773-.074.522 1.63 2.038 2.817 3.833 2.85-1.404 1.1-3.174 1.757-5.096 1.757-.332 0-.66-.02-.98-.057 1.816 1.164 3.973 1.843 6.29 1.843 7.547 0 11.675-6.252 11.675-11.675 0-.178-.004-.355-.012-.53.802-.578 1.497-1.3 2.047-2.124z"}))),le=Object(i.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(a.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(i.createElement)(a.G,null,Object(i.createElement)(a.Path,{d:"M19.7 3H4.3C3.582 3 3 3.582 3 4.3v15.4c0 .718.582 1.3 1.3 1.3h15.4c.718 0 1.3-.582 1.3-1.3V4.3c0-.718-.582-1.3-1.3-1.3zM8.34 18.338H5.666v-8.59H8.34v8.59zM7.003 8.574c-.857 0-1.55-.694-1.55-1.548 0-.855.692-1.548 1.55-1.548.854 0 1.547.694 1.547 1.548 0 .855-.692 1.548-1.546 1.548zm11.335 9.764h-2.67V14.16c0-.995-.017-2.277-1.387-2.277-1.39 0-1.6 1.086-1.6 2.206v4.248h-2.668v-8.59h2.56v1.174h.036c.357-.675 1.228-1.387 2.527-1.387 2.703 0 3.203 1.78 3.203 4.092v4.71z"}))),ue=Object(i.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(a.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(i.createElement)(a.G,null,Object(i.createElement)(a.Path,{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm-5.57 14.265c-2.445.042-3.37-1.742-3.37-2.998V10.6H8.922V9.15c1.703-.615 2.113-2.15 2.21-3.026.006-.06.053-.084.08-.084h1.645V8.9h2.246v1.7H12.85v3.495c.008.476.182 1.13 1.08 1.107.3-.008.698-.094.907-.194l.54 1.6c-.205.297-1.12.642-1.946.657z"}))),pe=Object(i.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(i.createElement)(a.Rect,{x:"0",fill:"none",width:"24",height:"24"}),Object(i.createElement)(a.G,null,Object(i.createElement)(a.Path,{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm-1.92 14.05c-2.235 0-4.05-1.814-4.05-4.05s1.815-4.05 4.05-4.05c1.095 0 2.01.4 2.71 1.057l-1.15 1.118c-.292-.275-.802-.6-1.56-.6-1.34 0-2.433 1.115-2.433 2.48s1.094 2.48 2.434 2.48c1.552 0 2.123-1.074 2.228-1.71h-2.232v-1.51h3.79c.058.255.102.494.102.83 0 2.312-1.55 3.956-3.887 3.956zm8.92-3.3h-1.25V14h-1.5v-1.25H15v-1.5h1.25V10h1.5v1.25H19v1.5z"}))),he=function(e){var t=e.serviceName,n={className:"jetpack-publicize-gutenberg-social-icon is-".concat(t),size:24};switch(t){case"facebook":return Object(i.createElement)(a.Icon,ae()({icon:se},n));case"twitter":return Object(i.createElement)(a.Icon,ae()({icon:ce},n));case"linkedin":return Object(i.createElement)(a.Icon,ae()({icon:le},n));case"tumblr":return Object(i.createElement)(a.Icon,ae()({icon:ue},n));case"google-plus":return Object(i.createElement)(a.Icon,ae()({icon:pe},n))}return null},de=n(34),fe=function(e){function t(){var e,n;N()(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=q()(this,(e=V()(t)).call.apply(e,[this].concat(o))),K()(G()(G()(n)),"state",{showGooglePlusNotice:!0}),K()(G()(G()(n)),"onRemoveGooglePlusNotice",function(){n.setState({showGooglePlusNotice:!1})}),K()(G()(G()(n)),"maybeDisplayGooglePlusNotice",function(e){return"google-plus"===e&&n.state.showGooglePlusNotice&&Object(i.createElement)(a.Notice,{status:"error",onRemove:n.onRemoveGooglePlusNotice},Object(W.a)("Google+ will shut down in April 2019. You can keep posting with your existing Google+ connection through March."),Object(i.createElement)(a.ExternalLink,{target:"_blank",href:"https://www.blog.google/technology/safety-security/expediting-changes-google-plus/"},Object(W.a)(" Learn more"),"."))}),K()(G()(G()(n)),"maybeDisplayLinkedInNotice",function(){return n.connectionNeedsReauth()&&Object(i.createElement)(a.Notice,{className:"jetpack-publicize-notice",isDismissible:!1,status:"error"},Object(i.createElement)("p",null,Object(W.a)("Your LinkedIn connection needs to be reauthenticated to continue working – head to Sharing to take care of it.")),Object(i.createElement)(a.ExternalLink,{href:"https://wordpress.com/sharing/".concat(Object(de.default)())},Object(W.a)("Go to Sharing settings")))}),K()(G()(G()(n)),"connectionNeedsReauth",function(){return Object(y.includes)(n.props.mustReauthConnections,n.props.name)}),K()(G()(G()(n)),"onConnectionChange",function(){var e=n.props.id;n.props.toggleConnection(e)}),n}return H()(t,e),R()(t,[{key:"connectionIsFailing",value:function(){var e=this.props,t=e.failedConnections,n=e.name;return t.some(function(e){return e.service_name===n})}},{key:"render",value:function(){var e=this.props,t=e.disabled,n=e.enabled,r=e.id,o=e.label,s=e.name,c="connection-"+s+"-"+r,l=s.replace("_","-"),u=Object(i.createElement)(a.FormToggle,{id:c,className:"jetpack-publicize-connection-toggle",checked:n,onChange:this.onConnectionChange});return(t||this.connectionIsFailing()||this.connectionNeedsReauth())&&(u=Object(i.createElement)(a.Disabled,null,u)),Object(i.createElement)("li",null,this.maybeDisplayGooglePlusNotice(l),this.maybeDisplayLinkedInNotice(),Object(i.createElement)("div",{className:"publicize-jetpack-connection-container"},Object(i.createElement)("label",{htmlFor:c,className:"jetpack-publicize-connection-label"},Object(i.createElement)(he,{serviceName:l}),Object(i.createElement)("span",{className:"jetpack-publicize-connection-label-copy"},o)),u))}}]),t}(i.Component),me=Object(l.withSelect)(function(e){return{failedConnections:e("jetpack/publicize").getFailedConnections(),mustReauthConnections:e("jetpack/publicize").getMustReauthConnections()}})(fe),be=function(e){function t(){var e,n;N()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=q()(this,(e=V()(t)).call.apply(e,[this].concat(o))),K()(G()(G()(n)),"settingsClick",function(e){var t=n.getButtonLink(),r=n.props.refreshCallback;e.preventDefault();var o=window.open(t,"",""),i=window.setInterval(function(){!1!==o.closed&&(window.clearInterval(i),r())},500)}),n}return H()(t,e),R()(t,[{key:"getButtonLink",value:function(){var e=Object(de.default)();return e?"https://wordpress.com/sharing/".concat(e):"options-general.php?page=sharing&publicize_popup=true"}},{key:"render",value:function(){var e=re()("jetpack-publicize-add-connection-container",this.props.className);return Object(i.createElement)("div",{className:e},Object(i.createElement)(a.ExternalLink,{onClick:this.settingsClick},Object(W.a)("Connect an account")))}}]),t}(i.Component),ge=function(e){function t(){var e,n;N()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=q()(this,(e=V()(t)).call.apply(e,[this].concat(o))),K()(G()(G()(n)),"state",{hasEditedShareMessage:!1}),K()(G()(G()(n)),"fieldId",Object(y.uniqueId)("jetpack-publicize-message-field-")),K()(G()(G()(n)),"onMessageChange",function(e){var t=n.props.messageChange;n.setState({hasEditedShareMessage:!0}),t(e)}),n}return H()(t,e),R()(t,[{key:"isDisabled",value:function(){return this.props.connections.every(function(e){return!e.toggleable})}},{key:"getShareMessage",value:function(){var e=this.props,t=e.shareMessage,n=e.defaultShareMessage;return this.state.hasEditedShareMessage||""!==t?t:n}},{key:"render",value:function(){var e=this.props,t=e.connections,n=e.toggleConnection,r=e.refreshCallback,o=this.getShareMessage(),a=256-o.length,s=re()("jetpack-publicize-character-count",{"wpas-twitter-length-limit":a<=0});return Object(i.createElement)("div",{id:"publicize-form"},Object(i.createElement)("ul",{className:"jetpack-publicize__connections-list"},t.map(function(e){var t=e.display_name,r=e.enabled,o=e.id,a=e.service_name,s=e.toggleable;return Object(i.createElement)(me,{disabled:!s,enabled:r,key:o,id:o,label:t,name:a,toggleConnection:n})})),Object(i.createElement)(be,{refreshCallback:r}),t.some(function(e){return e.enabled})&&Object(i.createElement)(i.Fragment,null,Object(i.createElement)("label",{className:"jetpack-publicize-message-note",htmlFor:this.fieldId},Object(W.a)("Customize your message")),Object(i.createElement)("div",{className:"jetpack-publicize-message-box"},Object(i.createElement)("textarea",{id:this.fieldId,value:o,onChange:this.onMessageChange,disabled:this.isDisabled(),maxLength:256,placeholder:Object(W.a)("Write a message for your audience here. If you leave this blank, we'll use the post title as the message."),rows:4}),Object(i.createElement)("div",{className:s},Object(oe.sprintf)(Object(W.b)("%d character remaining","%d characters remaining",a),a)))))}}]),t}(i.Component),ve=Object(z.compose)([Object(l.withSelect)(function(e){var t=e("core/editor").getEditedPostAttribute("meta"),n=e("core/editor").getEditedPostAttribute("title"),r=te()(t,["jetpack_publicize_message"],"");return{connections:e("core/editor").getEditedPostAttribute("jetpack_publicize_connections"),defaultShareMessage:n.substr(0,256),shareMessage:r.substr(0,256)}}),Object(l.withDispatch)(function(e,t){var n=t.connections;return{toggleConnection:function(t){var r=n.map(function(e){return Q()({},e,{enabled:e.id===t?!e.enabled:e.enabled})});e("core/editor").editPost({jetpack_publicize_connections:r})},messageChange:function(t){e("core/editor").editPost({meta:{jetpack_publicize_message:t.target.value}})}}})])(ge),ye=Object(z.compose)([Object(l.withSelect)(function(e){return{connections:e("core/editor").getEditedPostAttribute("jetpack_publicize_connections")}}),Object(l.withDispatch)(function(e){return{refreshConnections:e("core/editor").refreshPost}})])(function(e){var t=e.connections,n=e.refreshConnections;return Object(i.createElement)(i.Fragment,null,t&&t.some(function(e){return e.enabled})&&Object(i.createElement)(Y,null),Object(i.createElement)("div",null,Object(W.a)("Connect and select the accounts where you'd like to share your post.")),t&&t.length>0&&Object(i.createElement)(ve,{refreshCallback:n}),t&&0===t.length&&Object(i.createElement)(be,{className:"jetpack-publicize-add-connection-wrapper",refreshCallback:n}))}),_e={render:function(){return Object(i.createElement)(c.PostTypeSupportCheck,{supportKeys:"publicize"},Object(i.createElement)(F.default,null,Object(i.createElement)(a.PanelBody,{title:Object(W.a)("Share this post")},Object(i.createElement)(ye,null))),Object(i.createElement)(s.PluginPrePublishPanel,{initialOpen:!0,id:"publicize-title",title:Object(i.createElement)("span",{id:"publicize-defaults",key:"publicize-title-span"},Object(W.a)("Share this post"))},Object(i.createElement)(ye,null)))}},ke=n(48);Object(ke.a)("publicize",_e)},function(e,t,n){"use strict";n.r(t);var r=n(22),o=n(0),i=n(18),a=n(5),s=n(3),c=n(1),l=n(20),u=n.n(l),p=n(15),h=n.n(p),d=n(7),f=n.n(d),m=n(6),b=n.n(m),g=n(8),v=n.n(g),y=n(9),_=n.n(y),k=n(10),O=n.n(k),j=n(2),C=n.n(j),w=n(4),E=n.n(w),x=n(11),S=n(32),A=n.n(S),D=n(96),M=n.n(D),T=n(14),F=n(30),z=n(31),P=n(12),N=n.n(P),I=n(28),R=n(17),L=function(e){function t(){var e,n;f()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=v()(this,(e=_()(t)).call.apply(e,[this].concat(i))),E()(C()(C()(n)),"img",Object(o.createRef)()),E()(C()(C()(n)),"onImageClick",function(){n.props.isSelected||n.props.onSelect()}),E()(C()(C()(n)),"onImageKeyDown",function(e){n.img.current===document.activeElement&&n.props.isSelected&&[I.BACKSPACE,I.DELETE].includes(e.keyCode)&&n.props.onRemove()}),n}return O()(t,e),b()(t,[{key:"componentDidUpdate",value:function(){var e=this.props,t=e.alt,n=e.height,r=e.image,o=e.link,i=e.url,a=e.width;if(r){var s={};!t&&r.alt_text&&(s.alt=r.alt_text),!n&&r.media_details&&r.media_details.height&&(s.height=+r.media_details.height),!o&&r.link&&(s.link=r.link),!i&&r.source_url&&(s.url=r.source_url),!a&&r.media_details&&r.media_details.width&&(s.width=+r.media_details.width),Object.keys(s).length&&this.props.setAttributes(s)}}},{key:"render",value:function(){var e,t=this.props,n=t["aria-label"],r=t.alt,i=t.height,a=t.id,l=t.isSelected,u=t.link,p=t.linkTo,h=t.onRemove,d=t.origUrl,f=t.url,m=t.width;switch(p){case"media":e=f;break;case"attachment":e=u}var b=Object(o.createElement)(o.Fragment,null,Object(o.createElement)("img",{alt:r,"aria-label":n,"data-height":i,"data-id":a,"data-link":u,"data-url":d,"data-width":m,onClick:this.onImageClick,onKeyDown:this.onImageKeyDown,ref:this.img,src:f,tabIndex:"0"}),Object(z.isBlobURL)(d)&&Object(o.createElement)(s.Spinner,null));return Object(o.createElement)("figure",{className:N()("tiled-gallery__item",{"is-selected":l,"is-transient":Object(z.isBlobURL)(d)})},l&&Object(o.createElement)("div",{className:"tiled-gallery__item__inline-menu"},Object(o.createElement)(s.IconButton,{icon:"no-alt",onClick:h,className:"tiled-gallery__item__remove",label:Object(c.a)("Remove Image")})),e?Object(o.createElement)("a",null,b):b)}}]),t}(o.Component),q=Object(R.withSelect)(function(e,t){var n=e("core").getMedia,r=t.id;return{image:r?n(r):null}})(L);function B(e){var t,n=e["aria-label"],r=e.alt,i=e.height,a=e.id,s=e.link,c=e.linkTo,l=e.origUrl,u=e.url,p=e.width;if(Object(z.isBlobURL)(l))return null;switch(c){case"media":t=u;break;case"attachment":t=s}var h=Object(o.createElement)("img",{alt:r,"aria-label":n,"data-height":i,"data-id":a,"data-link":s,"data-url":l,"data-width":p,src:u});return Object(o.createElement)("figure",{className:"tiled-gallery__item"},t?Object(o.createElement)("a",{href:t},h):h)}var V=n(50);function U(e){var t=e.children;return Object(o.createElement)("div",{className:"tiled-gallery__col"},t)}function H(e){var t=e.children,n=e.galleryRef;return Object(o.createElement)("div",{className:"tiled-gallery__gallery",ref:n},t)}function $(e){var t=e.children,n=e.className;return Object(o.createElement)("div",{className:N()("tiled-gallery__row",n)},t)}var G=n(38);function Z(e){var t=e.height,n=e.width;return t&&n?n/t:1}var K=de([2,1,2],5),W=fe([me,me,be,me,me]),J=fe([me,me,me,be,me,me,me]),Y=de([3,1,3],5),X=fe([be,me,me,be]),Q=de([1,2,1],5),ee=fe([be,me,me,me]),te=de([1,3],3),ne=fe([me,me,me,be]),re=de([3,1],3),oe=fe([ve(1.6),Object(a.overEvery)(ge(.9),ve(2)),Object(a.overEvery)(ge(.9),ve(2))]),ie=de([1,2],3),ae=de([1,1,1,1,1],1),se=de([1,1,1,1],1),ce=de([1,1,1],3),le=fe([Object(a.overEvery)(ge(.9),ve(2)),Object(a.overEvery)(ge(.9),ve(2)),ve(1.6)]),ue=de([2,1],3),pe=fe([function(e){return e>=2}]);function he(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).isWide;return function e(n,r){if(!r.length)return n;var o;o=r.length>15&&W(r)&&K(n)?[2,1,2]:r.length>15&&J(r)&&Y(n)?[3,1,3]:5!==r.length&&X(r)&&Q(n)?[1,2,1]:ee(r)&&te(n)?[1,3]:ne(r)&&re(n)?[3,1]:oe(r)&&ie(n)?[1,2]:t&&(5===r.length||10!==r.length&&r.length>6)&&ae(n)&&Object(a.sum)(Object(a.take)(r,5))<5?[1,1,1,1,1]:function(e,t){var n=Object(a.sum)(Object(a.take)(t,4));return se(e)&&n<3.5&&t.length>5||n<7&&4===t.length}(n,r)?[1,1,1,1]:function(e,t,n){var r=Object(a.sum)(Object(a.take)(t,3));return t.length>=3&&4!==t.length&&6!==t.length&&ce(e)&&(r<2.5||r<5&&t.length>=3&&t[0]===t[2]||n)}(n,r,t)?[1,1,1]:le(r)&&ue(n)?[2,1]:pe(r)?[1]:r.length>3?[1,1]:Array(r.length).fill(1);var i=n.concat([o]),s=Object(a.sum)(o);return e(i,r.slice(s))}([],e)}function de(e,t){return function(n){return!Object(a.some)(Object(a.takeRight)(n,t),function(t){return Object(a.isEqual)(t,e)})}}function fe(e){return function(t){return t.length>=e.length&&Object(a.every)(Object(a.zipWith)(e,t.slice(0,e.length),function(e,t){return e(t)}))}}function me(e){return e>=1&&e<2}function be(e){return e<1}function ge(e){return function(t){return t>=e}}function ve(e){return function(t){return t<e}}var ye=function(e){function t(){var e,n;f()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=v()(this,(e=_()(t)).call.apply(e,[this].concat(i))),E()(C()(C()(n)),"gallery",Object(o.createRef)()),E()(C()(C()(n)),"pendingRaf",null),E()(C()(C()(n)),"ro",null),E()(C()(C()(n)),"handleGalleryResize",function(e){n.pendingRaf&&(cancelAnimationFrame(n.pendingRaf),n.pendingRaf=null),n.pendingRaf=requestAnimationFrame(function(){var t=!0,n=!1,r=void 0;try{for(var o,i=function(){var e=o.value,t=e.contentRect,n=e.target,r=t.width;Object(G.a)(n).forEach(function(e){return Object(G.b)(e,r)})},a=e[Symbol.iterator]();!(t=(o=a.next()).done);t=!0)i()}catch(e){n=!0,r=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw r}}})}),n}return O()(t,e),b()(t,[{key:"componentDidMount",value:function(){this.observeResize()}},{key:"componentWillUnmount",value:function(){this.unobserveResize()}},{key:"componentDidUpdate",value:function(e){e.images!==this.props.images||e.align!==this.props.align?this.triggerResize():"columns"===this.props.layoutStyle&&e.columns!==this.props.columns&&this.triggerResize()}},{key:"triggerResize",value:function(){this.gallery.current&&this.handleGalleryResize([{target:this.gallery.current,contentRect:{width:this.gallery.current.clientWidth}}])}},{key:"observeResize",value:function(){this.triggerResize(),this.ro=new V.a(this.handleGalleryResize),this.gallery.current&&this.ro.observe(this.gallery.current)}},{key:"unobserveResize",value:function(){this.ro&&(this.ro.disconnect(),this.ro=null),this.pendingRaf&&(cancelAnimationFrame(this.pendingRaf),this.pendingRaf=null)}},{key:"render",value:function(){var e=this.props,t=e.align,n=e.columns,r=e.images,i=e.layoutStyle,s=e.renderedImages,c=function(e){return Object(a.map)(e,Z)}(r),l="columns"===i?function(e,t){if(e.length<=t)return[Array(e.length).fill(1)];for(var n=Object(a.sum)(e)/t,r=[],o=e,i=0,s=function(e){var t=Object(a.takeWhile)(o,function(t){var r=i<=(e+1)*n;return r&&(i+=t),r}).length;r.push(t),o=Object(a.drop)(o,t)},c=0;c<t-1;c++)s(c);return r.push(o.length),[r]}(c,n):he(c,{isWide:["full","wide"].includes(t)}),u=0;return Object(o.createElement)(H,{galleryRef:this.gallery},l.map(function(e,t){return Object(o.createElement)($,{key:t},e.map(function(e,t){var n=s.slice(u,u+e);return u+=e,Object(o.createElement)(U,{key:t},n)}))}))}}]),t}(o.Component),_e=n(16);function ke(e){var t=e.columns,n=e.renderedImages,r=Math.min(_e.e,t),i=n.length%r;return Object(o.createElement)(H,null,[].concat(h()(i?[Object(a.take)(n,i)]:[]),h()(Object(a.chunk)(Object(a.drop)(n,i),r))).map(function(e,t){return Object(o.createElement)($,{key:t,className:"columns-".concat(e.length)},e.map(function(e,t){return Object(o.createElement)(U,{key:t},e)}))}))}var Oe=function(e){function t(){return f()(this,t),v()(this,_()(t).apply(this,arguments))}return O()(t,e),b()(t,[{key:"photonize",value:function(e){var t=e.height,n=e.width,r=e.url;if(r){if(Object(z.isBlobURL)(r)||/^https?:\/\/localhost/.test(r))return r;var o=r.split("?",1)[0],i=function(e){var t=Object(F.parse)(e).host;return/\.files\.wordpress\.com$/.test(t)}(r)?Ce:M.a;if(je(this.props.layoutStyle)&&n&&t){var a=Math.min(_e.f,n,t);return i(o,{resize:"".concat(a,",").concat(a)})}return i(o)}}},{key:"renderImage",value:function(e,t){var n=this.props,r=n.images,i=n.isSave,a=n.linkTo,s=n.onRemoveImage,c=n.onSelectImage,l=n.selectedImage,u=n.setImageAttributes,p=Object(T.sprintf)(Object(T.__)("image %1$d of %2$d in gallery"),t+1,r.length),h=i?B:q;return Object(o.createElement)(h,{alt:e.alt,"aria-label":p,height:e.height,id:e.id,origUrl:e.url,isSelected:l===t,key:t,link:e.link,linkTo:a,onRemove:i?void 0:s(t),onSelect:i?void 0:c(t),setAttributes:i?void 0:u(t),url:this.photonize(e),width:e.width})}},{key:"render",value:function(){var e=this.props,t=e.align,n=e.children,r=e.className,i=e.columns,a=e.images,s=e.layoutStyle,c=je(s)?ke:ye,l=this.props.images.map(this.renderImage,this);return Object(o.createElement)("div",{className:r},Object(o.createElement)(c,{align:t,columns:i,images:a,layoutStyle:s,renderedImages:l}),n)}}]),t}(o.Component);function je(e){return["circle","square"].includes(e)}function Ce(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={width:"w",height:"h",letterboxing:"lb",removeLetterboxing:"ulb"},r=Object(F.parse)(e),o=(r.auth,r.hash,r.port,r.query,r.search,A()(r,["auth","hash","port","query","search"]));return o.query=Object.keys(t).reduce(function(e,r){return Object.assign(e,E()({},n.hasOwnProperty(r)?n[r]:r,t[r]))},{}),Object(F.format)(o)}var we=n(97),Ee=n.n(we);function xe(e,t){var n=function(e,t){var n=!0,r=!1,o=void 0;try{for(var i,s=new Ee.a(t).values()[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var c=i.value;if(-1!==c.indexOf("is-style-")){var l=c.substring(9),u=Object(a.find)(e,{name:l});if(u)return u}}}catch(e){r=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw o}}return Object(a.find)(e,"isDefault")}(e,t);return n?n.name:null}var Se=[{value:"attachment",label:Object(c.a)("Attachment Page")},{value:"media",label:Object(c.a)("Media File")},{value:"none",label:Object(c.a)("None")}];function Ae(e){return Math.min(3,e.images.length)}var De=function(e){var t=Object(a.pick)(e,[["alt"],["id"],["link"]]);return t.url=Object(a.get)(e,["sizes","large","url"])||Object(a.get)(e,["media_details","sizes","large","source_url"])||e.url,t},Me=function(e){function t(){var e,n;f()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=v()(this,(e=_()(t)).call.apply(e,[this].concat(o))),E()(C()(C()(n)),"state",{selectedImage:null}),E()(C()(C()(n)),"addFiles",function(e){var t=n.props.attributes.images||[],r=n.props.noticeOperations;Object(x.mediaUpload)({allowedTypes:_e.a,filesList:e,onFileChange:function(e){var r=e.map(function(e){return De(e)});n.setAttributes({images:t.concat(r)})},onError:r.createErrorNotice})}),E()(C()(C()(n)),"onRemoveImage",function(e){return function(){var t=Object(a.filter)(n.props.attributes.images,function(t,n){return e!==n}),r=n.props.attributes.columns;n.setState({selectedImage:null}),n.setAttributes({images:t,columns:r?Math.min(t.length,r):r})}}),E()(C()(C()(n)),"onSelectImage",function(e){return function(){n.state.selectedImage!==e&&n.setState({selectedImage:e})}}),E()(C()(C()(n)),"onSelectImages",function(e){return n.setAttributes({images:e.map(function(e){return De(e)})})}),E()(C()(C()(n)),"setColumnsNumber",function(e){return n.setAttributes({columns:e})}),E()(C()(C()(n)),"setImageAttributes",function(e){return function(t){var r=n.props.attributes.images;r[e]&&n.setAttributes({images:[].concat(h()(r.slice(0,e)),[u()({},r[e],t)],h()(r.slice(e+1)))})}}),E()(C()(C()(n)),"setLinkTo",function(e){return n.setAttributes({linkTo:e})}),E()(C()(C()(n)),"uploadFromFiles",function(e){return n.addFiles(e.target.files)}),n}return O()(t,e),b()(t,[{key:"setAttributes",value:function(e){if(e.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');e.images&&(e=u()({},e,{ids:e.images.map(function(e){var t=e.id;return parseInt(t,10)})})),this.props.setAttributes(e)}},{key:"render",value:function(){var e=this.state.selectedImage,t=this.props,n=t.attributes,r=t.isSelected,i=t.className,a=t.noticeOperations,l=t.noticeUI,u=n.align,p=n.columns,h=void 0===p?Ae(n):p,d=n.images,f=n.linkTo,m=Object(o.createElement)(s.DropZone,{onFilesDrop:this.addFiles}),b=Object(o.createElement)(x.BlockControls,null,!!d.length&&Object(o.createElement)(s.Toolbar,null,Object(o.createElement)(x.MediaUpload,{onSelect:this.onSelectImages,allowedTypes:_e.a,multiple:!0,gallery:!0,value:d.map(function(e){return e.id}),render:function(e){var t=e.open;return Object(o.createElement)(s.IconButton,{className:"components-toolbar__control",label:Object(c.a)("Edit Gallery"),icon:"edit",onClick:t})}})));if(0===d.length)return Object(o.createElement)(o.Fragment,null,b,Object(o.createElement)(x.MediaPlaceholder,{icon:Object(o.createElement)("div",{className:"tiled-gallery__media-placeholder-icon"},ze),className:i,labels:{title:Object(c.a)("Tiled gallery"),name:Object(c.a)("images")},onSelect:this.onSelectImages,accept:"image/*",allowedTypes:_e.a,multiple:!0,notices:l,onError:a.createErrorNotice}));var g=xe(_e.d,n.className);return Object(o.createElement)(o.Fragment,null,b,Object(o.createElement)(x.InspectorControls,null,Object(o.createElement)(s.PanelBody,{title:Object(c.a)("Tiled gallery settings")},["columns","circle","square"].includes(g)&&d.length>1&&Object(o.createElement)(s.RangeControl,{label:Object(c.a)("Columns"),value:h,onChange:this.setColumnsNumber,min:1,max:Math.min(_e.e,d.length)}),Object(o.createElement)(s.SelectControl,{label:Object(c.a)("Link To"),value:f,onChange:this.setLinkTo,options:Se}))),l,Object(o.createElement)(Oe,{align:u,className:i,columns:h,images:d,layoutStyle:g,linkTo:f,onRemoveImage:this.onRemoveImage,onSelectImage:this.onSelectImage,selectedImage:r?e:null,setImageAttributes:this.setImageAttributes},m,r&&Object(o.createElement)("div",{className:"tiled-gallery__add-item"},Object(o.createElement)(s.FormFileUpload,{multiple:!0,isLarge:!0,className:"tiled-gallery__add-item-button",onChange:this.uploadFromFiles,accept:"image/*",icon:"insert"},Object(c.a)("Upload an image")))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.isSelected||null===t.selectedImage?null:{selectedImage:null}}}]),t}(o.Component),Te=Object(s.withNotices)(Me);n(247);var Fe={align:{default:"center",type:"string"},className:{default:"is-style-".concat(_e.b),type:"string"},columns:{type:"number"},ids:{default:[],type:"array"},images:{type:"array",default:[],source:"query",selector:".tiled-gallery__item",query:{alt:{attribute:"alt",default:"",selector:"img",source:"attribute"},caption:{selector:"figcaption",source:"html",type:"string"},height:{attribute:"data-height",selector:"img",source:"attribute",type:"number"},id:{attribute:"data-id",selector:"img",source:"attribute"},link:{attribute:"data-link",selector:"img",source:"attribute"},url:{attribute:"data-url",selector:"img",source:"attribute"},width:{attribute:"data-width",selector:"img",source:"attribute",type:"number"}}},linkTo:{default:"none",type:"string"}},ze=Object(o.createElement)(s.SVG,{viewBox:"0 0 24 24",width:24,height:24},Object(o.createElement)(s.Path,{fill:"currentColor",d:"M19 5v2h-4V5h4M9 5v6H5V5h4m10 8v6h-4v-6h4M9 17v2H5v-2h4M21 3h-8v6h8V3zM11 3H3v10h8V3zm10 8h-8v10h8V11zm-10 4H3v6h8v-6z"})),Pe={attributes:Fe,category:"jetpack",description:Object(c.a)("Display multiple images in an elegantly organized tiled layout."),icon:ze,keywords:[Object(c.c)("images","block search term"),Object(c.c)("photos","block search term"),Object(c.c)("masonry","block search term")],styles:_e.d,supports:{align:["center","wide","full"],customClassName:!1,html:!1},title:Object(c.a)("Tiled Gallery"),transforms:{from:[{type:"block",blocks:["core/gallery"],transform:function(e){var t=Object(a.filter)(e.images,function(e){var t=e.id,n=e.url;return t&&n});return t.length>0?Object(i.createBlock)("jetpack/".concat("tiled-gallery"),{images:t.map(function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}})}):Object(i.createBlock)("jetpack/".concat("tiled-gallery"))}},{type:"shortcode",tag:"gallery",attributes:{images:{type:"array",shortcode:function(e){var t=e.named.ids;return t?t.split(",").map(function(e){return{id:parseInt(e,10)}}):[]}},columns:{type:"number",shortcode:function(e){var t=e.named.columns,n=void 0===t?3:t;if(n){var r=parseInt(n,10);return r||void 0}}},linkTo:{type:"string",shortcode:function(e){var t=e.named.link,n=void 0===t?"attachment":t;return"file"===n?"media":n}},layout:{type:"string",shortcode:function(e){var t=e.named.type,n=void 0===t?_e.b:t;return _e.d.map(function(e){return e.name}).includes(n)?n:_e.b}}}}],to:[{type:"block",blocks:["core/gallery"],transform:function(e){var t=e.images,n=e.columns,r=e.linkTo;return Object(i.createBlock)("core/gallery",{images:t,columns:n,imageCrop:!0,linkTo:r})}},{type:"block",blocks:["core/image"],transform:function(e){var t=e.images;return t.length>0?t.map(function(e){var t=e.id,n=e.url,r=e.alt,o=e.caption;return Object(i.createBlock)("core/image",{id:t,url:n,alt:r,caption:o})}):Object(i.createBlock)("core/image")}}]},edit:Te,save:function(e){var t=e.attributes,n=t.images;if(!n.length)return null;var r=t.align,i=t.className,a=t.columns,s=void 0===a?Ae(t):a,c=t.linkTo;return Object(o.createElement)(Oe,{align:r,className:i,columns:s,images:n,isSave:!0,layoutStyle:xe(_e.d,i),linkTo:c})}};Object(r.a)("tiled-gallery",Pe)},function(e,t,n){"use strict";n.r(t);var r=n(22),o=n(0),i=n(3),a=n(47),s=n.n(a),c=n(7),l=n.n(c),u=n(6),p=n.n(u),h=n(8),d=n.n(h),f=n(9),m=n.n(f),b=n(10),g=n.n(b),v=n(2),y=n.n(v),_=n(4),k=n.n(_),O=n(12),j=n.n(O),C=n(46),w=n.n(C),E=n(19),x=n(17),S=n(5),A=n(14),D=n(27),M=n.n(D),T=n(32),F=n.n(T),z=n(44),P=n.n(z),N=(n(225),function(e){var t=e.children,n=void 0===t?null:t,r=e.isError,i=void 0!==r&&r,a=F()(e,["children","isError"]),s=j()("simple-payments__help-message",{"simple-payments__help-message-is-error":i});return n&&Object(o.createElement)("div",M()({className:s},a),i&&Object(o.createElement)(P.a,{size:"24"}),Object(o.createElement)("span",null,n))}),I=n(1),R=(n(227),n(93)),L=n.n(R),q=n(94),B=n.n(q),V=function(e){var t=e.title,n=void 0===t?"":t,r=e.content,i=void 0===r?"":r,a=e.formattedPrice,s=void 0===a?"":a,c=e.multiple,l=void 0!==c&&c,u=e.featuredMediaUrl,p=void 0===u?null:u,h=e.featuredMediaTitle,d=void 0===h?null:h;return Object(o.createElement)("div",{className:"jetpack-simple-payments-wrapper"},Object(o.createElement)("div",{className:"jetpack-simple-payments-product"},p&&Object(o.createElement)("div",{className:"jetpack-simple-payments-product-image"},Object(o.createElement)("figure",{className:"jetpack-simple-payments-image"},Object(o.createElement)("img",{src:p,alt:d}))),Object(o.createElement)("div",{className:"jetpack-simple-payments-details"},n&&Object(o.createElement)("div",{className:"jetpack-simple-payments-title"},Object(o.createElement)("p",null,n)),i&&Object(o.createElement)("div",{className:"jetpack-simple-payments-description"},Object(o.createElement)("p",null,i)),s&&Object(o.createElement)("div",{className:"jetpack-simple-payments-price"},Object(o.createElement)("p",null,s)),Object(o.createElement)("div",{className:"jetpack-simple-payments-purchase-box"},l&&Object(o.createElement)("div",{className:"jetpack-simple-payments-items"},Object(o.createElement)("input",{className:"jetpack-simple-payments-items-number",readOnly:!0,type:"number",value:"1"})),Object(o.createElement)("div",{className:"jetpack-simple-payments-button"},Object(o.createElement)("img",{alt:Object(I.a)("Pay with PayPal"),src:L.a,srcSet:"".concat(B.a," 2x")}))))))},U=n(11),H=function(e){return function(t){return e({featuredMediaId:Object(S.get)(t,"id",0),featuredMediaUrl:Object(S.get)(t,"url",null),featuredMediaTitle:Object(S.get)(t,"title",null)})}},$=function(e){var t=e.featuredMediaId,n=e.featuredMediaUrl,r=e.featuredMediaTitle,a=e.setAttributes;return t?Object(o.createElement)("div",null,Object(o.createElement)(o.Fragment,null,Object(o.createElement)(U.BlockControls,null,Object(o.createElement)(i.Toolbar,null,Object(o.createElement)(U.MediaUpload,{onSelect:H(a),allowedTypes:["image"],value:t,render:function(e){var t=e.open;return Object(o.createElement)(i.IconButton,{className:"components-toolbar__control",label:Object(I.a)("Edit Image"),icon:"edit",onClick:t})}}),Object(o.createElement)(i.ToolbarButton,{icon:"trash",title:Object(I.a)("Remove Image"),onClick:function(){return a({featuredMediaId:null,featuredMediaUrl:null,featuredMediaTitle:null})}}))),Object(o.createElement)("figure",null,Object(o.createElement)("img",{src:n,alt:r})))):Object(o.createElement)(U.MediaPlaceholder,{icon:"format-image",labels:{title:Object(I.a)("Product Image")},accept:"image/*",allowedTypes:["image"],onSelect:H(a)})},G=n(95),Z=n.n(G),K={AED:{symbol:"د.إ.‏",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.‏",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.‏",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.‏",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.‏",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.‏",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"₩",grouping:",",decimal:".",precision:0},KRW:{symbol:"₩",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.ك.‏",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"₭",grouping:",",decimal:".",precision:0},LBP:{symbol:"ل.ل.‏",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.ل.‏",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.م.‏",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"₮",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"﷼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zł",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£‏",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"₡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.‏",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"₴",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"сўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"₫",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"﷼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"₩",grouping:",",decimal:".",precision:2}};function W(e){return K[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}var J=["USD","EUR","AUD","BRL","CAD","CZK","DKK","HKD","HUF","ILS","JPY","MYR","MXN","TWD","NZD","NOK","PHP","PLN","GBP","RUB","SGD","SEK","CHF","THB"],Y=function(e){var t=(""+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},X=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=W(t),o=r.precision,i=r.symbol,a=e.toFixed(o);return n?"".concat(a," ").concat(Z()(i,".")):a},Q=function(e){function t(){var e,n;l()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=d()(this,(e=m()(t)).call.apply(e,[this].concat(o))),k()(y()(y()(n)),"state",{fieldEmailError:null,fieldPriceError:null,fieldTitleError:null,isSavingProduct:!1}),k()(y()(y()(n)),"shouldInjectPaymentAttributes",!!n.props.attributes.productId),k()(y()(y()(n)),"validateAttributes",function(){var e=n.validatePrice(),t=n.validateTitle(),r=n.validateEmail(),o=n.validateCurrency();return e&&t&&r&&o}),k()(y()(y()(n)),"validateCurrency",function(){var e=n.props.attributes.currency;return J.includes(e)}),k()(y()(y()(n)),"validatePrice",function(){var e=n.props.attributes,t=e.currency,r=e.price,o=W(t).precision;return r&&0!==parseFloat(r)?Number.isNaN(parseFloat(r))?(n.setState({fieldPriceError:Object(I.a)("Invalid price")}),!1):parseFloat(r)<0?(n.setState({fieldPriceError:Object(I.a)("Your price is negative — enter a positive number so people can pay the right amount.")}),!1):Y(r)>o?0===o?(n.setState({fieldPriceError:Object(I.a)("We know every penny counts, but prices in this currency can’t contain decimal values.")}),!1):(n.setState({fieldPriceError:Object(A.sprintf)(Object(I.b)("The price cannot have more than %d decimal place.","The price cannot have more than %d decimal places.",o),o)}),!1):(n.state.fieldPriceError&&n.setState({fieldPriceError:null}),!0):(n.setState({fieldPriceError:Object(I.a)("If you’re selling something, you need a price tag. Add yours here.")}),!1)}),k()(y()(y()(n)),"validateEmail",function(){var e=n.props.attributes.email;return e?w.a.validate(e)?(n.state.fieldEmailError&&n.setState({fieldEmailError:null}),!0):(n.setState({fieldEmailError:Object(A.sprintf)(Object(I.a)("%s is not a valid email address."),e)}),!1):(n.setState({fieldEmailError:Object(I.a)("We want to make sure payments reach you, so please add an email address.")}),!1)}),k()(y()(y()(n)),"validateTitle",function(){return n.props.attributes.title?(n.state.fieldTitleError&&n.setState({fieldTitleError:null}),!0):(n.setState({fieldTitleError:Object(I.a)("Please add a brief title so that people know what they’re paying for.")}),!1)}),k()(y()(y()(n)),"handleEmailChange",function(e){n.props.setAttributes({email:e}),n.setState({fieldEmailError:null})}),k()(y()(y()(n)),"handleFeaturedMediaSelect",function(e){n.props.setAttributes({featuredMediaId:Object(S.get)(e,"id",0)})}),k()(y()(y()(n)),"handleContentChange",function(e){n.props.setAttributes({content:e})}),k()(y()(y()(n)),"handlePriceChange",function(e){e=parseFloat(e),isNaN(e)?n.props.setAttributes({price:void 0}):n.props.setAttributes({price:e}),n.setState({fieldPriceError:null})}),k()(y()(y()(n)),"handleCurrencyChange",function(e){n.props.setAttributes({currency:e})}),k()(y()(y()(n)),"handleMultipleChange",function(e){n.props.setAttributes({multiple:!!e})}),k()(y()(y()(n)),"handleTitleChange",function(e){n.props.setAttributes({title:e}),n.setState({fieldTitleError:null})}),k()(y()(y()(n)),"getCurrencyList",J.map(function(e){var t=W(e).symbol;return{value:e,label:t===e?e:"".concat(e," ").concat(Object(S.trimEnd)(t,"."))}})),n}return g()(t,e),p()(t,[{key:"componentDidMount",value:function(){this.injectPaymentAttributes();var e=this.props,t=e.attributes,n=e.hasPublishAction;!t.productId&&n&&this.saveProduct()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.hasPublishAction,r=t.isSelected;Object(S.isEqual)(e.simplePayment,this.props.simplePayment)||this.injectPaymentAttributes(),!e.isSaving&&this.props.isSaving&&n&&this.validateAttributes()?this.saveProduct():e.isSelected&&!r&&this.validateAttributes()}},{key:"injectPaymentAttributes",value:function(){if(this.shouldInjectPaymentAttributes){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.simplePayment,o=t.content,i=t.currency,a=t.email,s=t.featuredMediaId,c=t.multiple,l=t.price,u=t.productId,p=t.title;u&&r&&(n({content:Object(S.get)(r,["content","raw"],o),currency:Object(S.get)(r,["meta","spay_currency"],i),email:Object(S.get)(r,["meta","spay_email"],a),featuredMediaId:Object(S.get)(r,["featured_media"],s),multiple:Boolean(Object(S.get)(r,["meta","spay_multiple"],Boolean(c))),price:Object(S.get)(r,["meta","spay_price"],l||void 0),title:Object(S.get)(r,["title","raw"],p)}),this.shouldInjectPaymentAttributes=!this.shouldInjectPaymentAttributes)}}},{key:"toApi",value:function(){var e=this.props.attributes,t=e.content,n=e.currency,r=e.email,o=e.featuredMediaId,i=e.multiple,a=e.price,s=e.productId;return{id:s,content:t,featured_media:o,meta:{spay_currency:n,spay_email:r,spay_multiple:i,spay_price:a},status:s?"publish":"draft",title:e.title}}},{key:"saveProduct",value:function(){var e=this;if(!this.state.isSavingProduct){var t=this.props,n=t.attributes,r=t.setAttributes,o=n.email,i=Object(x.dispatch)("core").saveEntityRecord;this.setState({isSavingProduct:!0},s()(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:i("postType","jp_pay_product",e.toApi()).then(function(e){return e&&r({productId:e.id}),e}).catch(function(t){if(t&&t.data){var n=t.data.key;e.setState({fieldEmailError:"spay_email"===n?Object(A.sprintf)(Object(I.a)("%s is not a valid email address."),o):null,fieldPriceError:"spay_price"===n?Object(I.a)("Invalid price."):null})}}).finally(function(){e.setState({isSavingProduct:!1})});case 1:case"end":return t.stop()}},t,this)})))}}},{key:"render",value:function(){var e=this.state,t=e.fieldEmailError,n=e.fieldPriceError,r=e.fieldTitleError,a=this.props,s=a.attributes,c=a.featuredMedia,l=a.instanceId,u=a.isSelected,p=a.setAttributes,h=a.simplePayment,d=s.content,f=s.currency,m=s.email,b=s.featuredMediaId,g=s.featuredMediaUrl,v=s.featuredMediaTitle,y=s.multiple,_=s.price,k=s.productId,O=s.title,C=g||c&&c.source_url,w=v||c&&c.alt_text,E=k&&!h;if(!u&&E)return Object(o.createElement)("div",{className:"simple-payments__loading"},Object(o.createElement)(V,{"aria-busy":"true",content:"█████",formattedPrice:"█████",title:"█████"}));if(!u&&m&&_&&O&&!t&&!n&&!r)return Object(o.createElement)(V,{"aria-busy":"false",content:d,featuredMediaUrl:C,featuredMediaTitle:w,formattedPrice:X(_,f),multiple:y,title:O});var x=E?i.Disabled:"div";return Object(o.createElement)(x,{className:"wp-block-jetpack-simple-payments"},Object(o.createElement)($,{featuredMediaId:b,featuredMediaUrl:C,featuredMediaTitle:w,setAttributes:p}),Object(o.createElement)("div",null,Object(o.createElement)(i.TextControl,{"aria-describedby":"".concat(l,"-title-error"),className:j()("simple-payments__field","simple-payments__field-title",{"simple-payments__field-has-error":r}),label:Object(I.a)("Item name"),onChange:this.handleTitleChange,placeholder:Object(I.a)("Item name"),required:!0,type:"text",value:O}),Object(o.createElement)(N,{id:"".concat(l,"-title-error"),isError:!0},r),Object(o.createElement)(i.TextareaControl,{className:"simple-payments__field simple-payments__field-content",label:Object(I.a)("Describe your item in a few words"),onChange:this.handleContentChange,placeholder:Object(I.a)("Describe your item in a few words"),value:d}),Object(o.createElement)("div",{className:"simple-payments__price-container"},Object(o.createElement)(i.SelectControl,{className:"simple-payments__field simple-payments__field-currency",label:Object(I.a)("Currency"),onChange:this.handleCurrencyChange,options:this.getCurrencyList,value:f}),Object(o.createElement)(i.TextControl,{"aria-describedby":"".concat(l,"-price-error"),className:j()("simple-payments__field","simple-payments__field-price",{"simple-payments__field-has-error":n}),label:Object(I.a)("Price"),onChange:this.handlePriceChange,placeholder:X(0,f,!1),required:!0,step:"1",type:"number",value:_||""}),Object(o.createElement)(N,{id:"".concat(l,"-price-error"),isError:!0},n)),Object(o.createElement)("div",{className:"simple-payments__field-multiple"},Object(o.createElement)(i.ToggleControl,{checked:Boolean(y),label:Object(I.a)("Allow people to buy more than one item at a time"),onChange:this.handleMultipleChange})),Object(o.createElement)(i.TextControl,{"aria-describedby":"".concat(l,"-email-").concat(t?"error":"help"),className:j()("simple-payments__field","simple-payments__field-email",{"simple-payments__field-has-error":t}),label:Object(I.a)("Email"),onChange:this.handleEmailChange,placeholder:Object(I.a)("Email"),required:!0,type:"email",value:m}),Object(o.createElement)(N,{id:"".concat(l,"-email-error"),isError:!0},t),Object(o.createElement)(N,{id:"".concat(l,"-email-help")},Object(I.a)("Enter the email address associated with your PayPal account. Don’t have an account?")+" ",Object(o.createElement)(i.ExternalLink,{href:"https://www.paypal.com/"},Object(I.a)("Create one on PayPal")))))}}]),t}(o.Component),ee=Object(x.withSelect)(function(e,t){var n=e("core"),r=n.getEntityRecord,o=n.getMedia,i=e("core/editor"),a=i.isSavingPost,s=i.getCurrentPost,c=t.attributes,l=c.productId,u=c.featuredMediaId,p=l?Object(S.pick)(r("postType","jp_pay_product",l),[["content"],["meta","spay_currency"],["meta","spay_email"],["meta","spay_multiple"],["meta","spay_price"],["title","raw"],["featured_media"]]):void 0;return{hasPublishAction:!!Object(S.get)(s(),["_links","wp:action-publish"]),isSaving:!!a(),simplePayment:p,featuredMedia:u?o(u):null}}),te=Object(E.compose)(ee,E.withInstanceId)(Q);n(240);var ne={title:Object(I.a)("Simple Payments button"),description:Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",null,Object(I.a)("Lets you create and embed credit and debit card payment buttons with minimal setup.")),Object(o.createElement)(i.ExternalLink,{href:"https://support.wordpress.com/simple-payments/"},Object(I.a)("Support reference"))),icon:Object(o.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(i.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(o.createElement)(i.Path,{d:"M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"})),category:"jetpack",keywords:[Object(I.c)("shop","block search term"),Object(I.c)("sell","block search term"),"PayPal"],attributes:{currency:{type:"string",default:"USD"},content:{type:"string",default:""},email:{type:"string",default:""},featuredMediaId:{type:"number",default:0},featuredMediaUrl:{type:"string",default:null},featuredMediaTitle:{type:"string",default:null},multiple:{type:"boolean",default:!1},price:{type:"number"},productId:{type:"number"},title:{type:"string",default:""}},transforms:{from:[{type:"shortcode",tag:"simple-payment",attributes:{productId:{type:"number",shortcode:function(e){var t=e.named.id;if(t){var n=parseInt(t,10);return n||void 0}}}}}]},edit:te,save:function(e){var t=e.attributes.productId;return t?Object(o.createElement)(o.RawHTML,null,'[simple-payment id="'.concat(t,'"]')):null},supports:{className:!1,customClassName:!1,html:!1,reusable:!1}};Object(r.a)("simple-payments",ne)},function(e,t,n){"use strict";n.r(t);var r=n(22),o=n(20),i=n.n(o),a=n(0),s=n(18),c=n(3),l=n(11),u=(n(113),n(7)),p=n.n(u),h=n(6),d=n.n(h),f=n(8),m=n.n(f),b=n(9),g=n.n(b),v=n(10),y=n.n(v),_=n(2),k=n.n(_),O=n(12),j=n.n(O),C=n(14),w=n(46),E=n.n(w),x=n(19),S=n(1),A=n(21),D=n(37),M=n(43),T=["jetpack/markdown","core/paragraph","core/image","core/heading","core/gallery","core/list","core/quote","core/shortcode","core/audio","core/code","core/cover","core/file","core/html","core/separator","core/spacer","core/subhead","core/table","core/verse","core/video"],F=function(e){function t(){var e,n;p()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];(n=m()(this,(e=g()(t)).call.apply(e,[this].concat(o)))).onChangeSubject=n.onChangeSubject.bind(k()(k()(n))),n.onBlurTo=n.onBlurTo.bind(k()(k()(n))),n.onChangeTo=n.onChangeTo.bind(k()(k()(n))),n.onChangeSubmit=n.onChangeSubmit.bind(k()(k()(n))),n.onFormSettingsSet=n.onFormSettingsSet.bind(k()(k()(n))),n.getToValidationError=n.getToValidationError.bind(k()(k()(n))),n.renderToAndSubjectFields=n.renderToAndSubjectFields.bind(k()(k()(n))),n.preventEnterSubmittion=n.preventEnterSubmittion.bind(k()(k()(n))),n.hasEmailError=n.hasEmailError.bind(k()(k()(n)));var a=(o[0].attributes.to?o[0].attributes.to:"").split(",").map(n.getToValidationError).filter(Boolean);return n.state={toError:a&&a.length?a:null},n}return y()(t,e),d()(t,[{key:"getIntroMessage",value:function(){return Object(S.a)("You’ll receive an email notification each time someone fills out the form. Where should it go, and what should the subject line be?")}},{key:"getEmailHelpMessage",value:function(){return Object(S.a)("You can enter multiple email addresses separated by commas.")}},{key:"onChangeSubject",value:function(e){this.props.setAttributes({subject:e})}},{key:"getToValidationError",value:function(e){return 0!==(e=e.trim()).length&&(!E.a.validate(e)&&{email:e})}},{key:"onBlurTo",value:function(e){var t=e.target.value.split(",").map(this.getToValidationError).filter(Boolean);t&&t.length&&this.setState({toError:t})}},{key:"onChangeTo",value:function(e){if(0===e.trim().length)return this.setState({toError:null}),void this.props.setAttributes({to:e});this.setState({toError:null}),this.props.setAttributes({to:e})}},{key:"onChangeSubmit",value:function(e){this.props.setAttributes({submitButtonText:e})}},{key:"onFormSettingsSet",value:function(e){e.preventDefault(),this.state.toError||this.props.setAttributes({hasFormSettingsSet:"yes"})}},{key:"getfieldEmailError",value:function(e){if(e){if(1===e.length)return e[0]&&e[0].email?Object(C.sprintf)(Object(S.a)("%s is not a valid email address."),e[0].email):e[0];if(2===e.length)return Object(C.sprintf)(Object(S.a)("%s and %s are not a valid email address."),e[0].email,e[1].email);var t=e.map(function(e){return e.email});return Object(C.sprintf)(Object(S.a)("%s are not a valid email address."),t.join(", "))}return null}},{key:"preventEnterSubmittion",value:function(e){"Enter"===e.key&&(e.preventDefault(),e.stopPropagation())}},{key:"renderToAndSubjectFields",value:function(){var e=this.state.toError,t=this.props,n=t.instanceId,r=t.attributes,o=r.subject,i=r.to;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(c.TextControl,{"aria-describedby":"contact-form-".concat(n,"-email-").concat(this.hasEmailError()?"error":"help"),label:Object(S.a)("Email address"),placeholder:Object(S.a)("name@example.com"),onKeyDown:this.preventEnterSubmittion,value:i,onBlur:this.onBlurTo,onChange:this.onChangeTo}),Object(a.createElement)(M.default,{isError:!0,id:"contact-form-".concat(n,"-email-error")},this.getfieldEmailError(e)),Object(a.createElement)(M.default,{id:"contact-form-".concat(n,"-email-help")},this.getEmailHelpMessage()),Object(a.createElement)(c.TextControl,{label:Object(S.a)("Email subject line"),value:o,placeholder:Object(S.a)("Let's work together"),onChange:this.onChangeSubject}))}},{key:"hasEmailError",value:function(){var e=this.state.toError;return e&&e.length>0}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.attributes.hasFormSettingsSet,r=j()(t,"jetpack-contact-form",{"has-intro":!n});return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(l.InspectorControls,null,Object(a.createElement)(c.PanelBody,{title:Object(S.a)("Email feedback settings")},this.renderToAndSubjectFields())),Object(a.createElement)("div",{className:r},!n&&Object(a.createElement)(c.Placeholder,{label:Object(S.a)("Form"),icon:Object(A.a)(Object(a.createElement)(c.Path,{d:"M13 7.5h5v2h-5zm0 7h5v2h-5zM19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zM11 6H6v5h5V6zm-1 4H7V7h3v3zm1 3H6v5h5v-5zm-1 4H7v-3h3v3z"}))},Object(a.createElement)("form",{onSubmit:this.onFormSettingsSet},Object(a.createElement)("p",{className:"jetpack-contact-form__intro-message"},this.getIntroMessage()),this.renderToAndSubjectFields(),Object(a.createElement)("p",{className:"jetpack-contact-form__intro-message"},Object(S.a)("(If you leave these blank, notifications will go to the author with the post or page title as the subject line.)")),Object(a.createElement)("div",{className:"jetpack-contact-form__create"},Object(a.createElement)(c.Button,{isPrimary:!0,type:"submit",disabled:this.hasEmailError()},Object(S.a)("Add form"))))),n&&Object(a.createElement)(l.InnerBlocks,{allowedBlocks:T,templateLock:!1,template:[["jetpack/field-name",{required:!0}],["jetpack/field-email",{required:!0}],["jetpack/field-url",{}],["jetpack/field-textarea",{}]]}),n&&Object(a.createElement)(D.a,this.props)))}}]),t}(a.Component),z=Object(x.compose)([x.withInstanceId])(F),P=function(e){var t=e.setAttributes,n=e.label,r=e.resetFocus,o=e.isSelected,i=e.required;return Object(a.createElement)("div",{className:"jetpack-field-label"},Object(a.createElement)(l.PlainText,{value:n,className:"jetpack-field-label__input",onChange:function(e){r&&r(),t({label:e})},placeholder:Object(S.a)("Write label…")}),o&&Object(a.createElement)(c.ToggleControl,{label:Object(S.a)("Required"),className:"jetpack-field-label__required",checked:i,onChange:function(e){return t({required:e})}}),!o&&i&&Object(a.createElement)("span",{className:"required"},Object(S.a)("(required)")))};var N=function(e){var t=e.isSelected,n=e.type,r=e.required,o=e.label,i=e.setAttributes,s=e.defaultValue,u=e.placeholder,p=e.id;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("div",{className:j()("jetpack-field",{"is-selected":t})},Object(a.createElement)(c.TextControl,{type:n,label:Object(a.createElement)(P,{required:r,label:o,setAttributes:i,isSelected:t}),placeholder:u,value:u,onChange:function(e){return i({placeholder:e})},title:Object(S.a)("Set the placeholder text")})),Object(a.createElement)(l.InspectorControls,null,Object(a.createElement)(c.PanelBody,{title:Object(S.a)("Field Settings")},Object(a.createElement)(c.TextControl,{label:Object(S.a)("Default Value"),value:s,onChange:function(e){return i({defaultValue:e})}}),Object(a.createElement)(c.TextControl,{label:Object(S.a)("ID"),value:p,onChange:function(e){return i({id:e})}}))))};var I=function(e){var t=e.required,n=e.label,r=e.setAttributes,o=e.isSelected,i=e.defaultValue,s=e.placeholder,u=e.id;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("div",{className:"jetpack-field"},Object(a.createElement)(c.TextareaControl,{label:Object(a.createElement)(P,{required:t,label:n,setAttributes:r,isSelected:o}),placeholder:s,value:s,onChange:function(e){return r({placeholder:e})},title:Object(S.a)("Set the placeholder text")})),Object(a.createElement)(l.InspectorControls,null,Object(a.createElement)(c.PanelBody,{title:Object(S.a)("Field Settings")},Object(a.createElement)(c.TextControl,{label:Object(S.a)("Default Value"),value:i,onChange:function(e){return r({defaultValue:e})}}),Object(a.createElement)(c.TextControl,{label:Object(S.a)("ID"),value:u,onChange:function(e){return r({id:e})}}))))},R=Object(x.withInstanceId)(function(e){var t=e.instanceId,n=e.required,r=e.label,o=e.setAttributes,i=e.isSelected,s=e.defaultValue,u=e.id;return Object(a.createElement)(c.BaseControl,{id:"jetpack-field-checkbox-".concat(t),className:"jetpack-field jetpack-field-checkbox",label:Object(a.createElement)(a.Fragment,null,Object(a.createElement)("input",{className:"jetpack-field-checkbox__checkbox",type:"checkbox",disabled:!0,checked:s}),Object(a.createElement)(P,{required:n,label:r,setAttributes:o,isSelected:i}),Object(a.createElement)(l.InspectorControls,null,Object(a.createElement)(c.PanelBody,{title:Object(S.a)("Field Settings")},Object(a.createElement)(c.ToggleControl,{label:Object(S.a)("Default Checked State"),checked:s,onChange:function(e){return o({defaultValue:e})}}),Object(a.createElement)(c.TextControl,{label:Object(S.a)("ID"),value:u,onChange:function(e){return o({id:e})}}))))})}),L=n(24),q=n.n(L),B=function(e){function t(){var e,n;p()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=m()(this,(e=g()(t)).call.apply(e,[this].concat(o)))).onChangeOption=n.onChangeOption.bind(k()(k()(n))),n.onKeyPress=n.onKeyPress.bind(k()(k()(n))),n.onDeleteOption=n.onDeleteOption.bind(k()(k()(n))),n.textInput=Object(a.createRef)(),n}return y()(t,e),d()(t,[{key:"componentDidMount",value:function(){this.props.isInFocus&&this.textInput.current.focus()}},{key:"componentDidUpdate",value:function(){this.props.isInFocus&&this.textInput.current.focus()}},{key:"onChangeOption",value:function(e){this.props.onChangeOption(this.props.index,e.target.value)}},{key:"onKeyPress",value:function(e){return"Enter"===e.key?(this.props.onAddOption(this.props.index),void e.preventDefault()):"Backspace"===e.key&&""===e.target.value?(this.props.onChangeOption(this.props.index),void e.preventDefault()):void 0}},{key:"onDeleteOption",value:function(){this.props.onChangeOption(this.props.index)}},{key:"render",value:function(){var e=this.props,t=e.isSelected,n=e.option,r=e.type;return Object(a.createElement)("li",{className:"jetpack-option"},r&&"select"!==r&&Object(a.createElement)("input",{className:"jetpack-option__type",type:r,disabled:!0}),Object(a.createElement)("input",{type:"text",className:"jetpack-option__input",value:n,placeholder:Object(S.a)("Write option…"),onChange:this.onChangeOption,onKeyDown:this.onKeyPress,ref:this.textInput}),t&&Object(a.createElement)(c.IconButton,{className:"jetpack-option__remove",icon:"trash",label:Object(S.a)("Remove option"),onClick:this.onDeleteOption}))}}]),t}(a.Component),V=function(e){function t(){var e,n;p()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=m()(this,(e=g()(t)).call.apply(e,[this].concat(o)))).onChangeOption=n.onChangeOption.bind(k()(k()(n))),n.addNewOption=n.addNewOption.bind(k()(k()(n))),n.state={inFocus:null},n}return y()(t,e),d()(t,[{key:"onChangeOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.props.options.slice(0);null===t?(n.splice(e,1),e>0&&this.setState({inFocus:e-1})):(n.splice(e,1,t),this.setState({inFocus:e})),this.props.setAttributes({options:n})}},{key:"addNewOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.props.options.slice(0),n=0;"object"===q()(e)?(t.push(""),n=t.length-1):(t.splice(e+1,0,""),n=e+1),this.setState({inFocus:n}),this.props.setAttributes({options:t})}},{key:"render",value:function(){var e=this,t=this.props,n=t.type,r=t.instanceId,o=t.required,i=t.label,s=t.setAttributes,u=t.isSelected,p=t.id,h=this.props.options,d=this.state.inFocus;return h.length||(h=[""],d=0),Object(a.createElement)(a.Fragment,null,Object(a.createElement)(c.BaseControl,{id:"jetpack-field-multiple-".concat(r),className:"jetpack-field jetpack-field-multiple",label:Object(a.createElement)(P,{required:o,label:i,setAttributes:s,isSelected:u,resetFocus:function(){return e.setState({inFocus:null})}})},Object(a.createElement)("ol",{className:"jetpack-field-multiple__list",id:"jetpack-field-multiple-".concat(r)},h.map(function(t,r){return Object(a.createElement)(B,{type:n,key:r,option:t,index:r,onChangeOption:e.onChangeOption,onAddOption:e.addNewOption,isInFocus:r===d&&u,isSelected:u})})),u&&Object(a.createElement)(c.IconButton,{className:"jetpack-field-multiple__add-option",icon:"insert",label:Object(S.a)("Insert option"),onClick:this.addNewOption},Object(S.a)("Add option"))),Object(a.createElement)(l.InspectorControls,null,Object(a.createElement)(c.PanelBody,{title:Object(S.a)("Field Settings")},Object(a.createElement)(c.TextControl,{label:Object(S.a)("ID"),value:p,onChange:function(e){return s({id:e})}}))))}}]),t}(a.Component),U=Object(x.withInstanceId)(V),H={title:Object(S.a)("Form"),description:Object(S.a)("A simple way to get feedback from folks visiting your site."),icon:Object(A.a)(Object(a.createElement)(c.Path,{d:"M13 7.5h5v2h-5zm0 7h5v2h-5zM19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zM11 6H6v5h5V6zm-1 4H7V7h3v3zm1 3H6v5h5v-5zm-1 4H7v-3h3v3z"})),keywords:[Object(S.a)("email"),Object(S.a)("feedback"),Object(S.a)("contact")],category:"jetpack",supports:{reusable:!1,html:!1},attributes:{subject:{type:"string",default:""},to:{type:"string",default:""},submitButtonText:{type:"string",default:Object(S.a)("Submit")},customBackgroundButtonColor:{type:"string"},customTextButtonColor:{type:"string"},submitButtonClasses:{type:"string"},hasFormSettingsSet:{type:"string",default:null},has_form_settings_set:{type:"string",default:null},submit_button_text:{type:"string",default:Object(S.a)("Submit")}},edit:z,save:l.InnerBlocks.Content,deprecated:[{attributes:{subject:{type:"string",default:""},to:{type:"string",default:""},submit_button_text:{type:"string",default:Object(S.a)("Submit")},has_form_settings_set:{type:"string",default:null}},migrate:function(e){return{submitButtonText:e.submit_button_text,hasFormSettingsSet:e.has_form_settings_set,to:e.to,subject:e.subject}},isEligible:function(e){return!(!e.has_form_settings_set&&"Submit"===e.submit_button_text)},save:l.InnerBlocks.Content}]},$={category:"jetpack",parent:["jetpack/contact-form"],supports:{reusable:!1,html:!1},attributes:{label:{type:"string",default:null},required:{type:"boolean",default:!1},options:{type:"array",default:[]},defaultValue:{type:"string",default:""},placeholder:{type:"string",default:""},id:{type:"string",default:""}},transforms:{to:[{type:"block",blocks:["jetpack/field-text"],isMatch:function(e){return!e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-text",e)}},{type:"block",blocks:["jetpack/field-name"],isMatch:function(e){return!e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-name",e)}},{type:"block",blocks:["jetpack/field-email"],isMatch:function(e){return!e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-email",e)}},{type:"block",blocks:["jetpack/field-url"],isMatch:function(e){return!e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-url",e)}},{type:"block",blocks:["jetpack/field-date"],isMatch:function(e){return!e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-date",e)}},{type:"block",blocks:["jetpack/field-telephone"],isMatch:function(e){return!e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-telephone",e)}},{type:"block",blocks:["jetpack/field-textarea"],isMatch:function(e){return!e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-textarea",e)}},{type:"block",blocks:["jetpack/field-checkbox-multiple"],isMatch:function(e){return 1<=e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-checkbox-multiple",e)}},{type:"block",blocks:["jetpack/field-radio"],isMatch:function(e){return 1<=e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-radio",e)}},{type:"block",blocks:["jetpack/field-select"],isMatch:function(e){return 1<=e.options.length},transform:function(e){return Object(s.createBlock)("jetpack/field-select",e)}}]},save:function(){return null}},G=function(e){var t=e.attributes,n=e.name;return null===t.label?Object(s.getBlockType)(n).title:t.label},Z=function(e){return function(t){return Object(a.createElement)(N,{type:e,label:G(t),required:t.attributes.required,setAttributes:t.setAttributes,isSelected:t.isSelected,defaultValue:t.attributes.defaultValue,placeholder:t.attributes.placeholder,id:t.attributes.id})}},K=function(e){return function(t){return Object(a.createElement)(U,{label:G(t),required:t.attributes.required,options:t.attributes.options,setAttributes:t.setAttributes,type:e,isSelected:t.isSelected,id:t.attributes.id})}},W=[{name:"field-text",settings:i()({},$,{title:Object(S.a)("Text"),description:Object(S.a)("When you need just a small amount of text, add a text input."),icon:Object(A.a)(Object(a.createElement)(c.Path,{d:"M4 9h16v2H4V9zm0 4h10v2H4v-2z"})),edit:Z("text")})},{name:"field-name",settings:i()({},$,{title:Object(S.a)("Name"),description:Object(S.a)("Introductions are important. Add an input for folks to add their name."),icon:Object(A.a)(Object(a.createElement)(c.Path,{d:"M12 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 10c2.7 0 5.8 1.29 6 2H6c.23-.72 3.31-2 6-2m0-12C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 10c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"})),edit:Z("text")})},{name:"field-email",settings:i()({},$,{title:Object(S.a)("Email"),keywords:[Object(S.a)("e-mail"),Object(S.a)("mail"),"email"],description:Object(S.a)("Want to reply to folks? Add an email address input."),icon:Object(A.a)(Object(a.createElement)(c.Path,{d:"M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z"})),edit:Z("email")})},{name:"field-url",settings:i()({},$,{title:Object(S.a)("Website"),keywords:["url",Object(S.a)("internet page"),"link"],description:Object(S.a)("Add an address input for a website."),icon:Object(A.a)(Object(a.createElement)(c.Path,{d:"M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z"})),edit:Z("url")})},{name:"field-date",settings:i()({},$,{title:Object(S.a)("Date Picker"),keywords:[Object(S.a)("Calendar"),Object(S.a)("day month year","block search term")],description:Object(S.a)("The best way to set a date. Add a date picker."),icon:Object(A.a)(Object(a.createElement)(c.Path,{d:"M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V9h14v10zm0-12H5V5h14v2zM7 11h5v5H7z"})),edit:Z("text")})},{name:"field-telephone",settings:i()({},$,{title:Object(S.a)("Telephone"),keywords:[Object(S.a)("Phone"),Object(S.a)("Cellular phone"),Object(S.a)("Mobile")],description:Object(S.a)("Add a phone number input."),icon:Object(A.a)(Object(a.createElement)(c.Path,{d:"M6.54 5c.06.89.21 1.76.45 2.59l-1.2 1.2c-.41-1.2-.67-2.47-.76-3.79h1.51m9.86 12.02c.85.24 1.72.39 2.6.45v1.49c-1.32-.09-2.59-.35-3.8-.75l1.2-1.19M7.5 3H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.49c0-.55-.45-1-1-1-1.24 0-2.45-.2-3.57-.57-.1-.04-.21-.05-.31-.05-.26 0-.51.1-.71.29l-2.2 2.2c-2.83-1.45-5.15-3.76-6.59-6.59l2.2-2.2c.28-.28.36-.67.25-1.02C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1z"})),edit:Z("tel")})},{name:"field-textarea",settings:i()({},$,{title:Object(S.a)("Message"),keywords:[Object(S.a)("Textarea"),"textarea",Object(S.a)("Multiline text")],description:Object(S.a)("Let folks speak their mind. This text box is great for longer responses."),icon:Object(A.a)(Object(a.createElement)(c.Path,{d:"M21 11.01L3 11v2h18zM3 16h12v2H3zM21 6H3v2.01L21 8z"})),edit:function(e){return Object(a.createElement)(I,{label:G(e),required:e.attributes.required,setAttributes:e.setAttributes,isSelected:e.isSelected,defaultValue:e.attributes.defaultValue,placeholder:e.attributes.placeholder,id:e.attributes.id})}})},{name:"field-checkbox",settings:i()({},$,{title:Object(S.a)("Checkbox"),keywords:[Object(S.a)("Confirm"),Object(S.a)("Accept")],description:Object(S.a)("Add a single checkbox."),icon:Object(A.a)(Object(a.createElement)(c.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zM17.99 9l-1.41-1.42-6.59 6.59-2.58-2.57-1.42 1.41 4 3.99z"})),edit:function(e){return Object(a.createElement)(R,{label:e.attributes.label,required:e.attributes.required,setAttributes:e.setAttributes,isSelected:e.isSelected,defaultValue:e.attributes.defaultValue,id:e.attributes.id})},attributes:i()({},$.attributes,{label:{type:"string",default:""}})})},{name:"field-checkbox-multiple",settings:i()({},$,{title:Object(S.a)("Checkbox Group"),keywords:[Object(S.a)("Choose Multiple"),Object(S.a)("Option")],description:Object(S.a)("People love options. Add several checkbox items."),icon:Object(A.a)(Object(a.createElement)(c.Path,{d:"M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.41z"})),edit:K("checkbox"),attributes:i()({},$.attributes,{label:{type:"string",default:"Choose several"}})})},{name:"field-radio",settings:i()({},$,{title:Object(S.a)("Radio"),keywords:[Object(S.a)("Choose"),Object(S.a)("Select"),Object(S.a)("Option")],description:Object(S.a)("Inpsired by radios, only one radio item can be selected at a time. Add several radio button items."),icon:Object(A.a)(Object(a.createElement)(a.Fragment,null,Object(a.createElement)(c.Path,{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),Object(a.createElement)(c.Circle,{cx:"12",cy:"12",r:"5"}))),edit:K("radio"),attributes:i()({},$.attributes,{label:{type:"string",default:"Choose one"}})})},{name:"field-select",settings:i()({},$,{title:Object(S.a)("Select"),keywords:[Object(S.a)("Choose"),Object(S.a)("Dropdown"),Object(S.a)("Option")],description:Object(S.a)("Compact, but powerful. Add a select box with several items."),icon:Object(A.a)(Object(a.createElement)(c.Path,{d:"M3 17h18v2H3zm16-5v1H5v-1h14m2-2H3v5h18v-5zM3 6h18v2H3z"})),edit:K("select"),attributes:i()({},$.attributes,{label:{type:"string",default:"Select one"}})})}];Object(r.a)("contact-form",H,W)},function(e,t,n){"use strict";n.r(t);var r=n(22),o=n(23),i=n(7),a=n.n(i),s=n(6),c=n.n(s),l=n(8),u=n.n(l),p=n(9),h=n.n(p),d=n(10),f=n.n(d),m=n(2),b=n.n(m),g=n(4),v=n.n(g),y=n(0),_=n(29),k=n.n(_),O=n(1),j=n(3),C=n(11),w=n(15),E=n.n(w),x=n(12),S=n.n(x),A=n(5),D=n(28),M=n(14),T=n(19);function F(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=[],r=0;r<e.length;r++){var o=e[r],i=o.keywords,a=void 0===i?[]:i;if("string"==typeof o.label&&(a=[].concat(E()(a),[o.label])),n.push(o),n.length===t)break}return n}var z=function(e){function t(){var e;return a()(this,t),e=u()(this,h()(t).apply(this,arguments)),v()(b()(b()(e)),"select",function(t){(e.props.completer.getOptionCompletion||{})(t),e.reset()}),v()(b()(b()(e)),"reset",function(){e.setState(e.constructor.getInitialState())}),v()(b()(b()(e)),"onChange",function(t){var n=e.props.completer,r=e.state.options;if(t){n&&(n.isDebounced?e.debouncedLoadOptions(n,t):e.loadOptions(n,t));var o=n?F(r):[];n&&e.setState({selectedIndex:0,filteredOptions:o,query:t})}else e.reset()}),v()(b()(b()(e)),"onKeyDown",function(t){var n=e.state,r=n.isOpen,o=n.selectedIndex,i=n.filteredOptions;if(r){var a;switch(t.keyCode){case D.UP:a=(0===o?i.length:o)-1,e.setState({selectedIndex:a});break;case D.DOWN:a=(o+1)%i.length,e.setState({selectedIndex:a});break;case D.ENTER:e.select(i[o]);break;case D.LEFT:case D.RIGHT:case D.ESCAPE:return void e.reset();default:return}t.preventDefault(),t.stopPropagation()}}),e.debouncedLoadOptions=Object(A.debounce)(e.loadOptions,250),e.state=e.constructor.getInitialState(),e}return f()(t,e),c()(t,null,[{key:"getInitialState",value:function(){return{selectedIndex:0,query:void 0,filteredOptions:[],isOpen:!1}}}]),c()(t,[{key:"componentWillUnmount",value:function(){this.debouncedLoadOptions.cancel()}},{key:"handleFocusOutside",value:function(){this.reset()}},{key:"loadOptions",value:function(e,t){var n=this,r=e.options,o=this.activePromise=Promise.resolve("function"==typeof r?r(t):r).then(function(t){var r;if(o===n.activePromise){var i=t.map(function(t,n){return{key:"".concat(n),value:t,label:e.getOptionLabel(t),keywords:e.getOptionKeywords?e.getOptionKeywords(t):[]}}),a=F(i),s=a.length===n.state.filteredOptions.length?n.state.selectedIndex:0;n.setState((r={},v()(r,"options",i),v()(r,"filteredOptions",a),v()(r,"selectedIndex",s),v()(r,"isOpen",a.length>0),r)),n.announce(a)}})}},{key:"announce",value:function(e){var t=this.props.debouncedSpeak;t&&(e.length?t(Object(M.sprintf)(Object(O.b)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",e.length,"jetpack"),e.length),"assertive"):t(Object(O.a)("No results."),"assertive"))}},{key:"render",value:function(){var e=this,t=this.onChange,n=this.onKeyDown,r=this.props,o=r.children,i=r.instanceId,a=r.completer,s=this.state,c=s.selectedIndex,l=s.filteredOptions,u=(l[c]||{}).key,p=void 0===u?"":u,h=a.className,d=l.length>0,f=d?"components-autocomplete-listbox-".concat(i):null,m=d?"components-autocomplete-item-".concat(i,"-").concat(p):null;return Object(y.createElement)("div",{className:"components-autocomplete"},o({isExpanded:d,listBoxId:f,activeId:m,onChange:t,onKeyDown:n}),d&&Object(y.createElement)(j.Popover,{focusOnMount:!1,onClose:this.reset,position:"top center",className:"components-autocomplete__popover",noArrow:!0},Object(y.createElement)("div",{id:f,role:"listbox",className:"components-autocomplete__results"},Object(A.map)(l,function(t,n){return Object(y.createElement)(j.Button,{key:t.key,id:"components-autocomplete-item-".concat(i,"-").concat(t.key),role:"option","aria-selected":n===c,disabled:t.isDisabled,className:S()("components-autocomplete__result",h,{"is-selected":n===c}),onClick:function(){return e.select(t)}},t.label)}))))}}]),t}(y.Component),P=Object(T.compose)([j.withSpokenMessages,T.withInstanceId,j.withFocusOutside])(z),N=Object(O.a)("Add a marker..."),I=function(e){function t(){var e;return a()(this,t),e=u()(this,h()(t).apply(this,arguments)),v()(b()(b()(e)),"getOptionCompletion",function(t){var n=t.value,r={placeTitle:n.text,title:n.text,caption:n.place_name,id:n.id,coordinates:{longitude:n.geometry.coordinates[0],latitude:n.geometry.coordinates[1]}};return e.props.onAddPoint(r),n.text}),v()(b()(b()(e)),"search",function(t){var n=e.props,r=n.apiKey,o=n.onError,i="https://api.mapbox.com/geocoding/v5/mapbox.places/"+encodeURI(t)+".json?access_token="+r;return new Promise(function(e,t){var n=new XMLHttpRequest;n.open("GET",i),n.onload=function(){if(200===n.status){var r=JSON.parse(n.responseText);e(r.features)}else{var i=JSON.parse(n.responseText);o(i.statusText,i.responseJSON.message),t(new Error("Mapbox Places Error"))}},n.send()})}),v()(b()(b()(e)),"onReset",function(){e.textRef.current.value=null}),e.textRef=Object(y.createRef)(),e.containerRef=Object(y.createRef)(),e.state={isEmpty:!0},e.autocompleter={name:"placeSearch",options:e.search,isDebounced:!0,getOptionLabel:function(e){return Object(y.createElement)("span",null,e.place_name)},getOptionKeywords:function(e){return[e.place_name]},getOptionCompletion:e.getOptionCompletion},e}return f()(t,e),c()(t,[{key:"componentDidMount",value:function(){var e=this;setTimeout(function(){e.containerRef.current.querySelector("input").focus()},50)}},{key:"render",value:function(){var e=this,t=this.props.label;return Object(y.createElement)("div",{ref:this.containerRef},Object(y.createElement)(j.BaseControl,{label:t,className:"components-location-search"},Object(y.createElement)(P,{completer:this.autocompleter,onReset:this.onReset},function(t){var n=t.isExpanded,r=t.listBoxId,o=t.activeId,i=t.onChange,a=t.onKeyDown;return Object(y.createElement)(j.TextControl,{placeholder:N,ref:e.textRef,onChange:i,"aria-expanded":n,"aria-owns":r,"aria-activedescendant":o,onKeyDown:a})})))}}]),t}(y.Component);I.defaultProps={onError:function(){}};var R=I,L=(n(117),function(e){function t(){return a()(this,t),u()(this,h()(t).apply(this,arguments))}return f()(t,e),c()(t,[{key:"render",value:function(){var e=this.props,t=e.onClose,n=e.onAddPoint,r=e.onError,o=e.apiKey;return Object(y.createElement)(j.Button,{className:"component__add-point"},Object(O.a)("Add marker"),Object(y.createElement)(j.Popover,{className:"component__add-point__popover"},Object(y.createElement)(j.Button,{className:"component__add-point__close",onClick:t},Object(y.createElement)(j.Dashicon,{icon:"no"})),Object(y.createElement)(R,{onAddPoint:n,label:Object(O.a)("Add a location"),apiKey:o,onError:r})))}}]),t}(y.Component));L.defaultProps={onAddPoint:function(){},onClose:function(){},onError:function(){}};var q=L,B=(n(119),function(e){function t(){var e;return a()(this,t),e=u()(this,h()(t).apply(this,arguments)),v()(b()(b()(e)),"onDeletePoint",function(t){var n=parseInt(t.target.getAttribute("data-id")),r=e.props,o=r.points,i=r.onChange,a=o.slice(0);a.splice(n,1),i(a)}),e.state={selectedCell:null},e}return f()(t,e),c()(t,[{key:"setMarkerField",value:function(e,t,n){var r=this.props,o=r.points,i=r.onChange,a=o.slice(0);a[n][e]=t,i(a)}},{key:"render",value:function(){var e=this,t=this.props.points.map(function(t,n){return Object(y.createElement)(j.PanelBody,{title:t.placeTitle,key:t.id,initialOpen:!1},Object(y.createElement)(j.TextControl,{label:"Marker Title",value:t.title,onChange:function(t){return e.setMarkerField("title",t,n)}}),Object(y.createElement)(j.TextareaControl,{label:"Marker Caption",value:t.caption,rows:"3",onChange:function(t){return e.setMarkerField("caption",t,n)}}),Object(y.createElement)(j.Button,{"data-id":n,onClick:e.onDeletePoint,className:"component__locations__delete-btn"},Object(y.createElement)(j.Dashicon,{icon:"trash",size:"15"})," Delete Marker"))});return Object(y.createElement)("div",{className:"component__locations"},Object(y.createElement)(j.Panel,{className:"component__locations__panel"},t))}}]),t}(y.Component));B.defaultProps={points:Object.freeze([]),onChange:function(){}};var V=B,U=n(51),H=(n(121),function(e){function t(){return a()(this,t),u()(this,h()(t).apply(this,arguments))}return f()(t,e),c()(t,[{key:"render",value:function(){var e=this.props,t=e.options,n=e.value,r=e.onChange,o=e.label,i=t.map(function(e,t){var o=S()("component__map-theme-picker__button","is-theme-"+e.value,e.value===n?"is-selected":"");return Object(y.createElement)(j.Button,{className:o,title:e.label,key:t,onClick:function(){return r(e.value)}},e.label)});return Object(y.createElement)("div",{className:"component__map-theme-picker components-base-control"},Object(y.createElement)("label",{className:"components-base-control__label"},o),Object(y.createElement)(j.ButtonGroup,null,i))}}]),t}(y.Component));H.defaultProps={label:"",options:[],value:null,onChange:function(){}};var $=H,G=0,Z=function(e){function t(){var e;return a()(this,t),e=u()(this,h()(t).apply(this,arguments)),v()(b()(b()(e)),"addPoint",function(t){var n=e.props,r=n.attributes,o=n.setAttributes,i=r.points,a=i.slice(0),s=!1;i.map(function(e){e.id===t.id&&(s=!0)}),s||(a.push(t),o({points:a}),e.setState({addPointVisibility:!1}))}),v()(b()(b()(e)),"updateAlignment",function(t){e.props.setAttributes({align:t}),setTimeout(e.mapRef.current.sizeMap,0)}),v()(b()(b()(e)),"updateAPIKeyControl",function(t){e.setState({apiKeyControl:t})}),v()(b()(b()(e)),"updateAPIKey",function(){var t=e.props.noticeOperations,n=e.state.apiKeyControl;t.removeAllNotices(),n&&e.apiCall(n,"POST")}),v()(b()(b()(e)),"removeAPIKey",function(){e.apiCall(null,"DELETE")}),v()(b()(b()(e)),"onError",function(t,n){var r=e.props.noticeOperations;r.removeAllNotices(),r.createErrorNotice(n)}),e.state={addPointVisibility:!1,apiState:G},e.mapRef=Object(y.createRef)(),e}return f()(t,e),c()(t,[{key:"apiCall",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET",r=this.props.noticeOperations,o=this.state.apiKey,i="/wpcom/v2/service-api-keys/mapbox",a=t?{path:i,method:n,data:{service_api_key:t}}:{path:i,method:n};this.setState({apiRequestOutstanding:!0},function(){k()(a).then(function(t){r.removeAllNotices(),e.setState({apiState:t.service_api_key?2:1,apiKey:t.service_api_key,apiKeyControl:t.service_api_key,apiRequestOutstanding:!1})},function(t){e.onError(null,t.message),e.setState({apiRequestOutstanding:!1,apiKeyControl:o})})})}},{key:"componentDidMount",value:function(){this.apiCall()}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.setAttributes,i=t.attributes,a=t.noticeUI,s=t.notices,c=i.mapStyle,l=i.mapDetails,u=i.points,p=i.zoom,h=i.mapCenter,d=i.markerColor,f=i.align,m=this.state,b=m.addPointVisibility,g=m.apiKey,v=m.apiKeyControl,_=m.apiState,k=m.apiRequestOutstanding,w=Object(y.createElement)(y.Fragment,null,Object(y.createElement)(C.BlockControls,null,Object(y.createElement)(C.BlockAlignmentToolbar,{value:f,onChange:this.updateAlignment,controls:["center","wide","full"]}),Object(y.createElement)(j.Toolbar,null,Object(y.createElement)(j.IconButton,{icon:o.a.markerIcon,label:"Add a marker",onClick:function(){return e.setState({addPointVisibility:!0})}}))),Object(y.createElement)(C.InspectorControls,null,Object(y.createElement)(j.PanelBody,{title:Object(O.a)("Map Theme")},Object(y.createElement)($,{value:c,onChange:function(e){return r({mapStyle:e})},options:o.a.mapStyleOptions}),Object(y.createElement)(j.ToggleControl,{label:Object(O.a)("Show street names"),checked:l,onChange:function(e){return r({mapDetails:e})}})),Object(y.createElement)(C.PanelColorSettings,{title:Object(O.a)("Colors"),initialOpen:!0,colorSettings:[{value:d,onChange:function(e){return r({markerColor:e})},label:"Marker Color"}]}),u.length?Object(y.createElement)(j.PanelBody,{title:Object(O.a)("Markers"),initialOpen:!1},Object(y.createElement)(V,{points:u,onChange:function(e){r({points:e})}})):null,Object(y.createElement)(j.PanelBody,{title:Object(O.a)("Mapbox Access Token"),initialOpen:!1},Object(y.createElement)(j.TextControl,{label:Object(O.a)("Mapbox Access Token"),value:v,onChange:function(t){return e.setState({apiKeyControl:t})}}),Object(y.createElement)(j.ButtonGroup,null,Object(y.createElement)(j.Button,{type:"button",onClick:this.updateAPIKey,isDefault:!0},Object(O.a)("Update Token")),Object(y.createElement)(j.Button,{type:"button",onClick:this.removeAPIKey,isDefault:!0},Object(O.a)("Remove Token")))))),E=Object(y.createElement)(j.Placeholder,{icon:o.a.icon},Object(y.createElement)(j.Spinner,null)),x=Object(y.createElement)(j.Placeholder,{icon:o.a.icon,label:Object(O.a)("Map"),notices:s},Object(y.createElement)(y.Fragment,null,Object(y.createElement)("div",{className:"components-placeholder__instructions"},Object(O.a)("To use the map block, you need an Access Token."),Object(y.createElement)("br",null),Object(y.createElement)(j.ExternalLink,{href:"https://www.mapbox.com"},Object(O.a)("Create an account or log in to Mapbox.")),Object(y.createElement)("br",null),Object(O.a)("Locate and copy the default access token. Then, paste it into the field below.")),Object(y.createElement)(j.TextControl,{className:"wp-block-jetpack-map-components-text-control-api-key",disabled:k,placeholder:Object(O.a)("Paste Token Here"),value:v,onChange:this.updateAPIKeyControl}),Object(y.createElement)(j.Button,{className:"wp-block-jetpack-map-components-text-control-api-key-submit",isLarge:!0,disabled:k||!v||v.length<1,onClick:this.updateAPIKey},Object(O.a)("Set Token")))),S=Object(y.createElement)(y.Fragment,null,w,Object(y.createElement)("div",{className:n},Object(y.createElement)(U.a,{ref:this.mapRef,mapStyle:c,mapDetails:l,points:u,zoom:p,mapCenter:h,markerColor:d,onSetZoom:function(e){r({zoom:e})},admin:!0,apiKey:g,onSetPoints:function(e){return r({points:e})},onMapLoaded:function(){return e.setState({addPointVisibility:!0})},onMarkerClick:function(){return e.setState({addPointVisibility:!1})},onError:this.onError},b&&Object(y.createElement)(q,{onAddPoint:this.addPoint,onClose:function(){return e.setState({addPointVisibility:!1})},apiKey:g,onError:this.onError,tagName:"AddPoint"}))));return Object(y.createElement)(y.Fragment,null,a,_===G&&E,1===_&&x,2===_&&S)}}]),t}(y.Component),K=Object(j.withNotices)(Z),W=function(e){function t(){return a()(this,t),u()(this,h()(t).apply(this,arguments))}return f()(t,e),c()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.align,n=e.mapStyle,r=e.mapDetails,o=e.points,i=e.zoom,a=e.mapCenter,s=e.markerColor,c=o.map(function(e,t){var n=e.coordinates,r=n.longitude,o="https://www.google.com/maps/search/?api=1&query="+n.latitude+","+r;return Object(y.createElement)("li",{key:t},Object(y.createElement)("a",{href:o},e.title))}),l=t?"align".concat(t):null;return Object(y.createElement)("div",{className:l,"data-map-style":n,"data-map-details":r,"data-points":JSON.stringify(o),"data-zoom":i,"data-map-center":JSON.stringify(a),"data-marker-color":s},o.length>0&&Object(y.createElement)("ul",null,c))}}]),t}(y.Component),J=(n(74),n(123),o.a.name),Y={title:o.a.title,icon:o.a.icon,category:o.a.category,keywords:o.a.keywords,description:o.a.description,attributes:o.a.attributes,supports:o.a.supports,getEditWrapperProps:function(e){var t=e.align;if(-1!==o.a.validAlignments.indexOf(t))return{"data-align":t}},edit:K,save:W};Object(r.a)(J,Y)},function(e,t,n){"use strict";n.r(t);var r=n(22),o=n(0),i=n(3),a=(n(125),n(7)),s=n.n(a),c=n(6),l=n.n(c),u=n(8),p=n.n(u),h=n(9),d=n.n(h),f=n(10),m=n.n(f),b=n(2),g=n.n(b),v=n(4),y=n.n(v),_=n(11),k=n(19),O=n(17),j=n(90),C=n.n(j),w=n(1),E=new C.a,x=function(e){"A"===e.target.nodeName&&(window.confirm(Object(w.a)("Are you sure you wish to leave this page?"))||e.preventDefault())},S=function(e){var t=e.className,n=e.source,r=void 0===n?"":n;return Object(o.createElement)(o.RawHTML,{className:t,onClick:x},r.length?E.render(r):"")},A="editor",D=function(e){function t(){var e,n;s()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=p()(this,(e=d()(t)).call.apply(e,[this].concat(o))),y()(g()(g()(n)),"input",null),y()(g()(g()(n)),"state",{activePanel:A}),y()(g()(g()(n)),"bindInput",function(e){n.input=e}),y()(g()(g()(n)),"updateSource",function(e){return n.props.setAttributes({source:e})}),y()(g()(g()(n)),"handleKeyDown",function(e){var t=n.props,r=t.attributes,o=t.removeBlock,i=r.source;8===e.keyCode&&""===i&&(o(),e.preventDefault())}),y()(g()(g()(n)),"toggleMode",function(e){return function(){return n.setState({activePanel:e})}}),n}return m()(t,e),l()(t,[{key:"componentDidUpdate",value:function(e){e.isSelected&&!this.props.isSelected&&"preview"===this.state.activePanel&&this.toggleMode(A)(),!e.isSelected&&this.props.isSelected&&this.state.activePanel===A&&this.input&&this.input.focus()}},{key:"isEmpty",value:function(){var e=this.props.attributes.source;return!e||""===e.trim()}},{key:"renderToolbarButton",value:function(e,t){var n=this.state.activePanel;return Object(o.createElement)("button",{className:"components-tab-button ".concat(n===e?"is-active":""),onClick:this.toggleMode(e)},Object(o.createElement)("span",null,t))}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.className,r=e.isSelected,i=t.source,a=this.state.activePanel;return!r&&this.isEmpty()?Object(o.createElement)("p",{className:"".concat(n,"__placeholder")},Object(w.a)("Write your _Markdown_ **here**...")):Object(o.createElement)("div",{className:n},Object(o.createElement)(_.BlockControls,null,Object(o.createElement)("div",{className:"components-toolbar"},this.renderToolbarButton(A,Object(w.a)("Markdown")),this.renderToolbarButton("preview",Object(w.a)("Preview")))),"preview"!==a&&r?Object(o.createElement)(_.PlainText,{className:"".concat(n,"__editor"),onChange:this.updateSource,onKeyDown:this.handleKeyDown,"aria-label":Object(w.a)("Markdown"),innerRef:this.bindInput,value:i}):Object(o.createElement)(S,{className:"".concat(n,"__preview"),source:i}))}}]),t}(o.Component),M=Object(k.compose)([Object(O.withSelect)(function(e){return{currentBlockId:e("core/editor").getSelectedBlockClientId()}}),Object(O.withDispatch)(function(e,t){var n=t.currentBlockId;return{removeBlock:function(){return e("core/editor").removeBlocks(n)}}})])(D),T={title:Object(w.a)("Markdown"),description:Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",null,Object(w.a)("Use regular characters and punctuation to style text, links, and lists.")),Object(o.createElement)(i.ExternalLink,{href:"https://en.support.wordpress.com/markdown-quick-reference/"},Object(w.a)("Support reference"))),icon:Object(o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 208 128"},Object(o.createElement)("rect",{width:"198",height:"118",x:"5",y:"5",ry:"10",stroke:"currentColor",strokeWidth:"10",fill:"none"}),Object(o.createElement)("path",{d:"M30 98v-68h20l20 25 20-25h20v68h-20v-39l-20 25-20-25v39zM155 98l-30-33h20v-35h20v35h20z"})),category:"jetpack",keywords:[Object(w.a)("formatting"),Object(w.a)("syntax"),Object(w.a)("markup")],attributes:{source:{type:"string"}},supports:{html:!1},edit:M,save:function(e){var t=e.attributes,n=e.className;return Object(o.createElement)(S,{className:n,source:t.source})}};Object(r.a)("markdown",T)},function(e,t,n){"use strict";n.r(t);var r=n(22),o=n(0),i=n(7),a=n.n(i),s=n(6),c=n.n(s),l=n(8),u=n.n(l),p=n(9),h=n.n(p),d=n(10),f=n.n(d),m=n(2),b=n.n(m),g=n(4),v=n.n(g),y=n(3),_=n(1),k=n(37),O=n(29),j=n.n(O),C=n(14),w=function(e){function t(){var e,n;a()(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=u()(this,(e=h()(t)).call.apply(e,[this].concat(o))),v()(b()(b()(n)),"state",{subscriberCountString:""}),n}return f()(t,e),c()(t,[{key:"componentDidMount",value:function(){this.get_subscriber_count()}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.className,r=e.isSelected,i=e.setAttributes,a=t.subscribePlaceholder,s=t.showSubscribersTotal;return r?Object(o.createElement)("div",{className:n,role:"form"},Object(o.createElement)(y.ToggleControl,{label:Object(_.a)("Show total subscribers"),checked:s,onChange:function(){i({showSubscribersTotal:!s})}}),Object(o.createElement)(y.TextControl,{placeholder:a,disabled:!0,onChange:function(){}}),Object(o.createElement)(k.a,this.props)):Object(o.createElement)("div",{className:n,role:"form"},s&&Object(o.createElement)("p",{role:"heading"},this.state.subscriberCountString),Object(o.createElement)(y.TextControl,{placeholder:a}),Object(o.createElement)(k.a,this.props))}},{key:"get_subscriber_count",value:function(){var e=this;j()({path:"/wpcom/v2/subscribers/count"}).then(function(t){t.hasOwnProperty("count")?e.setState({subscriberCountString:Object(C.sprintf)(Object(C._n)("Join %s other subscriber","Join %s other subscribers",t.count),t.count)}):e.setState({subscriberCountString:Object(_.a)("Subscriber count unavailable")})})}},{key:"onChangeSubmit",value:function(e){this.props.setAttributes({submitButtonText:e})}}]),t}(o.Component);var E=n(21),x=n(5),S={title:Object(_.a)("Subscription Form"),description:Object(o.createElement)("p",null,Object(_.a)("A form enabling readers to get notifications when new posts are published from this site.")),icon:Object(E.a)(Object(o.createElement)(y.Path,{d:"M23 16v2h-3v3h-2v-3h-3v-2h3v-3h2v3h3zM20 2v9h-4v3h-3v4H4c-1.1 0-2-.9-2-2V2h18zM8 13v-1H4v1h4zm3-3H4v1h7v-1zm0-2H4v1h7V8zm7-4H4v2h14V4z"})),category:"jetpack",keywords:[Object(_.a)("subscribe"),Object(_.a)("join"),Object(_.a)("follow")],attributes:{subscribePlaceholder:{type:"string",default:Object(_.a)("Email Address")},subscribeButton:{type:"string",default:Object(_.a)("Subscribe")},showSubscribersTotal:{type:"boolean",default:!1},submitButtonText:{type:"string",default:Object(_.a)("Subscribe")},customBackgroundButtonColor:{type:"string"},customTextButtonColor:{type:"string"},submitButtonClasses:{type:"string"}},edit:w,save:function(e){var t=e.attributes,n=t.showSubscribersTotal,r=t.submitButtonClasses,i=t.customBackgroundButtonColor,a=t.customTextButtonColor,s=t.submitButtonText;return Object(o.createElement)(o.RawHTML,null,'[jetpack_subscription_form show_only_email_and_button="true" custom_background_button_color="'.concat(i,'" custom_text_button_color="').concat(a,'" submit_button_text="').concat(s,'" submit_button_classes="').concat(r,'" show_subscribers_total="').concat(n,'" ]'))},deprecated:[{attributes:{subscribeButton:{type:"string",default:Object(_.a)("Subscribe")},showSubscribersTotal:{type:"boolean",default:!1}},migrate:function(e){return{subscribeButton:"",submitButtonText:e.subscribeButton,showSubscribersTotal:e.showSubscribersTotal,customBackgroundButtonColor:"",customTextButtonColor:"",submitButtonClasses:""}},isEligible:function(e){return!!Object(x.isEmpty)(e.subscribeButton)},save:function(e){var t=e.attributes;return Object(o.createElement)(o.RawHTML,null,'[jetpack_subscription_form show_subscribers_total="'.concat(t.showSubscribersTotal,'" show_only_email_and_button="true"]'))}}]};Object(r.a)("subscriptions",S)},function(e,t,n){"use strict";n.r(t);var r=n(22),o=n(0),i=n(1),a=n(3),s=n(7),c=n.n(s),l=n(6),u=n.n(l),p=n(8),h=n.n(p),d=n(9),f=n.n(d),m=n(10),b=n.n(m),g=n(2),v=n.n(g),y=n(4),_=n.n(y),k=n(12),O=n.n(k),j=n(11),C="t1PkR1Vq0mzHueIFBvZSZErgFs9NBmYW",w=Object(i.a)("Search for a term or paste a Giphy URL"),E=function(e){function t(){var e,n;c()(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=h()(this,(e=f()(t)).call.apply(e,[this].concat(i))),_()(v()(v()(n)),"textControlRef",Object(o.createRef)()),_()(v()(v()(n)),"state",{captionFocus:!1,results:null}),_()(v()(v()(n)),"onFormSubmit",function(e){e.preventDefault(),n.onSubmit()}),_()(v()(v()(n)),"onSubmit",function(){var e=n.props.attributes.searchText;n.parseSearch(e)}),_()(v()(v()(n)),"parseSearch",function(e){var t=null;-1!==e.indexOf("//giphy.com/gifs")&&(t=n.splitAndLast(n.splitAndLast(e,"/"),"-")),-1!==e.indexOf("//i.giphy.com")&&(t=n.splitAndLast(e,"/").replace(".gif",""));var r=e.match(/http[s]?:\/\/media.giphy.com\/media\/([A-Za-z0-9\-\.]+)\/giphy.gif/);return r&&(t=r[1]),t?n.fetch(n.urlForId(t)):n.fetch(n.urlForSearch(e))}),_()(v()(v()(n)),"urlForSearch",function(e){return"https://api.giphy.com/v1/gifs/search?q=".concat(encodeURIComponent(e),"&api_key=").concat(encodeURIComponent(C),"&limit=10")}),_()(v()(v()(n)),"urlForId",function(e){return"https://api.giphy.com/v1/gifs/".concat(encodeURIComponent(e),"?api_key=").concat(encodeURIComponent(C))}),_()(v()(v()(n)),"splitAndLast",function(e,t){var n=e.split(t);return n[n.length-1]}),_()(v()(v()(n)),"fetch",function(e){var t=new XMLHttpRequest;t.open("GET",e),t.onload=function(){if(200===t.status){var e=JSON.parse(t.responseText),r=void 0!==e.data.images?[e.data]:e.data,o=r[0];if(!o.images)return;n.setState({results:r},function(){n.selectGiphy(o)})}},t.send()}),_()(v()(v()(n)),"selectGiphy",function(e){var t=n.props.setAttributes,r=Math.floor(e.images.original.height/e.images.original.width*100),o="".concat(r,"%");t({giphyUrl:e.embed_url,paddingTop:o})}),_()(v()(v()(n)),"setFocus",function(){n.textControlRef.current.querySelector("input").focus(),n.setState({captionFocus:!1})}),_()(v()(v()(n)),"hasSearchText",function(){var e=n.props.attributes.searchText;return e&&e.length>0}),_()(v()(v()(n)),"thumbnailClicked",function(e){n.selectGiphy(e)}),n}return b()(t,e),u()(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.className,s=t.isSelected,c=t.setAttributes,l=n.align,u=n.caption,p=n.giphyUrl,h=n.searchText,d=n.paddingTop,f=this.state,m=f.captionFocus,b=f.results,g={paddingTop:d},v=O()(r,"align".concat(l)),y=Object(o.createElement)("form",{className:"wp-block-jetpack-gif_input-container",onSubmit:this.onFormSubmit,ref:this.textControlRef},Object(o.createElement)(a.TextControl,{className:"wp-block-jetpack-gif_input",label:w,placeholder:w,onChange:function(e){return c({searchText:e})},value:h}),Object(o.createElement)(a.Button,{isLarge:!0,onClick:this.onSubmit},Object(i.a)("Search")));return Object(o.createElement)("div",{className:v},Object(o.createElement)(j.InspectorControls,null,Object(o.createElement)(a.PanelBody,{className:"components-panel__body-gif-branding"},Object(o.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 202 22"},Object(o.createElement)(a.Path,{d:"M4.6 5.9H0v10h1.6v-3.1h3c4.8 0 4.8-6.9 0-6.9zm0 5.4h-3v-4h3c2.6.1 2.6 4 0 4zM51.2 12.3c2-.3 2.7-1.7 2.7-3.1 0-1.7-1.2-3.3-3.5-3.3h-4.6v10h1.6v-3.4h2.1l3 3.4h1.9l-.2-.3-3-3.3zM47.4 11V7.4h3c1.3 0 1.9.9 1.9 1.8s-.6 1.8-1.9 1.8h-3zM30.6 13.6L28 5.9h-1.1l-2.5 7.7-2.6-7.7H20l3.7 10H25l1.4-3.5L27.5 9l1.1 3.4 1.3 3.5h1.4l3.5-10h-1.7z"}),Object(o.createElement)(a.Path,{d:"M14.4 5.7c-3 0-5.1 2.2-5.1 5.2 0 2.6 1.6 5.1 5.1 5.1 3.5 0 5.1-2.5 5.1-5.2-.1-2.6-1.7-5.1-5.1-5.1zm-.1 8.9c-2.5 0-3.5-1.9-3.5-3.7 0-2.2 1.2-3.8 3.5-3.8 2.4 0 3.5 2 3.5 3.8.1 2-1 3.7-3.5 3.7zM57.7 11.6h5.5v-1.5h-5.5V7.4h5.7V5.9h-7.3v10h7.3v-1.6h-5.7zM38 14.3v-2.7h5.5v-1.5H38V7.4h5.7V5.9h-7.3v10h7.3v-1.6zM93 10.3l-2.7-4.4h-1.9V6l3.8 5.8v4.1h1.6v-4.1l4-5.8v-.1h-2zM69.3 5.9h-3.8v10h3.8c3.5 0 5.1-2.5 5-5.1-.1-2.5-1.6-4.9-5-4.9zm0 8.4h-2.2V7.4h2.2c2.3 0 3.4 1.7 3.4 3.4s-1 3.5-3.4 3.5zM86.3 10.7c.9-.4 1.4-1.1 1.4-2 0-2-1.5-2.8-3.4-2.8h-4.6v10h4.6c2 0 3.7-.7 3.7-2.8 0-.8-.5-2-1.7-2.4zm-5-3.4h3c1.2 0 1.8.7 1.8 1.4 0 .8-.6 1.3-1.8 1.3h-3V7.3zm3 7.1h-3v-2.9h3c.9 0 2.1.5 2.1 1.6 0 1-1.2 1.3-2.1 1.3zM113.9 13.3h5.3V16c-1.2.9-2.9 1.1-4 1.1-4.2 0-5.6-3.3-5.6-6 0-4.1 2.2-6.1 5.6-6.1 1.4 0 3.2.4 4.8 1.8l3.4-3.4C120.7.6 118.1 0 115.2 0c-7.8 0-11.4 5.6-11.4 11s3.1 10.9 11.4 10.9c4 0 7.6-1.4 8.9-4.1V8.6h-10.2v4.7zM171.9 8.5h-7.4V.6h-5.9v20.8h5.9v-7.8h7.4v7.8h5.9V.6h-5.9zM195.1.6l-4.5 7.1-4.3-7.1h-6.6v.2l7.9 12.3v8.3h5.9v-8.3L201.8.9V.6zM127.4.6h5.9v20.8h-5.9zM147.6.6h-10.1v20.8h5.9v-5.6h4.2c5.6-.1 8.3-3.4 8.3-7.6.1-4.1-2.7-7.6-8.3-7.6zm0 10.2h-4.2V5.6h4.2c1.6 0 2.5 1.2 2.5 2.6 0 1.4-.9 2.6-2.5 2.6z"})))),p?Object(o.createElement)("figure",null,s&&y,s&&b&&b.length>1&&Object(o.createElement)("div",{className:"wp-block-jetpack-gif_thumbnails-container"},b.map(function(t){if(t.embed_url===p)return null;var n={backgroundImage:"url(".concat(t.images.downsized_still.url,")")};return Object(o.createElement)("button",{className:"wp-block-jetpack-gif_thumbnail-container",key:t.id,onClick:function(){e.thumbnailClicked(t)},style:n})})),Object(o.createElement)("div",{className:"wp-block-jetpack-gif-wrapper",style:g},Object(o.createElement)("div",{className:"wp-block-jetpack-gif_cover",onClick:this.setFocus,onKeyDown:this.setFocus,role:"button",tabIndex:"0"}),Object(o.createElement)("iframe",{src:p,title:h})),(!j.RichText.isEmpty(u)||s)&&!!p&&Object(o.createElement)(j.RichText,{className:"wp-block-jetpack-gif-caption gallery-caption",inlineToolbar:!0,isSelected:m,unstableOnFocus:function(){e.setState({captionFocus:!0})},onChange:function(e){return c({caption:e})},placeholder:Object(i.a)("Write caption…"),tagName:"figcaption",value:u})):Object(o.createElement)(a.Placeholder,{className:"wp-block-jetpack-gif_placeholder",icon:S,label:x},y))}}]),t}(o.Component),x=(n(115),n(70),Object(i.a)("GIF")),S=Object(o.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(o.createElement)(a.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(o.createElement)(a.Path,{d:"M18 13v7H4V6h5.02c.05-.71.22-1.38.48-2H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-5l-2-2zm-1.5 5h-11l2.75-3.53 1.96 2.36 2.75-3.54L16.5 18zm2.8-9.11c.44-.7.7-1.51.7-2.39C20 4.01 17.99 2 15.5 2S11 4.01 11 6.5s2.01 4.5 4.49 4.5c.88 0 1.7-.26 2.39-.7L21 13.42 22.42 12 19.3 8.89zM15.5 9C14.12 9 13 7.88 13 6.5S14.12 4 15.5 4 18 5.12 18 6.5 16.88 9 15.5 9z"})),A={title:x,icon:S,category:"jetpack",keywords:[Object(i.a)("animated"),Object(i.a)("giphy"),Object(i.a)("image")],description:Object(i.a)("Search for and insert an animated image."),attributes:{align:{type:"string",default:"center"},caption:{type:"string"},giphyUrl:{type:"string"},searchText:{type:"string"},paddingTop:{type:"string",default:"56.2%"}},supports:{html:!1,align:!0},edit:E,save:function(){return null}};Object(r.a)("gif",A)},function(e,t,n){"use strict";n.r(t);var r=n(22),o=n(0),i=n(3),a=(n(221),n(4)),s=n.n(a),c=n(7),l=n.n(c),u=n(6),p=n.n(u),h=n(8),d=n.n(h),f=n(9),m=n.n(f),b=n(10),g=n.n(b),v=n(12),y=n.n(v),_=n(11),k=n(5),O=n(17),j=n(1);function C(e){var t="related-posts__preview";return Object(o.createElement)("div",{className:"".concat(t,"-post")},e.displayThumbnails&&Object(o.createElement)(i.Button,{className:"".concat(t,"-post-image-placeholder"),isLink:!0},Object(o.createElement)("span",{className:"".concat(t,"-post-image-placeholder-icon"),"aria-label":Object(j.a)("Placeholder image")},Object(o.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(o.createElement)(i.Path,{fill:"none",d:"M0 0h24v24H0V0z"}),Object(o.createElement)(i.Path,{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4.86 8.86l-3 3.87L9 13.14 6 17h12l-3.86-5.14z"})))),Object(o.createElement)("h4",null,Object(o.createElement)(i.Button,{className:"".concat(t,"-post-link"),isLink:!0},Object(j.a)("Related Posts will only display when you have 10 public posts"))),e.displayDate&&Object(o.createElement)("span",{className:"".concat(t,"-post-date has-small-font-size")},Object(j.a)("August 3, 2018")),e.displayContext&&Object(o.createElement)("p",{className:"".concat(t,"-post-context")},Object(j.a)('In "Uncategorized"')))}var w=function(e){function t(){return l()(this,t),d()(this,m()(t).apply(this,arguments))}return g()(t,e),p()(t,[{key:"render",value:function(){for(var e=this.props,t=e.attributes,n=e.className,r=e.posts,a=e.setAttributes,c=t.displayContext,l=t.displayDate,u=t.displayThumbnails,p=t.postLayout,h=t.postsToShow,d=[{icon:"grid-view",title:Object(j.a)("Grid View"),onClick:function(){return a({postLayout:"grid"})},isActive:"grid"===p},{icon:"list-view",title:Object(j.a)("List View"),onClick:function(){return a({postLayout:"list"})},isActive:"list"===p}],f=(r.length?r:[]).slice(0,h),m="related-posts__preview",b=!r.length,g=[],v=0;v<h;v++)g.push(Object(o.createElement)(C,{key:"related-post-placeholder-"+v,displayThumbnails:u,displayDate:l,displayContext:c}));return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(_.InspectorControls,null,Object(o.createElement)(i.PanelBody,{title:Object(j.a)("Related Posts Settings")},Object(o.createElement)(i.ToggleControl,{label:Object(j.a)("Display thumbnails"),checked:u,onChange:function(e){return a({displayThumbnails:e})}}),Object(o.createElement)(i.ToggleControl,{label:Object(j.a)("Display date"),checked:l,onChange:function(e){return a({displayDate:e})}}),Object(o.createElement)(i.ToggleControl,{label:Object(j.a)("Display context (category or tag)"),checked:c,onChange:function(e){return a({displayContext:e})}}),Object(o.createElement)(i.RangeControl,{label:Object(j.a)("Number of posts"),value:h,onChange:function(e){return a({postsToShow:Math.min(e,3)})},min:1,max:3}))),Object(o.createElement)(_.BlockControls,null,Object(o.createElement)(i.Toolbar,{controls:d})),Object(o.createElement)("div",{className:y()(n,s()({"is-grid":"grid"===p},"columns-".concat(h),"grid"===p))},Object(o.createElement)("div",{className:m},b?g:f.map(function(e){return Object(o.createElement)("div",{className:"".concat(m,"-post"),key:e.id},u&&e.img&&e.img.src&&Object(o.createElement)(i.Button,{className:"".concat(m,"-post-link"),isLink:!0},Object(o.createElement)("img",{src:e.img.src,alt:e.title})),Object(o.createElement)("h4",null,Object(o.createElement)(i.Button,{className:"".concat(m,"-post-link"),isLink:!0},e.title)),l&&Object(o.createElement)("span",{className:"".concat(m,"-post-date has-small-font-size")},e.date),c&&Object(o.createElement)("p",{className:"".concat(m,"-post-context")},e.context))}))))}}]),t}(o.Component),E=Object(O.withSelect)(function(e){var t=e("core/editor").getCurrentPost;return{posts:Object(k.get)(t(),"jetpack-related-posts",[])}})(w),x={title:Object(j.a)("Related Posts"),icon:Object(o.createElement)(i.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(i.G,{stroke:"currentColor",strokeWidth:"2",strokeLinecap:"square"},Object(o.createElement)(i.Path,{d:"M4,4 L4,19 M4,4 L19,4 M4,9 L19,9 M4,14 L19,14 M4,19 L19,19 M9,4 L9,19 M19,4 L19,19"}))),category:"jetpack",keywords:[Object(j.c)("Similar content","block search term"),Object(j.c)("Linked","block search term"),Object(j.c)("Connected","block search term")],attributes:{postLayout:{type:"string",default:"grid"},displayDate:{type:"boolean",default:!0},displayThumbnails:{type:"boolean",default:!1},displayContext:{type:"boolean",default:!1},postsToShow:{type:"number",default:3}},supports:{html:!1,multiple:!1,reusable:!1},transforms:{from:[{type:"shortcode",tag:"jetpack-related-posts"}]},edit:E,save:function(){return null}};Object(r.a)("related-posts",x)},function(e,t,n){"use strict";n.r(t);var r=n(7),o=n.n(r),i=n(6),a=n.n(i),s=n(8),c=n.n(s),l=n(9),u=n.n(l),p=n(10),h=n.n(p),d=n(0),f=n(5),m=n(3),b=n(17),g=n(65),v=n(33),y=n(1),_={render:function(){return Object(d.createElement)(O,null)}},k=function(e){function t(){return o()(this,t),c()(this,u()(t).apply(this,arguments))}return h()(t,e),a()(t,[{key:"render",value:function(){var e=this.props.shortlink;return e?Object(d.createElement)(v.default,null,Object(d.createElement)(m.PanelBody,{title:Object(y.a)("Shortlink"),className:"jetpack-shortlinks__panel"},Object(d.createElement)(g.a,{link:e}))):null}}]),t}(d.Component),O=Object(b.withSelect)(function(e){var t=e("core/editor").getCurrentPost();return{shortlink:Object(f.get)(t,"jetpack_shortlink","")}})(k),j=n(48);Object(j.a)("shortlinks",_)},,,function(e,t,n){n(39),n(98),n(34),n(43),n(33),n(252),n(256),n(253),n(254),n(249),n(257),n(258),n(251),n(255),e.exports=n(250)}]));
_inc/blocks/editor.rtl.css ADDED
@@ -0,0 +1 @@
 
1
+ .help-message{display:-webkit-box;display:-ms-flexbox;display:flex;font-size:13px;line-height:1.4em;margin-bottom:1em;margin-top:-.5em}.help-message svg{margin-left:5px;min-width:24px}.help-message>span{margin-top:2px}.help-message.help-message-is-error{color:#eb0001}.help-message.help-message-is-error svg{fill:#eb0001}.edit-post-more-menu__content .components-icon-button .jetpack-logo,.edit-post-pinned-plugins .components-icon-button .jetpack-logo{width:20px;height:20px}.edit-post-more-menu__content .components-icon-button .jetpack-logo{margin-left:4px}.edit-post-pinned-plugins .components-icon-button.is-toggled .jetpack-logo,.edit-post-pinned-plugins .components-icon-button.is-toggled .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button.is-toggled .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button.is-toggled:hover .jetpack-logo,.edit-post-pinned-plugins .components-icon-button.is-toggled:hover .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button.is-toggled:hover .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button:hover .jetpack-logo,.edit-post-pinned-plugins .components-icon-button:hover .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button:hover .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button:not(.is-toggled) .jetpack-logo,.edit-post-pinned-plugins .components-icon-button:not(.is-toggled) .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button:not(.is-toggled) .jetpack-logo__icon-triangle{stroke:none!important}.edit-post-pinned-plugins .components-icon-button.is-toggled .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button.is-toggled:hover .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button:hover .jetpack-logo__icon-circle,.edit-post-pinned-plugins .components-icon-button:not(.is-toggled) .jetpack-logo__icon-circle{fill:#00be28!important}.edit-post-pinned-plugins .components-icon-button.is-toggled .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button.is-toggled:hover .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button:hover .jetpack-logo__icon-triangle,.edit-post-pinned-plugins .components-icon-button:not(.is-toggled) .jetpack-logo__icon-triangle{fill:#fff!important}.jetpack-contact-form{padding:10px 18px}.jetpack-contact-form.has-intro{padding:0}.jetpack-contact-form .components-placeholder{padding:24px}.jetpack-contact-form .components-placeholder input[type=text]{width:100%;outline-width:0;outline-style:none;line-height:16px}.jetpack-contact-form .components-placeholder .components-placeholder__label svg{margin-left:1ch}.jetpack-contact-form .components-placeholder .components-placeholder__fieldset,.jetpack-contact-form .components-placeholder .help-message{text-align:right}.jetpack-contact-form .components-placeholder .help-message{width:100%;margin:-18px 0 28px}.jetpack-contact-form .components-placeholder .components-base-control{margin-bottom:16px;width:100%}.jetpack-contact-form__intro-message{margin:0 0 16px}.jetpack-contact-form__create{width:100%}.jetpack-field-label{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.jetpack-field-label .components-base-control{margin-top:-1px;margin-bottom:-3px}.jetpack-field-label .components-base-control .components-form-toggle{margin:2px 0 0 8px}.jetpack-field-label .required{color:#dc3232}.jetpack-field-label .components-toggle-control .components-base-control__field{margin-bottom:0}.jetpack-field-label__input{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;min-height:unset;padding:0}.jetpack-field-label__input.jetpack-field-label__input.jetpack-field-label__input{border-color:#fff;border-radius:0;font-weight:600;margin:0 0 2px;padding:0}.jetpack-field-label__input.jetpack-field-label__input.jetpack-field-label__input:focus{border-color:#fff;-webkit-box-shadow:none;box-shadow:none}input.components-text-control__input{line-height:16px}.jetpack-field .components-text-control__input.components-text-control__input{width:100%}.jetpack-field .components-text-control__input,.jetpack-field .components-textarea-control__input{color:#72777c;padding:10px 8px}.jetpack-field-checkbox__checkbox.jetpack-field-checkbox__checkbox.jetpack-field-checkbox__checkbox{float:right}.jetpack-field-multiple__list.jetpack-field-multiple__list{list-style-type:none;margin:0}.jetpack-field-multiple__list.jetpack-field-multiple__list:empty{display:none}[data-type="jetpack/field-select"] .jetpack-field-multiple__list.jetpack-field-multiple__list{border:1px solid #8d96a0;border-radius:4px;padding:4px}.jetpack-option{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:0}.jetpack-option__type.jetpack-option__type{margin-top:0}.jetpack-option__input.jetpack-option__input.jetpack-option__input{border-color:#fff;border-radius:0;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.jetpack-option__input.jetpack-option__input.jetpack-option__input:hover{border-color:#357cb5}.jetpack-option__input.jetpack-option__input.jetpack-option__input:focus{border-color:#e3e5e8;-webkit-box-shadow:none;box-shadow:none}.jetpack-option__remove.jetpack-option__remove{padding:6px;vertical-align:bottom}.jetpack-field-multiple__add-option{margin-right:-6px;padding:4px 4px 4px 8px}.jetpack-field-multiple__add-option svg{margin-left:12px}.jetpack-field-checkbox .components-base-control__label{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.jetpack-field-checkbox .components-base-control__label .jetpack-field-label{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.jetpack-field-checkbox .components-base-control__label .jetpack-field-label__input{font-size:13px;font-weight:400;padding-right:10px}@media (min-width:481px){.jetpack-contact-form-shortcode-preview{padding:24px}}.jetpack-contact-form-shortcode-preview{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:1.4em;display:block;position:relative;margin:0 auto;padding:16px;-webkit-box-sizing:border-box;box-sizing:border-box;background:#fff;-webkit-box-shadow:0 0 0 1px rgba(200,215,225,.5),0 1px 2px #e9eff3;box-shadow:0 0 0 1px rgba(200,215,225,.5),0 1px 2px #e9eff3}.jetpack-contact-form-shortcode-preview:after{content:".";display:block;height:0;clear:both;visibility:hidden}.jetpack-contact-form-shortcode-preview>div{margin-top:24px}.jetpack-contact-form-shortcode-preview>div:first-child{margin-top:0}.jetpack-contact-form-shortcode-preview label{display:block;font-size:14px;font-weight:600;margin-bottom:5px}.jetpack-contact-form-shortcode-preview input[type=email],.jetpack-contact-form-shortcode-preview input[type=tel],.jetpack-contact-form-shortcode-preview input[type=text],.jetpack-contact-form-shortcode-preview input[type=url]{border-radius:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:7px 14px;width:100%;color:#2e4453;font-size:16px;line-height:1.5;border:1px solid #c8d7e1;background-color:#fff;-webkit-transition:all .15s ease-in-out;transition:all .15s ease-in-out;-webkit-box-shadow:none;box-shadow:none}.jetpack-contact-form-shortcode-preview input[type=email]::-webkit-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=tel]::-webkit-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=text]::-webkit-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=url]::-webkit-input-placeholder{color:#87a6bc}.jetpack-contact-form-shortcode-preview input[type=email]:-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=tel]:-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=text]:-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=url]:-ms-input-placeholder{color:#87a6bc}.jetpack-contact-form-shortcode-preview input[type=email]::-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=tel]::-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=text]::-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=url]::-ms-input-placeholder{color:#87a6bc}.jetpack-contact-form-shortcode-preview input[type=email]::placeholder,.jetpack-contact-form-shortcode-preview input[type=tel]::placeholder,.jetpack-contact-form-shortcode-preview input[type=text]::placeholder,.jetpack-contact-form-shortcode-preview input[type=url]::placeholder{color:#87a6bc}.jetpack-contact-form-shortcode-preview input[type=email]:hover,.jetpack-contact-form-shortcode-preview input[type=tel]:hover,.jetpack-contact-form-shortcode-preview input[type=text]:hover,.jetpack-contact-form-shortcode-preview input[type=url]:hover{border-color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=email]:focus,.jetpack-contact-form-shortcode-preview input[type=tel]:focus,.jetpack-contact-form-shortcode-preview input[type=text]:focus,.jetpack-contact-form-shortcode-preview input[type=url]:focus{border-color:#0087be;outline:none;-webkit-box-shadow:0 0 0 2px #78dcfa;box-shadow:0 0 0 2px #78dcfa}.jetpack-contact-form-shortcode-preview input[type=email]:focus::-ms-clear,.jetpack-contact-form-shortcode-preview input[type=tel]:focus::-ms-clear,.jetpack-contact-form-shortcode-preview input[type=text]:focus::-ms-clear,.jetpack-contact-form-shortcode-preview input[type=url]:focus::-ms-clear{display:none}.jetpack-contact-form-shortcode-preview input[type=email]:disabled,.jetpack-contact-form-shortcode-preview input[type=tel]:disabled,.jetpack-contact-form-shortcode-preview input[type=text]:disabled,.jetpack-contact-form-shortcode-preview input[type=url]:disabled{background:#f3f6f8;border-color:#e9eff3;color:#a8bece;-webkit-text-fill-color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=email]:disabled:hover,.jetpack-contact-form-shortcode-preview input[type=tel]:disabled:hover,.jetpack-contact-form-shortcode-preview input[type=text]:disabled:hover,.jetpack-contact-form-shortcode-preview input[type=url]:disabled:hover{cursor:default}.jetpack-contact-form-shortcode-preview input[type=email]:disabled::-webkit-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=tel]:disabled::-webkit-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=text]:disabled::-webkit-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=url]:disabled::-webkit-input-placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=email]:disabled:-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=tel]:disabled:-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=text]:disabled:-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=url]:disabled:-ms-input-placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=email]:disabled::-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=tel]:disabled::-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=text]:disabled::-ms-input-placeholder,.jetpack-contact-form-shortcode-preview input[type=url]:disabled::-ms-input-placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=email]:disabled::placeholder,.jetpack-contact-form-shortcode-preview input[type=tel]:disabled::placeholder,.jetpack-contact-form-shortcode-preview input[type=text]:disabled::placeholder,.jetpack-contact-form-shortcode-preview input[type=url]:disabled::placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview textarea{border-radius:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:7px 14px;height:92px;width:100%;color:#2e4453;font-size:16px;line-height:1.5;border:1px solid #c8d7e1;background-color:#fff;-webkit-transition:all .15s ease-in-out;transition:all .15s ease-in-out;-webkit-box-shadow:none;box-shadow:none}.jetpack-contact-form-shortcode-preview textarea::-webkit-input-placeholder{color:#87a6bc}.jetpack-contact-form-shortcode-preview textarea:-ms-input-placeholder{color:#87a6bc}.jetpack-contact-form-shortcode-preview textarea::-ms-input-placeholder{color:#87a6bc}.jetpack-contact-form-shortcode-preview textarea::placeholder{color:#87a6bc}.jetpack-contact-form-shortcode-preview textarea:hover{border-color:#a8bece}.jetpack-contact-form-shortcode-preview textarea:focus{border-color:#0087be;outline:none;-webkit-box-shadow:0 0 0 2px #78dcfa;box-shadow:0 0 0 2px #78dcfa}.jetpack-contact-form-shortcode-preview textarea:focus::-ms-clear{display:none}.jetpack-contact-form-shortcode-preview textarea:disabled{background:#f3f6f8;border-color:#e9eff3;color:#a8bece;-webkit-text-fill-color:#a8bece}.jetpack-contact-form-shortcode-preview textarea:disabled:hover{cursor:default}.jetpack-contact-form-shortcode-preview textarea:disabled::-webkit-input-placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview textarea:disabled:-ms-input-placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview textarea:disabled::-ms-input-placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview textarea:disabled::placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=checkbox]{-webkit-appearance:none;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;margin:2px 0 0;width:16px;height:16px;float:right;outline:0;padding:0;-webkit-box-shadow:none;box-shadow:none;background-color:#fff;border:1px solid #c8d7e1;color:#2e4453;font-size:16px;line-height:0;text-align:center;vertical-align:middle;-moz-appearance:none;appearance:none;-webkit-transition:all .15s ease-in-out;transition:all .15s ease-in-out;clear:none;cursor:pointer}.jetpack-contact-form-shortcode-preview input[type=checkbox]:checked:before{content:"\F147";font-family:Dashicons;margin:-3px -4px 0 0;float:right;display:inline-block;vertical-align:middle;width:16px;font-size:20px;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;speak:none;color:#00aadc}.jetpack-contact-form-shortcode-preview input[type=checkbox]:disabled:checked:before{color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=checkbox]:hover{border-color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=checkbox]:focus{border-color:#0087be;outline:none;-webkit-box-shadow:0 0 0 2px #78dcfa;box-shadow:0 0 0 2px #78dcfa}.jetpack-contact-form-shortcode-preview input[type=checkbox]:disabled{background:#f3f6f8;border-color:#e9eff3;color:#a8bece;opacity:1}.jetpack-contact-form-shortcode-preview input[type=checkbox]:disabled:hover{cursor:default}.jetpack-contact-form-shortcode-preview input[type=checkbox]+span{display:block;font-weight:400;margin-right:24px}.jetpack-contact-form-shortcode-preview input[type=radio]{color:#2e4453;font-size:16px;border:1px solid #c8d7e1;background-color:#fff;-webkit-transition:all .15s ease-in-out;transition:all .15s ease-in-out;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;clear:none;cursor:pointer;display:inline-block;line-height:0;height:16px;margin:2px 0 0 4px;float:right;outline:0;padding:0;text-align:center;vertical-align:middle;width:16px;min-width:16px;-moz-appearance:none;appearance:none;border-radius:50%;line-height:10px}.jetpack-contact-form-shortcode-preview input[type=radio]:hover{border-color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=radio]:focus{border-color:#0087be;outline:none;-webkit-box-shadow:0 0 0 2px #78dcfa;box-shadow:0 0 0 2px #78dcfa}.jetpack-contact-form-shortcode-preview input[type=radio]:focus::-ms-clear{display:none}.jetpack-contact-form-shortcode-preview input[type=radio]:checked:before{float:right;display:inline-block;content:"\2022";margin:3px;width:8px;height:8px;text-indent:-9999px;background:#00aadc;vertical-align:middle;border-radius:50%;-webkit-animation:grow .2s ease-in-out;animation:grow .2s ease-in-out}.jetpack-contact-form-shortcode-preview input[type=radio]:disabled{background:#f3f6f8;border-color:#e9eff3;color:#a8bece;opacity:1;-webkit-text-fill-color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=radio]:disabled:hover{cursor:default}.jetpack-contact-form-shortcode-preview input[type=radio]:disabled::-webkit-input-placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=radio]:disabled:-ms-input-placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=radio]:disabled::-ms-input-placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=radio]:disabled::placeholder{color:#a8bece}.jetpack-contact-form-shortcode-preview input[type=radio]:disabled:checked:before{background:#e9eff3}.jetpack-contact-form-shortcode-preview input[type=radio]+span{display:block;font-weight:400;margin-right:24px}@-webkit-keyframes grow{0%{-webkit-transform:scale(.3);transform:scale(.3)}60%{-webkit-transform:scale(1.15);transform:scale(1.15)}to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes grow{0%{-webkit-transform:scale(.3);transform:scale(.3)}60%{-webkit-transform:scale(1.15);transform:scale(1.15)}to{-webkit-transform:scale(1);transform:scale(1)}}.jetpack-contact-form-shortcode-preview select{background:#fff url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE1LjUgNkwxNyA3LjVsLTYuNzUgNi43NUwzLjUgNy41IDUgNmw1LjI1IDUuMjVMMTUuNSA2eiIgZmlsbD0iI0M4RDdFMSIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+) no-repeat left 10px center;border-radius:4px;border:solid #c8d7e1;border-width:1px 1px 2px;color:#2e4453;cursor:pointer;display:inline-block;margin:0;outline:0;overflow:hidden;font-size:14px;line-height:21px;font-weight:600;text-overflow:ellipsis;text-decoration:none;vertical-align:top;white-space:nowrap;-webkit-box-sizing:border-box;box-sizing:border-box;padding:2px 14px 2px 32px;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:sans-serif}.jetpack-contact-form-shortcode-preview select:hover{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE1LjUgNkwxNyA3LjVsLTYuNzUgNi43NUwzLjUgNy41IDUgNmw1LjI1IDUuMjVMMTUuNSA2eiIgZmlsbD0iI2E4YmVjZSIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)}.jetpack-contact-form-shortcode-preview select:focus{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE1LjUgNkwxNyA3LjVsLTYuNzUgNi43NUwzLjUgNy41IDUgNmw1LjI1IDUuMjVMMTUuNSA2eiIgZmlsbD0iIzJlNDQ1MyIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+);border-color:#00aadc;-webkit-box-shadow:0 0 0 2px #78dcfa;box-shadow:0 0 0 2px #78dcfa;outline:0;-moz-outline:none;-moz-user-focus:ignore}.jetpack-contact-form-shortcode-preview select:disabled,.jetpack-contact-form-shortcode-preview select:hover:disabled{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE1LjUgNkwxNyA3LjVsLTYuNzUgNi43NUwzLjUgNy41IDUgNmw1LjI1IDUuMjVMMTUuNSA2eiIgZmlsbD0iI2U5ZWZmMyIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+) no-repeat left 10px center}.jetpack-contact-form-shortcode-preview select.is-compact{min-width:0;padding:0 6px 2px 20px;margin:0 4px;background-position:left 5px center;background-size:12px 12px}.jetpack-contact-form-shortcode-preview label+select,.jetpack-contact-form-shortcode-preview label select{display:block;min-width:200px}.jetpack-contact-form-shortcode-preview label+select.is-compact,.jetpack-contact-form-shortcode-preview label select.is-compact{display:inline-block;min-width:0}.jetpack-contact-form-shortcode-preview select::-ms-expand{display:none}.jetpack-contact-form-shortcode-preview select::-ms-value{background:none;color:#2e4453}.jetpack-contact-form-shortcode-preview select:-moz-focusring{color:transparent;text-shadow:0 0 0 #2e4453}.jetpack-contact-form-shortcode-preview input[type=submit]{vertical-align:baseline;background:#fff;border:solid #c8d7e1;border-width:1px 1px 2px;color:#2e4453;cursor:pointer;display:inline-block;margin:24px 0 0;outline:0;overflow:hidden;font-weight:500;text-overflow:ellipsis;text-decoration:none;vertical-align:top;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:14px;line-height:21px;border-radius:4px;padding:7px 14px 9px;-webkit-appearance:none;-moz-appearance:none;appearance:none}.jetpack-contact-form-shortcode-preview input[type=submit]:hover{border-color:#a8bece;color:#2e4453}.jetpack-contact-form-shortcode-preview input[type=submit]:active{border-width:2px 1px 1px}.jetpack-contact-form-shortcode-preview input[type=submit]:visited{color:#2e4453}.jetpack-contact-form-shortcode-preview input[type=submit]:focus{border-color:#00aadc;-webkit-box-shadow:0 0 0 2px #78dcfa;box-shadow:0 0 0 2px #78dcfa}.wp-block-jetpack-gif figure{-webkit-transition:padding-top 125ms ease-in-out;transition:padding-top 125ms ease-in-out}.wp-block-jetpack-gif .components-base-control__field{text-align:center}.wp-block-jetpack-gif .wp-block-jetpack-gif_cover{background:none;border:none;height:100%;right:0;margin:0;padding:0;position:absolute;top:0;width:100%;z-index:1}.wp-block-jetpack-gif .wp-block-jetpack-gif_cover:focus{outline:none}.wp-block-jetpack-gif .wp-block-jetpack-gif_input-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:0 auto;max-width:400px;width:100%;z-index:1}.wp-block-jetpack-gif .wp-block-jetpack-gif_input-container .components-base-control__label{height:0;margin:0;text-indent:-9999px}.wp-block-jetpack-gif .wp-block-jetpack-gif_input{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;margin-left:.5em}.wp-block-jetpack-gif .wp-block-jetpack-gif_thumbnails-container{display:-webkit-box;display:-ms-flexbox;display:flex;margin:-2px -2px 2px 0;overflow-x:auto;width:calc(100% + 4px)}.wp-block-jetpack-gif .wp-block-jetpack-gif_thumbnails-container::-webkit-scrollbar{display:none}.wp-block-jetpack-gif .wp-block-jetpack-gif_thumbnail-container{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-size:cover;background-repeat:no-repeat;background-position:50% 50%;border:none;border-radius:3px;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:2px;padding:0 0 calc(11.11111% - 4px);width:calc(11.11111% - 4px)}.wp-block-jetpack-gif .wp-block-jetpack-gif_thumbnail-container:hover{-webkit-box-shadow:0 0 0 1px #555d66;box-shadow:0 0 0 1px #555d66}.wp-block-jetpack-gif .wp-block-jetpack-gif_thumbnail-container:focus{-webkit-box-shadow:0 0 0 2px #00a0d2;box-shadow:0 0 0 2px #00a0d2;outline:0}.components-panel__body-gif-branding svg{display:block;margin:0 auto;max-width:200px}.components-panel__body-gif-branding svg path{fill:#ccc}.wp-block-jetpack-gif figure{margin:0;position:relative;width:100%}.wp-block-jetpack-gif iframe{border:0;right:0;height:100%;position:absolute;top:0;width:100%}.wp-block-jetpack-gif.aligncenter{text-align:center}.wp-block-jetpack-gif.alignleft,.wp-block-jetpack-gif.alignright{min-width:300px}.wp-block-jetpack-gif .wp-block-jetpack-gif-caption{margin-top:.5em;margin-bottom:1em;color:#555d66;text-align:center}.wp-block-jetpack-gif .wp-block-jetpack-gif-wrapper{height:0;margin:0;padding:calc(56.2% + 12px) 0 0;position:relative;width:100%}.component__add-point{position:absolute;right:50%;top:50%;width:32px;height:38px;margin-top:-19px;margin-right:-16px;background-image:url(images/oval-3cc7669d571aef4e12f34b349e42d390.svg);background-repeat:no-repeat;text-indent:-9999px}.component__add-point,.component__add-point.components-button:not(:disabled):not([aria-disabled=true]):focus,.component__add-point:active,.component__add-point:focus,.component__add-point__popover .components-button:not(:disabled):not([aria-disabled=true]):focus{-webkit-box-shadow:none;box-shadow:none;background-color:transparent}.component__add-point__popover .components-popover__content{padding:.1rem}.component__add-point__popover .components-location-search{margin:.5rem}.component__add-point__close{margin:0;padding:0;border:none;-webkit-box-shadow:none;box-shadow:none;float:left}.component__add-point__close path{color:#aaa}.edit-post-settings-sidebar__panel-block .component__locations__panel{margin-bottom:1em}.edit-post-settings-sidebar__panel-block .component__locations__panel:empty{display:none}.edit-post-settings-sidebar__panel-block .component__locations__panel .components-panel__body:first-child{border-top:none}.edit-post-settings-sidebar__panel-block .component__locations__panel .components-panel__body,.edit-post-settings-sidebar__panel-block .component__locations__panel .components-panel__body:first-child,.edit-post-settings-sidebar__panel-block .component__locations__panel .components-panel__body:last-child{max-width:100%;margin:0}.edit-post-settings-sidebar__panel-block .component__locations__panel .components-panel__body button{padding-left:40px}.component__locations__delete-btn{padding:0}.component__locations__delete-btn svg{margin-left:.4em}.wp-block-jetpack-map-marker{width:32px;height:38px;opacity:.9}.edit-post-settings-sidebar__panel-block .component__map-theme-picker__button{border:1px solid #d3d3d3;border-radius:100%;width:56px;height:56px;margin:2px;text-indent:-9999px;background-color:#d3d3d3;background-position:50%;background-repeat:no-repeat;background-size:contain;-webkit-transform:scale(1);transform:scale(1);-webkit-transition:-webkit-transform .2s ease;transition:-webkit-transform .2s ease;transition:transform .2s ease;transition:transform .2s ease,-webkit-transform .2s ease}.edit-post-settings-sidebar__panel-block .component__map-theme-picker__button:hover{-webkit-transform:scale(1.1);transform:scale(1.1)}.edit-post-settings-sidebar__panel-block .component__map-theme-picker__button.is-selected{border-color:#000}.edit-post-settings-sidebar__panel-block .component__map-theme-picker__button.is-theme-default{background-image:url(images/map-theme_default-2ceb449b599dbcbe2a90fead5a5f3824.jpg)}.edit-post-settings-sidebar__panel-block .component__map-theme-picker__button.is-theme-black_and_white{background-image:url(images/map-theme_black_and_white-1ead5946ca104d83676d6e3410e1d733.jpg)}.edit-post-settings-sidebar__panel-block .component__map-theme-picker__button.is-theme-satellite{background-image:url(images/map-theme_satellite-c74dc129bda9502fb0fb362bb627577e.jpg)}.edit-post-settings-sidebar__panel-block .component__map-theme-picker__button.is-theme-terrain{background-image:url(images/map-theme_terrain-2b6e6c1c8d09cbdc58a4c0653be1a6e3.jpg)}.wp-block-jetpack-map .wp-block-jetpack-map__gm-container{width:100%;overflow:hidden;background:#d3d3d3;min-height:400px;text-align:right}.wp-block-jetpack-map .mapboxgl-popup{max-width:300px}.wp-block-jetpack-map .mapboxgl-popup h3{font-size:1.3125em;font-weight:400;margin-bottom:.5rem}.wp-block-jetpack-map .mapboxgl-popup p{margin-bottom:0}.wp-block-jetpack-map__delete-btn{padding:0}.wp-block-jetpack-map__delete-btn svg{margin-left:.4em}.wp-block-jetpack-map-components-text-control-api-key{margin-left:4px}.wp-block-jetpack-map-components-text-control-api-key.components-base-control .components-base-control__field{margin-bottom:0}.wp-block-jetpack-map-components-text-control-api-key-submit.is-large{height:31px}.wp-block-jetpack-map-components-text-control-api-key-submit:disabled{opacity:1}.wp-block[data-type="jetpack/map"] .components-placeholder__label svg{fill:currentColor;margin-left:1ch}.wp-block-jetpack-markdown__placeholder{opacity:.62;pointer-events:none}.editor-block-list__block .wp-block-jetpack-markdown__preview{min-height:1.8em;line-height:1.8}.editor-block-list__block .wp-block-jetpack-markdown__preview>*{margin-top:32px;margin-bottom:32px}.editor-block-list__block .wp-block-jetpack-markdown__preview h1,.editor-block-list__block .wp-block-jetpack-markdown__preview h2,.editor-block-list__block .wp-block-jetpack-markdown__preview h3{line-height:1.4}.editor-block-list__block .wp-block-jetpack-markdown__preview h1{font-size:2.44em}.editor-block-list__block .wp-block-jetpack-markdown__preview h2{font-size:1.95em}.editor-block-list__block .wp-block-jetpack-markdown__preview h3{font-size:1.56em}.editor-block-list__block .wp-block-jetpack-markdown__preview h4{font-size:1.25em;line-height:1.5}.editor-block-list__block .wp-block-jetpack-markdown__preview h5{font-size:1em}.editor-block-list__block .wp-block-jetpack-markdown__preview h6{font-size:.8em}.editor-block-list__block .wp-block-jetpack-markdown__preview hr{border:none;border-bottom:2px solid #8f98a1;margin:2em auto;max-width:100px}.editor-block-list__block .wp-block-jetpack-markdown__preview p{line-height:1.8}.editor-block-list__block .wp-block-jetpack-markdown__preview blockquote{border-right:4px solid #000;margin-right:0;margin-left:0;padding-right:1em}.editor-block-list__block .wp-block-jetpack-markdown__preview blockquote p{line-height:1.5;margin:1em 0}.editor-block-list__block .wp-block-jetpack-markdown__preview ol,.editor-block-list__block .wp-block-jetpack-markdown__preview ul{margin-right:1.3em;padding-right:1.3em}.editor-block-list__block .wp-block-jetpack-markdown__preview li p{margin:0}.editor-block-list__block .wp-block-jetpack-markdown__preview code,.editor-block-list__block .wp-block-jetpack-markdown__preview pre{color:#23282d;font-family:Menlo,Consolas,monaco,monospace}.editor-block-list__block .wp-block-jetpack-markdown__preview code{background:#f3f4f5;border-radius:2px;font-size:inherit;padding:2px}.editor-block-list__block .wp-block-jetpack-markdown__preview pre{border-radius:4px;border:1px solid #e2e4e7;font-size:14px;padding:.8em 1em}.editor-block-list__block .wp-block-jetpack-markdown__preview pre code{background:transparent;padding:0}.editor-block-list__block .wp-block-jetpack-markdown__preview table{overflow-x:auto;border-collapse:collapse;width:100%}.editor-block-list__block .wp-block-jetpack-markdown__preview tbody,.editor-block-list__block .wp-block-jetpack-markdown__preview tfoot,.editor-block-list__block .wp-block-jetpack-markdown__preview thead{width:100%;min-width:240px}.editor-block-list__block .wp-block-jetpack-markdown__preview td,.editor-block-list__block .wp-block-jetpack-markdown__preview th{padding:.5em;border:1px solid}.wp-block-jetpack-markdown .wp-block-jetpack-markdown__editor{font-family:Menlo,Consolas,monaco,monospace;font-size:14px}.wp-block-jetpack-markdown .wp-block-jetpack-markdown__editor:focus{border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent}.jetpack-publicize-message-box{background-color:#edeff0;border-radius:4px}.jetpack-publicize-message-box textarea{width:100%}.jetpack-publicize-character-count{padding-bottom:5px;padding-right:5px}.jetpack-publicize__connections-list{list-style-type:none;margin:13px 0}.publicize-jetpack-connection-container{display:-webkit-box;display:-ms-flexbox;display:flex}.jetpack-publicize-gutenberg-social-icon{fill:#555d66;margin-left:5px}.jetpack-publicize-gutenberg-social-icon.is-facebook{fill:#39579a}.jetpack-publicize-gutenberg-social-icon.is-twitter{fill:#55acee}.jetpack-publicize-gutenberg-social-icon.is-linkedin{fill:#0976b4}.jetpack-publicize-gutenberg-social-icon.is-tumblr{fill:#35465c}.jetpack-publicize-gutenberg-social-icon.is-google-plus{fill:#df4a32}.jetpack-publicize-connection-label{-webkit-box-flex:1;-ms-flex:1;flex:1;margin-left:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jetpack-publicize-connection-label .jetpack-publicize-connection-label-copy,.jetpack-publicize-connection-label .jetpack-publicize-gutenberg-social-icon{display:inline-block;vertical-align:middle}.jetpack-publicize-connection-toggle{margin-top:3px}.jetpack-publicize-notice.components-notice{margin-right:0;margin-left:0;margin-bottom:13px}.jetpack-publicize-notice .components-button+.components-button{margin-top:5px}.jetpack-publicize-message-note{display:inline-block;margin-bottom:4px;margin-top:13px}.jetpack-publicize-add-connection-wrapper{margin:15px 0}.jetpack-publicize-add-connection-container{display:-webkit-box;display:-ms-flexbox;display:flex}.jetpack-publicize-add-connection-container a{cursor:pointer}.jetpack-publicize-add-connection-container span{vertical-align:middle}.jetpack-publicize__connections-list .components-notice{margin:5px 0 10px}.wp-block-jetpack-related-posts.is-grid .related-posts__preview{display:-webkit-box;display:-ms-flexbox;display:flex;margin:0 -10px}.wp-block-jetpack-related-posts.is-grid .related-posts__preview-post{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-preferred-size:0;flex-basis:0;margin:0 10px}.wp-block-jetpack-related-posts .related-posts__preview-post-image-placeholder{width:100%;padding:4em 0;background-color:#f6f6f6}.wp-block-jetpack-related-posts .related-posts__preview-post-image-placeholder-icon{margin:0 auto}.wp-block-jetpack-related-posts .related-posts__preview-post-link{font-size:inherit}.wp-block-jetpack-related-posts .related-posts__preview-post-date{color:#2b2d2f}.wp-block-jetpack-related-posts .related-posts__preview-post-context{color:#2b2d2f;font-size:12px;margin:0}.jetpack-clipboard-input{display:-webkit-box;display:-ms-flexbox;display:flex}.jetpack-clipboard-input .components-clipboard-button{margin:2px 6px 0 0}.wp-block-jetpack-simple-payments .simple-payments__help-message{display:-webkit-box;display:-ms-flexbox;display:flex;font-size:13px;line-height:1.4em;margin-bottom:1em;margin-top:-.5em}.wp-block-jetpack-simple-payments .simple-payments__help-message svg{margin-left:5px;min-width:24px}.wp-block-jetpack-simple-payments .simple-payments__help-message>span{margin-top:2px}.wp-block-jetpack-simple-payments .simple-payments__help-message.simple-payments__help-message-is-error{color:#eb0001}.wp-block-jetpack-simple-payments .simple-payments__help-message.simple-payments__help-message-is-error svg{fill:#eb0001}.simple-payments__loading{-webkit-animation:simple-payments-loading 1.6s ease-in-out infinite;animation:simple-payments-loading 1.6s ease-in-out infinite}@-webkit-keyframes simple-payments-loading{0%{opacity:.5}50%{opacity:.7}to{opacity:.5}}@keyframes simple-payments-loading{0%{opacity:.5}50%{opacity:.7}to{opacity:.5}}.jetpack-simple-payments-wrapper{margin-bottom:1.5em}body .jetpack-simple-payments-wrapper .jetpack-simple-payments-details p{margin:0 0 1.5em;padding:0}.jetpack-simple-payments-product{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.jetpack-simple-payments-product-image{-webkit-box-flex:0;-ms-flex:0 0 30%;flex:0 0 30%;margin-bottom:1.5em}.jetpack-simple-payments-image{-webkit-box-sizing:border-box;box-sizing:border-box;min-width:70px;padding-top:100%;position:relative}.jetpack-simple-payments-image img{border:0;border-radius:0;height:auto;right:50%;margin:0;max-height:100%;max-width:100%;padding:0;position:absolute;top:50%;-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%);width:auto}.jetpack-simple-payments-price p,.jetpack-simple-payments-title p{font-weight:700}.jetpack-simple-payments-purchase-box{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;display:-webkit-box;display:-ms-flexbox;display:flex}.jetpack-simple-payments-items{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;margin-left:10px}input[type=number].jetpack-simple-payments-items-number{background:#fff;font-size:16px;line-height:1;max-width:60px;padding:4px 8px}@media screen and (min-width:400px){.jetpack-simple-payments-product{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.jetpack-simple-payments-product-image+.jetpack-simple-payments-details{-ms-flex-preferred-size:70%;flex-basis:70%;padding-right:1em}}.wp-block-jetpack-simple-payments{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;display:grid;grid-template-columns:200px auto;grid-column-gap:10px}.wp-block-jetpack-simple-payments .simple-payments__field .components-base-control__label{display:none}.wp-block-jetpack-simple-payments .simple-payments__field .components-base-control__field{margin-bottom:1em}.wp-block-jetpack-simple-payments .simple-payments__field textarea{display:block}.wp-block-jetpack-simple-payments .simple-payments__field-has-error .components-text-control__input,.wp-block-jetpack-simple-payments .simple-payments__field-has-error .components-textarea-control__input{border-color:#eb0001}.wp-block-jetpack-simple-payments .simple-payments__price-container{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.wp-block-jetpack-simple-payments .simple-payments__price-container .simple-payments__field{margin-left:10px}.wp-block-jetpack-simple-payments .simple-payments__price-container .simple-payments__help-message{-webkit-box-flex:1;-ms-flex:1 1 100%;flex:1 1 100%;margin-top:0}.wp-block-jetpack-simple-payments .simple-payments__field-price .components-text-control__input{max-width:90px}.wp-block-jetpack-simple-payments .simple-payments__field-email .components-text-control__input{max-width:400px}.wp-block-jetpack-simple-payments .simple-payments__field-multiple .components-toggle-control__label{line-height:1.4em}.wp-block-jetpack-simple-payments .simple-payments__field-content .components-textarea-control__input{min-height:32px}.wp-block-jetpack-tiled-gallery{margin:0 auto}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__item img{border-radius:50%}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;width:100%}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-1 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-1 .tiled-gallery__col{width:100%}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-2 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-2 .tiled-gallery__col{width:calc((100% - 4px)/2)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-3 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-3 .tiled-gallery__col{width:calc((100% - 8px)/3)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-4 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-4 .tiled-gallery__col{width:calc((100% - 12px)/4)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-5 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-5 .tiled-gallery__col{width:calc((100% - 16px)/5)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-6 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-6 .tiled-gallery__col{width:calc((100% - 20px)/6)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-7 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-7 .tiled-gallery__col{width:calc((100% - 24px)/7)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-8 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-8 .tiled-gallery__col{width:calc((100% - 28px)/8)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-9 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-9 .tiled-gallery__col{width:calc((100% - 32px)/9)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-10 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-10 .tiled-gallery__col{width:calc((100% - 36px)/10)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-11 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-11 .tiled-gallery__col{width:calc((100% - 40px)/11)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-12 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-12 .tiled-gallery__col{width:calc((100% - 44px)/12)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-13 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-13 .tiled-gallery__col{width:calc((100% - 48px)/13)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-14 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-14 .tiled-gallery__col{width:calc((100% - 52px)/14)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-15 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-15 .tiled-gallery__col{width:calc((100% - 56px)/15)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-16 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-16 .tiled-gallery__col{width:calc((100% - 60px)/16)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-17 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-17 .tiled-gallery__col{width:calc((100% - 64px)/17)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-18 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-18 .tiled-gallery__col{width:calc((100% - 68px)/18)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-19 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-19 .tiled-gallery__col{width:calc((100% - 72px)/19)}.wp-block-jetpack-tiled-gallery.is-style-circle .tiled-gallery__row.columns-20 .tiled-gallery__col,.wp-block-jetpack-tiled-gallery.is-style-square .tiled-gallery__row.columns-20 .tiled-gallery__col{width:calc((100% - 76px)/20)}.wp-block-jetpack-tiled-gallery.is-style-columns .tiled-gallery__item,.wp-block-jetpack-tiled-gallery.is-style-rectangular .tiled-gallery__item{display:-webkit-box;display:-ms-flexbox;display:flex}.tiled-gallery__gallery{padding:0;-ms-flex-wrap:wrap;flex-wrap:wrap}.tiled-gallery__gallery,.tiled-gallery__row{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex}.tiled-gallery__row{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:0}.tiled-gallery__row+.tiled-gallery__row{margin-top:4px}.tiled-gallery__col{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:0}.tiled-gallery__col+.tiled-gallery__col{margin-right:4px}.tiled-gallery__item{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:relative;margin:0;overflow:hidden}.tiled-gallery__item+.tiled-gallery__item{margin-top:4px}.tiled-gallery__item>a,.tiled-gallery__item>a>img,.tiled-gallery__item>img{display:block;height:auto;max-width:100%;width:100%;-o-object-fit:cover;object-fit:cover;-o-object-position:center;object-position:center}.wp-block-jetpack-tiled-gallery{padding-right:4px;padding-left:4px}.wp-block-jetpack-tiled-gallery .tiled-gallery__item>img:focus{outline:none}.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-selected{outline:4px solid #0085ba}.wp-block-jetpack-tiled-gallery .tiled-gallery__item.is-transient img{opacity:.3}.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item{margin-top:4px;width:100%}.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item .components-button.tiled-gallery__add-item-button,.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item .components-form-file-upload{width:100%;height:100%}.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item .components-button.tiled-gallery__add-item-button{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-shadow:none;box-shadow:none;border:none;border-radius:0;min-height:100px}.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item .components-button.tiled-gallery__add-item-button .dashicon{margin-top:10px}.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item .components-button.tiled-gallery__add-item-button:focus,.wp-block-jetpack-tiled-gallery .tiled-gallery__add-item .components-button.tiled-gallery__add-item-button:hover{border:1px solid #555d66}.wp-block-jetpack-tiled-gallery .tiled-gallery__item__inline-menu{background-color:#0085ba;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;padding:0 2px 2px 0;position:absolute;left:0;top:0}.wp-block-jetpack-tiled-gallery .tiled-gallery__item__inline-menu .components-button,.wp-block-jetpack-tiled-gallery .tiled-gallery__item__inline-menu .components-button:focus,.wp-block-jetpack-tiled-gallery .tiled-gallery__item__inline-menu .components-button:hover{color:#fff}.wp-block-jetpack-tiled-gallery .tiled-gallery__item__remove{padding:0}.wp-block-jetpack-tiled-gallery .tiled-gallery__item .components-spinner{position:absolute;top:50%;right:50%;-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%)}.editor-block-preview__content .wp-block-jetpack-tiled-gallery .editor-media-placeholder{display:none}.wp-block-jetpack-tiled-gallery .tiled-gallery__media-placeholder-icon{height:20px;margin-left:1ch;width:20px}
_inc/blocks/gif/view.css ADDED
@@ -0,0 +1 @@
 
1
+ .wp-block-jetpack-gif figure{margin:0;position:relative;width:100%}.wp-block-jetpack-gif iframe{border:0;left:0;height:100%;position:absolute;top:0;width:100%}.wp-block-jetpack-gif.aligncenter{text-align:center}.wp-block-jetpack-gif.alignleft,.wp-block-jetpack-gif.alignright{min-width:300px}.wp-block-jetpack-gif .wp-block-jetpack-gif-caption{margin-top:.5em;margin-bottom:1em;color:#555d66;text-align:center}.wp-block-jetpack-gif .wp-block-jetpack-gif-wrapper{height:0;margin:0;padding:calc(56.2% + 12px) 0 0;position:relative;width:100%}
_inc/blocks/gif/view.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(t,n){for(var o in n)t[o]=n[o]}(window,function(t){var n={};function o(e){if(n[e])return n[e].exports;var r=n[e]={i:e,l:!1,exports:{}};return t[e].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=t,o.c=n,o.d=function(t,n,e){o.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,n){if(1&n&&(t=o(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(o.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var r in t)o.d(e,r,function(n){return t[n]}.bind(null,r));return e},o.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(n,"a",n),n},o.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},o.p="",o(o.s=269)}({24:function(t,n){function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function e(n){return"function"==typeof Symbol&&"symbol"===o(Symbol.iterator)?t.exports=e=function(t){return o(t)}:t.exports=e=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":o(t)},e(n)}t.exports=e},269:function(t,n,o){o(39),t.exports=o(270)},270:function(t,n,o){"use strict";o.r(n);o(70)},39:function(t,n,o){"use strict";o.r(n);var e=o(24);"object"===("undefined"==typeof window?"undefined":o.n(e)()(window))&&window.Jetpack_Block_Assets_Base_Url&&(o.p=window.Jetpack_Block_Assets_Base_Url)},70:function(t,n,o){}}));
_inc/blocks/gif/view.rtl.css ADDED
@@ -0,0 +1 @@
 
1
+ .wp-block-jetpack-gif figure{margin:0;position:relative;width:100%}.wp-block-jetpack-gif iframe{border:0;right:0;height:100%;position:absolute;top:0;width:100%}.wp-block-jetpack-gif.aligncenter{text-align:center}.wp-block-jetpack-gif.alignleft,.wp-block-jetpack-gif.alignright{min-width:300px}.wp-block-jetpack-gif .wp-block-jetpack-gif-caption{margin-top:.5em;margin-bottom:1em;color:#555d66;text-align:center}.wp-block-jetpack-gif .wp-block-jetpack-gif-wrapper{height:0;margin:0;padding:calc(56.2% + 12px) 0 0;position:relative;width:100%}
_inc/blocks/images/map-theme_black_and_white-1ead5946ca104d83676d6e3410e1d733.jpg ADDED
Binary file
_inc/blocks/images/map-theme_default-2ceb449b599dbcbe2a90fead5a5f3824.jpg ADDED
Binary file
_inc/blocks/images/map-theme_satellite-c74dc129bda9502fb0fb362bb627577e.jpg ADDED
Binary file
_inc/blocks/images/map-theme_terrain-2b6e6c1c8d09cbdc58a4c0653be1a6e3.jpg ADDED
Binary file
_inc/blocks/images/oval-3cc7669d571aef4e12f34b349e42d390.svg ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="32px" height="38px" viewBox="0 0 32 38" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <!-- Generator: Sketch 52.1 (67048) - http://www.bohemiancoding.com/sketch -->
4
+ <title>Oval Copy</title>
5
+ <desc>Created with Sketch.</desc>
6
+ <defs>
7
+ <path d="M119,136 C119,136 135,124.692424 135,114 C135,103.307576 127.836556,98 119,98 C110.163444,98 103,103.307576 103,114 C103,124.692424 119,136 119,136 Z" id="path-1"></path>
8
+ <mask id="mask-2" maskContentUnits="userSpaceOnUse" maskUnits="objectBoundingBox" x="0" y="0" width="32" height="38" fill="white">
9
+ <use xlink:href="#path-1"></use>
10
+ </mask>
11
+ </defs>
12
+ <g id="Map-Block" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-dasharray="4">
13
+ <g id="Revised-01-Placeholder-Copy" transform="translate(-496.000000, -376.000000)" stroke="#444444" stroke-width="4">
14
+ <g id="Group" transform="translate(393.000000, 278.000000)">
15
+ <use id="Oval-Copy" mask="url(#mask-2)" xlink:href="#path-1"></use>
16
+ </g>
17
+ </g>
18
+ </g>
19
+ </svg>
_inc/blocks/images/paypal-button-1e53882e702881f8dfd958c141e65383.png ADDED
Binary file
_inc/blocks/images/paypal-button-2x-fe4d34770a47484f401cecbb892f8456.png ADDED
Binary file
_inc/blocks/index.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "production": [
3
+ "contact-form",
4
+ "gif",
5
+ "map",
6
+ "markdown",
7
+ "publicize",
8
+ "related-posts",
9
+ "shortlinks",
10
+ "simple-payments",
11
+ "subscriptions",
12
+ "tiled-gallery"
13
+ ],
14
+ "beta": [
15
+ "mailchimp",
16
+ "vr",
17
+ "contact-info"
18
+ ]
19
+ }
_inc/blocks/map/mapbox-gl.css ADDED
@@ -0,0 +1 @@
 
1
+ .mapboxgl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mapboxgl-map:-webkit-full-screen{width:100%;height:100%}.mapboxgl-canary{background-color:salmon}.mapboxgl-canvas-container.mapboxgl-interactive,.mapboxgl-ctrl-group>button.mapboxgl-ctrl-compass{cursor:-webkit-grab;cursor:grab;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.mapboxgl-canvas-container.mapboxgl-interactive:active,.mapboxgl-ctrl-group>button.mapboxgl-ctrl-compass:active{cursor:-webkit-grabbing;cursor:grabbing}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate .mapboxgl-canvas{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.mapboxgl-canvas-container.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-drag-pan .mapboxgl-canvas{-ms-touch-action:pinch-zoom;touch-action:pinch-zoom}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas{-ms-touch-action:none;touch-action:none}.mapboxgl-ctrl-bottom-left,.mapboxgl-ctrl-bottom-right,.mapboxgl-ctrl-top-left,.mapboxgl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.mapboxgl-ctrl-top-left{top:0;left:0}.mapboxgl-ctrl-top-right{top:0;right:0}.mapboxgl-ctrl-bottom-left{bottom:0;left:0}.mapboxgl-ctrl-bottom-right{right:0;bottom:0}.mapboxgl-ctrl{clear:both;pointer-events:auto}.mapboxgl-ctrl-top-left .mapboxgl-ctrl{margin:10px 0 0 10px;float:left}.mapboxgl-ctrl-top-right .mapboxgl-ctrl{margin:10px 10px 0 0;float:right}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl{margin:0 0 10px 10px;float:left}.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl{margin:0 10px 10px 0;float:right}.mapboxgl-ctrl-group{border-radius:4px;overflow:hidden;background:#fff}.mapboxgl-ctrl-group:not(:empty){-webkit-box-shadow:0 0 2px rgba(0,0,0,.1);box-shadow:0 0 0 2px rgba(0,0,0,.1)}.mapboxgl-ctrl-group>button{width:30px;height:30px;display:block;padding:0;outline:none;border:0;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:transparent;cursor:pointer}.mapboxgl-ctrl-group>button+button{border-top:1px solid #ddd}.mapboxgl-ctrl>button::-moz-focus-inner{border:0;padding:0}.mapboxgl-ctrl>button:hover{background-color:rgba(0,0,0,.05)}.mapboxgl-ctrl-icon,.mapboxgl-ctrl-icon>.mapboxgl-ctrl-compass-arrow{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.mapboxgl-ctrl-icon{padding:5px}.mapboxgl-ctrl-icon.mapboxgl-ctrl-zoom-out{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 9c-.554 0-1 .446-1 1s.446 1 1 1h6c.554 0 1-.446 1-1s-.446-1-1-1z' fill='%23333'/%3E%3C/svg%3E")}.mapboxgl-ctrl-icon.mapboxgl-ctrl-zoom-in{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 6c-.554 0-1 .446-1 1v2H7c-.554 0-1 .446-1 1s.446 1 1 1h2v2c0 .554.446 1 1 1s1-.446 1-1v-2h2c.554 0 1-.446 1-1s-.446-1-1-1h-2V7c0-.554-.446-1-1-1z' fill='%23333'/%3E%3C/svg%3E")}.mapboxgl-ctrl-icon.mapboxgl-ctrl-geolocate{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 0 1 3.5 3.5 3.5 3.5 0 0 1-3.5 3.5A3.5 3.5 0 0 1 6.5 10 3.5 3.5 0 0 1 10 6.5zm0 1.8A1.8 1.8 0 0 0 8.3 10a1.8 1.8 0 0 0 1.7 1.8 1.8 1.8 0 0 0 1.8-1.8A1.8 1.8 0 0 0 10 8.3z'/%3E%3C/svg%3E")}.mapboxgl-ctrl-icon.mapboxgl-ctrl-geolocate:disabled{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23aaa'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 0 1 3.5 3.5 3.5 3.5 0 0 1-3.5 3.5A3.5 3.5 0 0 1 6.5 10 3.5 3.5 0 0 1 10 6.5zm0 1.8A1.8 1.8 0 0 0 8.3 10a1.8 1.8 0 0 0 1.7 1.8 1.8 1.8 0 0 0 1.8-1.8A1.8 1.8 0 0 0 10 8.3z'/%3E%3C/svg%3E")}.mapboxgl-ctrl-icon.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 0 1 3.5 3.5 3.5 3.5 0 0 1-3.5 3.5A3.5 3.5 0 0 1 6.5 10 3.5 3.5 0 0 1 10 6.5zm0 1.8A1.8 1.8 0 0 0 8.3 10a1.8 1.8 0 0 0 1.7 1.8 1.8 1.8 0 0 0 1.8-1.8A1.8 1.8 0 0 0 10 8.3z'/%3E%3C/svg%3E")}.mapboxgl-ctrl-icon.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 0 1 3.5 3.5 3.5 3.5 0 0 1-3.5 3.5A3.5 3.5 0 0 1 6.5 10 3.5 3.5 0 0 1 10 6.5zm0 1.8A1.8 1.8 0 0 0 8.3 10a1.8 1.8 0 0 0 1.7 1.8 1.8 1.8 0 0 0 1.8-1.8A1.8 1.8 0 0 0 10 8.3z'/%3E%3C/svg%3E")}.mapboxgl-ctrl-icon.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7z'/%3E%3C/svg%3E")}.mapboxgl-ctrl-icon.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7z'/%3E%3C/svg%3E")}.mapboxgl-ctrl-icon.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-waiting{-webkit-animation:mapboxgl-spin 2s linear infinite;animation:mapboxgl-spin 2s linear infinite}@-webkit-keyframes mapboxgl-spin{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(1turn)}}@keyframes mapboxgl-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.mapboxgl-ctrl-icon.mapboxgl-ctrl-fullscreen{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 4c-.5 0-1 .5-1 1v4h.5l1.277-1.703c1 .763 2.059 1.66 3.114 2.703a30.38 30.38 0 0 1-3.11 2.707L4.5 11H4v4c0 .5.5 1 1 1h4v-.5l-1.727-1.295a35.498 35.498 0 0 1 2.688-3.137 30.312 30.312 0 0 1 2.746 3.15L11 15.5v.5h4c.5 0 1-.5 1-1v-4h-.5l-1.295 1.727a35.513 35.513 0 0 1-3.168-2.717 47.787 47.787 0 0 1 3.192-2.705L15.5 9h.5V5c0-.5-.5-1-1-1h-4v.5l1.703 1.277A32.243 32.243 0 0 1 9.971 8.92 47.761 47.761 0 0 1 7.305 5.77L9 4.5V4H5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl-icon.mapboxgl-ctrl-shrink{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.242 3.492a.75.75 0 0 0-.523 1.29l2.246 2.245L4 8.5V9h4c.5 0 1-.5 1-1V4h-.5L7.018 5.955 4.78 3.72a.75.75 0 0 0-.539-.227zm11.492 0a.75.75 0 0 0-.515.227l-2.235 2.234L11.5 4H11v4c0 .5.5 1 1 1h4v-.5l-1.965-1.473 2.246-2.246a.75.75 0 0 0-.547-1.289zM4 11v.5l1.965 1.473-2.246 2.246A.751.751 0 1 0 4.78 16.28l2.246-2.246L8.5 16H9v-4c0-.5-.5-1-1-1H4zm8 0c-.5 0-1 .5-1 1v4h.5l1.473-1.965 2.246 2.246a.751.751 0 1 0 1.062-1.062l-2.246-2.246L16 11.5V11h-4z'/%3E%3C/svg%3E")}.mapboxgl-ctrl-icon.mapboxgl-ctrl-compass>.mapboxgl-ctrl-compass-arrow{width:20px;height:20px;margin:5px;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23333' d='M6 9l4-8 4 8z'/%3E%3Cpath fill='%23CCC' d='M6 11l4 8 4-8z'/%3E%3C/svg%3E");background-repeat:no-repeat;display:inline-block}a.mapboxgl-ctrl-logo{width:85px;height:21px;margin:0 0 -3px -3px;display:block;background-repeat:no-repeat;cursor:pointer;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84.49 21'%3E%3Cpath class='st0' d='M83.25 14.26c0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.39-1.44 2.39a.34.34 0 0 1-.3.17h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.68-2.39-3.64a.213.213 0 0 1-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.36 1.4-2.35a.34.34 0 0 1 .3-.17H83c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.63 2.43 3.67c0 .05.01.09.01.13zM66.24 9.59c-.39-1.88-1.96-3.28-3.84-3.28-1.03 0-2.03.42-2.73 1.18V3.51c0-.13-.1-.23-.23-.23h-1.4c-.13 0-.23.11-.23.23v10.72c0 .13.1.23.23.23h1.4c.13 0 .23-.11.23-.23v-.73c.71.75 1.7 1.18 2.73 1.18 1.88 0 3.45-1.41 3.84-3.29.13-.6.13-1.21 0-1.8zM62.08 13c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51S63.41 13 62.08 13zM71.67 6.32a4.24 4.24 0 0 0-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 0 0 4.17 3.3c2.35 0 4.26-1.87 4.26-4.19s-1.9-4.17-4.27-4.17zm-.02 6.69c-1.33 0-2.42-1.12-2.42-2.51s1.08-2.52 2.42-2.52c1.33 0 2.42 1.12 2.42 2.51s-1.08 2.51-2.42 2.52z' opacity='.9' fill='%23fff'/%3E%3Cpath class='st1' d='M62.08 7.98c-1.32 0-2.39 1.11-2.41 2.48v.06c.01 1.38 1.08 2.48 2.41 2.48s2.42-1.12 2.42-2.51-1.09-2.51-2.42-2.51zm0 3.78c-.63 0-1.14-.56-1.17-1.25v-.04c.01-.69.54-1.25 1.17-1.25.63 0 1.17.57 1.17 1.27-.01.71-.52 1.27-1.17 1.27zM71.65 7.98c-1.33 0-2.42 1.12-2.42 2.51S70.32 13 71.65 13s2.42-1.12 2.42-2.51-1.08-2.51-2.42-2.51zm0 3.78c-.64 0-1.17-.57-1.17-1.27 0-.7.53-1.26 1.17-1.26s1.17.57 1.17 1.27c0 .71-.53 1.26-1.17 1.26z' opacity='.35'/%3E%3Cpath class='st0' d='M45.74 6.53h-1.4c-.13 0-.23.11-.23.23v.73c-.71-.75-1.7-1.18-2.73-1.18-2.17 0-3.94 1.87-3.94 4.19s1.77 4.19 3.94 4.19c1.04 0 2.03-.43 2.73-1.19v.73c0 .13.1.23.23.23h1.4c.13 0 .23-.11.23-.23V6.74c0-.12-.09-.22-.22-.22 0 .01 0 .01-.01.01zm-1.62 4C44.11 11.9 43.03 13 41.71 13s-2.42-1.12-2.42-2.51 1.08-2.52 2.4-2.52c1.33 0 2.39 1.11 2.41 2.48l.02.08z' opacity='.9' fill='%23fff'/%3E%3Cpath class='st1' d='M41.71 7.98c-1.33 0-2.42 1.12-2.42 2.51S40.37 13 41.71 13s2.39-1.11 2.41-2.48v-.06c-.02-1.37-1.09-2.48-2.41-2.48zm-1.16 2.51c0-.7.52-1.27 1.17-1.27.64 0 1.14.56 1.17 1.25v.04c-.01.68-.53 1.24-1.17 1.24-.64 0-1.17-.56-1.17-1.26z' opacity='.35'/%3E%3Cpath class='st0' d='M52.41 6.32c-1.03 0-2.03.42-2.73 1.18v-.75c0-.13-.1-.23-.23-.23h-1.4c-.13 0-.23.11-.23.23v10.72c0 .13.1.23.23.23h1.4c.13 0 .23-.1.23-.23V13.5c.71.75 1.7 1.18 2.74 1.18 2.17 0 3.94-1.87 3.94-4.19s-1.78-4.17-3.95-4.17zm-.33 6.69c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51S53.4 13 52.08 13.01z' opacity='.9' fill='%23fff'/%3E%3Cpath class='st1' d='M52.08 7.98c-1.32 0-2.39 1.11-2.42 2.48v.06c.03 1.38 1.1 2.48 2.42 2.48s2.41-1.12 2.41-2.51-1.09-2.51-2.41-2.51zm0 3.78c-.63 0-1.14-.56-1.17-1.25v-.04c.01-.69.54-1.25 1.17-1.25.63 0 1.17.58 1.17 1.27s-.53 1.27-1.17 1.27z' opacity='.35'/%3E%3Cpath class='st0' d='M36.08 14.24c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23V9.68c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.66c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23V9.68c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.48c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.11-.23-.23V6.74c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.66c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.17z' opacity='.9' fill='%23fff'/%3E%3Cpath class='st1' d='M84.34 13.59l-.07-.13-1.96-2.99 1.94-2.95c.44-.67.26-1.56-.41-2.02-.02 0-.03 0-.04-.01-.23-.15-.5-.22-.78-.22h-1.61c-.56 0-1.08.29-1.37.78l-.32.55-.34-.56c-.29-.48-.81-.77-1.38-.77h-1.6c-.6 0-1.13.37-1.35.92a5.59 5.59 0 0 0-7.26.45c-.35.34-.65.72-.89 1.14-.9-1.62-2.58-2.72-4.5-2.72-.5 0-1.01.07-1.48.23V3.51c0-.82-.66-1.48-1.47-1.48h-1.4c-.81 0-1.47.66-1.47 1.47v3.75a5.12 5.12 0 0 0-4.17-2.19c-.74 0-1.46.16-2.12.47-.24-.17-.54-.26-.84-.26h-1.4c-.45 0-.87.21-1.15.56a1.498 1.498 0 0 0-1.16-.55h-1.39c-.3 0-.6.09-.84.26-.67-.3-1.39-.46-2.12-.46-1.83 0-3.43 1-4.37 2.5-.2-.46-.48-.89-.83-1.25-.8-.81-1.89-1.25-3.02-1.25h-.01c-.89.01-1.75.33-2.46.88-.74-.57-1.64-.88-2.57-.88h-.03c-.29 0-.58.03-.86.11-.28.06-.56.16-.82.28-.21-.12-.45-.18-.7-.18h-1.4c-.82 0-1.47.66-1.47 1.47v7.5c0 .82.66 1.47 1.47 1.47h1.4c.82 0 1.48-.66 1.48-1.48V9.79c.03-.36.23-.59.36-.59.18 0 .38.18.38.47v4.57c0 .82.66 1.47 1.47 1.47h1.41c.82 0 1.47-.66 1.47-1.47l-.01-4.57c.06-.32.25-.47.35-.47.18 0 .38.18.38.47v4.57c0 .82.66 1.47 1.47 1.47h1.41c.82 0 1.47-.66 1.47-1.47v-.38a5.068 5.068 0 0 0 4.06 2.06c.74 0 1.46-.16 2.12-.47.24.17.54.26.84.26h1.39c.3 0 .6-.09.84-.26v2.01c0 .82.66 1.47 1.47 1.47h1.4c.82 0 1.47-.66 1.47-1.47v-1.77c.48.15.99.23 1.49.22 1.7 0 3.22-.87 4.17-2.2v.52c0 .82.66 1.47 1.47 1.47h1.4c.3 0 .6-.09.84-.26.66.31 1.39.47 2.12.47 1.92 0 3.6-1.1 4.49-2.73 1.54 2.65 4.95 3.53 7.58 1.98.18-.11.36-.22.53-.36.22.55.76.91 1.35.9H78c.56 0 1.08-.29 1.37-.78l.37-.61.37.61c.29.48.81.78 1.38.78h1.6c.81 0 1.46-.66 1.45-1.46-.05-.22-.1-.44-.2-.65zm-48.48.88h-1.41c-.13 0-.23-.11-.23-.23V9.68c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.66c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23V9.68c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.48c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.11-.23-.23V6.74a.23.23 0 0 1 .23-.22h1.4c.13 0 .22.11.23.22v.66c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.01 5.16c.02.13-.09.23-.21.24zm10.11-.23c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.11-.23-.23v-.74c-.7.76-1.69 1.18-2.72 1.18-2.17 0-3.94-1.87-3.94-4.19s1.77-4.19 3.94-4.19c1.03 0 2.02.43 2.73 1.18v-.74c0-.13.1-.23.23-.23h1.4c.12-.01.22.08.23.21V14.25h-.01v-.01zm6.44.43c-1.03 0-2.02-.43-2.73-1.18v3.97c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V6.75c0-.13.1-.22.23-.22h1.4c.13 0 .23.11.23.23v.73a3.73 3.73 0 0 1 2.73-1.18c2.17 0 3.94 1.86 3.94 4.18s-1.77 4.18-3.94 4.18zm13.83-3.28c-.39 1.87-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.73c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.11-.23-.23V3.51c0-.13.1-.23.23-.23h1.4c.13 0 .23.11.23.23v3.97a3.72 3.72 0 0 1 2.73-1.17c1.88 0 3.45 1.4 3.84 3.28.13.6.13 1.21 0 1.8zm5.43 3.29c-2 .01-3.73-1.35-4.17-3.3-.13-.59-.13-1.19 0-1.77a4.243 4.243 0 0 1 4.17-3.3c2.36 0 4.26 1.87 4.26 4.19s-1.9 4.18-4.26 4.18zm11.37-.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.39-1.44 2.39a.34.34 0 0 1-.3.17h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.68-2.39-3.64a.213.213 0 0 1-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.36 1.41-2.36a.34.34 0 0 1 .3-.17h1.61c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.38 3.64 2.43 3.67c.02.03.03.07.03.12-.03.13-.12.22-.24.22z' opacity='.35'/%3E%3Cpath class='st0' d='M10.5 1.24c-5.11 0-9.25 4.15-9.25 9.25s4.15 9.25 9.25 9.25 9.25-4.15 9.25-9.25c0-5.11-4.14-9.25-9.25-9.25zm4.39 11.53c-1.93 1.93-4.78 2.31-6.7 2.31-.7 0-1.41-.05-2.1-.16 0 0-1.02-5.64 2.14-8.81a4.4 4.4 0 0 1 3.13-1.28c1.27 0 2.49.51 3.39 1.42 1.84 1.84 1.89 4.75.14 6.52z' opacity='.9' fill='%23fff'/%3E%3Cpath class='st1' d='M10.5-.01C4.7-.01 0 4.7 0 10.49s4.7 10.5 10.5 10.5S21 16.29 21 10.49C20.99 4.7 16.3-.01 10.5-.01zm0 19.75c-5.11 0-9.25-4.15-9.25-9.25s4.14-9.26 9.25-9.26 9.25 4.15 9.25 9.25c0 5.13-4.14 9.26-9.25 9.26z' opacity='.35'/%3E%3Cpath class='st1' d='M14.74 6.25c-1.84-1.84-4.76-1.9-6.51-.15-3.16 3.17-2.14 8.81-2.14 8.81s5.64 1.02 8.81-2.14c1.74-1.77 1.69-4.68-.16-6.52zm-2.27 4.09l-.91 1.87-.9-1.87-1.86-.91 1.86-.9.9-1.87.91 1.87 1.86.9-1.86.91z' opacity='.35'/%3E%3Cpath class='st0' opacity='.9' fill='%23fff' d='M14.33 9.43l-1.86.91-.91 1.87-.9-1.87-1.86-.91 1.86-.9.9-1.87.91 1.87z'/%3E%3C/svg%3E")}a.mapboxgl-ctrl-logo.mapboxgl-compact{width:21px;height:21px;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'%3E%3Cpath d='M10.5 1.25c-5.11 0-9.25 4.15-9.25 9.25s4.15 9.25 9.25 9.25 9.25-4.15 9.25-9.25c0-5.11-4.14-9.25-9.25-9.25zm4.39 11.53c-1.93 1.93-4.78 2.31-6.7 2.31-.7 0-1.41-.05-2.1-.16 0 0-1.02-5.64 2.14-8.81a4.4 4.4 0 0 1 3.13-1.28c1.27 0 2.49.51 3.39 1.42 1.84 1.84 1.89 4.75.14 6.52z' class='st0' opacity='.9' fill='%23fff'/%3E%3Cpath d='M10.5 0C4.7 0 0 4.71 0 10.5S4.7 21 10.5 21 21 16.3 21 10.5C20.99 4.71 16.3 0 10.5 0zm0 19.75c-5.11 0-9.25-4.15-9.25-9.25s4.14-9.26 9.25-9.26 9.25 4.15 9.25 9.25c0 5.13-4.14 9.26-9.25 9.26z' class='st1' opacity='.35'/%3E%3Cpath d='M14.74 6.26c-1.84-1.84-4.76-1.9-6.51-.15-3.16 3.17-2.14 8.81-2.14 8.81s5.64 1.02 8.81-2.14c1.74-1.77 1.69-4.68-.16-6.52zm-2.27 4.09l-.91 1.87-.9-1.87-1.86-.91 1.86-.9.9-1.87.91 1.87 1.86.9z' class='st1' opacity='.35'/%3E%3Cpath class='st0' opacity='.9' fill='%23fff' d='M11.56 12.22l-.9-1.87-1.86-.91 1.86-.9.9-1.87.91 1.87 1.86.9-1.86.91z'/%3E%3C/svg%3E")}.mapboxgl-ctrl.mapboxgl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.mapboxgl-ctrl-attrib.mapboxgl-compact{margin:10px;position:relative;background-color:#fff;border-radius:3px 12px 12px 3px}.mapboxgl-ctrl-attrib.mapboxgl-compact:hover{padding:2px 24px 2px 4px;visibility:visible}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:hover,.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:hover{padding:2px 4px 2px 24px;border-radius:12px 3px 3px 12px}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner{display:none}.mapboxgl-ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner{display:block}.mapboxgl-ctrl-attrib.mapboxgl-compact:after{content:"";cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23333' fill-rule='evenodd' d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:12px}.mapboxgl-ctrl-bottom-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;right:0}.mapboxgl-ctrl-top-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{top:0;right:0}.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{top:0;left:0}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;left:0}}.mapboxgl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.mapboxgl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.mapboxgl-ctrl-attrib .mapbox-improve-map{font-weight:700;margin-left:2px}.mapboxgl-attrib-empty{display:none}.mapboxgl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;border:2px solid #333;border-top:#333;padding:0 5px;color:#333;-webkit-box-sizing:border-box;box-sizing:border-box}.mapboxgl-popup{position:absolute;top:0;left:0;display:-webkit-box;display:-ms-flexbox;display:flex;will-change:transform;pointer-events:none}.mapboxgl-popup-anchor-top,.mapboxgl-popup-anchor-top-left,.mapboxgl-popup-anchor-top-right{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.mapboxgl-popup-anchor-bottom,.mapboxgl-popup-anchor-bottom-left,.mapboxgl-popup-anchor-bottom-right{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.mapboxgl-popup-anchor-left{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.mapboxgl-popup-anchor-right{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.mapboxgl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.mapboxgl-popup-anchor-top .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-top:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip{-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-bottom:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip{-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.mapboxgl-popup-anchor-left .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-left:none;border-right-color:#fff}.mapboxgl-popup-anchor-right .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-right:none;border-left-color:#fff}.mapboxgl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.mapboxgl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.mapboxgl-popup-content{position:relative;background:#fff;border-radius:3px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.1);box-shadow:0 1px 2px rgba(0,0,0,.1);padding:10px 10px 15px;pointer-events:auto}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-content{border-top-left-radius:0}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-content{border-top-right-radius:0}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-content{border-bottom-left-radius:0}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-content{border-bottom-right-radius:0}.mapboxgl-marker{position:absolute;top:0;left:0;will-change:transform}.mapboxgl-user-location-dot{-webkit-box-shadow:0 0 2px rgba(0,0,0,.25);box-shadow:0 0 2px rgba(0,0,0,.25)}.mapboxgl-user-location-dot,.mapboxgl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.mapboxgl-user-location-dot:before{content:"";position:absolute;-webkit-animation:mapboxgl-user-location-dot-pulse 2s infinite;animation:mapboxgl-user-location-dot-pulse 2s infinite}.mapboxgl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;-webkit-box-sizing:border-box;box-sizing:border-box}@-webkit-keyframes mapboxgl-user-location-dot-pulse{0%{-webkit-transform:scale(1);opacity:1}70%{-webkit-transform:scale(3);opacity:0}to{-webkit-transform:scale(1);opacity:0}}@keyframes mapboxgl-user-location-dot-pulse{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}70%{-webkit-transform:scale(3);transform:scale(3);opacity:0}to{-webkit-transform:scale(1);transform:scale(1);opacity:0}}.mapboxgl-user-location-dot-stale{background-color:#aaa}.mapboxgl-user-location-dot-stale:after{display:none}.mapboxgl-crosshair,.mapboxgl-crosshair .mapboxgl-interactive,.mapboxgl-crosshair .mapboxgl-interactive:active{cursor:crosshair}.mapboxgl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}@media print{.mapbox-improve-map{display:none}}
_inc/blocks/map/mapbox-gl.js ADDED
@@ -0,0 +1 @@
 
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[3],{281:function(t,e,r){t.exports=function(){"use strict";var t,e,r;function i(i,n){if(t)if(e){var o="var sharedChunk = {}; ("+t+")(sharedChunk); ("+e+")(sharedChunk);",a={};t(a),(r=n(a)).workerUrl=window.URL.createObjectURL(new Blob([o],{type:"text/javascript"}))}else e=n;else t=n}return i(0,function(t){function e(t,e){return t(e={exports:{}},e.exports),e.exports}var r=i;function i(t,e,r,i){this.cx=3*t,this.bx=3*(r-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(i-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=i,this.p2x=r,this.p2y=i}i.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},i.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},i.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},i.prototype.solveCurveX=function(t,e){var r,i,n,o,a;for(void 0===e&&(e=1e-6),n=t,a=0;a<8;a++){if(o=this.sampleCurveX(n)-t,Math.abs(o)<e)return n;var s=this.sampleCurveDerivativeX(n);if(Math.abs(s)<1e-6)break;n-=o/s}if((n=t)<(r=0))return r;if(n>(i=1))return i;for(;r<i;){if(o=this.sampleCurveX(n),Math.abs(o-t)<e)return n;t>o?r=n:i=n,n=.5*(i-r)+r}return n},i.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))};var n=o;function o(t,e){this.x=t,this.y=e}function a(t,e){if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(!a(t[r],e[r]))return!1;return!0}if("object"==typeof t&&null!==t&&null!==e){if("object"!=typeof e)return!1;if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var i in t)if(!a(t[i],e[i]))return!1;return!0}return t===e}function s(t,e,i,n){var o=new r(t,e,i,n);return function(t){return o.solve(t)}}o.prototype={clone:function(){return new o(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&&this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,r=t.y-this.y;return e*e+r*r},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[0]*this.x+t[1]*this.y,r=t[2]*this.x+t[3]*this.y;return this.x=e,this.y=r,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),r=Math.sin(t),i=e*this.x-r*this.y,n=r*this.x+e*this.y;return this.x=i,this.y=n,this},_rotateAround:function(t,e){var r=Math.cos(t),i=Math.sin(t),n=e.x+r*(this.x-e.x)-i*(this.y-e.y),o=e.y+i*(this.x-e.x)+r*(this.y-e.y);return this.x=n,this.y=o,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},o.convert=function(t){return t instanceof o?t:Array.isArray(t)?new o(t[0],t[1]):t};var u=s(.25,.1,.25,1);function l(t,e,r){return Math.min(r,Math.max(e,t))}function p(t,e,r){var i=r-e,n=((t-e)%i+i)%i+e;return n===e?r:n}function c(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];for(var i=0,n=e;i<n.length;i+=1){var o=n[i];for(var a in o)t[a]=o[a]}return t}var h=1;function f(){return h++}function d(){return function t(e){return e?(e^16*Math.random()>>e/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}function m(t){return!!t&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)}function y(t,e){t.forEach(function(t){e[t]&&(e[t]=e[t].bind(e))})}function _(t,e){return-1!==t.indexOf(e,t.length-e.length)}function v(t,e,r){var i={};for(var n in t)i[n]=e.call(r||this,t[n],n,t);return i}function g(t,e,r){var i={};for(var n in t)e.call(r||this,t[n],n,t)&&(i[n]=t[n]);return i}function x(t){return Array.isArray(t)?t.map(x):"object"==typeof t&&t?v(t,x):t}var b={};function w(t){b[t]||("undefined"!=typeof console&&console.warn(t),b[t]=!0)}function E(t,e,r){return(r.y-t.y)*(e.x-t.x)>(e.y-t.y)*(r.x-t.x)}function S(t){for(var e=0,r=0,i=t.length,n=i-1,o=void 0,a=void 0;r<i;n=r++)o=t[r],e+=((a=t[n]).x-o.x)*(o.y+a.y);return e}function T(t){try{var e=self[t];return e.setItem("_mapbox_test_",1),e.removeItem("_mapbox_test_"),!0}catch(t){return!1}}var A,z,I=self.performance&&self.performance.now?self.performance.now.bind(self.performance):Date.now.bind(Date),C=self.requestAnimationFrame||self.mozRequestAnimationFrame||self.webkitRequestAnimationFrame||self.msRequestAnimationFrame,k=self.cancelAnimationFrame||self.mozCancelAnimationFrame||self.webkitCancelAnimationFrame||self.msCancelAnimationFrame,P={now:I,frame:function(t){var e=C(t);return{cancel:function(){return k(e)}}},getImageData:function(t){var e=self.document.createElement("canvas"),r=e.getContext("2d");if(!r)throw new Error("failed to create canvas 2d context");return e.width=t.width,e.height=t.height,r.drawImage(t,0,0,t.width,t.height),r.getImageData(0,0,t.width,t.height)},resolveURL:function(t){var e=self.document.createElement("a");return e.href=t,e.href},hardwareConcurrency:self.navigator.hardwareConcurrency||4,get devicePixelRatio(){return self.devicePixelRatio}},M={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return 0===this.API_URL.indexOf("https://api.mapbox.cn")?"https://events.mapbox.cn/events/v2":"https://events.mapbox.com/events/v2"},REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},L={supported:!1,testSupport:function(t){!D&&z&&(z.complete?B(t):A=t)}},D=!1;function B(t){var e=t.createTexture();t.bindTexture(t.TEXTURE_2D,e);try{if(t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,z),t.isContextLost())return;L.supported=!0}catch(t){}t.deleteTexture(e),D=!0}self.document&&((z=self.document.createElement("img")).onload=function(){A&&B(A),A=null},z.onerror=function(){D=!0,A=null},z.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var R="See https://www.mapbox.com/api-documentation/#access-tokens";function O(t,e){var r=G(M.API_URL);if(t.protocol=r.protocol,t.authority=r.authority,"/"!==r.path&&(t.path=""+r.path+t.path),!M.REQUIRE_ACCESS_TOKEN)return X(t);if(!(e=e||M.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+R);if("s"===e[0])throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+R);return t.params.push("access_token="+e),X(t)}function F(t){return 0===t.indexOf("mapbox:")}var U=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function V(t){return U.test(t)}var N=/(\.(png|jpg)\d*)(?=$)/,j=/\.[\w]+$/,q=function(t){var e=G(t);if(!e.path.match(/(^\/v4\/)/)||!e.path.match(j))return t;var r="mapbox://tiles/";r+=e.path.replace("/v4/","");var i=e.params.filter(function(t){return!t.match(/^access_token=/)});return i.length&&(r+="?"+i.join("&")),r},Z=/^(\w+):\/\/([^\/?]*)(\/[^?]+)?\??(.+)?/;function G(t){var e=t.match(Z);if(!e)throw new Error("Unable to parse URL object");return{protocol:e[1],authority:e[2],path:e[3]||"/",params:e[4]?e[4].split("&"):[]}}function X(t){var e=t.params.length?"?"+t.params.join("&"):"";return t.protocol+"://"+t.authority+t.path+e}var W=function(t){this.type=t,this.anonId=null,this.eventData={lastSuccess:null,accessToken:M.ACCESS_TOKEN},this.queue=[],this.pendingRequest=null};W.prototype.fetchEventData=function(){var t=T("localStorage"),e="mapbox.eventData:"+(M.ACCESS_TOKEN||""),r="mapbox.eventData.uuid:"+(M.ACCESS_TOKEN||"");if(t)try{var i=self.localStorage.getItem(e);i&&(this.eventData=JSON.parse(i));var n=self.localStorage.getItem(r);n&&(this.anonId=n)}catch(t){w("Unable to read from LocalStorage")}},W.prototype.saveEventData=function(){var t=T("localStorage"),e="mapbox.eventData:"+(M.ACCESS_TOKEN||""),r="mapbox.eventData.uuid:"+(M.ACCESS_TOKEN||"");if(t)try{self.localStorage.setItem(r,this.anonId),this.eventData.lastSuccess&&self.localStorage.setItem(e,JSON.stringify(this.eventData))}catch(t){w("Unable to write to LocalStorage")}},W.prototype.processRequests=function(){},W.prototype.postEvent=function(t,e,r){var i=this,n=G(M.EVENTS_URL);n.params.push("access_token="+(M.ACCESS_TOKEN||""));var o={event:this.type,created:new Date(t).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"0.52.0",userId:this.anonId},a=e?c(o,e):o,s={url:X(n),headers:{"Content-Type":"text/plain"},body:JSON.stringify([a])};this.pendingRequest=at(s,function(t){i.pendingRequest=null,r(t),i.saveEventData(),i.processRequests()})},W.prototype.queueRequest=function(t){this.queue.push(t),this.processRequests()};var H=function(t){function e(){t.call(this,"map.load"),this.success={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.postMapLoadEvent=function(t,e){M.ACCESS_TOKEN&&Array.isArray(t)&&t.some(function(t){return V(t)})&&this.queueRequest({id:e,timestamp:Date.now()})},e.prototype.processRequests=function(){var t=this;if(!this.pendingRequest&&0!==this.queue.length){var e=this.queue.shift(),r=e.id,i=e.timestamp;r&&this.success[r]||(this.anonId||this.fetchEventData(),m(this.anonId)||(this.anonId=d()),this.postEvent(i,{},function(e){e||r&&(t.success[r]=!0)}))}},e}(W),K=new(function(t){function e(){t.call(this,"appUserTurnstile")}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.postTurnstileEvent=function(t){M.ACCESS_TOKEN&&Array.isArray(t)&&t.some(function(t){return V(t)})&&this.queueRequest(Date.now())},e.prototype.processRequests=function(){var t=this;if(!this.pendingRequest&&0!==this.queue.length){var e=!!this.eventData.accessToken&&this.eventData.accessToken!==M.ACCESS_TOKEN;e&&(this.anonId=this.eventData.lastSuccess=null),this.anonId&&this.eventData.lastSuccess||this.fetchEventData(),m(this.anonId)||(this.anonId=d(),e=!0);var r=this.queue.shift();if(this.eventData.lastSuccess){var i=new Date(this.eventData.lastSuccess),n=new Date(r),o=(r-this.eventData.lastSuccess)/864e5;e=e||o>=1||o<-1||i.getDate()!==n.getDate()}else e=!0;if(!e)return this.processRequests();this.postEvent(r,{"enabled.telemetry":!1},function(e){e||(t.eventData.lastSuccess=r,t.eventData.accessToken=M.ACCESS_TOKEN)})}},e}(W)),Y=K.postTurnstileEvent.bind(K),J=new H,$=J.postMapLoadEvent.bind(J),Q={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};"function"==typeof Object.freeze&&Object.freeze(Q);var tt,et,rt=function(t){function e(e,r,i){401===r&&V(i)&&(e+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens"),t.call(this,e),this.status=r,this.url=i,this.name=this.constructor.name,this.message=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},e}(Error),it="undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope?function(){return self.worker&&self.worker.referrer}:function(){var t=self.location.origin;if(t&&"null"!==t&&"file://"!==t)return t+self.location.pathname},nt=self.fetch&&self.Request&&self.AbortController?function(t,e){var r=new self.AbortController,i=new self.Request(t.url,{method:t.method||"GET",body:t.body,credentials:t.credentials,headers:t.headers,referrer:it(),signal:r.signal});return"json"===t.type&&i.headers.set("Accept","application/json"),self.fetch(i).then(function(r){r.ok?r[t.type||"text"]().then(function(t){e(null,t,r.headers.get("Cache-Control"),r.headers.get("Expires"))}).catch(function(t){return e(new Error(t.message))}):e(new rt(r.statusText,r.status,t.url))}).catch(function(t){20!==t.code&&e(new Error(t.message))}),{cancel:function(){return r.abort()}}}:function(t,e){var r=new self.XMLHttpRequest;for(var i in r.open(t.method||"GET",t.url,!0),"arrayBuffer"===t.type&&(r.responseType="arraybuffer"),t.headers)r.setRequestHeader(i,t.headers[i]);return"json"===t.type&&r.setRequestHeader("Accept","application/json"),r.withCredentials="include"===t.credentials,r.onerror=function(){e(new Error(r.statusText))},r.onload=function(){if((r.status>=200&&r.status<300||0===r.status)&&null!==r.response){var i=r.response;if("json"===t.type)try{i=JSON.parse(r.response)}catch(t){return e(t)}e(null,i,r.getResponseHeader("Cache-Control"),r.getResponseHeader("Expires"))}else e(new rt(r.statusText,r.status,t.url))},r.send(t.body),{cancel:function(){return r.abort()}}},ot=function(t,e){return nt(c(t,{type:"arrayBuffer"}),e)},at=function(t,e){return nt(c(t,{method:"POST"}),e)};tt=[],et=0;var st=function(t,e){if(et>=M.MAX_PARALLEL_IMAGE_REQUESTS){var r={requestParameters:t,callback:e,cancelled:!1};return tt.push(r),{cancel:function(){r.cancelled=!0}}}et++;var i=!1,n=function(){if(!i)for(i=!0,et--;tt.length&&et<M.MAX_PARALLEL_IMAGE_REQUESTS;){var t=tt.shift(),e=t.requestParameters,r=t.callback;t.cancelled||st(e,r)}},o=ot(t,function(t,r,i,o){if(n(),t)e(t);else if(r){var a=new self.Image,s=self.URL||self.webkitURL;a.onload=function(){e(null,a),s.revokeObjectURL(a.src)},a.onerror=function(){return e(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var u=new self.Blob([new Uint8Array(r)],{type:"image/png"});a.cacheControl=i,a.expires=o,a.src=r.byteLength?s.createObjectURL(u):"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII="}});return{cancel:function(){o.cancel(),n()}}};function ut(t,e,r){r[t]&&-1!==r[t].indexOf(e)||(r[t]=r[t]||[],r[t].push(e))}function lt(t,e,r){if(r&&r[t]){var i=r[t].indexOf(e);-1!==i&&r[t].splice(i,1)}}var pt=function(t,e){void 0===e&&(e={}),c(this,e),this.type=t},ct=function(t){function e(e,r){void 0===r&&(r={}),t.call(this,"error",c({error:e},r))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(pt),ht=function(){};ht.prototype.on=function(t,e){return this._listeners=this._listeners||{},ut(t,e,this._listeners),this},ht.prototype.off=function(t,e){return lt(t,e,this._listeners),lt(t,e,this._oneTimeListeners),this},ht.prototype.once=function(t,e){return this._oneTimeListeners=this._oneTimeListeners||{},ut(t,e,this._oneTimeListeners),this},ht.prototype.fire=function(t,e){"string"==typeof t&&(t=new pt(t,e||{}));var r=t.type;if(this.listens(r)){t.target=this;for(var i=0,n=this._listeners&&this._listeners[r]?this._listeners[r].slice():[];i<n.length;i+=1)n[i].call(this,t);for(var o=0,a=this._oneTimeListeners&&this._oneTimeListeners[r]?this._oneTimeListeners[r].slice():[];o<a.length;o+=1){var s=a[o];lt(r,s,this._oneTimeListeners),s.call(this,t)}var u=this._eventedParent;u&&(c(t,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),u.fire(t))}else t instanceof ct&&console.error(t.error);return this},ht.prototype.listens=function(t){return this._listeners&&this._listeners[t]&&this._listeners[t].length>0||this._oneTimeListeners&&this._oneTimeListeners[t]&&this._oneTimeListeners[t].length>0||this._eventedParent&&this._eventedParent.listens(t)},ht.prototype.setEventedParent=function(t,e){return this._eventedParent=t,this._eventedParentData=e,this};var ft={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-z-order":{type:"enum",values:{"viewport-y":{},source:{}},default:"viewport-y",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"string",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function_stop:{type:"array",minimum:0,maximum:22,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},expression_name:{type:"enum",values:{let:{group:"Variable binding"},var:{group:"Variable binding"},literal:{group:"Types"},array:{group:"Types"},at:{group:"Lookup"},case:{group:"Decision"},match:{group:"Decision"},coalesce:{group:"Decision"},step:{group:"Ramps, scales, curves"},interpolate:{group:"Ramps, scales, curves"},"interpolate-hcl":{group:"Ramps, scales, curves"},"interpolate-lab":{group:"Ramps, scales, curves"},ln2:{group:"Math"},pi:{group:"Math"},e:{group:"Math"},typeof:{group:"Types"},string:{group:"Types"},number:{group:"Types"},boolean:{group:"Types"},object:{group:"Types"},collator:{group:"Types"},format:{group:"Types"},"to-string":{group:"Types"},"to-number":{group:"Types"},"to-boolean":{group:"Types"},"to-rgba":{group:"Color"},"to-color":{group:"Types"},rgb:{group:"Color"},rgba:{group:"Color"},get:{group:"Lookup"},has:{group:"Lookup"},length:{group:"Lookup"},properties:{group:"Feature data"},"feature-state":{group:"Feature data"},"geometry-type":{group:"Feature data"},id:{group:"Feature data"},zoom:{group:"Zoom"},"heatmap-density":{group:"Heatmap"},"line-progress":{group:"Feature data"},"+":{group:"Math"},"*":{group:"Math"},"-":{group:"Math"},"/":{group:"Math"},"%":{group:"Math"},"^":{group:"Math"},sqrt:{group:"Math"},log10:{group:"Math"},ln:{group:"Math"},log2:{group:"Math"},sin:{group:"Math"},cos:{group:"Math"},tan:{group:"Math"},asin:{group:"Math"},acos:{group:"Math"},atan:{group:"Math"},min:{group:"Math"},max:{group:"Math"},round:{group:"Math"},abs:{group:"Math"},ceil:{group:"Math"},floor:{group:"Math"},"==":{group:"Decision"},"!=":{group:"Decision"},">":{group:"Decision"},"<":{group:"Decision"},">=":{group:"Decision"},"<=":{group:"Decision"},all:{group:"Decision"},any:{group:"Decision"},"!":{group:"Decision"},"is-supported-script":{group:"String"},upcase:{group:"String"},downcase:{group:"String"},concat:{group:"String"},"resolved-locale":{group:"String"}}},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"string",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"string",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"string",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"string",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}}},dt=function(t,e,r,i){this.message=(t?t+": ":"")+r,i&&(this.identifier=i),null!=e&&e.__line__&&(this.line=e.__line__)};function mt(t){var e=t.key,r=t.value;return r?[new dt(e,r,"constants have been deprecated as of v8")]:[]}function yt(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];for(var i=0,n=e;i<n.length;i+=1){var o=n[i];for(var a in o)t[a]=o[a]}return t}function _t(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function vt(t){return Array.isArray(t)?t.map(vt):_t(t)}var gt=function(t){function e(e,r){t.call(this,r),this.message=r,this.key=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error),xt=function(t,e){void 0===e&&(e=[]),this.parent=t,this.bindings={};for(var r=0,i=e;r<i.length;r+=1){var n=i[r],o=n[0],a=n[1];this.bindings[o]=a}};xt.prototype.concat=function(t){return new xt(this,t)},xt.prototype.get=function(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw new Error(t+" not found in scope.")},xt.prototype.has=function(t){return!!this.bindings[t]||!!this.parent&&this.parent.has(t)};var bt={kind:"null"},wt={kind:"number"},Et={kind:"string"},St={kind:"boolean"},Tt={kind:"color"},At={kind:"object"},zt={kind:"value"},It={kind:"collator"},Ct={kind:"formatted"};function kt(t,e){return{kind:"array",itemType:t,N:e}}function Pt(t){if("array"===t.kind){var e=Pt(t.itemType);return"number"==typeof t.N?"array<"+e+", "+t.N+">":"value"===t.itemType.kind?"array":"array<"+e+">"}return t.kind}var Mt=[bt,wt,Et,St,Tt,Ct,At,kt(zt)];function Lt(t,e){if("error"===e.kind)return null;if("array"===t.kind){if("array"===e.kind&&(0===e.N&&"value"===e.itemType.kind||!Lt(t.itemType,e.itemType))&&("number"!=typeof t.N||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if("value"===t.kind)for(var r=0,i=Mt;r<i.length;r+=1)if(!Lt(i[r],e))return null}return"Expected "+Pt(t)+" but found "+Pt(e)+" instead."}var Dt=e(function(t,e){var r={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function i(t){return(t=Math.round(t))<0?0:t>255?255:t}function n(t){return t<0?0:t>1?1:t}function o(t){return"%"===t[t.length-1]?i(parseFloat(t)/100*255):i(parseInt(t))}function a(t){return"%"===t[t.length-1]?n(parseFloat(t)/100):n(parseFloat(t))}function s(t,e,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?t+(e-t)*r*6:2*r<1?e:3*r<2?t+(e-t)*(2/3-r)*6:t}try{e.parseCSSColor=function(t){var e,n=t.replace(/ /g,"").toLowerCase();if(n in r)return r[n].slice();if("#"===n[0])return 4===n.length?(e=parseInt(n.substr(1),16))>=0&&e<=4095?[(3840&e)>>4|(3840&e)>>8,240&e|(240&e)>>4,15&e|(15&e)<<4,1]:null:7===n.length&&(e=parseInt(n.substr(1),16))>=0&&e<=16777215?[(16711680&e)>>16,(65280&e)>>8,255&e,1]:null;var u=n.indexOf("("),l=n.indexOf(")");if(-1!==u&&l+1===n.length){var p=n.substr(0,u),c=n.substr(u+1,l-(u+1)).split(","),h=1;switch(p){case"rgba":if(4!==c.length)return null;h=a(c.pop());case"rgb":return 3!==c.length?null:[o(c[0]),o(c[1]),o(c[2]),h];case"hsla":if(4!==c.length)return null;h=a(c.pop());case"hsl":if(3!==c.length)return null;var f=(parseFloat(c[0])%360+360)%360/360,d=a(c[1]),m=a(c[2]),y=m<=.5?m*(d+1):m+d-m*d,_=2*m-y;return[i(255*s(_,y,f+1/3)),i(255*s(_,y,f)),i(255*s(_,y,f-1/3)),h];default:return null}}return null}}catch(t){}}).parseCSSColor,Bt=function(t,e,r,i){void 0===i&&(i=1),this.r=t,this.g=e,this.b=r,this.a=i};Bt.parse=function(t){if(t){if(t instanceof Bt)return t;if("string"==typeof t){var e=Dt(t);if(e)return new Bt(e[0]/255*e[3],e[1]/255*e[3],e[2]/255*e[3],e[3])}}},Bt.prototype.toString=function(){var t=this.toArray(),e=t[0],r=t[1],i=t[2],n=t[3];return"rgba("+Math.round(e)+","+Math.round(r)+","+Math.round(i)+","+n+")"},Bt.prototype.toArray=function(){var t=this.r,e=this.g,r=this.b,i=this.a;return 0===i?[0,0,0,0]:[255*t/i,255*e/i,255*r/i,i]},Bt.black=new Bt(0,0,0,1),Bt.white=new Bt(1,1,1,1),Bt.transparent=new Bt(0,0,0,0),Bt.red=new Bt(1,0,0,1);var Rt=function(t,e,r){this.sensitivity=t?e?"variant":"case":e?"accent":"base",this.locale=r,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Rt.prototype.compare=function(t,e){return this.collator.compare(t,e)},Rt.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Ot=function(t,e,r){this.text=t,this.scale=e,this.fontStack=r},Ft=function(t){this.sections=t};function Ut(t,e,r,i){return"number"==typeof t&&t>=0&&t<=255&&"number"==typeof e&&e>=0&&e<=255&&"number"==typeof r&&r>=0&&r<=255?void 0===i||"number"==typeof i&&i>=0&&i<=1?null:"Invalid rgba value ["+[t,e,r,i].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+("number"==typeof i?[t,e,r,i]:[t,e,r]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function Vt(t){if(null===t)return bt;if("string"==typeof t)return Et;if("boolean"==typeof t)return St;if("number"==typeof t)return wt;if(t instanceof Bt)return Tt;if(t instanceof Rt)return It;if(t instanceof Ft)return Ct;if(Array.isArray(t)){for(var e,r=t.length,i=0,n=t;i<n.length;i+=1){var o=Vt(n[i]);if(e){if(e===o)continue;e=zt;break}e=o}return kt(e||zt,r)}return At}function Nt(t){var e=typeof t;return null===t?"":"string"===e||"number"===e||"boolean"===e?String(t):t instanceof Bt||t instanceof Ft?t.toString():JSON.stringify(t)}Ft.fromString=function(t){return new Ft([new Ot(t,null,null)])},Ft.prototype.toString=function(){return this.sections.map(function(t){return t.text}).join("")},Ft.prototype.serialize=function(){for(var t=["format"],e=0,r=this.sections;e<r.length;e+=1){var i=r[e];t.push(i.text);var n={};i.fontStack&&(n["text-font"]=["literal",i.fontStack.split(",")]),i.scale&&(n["font-scale"]=i.scale),t.push(n)}return t};var jt=function(t,e){this.type=t,this.value=e};jt.parse=function(t,e){if(2!==t.length)return e.error("'literal' expression requires exactly one argument, but found "+(t.length-1)+" instead.");if(!function t(e){if(null===e)return!0;if("string"==typeof e)return!0;if("boolean"==typeof e)return!0;if("number"==typeof e)return!0;if(e instanceof Bt)return!0;if(e instanceof Rt)return!0;if(e instanceof Ft)return!0;if(Array.isArray(e)){for(var r=0,i=e;r<i.length;r+=1)if(!t(i[r]))return!1;return!0}if("object"==typeof e){for(var n in e)if(!t(e[n]))return!1;return!0}return!1}(t[1]))return e.error("invalid value");var r=t[1],i=Vt(r),n=e.expectedType;return"array"!==i.kind||0!==i.N||!n||"array"!==n.kind||"number"==typeof n.N&&0!==n.N||(i=n),new jt(i,r)},jt.prototype.evaluate=function(){return this.value},jt.prototype.eachChild=function(){},jt.prototype.possibleOutputs=function(){return[this.value]},jt.prototype.serialize=function(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof Bt?["rgba"].concat(this.value.toArray()):this.value instanceof Ft?this.value.serialize():this.value};var qt=function(t){this.name="ExpressionEvaluationError",this.message=t};qt.prototype.toJSON=function(){return this.message};var Zt={string:Et,number:wt,boolean:St,object:At},Gt=function(t,e){this.type=t,this.args=e};Gt.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var r,i=1,n=t[0];if("array"===n){var o,a;if(t.length>2){var s=t[1];if("string"!=typeof s||!(s in Zt)||"object"===s)return e.error('The item type argument of "array" must be one of string, number, boolean',1);o=Zt[s],i++}else o=zt;if(t.length>3){if(null!==t[2]&&("number"!=typeof t[2]||t[2]<0||t[2]!==Math.floor(t[2])))return e.error('The length argument to "array" must be a positive integer literal',2);a=t[2],i++}r=kt(o,a)}else r=Zt[n];for(var u=[];i<t.length;i++){var l=e.parse(t[i],i,zt);if(!l)return null;u.push(l)}return new Gt(r,u)},Gt.prototype.evaluate=function(t){for(var e=0;e<this.args.length;e++){var r=this.args[e].evaluate(t);if(!Lt(this.type,Vt(r)))return r;if(e===this.args.length-1)throw new qt("Expected value to be of type "+Pt(this.type)+", but found "+Pt(Vt(r))+" instead.")}return null},Gt.prototype.eachChild=function(t){this.args.forEach(t)},Gt.prototype.possibleOutputs=function(){return(t=[]).concat.apply(t,this.args.map(function(t){return t.possibleOutputs()}));var t},Gt.prototype.serialize=function(){var t=this.type,e=[t.kind];if("array"===t.kind){var r=t.itemType;if("string"===r.kind||"number"===r.kind||"boolean"===r.kind){e.push(r.kind);var i=t.N;("number"==typeof i||this.args.length>1)&&e.push(i)}}return e.concat(this.args.map(function(t){return t.serialize()}))};var Xt=function(t){this.type=Ct,this.sections=t};Xt.parse=function(t,e){if(t.length<3)return e.error("Expected at least two arguments.");if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");for(var r=[],i=1;i<t.length-1;i+=2){var n=e.parse(t[i],1,zt);if(!n)return null;var o=n.type.kind;if("string"!==o&&"value"!==o&&"null"!==o)return e.error("Formatted text type must be 'string', 'value', or 'null'.");var a=t[i+1];if("object"!=typeof a||Array.isArray(a))return e.error("Format options argument must be an object.");var s=null;if(a["font-scale"]&&!(s=e.parse(a["font-scale"],1,wt)))return null;var u=null;if(a["text-font"]&&!(u=e.parse(a["text-font"],1,kt(Et))))return null;r.push({text:n,scale:s,font:u})}return new Xt(r)},Xt.prototype.evaluate=function(t){return new Ft(this.sections.map(function(e){return new Ot(Nt(e.text.evaluate(t)),e.scale?e.scale.evaluate(t):null,e.font?e.font.evaluate(t).join(","):null)}))},Xt.prototype.eachChild=function(t){for(var e=0,r=this.sections;e<r.length;e+=1){var i=r[e];t(i.text),i.scale&&t(i.scale),i.font&&t(i.font)}},Xt.prototype.possibleOutputs=function(){return[void 0]},Xt.prototype.serialize=function(){for(var t=["format"],e=0,r=this.sections;e<r.length;e+=1){var i=r[e];t.push(i.text.serialize());var n={};i.scale&&(n["font-scale"]=i.scale.serialize()),i.font&&(n["text-font"]=i.font.serialize()),t.push(n)}return t};var Wt={"to-boolean":St,"to-color":Tt,"to-number":wt,"to-string":Et},Ht=function(t,e){this.type=t,this.args=e};Ht.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var r=t[0];if(("to-boolean"===r||"to-string"===r)&&2!==t.length)return e.error("Expected one argument.");for(var i=Wt[r],n=[],o=1;o<t.length;o++){var a=e.parse(t[o],o,zt);if(!a)return null;n.push(a)}return new Ht(i,n)},Ht.prototype.evaluate=function(t){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(t));if("color"===this.type.kind){for(var e,r,i=0,n=this.args;i<n.length;i+=1){if(r=null,(e=n[i].evaluate(t))instanceof Bt)return e;if("string"==typeof e){var o=t.parseColor(e);if(o)return o}else if(Array.isArray(e)&&!(r=e.length<3||e.length>4?"Invalid rbga value "+JSON.stringify(e)+": expected an array containing either three or four numeric values.":Ut(e[0],e[1],e[2],e[3])))return new Bt(e[0]/255,e[1]/255,e[2]/255,e[3])}throw new qt(r||"Could not parse color from value '"+("string"==typeof e?e:JSON.stringify(e))+"'")}if("number"===this.type.kind){for(var a=null,s=0,u=this.args;s<u.length;s+=1){if(null===(a=u[s].evaluate(t)))return 0;var l=Number(a);if(!isNaN(l))return l}throw new qt("Could not convert "+JSON.stringify(a)+" to number.")}return"formatted"===this.type.kind?Ft.fromString(Nt(this.args[0].evaluate(t))):Nt(this.args[0].evaluate(t))},Ht.prototype.eachChild=function(t){this.args.forEach(t)},Ht.prototype.possibleOutputs=function(){return(t=[]).concat.apply(t,this.args.map(function(t){return t.possibleOutputs()}));var t},Ht.prototype.serialize=function(){if("formatted"===this.type.kind)return new Xt([{text:this.args[0],scale:null,font:null}]).serialize();var t=["to-"+this.type.kind];return this.eachChild(function(e){t.push(e.serialize())}),t};var Kt=["Unknown","Point","LineString","Polygon"],Yt=function(){this.globals=null,this.feature=null,this.featureState=null,this._parseColorCache={}};Yt.prototype.id=function(){return this.feature&&"id"in this.feature?this.feature.id:null},Yt.prototype.geometryType=function(){return this.feature?"number"==typeof this.feature.type?Kt[this.feature.type]:this.feature.type:null},Yt.prototype.properties=function(){return this.feature&&this.feature.properties||{}},Yt.prototype.parseColor=function(t){var e=this._parseColorCache[t];return e||(e=this._parseColorCache[t]=Bt.parse(t)),e};var Jt=function(t,e,r,i){this.name=t,this.type=e,this._evaluate=r,this.args=i};Jt.prototype.evaluate=function(t){return this._evaluate(t,this.args)},Jt.prototype.eachChild=function(t){this.args.forEach(t)},Jt.prototype.possibleOutputs=function(){return[void 0]},Jt.prototype.serialize=function(){return[this.name].concat(this.args.map(function(t){return t.serialize()}))},Jt.parse=function(t,e){var r=t[0],i=Jt.definitions[r];if(!i)return e.error('Unknown expression "'+r+'". If you wanted a literal array, use ["literal", [...]].',0);for(var n,o=Array.isArray(i)?i[0]:i.type,a=Array.isArray(i)?[[i[1],i[2]]]:i.overloads,s=a.filter(function(e){var r=e[0];return!Array.isArray(r)||r.length===t.length-1}),u=null,l=0,p=s;l<p.length;l+=1){var c=p[l],h=c[0],f=c[1];u=new ie(e.registry,e.path,null,e.scope);for(var d=[],m=!1,y=1;y<t.length;y++){var _=t[y],v=Array.isArray(h)?h[y-1]:h.type,g=u.parse(_,1+d.length,v);if(!g){m=!0;break}d.push(g)}if(!m)if(Array.isArray(h)&&h.length!==d.length)u.error("Expected "+h.length+" arguments, but found "+d.length+" instead.");else{for(var x=0;x<d.length;x++){var b=Array.isArray(h)?h[x]:h.type,w=d[x];u.concat(x+1).checkSubtype(b,w.type)}if(0===u.errors.length)return new Jt(r,o,f,d)}}if(1===s.length)(n=e.errors).push.apply(n,u.errors);else{for(var E=(s.length?s:a).map(function(t){var e;return e=t[0],Array.isArray(e)?"("+e.map(Pt).join(", ")+")":"("+Pt(e.type)+"...)"}).join(" | "),S=[],T=1;T<t.length;T++){var A=e.parse(t[T],1+S.length);if(!A)return null;S.push(Pt(A.type))}e.error("Expected arguments of type "+E+", but found ("+S.join(", ")+") instead.")}return null},Jt.register=function(t,e){for(var r in Jt.definitions=e,e)t[r]=Jt};var $t=function(t,e,r){this.type=It,this.locale=r,this.caseSensitive=t,this.diacriticSensitive=e};function Qt(t){if(t instanceof Jt){if("get"===t.name&&1===t.args.length)return!1;if("feature-state"===t.name)return!1;if("has"===t.name&&1===t.args.length)return!1;if("properties"===t.name||"geometry-type"===t.name||"id"===t.name)return!1;if(/^filter-/.test(t.name))return!1}var e=!0;return t.eachChild(function(t){e&&!Qt(t)&&(e=!1)}),e}function te(t){if(t instanceof Jt&&"feature-state"===t.name)return!1;var e=!0;return t.eachChild(function(t){e&&!te(t)&&(e=!1)}),e}function ee(t,e){if(t instanceof Jt&&e.indexOf(t.name)>=0)return!1;var r=!0;return t.eachChild(function(t){r&&!ee(t,e)&&(r=!1)}),r}$t.parse=function(t,e){if(2!==t.length)return e.error("Expected one argument.");var r=t[1];if("object"!=typeof r||Array.isArray(r))return e.error("Collator options argument must be an object.");var i=e.parse(void 0!==r["case-sensitive"]&&r["case-sensitive"],1,St);if(!i)return null;var n=e.parse(void 0!==r["diacritic-sensitive"]&&r["diacritic-sensitive"],1,St);if(!n)return null;var o=null;return r.locale&&!(o=e.parse(r.locale,1,Et))?null:new $t(i,n,o)},$t.prototype.evaluate=function(t){return new Rt(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)},$t.prototype.eachChild=function(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&&t(this.locale)},$t.prototype.possibleOutputs=function(){return[void 0]},$t.prototype.serialize=function(){var t={};return t["case-sensitive"]=this.caseSensitive.serialize(),t["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(t.locale=this.locale.serialize()),["collator",t]};var re=function(t,e){this.type=e.type,this.name=t,this.boundExpression=e};re.parse=function(t,e){if(2!==t.length||"string"!=typeof t[1])return e.error("'var' expression requires exactly one string literal argument.");var r=t[1];return e.scope.has(r)?new re(r,e.scope.get(r)):e.error('Unknown variable "'+r+'". Make sure "'+r+'" has been bound in an enclosing "let" expression before using it.',1)},re.prototype.evaluate=function(t){return this.boundExpression.evaluate(t)},re.prototype.eachChild=function(){},re.prototype.possibleOutputs=function(){return[void 0]},re.prototype.serialize=function(){return["var",this.name]};var ie=function(t,e,r,i,n){void 0===e&&(e=[]),void 0===i&&(i=new xt),void 0===n&&(n=[]),this.registry=t,this.path=e,this.key=e.map(function(t){return"["+t+"]"}).join(""),this.scope=i,this.errors=n,this.expectedType=r};function ne(t,e){for(var r,i,n=0,o=t.length-1,a=0;n<=o;){if(r=t[a=Math.floor((n+o)/2)],i=t[a+1],e===r||e>r&&e<i)return a;if(r<e)n=a+1;else{if(!(r>e))throw new qt("Input is not a number.");o=a-1}}return Math.max(a-1,0)}ie.prototype.parse=function(t,e,r,i,n){return void 0===n&&(n={}),e?this.concat(e,r,i)._parse(t,n):this._parse(t,n)},ie.prototype._parse=function(t,e){function r(t,e,r){return"assert"===r?new Gt(e,[t]):"coerce"===r?new Ht(e,[t]):t}if(null!==t&&"string"!=typeof t&&"boolean"!=typeof t&&"number"!=typeof t||(t=["literal",t]),Array.isArray(t)){if(0===t.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var i=t[0];if("string"!=typeof i)return this.error("Expression name must be a string, but found "+typeof i+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var n=this.registry[i];if(n){var o=n.parse(t,this);if(!o)return null;if(this.expectedType){var a=this.expectedType,s=o.type;if("string"!==a.kind&&"number"!==a.kind&&"boolean"!==a.kind&&"object"!==a.kind&&"array"!==a.kind||"value"!==s.kind)if("color"!==a.kind&&"formatted"!==a.kind||"value"!==s.kind&&"string"!==s.kind){if(this.checkSubtype(a,s))return null}else o=r(o,a,e.typeAnnotation||"coerce");else o=r(o,a,e.typeAnnotation||"assert")}if(!(o instanceof jt)&&function t(e){if(e instanceof re)return t(e.boundExpression);if(e instanceof Jt&&"error"===e.name)return!1;if(e instanceof $t)return!1;var r=e instanceof Ht||e instanceof Gt,i=!0;return e.eachChild(function(e){i=r?i&&t(e):i&&e instanceof jt}),!!i&&Qt(e)&&ee(e,["zoom","heatmap-density","line-progress","is-supported-script"])}(o)){var u=new Yt;try{o=new jt(o.type,o.evaluate(u))}catch(t){return this.error(t.message),null}}return o}return this.error('Unknown expression "'+i+'". If you wanted a literal array, use ["literal", [...]].',0)}return void 0===t?this.error("'undefined' value invalid. Use null instead."):"object"==typeof t?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof t+" instead.")},ie.prototype.concat=function(t,e,r){var i="number"==typeof t?this.path.concat(t):this.path,n=r?this.scope.concat(r):this.scope;return new ie(this.registry,i,e||null,n,this.errors)},ie.prototype.error=function(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];var i=""+this.key+e.map(function(t){return"["+t+"]"}).join("");this.errors.push(new gt(i,t))},ie.prototype.checkSubtype=function(t,e){var r=Lt(t,e);return r&&this.error(r),r};var oe=function(t,e,r){this.type=t,this.input=e,this.labels=[],this.outputs=[];for(var i=0,n=r;i<n.length;i+=1){var o=n[i],a=o[0],s=o[1];this.labels.push(a),this.outputs.push(s)}};function ae(t,e,r){return t*(1-r)+e*r}oe.parse=function(t,e){var r=t[1],i=t.slice(2);if(t.length-1<4)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");if(!(r=e.parse(r,1,wt)))return null;var n=[],o=null;e.expectedType&&"value"!==e.expectedType.kind&&(o=e.expectedType),i.unshift(-1/0);for(var a=0;a<i.length;a+=2){var s=i[a],u=i[a+1],l=a+1,p=a+2;if("number"!=typeof s)return e.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',l);if(n.length&&n[n.length-1][0]>=s)return e.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',l);var c=e.parse(u,p,o);if(!c)return null;o=o||c.type,n.push([s,c])}return new oe(o,r,n)},oe.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var i=this.input.evaluate(t);if(i<=e[0])return r[0].evaluate(t);var n=e.length;return i>=e[n-1]?r[n-1].evaluate(t):r[ne(e,i)].evaluate(t)},oe.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e<r.length;e+=1)t(r[e])},oe.prototype.possibleOutputs=function(){return(t=[]).concat.apply(t,this.outputs.map(function(t){return t.possibleOutputs()}));var t},oe.prototype.serialize=function(){for(var t=["step",this.input.serialize()],e=0;e<this.labels.length;e++)e>0&&t.push(this.labels[e]),t.push(this.outputs[e].serialize());return t};var se=Object.freeze({number:ae,color:function(t,e,r){return new Bt(ae(t.r,e.r,r),ae(t.g,e.g,r),ae(t.b,e.b,r),ae(t.a,e.a,r))},array:function(t,e,r){return t.map(function(t,i){return ae(t,e[i],r)})}}),ue=.95047,le=1,pe=1.08883,ce=4/29,he=6/29,fe=3*he*he,de=he*he*he,me=Math.PI/180,ye=180/Math.PI;function _e(t){return t>de?Math.pow(t,1/3):t/fe+ce}function ve(t){return t>he?t*t*t:fe*(t-ce)}function ge(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function xe(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function be(t){var e=xe(t.r),r=xe(t.g),i=xe(t.b),n=_e((.4124564*e+.3575761*r+.1804375*i)/ue),o=_e((.2126729*e+.7151522*r+.072175*i)/le);return{l:116*o-16,a:500*(n-o),b:200*(o-_e((.0193339*e+.119192*r+.9503041*i)/pe)),alpha:t.a}}function we(t){var e=(t.l+16)/116,r=isNaN(t.a)?e:e+t.a/500,i=isNaN(t.b)?e:e-t.b/200;return e=le*ve(e),r=ue*ve(r),i=pe*ve(i),new Bt(ge(3.2404542*r-1.5371385*e-.4985314*i),ge(-.969266*r+1.8760108*e+.041556*i),ge(.0556434*r-.2040259*e+1.0572252*i),t.alpha)}var Ee={forward:be,reverse:we,interpolate:function(t,e,r){return{l:ae(t.l,e.l,r),a:ae(t.a,e.a,r),b:ae(t.b,e.b,r),alpha:ae(t.alpha,e.alpha,r)}}},Se={forward:function(t){var e=be(t),r=e.l,i=e.a,n=e.b,o=Math.atan2(n,i)*ye;return{h:o<0?o+360:o,c:Math.sqrt(i*i+n*n),l:r,alpha:t.a}},reverse:function(t){var e=t.h*me,r=t.c;return we({l:t.l,a:Math.cos(e)*r,b:Math.sin(e)*r,alpha:t.alpha})},interpolate:function(t,e,r){return{h:function(t,e,r){var i=e-t;return t+r*(i>180||i<-180?i-360*Math.round(i/360):i)}(t.h,e.h,r),c:ae(t.c,e.c,r),l:ae(t.l,e.l,r),alpha:ae(t.alpha,e.alpha,r)}}},Te=Object.freeze({lab:Ee,hcl:Se}),Ae=function(t,e,r,i,n){this.type=t,this.operator=e,this.interpolation=r,this.input=i,this.labels=[],this.outputs=[];for(var o=0,a=n;o<a.length;o+=1){var s=a[o],u=s[0],l=s[1];this.labels.push(u),this.outputs.push(l)}};function ze(t,e,r,i){var n=i-r,o=t-r;return 0===n?0:1===e?o/n:(Math.pow(e,o)-1)/(Math.pow(e,n)-1)}Ae.interpolationFactor=function(t,e,i,n){var o=0;if("exponential"===t.name)o=ze(e,t.base,i,n);else if("linear"===t.name)o=ze(e,1,i,n);else if("cubic-bezier"===t.name){var a=t.controlPoints;o=new r(a[0],a[1],a[2],a[3]).solve(ze(e,1,i,n))}return o},Ae.parse=function(t,e){var r=t[0],i=t[1],n=t[2],o=t.slice(3);if(!Array.isArray(i)||0===i.length)return e.error("Expected an interpolation type expression.",1);if("linear"===i[0])i={name:"linear"};else if("exponential"===i[0]){var a=i[1];if("number"!=typeof a)return e.error("Exponential interpolation requires a numeric base.",1,1);i={name:"exponential",base:a}}else{if("cubic-bezier"!==i[0])return e.error("Unknown interpolation type "+String(i[0]),1,0);var s=i.slice(1);if(4!==s.length||s.some(function(t){return"number"!=typeof t||t<0||t>1}))return e.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);i={name:"cubic-bezier",controlPoints:s}}if(t.length-1<4)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");if(!(n=e.parse(n,2,wt)))return null;var u=[],l=null;"interpolate-hcl"===r||"interpolate-lab"===r?l=Tt:e.expectedType&&"value"!==e.expectedType.kind&&(l=e.expectedType);for(var p=0;p<o.length;p+=2){var c=o[p],h=o[p+1],f=p+3,d=p+4;if("number"!=typeof c)return e.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',f);if(u.length&&u[u.length-1][0]>=c)return e.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',f);var m=e.parse(h,d,l);if(!m)return null;l=l||m.type,u.push([c,m])}return"number"===l.kind||"color"===l.kind||"array"===l.kind&&"number"===l.itemType.kind&&"number"==typeof l.N?new Ae(l,r,i,n,u):e.error("Type "+Pt(l)+" is not interpolatable.")},Ae.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var i=this.input.evaluate(t);if(i<=e[0])return r[0].evaluate(t);var n=e.length;if(i>=e[n-1])return r[n-1].evaluate(t);var o=ne(e,i),a=e[o],s=e[o+1],u=Ae.interpolationFactor(this.interpolation,i,a,s),l=r[o].evaluate(t),p=r[o+1].evaluate(t);return"interpolate"===this.operator?se[this.type.kind.toLowerCase()](l,p,u):"interpolate-hcl"===this.operator?Se.reverse(Se.interpolate(Se.forward(l),Se.forward(p),u)):Ee.reverse(Ee.interpolate(Ee.forward(l),Ee.forward(p),u))},Ae.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e<r.length;e+=1)t(r[e])},Ae.prototype.possibleOutputs=function(){return(t=[]).concat.apply(t,this.outputs.map(function(t){return t.possibleOutputs()}));var t},Ae.prototype.serialize=function(){var t;t="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);for(var e=[this.operator,t,this.input.serialize()],r=0;r<this.labels.length;r++)e.push(this.labels[r],this.outputs[r].serialize());return e};var Ie=function(t,e){this.type=t,this.args=e};Ie.parse=function(t,e){if(t.length<2)return e.error("Expectected at least one argument.");var r=null,i=e.expectedType;i&&"value"!==i.kind&&(r=i);for(var n=[],o=0,a=t.slice(1);o<a.length;o+=1){var s=a[o],u=e.parse(s,1+n.length,r,void 0,{typeAnnotation:"omit"});if(!u)return null;r=r||u.type,n.push(u)}var l=i&&n.some(function(t){return Lt(i,t.type)});return new Ie(l?zt:r,n)},Ie.prototype.evaluate=function(t){for(var e=null,r=0,i=this.args;r<i.length&&null===(e=i[r].evaluate(t));r+=1);return e},Ie.prototype.eachChild=function(t){this.args.forEach(t)},Ie.prototype.possibleOutputs=function(){return(t=[]).concat.apply(t,this.args.map(function(t){return t.possibleOutputs()}));var t},Ie.prototype.serialize=function(){var t=["coalesce"];return this.eachChild(function(e){t.push(e.serialize())}),t};var Ce=function(t,e){this.type=e.type,this.bindings=[].concat(t),this.result=e};Ce.prototype.evaluate=function(t){return this.result.evaluate(t)},Ce.prototype.eachChild=function(t){for(var e=0,r=this.bindings;e<r.length;e+=1)t(r[e][1]);t(this.result)},Ce.parse=function(t,e){if(t.length<4)return e.error("Expected at least 3 arguments, but found "+(t.length-1)+" instead.");for(var r=[],i=1;i<t.length-1;i+=2){var n=t[i];if("string"!=typeof n)return e.error("Expected string, but found "+typeof n+" instead.",i);if(/[^a-zA-Z0-9_]/.test(n))return e.error("Variable names must contain only alphanumeric characters or '_'.",i);var o=e.parse(t[i+1],i+1);if(!o)return null;r.push([n,o])}var a=e.parse(t[t.length-1],t.length-1,e.expectedType,r);return a?new Ce(r,a):null},Ce.prototype.possibleOutputs=function(){return this.result.possibleOutputs()},Ce.prototype.serialize=function(){for(var t=["let"],e=0,r=this.bindings;e<r.length;e+=1){var i=r[e],n=i[0],o=i[1];t.push(n,o.serialize())}return t.push(this.result.serialize()),t};var ke=function(t,e,r){this.type=t,this.index=e,this.input=r};ke.parse=function(t,e){if(3!==t.length)return e.error("Expected 2 arguments, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1,wt),i=e.parse(t[2],2,kt(e.expectedType||zt));if(!r||!i)return null;var n=i.type;return new ke(n.itemType,r,i)},ke.prototype.evaluate=function(t){var e=this.index.evaluate(t),r=this.input.evaluate(t);if(e<0)throw new qt("Array index out of bounds: "+e+" < 0.");if(e>=r.length)throw new qt("Array index out of bounds: "+e+" > "+(r.length-1)+".");if(e!==Math.floor(e))throw new qt("Array index must be an integer, but found "+e+" instead.");return r[e]},ke.prototype.eachChild=function(t){t(this.index),t(this.input)},ke.prototype.possibleOutputs=function(){return[void 0]},ke.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var Pe=function(t,e,r,i,n,o){this.inputType=t,this.type=e,this.input=r,this.cases=i,this.outputs=n,this.otherwise=o};Pe.parse=function(t,e){if(t.length<5)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if(t.length%2!=1)return e.error("Expected an even number of arguments.");var r,i;e.expectedType&&"value"!==e.expectedType.kind&&(i=e.expectedType);for(var n={},o=[],a=2;a<t.length-1;a+=2){var s=t[a],u=t[a+1];Array.isArray(s)||(s=[s]);var l=e.concat(a);if(0===s.length)return l.error("Expected at least one branch label.");for(var p=0,c=s;p<c.length;p+=1){var h=c[p];if("number"!=typeof h&&"string"!=typeof h)return l.error("Branch labels must be numbers or strings.");if("number"==typeof h&&Math.abs(h)>Number.MAX_SAFE_INTEGER)return l.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if("number"==typeof h&&Math.floor(h)!==h)return l.error("Numeric branch labels must be integer values.");if(r){if(l.checkSubtype(r,Vt(h)))return null}else r=Vt(h);if(void 0!==n[String(h)])return l.error("Branch labels must be unique.");n[String(h)]=o.length}var f=e.parse(u,a,i);if(!f)return null;i=i||f.type,o.push(f)}var d=e.parse(t[1],1,zt);if(!d)return null;var m=e.parse(t[t.length-1],t.length-1,i);return m?"value"!==d.type.kind&&e.concat(1).checkSubtype(r,d.type)?null:new Pe(r,i,d,n,o,m):null},Pe.prototype.evaluate=function(t){var e=this.input.evaluate(t);return(Vt(e)===this.inputType&&this.outputs[this.cases[e]]||this.otherwise).evaluate(t)},Pe.prototype.eachChild=function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)},Pe.prototype.possibleOutputs=function(){return(t=[]).concat.apply(t,this.outputs.map(function(t){return t.possibleOutputs()})).concat(this.otherwise.possibleOutputs());var t},Pe.prototype.serialize=function(){for(var t=this,e=["match",this.input.serialize()],r=[],i={},n=0,o=Object.keys(this.cases).sort();n<o.length;n+=1){var a=o[n],s=i[t.cases[a]];void 0===s?(i[t.cases[a]]=r.length,r.push([t.cases[a],[a]])):r[s][1].push(a)}for(var u=function(e){return"number"===t.inputType.kind?Number(e):e},l=0,p=r;l<p.length;l+=1){var c=p[l],h=c[0],f=c[1];1===f.length?e.push(u(f[0])):e.push(f.map(u)),e.push(t.outputs[h].serialize())}return e.push(this.otherwise.serialize()),e};var Me=function(t,e,r){this.type=t,this.branches=e,this.otherwise=r};function Le(t,e){return"=="===t||"!="===t?"boolean"===e.kind||"string"===e.kind||"number"===e.kind||"null"===e.kind||"value"===e.kind:"string"===e.kind||"number"===e.kind||"value"===e.kind}function De(t,e,r,i){return 0===i.compare(e,r)}function Be(t,e,r){var i="=="!==t&&"!="!==t;return function(){function n(t,e,r){this.type=St,this.lhs=t,this.rhs=e,this.collator=r,this.hasUntypedArgument="value"===t.type.kind||"value"===e.type.kind}return n.parse=function(t,e){if(3!==t.length&&4!==t.length)return e.error("Expected two or three arguments.");var r=t[0],o=e.parse(t[1],1,zt);if(!o)return null;if(!Le(r,o.type))return e.concat(1).error('"'+r+"\" comparisons are not supported for type '"+Pt(o.type)+"'.");var a=e.parse(t[2],2,zt);if(!a)return null;if(!Le(r,a.type))return e.concat(2).error('"'+r+"\" comparisons are not supported for type '"+Pt(a.type)+"'.");if(o.type.kind!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return e.error("Cannot compare types '"+Pt(o.type)+"' and '"+Pt(a.type)+"'.");i&&("value"===o.type.kind&&"value"!==a.type.kind?o=new Gt(a.type,[o]):"value"!==o.type.kind&&"value"===a.type.kind&&(a=new Gt(o.type,[a])));var s=null;if(4===t.length){if("string"!==o.type.kind&&"string"!==a.type.kind&&"value"!==o.type.kind&&"value"!==a.type.kind)return e.error("Cannot use collator to compare non-string types.");if(!(s=e.parse(t[3],3,It)))return null}return new n(o,a,s)},n.prototype.evaluate=function(n){var o=this.lhs.evaluate(n),a=this.rhs.evaluate(n);if(i&&this.hasUntypedArgument){var s=Vt(o),u=Vt(a);if(s.kind!==u.kind||"string"!==s.kind&&"number"!==s.kind)throw new qt('Expected arguments for "'+t+'" to be (string, string) or (number, number), but found ('+s.kind+", "+u.kind+") instead.")}if(this.collator&&!i&&this.hasUntypedArgument){var l=Vt(o),p=Vt(a);if("string"!==l.kind||"string"!==p.kind)return e(n,o,a)}return this.collator?r(n,o,a,this.collator.evaluate(n)):e(n,o,a)},n.prototype.eachChild=function(t){t(this.lhs),t(this.rhs),this.collator&&t(this.collator)},n.prototype.possibleOutputs=function(){return[!0,!1]},n.prototype.serialize=function(){var e=[t];return this.eachChild(function(t){e.push(t.serialize())}),e},n}()}Me.parse=function(t,e){if(t.length<4)return e.error("Expected at least 3 arguments, but found only "+(t.length-1)+".");if(t.length%2!=0)return e.error("Expected an odd number of arguments.");var r;e.expectedType&&"value"!==e.expectedType.kind&&(r=e.expectedType);for(var i=[],n=1;n<t.length-1;n+=2){var o=e.parse(t[n],n,St);if(!o)return null;var a=e.parse(t[n+1],n+1,r);if(!a)return null;i.push([o,a]),r=r||a.type}var s=e.parse(t[t.length-1],t.length-1,r);return s?new Me(r,i,s):null},Me.prototype.evaluate=function(t){for(var e=0,r=this.branches;e<r.length;e+=1){var i=r[e],n=i[0],o=i[1];if(n.evaluate(t))return o.evaluate(t)}return this.otherwise.evaluate(t)},Me.prototype.eachChild=function(t){for(var e=0,r=this.branches;e<r.length;e+=1){var i=r[e],n=i[0],o=i[1];t(n),t(o)}t(this.otherwise)},Me.prototype.possibleOutputs=function(){return(t=[]).concat.apply(t,this.branches.map(function(t){return t[0],t[1].possibleOutputs()})).concat(this.otherwise.possibleOutputs());var t},Me.prototype.serialize=function(){var t=["case"];return this.eachChild(function(e){t.push(e.serialize())}),t};var Re=Be("==",function(t,e,r){return e===r},De),Oe=Be("!=",function(t,e,r){return e!==r},function(t,e,r,i){return!De(0,e,r,i)}),Fe=Be("<",function(t,e,r){return e<r},function(t,e,r,i){return i.compare(e,r)<0}),Ue=Be(">",function(t,e,r){return e>r},function(t,e,r,i){return i.compare(e,r)>0}),Ve=Be("<=",function(t,e,r){return e<=r},function(t,e,r,i){return i.compare(e,r)<=0}),Ne=Be(">=",function(t,e,r){return e>=r},function(t,e,r,i){return i.compare(e,r)>=0}),je=function(t){this.type=wt,this.input=t};je.parse=function(t,e){if(2!==t.length)return e.error("Expected 1 argument, but found "+(t.length-1)+" instead.");var r=e.parse(t[1],1);return r?"array"!==r.type.kind&&"string"!==r.type.kind&&"value"!==r.type.kind?e.error("Expected argument of type string or array, but found "+Pt(r.type)+" instead."):new je(r):null},je.prototype.evaluate=function(t){var e=this.input.evaluate(t);if("string"==typeof e)return e.length;if(Array.isArray(e))return e.length;throw new qt("Expected value to be of type string or array, but found "+Pt(Vt(e))+" instead.")},je.prototype.eachChild=function(t){t(this.input)},je.prototype.possibleOutputs=function(){return[void 0]},je.prototype.serialize=function(){var t=["length"];return this.eachChild(function(e){t.push(e.serialize())}),t};var qe={"==":Re,"!=":Oe,">":Ue,"<":Fe,">=":Ne,"<=":Ve,array:Gt,at:ke,boolean:Gt,case:Me,coalesce:Ie,collator:$t,format:Xt,interpolate:Ae,"interpolate-hcl":Ae,"interpolate-lab":Ae,length:je,let:Ce,literal:jt,match:Pe,number:Gt,object:Gt,step:oe,string:Gt,"to-boolean":Ht,"to-color":Ht,"to-number":Ht,"to-string":Ht,var:re};function Ze(t,e){var r=e[0],i=e[1],n=e[2],o=e[3];r=r.evaluate(t),i=i.evaluate(t),n=n.evaluate(t);var a=o?o.evaluate(t):1,s=Ut(r,i,n,a);if(s)throw new qt(s);return new Bt(r/255*a,i/255*a,n/255*a,a)}function Ge(t,e){return t in e}function Xe(t,e){var r=e[t];return void 0===r?null:r}function We(t){return{type:t}}function He(t){return{result:"success",value:t}}function Ke(t){return{result:"error",value:t}}function Ye(t){return"data-driven"===t["property-type"]||"cross-faded-data-driven"===t["property-type"]}function Je(t){return!!t.expression&&t.expression.parameters.indexOf("zoom")>-1}function $e(t){return!!t.expression&&t.expression.interpolated}function Qe(t){return t instanceof Number?"number":t instanceof String?"string":t instanceof Boolean?"boolean":Array.isArray(t)?"array":null===t?"null":typeof t}function tr(t){return"object"==typeof t&&null!==t&&!Array.isArray(t)}function er(t){return t}function rr(t,e,r){return void 0!==t?t:void 0!==e?e:void 0!==r?r:void 0}function ir(t,e,r,i,n){return rr(typeof r===n?i[r]:void 0,t.default,e.default)}function nr(t,e,r){if("number"!==Qe(r))return rr(t.default,e.default);var i=t.stops.length;if(1===i)return t.stops[0][1];if(r<=t.stops[0][0])return t.stops[0][1];if(r>=t.stops[i-1][0])return t.stops[i-1][1];var n=sr(t.stops,r);return t.stops[n][1]}function or(t,e,r){var i=void 0!==t.base?t.base:1;if("number"!==Qe(r))return rr(t.default,e.default);var n=t.stops.length;if(1===n)return t.stops[0][1];if(r<=t.stops[0][0])return t.stops[0][1];if(r>=t.stops[n-1][0])return t.stops[n-1][1];var o=sr(t.stops,r),a=function(t,e,r,i){var n=i-r,o=t-r;return 0===n?0:1===e?o/n:(Math.pow(e,o)-1)/(Math.pow(e,n)-1)}(r,i,t.stops[o][0],t.stops[o+1][0]),s=t.stops[o][1],u=t.stops[o+1][1],l=se[e.type]||er;if(t.colorSpace&&"rgb"!==t.colorSpace){var p=Te[t.colorSpace];l=function(t,e){return p.reverse(p.interpolate(p.forward(t),p.forward(e),a))}}return"function"==typeof s.evaluate?{evaluate:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var r=s.evaluate.apply(void 0,t),i=u.evaluate.apply(void 0,t);if(void 0!==r&&void 0!==i)return l(r,i,a)}}:l(s,u,a)}function ar(t,e,r){return"color"===e.type?r=Bt.parse(r):"formatted"===e.type?r=Ft.fromString(r.toString()):Qe(r)===e.type||"enum"===e.type&&e.values[r]||(r=void 0),rr(r,t.default,e.default)}function sr(t,e){for(var r,i,n=0,o=t.length-1,a=0;n<=o;){if(r=t[a=Math.floor((n+o)/2)][0],i=t[a+1][0],e===r||e>r&&e<i)return a;r<e?n=a+1:r>e&&(o=a-1)}return Math.max(a-1,0)}Jt.register(qe,{error:[{kind:"error"},[Et],function(t,e){var r=e[0];throw new qt(r.evaluate(t))}],typeof:[Et,[zt],function(t,e){return Pt(Vt(e[0].evaluate(t)))}],"to-rgba":[kt(wt,4),[Tt],function(t,e){return e[0].evaluate(t).toArray()}],rgb:[Tt,[wt,wt,wt],Ze],rgba:[Tt,[wt,wt,wt,wt],Ze],has:{type:St,overloads:[[[Et],function(t,e){return Ge(e[0].evaluate(t),t.properties())}],[[Et,At],function(t,e){var r=e[0],i=e[1];return Ge(r.evaluate(t),i.evaluate(t))}]]},get:{type:zt,overloads:[[[Et],function(t,e){return Xe(e[0].evaluate(t),t.properties())}],[[Et,At],function(t,e){var r=e[0],i=e[1];return Xe(r.evaluate(t),i.evaluate(t))}]]},"feature-state":[zt,[Et],function(t,e){return Xe(e[0].evaluate(t),t.featureState||{})}],properties:[At,[],function(t){return t.properties()}],"geometry-type":[Et,[],function(t){return t.geometryType()}],id:[zt,[],function(t){return t.id()}],zoom:[wt,[],function(t){return t.globals.zoom}],"heatmap-density":[wt,[],function(t){return t.globals.heatmapDensity||0}],"line-progress":[wt,[],function(t){return t.globals.lineProgress||0}],"+":[wt,We(wt),function(t,e){for(var r=0,i=0,n=e;i<n.length;i+=1)r+=n[i].evaluate(t);return r}],"*":[wt,We(wt),function(t,e){for(var r=1,i=0,n=e;i<n.length;i+=1)r*=n[i].evaluate(t);return r}],"-":{type:wt,overloads:[[[wt,wt],function(t,e){var r=e[0],i=e[1];return r.evaluate(t)-i.evaluate(t)}],[[wt],function(t,e){return-e[0].evaluate(t)}]]},"/":[wt,[wt,wt],function(t,e){var r=e[0],i=e[1];return r.evaluate(t)/i.evaluate(t)}],"%":[wt,[wt,wt],function(t,e){var r=e[0],i=e[1];return r.evaluate(t)%i.evaluate(t)}],ln2:[wt,[],function(){return Math.LN2}],pi:[wt,[],function(){return Math.PI}],e:[wt,[],function(){return Math.E}],"^":[wt,[wt,wt],function(t,e){var r=e[0],i=e[1];return Math.pow(r.evaluate(t),i.evaluate(t))}],sqrt:[wt,[wt],function(t,e){var r=e[0];return Math.sqrt(r.evaluate(t))}],log10:[wt,[wt],function(t,e){var r=e[0];return Math.log(r.evaluate(t))/Math.LN10}],ln:[wt,[wt],function(t,e){var r=e[0];return Math.log(r.evaluate(t))}],log2:[wt,[wt],function(t,e){var r=e[0];return Math.log(r.evaluate(t))/Math.LN2}],sin:[wt,[wt],function(t,e){var r=e[0];return Math.sin(r.evaluate(t))}],cos:[wt,[wt],function(t,e){var r=e[0];return Math.cos(r.evaluate(t))}],tan:[wt,[wt],function(t,e){var r=e[0];return Math.tan(r.evaluate(t))}],asin:[wt,[wt],function(t,e){var r=e[0];return Math.asin(r.evaluate(t))}],acos:[wt,[wt],function(t,e){var r=e[0];return Math.acos(r.evaluate(t))}],atan:[wt,[wt],function(t,e){var r=e[0];return Math.atan(r.evaluate(t))}],min:[wt,We(wt),function(t,e){return Math.min.apply(Math,e.map(function(e){return e.evaluate(t)}))}],max:[wt,We(wt),function(t,e){return Math.max.apply(Math,e.map(function(e){return e.evaluate(t)}))}],abs:[wt,[wt],function(t,e){var r=e[0];return Math.abs(r.evaluate(t))}],round:[wt,[wt],function(t,e){var r=e[0].evaluate(t);return r<0?-Math.round(-r):Math.round(r)}],floor:[wt,[wt],function(t,e){var r=e[0];return Math.floor(r.evaluate(t))}],ceil:[wt,[wt],function(t,e){var r=e[0];return Math.ceil(r.evaluate(t))}],"filter-==":[St,[Et,zt],function(t,e){var r=e[0],i=e[1];return t.properties()[r.value]===i.value}],"filter-id-==":[St,[zt],function(t,e){var r=e[0];return t.id()===r.value}],"filter-type-==":[St,[Et],function(t,e){var r=e[0];return t.geometryType()===r.value}],"filter-<":[St,[Et,zt],function(t,e){var r=e[0],i=e[1],n=t.properties()[r.value],o=i.value;return typeof n==typeof o&&n<o}],"filter-id-<":[St,[zt],function(t,e){var r=e[0],i=t.id(),n=r.value;return typeof i==typeof n&&i<n}],"filter->":[St,[Et,zt],function(t,e){var r=e[0],i=e[1],n=t.properties()[r.value],o=i.value;return typeof n==typeof o&&n>o}],"filter-id->":[St,[zt],function(t,e){var r=e[0],i=t.id(),n=r.value;return typeof i==typeof n&&i>n}],"filter-<=":[St,[Et,zt],function(t,e){var r=e[0],i=e[1],n=t.properties()[r.value],o=i.value;return typeof n==typeof o&&n<=o}],"filter-id-<=":[St,[zt],function(t,e){var r=e[0],i=t.id(),n=r.value;return typeof i==typeof n&&i<=n}],"filter->=":[St,[Et,zt],function(t,e){var r=e[0],i=e[1],n=t.properties()[r.value],o=i.value;return typeof n==typeof o&&n>=o}],"filter-id->=":[St,[zt],function(t,e){var r=e[0],i=t.id(),n=r.value;return typeof i==typeof n&&i>=n}],"filter-has":[St,[zt],function(t,e){return e[0].value in t.properties()}],"filter-has-id":[St,[],function(t){return null!==t.id()}],"filter-type-in":[St,[kt(Et)],function(t,e){return e[0].value.indexOf(t.geometryType())>=0}],"filter-id-in":[St,[kt(zt)],function(t,e){return e[0].value.indexOf(t.id())>=0}],"filter-in-small":[St,[Et,kt(zt)],function(t,e){var r=e[0];return e[1].value.indexOf(t.properties()[r.value])>=0}],"filter-in-large":[St,[Et,kt(zt)],function(t,e){var r=e[0],i=e[1];return function(t,e,r,i){for(;r<=i;){var n=r+i>>1;if(e[n]===t)return!0;e[n]>t?i=n-1:r=n+1}return!1}(t.properties()[r.value],i.value,0,i.value.length-1)}],all:{type:St,overloads:[[[St,St],function(t,e){var r=e[0],i=e[1];return r.evaluate(t)&&i.evaluate(t)}],[We(St),function(t,e){for(var r=0,i=e;r<i.length;r+=1)if(!i[r].evaluate(t))return!1;return!0}]]},any:{type:St,overloads:[[[St,St],function(t,e){var r=e[0],i=e[1];return r.evaluate(t)||i.evaluate(t)}],[We(St),function(t,e){for(var r=0,i=e;r<i.length;r+=1)if(i[r].evaluate(t))return!0;return!1}]]},"!":[St,[St],function(t,e){return!e[0].evaluate(t)}],"is-supported-script":[St,[Et],function(t,e){var r=e[0],i=t.globals&&t.globals.isSupportedScript;return!i||i(r.evaluate(t))}],upcase:[Et,[Et],function(t,e){return e[0].evaluate(t).toUpperCase()}],downcase:[Et,[Et],function(t,e){return e[0].evaluate(t).toLowerCase()}],concat:[Et,We(zt),function(t,e){return e.map(function(e){return Nt(e.evaluate(t))}).join("")}],"resolved-locale":[Et,[It],function(t,e){return e[0].evaluate(t).resolvedLocale()}]});var ur=function(t,e){var r;this.expression=t,this._warningHistory={},this._evaluator=new Yt,this._defaultValue="color"===(r=e).type&&tr(r.default)?new Bt(0,0,0,0):"color"===r.type?Bt.parse(r.default)||null:void 0===r.default?null:r.default,this._enumValues="enum"===e.type?e.values:null};function lr(t){return Array.isArray(t)&&t.length>0&&"string"==typeof t[0]&&t[0]in qe}function pr(t,e){var r=new ie(qe,[],function(t){var e={color:Tt,string:Et,number:wt,enum:Et,boolean:St,formatted:Ct};return"array"===t.type?kt(e[t.value]||zt,t.length):e[t.type]}(e)),i=r.parse(t,void 0,void 0,void 0,"string"===e.type?{typeAnnotation:"coerce"}:void 0);return i?He(new ur(i,e)):Ke(r.errors)}ur.prototype.evaluateWithoutErrorHandling=function(t,e,r){return this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=r,this.expression.evaluate(this._evaluator)},ur.prototype.evaluate=function(t,e,r){this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=r||null;try{var i=this.expression.evaluate(this._evaluator);if(null==i)return this._defaultValue;if(this._enumValues&&!(i in this._enumValues))throw new qt("Expected value to be one of "+Object.keys(this._enumValues).map(function(t){return JSON.stringify(t)}).join(", ")+", but found "+JSON.stringify(i)+" instead.");return i}catch(t){return this._warningHistory[t.message]||(this._warningHistory[t.message]=!0,"undefined"!=typeof console&&console.warn(t.message)),this._defaultValue}};var cr=function(t,e){this.kind=t,this._styleExpression=e,this.isStateDependent="constant"!==t&&!te(e.expression)};cr.prototype.evaluateWithoutErrorHandling=function(t,e,r){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r)},cr.prototype.evaluate=function(t,e,r){return this._styleExpression.evaluate(t,e,r)};var hr=function(t,e,r){this.kind=t,this.zoomStops=r.labels,this._styleExpression=e,this.isStateDependent="camera"!==t&&!te(e.expression),r instanceof Ae&&(this._interpolationType=r.interpolation)};function fr(t,e){if("error"===(t=pr(t,e)).result)return t;var r=t.value.expression,i=Qt(r);if(!i&&!Ye(e))return Ke([new gt("","data expressions not supported")]);var n=ee(r,["zoom"]);if(!n&&!Je(e))return Ke([new gt("","zoom expressions not supported")]);var o=function t(e){var r=null;if(e instanceof Ce)r=t(e.result);else if(e instanceof Ie)for(var i=0,n=e.args;i<n.length;i+=1){var o=n[i];if(r=t(o))break}else(e instanceof oe||e instanceof Ae)&&e.input instanceof Jt&&"zoom"===e.input.name&&(r=e);return r instanceof gt?r:(e.eachChild(function(e){var i=t(e);i instanceof gt?r=i:!r&&i?r=new gt("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):r&&i&&r!==i&&(r=new gt("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),r)}(r);return o||n?o instanceof gt?Ke([o]):o instanceof Ae&&!$e(e)?Ke([new gt("",'"interpolate" expressions cannot be used with this property')]):He(o?new hr(i?"camera":"composite",t.value,o):new cr(i?"constant":"source",t.value)):Ke([new gt("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}hr.prototype.evaluateWithoutErrorHandling=function(t,e,r){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r)},hr.prototype.evaluate=function(t,e,r){return this._styleExpression.evaluate(t,e,r)},hr.prototype.interpolationFactor=function(t,e,r){return this._interpolationType?Ae.interpolationFactor(this._interpolationType,t,e,r):0};var dr=function(t,e){this._parameters=t,this._specification=e,yt(this,function t(e,r){var i,n,o,a="color"===r.type,s=e.stops&&"object"==typeof e.stops[0][0],u=s||void 0!==e.property,l=s||!u,p=e.type||($e(r)?"exponential":"interval");if(a&&((e=yt({},e)).stops&&(e.stops=e.stops.map(function(t){return[t[0],Bt.parse(t[1])]})),e.default?e.default=Bt.parse(e.default):e.default=Bt.parse(r.default)),e.colorSpace&&"rgb"!==e.colorSpace&&!Te[e.colorSpace])throw new Error("Unknown color space: "+e.colorSpace);if("exponential"===p)i=or;else if("interval"===p)i=nr;else if("categorical"===p){i=ir,n=Object.create(null);for(var c=0,h=e.stops;c<h.length;c+=1){var f=h[c];n[f[0]]=f[1]}o=typeof e.stops[0][0]}else{if("identity"!==p)throw new Error('Unknown function type "'+p+'"');i=ar}if(s){for(var d={},m=[],y=0;y<e.stops.length;y++){var _=e.stops[y],v=_[0].zoom;void 0===d[v]&&(d[v]={zoom:v,type:e.type,property:e.property,default:e.default,stops:[]},m.push(v)),d[v].stops.push([_[0].value,_[1]])}for(var g=[],x=0,b=m;x<b.length;x+=1){var w=b[x];g.push([d[w].zoom,t(d[w],r)])}return{kind:"composite",interpolationFactor:Ae.interpolationFactor.bind(void 0,{name:"linear"}),zoomStops:g.map(function(t){return t[0]}),evaluate:function(t,i){var n=t.zoom;return or({stops:g,base:e.base},r,n).evaluate(n,i)}}}return l?{kind:"camera",interpolationFactor:"exponential"===p?Ae.interpolationFactor.bind(void 0,{name:"exponential",base:void 0!==e.base?e.base:1}):function(){return 0},zoomStops:e.stops.map(function(t){return t[0]}),evaluate:function(t){var a=t.zoom;return i(e,r,a,n,o)}}:{kind:"source",evaluate:function(t,a){var s=a&&a.properties?a.properties[e.property]:void 0;return void 0===s?rr(e.default,r.default):i(e,r,s,n,o)}}}(this._parameters,this._specification))};function mr(t,e){if(tr(t))return new dr(t,e);if(lr(t)){var r=fr(t,e);if("error"===r.result)throw new Error(r.value.map(function(t){return t.key+": "+t.message}).join(", "));return r.value}var i=t;return"string"==typeof t&&"color"===e.type&&(i=Bt.parse(t)),{kind:"constant",evaluate:function(){return i}}}function yr(t){var e=t.key,r=t.value,i=t.valueSpec||{},n=t.objectElementValidators||{},o=t.style,a=t.styleSpec,s=[],u=Qe(r);if("object"!==u)return[new dt(e,r,"object expected, "+u+" found")];for(var l in r){var p=l.split(".")[0],c=i[p]||i["*"],h=void 0;if(n[p])h=n[p];else if(i[p])h=Vr;else if(n["*"])h=n["*"];else{if(!i["*"]){s.push(new dt(e,r[l],'unknown property "'+l+'"'));continue}h=Vr}s=s.concat(h({key:(e?e+".":e)+l,value:r[l],valueSpec:c,style:o,styleSpec:a,object:r,objectKey:l},r))}for(var f in i)n[f]||i[f].required&&void 0===i[f].default&&void 0===r[f]&&s.push(new dt(e,r,'missing required property "'+f+'"'));return s}function _r(t){var e=t.value,r=t.valueSpec,i=t.style,n=t.styleSpec,o=t.key,a=t.arrayElementValidator||Vr;if("array"!==Qe(e))return[new dt(o,e,"array expected, "+Qe(e)+" found")];if(r.length&&e.length!==r.length)return[new dt(o,e,"array length "+r.length+" expected, length "+e.length+" found")];if(r["min-length"]&&e.length<r["min-length"])return[new dt(o,e,"array length at least "+r["min-length"]+" expected, length "+e.length+" found")];var s={type:r.value};n.$version<7&&(s.function=r.function),"object"===Qe(r.value)&&(s=r.value);for(var u=[],l=0;l<e.length;l++)u=u.concat(a({array:e,arrayIndex:l,value:e[l],valueSpec:s,style:i,styleSpec:n,key:o+"["+l+"]"}));return u}function vr(t){var e=t.key,r=t.value,i=t.valueSpec,n=Qe(r);return"number"!==n?[new dt(e,r,"number expected, "+n+" found")]:"minimum"in i&&r<i.minimum?[new dt(e,r,r+" is less than the minimum value "+i.minimum)]:"maximum"in i&&r>i.maximum?[new dt(e,r,r+" is greater than the maximum value "+i.maximum)]:[]}function gr(t){var e,r,i,n=t.valueSpec,o=_t(t.value.type),a={},s="categorical"!==o&&void 0===t.value.property,u=!s,l="array"===Qe(t.value.stops)&&"array"===Qe(t.value.stops[0])&&"object"===Qe(t.value.stops[0][0]),p=yr({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(t){if("identity"===o)return[new dt(t.key,t.value,'identity function may not have a "stops" property')];var e=[],r=t.value;return e=e.concat(_r({key:t.key,value:r,valueSpec:t.valueSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:c})),"array"===Qe(r)&&0===r.length&&e.push(new dt(t.key,r,"array must have at least one stop")),e},default:function(t){return Vr({key:t.key,value:t.value,valueSpec:n,style:t.style,styleSpec:t.styleSpec})}}});return"identity"===o&&s&&p.push(new dt(t.key,t.value,'missing required property "property"')),"identity"===o||t.value.stops||p.push(new dt(t.key,t.value,'missing required property "stops"')),"exponential"===o&&t.valueSpec.expression&&!$e(t.valueSpec)&&p.push(new dt(t.key,t.value,"exponential functions not supported")),t.styleSpec.$version>=8&&(u&&!Ye(t.valueSpec)?p.push(new dt(t.key,t.value,"property functions not supported")):s&&!Je(t.valueSpec)&&p.push(new dt(t.key,t.value,"zoom functions not supported"))),"categorical"!==o&&!l||void 0!==t.value.property||p.push(new dt(t.key,t.value,'"property" property is required')),p;function c(t){var e=[],o=t.value,s=t.key;if("array"!==Qe(o))return[new dt(s,o,"array expected, "+Qe(o)+" found")];if(2!==o.length)return[new dt(s,o,"array length 2 expected, length "+o.length+" found")];if(l){if("object"!==Qe(o[0]))return[new dt(s,o,"object expected, "+Qe(o[0])+" found")];if(void 0===o[0].zoom)return[new dt(s,o,"object stop key must have zoom")];if(void 0===o[0].value)return[new dt(s,o,"object stop key must have value")];if(i&&i>_t(o[0].zoom))return[new dt(s,o[0].zoom,"stop zoom values must appear in ascending order")];_t(o[0].zoom)!==i&&(i=_t(o[0].zoom),r=void 0,a={}),e=e.concat(yr({key:s+"[0]",value:o[0],valueSpec:{zoom:{}},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:vr,value:h}}))}else e=e.concat(h({key:s+"[0]",value:o[0],valueSpec:{},style:t.style,styleSpec:t.styleSpec},o));return lr(vt(o[1]))?e.concat([new dt(s+"[1]",o[1],"expressions are not allowed in function stops.")]):e.concat(Vr({key:s+"[1]",value:o[1],valueSpec:n,style:t.style,styleSpec:t.styleSpec}))}function h(t,i){var s=Qe(t.value),u=_t(t.value),l=null!==t.value?t.value:i;if(e){if(s!==e)return[new dt(t.key,l,s+" stop domain type must match previous stop domain type "+e)]}else e=s;if("number"!==s&&"string"!==s&&"boolean"!==s)return[new dt(t.key,l,"stop domain value must be a number, string, or boolean")];if("number"!==s&&"categorical"!==o){var p="number expected, "+s+" found";return Ye(n)&&void 0===o&&(p+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new dt(t.key,l,p)]}return"categorical"!==o||"number"!==s||isFinite(u)&&Math.floor(u)===u?"categorical"!==o&&"number"===s&&void 0!==r&&u<r?[new dt(t.key,l,"stop domain values must appear in ascending order")]:(r=u,"categorical"===o&&u in a?[new dt(t.key,l,"stop domain values must be unique")]:(a[u]=!0,[])):[new dt(t.key,l,"integer expected, found "+u)]}}function xr(t){var e=("property"===t.expressionContext?fr:pr)(vt(t.value),t.valueSpec);return"error"===e.result?e.value.map(function(e){return new dt(""+t.key+e.key,t.value,e.message)}):"property"===t.expressionContext&&"text-font"===t.propertyKey&&-1!==e.value._styleExpression.expression.possibleOutputs().indexOf(void 0)?[new dt(t.key,t.value,'Invalid data expression for "'+t.propertyKey+'". Output values must be contained as literals within the expression.')]:"property"!==t.expressionContext||"layout"!==t.propertyType||te(e.value._styleExpression.expression)?"filter"!==t.expressionContext||te(e.value.expression)?[]:[new dt(t.key,t.value,'"feature-state" data expressions are not supported with filters.')]:[new dt(t.key,t.value,'"feature-state" data expressions are not supported with layout properties.')]}function br(t){var e=t.key,r=t.value,i=t.valueSpec,n=[];return Array.isArray(i.values)?-1===i.values.indexOf(_t(r))&&n.push(new dt(e,r,"expected one of ["+i.values.join(", ")+"], "+JSON.stringify(r)+" found")):-1===Object.keys(i.values).indexOf(_t(r))&&n.push(new dt(e,r,"expected one of ["+Object.keys(i.values).join(", ")+"], "+JSON.stringify(r)+" found")),n}function wr(t){if(!0===t||!1===t)return!0;if(!Array.isArray(t)||0===t.length)return!1;switch(t[0]){case"has":return t.length>=2&&"$id"!==t[1]&&"$type"!==t[1];case"in":case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==t.length||Array.isArray(t[1])||Array.isArray(t[2]);case"any":case"all":for(var e=0,r=t.slice(1);e<r.length;e+=1){var i=r[e];if(!wr(i)&&"boolean"!=typeof i)return!1}return!0;default:return!0}}dr.deserialize=function(t){return new dr(t._parameters,t._specification)},dr.serialize=function(t){return{_parameters:t._parameters,_specification:t._specification}};var Er={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function Sr(t){if(null==t)return function(){return!0};wr(t)||(t=Ar(t));var e=pr(t,Er);if("error"===e.result)throw new Error(e.value.map(function(t){return t.key+": "+t.message}).join(", "));return function(t,r){return e.value.evaluate(t,r)}}function Tr(t,e){return t<e?-1:t>e?1:0}function Ar(t){if(!t)return!0;var e,r=t[0];return t.length<=1?"any"!==r:"=="===r?zr(t[1],t[2],"=="):"!="===r?kr(zr(t[1],t[2],"==")):"<"===r||">"===r||"<="===r||">="===r?zr(t[1],t[2],r):"any"===r?(e=t.slice(1),["any"].concat(e.map(Ar))):"all"===r?["all"].concat(t.slice(1).map(Ar)):"none"===r?["all"].concat(t.slice(1).map(Ar).map(kr)):"in"===r?Ir(t[1],t.slice(2)):"!in"===r?kr(Ir(t[1],t.slice(2))):"has"===r?Cr(t[1]):"!has"!==r||kr(Cr(t[1]))}function zr(t,e,r){switch(t){case"$type":return["filter-type-"+r,e];case"$id":return["filter-id-"+r,e];default:return["filter-"+r,t,e]}}function Ir(t,e){if(0===e.length)return!1;switch(t){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some(function(t){return typeof t!=typeof e[0]})?["filter-in-large",t,["literal",e.sort(Tr)]]:["filter-in-small",t,["literal",e]]}}function Cr(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function kr(t){return["!",t]}function Pr(t){return wr(vt(t.value))?xr(yt({},t,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function t(e){var r=e.value,i=e.key;if("array"!==Qe(r))return[new dt(i,r,"array expected, "+Qe(r)+" found")];var n,o=e.styleSpec,a=[];if(r.length<1)return[new dt(i,r,"filter array must have at least 1 element")];switch(a=a.concat(br({key:i+"[0]",value:r[0],valueSpec:o.filter_operator,style:e.style,styleSpec:e.styleSpec})),_t(r[0])){case"<":case"<=":case">":case">=":r.length>=2&&"$type"===_t(r[1])&&a.push(new dt(i,r,'"$type" cannot be use with operator "'+r[0]+'"'));case"==":case"!=":3!==r.length&&a.push(new dt(i,r,'filter array for operator "'+r[0]+'" must have 3 elements'));case"in":case"!in":r.length>=2&&"string"!==(n=Qe(r[1]))&&a.push(new dt(i+"[1]",r[1],"string expected, "+n+" found"));for(var s=2;s<r.length;s++)n=Qe(r[s]),"$type"===_t(r[1])?a=a.concat(br({key:i+"["+s+"]",value:r[s],valueSpec:o.geometry_type,style:e.style,styleSpec:e.styleSpec})):"string"!==n&&"number"!==n&&"boolean"!==n&&a.push(new dt(i+"["+s+"]",r[s],"string, number, or boolean expected, "+n+" found"));break;case"any":case"all":case"none":for(var u=1;u<r.length;u++)a=a.concat(t({key:i+"["+u+"]",value:r[u],style:e.style,styleSpec:e.styleSpec}));break;case"has":case"!has":n=Qe(r[1]),2!==r.length?a.push(new dt(i,r,'filter array for "'+r[0]+'" operator must have 2 elements')):"string"!==n&&a.push(new dt(i+"[1]",r[1],"string expected, "+n+" found"))}return a}(t)}function Mr(t,e){var r=t.key,i=t.style,n=t.styleSpec,o=t.value,a=t.objectKey,s=n[e+"_"+t.layerType];if(!s)return[];var u=a.match(/^(.*)-transition$/);if("paint"===e&&u&&s[u[1]]&&s[u[1]].transition)return Vr({key:r,value:o,valueSpec:n.transition,style:i,styleSpec:n});var l,p=t.valueSpec||s[a];if(!p)return[new dt(r,o,'unknown property "'+a+'"')];if("string"===Qe(o)&&Ye(p)&&!p.tokens&&(l=/^{([^}]+)}$/.exec(o)))return[new dt(r,o,'"'+a+'" does not support interpolation syntax\nUse an identity property function instead: `{ "type": "identity", "property": '+JSON.stringify(l[1])+" }`.")];var c=[];return"symbol"===t.layerType&&("text-field"===a&&i&&!i.glyphs&&c.push(new dt(r,o,'use of "text-field" requires a style "glyphs" property')),"text-font"===a&&tr(vt(o))&&"identity"===_t(o.type)&&c.push(new dt(r,o,'"text-font" does not support identity functions'))),c.concat(Vr({key:t.key,value:o,valueSpec:p,style:i,styleSpec:n,expressionContext:"property",propertyType:e,propertyKey:a}))}function Lr(t){return Mr(t,"paint")}function Dr(t){return Mr(t,"layout")}function Br(t){var e=[],r=t.value,i=t.key,n=t.style,o=t.styleSpec;r.type||r.ref||e.push(new dt(i,r,'either "type" or "ref" is required'));var a,s=_t(r.type),u=_t(r.ref);if(r.id)for(var l=_t(r.id),p=0;p<t.arrayIndex;p++){var c=n.layers[p];_t(c.id)===l&&e.push(new dt(i,r.id,'duplicate layer id "'+r.id+'", previously used at line '+c.id.__line__))}if("ref"in r)["type","source","source-layer","filter","layout"].forEach(function(t){t in r&&e.push(new dt(i,r[t],'"'+t+'" is prohibited for ref layers'))}),n.layers.forEach(function(t){_t(t.id)===u&&(a=t)}),a?a.ref?e.push(new dt(i,r.ref,"ref cannot reference another ref layer")):s=_t(a.type):e.push(new dt(i,r.ref,'ref layer "'+u+'" not found'));else if("background"!==s)if(r.source){var h=n.sources&&n.sources[r.source],f=h&&_t(h.type);h?"vector"===f&&"raster"===s?e.push(new dt(i,r.source,'layer "'+r.id+'" requires a raster source')):"raster"===f&&"raster"!==s?e.push(new dt(i,r.source,'layer "'+r.id+'" requires a vector source')):"vector"!==f||r["source-layer"]?"raster-dem"===f&&"hillshade"!==s?e.push(new dt(i,r.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"!==s||!r.paint||!r.paint["line-gradient"]||"geojson"===f&&h.lineMetrics||e.push(new dt(i,r,'layer "'+r.id+'" specifies a line-gradient, which requires a GeoJSON source with `lineMetrics` enabled.')):e.push(new dt(i,r,'layer "'+r.id+'" must specify a "source-layer"')):e.push(new dt(i,r.source,'source "'+r.source+'" not found'))}else e.push(new dt(i,r,'missing required property "source"'));return e=e.concat(yr({key:i,value:r,valueSpec:o.layer,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":function(){return[]},type:function(){return Vr({key:i+".type",value:r.type,valueSpec:o.layer.type,style:t.style,styleSpec:t.styleSpec,object:r,objectKey:"type"})},filter:Pr,layout:function(t){return yr({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":function(t){return Dr(yt({layerType:s},t))}}})},paint:function(t){return yr({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":function(t){return Lr(yt({layerType:s},t))}}})}}}))}function Rr(t){var e=t.value,r=t.key,i=t.styleSpec,n=t.style;if(!e.type)return[new dt(r,e,'"type" is required')];var o=_t(e.type),a=[];switch(o){case"vector":case"raster":case"raster-dem":if(a=a.concat(yr({key:r,value:e,valueSpec:i["source_"+o.replace("-","_")],style:t.style,styleSpec:i})),"url"in e)for(var s in e)["type","url","tileSize"].indexOf(s)<0&&a.push(new dt(r+"."+s,e[s],'a source with a "url" property may not include a "'+s+'" property'));return a;case"geojson":return yr({key:r,value:e,valueSpec:i.source_geojson,style:n,styleSpec:i});case"video":return yr({key:r,value:e,valueSpec:i.source_video,style:n,styleSpec:i});case"image":return yr({key:r,value:e,valueSpec:i.source_image,style:n,styleSpec:i});case"canvas":return a.push(new dt(r,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")),a;default:return br({key:r+".type",value:e.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:n,styleSpec:i})}}function Or(t){var e=t.value,r=t.styleSpec,i=r.light,n=t.style,o=[],a=Qe(e);if(void 0===e)return o;if("object"!==a)return o.concat([new dt("light",e,"object expected, "+a+" found")]);for(var s in e){var u=s.match(/^(.*)-transition$/);o=u&&i[u[1]]&&i[u[1]].transition?o.concat(Vr({key:s,value:e[s],valueSpec:r.transition,style:n,styleSpec:r})):i[s]?o.concat(Vr({key:s,value:e[s],valueSpec:i[s],style:n,styleSpec:r})):o.concat([new dt(s,e[s],'unknown property "'+s+'"')])}return o}function Fr(t){var e=t.value,r=t.key,i=Qe(e);return"string"!==i?[new dt(r,e,"string expected, "+i+" found")]:[]}var Ur={"*":function(){return[]},array:_r,boolean:function(t){var e=t.value,r=t.key,i=Qe(e);return"boolean"!==i?[new dt(r,e,"boolean expected, "+i+" found")]:[]},number:vr,color:function(t){var e=t.key,r=t.value,i=Qe(r);return"string"!==i?[new dt(e,r,"color expected, "+i+" found")]:null===Dt(r)?[new dt(e,r,'color expected, "'+r+'" found')]:[]},constants:mt,enum:br,filter:Pr,function:gr,layer:Br,object:yr,source:Rr,light:Or,string:Fr,formatted:function(t){return 0===Fr(t).length?[]:xr(t)}};function Vr(t){var e=t.value,r=t.valueSpec,i=t.styleSpec;return r.expression&&tr(_t(e))?gr(t):r.expression&&lr(vt(e))?xr(t):r.type&&Ur[r.type]?Ur[r.type](t):yr(yt({},t,{valueSpec:r.type?i[r.type]:r}))}function Nr(t){var e=t.value,r=t.key,i=Fr(t);return i.length?i:(-1===e.indexOf("{fontstack}")&&i.push(new dt(r,e,'"glyphs" url must include a "{fontstack}" token')),-1===e.indexOf("{range}")&&i.push(new dt(r,e,'"glyphs" url must include a "{range}" token')),i)}function jr(t,e){e=e||ft;var r=[];return r=r.concat(Vr({key:"",value:t,valueSpec:e.$root,styleSpec:e,style:t,objectElementValidators:{glyphs:Nr,"*":function(){return[]}}})),t.constants&&(r=r.concat(mt({key:"constants",value:t.constants,style:t,styleSpec:e}))),qr(r)}function qr(t){return[].concat(t).sort(function(t,e){return t.line-e.line})}function Zr(t){return function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];return qr(t.apply(this,e))}}jr.source=Zr(Rr),jr.light=Zr(Or),jr.layer=Zr(Br),jr.filter=Zr(Pr),jr.paintProperty=Zr(Lr),jr.layoutProperty=Zr(Dr);var Gr=jr,Xr=jr.light,Wr=jr.paintProperty,Hr=jr.layoutProperty;function Kr(t,e){var r=!1;if(e&&e.length)for(var i=0,n=e;i<n.length;i+=1){var o=n[i];t.fire(new ct(new Error(o.message))),r=!0}return r}var Yr=$r,Jr=3;function $r(t,e,r){var i=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;var n=new Int32Array(this.arrayBuffer);t=n[0],e=n[1],r=n[2],this.d=e+2*r;for(var o=0;o<this.d*this.d;o++){var a=n[Jr+o],s=n[Jr+o+1];i.push(a===s?null:n.subarray(a,s))}var u=n[Jr+i.length],l=n[Jr+i.length+1];this.keys=n.subarray(u,l),this.bboxes=n.subarray(l),this.insert=this._insertReadonly}else{this.d=e+2*r;for(var p=0;p<this.d*this.d;p++)i.push([]);this.keys=[],this.bboxes=[]}this.n=e,this.extent=t,this.padding=r,this.scale=e/t,this.uid=0;var c=r/e*t;this.min=-c,this.max=t+c}$r.prototype.insert=function(t,e,r,i,n){this._forEachCell(e,r,i,n,this._insertCell,this.uid++),this.keys.push(t),this.bboxes.push(e),this.bboxes.push(r),this.bboxes.push(i),this.bboxes.push(n)},$r.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},$r.prototype._insertCell=function(t,e,r,i,n,o){this.cells[n].push(o)},$r.prototype.query=function(t,e,r,i){var n=this.min,o=this.max;if(t<=n&&e<=n&&o<=r&&o<=i)return Array.prototype.slice.call(this.keys);var a=[];return this._forEachCell(t,e,r,i,this._queryCell,a,{}),a},$r.prototype._queryCell=function(t,e,r,i,n,o,a){var s=this.cells[n];if(null!==s)for(var u=this.keys,l=this.bboxes,p=0;p<s.length;p++){var c=s[p];if(void 0===a[c]){var h=4*c;t<=l[h+2]&&e<=l[h+3]&&r>=l[h+0]&&i>=l[h+1]?(a[c]=!0,o.push(u[c])):a[c]=!1}}},$r.prototype._forEachCell=function(t,e,r,i,n,o,a){for(var s=this._convertToCellCoord(t),u=this._convertToCellCoord(e),l=this._convertToCellCoord(r),p=this._convertToCellCoord(i),c=s;c<=l;c++)for(var h=u;h<=p;h++){var f=this.d*h+c;if(n.call(this,t,e,r,i,f,o,a))return}},$r.prototype._convertToCellCoord=function(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))},$r.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var t=this.cells,e=Jr+this.cells.length+1+1,r=0,i=0;i<this.cells.length;i++)r+=this.cells[i].length;var n=new Int32Array(e+r+this.keys.length+this.bboxes.length);n[0]=this.extent,n[1]=this.n,n[2]=this.padding;for(var o=e,a=0;a<t.length;a++){var s=t[a];n[Jr+a]=o,n.set(s,o),o+=s.length}return n[Jr+t.length]=o,n.set(this.keys,o),o+=this.keys.length,n[Jr+t.length+1]=o,n.set(this.bboxes,o),o+=this.bboxes.length,n.buffer};var Qr=self.ImageData,ti={};function ei(t,e,r){void 0===r&&(r={}),Object.defineProperty(e,"_classRegistryKey",{value:t,writeable:!1}),ti[t]={klass:e,omit:r.omit||[],shallow:r.shallow||[]}}for(var ri in ei("Object",Object),Yr.serialize=function(t,e){var r=t.toArrayBuffer();return e&&e.push(r),{buffer:r}},Yr.deserialize=function(t){return new Yr(t.buffer)},ei("Grid",Yr),ei("Color",Bt),ei("Error",Error),ei("StylePropertyFunction",dr),ei("StyleExpression",ur,{omit:["_evaluator"]}),ei("ZoomDependentExpression",hr),ei("ZoomConstantExpression",cr),ei("CompoundExpression",Jt,{omit:["_evaluate"]}),qe)qe[ri]._classRegistryKey||ei("Expression_"+ri,qe[ri]);function ii(t,e){if(null==t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp)return t;if(t instanceof ArrayBuffer)return e&&e.push(t),t;if(ArrayBuffer.isView(t)){var r=t;return e&&e.push(r.buffer),r}if(t instanceof Qr)return e&&e.push(t.data.buffer),t;if(Array.isArray(t)){for(var i=[],n=0,o=t;n<o.length;n+=1){var a=o[n];i.push(ii(a,e))}return i}if("object"==typeof t){var s=t.constructor,u=s._classRegistryKey;if(!u)throw new Error("can't serialize object of unregistered class");var l=s.serialize?s.serialize(t,e):{};if(!s.serialize){for(var p in t)if(t.hasOwnProperty(p)&&!(ti[u].omit.indexOf(p)>=0)){var c=t[p];l[p]=ti[u].shallow.indexOf(p)>=0?c:ii(c,e)}t instanceof Error&&(l.message=t.message)}if(l.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==u&&(l.$name=u),l}throw new Error("can't serialize object of type "+typeof t)}function ni(t){if(null==t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp||t instanceof ArrayBuffer||ArrayBuffer.isView(t)||t instanceof Qr)return t;if(Array.isArray(t))return t.map(ni);if("object"==typeof t){var e=t.$name||"Object",r=ti[e].klass;if(!r)throw new Error("can't deserialize unregistered class "+e);if(r.deserialize)return r.deserialize(t);for(var i=Object.create(r.prototype),n=0,o=Object.keys(t);n<o.length;n+=1){var a=o[n];if("$name"!==a){var s=t[a];i[a]=ti[e].shallow.indexOf(a)>=0?s:ni(s)}}return i}throw new Error("can't deserialize object of type "+typeof t)}var oi=function(){this.first=!0};oi.prototype.update=function(t,e){var r=Math.floor(t);return this.first?(this.first=!1,this.lastIntegerZoom=r,this.lastIntegerZoomTime=0,this.lastZoom=t,this.lastFloorZoom=r,!0):(this.lastFloorZoom>r?(this.lastIntegerZoom=r+1,this.lastIntegerZoomTime=e):this.lastFloorZoom<r&&(this.lastIntegerZoom=r,this.lastIntegerZoomTime=e),t!==this.lastZoom&&(this.lastZoom=t,this.lastFloorZoom=r,!0))};var ai={"Latin-1 Supplement":function(t){return t>=128&&t<=255},Arabic:function(t){return t>=1536&&t<=1791},"Arabic Supplement":function(t){return t>=1872&&t<=1919},"Arabic Extended-A":function(t){return t>=2208&&t<=2303},"Hangul Jamo":function(t){return t>=4352&&t<=4607},"Unified Canadian Aboriginal Syllabics":function(t){return t>=5120&&t<=5759},Khmer:function(t){return t>=6016&&t<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(t){return t>=6320&&t<=6399},"General Punctuation":function(t){return t>=8192&&t<=8303},"Letterlike Symbols":function(t){return t>=8448&&t<=8527},"Number Forms":function(t){return t>=8528&&t<=8591},"Miscellaneous Technical":function(t){return t>=8960&&t<=9215},"Control Pictures":function(t){return t>=9216&&t<=9279},"Optical Character Recognition":function(t){return t>=9280&&t<=9311},"Enclosed Alphanumerics":function(t){return t>=9312&&t<=9471},"Geometric Shapes":function(t){return t>=9632&&t<=9727},"Miscellaneous Symbols":function(t){return t>=9728&&t<=9983},"Miscellaneous Symbols and Arrows":function(t){return t>=11008&&t<=11263},"CJK Radicals Supplement":function(t){return t>=11904&&t<=12031},"Kangxi Radicals":function(t){return t>=12032&&t<=12255},"Ideographic Description Characters":function(t){return t>=12272&&t<=12287},"CJK Symbols and Punctuation":function(t){return t>=12288&&t<=12351},Hiragana:function(t){return t>=12352&&t<=12447},Katakana:function(t){return t>=12448&&t<=12543},Bopomofo:function(t){return t>=12544&&t<=12591},"Hangul Compatibility Jamo":function(t){return t>=12592&&t<=12687},Kanbun:function(t){return t>=12688&&t<=12703},"Bopomofo Extended":function(t){return t>=12704&&t<=12735},"CJK Strokes":function(t){return t>=12736&&t<=12783},"Katakana Phonetic Extensions":function(t){return t>=12784&&t<=12799},"Enclosed CJK Letters and Months":function(t){return t>=12800&&t<=13055},"CJK Compatibility":function(t){return t>=13056&&t<=13311},"CJK Unified Ideographs Extension A":function(t){return t>=13312&&t<=19903},"Yijing Hexagram Symbols":function(t){return t>=19904&&t<=19967},"CJK Unified Ideographs":function(t){return t>=19968&&t<=40959},"Yi Syllables":function(t){return t>=40960&&t<=42127},"Yi Radicals":function(t){return t>=42128&&t<=42191},"Hangul Jamo Extended-A":function(t){return t>=43360&&t<=43391},"Hangul Syllables":function(t){return t>=44032&&t<=55215},"Hangul Jamo Extended-B":function(t){return t>=55216&&t<=55295},"Private Use Area":function(t){return t>=57344&&t<=63743},"CJK Compatibility Ideographs":function(t){return t>=63744&&t<=64255},"Arabic Presentation Forms-A":function(t){return t>=64336&&t<=65023},"Vertical Forms":function(t){return t>=65040&&t<=65055},"CJK Compatibility Forms":function(t){return t>=65072&&t<=65103},"Small Form Variants":function(t){return t>=65104&&t<=65135},"Arabic Presentation Forms-B":function(t){return t>=65136&&t<=65279},"Halfwidth and Fullwidth Forms":function(t){return t>=65280&&t<=65519}};function si(t){for(var e=0,r=t;e<r.length;e+=1)if(li(r[e].charCodeAt(0)))return!0;return!1}function ui(t){return!(ai.Arabic(t)||ai["Arabic Supplement"](t)||ai["Arabic Extended-A"](t)||ai["Arabic Presentation Forms-A"](t)||ai["Arabic Presentation Forms-B"](t))}function li(t){return!(746!==t&&747!==t&&(t<4352||!(ai["Bopomofo Extended"](t)||ai.Bopomofo(t)||ai["CJK Compatibility Forms"](t)&&!(t>=65097&&t<=65103)||ai["CJK Compatibility Ideographs"](t)||ai["CJK Compatibility"](t)||ai["CJK Radicals Supplement"](t)||ai["CJK Strokes"](t)||!(!ai["CJK Symbols and Punctuation"](t)||t>=12296&&t<=12305||t>=12308&&t<=12319||12336===t)||ai["CJK Unified Ideographs Extension A"](t)||ai["CJK Unified Ideographs"](t)||ai["Enclosed CJK Letters and Months"](t)||ai["Hangul Compatibility Jamo"](t)||ai["Hangul Jamo Extended-A"](t)||ai["Hangul Jamo Extended-B"](t)||ai["Hangul Jamo"](t)||ai["Hangul Syllables"](t)||ai.Hiragana(t)||ai["Ideographic Description Characters"](t)||ai.Kanbun(t)||ai["Kangxi Radicals"](t)||ai["Katakana Phonetic Extensions"](t)||ai.Katakana(t)&&12540!==t||!(!ai["Halfwidth and Fullwidth Forms"](t)||65288===t||65289===t||65293===t||t>=65306&&t<=65310||65339===t||65341===t||65343===t||t>=65371&&t<=65503||65507===t||t>=65512&&t<=65519)||!(!ai["Small Form Variants"](t)||t>=65112&&t<=65118||t>=65123&&t<=65126)||ai["Unified Canadian Aboriginal Syllabics"](t)||ai["Unified Canadian Aboriginal Syllabics Extended"](t)||ai["Vertical Forms"](t)||ai["Yijing Hexagram Symbols"](t)||ai["Yi Syllables"](t)||ai["Yi Radicals"](t))))}function pi(t){return!(li(t)||function(t){return!!(ai["Latin-1 Supplement"](t)&&(167===t||169===t||174===t||177===t||188===t||189===t||190===t||215===t||247===t)||ai["General Punctuation"](t)&&(8214===t||8224===t||8225===t||8240===t||8241===t||8251===t||8252===t||8258===t||8263===t||8264===t||8265===t||8273===t)||ai["Letterlike Symbols"](t)||ai["Number Forms"](t)||ai["Miscellaneous Technical"](t)&&(t>=8960&&t<=8967||t>=8972&&t<=8991||t>=8996&&t<=9e3||9003===t||t>=9085&&t<=9114||t>=9150&&t<=9165||9167===t||t>=9169&&t<=9179||t>=9186&&t<=9215)||ai["Control Pictures"](t)&&9251!==t||ai["Optical Character Recognition"](t)||ai["Enclosed Alphanumerics"](t)||ai["Geometric Shapes"](t)||ai["Miscellaneous Symbols"](t)&&!(t>=9754&&t<=9759)||ai["Miscellaneous Symbols and Arrows"](t)&&(t>=11026&&t<=11055||t>=11088&&t<=11097||t>=11192&&t<=11243)||ai["CJK Symbols and Punctuation"](t)||ai.Katakana(t)||ai["Private Use Area"](t)||ai["CJK Compatibility Forms"](t)||ai["Small Form Variants"](t)||ai["Halfwidth and Fullwidth Forms"](t)||8734===t||8756===t||8757===t||t>=9984&&t<=10087||t>=10102&&t<=10131||65532===t||65533===t)}(t))}function ci(t,e){return!(!e&&(t>=1424&&t<=2303||ai["Arabic Presentation Forms-A"](t)||ai["Arabic Presentation Forms-B"](t))||t>=2304&&t<=3583||t>=3840&&t<=4255||ai.Khmer(t))}var hi,fi=!1,di=null,mi=!1,yi=new ht,_i={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return mi||null!=_i.applyArabicShaping}},vi=function(t,e){this.zoom=t,e?(this.now=e.now,this.fadeDuration=e.fadeDuration,this.zoomHistory=e.zoomHistory,this.transition=e.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new oi,this.transition={})};vi.prototype.isSupportedScript=function(t){return function(t,e){for(var r=0,i=t;r<i.length;r+=1)if(!ci(i[r].charCodeAt(0),e))return!1;return!0}(t,_i.isLoaded())},vi.prototype.crossFadingFactor=function(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},vi.prototype.getCrossfadeParameters=function(){var t=this.zoom,e=t-Math.floor(t),r=this.crossFadingFactor();return t>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:e+(1-e)*r}:{fromScale:.5,toScale:1,t:1-(1-r)*e}};var gi=function(t,e){this.property=t,this.value=e,this.expression=mr(void 0===e?t.specification.default:e,t.specification)};gi.prototype.isDataDriven=function(){return"source"===this.expression.kind||"composite"===this.expression.kind},gi.prototype.possiblyEvaluate=function(t){return this.property.possiblyEvaluate(this,t)};var xi=function(t){this.property=t,this.value=new gi(t,void 0)};xi.prototype.transitioned=function(t,e){return new wi(this.property,this.value,e,c({},t.transition,this.transition),t.now)},xi.prototype.untransitioned=function(){return new wi(this.property,this.value,null,{},0)};var bi=function(t){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues)};bi.prototype.getValue=function(t){return x(this._values[t].value.value)},bi.prototype.setValue=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new xi(this._values[t].property)),this._values[t].value=new gi(this._values[t].property,null===e?void 0:x(e))},bi.prototype.getTransition=function(t){return x(this._values[t].transition)},bi.prototype.setTransition=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new xi(this._values[t].property)),this._values[t].transition=x(e)||void 0},bi.prototype.serialize=function(){for(var t={},e=0,r=Object.keys(this._values);e<r.length;e+=1){var i=r[e],n=this.getValue(i);void 0!==n&&(t[i]=n);var o=this.getTransition(i);void 0!==o&&(t[i+"-transition"]=o)}return t},bi.prototype.transitioned=function(t,e){for(var r=new Ei(this._properties),i=0,n=Object.keys(this._values);i<n.length;i+=1){var o=n[i];r._values[o]=this._values[o].transitioned(t,e._values[o])}return r},bi.prototype.untransitioned=function(){for(var t=new Ei(this._properties),e=0,r=Object.keys(this._values);e<r.length;e+=1){var i=r[e];t._values[i]=this._values[i].untransitioned()}return t};var wi=function(t,e,r,i,n){this.property=t,this.value=e,this.begin=n+i.delay||0,this.end=this.begin+i.duration||0,t.specification.transition&&(i.delay||i.duration)&&(this.prior=r)};wi.prototype.possiblyEvaluate=function(t){var e=t.now||0,r=this.value.possiblyEvaluate(t),i=this.prior;if(i){if(e>this.end)return this.prior=null,r;if(this.value.isDataDriven())return this.prior=null,r;if(e<this.begin)return i.possiblyEvaluate(t);var n=(e-this.begin)/(this.end-this.begin);return this.property.interpolate(i.possiblyEvaluate(t),r,function(t){if(n<=0)return 0;if(n>=1)return 1;var e=n*n,r=e*n;return 4*(n<.5?r:3*(n-e)+r-.75)}())}return r};var Ei=function(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues)};Ei.prototype.possiblyEvaluate=function(t){for(var e=new Ai(this._properties),r=0,i=Object.keys(this._values);r<i.length;r+=1){var n=i[r];e._values[n]=this._values[n].possiblyEvaluate(t)}return e},Ei.prototype.hasTransition=function(){for(var t=0,e=Object.keys(this._values);t<e.length;t+=1){var r=e[t];if(this._values[r].prior)return!0}return!1};var Si=function(t){this._properties=t,this._values=Object.create(t.defaultPropertyValues)};Si.prototype.getValue=function(t){return x(this._values[t].value)},Si.prototype.setValue=function(t,e){this._values[t]=new gi(this._values[t].property,null===e?void 0:x(e))},Si.prototype.serialize=function(){for(var t={},e=0,r=Object.keys(this._values);e<r.length;e+=1){var i=r[e],n=this.getValue(i);void 0!==n&&(t[i]=n)}return t},Si.prototype.possiblyEvaluate=function(t){for(var e=new Ai(this._properties),r=0,i=Object.keys(this._values);r<i.length;r+=1){var n=i[r];e._values[n]=this._values[n].possiblyEvaluate(t)}return e};var Ti=function(t,e,r){this.property=t,this.value=e,this.parameters=r};Ti.prototype.isConstant=function(){return"constant"===this.value.kind},Ti.prototype.constantOr=function(t){return"constant"===this.value.kind?this.value.value:t},Ti.prototype.evaluate=function(t,e){return this.property.evaluate(this.value,this.parameters,t,e)};var Ai=function(t){this._properties=t,this._values=Object.create(t.defaultPossiblyEvaluatedValues)};Ai.prototype.get=function(t){return this._values[t]};var zi=function(t){this.specification=t};zi.prototype.possiblyEvaluate=function(t,e){return t.expression.evaluate(e)},zi.prototype.interpolate=function(t,e,r){var i=se[this.specification.type];return i?i(t,e,r):t};var Ii=function(t){this.specification=t};Ii.prototype.possiblyEvaluate=function(t,e){return"constant"===t.expression.kind||"camera"===t.expression.kind?new Ti(this,{kind:"constant",value:t.expression.evaluate(e)},e):new Ti(this,t.expression,e)},Ii.prototype.interpolate=function(t,e,r){if("constant"!==t.value.kind||"constant"!==e.value.kind)return t;if(void 0===t.value.value||void 0===e.value.value)return new Ti(this,{kind:"constant",value:void 0},t.parameters);var i=se[this.specification.type];return i?new Ti(this,{kind:"constant",value:i(t.value.value,e.value.value,r)},t.parameters):t},Ii.prototype.evaluate=function(t,e,r,i){return"constant"===t.kind?t.value:t.evaluate(e,r,i)};var Ci=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.possiblyEvaluate=function(t,e){if(void 0===t.value)return new Ti(this,{kind:"constant",value:void 0},e);if("constant"===t.expression.kind){var r=t.expression.evaluate(e),i=this._calculate(r,r,r,e);return new Ti(this,{kind:"constant",value:i},e)}if("camera"===t.expression.kind){var n=this._calculate(t.expression.evaluate({zoom:e.zoom-1}),t.expression.evaluate({zoom:e.zoom}),t.expression.evaluate({zoom:e.zoom+1}),e);return new Ti(this,{kind:"constant",value:n},e)}return new Ti(this,t.expression,e)},e.prototype.evaluate=function(t,e,r,i){if("source"===t.kind){var n=t.evaluate(e,r,i);return this._calculate(n,n,n,e)}return"composite"===t.kind?this._calculate(t.evaluate({zoom:Math.floor(e.zoom)-1},r,i),t.evaluate({zoom:Math.floor(e.zoom)},r,i),t.evaluate({zoom:Math.floor(e.zoom)+1},r,i),e):t.value},e.prototype._calculate=function(t,e,r,i){return i.zoom>i.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}},e.prototype.interpolate=function(t){return t},e}(Ii),ki=function(t){this.specification=t};ki.prototype.possiblyEvaluate=function(t,e){if(void 0!==t.value){if("constant"===t.expression.kind){var r=t.expression.evaluate(e);return this._calculate(r,r,r,e)}return this._calculate(t.expression.evaluate(new vi(Math.floor(e.zoom-1),e)),t.expression.evaluate(new vi(Math.floor(e.zoom),e)),t.expression.evaluate(new vi(Math.floor(e.zoom+1),e)),e)}},ki.prototype._calculate=function(t,e,r,i){return i.zoom>i.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}},ki.prototype.interpolate=function(t){return t};var Pi=function(t){this.specification=t};Pi.prototype.possiblyEvaluate=function(t,e){return!!t.expression.evaluate(e)},Pi.prototype.interpolate=function(){return!1};var Mi=function(t){for(var e in this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},t){var r=t[e],i=this.defaultPropertyValues[e]=new gi(r,void 0),n=this.defaultTransitionablePropertyValues[e]=new xi(r);this.defaultTransitioningPropertyValues[e]=n.untransitioned(),this.defaultPossiblyEvaluatedValues[e]=i.possiblyEvaluate({})}};ei("DataDrivenProperty",Ii),ei("DataConstantProperty",zi),ei("CrossFadedDataDrivenProperty",Ci),ei("CrossFadedProperty",ki),ei("ColorRampProperty",Pi);var Li=function(t){function e(e,r){if(t.call(this),this.id=e.id,this.type=e.type,this.visibility="visible",this._featureFilter=function(){return!0},"custom"!==e.type&&(e=e,this.metadata=e.metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,"background"!==e.type&&(this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter),r.layout&&(this._unevaluatedLayout=new Si(r.layout)),r.paint)){for(var i in this._transitionablePaint=new bi(r.paint),e.paint)this.setPaintProperty(i,e.paint[i],{validate:!1});for(var n in e.layout)this.setLayoutProperty(n,e.layout[n],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned()}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},e.prototype.getLayoutProperty=function(t){return"visibility"===t?this.visibility:this._unevaluatedLayout.getValue(t)},e.prototype.setLayoutProperty=function(t,e,r){if(void 0===r&&(r={}),null!=e){var i="layers."+this.id+".layout."+t;if(this._validate(Hr,i,t,e,r))return}"visibility"!==t?this._unevaluatedLayout.setValue(t,e):this.visibility="none"===e?e:"visible"},e.prototype.getPaintProperty=function(t){return _(t,"-transition")?this._transitionablePaint.getTransition(t.slice(0,-"-transition".length)):this._transitionablePaint.getValue(t)},e.prototype.setPaintProperty=function(t,e,r){if(void 0===r&&(r={}),null!=e){var i="layers."+this.id+".paint."+t;if(this._validate(Wr,i,t,e,r))return!1}if(_(t,"-transition"))return this._transitionablePaint.setTransition(t.slice(0,-"-transition".length),e||void 0),!1;var n=this._transitionablePaint._values[t],o="cross-faded-data-driven"===n.property.specification["property-type"]&&!n.value.value&&e,a=this._transitionablePaint._values[t].value.isDataDriven();this._transitionablePaint.setValue(t,e);var s=this._transitionablePaint._values[t].value.isDataDriven();return this._handleSpecialPaintPropertyUpdate(t),s||a||o},e.prototype._handleSpecialPaintPropertyUpdate=function(t){},e.prototype.isHidden=function(t){return!!(this.minzoom&&t<this.minzoom)||!!(this.maxzoom&&t>=this.maxzoom)||"none"===this.visibility},e.prototype.updateTransitions=function(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)},e.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},e.prototype.recalculate=function(t){t.getCrossfadeParameters&&(this._crossfadeParameters=t.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(t)),this.paint=this._transitioningPaint.possiblyEvaluate(t)},e.prototype.serialize=function(){var t={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return"none"===this.visibility&&(t.layout=t.layout||{},t.layout.visibility="none"),g(t,function(t,e){return!(void 0===t||"layout"===e&&!Object.keys(t).length||"paint"===e&&!Object.keys(t).length)})},e.prototype._validate=function(t,e,r,i,n){return void 0===n&&(n={}),(!n||!1!==n.validate)&&Kr(this,t.call(Gr,{key:e,layerType:this.type,objectKey:r,value:i,styleSpec:ft,style:{glyphs:!0,sprite:!0}}))},e.prototype.hasOffscreenPass=function(){return!1},e.prototype.resize=function(){},e.prototype.isStateDependent=function(){for(var t in this.paint._values){var e=this.paint.get(t);if(e instanceof Ti&&Ye(e.property.specification)&&("source"===e.value.kind||"composite"===e.value.kind)&&e.value.isStateDependent)return!0}return!1},e}(ht),Di={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Bi=function(t,e){this._structArray=t,this._pos1=e*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},Ri=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function Oi(t,e){void 0===e&&(e=1);var r=0,i=0;return{members:t.map(function(t){var n,o=(n=t.type,Di[n].BYTES_PER_ELEMENT),a=r=Fi(r,Math.max(e,o)),s=t.components||1;return i=Math.max(i,o),r+=o*s,{name:t.name,type:t.type,components:s,offset:a}}),size:Fi(r,Math.max(i,e)),alignment:e}}function Fi(t,e){return Math.ceil(t/e)*e}Ri.serialize=function(t,e){return t._trim(),e&&(t.isTransferred=!0,e.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}},Ri.deserialize=function(t){var e=Object.create(this.prototype);return e.arrayBuffer=t.arrayBuffer,e.length=t.length,e.capacity=t.arrayBuffer.byteLength/e.bytesPerElement,e._refreshViews(),e},Ri.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Ri.prototype.clear=function(){this.length=0},Ri.prototype.resize=function(t){this.reserve(t),this.length=t},Ri.prototype.reserve=function(t){if(t>this.capacity){this.capacity=Math.max(t,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var e=this.uint8;this._refreshViews(),e&&this.uint8.set(e)}},Ri.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var Ui=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var i=2*t;return this.int16[i+0]=e,this.int16[i+1]=r,t},e}(Ri);Ui.prototype.bytesPerElement=4,ei("StructArrayLayout2i4",Ui);var Vi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,i){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r,i)},e.prototype.emplace=function(t,e,r,i,n){var o=4*t;return this.int16[o+0]=e,this.int16[o+1]=r,this.int16[o+2]=i,this.int16[o+3]=n,t},e}(Ri);Vi.prototype.bytesPerElement=8,ei("StructArrayLayout4i8",Vi);var Ni=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,i,n,o){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,r,i,n,o)},e.prototype.emplace=function(t,e,r,i,n,o,a){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.int16[s+2]=i,this.int16[s+3]=n,this.int16[s+4]=o,this.int16[s+5]=a,t},e}(Ri);Ni.prototype.bytesPerElement=12,ei("StructArrayLayout2i4i12",Ni);var ji=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,i,n,o,a,s){var u=this.length;return this.resize(u+1),this.emplace(u,t,e,r,i,n,o,a,s)},e.prototype.emplace=function(t,e,r,i,n,o,a,s,u){var l=6*t,p=12*t;return this.int16[l+0]=e,this.int16[l+1]=r,this.int16[l+2]=i,this.int16[l+3]=n,this.uint8[p+8]=o,this.uint8[p+9]=a,this.uint8[p+10]=s,this.uint8[p+11]=u,t},e}(Ri);ji.prototype.bytesPerElement=12,ei("StructArrayLayout4i4ub12",ji);var qi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,i,n,o,a,s){var u=this.length;return this.resize(u+1),this.emplace(u,t,e,r,i,n,o,a,s)},e.prototype.emplace=function(t,e,r,i,n,o,a,s,u){var l=8*t;return this.uint16[l+0]=e,this.uint16[l+1]=r,this.uint16[l+2]=i,this.uint16[l+3]=n,this.uint16[l+4]=o,this.uint16[l+5]=a,this.uint16[l+6]=s,this.uint16[l+7]=u,t},e}(Ri);qi.prototype.bytesPerElement=16,ei("StructArrayLayout8ui16",qi);var Zi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,i,n,o,a,s){var u=this.length;return this.resize(u+1),this.emplace(u,t,e,r,i,n,o,a,s)},e.prototype.emplace=function(t,e,r,i,n,o,a,s,u){var l=8*t;return this.int16[l+0]=e,this.int16[l+1]=r,this.int16[l+2]=i,this.int16[l+3]=n,this.uint16[l+4]=o,this.uint16[l+5]=a,this.uint16[l+6]=s,this.uint16[l+7]=u,t},e}(Ri);Zi.prototype.bytesPerElement=16,ei("StructArrayLayout4i4ui16",Zi);var Gi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r)},e.prototype.emplace=function(t,e,r,i){var n=3*t;return this.float32[n+0]=e,this.float32[n+1]=r,this.float32[n+2]=i,t},e}(Ri);Gi.prototype.bytesPerElement=12,ei("StructArrayLayout3f12",Gi);var Xi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){var r=1*t;return this.uint32[r+0]=e,t},e}(Ri);Xi.prototype.bytesPerElement=4,ei("StructArrayLayout1ul4",Xi);var Wi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,i,n,o,a,s,u,l,p){var c=this.length;return this.resize(c+1),this.emplace(c,t,e,r,i,n,o,a,s,u,l,p)},e.prototype.emplace=function(t,e,r,i,n,o,a,s,u,l,p,c){var h=12*t,f=6*t;return this.int16[h+0]=e,this.int16[h+1]=r,this.int16[h+2]=i,this.int16[h+3]=n,this.int16[h+4]=o,this.int16[h+5]=a,this.uint32[f+3]=s,this.uint16[h+8]=u,this.uint16[h+9]=l,this.int16[h+10]=p,this.int16[h+11]=c,t},e}(Ri);Wi.prototype.bytesPerElement=24,ei("StructArrayLayout6i1ul2ui2i24",Wi);var Hi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,i,n,o){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,r,i,n,o)},e.prototype.emplace=function(t,e,r,i,n,o,a){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.int16[s+2]=i,this.int16[s+3]=n,this.int16[s+4]=o,this.int16[s+5]=a,t},e}(Ri);Hi.prototype.bytesPerElement=12,ei("StructArrayLayout2i2i2i12",Hi);var Ki=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var i=4*t;return this.uint8[i+0]=e,this.uint8[i+1]=r,t},e}(Ri);Ki.prototype.bytesPerElement=4,ei("StructArrayLayout2ub4",Ki);var Yi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,i,n,o,a,s,u,l,p,c,h,f){var d=this.length;return this.resize(d+1),this.emplace(d,t,e,r,i,n,o,a,s,u,l,p,c,h,f)},e.prototype.emplace=function(t,e,r,i,n,o,a,s,u,l,p,c,h,f,d){var m=20*t,y=10*t,_=40*t;return this.int16[m+0]=e,this.int16[m+1]=r,this.uint16[m+2]=i,this.uint16[m+3]=n,this.uint32[y+2]=o,this.uint32[y+3]=a,this.uint32[y+4]=s,this.uint16[m+10]=u,this.uint16[m+11]=l,this.uint16[m+12]=p,this.float32[y+7]=c,this.float32[y+8]=h,this.uint8[_+36]=f,this.uint8[_+37]=d,t},e}(Ri);Yi.prototype.bytesPerElement=40,ei("StructArrayLayout2i2ui3ul3ui2f2ub40",Yi);var Ji=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,i,n,o,a,s,u,l,p,c,h,f){var d=this.length;return this.resize(d+1),this.emplace(d,t,e,r,i,n,o,a,s,u,l,p,c,h,f)},e.prototype.emplace=function(t,e,r,i,n,o,a,s,u,l,p,c,h,f,d){var m=16*t,y=8*t;return this.int16[m+0]=e,this.int16[m+1]=r,this.int16[m+2]=i,this.int16[m+3]=n,this.uint16[m+4]=o,this.uint16[m+5]=a,this.uint16[m+6]=s,this.uint16[m+7]=u,this.uint16[m+8]=l,this.uint16[m+9]=p,this.uint16[m+10]=c,this.uint16[m+11]=h,this.uint16[m+12]=f,this.uint32[y+7]=d,t},e}(Ri);Ji.prototype.bytesPerElement=32,ei("StructArrayLayout4i9ui1ul32",Ji);var $i=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){var r=1*t;return this.float32[r+0]=e,t},e}(Ri);$i.prototype.bytesPerElement=4,ei("StructArrayLayout1f4",$i);var Qi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r)},e.prototype.emplace=function(t,e,r,i){var n=3*t;return this.int16[n+0]=e,this.int16[n+1]=r,this.int16[n+2]=i,t},e}(Ri);Qi.prototype.bytesPerElement=6,ei("StructArrayLayout3i6",Qi);var tn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r)},e.prototype.emplace=function(t,e,r,i){var n=2*t,o=4*t;return this.uint32[n+0]=e,this.uint16[o+2]=r,this.uint16[o+3]=i,t},e}(Ri);tn.prototype.bytesPerElement=8,ei("StructArrayLayout1ul2ui8",tn);var en=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r)},e.prototype.emplace=function(t,e,r,i){var n=3*t;return this.uint16[n+0]=e,this.uint16[n+1]=r,this.uint16[n+2]=i,t},e}(Ri);en.prototype.bytesPerElement=6,ei("StructArrayLayout3ui6",en);var rn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var i=2*t;return this.uint16[i+0]=e,this.uint16[i+1]=r,t},e}(Ri);rn.prototype.bytesPerElement=4,ei("StructArrayLayout2ui4",rn);var nn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){var r=1*t;return this.uint16[r+0]=e,t},e}(Ri);nn.prototype.bytesPerElement=2,ei("StructArrayLayout1ui2",nn);var on=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var i=2*t;return this.float32[i+0]=e,this.float32[i+1]=r,t},e}(Ri);on.prototype.bytesPerElement=8,ei("StructArrayLayout2f8",on);var an=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,i){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r,i)},e.prototype.emplace=function(t,e,r,i,n){var o=4*t;return this.float32[o+0]=e,this.float32[o+1]=r,this.float32[o+2]=i,this.float32[o+3]=n,t},e}(Ri);an.prototype.bytesPerElement=16,ei("StructArrayLayout4f16",an);var sn=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},radius:{configurable:!0},signedDistanceFromAnchor:{configurable:!0},anchorPoint:{configurable:!0}};return r.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorPointX.set=function(t){this._structArray.int16[this._pos2+0]=t},r.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},r.anchorPointY.set=function(t){this._structArray.int16[this._pos2+1]=t},r.x1.get=function(){return this._structArray.int16[this._pos2+2]},r.x1.set=function(t){this._structArray.int16[this._pos2+2]=t},r.y1.get=function(){return this._structArray.int16[this._pos2+3]},r.y1.set=function(t){this._structArray.int16[this._pos2+3]=t},r.x2.get=function(){return this._structArray.int16[this._pos2+4]},r.x2.set=function(t){this._structArray.int16[this._pos2+4]=t},r.y2.get=function(){return this._structArray.int16[this._pos2+5]},r.y2.set=function(t){this._structArray.int16[this._pos2+5]=t},r.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},r.featureIndex.set=function(t){this._structArray.uint32[this._pos4+3]=t},r.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},r.sourceLayerIndex.set=function(t){this._structArray.uint16[this._pos2+8]=t},r.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},r.bucketIndex.set=function(t){this._structArray.uint16[this._pos2+9]=t},r.radius.get=function(){return this._structArray.int16[this._pos2+10]},r.radius.set=function(t){this._structArray.int16[this._pos2+10]=t},r.signedDistanceFromAnchor.get=function(){return this._structArray.int16[this._pos2+11]},r.signedDistanceFromAnchor.set=function(t){this._structArray.int16[this._pos2+11]=t},r.anchorPoint.get=function(){return new n(this.anchorPointX,this.anchorPointY)},Object.defineProperties(e.prototype,r),e}(Bi);sn.prototype.size=24;var un=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new sn(this,t)},e}(Wi);ei("CollisionBoxArray",un);var ln=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},hidden:{configurable:!0}};return r.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorX.set=function(t){this._structArray.int16[this._pos2+0]=t},r.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},r.anchorY.set=function(t){this._structArray.int16[this._pos2+1]=t},r.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},r.glyphStartIndex.set=function(t){this._structArray.uint16[this._pos2+2]=t},r.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},r.numGlyphs.set=function(t){this._structArray.uint16[this._pos2+3]=t},r.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},r.vertexStartIndex.set=function(t){this._structArray.uint32[this._pos4+2]=t},r.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},r.lineStartIndex.set=function(t){this._structArray.uint32[this._pos4+3]=t},r.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},r.lineLength.set=function(t){this._structArray.uint32[this._pos4+4]=t},r.segment.get=function(){return this._structArray.uint16[this._pos2+10]},r.segment.set=function(t){this._structArray.uint16[this._pos2+10]=t},r.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},r.lowerSize.set=function(t){this._structArray.uint16[this._pos2+11]=t},r.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},r.upperSize.set=function(t){this._structArray.uint16[this._pos2+12]=t},r.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},r.lineOffsetX.set=function(t){this._structArray.float32[this._pos4+7]=t},r.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},r.lineOffsetY.set=function(t){this._structArray.float32[this._pos4+8]=t},r.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},r.writingMode.set=function(t){this._structArray.uint8[this._pos1+36]=t},r.hidden.get=function(){return this._structArray.uint8[this._pos1+37]},r.hidden.set=function(t){this._structArray.uint8[this._pos1+37]=t},Object.defineProperties(e.prototype,r),e}(Bi);ln.prototype.size=40;var pn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new ln(this,t)},e}(Yi);ei("PlacedSymbolArray",pn);var cn=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={anchorX:{configurable:!0},anchorY:{configurable:!0},horizontalPlacedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},crossTileID:{configurable:!0}};return r.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorX.set=function(t){this._structArray.int16[this._pos2+0]=t},r.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},r.anchorY.set=function(t){this._structArray.int16[this._pos2+1]=t},r.horizontalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},r.horizontalPlacedTextSymbolIndex.set=function(t){this._structArray.int16[this._pos2+2]=t},r.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},r.verticalPlacedTextSymbolIndex.set=function(t){this._structArray.int16[this._pos2+3]=t},r.key.get=function(){return this._structArray.uint16[this._pos2+4]},r.key.set=function(t){this._structArray.uint16[this._pos2+4]=t},r.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+5]},r.textBoxStartIndex.set=function(t){this._structArray.uint16[this._pos2+5]=t},r.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+6]},r.textBoxEndIndex.set=function(t){this._structArray.uint16[this._pos2+6]=t},r.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+7]},r.iconBoxStartIndex.set=function(t){this._structArray.uint16[this._pos2+7]=t},r.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+8]},r.iconBoxEndIndex.set=function(t){this._structArray.uint16[this._pos2+8]=t},r.featureIndex.get=function(){return this._structArray.uint16[this._pos2+9]},r.featureIndex.set=function(t){this._structArray.uint16[this._pos2+9]=t},r.numGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+10]},r.numGlyphVertices.set=function(t){this._structArray.uint16[this._pos2+10]=t},r.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+11]},r.numVerticalGlyphVertices.set=function(t){this._structArray.uint16[this._pos2+11]=t},r.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+12]},r.numIconVertices.set=function(t){this._structArray.uint16[this._pos2+12]=t},r.crossTileID.get=function(){return this._structArray.uint32[this._pos4+7]},r.crossTileID.set=function(t){this._structArray.uint32[this._pos4+7]=t},Object.defineProperties(e.prototype,r),e}(Bi);cn.prototype.size=32;var hn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new cn(this,t)},e}(Ji);ei("SymbolInstanceArray",hn);var fn=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={offsetX:{configurable:!0}};return r.offsetX.get=function(){return this._structArray.float32[this._pos4+0]},r.offsetX.set=function(t){this._structArray.float32[this._pos4+0]=t},Object.defineProperties(e.prototype,r),e}(Bi);fn.prototype.size=4;var dn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getoffsetX=function(t){return this.float32[1*t+0]},e.prototype.get=function(t){return new fn(this,t)},e}($i);ei("GlyphOffsetArray",dn);var mn=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={x:{configurable:!0},y:{configurable:!0},tileUnitDistanceFromAnchor:{configurable:!0}};return r.x.get=function(){return this._structArray.int16[this._pos2+0]},r.x.set=function(t){this._structArray.int16[this._pos2+0]=t},r.y.get=function(){return this._structArray.int16[this._pos2+1]},r.y.set=function(t){this._structArray.int16[this._pos2+1]=t},r.tileUnitDistanceFromAnchor.get=function(){return this._structArray.int16[this._pos2+2]},r.tileUnitDistanceFromAnchor.set=function(t){this._structArray.int16[this._pos2+2]=t},Object.defineProperties(e.prototype,r),e}(Bi);mn.prototype.size=6;var yn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getx=function(t){return this.int16[3*t+0]},e.prototype.gety=function(t){return this.int16[3*t+1]},e.prototype.gettileUnitDistanceFromAnchor=function(t){return this.int16[3*t+2]},e.prototype.get=function(t){return new mn(this,t)},e}(Qi);ei("SymbolLineVertexArray",yn);var _n=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return r.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},r.featureIndex.set=function(t){this._structArray.uint32[this._pos4+0]=t},r.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},r.sourceLayerIndex.set=function(t){this._structArray.uint16[this._pos2+2]=t},r.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},r.bucketIndex.set=function(t){this._structArray.uint16[this._pos2+3]=t},Object.defineProperties(e.prototype,r),e}(Bi);_n.prototype.size=8;var vn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new _n(this,t)},e}(tn);ei("FeatureIndexArray",vn);var gn=Oi([{name:"a_pos",components:2,type:"Int16"}],4),xn=gn.members,bn=(gn.size,gn.alignment,function(t){void 0===t&&(t=[]),this.segments=t});function wn(t,e){return 256*(t=l(Math.floor(t),0,255))+l(Math.floor(e),0,255)}bn.prototype.prepareSegment=function(t,e,r){var i=this.segments[this.segments.length-1];return t>bn.MAX_VERTEX_ARRAY_LENGTH&&w("Max vertices per segment is "+bn.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+t),(!i||i.vertexLength+t>bn.MAX_VERTEX_ARRAY_LENGTH)&&(i={vertexOffset:e.length,primitiveOffset:r.length,vertexLength:0,primitiveLength:0},this.segments.push(i)),i},bn.prototype.get=function(){return this.segments},bn.prototype.destroy=function(){for(var t=0,e=this.segments;t<e.length;t+=1){var r=e[t];for(var i in r.vaos)r.vaos[i].destroy()}},bn.simpleSegment=function(t,e,r,i){return new bn([{vertexOffset:t,primitiveOffset:e,vertexLength:r,primitiveLength:i,vaos:{}}])},bn.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,ei("SegmentVector",bn);var En=function(){this.ids=[],this.positions=[],this.indexed=!1};function Sn(t,e,r){var i=t[e];t[e]=t[r],t[r]=i}En.prototype.add=function(t,e,r,i){this.ids.push(t),this.positions.push(e,r,i)},En.prototype.getPositions=function(t){for(var e=0,r=this.ids.length-1;e<r;){var i=e+r>>1;this.ids[i]>=t?r=i:e=i+1}for(var n=[];this.ids[e]===t;){var o=this.positions[3*e],a=this.positions[3*e+1],s=this.positions[3*e+2];n.push({index:o,start:a,end:s}),e++}return n},En.serialize=function(t,e){var r=new Float64Array(t.ids),i=new Uint32Array(t.positions);return function t(e,r,i,n){if(!(i>=n)){for(var o=e[i+n>>1],a=i-1,s=n+1;;){do{a++}while(e[a]<o);do{s--}while(e[s]>o);if(a>=s)break;Sn(e,a,s),Sn(r,3*a,3*s),Sn(r,3*a+1,3*s+1),Sn(r,3*a+2,3*s+2)}t(e,r,i,s),t(e,r,s+1,n)}}(r,i,0,r.length-1),e.push(r.buffer,i.buffer),{ids:r,positions:i}},En.deserialize=function(t){var e=new En;return e.ids=t.ids,e.positions=t.positions,e.indexed=!0,e},ei("FeaturePositionMap",En);var Tn=function(t,e){this.gl=t.gl,this.location=e},An=function(t){function e(e,r){t.call(this,e,r),this.current=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){this.current!==t&&(this.current=t,this.gl.uniform1i(this.location,t))},e}(Tn),zn=function(t){function e(e,r){t.call(this,e,r),this.current=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){this.current!==t&&(this.current=t,this.gl.uniform1f(this.location,t))},e}(Tn),In=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&&t[1]===this.current[1]||(this.current=t,this.gl.uniform2f(this.location,t[0],t[1]))},e}(Tn),Cn=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0,0]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&&t[1]===this.current[1]&&t[2]===this.current[2]||(this.current=t,this.gl.uniform3f(this.location,t[0],t[1],t[2]))},e}(Tn),kn=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0,0,0]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&&t[1]===this.current[1]&&t[2]===this.current[2]&&t[3]===this.current[3]||(this.current=t,this.gl.uniform4f(this.location,t[0],t[1],t[2],t[3]))},e}(Tn),Pn=function(t){function e(e,r){t.call(this,e,r),this.current=Bt.transparent}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){t.r===this.current.r&&t.g===this.current.g&&t.b===this.current.b&&t.a===this.current.a||(this.current=t,this.gl.uniform4f(this.location,t.r,t.g,t.b,t.a))},e}(Tn),Mn=new Float32Array(16),Ln=function(t){function e(e,r){t.call(this,e,r),this.current=Mn}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){if(t[12]!==this.current[12]||t[0]!==this.current[0])return this.current=t,void this.gl.uniformMatrix4fv(this.location,!1,t);for(var e=1;e<16;e++)if(t[e]!==this.current[e]){this.current=t,this.gl.uniformMatrix4fv(this.location,!1,t);break}},e}(Tn);function Dn(t){return[wn(255*t.r,255*t.g),wn(255*t.b,255*t.a)]}var Bn=function(t,e,r){this.value=t,this.names=e,this.uniformNames=this.names.map(function(t){return"u_"+t}),this.type=r,this.maxValue=-1/0};Bn.prototype.defines=function(){return this.names.map(function(t){return"#define HAS_UNIFORM_u_"+t})},Bn.prototype.setConstantPatternPositions=function(){},Bn.prototype.populatePaintArray=function(){},Bn.prototype.updatePaintArray=function(){},Bn.prototype.upload=function(){},Bn.prototype.destroy=function(){},Bn.prototype.setUniforms=function(t,e,r,i){e.set(i.constantOr(this.value))},Bn.prototype.getBinding=function(t,e){return"color"===this.type?new Pn(t,e):new zn(t,e)},Bn.serialize=function(t){var e=t.value,r=t.names,i=t.type;return{value:ii(e),names:r,type:i}},Bn.deserialize=function(t){var e=t.value,r=t.names,i=t.type;return new Bn(ni(e),r,i)};var Rn=function(t,e,r){this.value=t,this.names=e,this.uniformNames=this.names.map(function(t){return"u_"+t}),this.type=r,this.maxValue=-1/0,this.patternPositions={patternTo:null,patternFrom:null}};Rn.prototype.defines=function(){return this.names.map(function(t){return"#define HAS_UNIFORM_u_"+t})},Rn.prototype.populatePaintArray=function(){},Rn.prototype.updatePaintArray=function(){},Rn.prototype.upload=function(){},Rn.prototype.destroy=function(){},Rn.prototype.setConstantPatternPositions=function(t,e){this.patternPositions.patternTo=t.tlbr,this.patternPositions.patternFrom=e.tlbr},Rn.prototype.setUniforms=function(t,e,r,i,n){var o=this.patternPositions;"u_pattern_to"===n&&o.patternTo&&e.set(o.patternTo),"u_pattern_from"===n&&o.patternFrom&&e.set(o.patternFrom)},Rn.prototype.getBinding=function(t,e){return new kn(t,e)};var On=function(t,e,r,i){this.expression=t,this.names=e,this.type=r,this.uniformNames=this.names.map(function(t){return"a_"+t}),this.maxValue=-1/0,this.paintVertexAttributes=e.map(function(t){return{name:"a_"+t,type:"Float32",components:"color"===r?2:1,offset:0}}),this.paintVertexArray=new i};On.prototype.defines=function(){return[]},On.prototype.setConstantPatternPositions=function(){},On.prototype.populatePaintArray=function(t,e){var r=this.paintVertexArray,i=r.length;r.reserve(t);var n=this.expression.evaluate(new vi(0),e,{});if("color"===this.type)for(var o=Dn(n),a=i;a<t;a++)r.emplaceBack(o[0],o[1]);else{for(var s=i;s<t;s++)r.emplaceBack(n);this.maxValue=Math.max(this.maxValue,n)}},On.prototype.updatePaintArray=function(t,e,r,i){var n=this.paintVertexArray,o=this.expression.evaluate({zoom:0},r,i);if("color"===this.type)for(var a=Dn(o),s=t;s<e;s++)n.emplace(s,a[0],a[1]);else{for(var u=t;u<e;u++)n.emplace(u,o);this.maxValue=Math.max(this.maxValue,o)}},On.prototype.upload=function(t){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},On.prototype.destroy=function(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()},On.prototype.setUniforms=function(t,e){e.set(0)},On.prototype.getBinding=function(t,e){return new zn(t,e)};var Fn=function(t,e,r,i,n,o){this.expression=t,this.names=e,this.uniformNames=this.names.map(function(t){return"a_"+t+"_t"}),this.type=r,this.useIntegerZoom=i,this.zoom=n,this.maxValue=-1/0;var a=o;this.paintVertexAttributes=e.map(function(t){return{name:"a_"+t,type:"Float32",components:"color"===r?4:2,offset:0}}),this.paintVertexArray=new a};Fn.prototype.defines=function(){return[]},Fn.prototype.setConstantPatternPositions=function(){},Fn.prototype.populatePaintArray=function(t,e){var r=this.paintVertexArray,i=r.length;r.reserve(t);var n=this.expression.evaluate(new vi(this.zoom),e,{}),o=this.expression.evaluate(new vi(this.zoom+1),e,{});if("color"===this.type)for(var a=Dn(n),s=Dn(o),u=i;u<t;u++)r.emplaceBack(a[0],a[1],s[0],s[1]);else{for(var l=i;l<t;l++)r.emplaceBack(n,o);this.maxValue=Math.max(this.maxValue,n,o)}},Fn.prototype.updatePaintArray=function(t,e,r,i){var n=this.paintVertexArray,o=this.expression.evaluate({zoom:this.zoom},r,i),a=this.expression.evaluate({zoom:this.zoom+1},r,i);if("color"===this.type)for(var s=Dn(o),u=Dn(a),l=t;l<e;l++)n.emplace(l,s[0],s[1],u[0],u[1]);else{for(var p=t;p<e;p++)n.emplace(p,o,a);this.maxValue=Math.max(this.maxValue,o,a)}},Fn.prototype.upload=function(t){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},Fn.prototype.destroy=function(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()},Fn.prototype.interpolationFactor=function(t){return this.useIntegerZoom?this.expression.interpolationFactor(Math.floor(t),this.zoom,this.zoom+1):this.expression.interpolationFactor(t,this.zoom,this.zoom+1)},Fn.prototype.setUniforms=function(t,e,r){e.set(this.interpolationFactor(r.zoom))},Fn.prototype.getBinding=function(t,e){return new zn(t,e)};var Un=function(t,e,r,i,n,o,a){this.expression=t,this.names=e,this.type=r,this.uniformNames=this.names.map(function(t){return"a_"+t+"_t"}),this.useIntegerZoom=i,this.zoom=n,this.maxValue=-1/0,this.layerId=a,this.paintVertexAttributes=e.map(function(t){return{name:"a_"+t,type:"Uint16",components:4,offset:0}}),this.zoomInPaintVertexArray=new o,this.zoomOutPaintVertexArray=new o};Un.prototype.defines=function(){return[]},Un.prototype.setConstantPatternPositions=function(){},Un.prototype.populatePaintArray=function(t,e,r){var i=this.zoomInPaintVertexArray,n=this.zoomOutPaintVertexArray,o=this.layerId,a=i.length;if(i.reserve(t),n.reserve(t),r&&e.patterns&&e.patterns[o]){var s=e.patterns[o],u=s.min,l=s.mid,p=s.max,c=r[u],h=r[l],f=r[p];if(!c||!h||!f)return;for(var d=a;d<t;d++)i.emplaceBack(h.tl[0],h.tl[1],h.br[0],h.br[1],c.tl[0],c.tl[1],c.br[0],c.br[1]),n.emplaceBack(h.tl[0],h.tl[1],h.br[0],h.br[1],f.tl[0],f.tl[1],f.br[0],f.br[1])}},Un.prototype.updatePaintArray=function(t,e,r,i,n){var o=this.zoomInPaintVertexArray,a=this.zoomOutPaintVertexArray,s=this.layerId;if(n&&r.patterns&&r.patterns[s]){var u=r.patterns[s],l=u.min,p=u.mid,c=u.max,h=n[l],f=n[p],d=n[c];if(!h||!f||!d)return;for(var m=t;m<e;m++)o.emplace(m,f.tl[0],f.tl[1],f.br[0],f.br[1],h.tl[0],h.tl[1],h.br[0],h.br[1]),a.emplace(m,f.tl[0],f.tl[1],f.br[0],f.br[1],d.tl[0],d.tl[1],d.br[0],d.br[1])}},Un.prototype.upload=function(t){this.zoomInPaintVertexArray&&this.zoomInPaintVertexArray.arrayBuffer&&this.zoomOutPaintVertexArray&&this.zoomOutPaintVertexArray.arrayBuffer&&(this.zoomInPaintVertexBuffer=t.createVertexBuffer(this.zoomInPaintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=t.createVertexBuffer(this.zoomOutPaintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},Un.prototype.destroy=function(){this.zoomOutPaintVertexBuffer&&this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&&this.zoomInPaintVertexBuffer.destroy()},Un.prototype.setUniforms=function(t,e){e.set(0)},Un.prototype.getBinding=function(t,e){return new zn(t,e)};var Vn=function(){this.binders={},this.cacheKey="",this._buffers=[],this._featureMap=new En,this._bufferOffset=0};Vn.createDynamic=function(t,e,r){var i=new Vn,n=[];for(var o in t.paint._values)if(r(o)){var a=t.paint.get(o);if(a instanceof Ti&&Ye(a.property.specification)){var s=jn(o,t.type),u=a.property.specification.type,l=a.property.useIntegerZoom;if("cross-faded"===a.property.specification["property-type"]||"cross-faded-data-driven"===a.property.specification["property-type"])if("constant"===a.value.kind)i.binders[o]=new Rn(a.value.value,s,u),n.push("/u_"+o);else{var p=qn(o,u,"source");i.binders[o]=new Un(a.value,s,u,l,e,p,t.id),n.push("/a_"+o)}else if("constant"===a.value.kind)i.binders[o]=new Bn(a.value.value,s,u),n.push("/u_"+o);else if("source"===a.value.kind){var c=qn(o,u,"source");i.binders[o]=new On(a.value,s,u,c),n.push("/a_"+o)}else{var h=qn(o,u,"composite");i.binders[o]=new Fn(a.value,s,u,l,e,h),n.push("/z_"+o)}}}return i.cacheKey=n.sort().join(""),i},Vn.prototype.populatePaintArrays=function(t,e,r,i){for(var n in this.binders)this.binders[n].populatePaintArray(t,e,i);void 0!==e.id&&this._featureMap.add(+e.id,r,this._bufferOffset,t),this._bufferOffset=t},Vn.prototype.setConstantPatternPositions=function(t,e){for(var r in this.binders)this.binders[r].setConstantPatternPositions(t,e)},Vn.prototype.updatePaintArrays=function(t,e,r,i){var n=!1;for(var o in t)for(var a=0,s=this._featureMap.getPositions(+o);a<s.length;a+=1){var u=s[a],l=e.feature(u.index);for(var p in this.binders){var c=this.binders[p];if(!(c instanceof Bn||c instanceof Rn)&&!0===c.expression.isStateDependent){var h=r.paint.get(p);c.expression=h.value,c.updatePaintArray(u.start,u.end,l,t[o],i),n=!0}}}return n},Vn.prototype.defines=function(){var t=[];for(var e in this.binders)t.push.apply(t,this.binders[e].defines());return t},Vn.prototype.getPaintVertexBuffers=function(){return this._buffers},Vn.prototype.getUniforms=function(t,e){var r={};for(var i in this.binders)for(var n=this.binders[i],o=0,a=n.uniformNames;o<a.length;o+=1){var s=a[o];r[s]=n.getBinding(t,e[s])}return r},Vn.prototype.setUniforms=function(t,e,r,i){for(var n in this.binders)for(var o=this.binders[n],a=0,s=o.uniformNames;a<s.length;a+=1){var u=s[a];o.setUniforms(t,e[u],i,r.get(n),u)}},Vn.prototype.updatePatternPaintBuffers=function(t){var e=[];for(var r in this.binders){var i=this.binders[r];if(i instanceof Un){var n=2===t.fromScale?i.zoomInPaintVertexBuffer:i.zoomOutPaintVertexBuffer;n&&e.push(n)}else(i instanceof On||i instanceof Fn)&&i.paintVertexBuffer&&e.push(i.paintVertexBuffer)}this._buffers=e},Vn.prototype.upload=function(t){for(var e in this.binders)this.binders[e].upload(t);var r=[];for(var i in this.binders){var n=this.binders[i];(n instanceof On||n instanceof Fn)&&n.paintVertexBuffer&&r.push(n.paintVertexBuffer)}this._buffers=r},Vn.prototype.destroy=function(){for(var t in this.binders)this.binders[t].destroy()};var Nn=function(t,e,r,i){void 0===i&&(i=function(){return!0}),this.programConfigurations={};for(var n=0,o=e;n<o.length;n+=1){var a=o[n];this.programConfigurations[a.id]=Vn.createDynamic(a,r,i),this.programConfigurations[a.id].layoutAttributes=t}this.needsUpload=!1};function jn(t,e){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from"],"fill-pattern":["pattern_to","pattern_from"],"fill-extrusion-pattern":["pattern_to","pattern_from"]}[t]||[t.replace(e+"-","").replace(/-/g,"_")]}function qn(t,e,r){var i={color:{source:on,composite:an},number:{source:$i,composite:on}},n=function(t){return{"line-pattern":{source:qi,composite:qi},"fill-pattern":{source:qi,composite:qi},"fill-extrusion-pattern":{source:qi,composite:qi}}[t]}(t);return n&&n[r]||i[e][r]}Nn.prototype.populatePaintArrays=function(t,e,r,i){for(var n in this.programConfigurations)this.programConfigurations[n].populatePaintArrays(t,e,r,i);this.needsUpload=!0},Nn.prototype.updatePaintArrays=function(t,e,r,i){for(var n=0,o=r;n<o.length;n+=1){var a=o[n];this.needsUpload=this.programConfigurations[a.id].updatePaintArrays(t,e,a,i)||this.needsUpload}},Nn.prototype.get=function(t){return this.programConfigurations[t]},Nn.prototype.upload=function(t){if(this.needsUpload){for(var e in this.programConfigurations)this.programConfigurations[e].upload(t);this.needsUpload=!1}},Nn.prototype.destroy=function(){for(var t in this.programConfigurations)this.programConfigurations[t].destroy()},ei("ConstantBinder",Bn),ei("CrossFadedConstantBinder",Rn),ei("SourceExpressionBinder",On),ei("CrossFadedCompositeBinder",Un),ei("CompositeExpressionBinder",Fn),ei("ProgramConfiguration",Vn,{omit:["_buffers"]}),ei("ProgramConfigurationSet",Nn);var Zn=8192,Gn={min:-1*Math.pow(2,15),max:Math.pow(2,15)-1};function Xn(t){for(var e=Zn/t.extent,r=t.loadGeometry(),i=0;i<r.length;i++)for(var n=r[i],o=0;o<n.length;o++){var a=n[o];a.x=Math.round(a.x*e),a.y=Math.round(a.y*e),(a.x<Gn.min||a.x>Gn.max||a.y<Gn.min||a.y>Gn.max)&&w("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return r}function Wn(t,e,r,i,n){t.emplaceBack(2*e+(i+1)/2,2*r+(n+1)/2)}var Hn=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(function(t){return t.id}),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new Ui,this.indexArray=new en,this.segments=new bn,this.programConfigurations=new Nn(xn,t.layers,t.zoom)};function Kn(t,e,r){for(var i=0;i<t.length;i++){var n=t[i];if(no(n,e))return!0;if(eo(e,n,r))return!0}return!1}function Yn(t,e){if(1===t.length&&1===t[0].length)return io(e,t[0][0]);for(var r=0;r<e.length;r++)for(var i=e[r],n=0;n<i.length;n++)if(io(t,i[n]))return!0;for(var o=0;o<t.length;o++){for(var a=t[o],s=0;s<a.length;s++)if(io(e,a[s]))return!0;for(var u=0;u<e.length;u++)if(Qn(a,e[u]))return!0}return!1}function Jn(t,e,r){for(var i=0;i<e.length;i++)for(var n=e[i],o=0;o<t.length;o++){var a=t[o];if(a.length>=3)for(var s=0;s<n.length;s++)if(no(a,n[s]))return!0;if($n(a,n,r))return!0}return!1}function $n(t,e,r){if(t.length>1){if(Qn(t,e))return!0;for(var i=0;i<e.length;i++)if(eo(e[i],t,r))return!0}for(var n=0;n<t.length;n++)if(eo(t[n],e,r))return!0;return!1}function Qn(t,e){if(0===t.length||0===e.length)return!1;for(var r=0;r<t.length-1;r++)for(var i=t[r],n=t[r+1],o=0;o<e.length-1;o++)if(to(i,n,e[o],e[o+1]))return!0;return!1}function to(t,e,r,i){return E(t,r,i)!==E(e,r,i)&&E(t,e,r)!==E(t,e,i)}function eo(t,e,r){var i=r*r;if(1===e.length)return t.distSqr(e[0])<i;for(var n=1;n<e.length;n++)if(ro(t,e[n-1],e[n])<i)return!0;return!1}function ro(t,e,r){var i=e.distSqr(r);if(0===i)return t.distSqr(e);var n=((t.x-e.x)*(r.x-e.x)+(t.y-e.y)*(r.y-e.y))/i;return n<0?t.distSqr(e):n>1?t.distSqr(r):t.distSqr(r.sub(e)._mult(n)._add(e))}function io(t,e){for(var r,i,n,o=!1,a=0;a<t.length;a++)for(var s=0,u=(r=t[a]).length-1;s<r.length;u=s++)i=r[s],n=r[u],i.y>e.y!=n.y>e.y&&e.x<(n.x-i.x)*(e.y-i.y)/(n.y-i.y)+i.x&&(o=!o);return o}function no(t,e){for(var r=!1,i=0,n=t.length-1;i<t.length;n=i++){var o=t[i],a=t[n];o.y>e.y!=a.y>e.y&&e.x<(a.x-o.x)*(e.y-o.y)/(a.y-o.y)+o.x&&(r=!r)}return r}function oo(t,e,r){var i=e.paint.get(t).value;return"constant"===i.kind?i.value:r.programConfigurations.get(e.id).binders[t].maxValue}function ao(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function so(t,e,r,i,o){if(!e[0]&&!e[1])return t;var a=n.convert(e);"viewport"===r&&a._rotate(-i);for(var s=[],u=0;u<t.length;u++){for(var l=t[u],p=[],c=0;c<l.length;c++)p.push(l[c].sub(a._mult(o)));s.push(p)}return s}Hn.prototype.populate=function(t,e){for(var r=0,i=t;r<i.length;r+=1){var n=i[r],o=n.feature,a=n.index,s=n.sourceLayerIndex;if(this.layers[0]._featureFilter(new vi(this.zoom),o)){var u=Xn(o);this.addFeature(o,u,a),e.featureIndex.insert(o,u,a,s,this.index)}}},Hn.prototype.update=function(t,e,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},Hn.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Hn.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Hn.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,xn),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},Hn.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Hn.prototype.addFeature=function(t,e,r){for(var i=0,n=e;i<n.length;i+=1)for(var o=0,a=n[i];o<a.length;o+=1){var s=a[o],u=s.x,l=s.y;if(!(u<0||u>=Zn||l<0||l>=Zn)){var p=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray),c=p.vertexLength;Wn(this.layoutVertexArray,u,l,-1,-1),Wn(this.layoutVertexArray,u,l,1,-1),Wn(this.layoutVertexArray,u,l,1,1),Wn(this.layoutVertexArray,u,l,-1,1),this.indexArray.emplaceBack(c,c+1,c+2),this.indexArray.emplaceBack(c,c+3,c+2),p.vertexLength+=4,p.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,{})},ei("CircleBucket",Hn,{omit:["layers"]});var uo={paint:new Mi({"circle-radius":new Ii(ft.paint_circle["circle-radius"]),"circle-color":new Ii(ft.paint_circle["circle-color"]),"circle-blur":new Ii(ft.paint_circle["circle-blur"]),"circle-opacity":new Ii(ft.paint_circle["circle-opacity"]),"circle-translate":new zi(ft.paint_circle["circle-translate"]),"circle-translate-anchor":new zi(ft.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new zi(ft.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new zi(ft.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new Ii(ft.paint_circle["circle-stroke-width"]),"circle-stroke-color":new Ii(ft.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new Ii(ft.paint_circle["circle-stroke-opacity"])})},lo="undefined"!=typeof Float32Array?Float32Array:Array;function po(){var t=new lo(9);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function co(){var t=new lo(3);return t[0]=0,t[1]=0,t[2]=0,t}function ho(t){var e=t[0],r=t[1],i=t[2];return Math.sqrt(e*e+r*r+i*i)}function fo(t,e,r){var i=new lo(3);return i[0]=t,i[1]=e,i[2]=r,i}Math.PI;var mo,yo=ho,_o=(mo=co(),function(t,e,r,i,n,o){var a,s;for(e||(e=3),r||(r=0),s=i?Math.min(i*e+r,t.length):t.length,a=r;a<s;a+=e)mo[0]=t[a],mo[1]=t[a+1],mo[2]=t[a+2],n(mo,mo,o),t[a]=mo[0],t[a+1]=mo[1],t[a+2]=mo[2];return t});function vo(){var t=new lo(4);return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t}function go(t,e){var r=e[0],i=e[1],n=e[2],o=e[3],a=r*r+i*i+n*n+o*o;return a>0&&(a=1/Math.sqrt(a),t[0]=r*a,t[1]=i*a,t[2]=n*a,t[3]=o*a),t}function xo(t,e,r){var i=e[0],n=e[1],o=e[2],a=e[3];return t[0]=r[0]*i+r[4]*n+r[8]*o+r[12]*a,t[1]=r[1]*i+r[5]*n+r[9]*o+r[13]*a,t[2]=r[2]*i+r[6]*n+r[10]*o+r[14]*a,t[3]=r[3]*i+r[7]*n+r[11]*o+r[15]*a,t}var bo=function(){var t=vo();return function(e,r,i,n,o,a){var s,u;for(r||(r=4),i||(i=0),u=n?Math.min(n*r+i,e.length):e.length,s=i;s<u;s+=r)t[0]=e[s],t[1]=e[s+1],t[2]=e[s+2],t[3]=e[s+3],o(t,t,a),e[s]=t[0],e[s+1]=t[1],e[s+2]=t[2],e[s+3]=t[3];return e}}();function wo(){var t=new lo(4);return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t}co(),fo(1,0,0),fo(0,1,0),wo(),wo(),po(),function(){var t;(t=new lo(2))[0]=0,t[1]=0}();var Eo=function(t){function e(e){t.call(this,e,uo)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createBucket=function(t){return new Hn(t)},e.prototype.queryRadius=function(t){var e=t;return oo("circle-radius",this,e)+oo("circle-stroke-width",this,e)+ao(this.paint.get("circle-translate"))},e.prototype.queryIntersectsFeature=function(t,e,r,i,n,o,a,s){for(var u=so(t,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),o.angle,a),l=this.paint.get("circle-radius").evaluate(e,r)+this.paint.get("circle-stroke-width").evaluate(e,r),p="map"===this.paint.get("circle-pitch-alignment"),c=p?u:function(t,e,r){return u.map(function(t){return t.map(function(t){return So(t,e,r)})})}(0,s,o),h=p?l*a:l,f=0,d=i;f<d.length;f+=1)for(var m=0,y=d[f];m<y.length;m+=1){var _=y[m],v=p?_:So(_,s,o),g=h,x=xo([],[_.x,_.y,0,1],s);if("viewport"===this.paint.get("circle-pitch-scale")&&"map"===this.paint.get("circle-pitch-alignment")?g*=x[3]/o.cameraToCenterDistance:"map"===this.paint.get("circle-pitch-scale")&&"viewport"===this.paint.get("circle-pitch-alignment")&&(g*=o.cameraToCenterDistance/x[3]),Kn(c,v,g))return!0}return!1},e}(Li);function So(t,e,r){var i=xo([],[t.x,t.y,0,1],e);return new n((i[0]/i[3]+1)*r.width*.5,(i[1]/i[3]+1)*r.height*.5)}var To=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Hn);function Ao(t,e,r,i){var n=e.width,o=e.height;if(i){if(i.length!==n*o*r)throw new RangeError("mismatched image size")}else i=new Uint8Array(n*o*r);return t.width=n,t.height=o,t.data=i,t}function zo(t,e,r){var i=e.width,n=e.height;if(i!==t.width||n!==t.height){var o=Ao({},{width:i,height:n},r);Io(t,o,{x:0,y:0},{x:0,y:0},{width:Math.min(t.width,i),height:Math.min(t.height,n)},r),t.width=i,t.height=n,t.data=o.data}}function Io(t,e,r,i,n,o){if(0===n.width||0===n.height)return e;if(n.width>t.width||n.height>t.height||r.x>t.width-n.width||r.y>t.height-n.height)throw new RangeError("out of range source coordinates for image copy");if(n.width>e.width||n.height>e.height||i.x>e.width-n.width||i.y>e.height-n.height)throw new RangeError("out of range destination coordinates for image copy");for(var a=t.data,s=e.data,u=0;u<n.height;u++)for(var l=((r.y+u)*t.width+r.x)*o,p=((i.y+u)*e.width+i.x)*o,c=0;c<n.width*o;c++)s[p+c]=a[l+c];return e}ei("HeatmapBucket",To,{omit:["layers"]});var Co=function(t,e){Ao(this,t,1,e)};Co.prototype.resize=function(t){zo(this,t,1)},Co.prototype.clone=function(){return new Co({width:this.width,height:this.height},new Uint8Array(this.data))},Co.copy=function(t,e,r,i,n){Io(t,e,r,i,n,1)};var ko=function(t,e){Ao(this,t,4,e)};ko.prototype.resize=function(t){zo(this,t,4)},ko.prototype.clone=function(){return new ko({width:this.width,height:this.height},new Uint8Array(this.data))},ko.copy=function(t,e,r,i,n){Io(t,e,r,i,n,4)},ei("AlphaImage",Co),ei("RGBAImage",ko);var Po={paint:new Mi({"heatmap-radius":new Ii(ft.paint_heatmap["heatmap-radius"]),"heatmap-weight":new Ii(ft.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new zi(ft.paint_heatmap["heatmap-intensity"]),"heatmap-color":new Pi(ft.paint_heatmap["heatmap-color"]),"heatmap-opacity":new zi(ft.paint_heatmap["heatmap-opacity"])})};function Mo(t,e){for(var r=new Uint8Array(1024),i={},n=0,o=0;n<256;n++,o+=4){i[e]=n/255;var a=t.evaluate(i);r[o+0]=Math.floor(255*a.r/a.a),r[o+1]=Math.floor(255*a.g/a.a),r[o+2]=Math.floor(255*a.b/a.a),r[o+3]=Math.floor(255*a.a)}return new ko({width:256,height:1},r)}var Lo=function(t){function e(e){t.call(this,e,Po),this._updateColorRamp()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createBucket=function(t){return new To(t)},e.prototype._handleSpecialPaintPropertyUpdate=function(t){"heatmap-color"===t&&this._updateColorRamp()},e.prototype._updateColorRamp=function(){var t=this._transitionablePaint._values["heatmap-color"].value.expression;this.colorRamp=Mo(t,"heatmapDensity"),this.colorRampTexture=null},e.prototype.resize=function(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)},e.prototype.queryRadius=function(){return 0},e.prototype.queryIntersectsFeature=function(){return!1},e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get("heatmap-opacity")&&"none"!==this.visibility},e}(Li),Do={paint:new Mi({"hillshade-illumination-direction":new zi(ft.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-anchor":new zi(ft.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new zi(ft.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new zi(ft.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new zi(ft.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new zi(ft.paint_hillshade["hillshade-accent-color"])})},Bo=function(t){function e(e){t.call(this,e,Do)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get("hillshade-exaggeration")&&"none"!==this.visibility},e}(Li),Ro=Oi([{name:"a_pos",components:2,type:"Int16"}],4),Oo=Ro.members,Fo=(Ro.size,Ro.alignment,Vo),Uo=Vo;function Vo(t,e,r){r=r||2;var i,n,o,a,s,u,l,p=e&&e.length,c=p?e[0]*r:t.length,h=No(t,0,c,r,!0),f=[];if(!h)return f;if(p&&(h=function(t,e,r,i){var n,o,a,s=[];for(n=0,o=e.length;n<o;n++)(a=No(t,e[n]*i,n<o-1?e[n+1]*i:t.length,i,!1))===a.next&&(a.steiner=!0),s.push(Jo(a));for(s.sort(Ho),n=0;n<s.length;n++)Ko(s[n],r),r=jo(r,r.next);return r}(t,e,h,r)),t.length>80*r){i=o=t[0],n=a=t[1];for(var d=r;d<c;d+=r)(s=t[d])<i&&(i=s),(u=t[d+1])<n&&(n=u),s>o&&(o=s),u>a&&(a=u);l=0!==(l=Math.max(o-i,a-n))?1/l:0}return qo(h,f,r,i,n,l),f}function No(t,e,r,i,n){var o,a;if(n===ua(t,e,r,i)>0)for(o=e;o<r;o+=i)a=oa(o,t[o],t[o+1],a);else for(o=r-i;o>=e;o-=i)a=oa(o,t[o],t[o+1],a);return a&&ea(a,a.next)&&(aa(a),a=a.next),a}function jo(t,e){if(!t)return t;e||(e=t);var r,i=t;do{if(r=!1,i.steiner||!ea(i,i.next)&&0!==ta(i.prev,i,i.next))i=i.next;else{if(aa(i),(i=e=i.prev)===i.next)break;r=!0}}while(r||i!==e);return e}function qo(t,e,r,i,n,o,a){if(t){!a&&o&&function(t,e,r,i){var n=t;do{null===n.z&&(n.z=Yo(n.x,n.y,e,r,i)),n.prevZ=n.prev,n.nextZ=n.next,n=n.next}while(n!==t);n.prevZ.nextZ=null,n.prevZ=null,function(t){var e,r,i,n,o,a,s,u,l=1;do{for(r=t,t=null,o=null,a=0;r;){for(a++,i=r,s=0,e=0;e<l&&(s++,i=i.nextZ);e++);for(u=l;s>0||u>0&&i;)0!==s&&(0===u||!i||r.z<=i.z)?(n=r,r=r.nextZ,s--):(n=i,i=i.nextZ,u--),o?o.nextZ=n:t=n,n.prevZ=o,o=n;r=i}o.nextZ=null,l*=2}while(a>1)}(n)}(t,i,n,o);for(var s,u,l=t;t.prev!==t.next;)if(s=t.prev,u=t.next,o?Go(t,i,n,o):Zo(t))e.push(s.i/r),e.push(t.i/r),e.push(u.i/r),aa(t),t=u.next,l=u.next;else if((t=u)===l){a?1===a?qo(t=Xo(t,e,r),e,r,i,n,o,2):2===a&&Wo(t,e,r,i,n,o):qo(jo(t),e,r,i,n,o,1);break}}}function Zo(t){var e=t.prev,r=t,i=t.next;if(ta(e,r,i)>=0)return!1;for(var n=t.next.next;n!==t.prev;){if($o(e.x,e.y,r.x,r.y,i.x,i.y,n.x,n.y)&&ta(n.prev,n,n.next)>=0)return!1;n=n.next}return!0}function Go(t,e,r,i){var n=t.prev,o=t,a=t.next;if(ta(n,o,a)>=0)return!1;for(var s=n.x<o.x?n.x<a.x?n.x:a.x:o.x<a.x?o.x:a.x,u=n.y<o.y?n.y<a.y?n.y:a.y:o.y<a.y?o.y:a.y,l=n.x>o.x?n.x>a.x?n.x:a.x:o.x>a.x?o.x:a.x,p=n.y>o.y?n.y>a.y?n.y:a.y:o.y>a.y?o.y:a.y,c=Yo(s,u,e,r,i),h=Yo(l,p,e,r,i),f=t.prevZ,d=t.nextZ;f&&f.z>=c&&d&&d.z<=h;){if(f!==t.prev&&f!==t.next&&$o(n.x,n.y,o.x,o.y,a.x,a.y,f.x,f.y)&&ta(f.prev,f,f.next)>=0)return!1;if(f=f.prevZ,d!==t.prev&&d!==t.next&&$o(n.x,n.y,o.x,o.y,a.x,a.y,d.x,d.y)&&ta(d.prev,d,d.next)>=0)return!1;d=d.nextZ}for(;f&&f.z>=c;){if(f!==t.prev&&f!==t.next&&$o(n.x,n.y,o.x,o.y,a.x,a.y,f.x,f.y)&&ta(f.prev,f,f.next)>=0)return!1;f=f.prevZ}for(;d&&d.z<=h;){if(d!==t.prev&&d!==t.next&&$o(n.x,n.y,o.x,o.y,a.x,a.y,d.x,d.y)&&ta(d.prev,d,d.next)>=0)return!1;d=d.nextZ}return!0}function Xo(t,e,r){var i=t;do{var n=i.prev,o=i.next.next;!ea(n,o)&&ra(n,i,i.next,o)&&ia(n,o)&&ia(o,n)&&(e.push(n.i/r),e.push(i.i/r),e.push(o.i/r),aa(i),aa(i.next),i=t=o),i=i.next}while(i!==t);return i}function Wo(t,e,r,i,n,o){var a=t;do{for(var s=a.next.next;s!==a.prev;){if(a.i!==s.i&&Qo(a,s)){var u=na(a,s);return a=jo(a,a.next),u=jo(u,u.next),qo(a,e,r,i,n,o),void qo(u,e,r,i,n,o)}s=s.next}a=a.next}while(a!==t)}function Ho(t,e){return t.x-e.x}function Ko(t,e){if(e=function(t,e){var r,i=e,n=t.x,o=t.y,a=-1/0;do{if(o<=i.y&&o>=i.next.y&&i.next.y!==i.y){var s=i.x+(o-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(s<=n&&s>a){if(a=s,s===n){if(o===i.y)return i;if(o===i.next.y)return i.next}r=i.x<i.next.x?i:i.next}}i=i.next}while(i!==e);if(!r)return null;if(n===a)return r.prev;var u,l=r,p=r.x,c=r.y,h=1/0;for(i=r.next;i!==l;)n>=i.x&&i.x>=p&&n!==i.x&&$o(o<c?n:a,o,p,c,o<c?a:n,o,i.x,i.y)&&((u=Math.abs(o-i.y)/(n-i.x))<h||u===h&&i.x>r.x)&&ia(i,t)&&(r=i,h=u),i=i.next;return r}(t,e)){var r=na(e,t);jo(r,r.next)}}function Yo(t,e,r,i,n){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*n)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-i)*n)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function Jo(t){var e=t,r=t;do{e.x<r.x&&(r=e),e=e.next}while(e!==t);return r}function $o(t,e,r,i,n,o,a,s){return(n-a)*(e-s)-(t-a)*(o-s)>=0&&(t-a)*(i-s)-(r-a)*(e-s)>=0&&(r-a)*(o-s)-(n-a)*(i-s)>=0}function Qo(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var r=t;do{if(r.i!==t.i&&r.next.i!==t.i&&r.i!==e.i&&r.next.i!==e.i&&ra(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}(t,e)&&ia(t,e)&&ia(e,t)&&function(t,e){var r=t,i=!1,n=(t.x+e.x)/2,o=(t.y+e.y)/2;do{r.y>o!=r.next.y>o&&r.next.y!==r.y&&n<(r.next.x-r.x)*(o-r.y)/(r.next.y-r.y)+r.x&&(i=!i),r=r.next}while(r!==t);return i}(t,e)}function ta(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function ea(t,e){return t.x===e.x&&t.y===e.y}function ra(t,e,r,i){return!!(ea(t,e)&&ea(r,i)||ea(t,i)&&ea(r,e))||ta(t,e,r)>0!=ta(t,e,i)>0&&ta(r,i,t)>0!=ta(r,i,e)>0}function ia(t,e){return ta(t.prev,t,t.next)<0?ta(t,e,t.next)>=0&&ta(t,t.prev,e)>=0:ta(t,e,t.prev)<0||ta(t,t.next,e)<0}function na(t,e){var r=new sa(t.i,t.x,t.y),i=new sa(e.i,e.x,e.y),n=t.next,o=e.prev;return t.next=e,e.prev=t,r.next=n,n.prev=r,i.next=r,r.prev=i,o.next=i,i.prev=o,i}function oa(t,e,r,i){var n=new sa(t,e,r);return i?(n.next=i.next,n.prev=i,i.next.prev=n,i.next=n):(n.prev=n,n.next=n),n}function aa(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function sa(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function ua(t,e,r,i){for(var n=0,o=e,a=r-i;o<r;o+=i)n+=(t[a]-t[o])*(t[o+1]+t[a+1]),a=o;return n}Vo.deviation=function(t,e,r,i){var n=e&&e.length,o=n?e[0]*r:t.length,a=Math.abs(ua(t,0,o,r));if(n)for(var s=0,u=e.length;s<u;s++){var l=e[s]*r,p=s<u-1?e[s+1]*r:t.length;a-=Math.abs(ua(t,l,p,r))}var c=0;for(s=0;s<i.length;s+=3){var h=i[s]*r,f=i[s+1]*r,d=i[s+2]*r;c+=Math.abs((t[h]-t[d])*(t[f+1]-t[h+1])-(t[h]-t[f])*(t[d+1]-t[h+1]))}return 0===a&&0===c?0:Math.abs((c-a)/a)},Vo.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},i=0,n=0;n<t.length;n++){for(var o=0;o<t[n].length;o++)for(var a=0;a<e;a++)r.vertices.push(t[n][o][a]);n>0&&(i+=t[n-1].length,r.holes.push(i))}return r},Fo.default=Uo;var la=ca,pa=ca;function ca(t,e,r,i,n){!function t(e,r,i,n,o){for(;n>i;){if(n-i>600){var a=n-i+1,s=r-i+1,u=Math.log(a),l=.5*Math.exp(2*u/3),p=.5*Math.sqrt(u*l*(a-l)/a)*(s-a/2<0?-1:1);t(e,r,Math.max(i,Math.floor(r-s*l/a+p)),Math.min(n,Math.floor(r+(a-s)*l/a+p)),o)}var c=e[r],h=i,f=n;for(ha(e,i,r),o(e[n],c)>0&&ha(e,i,n);h<f;){for(ha(e,h,f),h++,f--;o(e[h],c)<0;)h++;for(;o(e[f],c)>0;)f--}0===o(e[i],c)?ha(e,i,f):ha(e,++f,n),f<=r&&(i=f+1),r<=f&&(n=f-1)}}(t,e,r||0,i||t.length-1,n||fa)}function ha(t,e,r){var i=t[e];t[e]=t[r],t[r]=i}function fa(t,e){return t<e?-1:t>e?1:0}function da(t,e){var r=t.length;if(r<=1)return[t];for(var i,n,o=[],a=0;a<r;a++){var s=S(t[a]);0!==s&&(t[a].area=Math.abs(s),void 0===n&&(n=s<0),n===s<0?(i&&o.push(i),i=[t[a]]):i.push(t[a]))}if(i&&o.push(i),e>1)for(var u=0;u<o.length;u++)o[u].length<=e||(la(o[u],e,1,o[u].length-1,ma),o[u]=o[u].slice(0,e));return o}function ma(t,e){return e.area-t.area}function ya(t,e,r){for(var i=r.patternDependencies,n=!1,o=0,a=e;o<a.length;o+=1){var s=a[o].paint.get(t+"-pattern");s.isConstant()||(n=!0);var u=s.constantOr(null);u&&(n=!0,i[u.to]=!0,i[u.from]=!0)}return n}function _a(t,e,r,i,n){for(var o=n.patternDependencies,a=0,s=e;a<s.length;a+=1){var u=s[a],l=u.paint.get(t+"-pattern").value;if("constant"!==l.kind){var p=l.evaluate({zoom:i-1},r,{}),c=l.evaluate({zoom:i},r,{}),h=l.evaluate({zoom:i+1},r,{});o[p]=!0,o[c]=!0,o[h]=!0,r.patterns[u.id]={min:p,mid:c,max:h}}}return r}la.default=pa;var va=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(function(t){return t.id}),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new Ui,this.indexArray=new en,this.indexArray2=new rn,this.programConfigurations=new Nn(Oo,t.layers,t.zoom),this.segments=new bn,this.segments2=new bn};va.prototype.populate=function(t,e){this.features=[],this.hasPattern=ya("fill",this.layers,e);for(var r=0,i=t;r<i.length;r+=1){var n=i[r],o=n.feature,a=n.index,s=n.sourceLayerIndex;if(this.layers[0]._featureFilter(new vi(this.zoom),o)){var u=Xn(o),l={sourceLayerIndex:s,index:a,geometry:u,properties:o.properties,type:o.type,patterns:{}};void 0!==o.id&&(l.id=o.id),this.hasPattern?this.features.push(_a("fill",this.layers,l,this.zoom,e)):this.addFeature(l,u,a,{}),e.featureIndex.insert(o,u,a,s,this.index)}}},va.prototype.update=function(t,e,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},va.prototype.addFeatures=function(t,e){for(var r=0,i=this.features;r<i.length;r+=1){var n=i[r],o=n.geometry;this.addFeature(n,o,n.index,e)}},va.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},va.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},va.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Oo),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.indexBuffer2=t.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(t),this.uploaded=!0},va.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())},va.prototype.addFeature=function(t,e,r,i){for(var n=0,o=da(e,500);n<o.length;n+=1){for(var a=o[n],s=0,u=0,l=a;u<l.length;u+=1)s+=l[u].length;for(var p=this.segments.prepareSegment(s,this.layoutVertexArray,this.indexArray),c=p.vertexLength,h=[],f=[],d=0,m=a;d<m.length;d+=1){var y=m[d];if(0!==y.length){y!==a[0]&&f.push(h.length/2);var _=this.segments2.prepareSegment(y.length,this.layoutVertexArray,this.indexArray2),v=_.vertexLength;this.layoutVertexArray.emplaceBack(y[0].x,y[0].y),this.indexArray2.emplaceBack(v+y.length-1,v),h.push(y[0].x),h.push(y[0].y);for(var g=1;g<y.length;g++)this.layoutVertexArray.emplaceBack(y[g].x,y[g].y),this.indexArray2.emplaceBack(v+g-1,v+g),h.push(y[g].x),h.push(y[g].y);_.vertexLength+=y.length,_.primitiveLength+=y.length}}for(var x=Fo(h,f),b=0;b<x.length;b+=3)this.indexArray.emplaceBack(c+x[b],c+x[b+1],c+x[b+2]);p.vertexLength+=s,p.primitiveLength+=x.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,i)},ei("FillBucket",va,{omit:["layers","features"]});var ga={paint:new Mi({"fill-antialias":new zi(ft.paint_fill["fill-antialias"]),"fill-opacity":new Ii(ft.paint_fill["fill-opacity"]),"fill-color":new Ii(ft.paint_fill["fill-color"]),"fill-outline-color":new Ii(ft.paint_fill["fill-outline-color"]),"fill-translate":new zi(ft.paint_fill["fill-translate"]),"fill-translate-anchor":new zi(ft.paint_fill["fill-translate-anchor"]),"fill-pattern":new Ci(ft.paint_fill["fill-pattern"])})},xa=function(t){function e(e){t.call(this,e,ga)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.recalculate=function(e){t.prototype.recalculate.call(this,e);var r=this.paint._values["fill-outline-color"];"constant"===r.value.kind&&void 0===r.value.value&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])},e.prototype.createBucket=function(t){return new va(t)},e.prototype.queryRadius=function(){return ao(this.paint.get("fill-translate"))},e.prototype.queryIntersectsFeature=function(t,e,r,i,n,o,a){return Yn(so(t,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),o.angle,a),i)},e}(Li),ba=Oi([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4),wa=ba.members,Ea=(ba.size,ba.alignment,Math.pow(2,13));function Sa(t,e,r,i,n,o,a,s){t.emplaceBack(e,r,2*Math.floor(i*Ea)+a,n*Ea*2,o*Ea*2,Math.round(s))}var Ta=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(function(t){return t.id}),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new Ni,this.indexArray=new en,this.programConfigurations=new Nn(wa,t.layers,t.zoom),this.segments=new bn};function Aa(t,e){return t.x===e.x&&(t.x<0||t.x>Zn)||t.y===e.y&&(t.y<0||t.y>Zn)}function za(t){return t.every(function(t){return t.x<0})||t.every(function(t){return t.x>Zn})||t.every(function(t){return t.y<0})||t.every(function(t){return t.y>Zn})}Ta.prototype.populate=function(t,e){this.features=[],this.hasPattern=ya("fill-extrusion",this.layers,e);for(var r=0,i=t;r<i.length;r+=1){var n=i[r],o=n.feature,a=n.index,s=n.sourceLayerIndex;if(this.layers[0]._featureFilter(new vi(this.zoom),o)){var u=Xn(o),l={sourceLayerIndex:s,index:a,geometry:u,properties:o.properties,type:o.type,patterns:{}};void 0!==o.id&&(l.id=o.id),this.hasPattern?this.features.push(_a("fill-extrusion",this.layers,l,this.zoom,e)):this.addFeature(l,u,a,{}),e.featureIndex.insert(o,u,a,s,this.index)}}},Ta.prototype.addFeatures=function(t,e){for(var r=0,i=this.features;r<i.length;r+=1){var n=i[r],o=n.geometry;this.addFeature(n,o,n.index,e)}},Ta.prototype.update=function(t,e,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},Ta.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Ta.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Ta.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,wa),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},Ta.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Ta.prototype.addFeature=function(t,e,r,i){for(var n=0,o=da(e,500);n<o.length;n+=1){for(var a=o[n],s=0,u=0,l=a;u<l.length;u+=1)s+=l[u].length;for(var p=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray),c=0,h=a;c<h.length;c+=1){var f=h[c];if(0!==f.length&&!za(f))for(var d=0,m=0;m<f.length;m++){var y=f[m];if(m>=1){var _=f[m-1];if(!Aa(y,_)){p.vertexLength+4>bn.MAX_VERTEX_ARRAY_LENGTH&&(p=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var v=y.sub(_)._perp()._unit(),g=_.dist(y);d+g>32768&&(d=0),Sa(this.layoutVertexArray,y.x,y.y,v.x,v.y,0,0,d),Sa(this.layoutVertexArray,y.x,y.y,v.x,v.y,0,1,d),d+=g,Sa(this.layoutVertexArray,_.x,_.y,v.x,v.y,0,0,d),Sa(this.layoutVertexArray,_.x,_.y,v.x,v.y,0,1,d);var x=p.vertexLength;this.indexArray.emplaceBack(x,x+2,x+1),this.indexArray.emplaceBack(x+1,x+2,x+3),p.vertexLength+=4,p.primitiveLength+=2}}}}p.vertexLength+s>bn.MAX_VERTEX_ARRAY_LENGTH&&(p=this.segments.prepareSegment(s,this.layoutVertexArray,this.indexArray));for(var b=[],w=[],E=p.vertexLength,S=0,T=a;S<T.length;S+=1){var A=T[S];if(0!==A.length){A!==a[0]&&w.push(b.length/2);for(var z=0;z<A.length;z++){var I=A[z];Sa(this.layoutVertexArray,I.x,I.y,0,0,1,1,0),b.push(I.x),b.push(I.y)}}}for(var C=Fo(b,w),k=0;k<C.length;k+=3)this.indexArray.emplaceBack(E+C[k],E+C[k+2],E+C[k+1]);p.primitiveLength+=C.length/3,p.vertexLength+=s}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,i)},ei("FillExtrusionBucket",Ta,{omit:["layers","features"]});var Ia={paint:new Mi({"fill-extrusion-opacity":new zi(ft["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Ii(ft["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new zi(ft["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new zi(ft["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Ci(ft["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Ii(ft["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Ii(ft["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new zi(ft["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})},Ca=function(t){function e(e){t.call(this,e,Ia)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createBucket=function(t){return new Ta(t)},e.prototype.queryRadius=function(){return ao(this.paint.get("fill-extrusion-translate"))},e.prototype.queryIntersectsFeature=function(t,e,r,i,n,o,a){return Yn(so(t,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),o.angle,a),i)},e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get("fill-extrusion-opacity")&&"none"!==this.visibility},e.prototype.resize=function(){this.viewportFrame&&(this.viewportFrame.destroy(),this.viewportFrame=null)},e}(Li),ka=Oi([{name:"a_pos_normal",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4),Pa=ka.members,Ma=(ka.size,ka.alignment,La);function La(t,e,r,i,n){this.properties={},this.extent=r,this.type=0,this._pbf=t,this._geometry=-1,this._keys=i,this._values=n,t.readFields(Da,this,e)}function Da(t,e,r){1==t?e.id=r.readVarint():2==t?function(t,e){for(var r=t.readVarint()+t.pos;t.pos<r;){var i=e._keys[t.readVarint()],n=e._values[t.readVarint()];e.properties[i]=n}}(r,e):3==t?e.type=r.readVarint():4==t&&(e._geometry=r.pos)}function Ba(t){for(var e,r,i=0,n=0,o=t.length,a=o-1;n<o;a=n++)e=t[n],i+=((r=t[a]).x-e.x)*(e.y+r.y);return i}La.types=["Unknown","Point","LineString","Polygon"],La.prototype.loadGeometry=function(){var t=this._pbf;t.pos=this._geometry;for(var e,r=t.readVarint()+t.pos,i=1,o=0,a=0,s=0,u=[];t.pos<r;){if(o<=0){var l=t.readVarint();i=7&l,o=l>>3}if(o--,1===i||2===i)a+=t.readSVarint(),s+=t.readSVarint(),1===i&&(e&&u.push(e),e=[]),e.push(new n(a,s));else{if(7!==i)throw new Error("unknown command "+i);e&&e.push(e[0].clone())}}return e&&u.push(e),u},La.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,r=1,i=0,n=0,o=0,a=1/0,s=-1/0,u=1/0,l=-1/0;t.pos<e;){if(i<=0){var p=t.readVarint();r=7&p,i=p>>3}if(i--,1===r||2===r)(n+=t.readSVarint())<a&&(a=n),n>s&&(s=n),(o+=t.readSVarint())<u&&(u=o),o>l&&(l=o);else if(7!==r)throw new Error("unknown command "+r)}return[a,u,s,l]},La.prototype.toGeoJSON=function(t,e,r){var i,n,o=this.extent*Math.pow(2,r),a=this.extent*t,s=this.extent*e,u=this.loadGeometry(),l=La.types[this.type];function p(t){for(var e=0;e<t.length;e++){var r=t[e],i=180-360*(r.y+s)/o;t[e]=[360*(r.x+a)/o-180,360/Math.PI*Math.atan(Math.exp(i*Math.PI/180))-90]}}switch(this.type){case 1:var c=[];for(i=0;i<u.length;i++)c[i]=u[i][0];p(u=c);break;case 2:for(i=0;i<u.length;i++)p(u[i]);break;case 3:for(u=function(t){var e=t.length;if(e<=1)return[t];for(var r,i,n=[],o=0;o<e;o++){var a=Ba(t[o]);0!==a&&(void 0===i&&(i=a<0),i===a<0?(r&&n.push(r),r=[t[o]]):r.push(t[o]))}return r&&n.push(r),n}(u),i=0;i<u.length;i++)for(n=0;n<u[i].length;n++)p(u[i][n])}1===u.length?u=u[0]:l="Multi"+l;var h={type:"Feature",geometry:{type:l,coordinates:u},properties:this.properties};return"id"in this&&(h.id=this.id),h};var Ra=Oa;function Oa(t,e){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=t,this._keys=[],this._values=[],this._features=[],t.readFields(Fa,this,e),this.length=this._features.length}function Fa(t,e,r){15===t?e.version=r.readVarint():1===t?e.name=r.readString():5===t?e.extent=r.readVarint():2===t?e._features.push(r.pos):3===t?e._keys.push(r.readString()):4===t&&e._values.push(function(t){for(var e=null,r=t.readVarint()+t.pos;t.pos<r;){var i=t.readVarint()>>3;e=1===i?t.readString():2===i?t.readFloat():3===i?t.readDouble():4===i?t.readVarint64():5===i?t.readVarint():6===i?t.readSVarint():7===i?t.readBoolean():null}return e}(r))}function Ua(t,e,r){if(3===t){var i=new Ra(r,r.readVarint()+r.pos);i.length&&(e[i.name]=i)}}Oa.prototype.feature=function(t){if(t<0||t>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[t];var e=this._pbf.readVarint()+this._pbf.pos;return new Ma(this._pbf,e,this.extent,this._keys,this._values)};var Va={VectorTile:function(t,e){this.layers=t.readFields(Ua,{},e)},VectorTileFeature:Ma,VectorTileLayer:Ra},Na=Va.VectorTileFeature.types,ja=63,qa=Math.cos(Math.PI/180*37.5),Za=.5,Ga=Math.pow(2,14)/Za;function Xa(t,e,r,i,n,o,a){t.emplaceBack(e.x,e.y,i?1:0,n?1:-1,Math.round(ja*r.x)+128,Math.round(ja*r.y)+128,1+(0===o?0:o<0?-1:1)|(a*Za&63)<<2,a*Za>>6)}var Wa=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(function(t){return t.id}),this.index=t.index,this.features=[],this.hasPattern=!1,this.layoutVertexArray=new ji,this.indexArray=new en,this.programConfigurations=new Nn(Pa,t.layers,t.zoom),this.segments=new bn};function Ha(t,e){return(t/e.tileTotal*(e.end-e.start)+e.start)*(Ga-1)}Wa.prototype.populate=function(t,e){this.features=[],this.hasPattern=ya("line",this.layers,e);for(var r=0,i=t;r<i.length;r+=1){var n=i[r],o=n.feature,a=n.index,s=n.sourceLayerIndex;if(this.layers[0]._featureFilter(new vi(this.zoom),o)){var u=Xn(o),l={sourceLayerIndex:s,index:a,geometry:u,properties:o.properties,type:o.type,patterns:{}};void 0!==o.id&&(l.id=o.id),this.hasPattern?this.features.push(_a("line",this.layers,l,this.zoom,e)):this.addFeature(l,u,a,{}),e.featureIndex.insert(o,u,a,s,this.index)}}},Wa.prototype.update=function(t,e,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},Wa.prototype.addFeatures=function(t,e){for(var r=0,i=this.features;r<i.length;r+=1){var n=i[r],o=n.geometry;this.addFeature(n,o,n.index,e)}},Wa.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Wa.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Wa.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Pa),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},Wa.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Wa.prototype.addFeature=function(t,e,r,i){for(var n=this.layers[0].layout,o=n.get("line-join").evaluate(t,{}),a=n.get("line-cap"),s=n.get("line-miter-limit"),u=n.get("line-round-limit"),l=0,p=e;l<p.length;l+=1){var c=p[l];this.addLine(c,t,o,a,s,u,r,i)}},Wa.prototype.addLine=function(t,e,r,i,n,o,a,s){var u=null;e.properties&&e.properties.hasOwnProperty("mapbox_clip_start")&&e.properties.hasOwnProperty("mapbox_clip_end")&&(u={start:e.properties.mapbox_clip_start,end:e.properties.mapbox_clip_end,tileTotal:void 0});for(var l="Polygon"===Na[e.type],p=t.length;p>=2&&t[p-1].equals(t[p-2]);)p--;for(var c=0;c<p-1&&t[c].equals(t[c+1]);)c++;if(!(p<(l?3:2))){u&&(u.tileTotal=function(t,e,r){for(var i,n,o=0,a=c;a<r-1;a++)i=t[a],n=t[a+1],o+=i.dist(n);return o}(t,0,p)),"bevel"===r&&(n=1.05);var h=Zn/(512*this.overscaling)*15,f=t[c],d=this.segments.prepareSegment(10*p,this.layoutVertexArray,this.indexArray);this.distance=0;var m,y,_,v=i,g=l?"butt":i,x=!0,b=void 0,w=void 0,E=void 0,S=void 0;this.e1=this.e2=this.e3=-1,l&&(m=t[p-2],S=f.sub(m)._unit()._perp());for(var T=c;T<p;T++)if(!(w=l&&T===p-1?t[c+1]:t[T+1])||!t[T].equals(w)){S&&(E=S),m&&(b=m),m=t[T],S=w?w.sub(m)._unit()._perp():E;var A=(E=E||S).add(S);0===A.x&&0===A.y||A._unit();var z=A.x*S.x+A.y*S.y,I=0!==z?1/z:1/0,C=z<qa&&b&&w;if(C&&T>c){var k=m.dist(b);if(k>2*h){var P=m.sub(m.sub(b)._mult(h/k)._round());this.distance+=P.dist(b),this.addCurrentVertex(P,this.distance,E.mult(1),0,0,!1,d,u),b=P}}var M=b&&w,L=M?r:w?v:g;if(M&&"round"===L&&(I<o?L="miter":I<=2&&(L="fakeround")),"miter"===L&&I>n&&(L="bevel"),"bevel"===L&&(I>2&&(L="flipbevel"),I<n&&(L="miter")),b&&(this.distance+=m.dist(b)),"miter"===L)A._mult(I),this.addCurrentVertex(m,this.distance,A,0,0,!1,d,u);else if("flipbevel"===L){if(I>100)A=S.clone().mult(-1);else{var D=E.x*S.y-E.y*S.x>0?-1:1,B=I*E.add(S).mag()/E.sub(S).mag();A._perp()._mult(B*D)}this.addCurrentVertex(m,this.distance,A,0,0,!1,d,u),this.addCurrentVertex(m,this.distance,A.mult(-1),0,0,!1,d,u)}else if("bevel"===L||"fakeround"===L){var R=E.x*S.y-E.y*S.x>0,O=-Math.sqrt(I*I-1);if(R?(_=0,y=O):(y=0,_=O),x||this.addCurrentVertex(m,this.distance,E,y,_,!1,d,u),"fakeround"===L){for(var F=Math.floor(8*(.5-(z-.5))),U=void 0,V=0;V<F;V++)U=S.mult((V+1)/(F+1))._add(E)._unit(),this.addPieSliceVertex(m,this.distance,U,R,d,u);this.addPieSliceVertex(m,this.distance,A,R,d,u);for(var N=F-1;N>=0;N--)U=E.mult((N+1)/(F+1))._add(S)._unit(),this.addPieSliceVertex(m,this.distance,U,R,d,u)}w&&this.addCurrentVertex(m,this.distance,S,-y,-_,!1,d,u)}else"butt"===L?(x||this.addCurrentVertex(m,this.distance,E,0,0,!1,d,u),w&&this.addCurrentVertex(m,this.distance,S,0,0,!1,d,u)):"square"===L?(x||(this.addCurrentVertex(m,this.distance,E,1,1,!1,d,u),this.e1=this.e2=-1),w&&this.addCurrentVertex(m,this.distance,S,-1,-1,!1,d,u)):"round"===L&&(x||(this.addCurrentVertex(m,this.distance,E,0,0,!1,d,u),this.addCurrentVertex(m,this.distance,E,1,1,!0,d,u),this.e1=this.e2=-1),w&&(this.addCurrentVertex(m,this.distance,S,-1,-1,!0,d,u),this.addCurrentVertex(m,this.distance,S,0,0,!1,d,u)));if(C&&T<p-1){var j=m.dist(w);if(j>2*h){var q=m.add(w.sub(m)._mult(h/j)._round());this.distance+=q.dist(m),this.addCurrentVertex(q,this.distance,S.mult(1),0,0,!1,d,u),m=q}}x=!1}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,a,s)}},Wa.prototype.addCurrentVertex=function(t,e,r,i,n,o,a,s){var u,l=this.layoutVertexArray,p=this.indexArray;s&&(e=Ha(e,s)),u=r.clone(),i&&u._sub(r.perp()._mult(i)),Xa(l,t,u,o,!1,i,e),this.e3=a.vertexLength++,this.e1>=0&&this.e2>=0&&(p.emplaceBack(this.e1,this.e2,this.e3),a.primitiveLength++),this.e1=this.e2,this.e2=this.e3,u=r.mult(-1),n&&u._sub(r.perp()._mult(n)),Xa(l,t,u,o,!0,-n,e),this.e3=a.vertexLength++,this.e1>=0&&this.e2>=0&&(p.emplaceBack(this.e1,this.e2,this.e3),a.primitiveLength++),this.e1=this.e2,this.e2=this.e3,e>Ga/2&&!s&&(this.distance=0,this.addCurrentVertex(t,this.distance,r,i,n,o,a))},Wa.prototype.addPieSliceVertex=function(t,e,r,i,n,o){r=r.mult(i?-1:1);var a=this.layoutVertexArray,s=this.indexArray;o&&(e=Ha(e,o)),Xa(a,t,r,!1,i,0,e),this.e3=n.vertexLength++,this.e1>=0&&this.e2>=0&&(s.emplaceBack(this.e1,this.e2,this.e3),n.primitiveLength++),i?this.e2=this.e3:this.e1=this.e3},ei("LineBucket",Wa,{omit:["layers","features"]});var Ka=new Mi({"line-cap":new zi(ft.layout_line["line-cap"]),"line-join":new Ii(ft.layout_line["line-join"]),"line-miter-limit":new zi(ft.layout_line["line-miter-limit"]),"line-round-limit":new zi(ft.layout_line["line-round-limit"])}),Ya={paint:new Mi({"line-opacity":new Ii(ft.paint_line["line-opacity"]),"line-color":new Ii(ft.paint_line["line-color"]),"line-translate":new zi(ft.paint_line["line-translate"]),"line-translate-anchor":new zi(ft.paint_line["line-translate-anchor"]),"line-width":new Ii(ft.paint_line["line-width"]),"line-gap-width":new Ii(ft.paint_line["line-gap-width"]),"line-offset":new Ii(ft.paint_line["line-offset"]),"line-blur":new Ii(ft.paint_line["line-blur"]),"line-dasharray":new ki(ft.paint_line["line-dasharray"]),"line-pattern":new Ci(ft.paint_line["line-pattern"]),"line-gradient":new Pi(ft.paint_line["line-gradient"])}),layout:Ka},Ja=new(function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.possiblyEvaluate=function(e,r){return r=new vi(Math.floor(r.zoom),{now:r.now,fadeDuration:r.fadeDuration,zoomHistory:r.zoomHistory,transition:r.transition}),t.prototype.possiblyEvaluate.call(this,e,r)},e.prototype.evaluate=function(e,r,i,n){return r=c({},r,{zoom:Math.floor(r.zoom)}),t.prototype.evaluate.call(this,e,r,i,n)},e}(Ii))(Ya.paint.properties["line-width"].specification);Ja.useIntegerZoom=!0;var $a=function(t){function e(e){t.call(this,e,Ya)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._handleSpecialPaintPropertyUpdate=function(t){"line-gradient"===t&&this._updateGradient()},e.prototype._updateGradient=function(){var t=this._transitionablePaint._values["line-gradient"].value.expression;this.gradient=Mo(t,"lineProgress"),this.gradientTexture=null},e.prototype.recalculate=function(e){t.prototype.recalculate.call(this,e),this.paint._values["line-floorwidth"]=Ja.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,e)},e.prototype.createBucket=function(t){return new Wa(t)},e.prototype.queryRadius=function(t){var e=t,r=Qa(oo("line-width",this,e),oo("line-gap-width",this,e)),i=oo("line-offset",this,e);return r/2+Math.abs(i)+ao(this.paint.get("line-translate"))},e.prototype.queryIntersectsFeature=function(t,e,r,i,o,a,s){var u=so(t,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),a.angle,s),l=s/2*Qa(this.paint.get("line-width").evaluate(e,r),this.paint.get("line-gap-width").evaluate(e,r)),p=this.paint.get("line-offset").evaluate(e,r);return p&&(i=function(t,e){for(var r=[],i=new n(0,0),o=0;o<t.length;o++){for(var a=t[o],s=[],u=0;u<a.length;u++){var l=a[u-1],p=a[u],c=a[u+1],h=0===u?i:p.sub(l)._unit()._perp(),f=u===a.length-1?i:c.sub(p)._unit()._perp(),d=h._add(f)._unit(),m=d.x*f.x+d.y*f.y;d._mult(1/m),s.push(d._mult(e)._add(p))}r.push(s)}return r}(i,p*s)),Jn(u,i,l)},e}(Li);function Qa(t,e){return e>0?e+2*t:t}var ts=Oi([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"}]),es=Oi([{name:"a_projected_pos",components:3,type:"Float32"}],4),rs=(Oi([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),Oi([{name:"a_placed",components:2,type:"Uint8"}],4)),is=(Oi([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"},{type:"Int16",name:"radius"},{type:"Int16",name:"signedDistanceFromAnchor"}]),Oi([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),ns=Oi([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4);function os(t,e,r){return t.sections.forEach(function(t){t.text=function(t,e,r){var i=e.layout.get("text-transform").evaluate(r,{});return"uppercase"===i?t=t.toLocaleUpperCase():"lowercase"===i&&(t=t.toLocaleLowerCase()),_i.applyArabicShaping&&(t=_i.applyArabicShaping(t)),t}(t.text,e,r)}),t}Oi([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"hidden"}]),Oi([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"horizontalPlacedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint32",name:"crossTileID"}]),Oi([{type:"Float32",name:"offsetX"}]),Oi([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var as={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"},ss=function(t){function e(e,r,i,n){t.call(this,e,r),this.angle=i,void 0!==n&&(this.segment=n)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.x,this.y,this.angle,this.segment)},e}(n);function us(t,e){var r=e.expression;if("constant"===r.kind)return{functionType:"constant",layoutSize:r.evaluate(new vi(t+1))};if("source"===r.kind)return{functionType:"source"};for(var i=r.zoomStops,n=0;n<i.length&&i[n]<=t;)n++;for(var o=n=Math.max(0,n-1);o<i.length&&i[o]<t+1;)o++;o=Math.min(i.length-1,o);var a={min:i[n],max:i[o]};return"composite"===r.kind?{functionType:"composite",zoomRange:a,propertyValue:e.value}:{functionType:"camera",layoutSize:r.evaluate(new vi(t+1)),zoomRange:a,sizeRange:{min:r.evaluate(new vi(a.min)),max:r.evaluate(new vi(a.max))},propertyValue:e.value}}ei("Anchor",ss);var ls=Va.VectorTileFeature.types,ps=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function cs(t,e,r,i,n,o,a,s){t.emplaceBack(e,r,Math.round(32*i),Math.round(32*n),o,a,s?s[0]:0,s?s[1]:0)}function hs(t,e,r){t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r)}var fs=function(t){this.layoutVertexArray=new Zi,this.indexArray=new en,this.programConfigurations=t,this.segments=new bn,this.dynamicLayoutVertexArray=new Gi,this.opacityVertexArray=new Xi,this.placedSymbolArray=new pn};fs.prototype.upload=function(t,e,r,i){r&&(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,ts.members),this.indexBuffer=t.createIndexBuffer(this.indexArray,e),this.dynamicLayoutVertexBuffer=t.createVertexBuffer(this.dynamicLayoutVertexArray,es.members,!0),this.opacityVertexBuffer=t.createVertexBuffer(this.opacityVertexArray,ps,!0),this.opacityVertexBuffer.itemSize=1),(r||i)&&this.programConfigurations.upload(t)},fs.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())},ei("SymbolBuffers",fs);var ds=function(t,e,r){this.layoutVertexArray=new t,this.layoutAttributes=e,this.indexArray=new r,this.segments=new bn,this.collisionVertexArray=new Ki};ds.prototype.upload=function(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=t.createVertexBuffer(this.collisionVertexArray,rs.members,!0)},ds.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())},ei("CollisionBuffers",ds);var ms=function(t){this.collisionBoxArray=t.collisionBoxArray,this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(function(t){return t.id}),this.index=t.index,this.pixelRatio=t.pixelRatio,this.sourceLayerIndex=t.sourceLayerIndex,this.hasPattern=!1;var e=this.layers[0]._unevaluatedLayout._values;this.textSizeData=us(this.zoom,e["text-size"]),this.iconSizeData=us(this.zoom,e["icon-size"]);var r=this.layers[0].layout,i="viewport-y"===r.get("symbol-z-order");this.sortFeaturesByY=i&&(r.get("text-allow-overlap")||r.get("icon-allow-overlap")||r.get("text-ignore-placement")||r.get("icon-ignore-placement")),this.sourceID=t.sourceID};ms.prototype.createArrays=function(){this.text=new fs(new Nn(ts.members,this.layers,this.zoom,function(t){return/^text/.test(t)})),this.icon=new fs(new Nn(ts.members,this.layers,this.zoom,function(t){return/^icon/.test(t)})),this.collisionBox=new ds(Hi,is.members,rn),this.collisionCircle=new ds(Hi,ns.members,en),this.glyphOffsetArray=new dn,this.lineVertexArray=new yn,this.symbolInstances=new hn},ms.prototype.calculateGlyphDependencies=function(t,e,r,i){for(var n=0;n<t.length;n++)if(e[t.charCodeAt(n)]=!0,r&&i){var o=as[t.charAt(n)];o&&(e[o.charCodeAt(0)]=!0)}},ms.prototype.populate=function(t,e){var r=this.layers[0],i=r.layout,n=i.get("text-font"),o=i.get("text-field"),a=i.get("icon-image"),s=("constant"!==o.value.kind||o.value.value.toString().length>0)&&("constant"!==n.value.kind||n.value.value.length>0),u="constant"!==a.value.kind||a.value.value&&a.value.value.length>0;if(this.features=[],s||u){for(var l=e.iconDependencies,p=e.glyphDependencies,c=new vi(this.zoom),h=0,f=t;h<f.length;h+=1){var d=f[h],m=d.feature,y=d.index,_=d.sourceLayerIndex;if(r._featureFilter(c,m)){var v=void 0;if(s){var g=r.getValueAndResolveTokens("text-field",m);v=os(g instanceof Ft?g:Ft.fromString(g),r,m)}var x=void 0;if(u&&(x=r.getValueAndResolveTokens("icon-image",m)),v||x){var b={text:v,icon:x,index:y,sourceLayerIndex:_,geometry:Xn(m),properties:m.properties,type:ls[m.type]};if(void 0!==m.id&&(b.id=m.id),this.features.push(b),x&&(l[x]=!0),v)for(var w=n.evaluate(m,{}).join(","),E="map"===i.get("text-rotation-alignment")&&"point"!==i.get("symbol-placement"),S=0,T=v.sections;S<T.length;S+=1){var A=T[S],z=si(v.toString()),I=A.fontStack||w,C=p[I]=p[I]||{};this.calculateGlyphDependencies(A.text,C,E,z)}}}}"line"===i.get("symbol-placement")&&(this.features=function(t){var e={},r={},i=[],n=0;function o(e){i.push(t[e]),n++}function a(t,e,n){var o=r[t];return delete r[t],r[e]=o,i[o].geometry[0].pop(),i[o].geometry[0]=i[o].geometry[0].concat(n[0]),o}function s(t,r,n){var o=e[r];return delete e[r],e[t]=o,i[o].geometry[0].shift(),i[o].geometry[0]=n[0].concat(i[o].geometry[0]),o}function u(t,e,r){var i=r?e[0][e[0].length-1]:e[0][0];return t+":"+i.x+":"+i.y}for(var l=0;l<t.length;l++){var p=t[l],c=p.geometry,h=p.text?p.text.toString():null;if(h){var f=u(h,c),d=u(h,c,!0);if(f in r&&d in e&&r[f]!==e[d]){var m=s(f,d,c),y=a(f,d,i[m].geometry);delete e[f],delete r[d],r[u(h,i[y].geometry,!0)]=y,i[m].geometry=null}else f in r?a(f,d,c):d in e?s(f,d,c):(o(l),e[f]=n-1,r[d]=n-1)}else o(l)}return i.filter(function(t){return t.geometry})}(this.features))}},ms.prototype.update=function(t,e,r){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(t,e,this.layers,r),this.icon.programConfigurations.updatePaintArrays(t,e,this.layers,r))},ms.prototype.isEmpty=function(){return 0===this.symbolInstances.length},ms.prototype.uploadPending=function(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload},ms.prototype.upload=function(t){this.uploaded||(this.collisionBox.upload(t),this.collisionCircle.upload(t)),this.text.upload(t,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(t,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0},ms.prototype.destroy=function(){this.text.destroy(),this.icon.destroy(),this.collisionBox.destroy(),this.collisionCircle.destroy()},ms.prototype.addToLineVertexArray=function(t,e){var r=this.lineVertexArray.length;if(void 0!==t.segment){for(var i=t.dist(e[t.segment+1]),n=t.dist(e[t.segment]),o={},a=t.segment+1;a<e.length;a++)o[a]={x:e[a].x,y:e[a].y,tileUnitDistanceFromAnchor:i},a<e.length-1&&(i+=e[a+1].dist(e[a]));for(var s=t.segment||0;s>=0;s--)o[s]={x:e[s].x,y:e[s].y,tileUnitDistanceFromAnchor:n},s>0&&(n+=e[s-1].dist(e[s]));for(var u=0;u<e.length;u++){var l=o[u];this.lineVertexArray.emplaceBack(l.x,l.y,l.tileUnitDistanceFromAnchor)}}return{lineStartIndex:r,lineLength:this.lineVertexArray.length-r}},ms.prototype.addSymbols=function(t,e,r,i,n,o,a,s,u,l){for(var p=t.indexArray,c=t.layoutVertexArray,h=t.dynamicLayoutVertexArray,f=t.segments.prepareSegment(4*e.length,t.layoutVertexArray,t.indexArray),d=this.glyphOffsetArray.length,m=f.vertexLength,y=0,_=e;y<_.length;y+=1){var v=_[y],g=v.tl,x=v.tr,b=v.bl,w=v.br,E=v.tex,S=f.vertexLength,T=v.glyphOffset[1];cs(c,s.x,s.y,g.x,T+g.y,E.x,E.y,r),cs(c,s.x,s.y,x.x,T+x.y,E.x+E.w,E.y,r),cs(c,s.x,s.y,b.x,T+b.y,E.x,E.y+E.h,r),cs(c,s.x,s.y,w.x,T+w.y,E.x+E.w,E.y+E.h,r),hs(h,s,0),p.emplaceBack(S,S+1,S+2),p.emplaceBack(S+1,S+2,S+3),f.vertexLength+=4,f.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(v.glyphOffset[0])}t.placedSymbolArray.emplaceBack(s.x,s.y,d,this.glyphOffsetArray.length-d,m,u,l,s.segment,r?r[0]:0,r?r[1]:0,i[0],i[1],a,!1),t.programConfigurations.populatePaintArrays(t.layoutVertexArray.length,o,o.index,{})},ms.prototype._addCollisionDebugVertex=function(t,e,r,i,n,o){return e.emplaceBack(0,0),t.emplaceBack(r.x,r.y,i,n,Math.round(o.x),Math.round(o.y))},ms.prototype.addCollisionDebugVertices=function(t,e,r,i,o,a,s,u){var l=o.segments.prepareSegment(4,o.layoutVertexArray,o.indexArray),p=l.vertexLength,c=o.layoutVertexArray,h=o.collisionVertexArray,f=s.anchorX,d=s.anchorY;if(this._addCollisionDebugVertex(c,h,a,f,d,new n(t,e)),this._addCollisionDebugVertex(c,h,a,f,d,new n(r,e)),this._addCollisionDebugVertex(c,h,a,f,d,new n(r,i)),this._addCollisionDebugVertex(c,h,a,f,d,new n(t,i)),l.vertexLength+=4,u){var m=o.indexArray;m.emplaceBack(p,p+1,p+2),m.emplaceBack(p,p+2,p+3),l.primitiveLength+=2}else{var y=o.indexArray;y.emplaceBack(p,p+1),y.emplaceBack(p+1,p+2),y.emplaceBack(p+2,p+3),y.emplaceBack(p+3,p),l.primitiveLength+=4}},ms.prototype.addDebugCollisionBoxes=function(t,e,r){for(var i=t;i<e;i++){var n=this.collisionBoxArray.get(i),o=n.x1,a=n.y1,s=n.x2,u=n.y2,l=n.radius>0;this.addCollisionDebugVertices(o,a,s,u,l?this.collisionCircle:this.collisionBox,n.anchorPoint,r,l)}},ms.prototype.generateCollisionDebugBuffers=function(){for(var t=0;t<this.symbolInstances.length;t++){var e=this.symbolInstances.get(t);this.addDebugCollisionBoxes(e.textBoxStartIndex,e.textBoxEndIndex,e),this.addDebugCollisionBoxes(e.iconBoxStartIndex,e.iconBoxEndIndex,e)}},ms.prototype._deserializeCollisionBoxesForSymbol=function(t,e,r,i,n){for(var o={},a=e;a<r;a++){var s=t.get(a);if(0===s.radius){o.textBox={x1:s.x1,y1:s.y1,x2:s.x2,y2:s.y2,anchorPointX:s.anchorPointX,anchorPointY:s.anchorPointY},o.textFeatureIndex=s.featureIndex;break}o.textCircles||(o.textCircles=[],o.textFeatureIndex=s.featureIndex),o.textCircles.push(s.anchorPointX,s.anchorPointY,s.radius,s.signedDistanceFromAnchor,1)}for(var u=i;u<n;u++){var l=t.get(u);if(0===l.radius){o.iconBox={x1:l.x1,y1:l.y1,x2:l.x2,y2:l.y2,anchorPointX:l.anchorPointX,anchorPointY:l.anchorPointY},o.iconFeatureIndex=l.featureIndex;break}}return o},ms.prototype.deserializeCollisionBoxes=function(t){this.collisionArrays=[];for(var e=0;e<this.symbolInstances.length;e++){var r=this.symbolInstances.get(e);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(t,r.textBoxStartIndex,r.textBoxEndIndex,r.iconBoxStartIndex,r.iconBoxEndIndex))}},ms.prototype.hasTextData=function(){return this.text.segments.get().length>0},ms.prototype.hasIconData=function(){return this.icon.segments.get().length>0},ms.prototype.hasCollisionBoxData=function(){return this.collisionBox.segments.get().length>0},ms.prototype.hasCollisionCircleData=function(){return this.collisionCircle.segments.get().length>0},ms.prototype.addIndicesForPlacedTextSymbol=function(t){for(var e=this.text.placedSymbolArray.get(t),r=e.vertexStartIndex+4*e.numGlyphs,i=e.vertexStartIndex;i<r;i+=4)this.text.indexArray.emplaceBack(i,i+1,i+2),this.text.indexArray.emplaceBack(i+1,i+2,i+3)},ms.prototype.sortFeatures=function(t){if(this.sortFeaturesByY&&this.sortedAngle!==t&&(this.sortedAngle=t,!(this.text.segments.get().length>1||this.icon.segments.get().length>1))){for(var e=[],r=0;r<this.symbolInstances.length;r++)e.push(r);for(var i=Math.sin(t),n=Math.cos(t),o=[],a=[],s=0;s<this.symbolInstances.length;s++){var u=this.symbolInstances.get(s);o.push(0|Math.round(i*u.anchorX+n*u.anchorY)),a.push(u.featureIndex)}e.sort(function(t,e){return o[t]-o[e]||a[e]-a[t]}),this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var l=0,p=e;l<p.length;l+=1){var c=p[l],h=this.symbolInstances.get(c);this.featureSortOrder.push(h.featureIndex),h.horizontalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedTextSymbol(h.horizontalPlacedTextSymbolIndex),h.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedTextSymbol(h.verticalPlacedTextSymbolIndex);var f=this.icon.placedSymbolArray.get(c);if(f.numGlyphs){var d=f.vertexStartIndex;this.icon.indexArray.emplaceBack(d,d+1,d+2),this.icon.indexArray.emplaceBack(d+1,d+2,d+3)}}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},ei("SymbolBucket",ms,{omit:["layers","collisionBoxArray","features","compareText"]}),ms.MAX_GLYPHS=65535,ms.addDynamicAttributes=hs;var ys=new Mi({"symbol-placement":new zi(ft.layout_symbol["symbol-placement"]),"symbol-spacing":new zi(ft.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new zi(ft.layout_symbol["symbol-avoid-edges"]),"symbol-z-order":new zi(ft.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new zi(ft.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new zi(ft.layout_symbol["icon-ignore-placement"]),"icon-optional":new zi(ft.layout_symbol["icon-optional"]),"icon-rotation-alignment":new zi(ft.layout_symbol["icon-rotation-alignment"]),"icon-size":new Ii(ft.layout_symbol["icon-size"]),"icon-text-fit":new zi(ft.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new zi(ft.layout_symbol["icon-text-fit-padding"]),"icon-image":new Ii(ft.layout_symbol["icon-image"]),"icon-rotate":new Ii(ft.layout_symbol["icon-rotate"]),"icon-padding":new zi(ft.layout_symbol["icon-padding"]),"icon-keep-upright":new zi(ft.layout_symbol["icon-keep-upright"]),"icon-offset":new Ii(ft.layout_symbol["icon-offset"]),"icon-anchor":new Ii(ft.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new zi(ft.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new zi(ft.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new zi(ft.layout_symbol["text-rotation-alignment"]),"text-field":new Ii(ft.layout_symbol["text-field"]),"text-font":new Ii(ft.layout_symbol["text-font"]),"text-size":new Ii(ft.layout_symbol["text-size"]),"text-max-width":new Ii(ft.layout_symbol["text-max-width"]),"text-line-height":new zi(ft.layout_symbol["text-line-height"]),"text-letter-spacing":new Ii(ft.layout_symbol["text-letter-spacing"]),"text-justify":new Ii(ft.layout_symbol["text-justify"]),"text-anchor":new Ii(ft.layout_symbol["text-anchor"]),"text-max-angle":new zi(ft.layout_symbol["text-max-angle"]),"text-rotate":new Ii(ft.layout_symbol["text-rotate"]),"text-padding":new zi(ft.layout_symbol["text-padding"]),"text-keep-upright":new zi(ft.layout_symbol["text-keep-upright"]),"text-transform":new Ii(ft.layout_symbol["text-transform"]),"text-offset":new Ii(ft.layout_symbol["text-offset"]),"text-allow-overlap":new zi(ft.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new zi(ft.layout_symbol["text-ignore-placement"]),"text-optional":new zi(ft.layout_symbol["text-optional"])}),_s={paint:new Mi({"icon-opacity":new Ii(ft.paint_symbol["icon-opacity"]),"icon-color":new Ii(ft.paint_symbol["icon-color"]),"icon-halo-color":new Ii(ft.paint_symbol["icon-halo-color"]),"icon-halo-width":new Ii(ft.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Ii(ft.paint_symbol["icon-halo-blur"]),"icon-translate":new zi(ft.paint_symbol["icon-translate"]),"icon-translate-anchor":new zi(ft.paint_symbol["icon-translate-anchor"]),"text-opacity":new Ii(ft.paint_symbol["text-opacity"]),"text-color":new Ii(ft.paint_symbol["text-color"]),"text-halo-color":new Ii(ft.paint_symbol["text-halo-color"]),"text-halo-width":new Ii(ft.paint_symbol["text-halo-wi